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.
Signature:
export declare class WorkspaceDragSurfaceSvg
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(container) | Constructs a new instance of the WorkspaceDragSurfaceSvg class |
Methods
Method | Modifiers | Description |
---|---|---|
createDom() | Create the drag surface and inject it into the container. |