Default routing-trait classifiers covering the kit's built-in shape
tools (KIT_SHAPE_KINDS). Each entry matches data.kind === '<name>'
— the convention demos use when they explicitly tag scene data with a
routing-kind string. The routing trait's default values happen to
mirror the shape trait's by name; the two traits remain independent
— a consumer can register routing kinds that have no matching shape
painter (e.g. 'group', 'sticky-note').
Lives in the canvas layer (next to the builtin shape tools it mirrors)
rather than core/scene: the generic routing machinery (NodeRouting)
is core, but this default population depends on the canvas-layer
KIT_SHAPE_KINDS, so core must not own it.
Consumers using the kit's standard data shape spread
defaultNodeRouting into their <SceneCanvas routing={...}> prop;
consumers whose data carries no kind field but follows the kit's
common shapes ({ path }, { text }, { image }) should prefer
inferredNodeRouting below, which SceneCanvas applies automatically
when routing is unset.
In lockstep with KIT_SHAPE_KINDS by construction (derived via .map).
Default routing-trait classifiers covering the kit's built-in shape tools (
KIT_SHAPE_KINDS). Each entry matchesdata.kind === '<name>'— the convention demos use when they explicitly tag scene data with a routing-kind string. The routing trait's default values happen to mirror the shape trait's by name; the two traits remain independent — a consumer can register routing kinds that have no matching shape painter (e.g.'group','sticky-note').Lives in the canvas layer (next to the builtin shape tools it mirrors) rather than
core/scene: the generic routing machinery (NodeRouting) is core, but this default population depends on the canvas-layerKIT_SHAPE_KINDS, socoremust not own it.Consumers using the kit's standard data shape spread
defaultNodeRoutinginto their<SceneCanvas routing={...}>prop; consumers whose data carries nokindfield but follows the kit's common shapes ({ path },{ text },{ image }) should preferinferredNodeRoutingbelow, which SceneCanvas applies automatically whenroutingis unset.In lockstep with
KIT_SHAPE_KINDSby construction (derived via.map).