Commit e9b30959 authored by Jörg Richter's avatar Jörg Richter

0.16 Release

parent 68fc824b
Pipeline #2694 passed with stage
in 2 seconds
......@@ -4,9 +4,26 @@ A DeepaMehta 5 topicmap renderer as a composable GUI component.
## Version History
**0.16** -- Jan 29, 2019
* API:
* Promise returned by `renderTopicmap` action resolves with topicmap
* Context commands: caller can provide function to disable commands dynamically
* Fixes:
* No context menu for "edge handle" nodes
* Pinned assocs which have assoc players
* Remove assocs with assoc players from client state on hide/delete
* Client-sync when revealing assocs with assoc players
* `addAssocToTopicmap` message contains assoc view props
* Make async operations more robust
* Chore:
* Adapt to `dm5` library and `cytoscpae-edge-connections`
* Internal refactoring
* Change license to `GPL-3.0-or-later`
**0.15** -- Jan 5, 2019
* Edges can connect edges (utilizing `cytoscpae-edge-connections`)
* Assocs can connect other assocs (utilizing `cytoscpae-edge-connections`)
* New create-association gesture: drawing instead of drag'n'drop (utilizing `cytoscape-edgehandles`)
* Rename event `topic-drop-on-topic` -> `assoc-create`
......@@ -89,4 +106,4 @@ A DeepaMehta 5 topicmap renderer as a composable GUI component.
------------
Jörg Richter
Jan 5, 2019
Jan 29, 2019
{
"name": "dm5-cytoscape-renderer",
"version": "0.15.0",
"version": "0.16.0",
"description": "A DeepaMehta 5 topicmap renderer as a composable GUI component",
"author": "Jörg Richter",
"license": "GPL-3.0-or-later",
......@@ -13,7 +13,7 @@
"cytoscape-cose-bilkent": "^4.0.0",
"cytoscape-cxtmenu": "^3.0.2",
"cytoscape-edgehandles": "^3.5.0",
"cytoscape-edge-connections": "https://github.com/jri/cytoscape-edge-connections.git",
"dm5-object-renderer": "https://github.com/jri/dm5-object-renderer.git"
"cytoscape-edge-connections": "0.3.3",
"dm5-object-renderer": "0.13.0"
}
}
......@@ -57,8 +57,8 @@ export default class CytoscapeView {
renderTopicmap (topicmap, _selection) {
selection = _selection
return svgReady.then(() => {
// Note: the cytoscape-amd extension expects an aux node still to exist at the time its edge is removed.
// So we must remove the edges first.
// Note: the cytoscape-edge-connections extension expects an aux node still to exist at the time its edge is
// removed. So we must remove the edges first.
cy.remove('edge')
cy.remove('node')
cy.add(topicmap.filterTopics(viewTopic => viewTopic.isVisible()).map(cyNode))
......
......@@ -671,8 +671,8 @@ function initPos (viewTopic) {
pos.x = p.x + 60
pos.y = p.y + 120
} else {
pos.x = 100
pos.y = 100
pos.x = 200
pos.y = 240
}
viewTopic.setPosition(pos)
}
......@@ -922,7 +922,7 @@ function isSelected (objectId) {
// copy in dm5-cytoscape-renderer.vue
// copy in dm5-detail-layer.vue
// copy in cytoscape-amd.js
// copy in cytoscape-edge-connections (index.js)
function eleId (ele) {
// Note: Cytoscape element IDs are strings
return Number(ele.id())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment