Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DecorationSource

An object that can provide decorations. Implemented by DecorationSet, and passed to node views.

interface DecorationSource {
map: (mapping: Mapping, node: Node) => DecorationSource;
forChild(offset: number, child: Node): DecorationSource;
}

§Properties

§
map: (mapping: Mapping, node: Node) => DecorationSource
[src]

Map the set of decorations in response to a change in the document.

§Methods

§
forChild(offset: number, child: Node): DecorationSource
[src]

Extract a DecorationSource containing decorations for the given child node at the given offset.