import * as go from '../../../../libs/gojs/release/go'; /** * This SectorReshapingTool class allows for the user to 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. * @constructor * @extends Tool * @class */ export declare class SectorReshapingTool extends go.Tool { readonly name: string; private _handle; private _originalRadius; private _originalAngle; private _originalSweep; radiusProperty: string; angleProperty: string; sweepProperty: string; /** * This tool can only start if Diagram.allowReshape is true and the mouse-down event * is at a tool handle created by this tool. * @override * @this {SectorReshapingTool} */ canStart(): boolean; /** * If the Part is selected, show two angle-changing tool handles and one radius-changing tool handle. * @override * @this {SectorReshapingTool} * @param {Part} part */ updateAdornments(part: go.Part): void; /** * Remember the original angles and radius and start a transaction. * @override * @this {SectorReshapingTool} */ doActivate(): void; /** * Stop the transaction. * @override * @this {SectorReshapingTool} */ doDeactivate(): void; /** * Restore the original angles and radius and then stop this tool. * @override * @this {SectorReshapingTool} */ doCancel(): void; /** * Depending on the current handle being dragged, update the "radius", the "angle", or the "sweep" * properties on the model data. * Those property names are currently parameterized as static members of SectorReshapingTool. * @override * @this {SectorReshapingTool} */ doMouseMove(): void; /** * Finish the transaction and stop the tool. * @override * @this {SectorReshapingTool} */ doMouseUp(): void; getRadius(data: Object): number; getAngle(data: Object): number; getSweep(data: Object): number; }