This is an extension and not part of the main GoJS library. Note that the API for this class may change at any time. If you intend to use an extension in production, you should copy the code to your own source directory. See the Extensions intro page for more information.
Constructs a SectorReshapingTool and sets the name for the tool.
Optional
init: Partial<SectorReshapingTool>Gets or sets the name of the data property for the sector start angle.
The default value is "angle".
Gets or sets the name of the data property for the sector radius.
The default value is "radius".
Gets or sets the name of the data property for the sector sweep angle.
The default value is "sweep".
Override
canOverride
doOverride
doOverride
doOverride
doOverride
doOverride
update
The SectorReshapingTool class lets the user interactively modify the angles of a "pie"-shaped sector of a circle. When a node is selected, this shows two handles for changing the angles of the sides of the sector and one handle for changing the radius.
This depends on there being three data properties, "angle", "sweep", and "radius", that hold the needed information to be able to reproduce the sector.
If you want to experiment with this extension, try the Sector Reshaping sample.