weasel API - v0.8.0
    Preparing search index...

    Variable inferredNodeRoutingConst

    inferredNodeRouting: readonly NodeRoutingEntry[] = ...

    Shape-inferred routing-trait classifiers used when a consumer doesn't pass routing to <SceneCanvas>. Produces semantic kinds based on data-shape hints rather than an explicit data.kind tag:

    • 'text' when data.text is a string (text-edit mode entry)
    • 'path' when data.path is present (path-edit mode entry)
    • 'image' when data.image is present

    Order matters: 'text' beats 'path' so an SVG-imported text node carrying a fallback path routes to text-edit. Consumers wanting different precedence pass their own routing array.

    Without this default the kind classifier is undefined when routing is unset and every hit comes back as kind: 'unknown', silently breaking Hit.kind-based routing (e.g. modality's dispatchDoubleClickEntry).