@mocanvas/editor · interface

TLEditStartInfo

interface TLEditStartInfo

How an edit was asked for, handed to ShapeUtil.canEdit so a util can accept some routes into editing and refuse others.

The distinction is the whole point: a frame-like shape has a hollow interior, so a plain double click on it can only have landed on its heading, while the corner and edge gestures mean "fit to content" and are a different question entirely.


Properties · 1

type: "unknown" | "press_enter" | "click" | "double-click" | "click-header" | "double-click-corner" | "double-click-edge" | (string & {})

Mentioned here

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.