Overview
The WeaveStageNode class represents the root container of the canvas in Weave.js applications. Built on top of Konva’s Stage class, the WeaveStageNode manages the overall canvas environment where all other nodes (such as Layers, Groups, and Shapes) are rendered.
As the top-level visual node, it is responsible for setting up the base coordinate system, initializing the layers, and serving as the anchor point for user interactions like panning, zooming, and resizing.
The class extends the WeaveNode class
Instantiation
|
Don’t directly use
We don’t recommend to use this node directly. To define the application Stage,
use the stores |
new WeaveStageNode();
Konva.Node Augmentation
This Node extends the Konva.Stage class to define several functions:
isMouseWheelPressed
isMouseWheelPressed(): boolean
Function that indicates if the mouse wheel is being pressed or not.
allowSelection
allowSelection(allowSelection?: boolean): boolean
Function that set is selection is allowed (when SelectionTool is disabled), useful to build tools over the utilityLayer.