Article | 70001051 |
Type | Wish |
Product | WebJS |
Version | 7010 |
Date Added | 4/4/2017 12:00:00 AM |
Fixed | 7.7011.0.3 (4/6/2017 12:00:00 AM) |
Submitted by | Brendan Fry |
Summary
Adjust the scaling sensitivity for user action scale when the mouse is moving, in order to keep scaling entities inside mouse position and reference point.
Solution
In version 7011.0.3 a new property ActionScaleMode of vdcanvas control was added
Get / Set the way that user scale action is applied, when user run the CmdScale or ScriptCommands.scale.
Default value is 0.
Set it to 1 in order additional scale to be applied, as the division with bounding box size of the selected entities.
This will keep the scaling bounds near to the selected entities bounds.
Example:
vdcanvas.ActionScaleMode = 1;
vdcanvas.scriptCommant.scale();