Namespacesutilsblockly.utils_namespace.rect_class.from_methodOn this pageblockly > utils > Rect > from utils.Rect.from() method Converts a DOM or SVG Rect to a Blockly Rect. Signature: static from(rect: DOMRect | SVGRect): Rect; Parameters ParameterTypeDescriptionrectDOMRect | SVGRectThe rectangle to convert. Returns: Rect A representation of the same rectangle as a Blockly Rect.