@mocanvas/mocanvas · class

SnapIndicatorOverlayUtil

declare class SnapIndicatorOverlayUtil extends OverlayUtil<Editor, SnapIndicatorOverlayUtilOptions>

Paints the snap guides editor.snaps published for the drag in flight.


Methods · 5

getDisplayValues(): SnapIndicatorOverlayUtilDisplayValues

The colour to draw with, read fresh from the theme on every frame.

getGeometry(): Geometry2d | undefined

A guide exists only during a drag, so nothing can be pointing at it.

getOverlays(): TLSnapIndicatorOverlay[]
isActive(): boolean
render(ctx: CanvasRenderingContext2D): void

Properties · 3

static options: SnapIndicatorOverlayUtilOptions
static type: string
static zIndex: number

mocanvas 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.