getDecorationGeometry MethodOptional

If Decorator.testDecorationHit 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): GeometryStreamProps | undefined

Parameter Type Description
hit HitDetail The HitDetail about the decoration that was picked.

Returns - GeometryStreamProps containing world coordinate snappable geometry for this decoration.

Defined in

Last Updated: 08 January, 2020