Skip to content

Latest commit

 

History

History

drawing-ui

README.md

@univerjs/drawing-ui

npm version license downloads

@univerjs/drawing-ui provides common drawing UI services and components that document- or sheet-specific drawing packages build on.

Package Overview

Package UMD global CSS Locales Facade entry Worker entry
@univerjs/drawing-ui UniverDrawingUi Yes Yes No No

Installation

pnpm add @univerjs/drawing-ui
# or
npm install @univerjs/drawing-ui

Usage

Start 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 '@univerjs/drawing-ui/lib/index.css';
import EnUS from '@univerjs/drawing-ui/locale/en-US';
import { UniverDrawingUIPlugin } from '@univerjs/drawing-ui';

univer.registerPlugin(UniverDrawingUIPlugin);

// Merge EnUS into your Univer locale map when this package contributes UI text.

Resources