Version 1, Update 1
-
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.
-
useSyncedStatenow 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,strokeWidthandstrokeAlignprops exist on theText component. - We improved the
Paintdocumentation page to add more examples of usingGradientPaint. - Fixed a bug where certain
fontWeightdon'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.