@mocanvas/mocanvas · class
declare class SnapIndicatorOverlayUtil extends OverlayUtil<Editor, SnapIndicatorOverlayUtilOptions>Paints the snap guides editor.snaps published for the drag in flight.
Methods · 5
getDisplayValues(): SnapIndicatorOverlayUtilDisplayValuesThe colour to draw with, read fresh from the theme on every frame.
getGeometry(): Geometry2d | undefinedA guide exists only during a drag, so nothing can be pointing at it.
getOverlays(): TLSnapIndicatorOverlay[]isActive(): booleanrender(ctx: CanvasRenderingContext2D): voidProperties · 3
static options: SnapIndicatorOverlayUtilOptionsstatic type: stringstatic zIndex: numbermocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.