We’re introducing 3 new property menu item types:
itemType description "separator"
A non-interactive element that can be used to organize different parts of the property menu. "color-selector"
A colorpicker menu item that allows users to select from a list of colors. "dropdown"
A dropdown menu item that allows users to pick from a list of string options. We now return the x and y coordinates of where a user clicked in the widget onClick handler. This is useful for knowing where exactly a user clicked on your widget.
useSyncedState
now supports lazy initial state and functional updates. This is equivalent to how setState behaves in React.
Bug fixes:
- Our docs and typings now correctly show that
stroke
,strokeWidth
andstrokeAlign
props exist on theText component
. - We improved the
Paint
documentation page to add more examples of usingGradientPaint
. - Fixed a bug where certain
fontWeight
don't work for certainfontFamily
.
Additionally, we updated the Plugin API with some improvements to WidgetNode
. For more information see: Plugin API Version 1, Update 39.