Adding text within a screenIcon image (and a question about kite) #53
-
I have been playing with ScreenIcon feature, to learn more about creating complex shapes, color designs, and eventually animated icons. 1)I am puzzled by why I am not able to add a Text type to the HBox instance in the code below. Error:Type 'Text' is missing the following properties from type 'Node': _id, _instances, _rootedDisplays, _drawables, and 740 more.ts(2740)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You may need to import Text, like so: import {HBox, Text} from '../../../scenery/js/imports.js'; Here are some of the curves supported by kite: |
Beta Was this translation helpful? Give feedback.
You may need to import Text, like so:
Here are some of the curves supported by kite:
https://github.com/phetsims/kite/blob/1bc9bc19457993fb9f45ed9994da220e6b5bccf4/js/Shape.ts#L384-L572