@leafer-editor/node
Based on @leafer-ui/node, this package introduces plugins including graphics editor, viewport, view control, scrollbar, arrow, element search, export elements, and scale-fixed plugin, making it suitable for online graphics editing scenarios.
web version worker version node version mini program version
Runs in a server-side Node environment. It can be used for backend rendering, image generation, and automated testing, and can simulate user interactions.
Installation
npm install @leafer-editor/nodepnpm add @leafer-editor/nodeyarn add @leafer-editor/nodebun add @leafer-editor/nodeskia | napi
skia-canvas is used in server environments to replace Canvas functionality. It is built on top of Skia. It must be installed separately, and compilation may take a long time. Please be patient.
npm install skia-canvaspnpm add skia-canvasyarn add skia-canvasbun add skia-canvasUpdate
Learn how to quickly update versions.
Usage
The usage, global variables, and @leafer-ui/node are consistent. You only need to change the package name to run the official example code.