API 參考

@univerjs/sheets-drawing

此 API 頁面目前提供英文內容。程式碼簽名與識別符不隨介面語言變更。

Drawing model integration for Univer Sheets.

TypeScript
import { UniverSheetsDrawingPlugin } from '@univerjs/sheets-drawing'univer.registerPlugin(UniverSheetsDrawingPlugin, {})

Entry Points

  • Facade: @univerjs/sheets-drawing/facade

Worksheet background images

The Facade adds FWorksheet.getBackgroundImage(), setBackgroundImage(source, imageSourceType?), and deleteBackgroundImage(). The source type defaults to ImageSourceType.URL. Updates use commands and support undo/redo.

IWorksheetData.backgroundImage stores one tiled image independently of floating images. Add @univerjs/sheets-drawing-ui for rendering and upload controls. Backgrounds are excluded from printing. See the background image guide.

IUniverSheetsDrawingConfig

TypeScript
export interface IUniverSheetsDrawingConfig {}

你覺得這篇文檔如何?

© 2026 DreamNum Co., Ltd.