Handles Class

Beta

The set of ModifyHandles active. Only applies if there is a single element selected.

Methods

Name Description
constructor(ss: MarkupSelected, el: MarkupElement): Handles    
cancelDrag(): void called when the reset button is pressed.  
drag(ev: BeButtonEvent): void    
draw(): void    
endDrag(undo: UndoManager): EventHandled complete the modification for the active handle.  
npcToBox(p: XAndY): Point2d    
npcToVb(p: XAndY, result?: Point2d): Point2d    
npcToVbArray(pts: Point2d[]): Point2d[]    
remove(): void    
startDrag(ev: BeButtonEvent): EventHandled    
vbToBox(p: XAndY, result?: Point2d): Point2d    

Properties

Name Type Description
active undefined | ModifyHandle    
dragging boolean    
el ConstructorProperty MarkupElement    
group G    
handles ModifyHandle[]    
npcToVbTrn Transform    
ss ConstructorProperty MarkupSelected    
vbToBoxTrn Transform    

Defined in

Last Updated: 08 January, 2020