@univerjs-pro/boards-exchange-client
Cette page API est actuellement disponible en anglais. Les signatures et identifiants restent identiques dans toutes les langues.
Board exchange integration, including Mermaid diagram import and PPTX export.
TypeScript
import { UniverBoardsExchangeClientPlugin } from '@univerjs-pro/boards-exchange-client'import '@univerjs-pro/boards-exchange-client/lib/index.css'univer.registerPlugin(UniverBoardsExchangeClientPlugin)IUniverBoardsExchangeClientConfig
TypeScript
import type { MenuConfig } from '@univerjs/ui'export interface IUniverBoardsExchangeClientConfig { menu?: MenuConfig}The package also exports InsertMermaidOperation, BOARD_MERMAID_IMPORT_SOURCE_TYPE, BoardMermaidImportService, IBoardMermaidImportService, and IBoardMermaidImportContext for custom integrations.
Facade API
TypeScript
import '@univerjs-pro/boards-exchange-client/facade'// univerAPIexportBoardByUnitIdAsync(unitId: string): Promise<File | undefined>exportBoardBySnapshotAsync(snapshot: IBoardData): Promise<File | undefined>transformSnapshotJsonToBoardDataAsync(json: ISnapshotBlockJsonResponse): Promise<IBoardData>transformBoardDataToSnapshotJsonAsync(boardData: IBoardData): Promise<ISnapshotBlockJson>// FBoardinsertMermaidAsync(code: string, options?: IBoardMermaidOptions): Promise<boolean>Entry Points
- Facade:
@univerjs-pro/boards-exchange-client/facade - Locale:
@univerjs-pro/boards-exchange-client/locale/* - Style:
@univerjs-pro/boards-exchange-client/lib/index.css
Que pensez-vous de ce guide ?