getDecorationGeometry MethodOptional
If Decorator.testDecorationHit or Decorator.overrideElementHit returned true, implement this method to return the snappable geometry for this Decorator. Geometry that changes with every cursor motion isn't valid for snapping. An example would be an InteractiveTool for placing a linestring. It might wish to allow snapping to accepted segments, the segment from the last accepted point to the current cursor position would not be included as snappable geometry and would just be displayed in dynamics.
getDecorationGeometry(hit: HitDetail): undefined | GeometryStreamProps
Parameter | Type | Description |
---|---|---|
hit | HitDetail | The HitDetail about the decoration that was picked. |
Returns - undefined | GeometryStreamProps
GeometryStreamProps containing world coordinate snappable geometry for this decoration.
Last Updated: 30 November, 2023