I just published 0.10.1-SNAPSHOT. Please try it ou...
# doodle
n
I just published 0.10.1-SNAPSHOT. Please try it out (and provide feedback) by pointing to
Copy code
maven { url = uri("<https://oss.sonatype.org/content/repositories/snapshots|https://oss.sonatype.org/content/repositories/snapshots>") }.
Here's what's included so far... New SweepGradientPaint The new sweep gradient paint lets you fill regions with gradients that follow a line that sweeps around a center point. This new paint is a
GradientPaint
, which means it allows you to specify a series of colors and stops to create very flexible fills.
Copy code
canvas.rect(rect, fill = SweepGradientPaint(Red opacity 0.5f, Blue, centerPoint))

canvas.rect(
    rectangle = rect,
    fill      = SweepGradientPaint(
      colors = listOf(
        Stop(Red,    0.0f),
        Stop(Orange, 0.5f),
        Stop(Blue,   1.0f),
      ),
      center   = somePoint,
      rotation = rotation
    )
)
APIs • New
ScrollPanel.scrollChanged
event • New pointer filter events for
Table
header, body and footer available to `TableBehavior`s. • New helpers to make creating
MetaRowPositioner
,
HeaderCellGenerator
, and
FooterCellGenerator
for tables. •
StyledText
helpers for
Color
and
Paint
can now target text
Foreground
. • New
WhenManuallySet
RequiredIndicatorStyle
that lets you set its visibility manually. •
Resizer
now lets you control which phase of the event process it uses to trigger. This will make it possible for it to word even for Views with children that consume pointer events. • New
lerp
helper for `Measure`s. • New constructor for
BasicCircularProgressIndicatorBehavior
that takes lambdas for paint/stroke. Fixes | Improvements • General ◦ Built-in Form controls will now scroll into view when focused ◦
View.styleChanged
will now fire when a View is added to a parent that causes its
font
to change. ◦ Focus traversal for popups and some other cases. ◦ Added API docs to CommonButtonBehavior and CommonTextButtonBehavior ◦ Removed duplicate model listener in Table family of classes. ◦ Slight improvement in change event processing within
FilteredList
. ◦ Modals no longer throw an error if their completion is invoked multiple times. ◦ Issue where
ModalManagerImpl
could close the wrong modal on completion. ◦ Fixed issue where
DynamicList
did not always remove all the right items when its model changes. ◦
Size
no longer throws
IllegalArgumentException
when given negative values for
width
or
height
. It just maps these to
0
instead. ◦ Fixed issue with layer ordering when
DisplayImpl
has a complex
fill
◦ Fixed bug in StyledText.isBlank ◦ Bug where
ringSection
startCap
and
endCap
were flipped • Browser ◦ Focus was not properly being returned to the last focused View when focus left/returned to the window. ◦ Native TextField behavior now avoids prematurely clearing focus, so it can be regained when the window is selected again. ◦ Native HyperLink behavior now clicks the underlying link in response to the
fired
event. ◦ Fixed
View
clipping within
DocumentImpl
◦ Issue with SVG shadows in some cases. ◦ Fixed issue where shadow filter not cleared correctly on reused element ◦ Fixed text baseline alignment issue when using svg ◦ Addressed some inconsistencies in how text is rendered via SVG vs plain HTML. ◦ Issue where outer shadow could have incorrect offsets • Desktop ◦ Fixed issue with text shadows. Inner shadows are now supported. Versions • Mockk -> 1.13.9 • Dokka -> 1.9.20
🙌 1