new Protractor(group, size) → {Object}
Generates a visual protractor to use in angle measurement
and interactive contexts
Parameters:
Name | Type | Description |
---|---|---|
group |
Object | d3 data selection. |
size |
Number | size of protractor. |
- Source:
Returns:
- public rotation method and reference to protractor selection.
- Type
- Object
Methods
-
(inner) rotate()
-
Updates the angle of the protractor based on the current value of the angle property
- Source:
-
(inner) updateAngle(ang)
-
Sets angle and rotates
Parameters:
Name Type Description ang
Number the angle to set - Source:
Returns:
none