AbstractProtectedconstructorInternalstartSide: numberInternalendSide: numberInternalwidget: WidgetTypeThe config object used to create this decoration. You can include additional properties in there to store metadata about your decoration.
The bias value at the end of the range. Defaults to 0.
The mode with which the location of the range should be mapped
when its from and to are the same, to decide whether a
change deletes the range. Defaults to MapMode.TrackDel.
Determines whether this value marks a point range. Regular ranges affect the part of the document they cover, and are meaningless when empty. Point ranges have a meaning on their own. When non-empty, a point range is treated as atomic and shadows any ranges contained in it.
ReadonlyspecThe config object used to create this decoration. You can include additional properties in there to store metadata about your decoration.
The bias value at the start of the range. Determines how the range is positioned relative to other ranges starting at this position. Defaults to 0.
StaticnoneThe empty set of decorations.
AbstracteqCompare this value with another value. Used when comparing rangesets. The default implementation compares by identity. Unless you are only creating a fixed number of unique instances of your value type, it is a good idea to implement this properly.
StaticlineCreate a line decoration, which can add DOM attributes to the line starting at the given position.
StaticmarkCreate a mark decoration, which influences the styling of the content in its range. Nested mark decorations will cause nested DOM elements to be created. Nesting order is determined by precedence of the facet, with the higher-precedence decorations creating the inner DOM nodes. Such elements are split on line boundaries and on the boundaries of lower-precedence decorations.
StaticreplaceCreate a replace decoration which replaces the given range with a widget, or simply hides it.
StaticsetBuild a DecorationSet from the given
decorated range or ranges. If the ranges aren't already sorted,
pass true for sort to make the library sort them for you.
Optionalsort: booleanStaticwidgetCreate a widget decoration, which displays a DOM element at the given position.
A decoration provides information on how to draw or style a piece of content. You'll usually use it wrapped in a
Range, which adds a start and end position.Nonabstract