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/global/dist/utils/with-disposable.d.ts:5
disposables
readonly
disposables:DisposableGroup
Inherited from
WithDisposable(LitElement).disposables
Defined in
packages/framework/global/dist/utils/with-disposable.d.ts:6
doc?
optional
doc:Doc
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:89
mindmapId?
optional
mindmapId:string
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:91
surface?
optional
surface:SurfaceBlockModel
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:93
virtualKeyboardPolicy
virtualKeyboardPolicy:
string
Inherited from
WithDisposable(LitElement).virtualKeyboardPolicy
Defined in
packages/framework/global/dist/types/virtual-keyboard.d.ts:20
styles
static
styles:CSSResult
Overrides
WithDisposable(LitElement).styles
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:41
_mindmap
Get Signature
get _mindmap():
null
|MindmapElementModel
Returns
null
| MindmapElementModel
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:95
answer
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:214
ctx
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:217
height
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:223
host
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:226
mindmapStyle
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:229
portalHost
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:232
templateShow
Defined in
packages/blocks/src/surface-block/mini-mindmap/mindmap-preview.ts:235
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:146
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:174