SnapManager
See source codeTable of contents
class SnapManager {}
Constructor
Constructs a new instance of the SnapManager
class
Parameters
Name | Description |
---|---|
|
Properties
editor
readonly
readonly editor: Editor
handles
readonly
readonly handles: HandleSnaps
shapeBounds
readonly
readonly shapeBounds: BoundsSnaps
Methods
clearIndicators()
clearIndicators(): void
getCurrentCommonAncestor()
getCurrentCommonAncestor(): TLShapeId | undefined
getIndicators()
getIndicators(): SnapIndicator[]
getSnappableShapes()
getSnappableShapes(): Set<TLShapeId>
getSnapThreshold()
getSnapThreshold(): number
setIndicators()
setIndicators(indicators: SnapIndicator[]): void
Parameters
Name | Description |
---|---|
|
Returns
void
Prev
ShapeUtilNext
Stadium2d