@univerjs/docs-drawing connects the common drawing model to Univer Docs so documents can host and manage drawing objects.
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
|---|---|---|---|---|---|
@univerjs/docs-drawing |
UniverDocsDrawing |
No | No | Yes | No |
pnpm add @univerjs/docs-drawing
# or
npm install @univerjs/docs-drawingStart with the integration setup for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
import { UniverDocsDrawingPlugin } from '@univerjs/docs-drawing';
univer.registerPlugin(UniverDocsDrawingPlugin);- Import
@univerjs/docs-drawing/facadewhen using this package through Univer Facade APIs.