Commit 636b825c authored by Jörg Richter's avatar Jörg Richter

Fix Geomap model (needed by dm5-topicmap-panel contract)

See dmx-platform/dmx-platform#281
parent 9d453d0d
Pipeline #7836 passed with stage
in 3 seconds
This diff is collapsed.
......@@ -6,7 +6,7 @@ import typeCache from './type-cache'
import permCache from './permission-cache'
import utils from './utils'
console.log('[DMX] Client API 2019/08/06')
console.log('[DMX] Client API 2019/08/10')
export default {
......
......@@ -749,11 +749,17 @@ class Topicmap extends Topic {
return op
}
/**
* Note: if the topic is not in this topicmap nothing is performed.
*/
removeTopic (id) {
// reactivity is required to trigger "visibleTopicIds" getter (module dm5-cytoscape-renderer)
Vue.delete(this._topics, id)
}
/**
* Note: if the assoc is not in this topicmap nothing is performed.
*/
removeAssoc (id) {
// reactivity is required to trigger "visibleAssocIds" getter (module dm5-cytoscape-renderer)
Vue.delete(this._assocs, id)
......@@ -931,11 +937,20 @@ class ViewAssoc extends viewPropsMixin(Assoc) {
}
class Geomap extends Topic {
constructor (geomap) {
super(geomap.topic)
this.viewProps = geomap.viewProps
this.geoCoordTopics = geomap.geoCoordTopics // instantiating dm5.Topic objects not required at the moment
}
removeTopic (id) {
// TODO; skeleton needed by dm5-topicmap-panel contract
}
removeAssoc (id) {
// TODO; skeleton needed by dm5-topicmap-panel contract
}
}
export {
......
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