Some way to have state scoped to the lifecycle of an editor. We do this a fair bit in the SDK, and it's ad-hoc every time..EditorStateworked well herecanTranslate&canDuplicatestyle flags. These operations don't really make sense for connections, but i can't disable them comprehensively.onHandleDragStart,onHandleDragComplete,onHandleDragCancel. Maybe some way of attaching state to these too? It'd be nice to have the full set for all of this genre of callback.cancelis important for state management.isCreatingShapeflag for handle draggingA better way to insert nodes into the state graph- More custom ways of controlling snapping & how snap lines render. Snap lines rather than points, maybe?
- Fast spacial querying e.g. "get me all shapes in this bounding box"
getIndices(n)returns n + 1 indices which feels very counter intuitive.- Generally I'd like an easier way to work with "multiplayer arrays" - objects where the keys are fractional indexes. I ended up writing some of my own helpers for this.
- A way to have things in geometry that don't contribute to
boundscalculations. I achieved this by marking them as labels, but that feels wrong maybe? A way to pass custom JSX in the place of icon names to anything that expects an icon- A canonical way (or at least an example) to have the size of an element derived from how it's rendered in the DOM.
- A better way of having geometry derived from the DOM (ie port locations).
- Hide resize handles when no selected items are resizable.
- Disable rotation?
A better way of doing vertical toolbarswith overflow
- API example showing inserting a state node
- "Ports" addon library