Blockly Framework Reference

LayoutEngine

Unit scaling between Blockly’s Workspace coordinate system and the UIView coordinate system

UI configuration

All Layout instances in a single Layout tree should share the same single instance of
LayoutEngine. If any of the nodes in a single tree use different instances of LayoutEngine,
unexpected results may occur.

Declaration

Using the current scale value, this method scales a point from the UIView coordinate system to
the Workspace coordinate system.

Note

This does not translate a UIView point directly into a Workspace point, it only scales the
magnitude of a UIView point into the Workspace coordinate system. For example, in RTL, more
calculation would need to be done to get the UIView point’s translated Workspace point.