Skip to content

Type Editor


Type Editor / @type-editor/viewdesc / AbstractViewDesc / AbstractViewDesc

Abstract Class: AbstractViewDesc

Defined in: AbstractViewDesc.ts:6

Abstract base class for view descriptions. Provides minimal interface that all view descriptions must implement.

Extended by

Constructors

Constructor

ts
new AbstractViewDesc(): AbstractViewDesc;

Returns

AbstractViewDesc

Accessors

nodeDOM

Get Signature

ts
get nodeDOM(): Node;

Defined in: AbstractViewDesc.ts:22

The DOM node that directly represents this ProseMirror node. May differ from dom if outer decorations wrap it.

Returns

Node

The node DOM element, or null if this view doesn't have a direct node representation


side

Get Signature

ts
get abstract side(): number;

Defined in: AbstractViewDesc.ts:14

Gets the side value which determines positioning behavior of the view.

  • Negative values: positioned before content
  • Zero: neutral positioning
  • Positive values: positioned after content
Returns

number