Article | 70000831 |
Type | Wish |
Product | WebJS |
Version | 7008 |
Date Added | 7/14/2016 12:00:00 AM |
Fixed | 7.7009.0.3 (7/14/2016 12:00:00 AM) |
Submitted by | VectorDraw Team |
Summary
Support AlignToViewSize for Web control
Solution
in version 7009.0.3 AlignToViewSize property is supported for vdCircle vdPoint vdInsert and vdText
Example:
var vdcanvas = vdmanager.vdrawObject('canvas'); var vddoc = vdcanvas.GetDocument(); if (!vddoc) return; //create a circle with align size = 5 milimeters and solid red fill with transparency 100 vdcanvas.SetActiveHatchProperties(vdcanvas.createNewHatchProperties("solid")); vddoc.ActivePenColor = {SystemColor:[255,0,0,100]}; var ent = vdcanvas.AddCircle(pt, 0.005, false); ent.AlignToViewSize = 5; vdcanvas.DrawEntity(ent);//draw the circle on the render context vdcanvas.Refresh();//update the canvas view