Marker Class
Markers are a special kind of segment that do not hold any content.
Markers with a reference type of Tile support spatially accelerated queries for finding the next marker to the left or right of it in sub-linear time. This is useful, for example, in the case of jumping from the start of a paragraph to the end, assuming a paragraph is bound by markers at the start and end.
To use, import via @fluidframework/merge-tree/legacy
.
For more information about our API support guarantees, see here.
Signature
export declare class Marker extends BaseSegment implements ReferencePosition, ISegment
Extends: BaseSegment
Implements: ReferencePosition, ISegment
Constructors
Constructor | Alerts | Description |
---|---|---|
(constructor)(refType, props) | Alpha |
Constructs a new instance of the Marker class |
Static Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
type | Alpha |
readonly |
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
refType | Alpha |
ReferenceType | ||
type | Alpha |
readonly |
Constructor Details
(constructor)
Constructs a new instance of the Marker
class
To use, import via @fluidframework/merge-tree/alpha
.
For more information about our API support guarantees, see here.
Signature
constructor(refType: ReferenceType, props?: PropertySet);
Parameters
Parameter | Modifiers | Type | Description |
---|---|---|---|
refType | ReferenceType | ||
props | optional | PropertySet |
Property Details
refType
To use, import via @fluidframework/merge-tree/alpha
.
For more information about our API support guarantees, see here.
Signature
refType: ReferenceType;
Type: ReferenceType
type
To use, import via @fluidframework/merge-tree/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly type = "Marker";
type
To use, import via @fluidframework/merge-tree/alpha
.
For more information about our API support guarantees, see here.
Signature
static readonly type = "Marker";