Skip to content

v0.10.4

Choose a tag to compare

@github-actions github-actions released this 11 Nov 14:55
Immutable release. Only release title and notes can be modified.
cd5b980

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.margin along it instead of dropping the loop.
    • A path passing a counterclockwise loop apart from its node no longer draws only a tiny arc.
  • 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: false emitting 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.
  • Fix the selection of summarized edges. (#384, #385)
    • Edges that are not selectable are no longer selected with the others, and a numeric selectable is 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.
  • Fix a TypeError when selectedNodes, selectedEdges or selectedPaths names an object added in place to non-reactive data, such as markRaw nodes, or an inherited name such as constructor. (#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 when configs.view.autoPanOnResize is false. (#377)
    • The background grid stopped at the old size, and turning autoPanOnResize on later panned from a stale size.
  • Fix configs.view.fitContentMargin strings 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.

Types

  • Fix TS4023 when using ref<vNG.Instance>() in a project that emits declarations (declaration: true). (#378, Issue #167)
    • The Props interfaces of the public components are now exported, so the generated declarations can name them.

Full Changelog: v0.10.3...v0.10.4