SheetSnap Module
Functions and values
Function or value | Description |
|
|
|
|
|
|
Full Usage:
makeSnapBounds limit points
Parameters:
float
points : (type) array
Returns: SnapData array
|
|
|
The main snap function which is called every update that drags a symbol or segment. This function porocesses one coordinate (X or Y) and therefore is called twice. autoscrolling: if true switch off snapping (and unsnap if needed). pos.ActualPosition: input the actual position on schematic of the thing being dragged. pos.MouseDelta: mouse position change between this update and the last one. snapI: static (where can it snap) and dynamic (if it is snapped) info controlling the snapping process.
|
Determine how a dragged segment snaps. Returns updated snap info and offset to add to ssegment position. Segment position is not updated here, the offset is given to a MoveSegment message. NB every segment can only be dragged in one cordinate - perpendicular to its orientation. Called every mouse movement update in a segment drag. |
|
|
|
|
|
Full Usage:
snapIndicatorLineX model wholeCanvas
Parameters:
Model
wholeCanvas : 'a
Returns: ReactElement list
|
|
Full Usage:
snapIndicatorLineY model wholeCanvas
Parameters:
Model
wholeCanvas : 'a
Returns: ReactElement list
|
|
Full Usage:
snapLineHorizontal wholeCanvas y
Parameters:
'a
y : 'b
Returns: ReactElement
|
|
Full Usage:
snapLineVertical wholeCanvas x
Parameters:
'a
x : 'b
Returns: ReactElement
|
|
|