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
NameDescription

editor

Editor
References

Editor


Properties

editor

Public readonly property

Signature
readonly editor: Editor
References

Editor


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

TLShapeId


getIndicators()

Public method

Signature
getIndicators(): SnapIndicator[]
References

SnapIndicator


getSnappableShapes()

Public method

Signature
getSnappableShapes(): Set<TLShapeId>
References

TLShapeId


getSnapThreshold()

Public method

Signature
getSnapThreshold(): number

setIndicators()

Public method

Signature
setIndicators(indicators: SnapIndicator[]): void
Parameters
NameDescription

indicators

SnapIndicator[]
Returns
void
References

SnapIndicator


SnapIndicatorStadium2d