BlockSuite API Documentation / @blocksuite/blocks / MiniMindmapPreview
Class: MiniMindmapPreview
Extends
LitElement
<this
> &DisposableClass
<this
>
Constructors
new MiniMindmapPreview()
new MiniMindmapPreview():
MiniMindmapPreview
Returns
Inherited from
WithDisposable(LitElement).constructor
Defined in
node_modules/.pnpm/@[email protected]/node_modules/@lit/reactive-element/development/reactive-element.d.ts:504
Other
_disposables
protected
_disposables:DisposableGroup
Inherited from
WithDisposable(LitElement)._disposables
Defined in
packages/framework/block-std/dist/view/utils/with-disposable.d.ts:4
disposables
readonly
disposables:DisposableGroup
Inherited from
WithDisposable(LitElement).disposables
Defined in
packages/framework/block-std/dist/view/utils/with-disposable.d.ts:5
doc?
optional
doc:Doc
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:99
mindmapId?
optional
mindmapId:string
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:101
surface?
optional
surface:SurfaceBlockModel
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:103
styles
static
styles:CSSResult
Overrides
WithDisposable(LitElement).styles
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:51
_mindmap
get
_mindmap():null
|MindmapElementModel
Returns
null
| MindmapElementModel
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:105
answer
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:226
ctx
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:229
height
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:235
host
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:238
mindmapStyle
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:241
portalHost
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:244
templateShow
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:247
lifecycle
connectedCallback()
connectedCallback():
void
Invoked when the component is added to the document's DOM.
In connectedCallback()
you should setup tasks that should only occur when the element is connected to the document. The most common of these is adding event listeners to nodes external to the element, like a keydown event handler added to the window.
connectedCallback() {
super.connectedCallback();
addEventListener('keydown', this._handleKeydown);
}
Typically, anything done in connectedCallback()
should be undone when the element is disconnected, in disconnectedCallback()
.
Returns
void
Overrides
WithDisposable(LitElement).connectedCallback
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:159
rendering
render()
render():
TemplateResult
<1
> | typeofnothing
Invoked on each update to perform rendering tasks. This method may return any value renderable by lit-html's ChildPart
- typically a TemplateResult
. Setting properties inside this method will not trigger the element to update.
Returns
TemplateResult
<1
> | typeof nothing
Overrides
WithDisposable(LitElement).render
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:186