Releases: dash14/v-network-graph
Releases · dash14/v-network-graph
v0.5.1
v0.5.0
Features
- Add the ability to select paths.
- 👉 example
- Add support for dynamically changing the appearance of a path when its hover/selection state changes.
- 👉 example
- Add support for z-order control of paths as well as nodes and edges.
- 👉 example
- Add support for catching new path-related events with event-handlers.
"path:pointerover"
,"path:pointerout"
,"path:pointerdown"
,"path:pointerup"
,"path:select"
- Please see the reference for details.
- Purge the dependency on victor (2D vector maths library). (#6)
BREAKING CHANGES
-
The format for specifying the path will be changed as follows.
For the time being, the old format can be used, but it is deprecated.-
The old format (DEPRECATED)
// DEPRECATED const paths = [ { edges: ["edge1", "edge2"] }, { edges: ["edge2", "edge3"] }, ]
-
The current format
// Specify as Object with Path ID. const paths = { path1: { edges: ["edge1", "edge2"] }, path2: { edges: ["edge2", "edge3"] }, }
-
v0.4.2
Feature
- Add the feature to specify the z-index of nodes and edges in config.
- New config items:
configs.node.zOrder.*
configs.edge.zOrder.*
- Live example
- New config items:
v0.4.1
v0.4.0
Features
-
Add the following new events that can be captured with the event handler.
- "view.dblclick"
- "node:dblclick"
- "edge:dblclick"
- "path:dblclick"
For more information, please refer to the reference and example.
-
Add the following new configuration items.
- view.doubleClickZoomEnabled
- view.mouseWheelZoomEnabled
BREAKING CHANGES
- Change the event object type of the following events from PointerEvent to MouseEvent.
- "view:click"
- "node:click"
- "edge:click"