Skip to content

Type Editor


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

ParameterTypeDescription
docNode_2The document node
outerDecoreadonly PmDecoration[]Outer decorations for the document
innerDecoDecorationSourceInner decorations for the document
domHTMLElementThe DOM element that will contain the document
viewPmEditorViewThe editor view

Returns

NodeViewDesc

A NodeViewDesc for the document