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 Decorator.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

Last Updated: 11 June, 2024