Formalize type declarations/annotations for shape objects for rendering. #2803
Labels
component: rendering
issue: docs
Describes missing or incorrect documentation
issue: feature request
Describes a new feature and why it should be added
Projects
Milestone
Objects like
Blockly.blockRendering.constants.PUZZLE_TAB
are used for rendering now, and should be swappable as long as we have a good description of what properties each one needs to have. Right now that's lacking.Here is a sample object:
Notice that it evaluates immediately, so the actual object just has
width
,height
,pathLeft
, andpathRight
properties for the rest of the rendering code to use.The text was updated successfully, but these errors were encountered: