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).
Shape-inferred routing-trait classifiers used when a consumer doesn't pass
routingto<SceneCanvas>. Produces semantic kinds based on data-shape hints rather than an explicitdata.kindtag:'text'whendata.textis a string (text-editmode entry)'path'whendata.pathis present (path-editmode entry)'image'whendata.imageis presentOrder matters:
'text'beats'path'so an SVG-imported text node carrying a fallbackpathroutes to text-edit. Consumers wanting different precedence pass their ownroutingarray.Without this default the kind classifier is undefined when
routingis unset and every hit comes back askind: 'unknown', silently breakingHit.kind-based routing (e.g. modality'sdispatchDoubleClickEntry).