Repository navigation
v0.10.4
Immutable
release. Only release title and notes can be modified.
Bug Fixes
Drawing
- Fix paths at a self-loop. (#379, #380)
- A path that starts or ends at a loop now follows the loop instead of drawing a chord across the node, and takes
configs.path.marginalong it instead of dropping the loop. - A path passing a counterclockwise loop apart from its node no longer draws only a tiny arc.
- A path that starts or ends at a loop now follows the loop instead of drawing a chord across the node, and takes
- Fix several edges between nodes at the same position being drawn on top of each other. They are now drawn as parallel horizontal lines. (#389)
- Fix edges ending inside a rect node with rounded corners when the nodes overlap. (#382)
- Fix the corners of the focus ring around a rect node with rounded corners sitting closer to the node than its sides. (#391)
Pointer events and selection
- Fix a right click on the background emitting
"view:click"on Windows, where the context menu opens after the button is released. (#386) - Fix a press on a node with
draggable: falseemitting no"node:pointerup"when the pointer moved, and the drag events not pairing up. (#388)"node:dragend"is now emitted exactly once for each"node:dragstart", also when the node is removed or made undraggable during the drag.
- Fix
"path:click"and"path:dblclick"not being emitted for a path removed while it was pressed. (#394) - Fix clicks with the shift key on a different kind of object than the one selected. (#381)
- A shift double click there no longer emits
"*:dblclick"while its clicks are ignored. - When the selected kind allows only one (
selectable: 1) or nothing is selected, a shift click now acts as a plain click instead of being ignored.
- A shift double click there no longer emits
- Fix the selection of summarized edges. (#384, #385)
- Edges that are not
selectableare no longer selected with the others, and a numericselectableis no longer exceeded. A summarized edge is selected as a whole, or not at all when it has more edges than the limit. - A click on a summarized edge that is already selected keeps the rest of the selection, as on a single edge.
- Edges that are not
- Fix a
TypeErrorwhenselectedNodes,selectedEdgesorselectedPathsnames an object added in place to non-reactive data, such asmarkRawnodes, or an inherited name such asconstructor. (#383)- Such an ID is now dropped from the selection. Paths given as an object are passed to config callbacks as given, like nodes and edges.
View
- Fix
"view:resize"not being emitted whenconfigs.view.autoPanOnResizeisfalse. (#377)- The background grid stopped at the old size, and turning
autoPanOnResizeon later panned from a stale size.
- The background grid stopped at the old size, and turning
- Fix
configs.view.fitContentMarginstrings such as"12.5%"being cut down to whole numbers, and"-12"being rejected. (#390)- A string must now be a plain decimal number right before the unit. Forms such as
"12 px"are rejected with a warning.
- A string must now be a plain decimal number right before the unit. Forms such as
Types
- Fix TS4023 when using
ref<vNG.Instance>()in a project that emits declarations (declaration: true). (#378, Issue #167)- The
Propsinterfaces of the public components are now exported, so the generated declarations can name them.
- The
Full Changelog: v0.10.3...v0.10.4