Some checks failed
📦 Build / build (push) Has been cancelled
🧪 CI Test / test shard (1/4) (push) Has been cancelled
🧪 CI Test / test shard (2/4) (push) Has been cancelled
🧪 CI Test / test shard (3/4) (push) Has been cancelled
🧪 CI Test / test shard (4/4) (push) Has been cancelled
🧪 CI Test / test (push) Has been cancelled
🧪 CI Test / eslint (push) Has been cancelled
🧪 CI Test / typecheck (push) Has been cancelled
🔫 Sync to Pro / dispatch-sync (push) Has been cancelled
🔮 Sync Mirror / sync (push) Has been cancelled
38 lines
1.1 KiB
Markdown
38 lines
1.1 KiB
Markdown
# @univerjs/watermark
|
|
|
|
[](https://npmjs.com/package/@univerjs/watermark)
|
|
[](https://npmjs.com/package/@univerjs/watermark)
|
|
[](https://npmjs.com/package/@univerjs/watermark)
|
|
|
|
`@univerjs/watermark` adds configurable watermark rendering to Univer documents and sheets through the render engine.
|
|
|
|
## Package Overview
|
|
|
|
| Package | UMD global | CSS | Locales | Facade entry |
|
|
| --- | --- | :---: | :---: | :---: |
|
|
| `@univerjs/watermark` | `UniverWatermark` | No | No | Yes |
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
pnpm add @univerjs/watermark
|
|
# or
|
|
npm install @univerjs/watermark
|
|
```
|
|
|
|
Keep all `@univerjs/*` packages on the same version.
|
|
|
|
## Usage
|
|
|
|
```ts
|
|
import { UniverWatermarkPlugin } from '@univerjs/watermark';
|
|
|
|
univer.registerPlugin(UniverWatermarkPlugin);
|
|
```
|
|
|
|
## Resources
|
|
|
|
- [Documentation](https://docs.univer.ai)
|
|
- [NPM package](https://npmjs.com/package/@univerjs/watermark)
|
|
- [GitHub repository](https://github.com/dream-num/univer)
|