Type Editor / @type-editor/viewdesc / doc-view-desc / docViewDesc
Function: docViewDesc()
ts
function docViewDesc(doc, outerDeco, innerDeco, dom, view): NodeViewDesc;Defined in: doc-view-desc.ts:19
Create a view desc for the top-level document node, to be exported and used by the view class.
Parameters
| Parameter | Type | Description |
|---|---|---|
doc | Node_2 | The document node |
outerDeco | readonly PmDecoration[] | Outer decorations for the document |
innerDeco | DecorationSource | Inner decorations for the document |
dom | HTMLElement | The DOM element that will contain the document |
view | PmEditorView | The editor view |
Returns
A NodeViewDesc for the document