blockly > WorkspaceDragSurfaceSvg

WorkspaceDragSurfaceSvg class

Blocks are moved into this SVG during a drag, improving performance. The entire SVG is translated using CSS transforms instead of SVG so the blocks are never repainted during drag improving performance.


export declare class WorkspaceDragSurfaceSvg 


Constructor Modifiers Description
(constructor)(container) Constructs a new instance of the WorkspaceDragSurfaceSvg class


Method Modifiers Description
createDom() Create the drag surface and inject it into the container.