@mocanvas/editor · interface

IndicatorPathSource

interface IndicatorPathSource<T = never>

The two members of a shape util this module cares about.


Properties · 2

getIndicatorPath?(shape: T): TLIndicatorPathResult

The v5 hook: a canvas path in shape-local coordinates.

indicator?(shape: T): unknown

The v4 hook, kept working for utils that have not been ported.

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.