Table of contents
class SnapManager {}

Constructor

Constructs a new instance of the SnapManager class

Parameters
NameDescription

editor

Editor

Properties

editor

readonly editor: Editor

handles

readonly handles: HandleSnaps

shapeBounds

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

SnapIndicator[]
Returns
void

ShapeUtilStadium2d