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/@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:92
mindmapId?
optional
mindmapId:string
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:94
surface?
optional
surface:SurfaceBlockModel
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:96
styles
static
styles:CSSResult
Overrides
WithDisposable(LitElement).styles
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:44
_mindmap
get
_mindmap():null
|MindmapElementModel
Returns
null
| MindmapElementModel
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:98
answer
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:219
ctx
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:222
height
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:228
host
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:231
mindmapStyle
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:234
portalHost
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:237
templateShow
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:240
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:152
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:179