pattern @community/pattern-tx-dnd-kit-nested-tree

Tx Dnd Kit Nested Tree

dnd-kit nested tree drag with depth projection: flattens recursive tree to FlattenedItem[] (depth, parentId, id), projects drag depth from pointer transform.…

Skill
@community
Domain
frontend-design
Version
1.0.0
Quality
0.0
Edges
0 out · 0 in
Tokens
102/923/1814
$ aoe install @community/pattern-tx-dnd-kit-nested-tree

Projection

Always in _index.xml · the agent never has to ask for this.

TxDndKitNestedTree [pattern] v1.0.0

dnd-kit nested tree drag with depth projection: flattens recursive tree to FlattenedItem[] (depth, parentId, id), projects drag depth from pointer transform.x divided by indentation (default 50px), clamps projected depth with getProjection() to prevent illegal nesting, removes descendants during drag and re-attaches via buildTree() on dragEnd.

Source

aoe-engine/examples/frontend-design/primes/compiled/@community/pattern-tx-dnd-kit-nested-tree/atom.yaml