About
@nanoforge-dev/graphics-2d is NanoForge’s built-in 2D rendering library, powered by Konva. It creates a full-container Stage and a default Layer and exposes them on Context.graphics. Client-only.
Installation
Node.js 26 or newer is required.Example usage
RegisterGraphics2DLibrary on your client app:
Context.graphics.stage/.baseLayer:
Links
Contributing
Before creating an issue, please ensure that it hasn’t already been reported/suggested, and double-check the documentation.See the contribution guide if you’d like to submit a PR.
Help
If you don’t understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don’t hesitate to ask questions in discussions.Classes
Interfaces
Type Aliases
- Animation
- Arc
- ArcConfig
- Arrow
- ArrowConfig
- Canvas
- Circle
- CircleConfig
- Container
- ContainerConfig
- Context
- DD
- Easings
- Ellipse
- EllipseConfig
- FastLayer
- Filters
- Group
- GroupConfig
- Image
- ImageConfig
- KonvaEventListener
- KonvaEventObject
- KonvaPointerEvent
- Label
- LabelConfig
- Layer
- LayerConfig
- Line
- LineConfig
- Node
- NodeConfig
- Path
- PathConfig
- Rect
- RectConfig
- RegularPolygon
- RegularPolygonConfig
- Ring
- RingConfig
- Shape
- ShapeConfig
- Sprite
- SpriteConfig
- Stage
- StageConfig
- Star
- StarConfig
- Tag
- TagConfig
- Text
- TextConfig
- TextPath
- TextPathConfig
- Transform
- Transformer
- TransformerConfig
- Tween
- TweenConfig
- Util
- Vector2d
- Wedge
- WedgeConfig
Variables
- _global
- _injectGlobal
- _mouseInDblClickWindow
- _mouseListenClick
- _pointerInDblClickWindow
- _pointerListenClick
- _renderBackend
- _touchInDblClickWindow
- _touchListenClick
- angleDeg
- Animation
- Arc
- Arrow
- autoDrawEnabled
- Canvas
- capturePointerEventsEnabled
- Circle
- Container
- Context
- dblClickWindow
- DD
- document
- dragButtons
- dragDistance
- Easings
- Ellipse
- enableTrace
- FastLayer
- Filters
- getAngle
- Group
- hitOnDragEnabled
- Image
- isBrowser
- isDragging
- isDragReady
- isTransforming
- isUnminified
- Label
- Layer
- legacyTextRendering
- Line
- Node
- Path
- pixelRatio
- pointerEventsEnabled
- Rect
- RegularPolygon
- releaseCanvasOnDestroy
- Ring
- Shape
- shapes
- showWarnings
- Sprite
- Stage
- stages
- Star
- Tag
- Text
- TextPath
- Transform
- Transformer
- Tween
- Util
- version
- Wedge
