SnapManager
Table of contents
Public class
Signature
class SnapManager {}
Source
packages/editor/src/lib/editor/managers/SnapManager/SnapManager.ts
Constructor
Public constructor
Constructs a new instance of the SnapManager
class
Parameters
Name | Description |
---|---|
|
|
References
Properties
editor
Public readonly property
Signature
readonly editor: Editor
References
handles
Public readonly property
Signature
readonly handles: HandleSnaps
shapeBounds
Public readonly property
Signature
readonly shapeBounds: BoundsSnaps
Methods
clearIndicators()
Public method
Signature
clearIndicators(): void
getCurrentCommonAncestor()
Public method
Signature
getCurrentCommonAncestor(): TLShapeId | undefined
References
getIndicators()
Public method
Signature
getIndicators(): SnapIndicator[]
References
getSnappableShapes()
Public method
Signature
getSnappableShapes(): Set<TLShapeId>
References
getSnapThreshold()
Public method
Signature
getSnapThreshold(): number
setIndicators()
Public method
Signature
setIndicators(indicators: SnapIndicator[]): void
Parameters
Name | Description |
---|---|
|
|
Returns
void
References