70001417 Action crosshair lines

Article 70001417
Type Wish
Product WebJS
Version 7016
Date Added 10/12/2018 12:00:00 AM
Fixed 8.8001.0.1 (10/23/2018 12:00:00 AM)
Submitted by Brendan Fry

Summary

I would like to implement action crosshair lines

Solution

In version 8001.0.1 Crossline cursor have been added.

In order to set vdraw crossline cursor, must be call
vdrawobj.canvas.style.cursor = "none";
also
vdrawobj.GetDocument().GlobalRenderProperties.AxisSize = 50; //set the size of crosshair in pixels
vdrawobj.GetDocument().GlobalRenderProperties.CursorAxisColor = [0,0,0,255]; //set the R,G,B,A color of crosshair
a rect around the center is drawn depend on vdrawobj.PickSize// For example: vdrawobj.PickSize = 30;
and vdrawobj.GetDocument().GlobalRenderProperties.CursorPickColor = [0,0,0,255]; //set the R,G,B,A color of crosshair pick box

In order to set the srosshair or pointer cursor icon, must be call
vdrawobj.canvas.style.cursor = "crosshair"; //this may be faster on some devices.
vdrawobj.canvas.style.cursor = "pointer"; //this may be faster on some devices.

Send comments on this topic.