BlockSuite API Documentation / @blocksuite/blocks / ExportManager
Class: ExportManager
Constructors
new ExportManager()
new ExportManager(
std
):ExportManager
Parameters
std
Returns
Defined in
packages/blocks/src/_common/export-manager/export-manager.ts:122
Properties
std
readonly
std:BlockStdScope
Defined in
packages/blocks/src/_common/export-manager/export-manager.ts:122
Accessors
doc
Get Signature
get doc():
Doc
Returns
Defined in
packages/blocks/src/_common/export-manager/export-manager.ts:114
editorHost
Get Signature
get editorHost():
EditorHost
Returns
Defined in
packages/blocks/src/_common/export-manager/export-manager.ts:118
Methods
edgelessToCanvas()
edgelessToCanvas(
surfaceRenderer
,bound
,edgeless
?,nodes
?,surfaces
?,edgelessBackground
?):Promise
<undefined
|HTMLCanvasElement
>
Parameters
surfaceRenderer
bound
IBound
edgeless?
nodes?
EdgelessBlockModel
<GfxCompatibleProps
>[]
surfaces?
SurfaceElementModel
[]
edgelessBackground?
zoom
number
Returns
Promise
<undefined
| HTMLCanvasElement
>
Defined in
packages/blocks/src/_common/export-manager/export-manager.ts:408
exportPdf()
exportPdf():
Promise
<void
>
Returns
Promise
<void
>
Defined in
packages/blocks/src/_common/export-manager/export-manager.ts:544
exportPng()
exportPng():
Promise
<void
>
Returns
Promise
<void
>
Defined in
packages/blocks/src/_common/export-manager/export-manager.ts:571
replaceImgSrcWithSvg()
replaceImgSrcWithSvg(
element
):Promise
<void
>
Parameters
element
HTMLElement
Returns
Promise
<void
>
Defined in
packages/blocks/src/_common/export-manager/export-manager.ts:65