WebViewer Version: 10.7.2
for creating different types of annotations we are using some code
documentViewer
.getTool(instanceRef.current!.Core.Tools.ToolNames.ARROW)
.setStyles((_currentStyle: Object) => ({
Start: new instanceRef.current!.Core.Math.Point(0, 0),
End: new instanceRef.current!.Core.Math.Point(0, 0),
Opacity: highlight[0].Opacity,
StrokeColor: new Annotations.Color(rgbBorder!.r, rgbBorder!.g, rgbBorder!.b),
StrokeThickness: AppConstants.Annotations.Properties.Line.StrokeThickness,
// EndStyle: Annotations.LineEndType.OPEN_ARROW
// LineEndStyle: Annotations.LineEndType.OPEN_ARROW
}));
in getTool() method we provide toolname and basic styles.
Right now I want create line and arrow annotions.
The problem is with Arrow annotation. I need somehow to provide endStyle = OPEN_ARROW.
I was tested with different ToolName and was trying to provide EndStyle in setStyles().
So, my question is: how can I set EndStyle in ArrowCreateTool