new dragJunctionHandler()
Handles the interactive dragging of junction and segments.
Methods
-
handleDragEnd(host, handler, cursor, event) <static>
-
Updates the model after dragging selected junctions(s) has finished.
This method removes any interactive dimensions or snap point indicators from the scene overlay and checks if an element was dragged in to or out of a container element such as a space. If the dragged element was itself a space, it also initiates a check for any spatial overlap on the level. It then updates the user interface if required.
Parameters:
Name Type Description hostPD.SelectionManager The selection manager.
handlerBIM.UserModeHandler The user interaction handler.
cursorPD.Cursor The cursor that just finished moving.
eventobject The DOM event that triggered the end of the move.
Returns:
Returns true if the move was finalised.
- Type
- boolean
-
handleDragMove(host, handler, newPos, cursor, event) <static>
-
Moves selected junction(s) in the model as the 3D cursor is dragged.
Parameters:
Name Type Description hostPD.SelectionManager The selection manager.
handlerBIM.UserModeHandler The user interaction handler.
newPosTHREE.Vector3 The proposed new position of the cursor.
cursorPD.Cursor The cursor that moved.
eventobject The DOM event that triggered this move.
Returns:
Returns true if the move was applied.
- Type
- boolean
-
handleDragRotate(host, handler, rotation, cursor, event) <static>
-
Handles cursor drag rotation events.
Parameters:
Name Type Description hostPD.SelectionManager The selection manager.
handlerBIM.UserModeHandler The user interaction handler.
rotationTHREE.Euler The proposed new angle of the cursor.
cursorPD.Cursor The cursor that rotated.
eventobject The DOM event that triggered this move.
Returns:
Returns true if the rotation was applied.
- Type
- boolean
-
handleDragStart(host, handler, cursor, event) <static>
-
Prepares selected junction(s) for an interactive drag event.
Parameters:
Name Type Description hostPD.SelectionManager The selection manager.
handlerBIM.UserModeHandler The user interaction handler.
cursorPD.Cursor The cursor that is about to move.
eventobject The DOM event that triggered this move.
Returns:
Returns true if the move is allowed.
- Type
- boolean