SnapManager

See source code
Table of contents
class SnapManager {}

Constructor

Constructs a new instance of the SnapManager class

Parameters

NameDescription

editor

Editor

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

NameDescription

indicators

Returns

void

Prev
ShapeUtil
Next
Stadium2d