WeaveStageNode
Stage node API Reference
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
Type
This node nodeType
property value is stage
.
Import
import { WeaveStageNode } from "@inditextech/weave-sdk";
Instantiation
Don't directly use
We don't recommend to use this node directly. To define the application Stage,
use the stores initialState
configuration property on server-side.
new WeaveStageNode();
Konva.Node Augmentation
This Node extends the Konva.Stage
class to define several functions:
isFocused
isFocused(): boolean
Function that indicates if the stage is focused or not.
isMouseWheelPressed
isMouseWheelPressed(): boolean
Function that indicates if the mouse wheel is being pressed or not.