addDecoration Method
Set the position and add this Marker to the supplied DecorateContext, if it's visible. This method should be called from your implementation of decorate. It will set this Marker's position based on the Viewport from the context, and add this this Marker to the supplied DecorateContext.
addDecoration(context: DecorateContext): void
Parameter | Type | Description |
---|---|---|
context | DecorateContext | The DecorateContext for the Marker |
Returns - void
Defined in
- core/frontend/src/Marker.ts Line 314
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.