{"action":"closed","issue":{"url":"https://api.github.com/repos/emiliorizzo/vue-d3-network/issues/24","repository_url":"https://api.github.com/repos/emiliorizzo/vue-d3-network","labels_url":"https://api.github.com/repos/emiliorizzo/vue-d3-network/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/emiliorizzo/vue-d3-network/issues/24/comments","events_url":"https://api.github.com/repos/emiliorizzo/vue-d3-network/issues/24/events","html_url":"https://github.com/emiliorizzo/vue-d3-network/issues/24","id":298341719,"number":24,"title":"Issue with svgRenderer! toggling svg attributes.. the parameters were set but svg did not rerender the properties","user":{"login":"lim-enhui","id":13527348,"avatar_url":"https://avatars3.githubusercontent.com/u/13527348?v=4","gravatar_id":"","url":"https://api.github.com/users/lim-enhui","html_url":"https://github.com/lim-enhui","followers_url":"https://api.github.com/users/lim-enhui/followers","following_url":"https://api.github.com/users/lim-enhui/following{/other_user}","gists_url":"https://api.github.com/users/lim-enhui/gists{/gist_id}","starred_url":"https://api.github.com/users/lim-enhui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lim-enhui/subscriptions","organizations_url":"https://api.github.com/users/lim-enhui/orgs","repos_url":"https://api.github.com/users/lim-enhui/repos","events_url":"https://api.github.com/users/lim-enhui/events{/privacy}","received_events_url":"https://api.github.com/users/lim-enhui/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-19T16:49:14Z","updated_at":"2018-02-23T08:25:22Z","closed_at":"2018-02-23T08:25:22Z","author_association":"NONE","body":"`   ```\r\n data () {\r\n      return {\r\n        nodes: [\r\n          { id: 1, name: 'my awesome node 1' , visible: true},\r\n          { id: 2, name: 'my node 2', visible: true},\r\n          { id: 3, name:'orange node', _color: 'orange', visible: true},\r\n          { id: 4, _color: '#0022ff', visible: true},\r\n          { id: 5 , visible: true},\r\n          { id: 6 , visible: true}\r\n        ],\r\n        links: [\r\n          { sid: 1, tid: 2, visible: true },\r\n          { sid: 1, tid: 3, visible: true },\r\n          { sid: 1, tid: 3, visible: true },\r\n          { sid: 1, tid: 4, visible: true },\r\n          { sid: 1, tid: 5, visible: true },\r\n          { sid: 1, tid: 6, visible: true }\r\n        ],\r\n        nodeSize:100,\r\n        canvas:false\r\n      }\r\n    },\r\n    methods: {\r\n      findthisNode (nodeId) {\r\n        let result = utils.findNode(this.nodes, nodeId)\r\n        return result\r\n      },\r\n      selectNode (node) {\r\n        this.findthisNode(node.id)\r\n      },\r\n      nodeClick (event, node) {\r\n        this.selectNode(node)\r\n        let resultofLinks = utils.findLinks(node.id, this.links)\r\n        resultofLinks.forEach((element) =>{\r\n          if (element.visible == true) {\r\n            console.log('element is true, attempting setting false')\r\n            element.visible = false\r\n            element['_svgAttrs'] = {'display': 'none'}\r\n          } else {\r\n            console.log('element is false, attempting setting true')\r\n            element.visible = true\r\n            element['_svgAttrs'] = {'display': 'visible'}\r\n          }\r\n        })\r\n      }\r\n    },\r\n    computed: {\r\n      options(){\r\n        return{\r\n          force: 5000,\r\n          nodeSize: this.nodeSize,\r\n          nodeLabels: true,\r\n          canvas: this.canvas,\r\n          size: {w: undefined, h: undefined}\r\n        }\r\n      }\r\n    },\r\n    mounted () {\r\n      this.options.size.w = this.$el.clientWidth\r\n      this.options.size.h = this.$el.clientHeight\r\n    },\r\n    components: {\r\n      D3Network\r\n    }\r\n  }\r\n````"}}
{"actor":{"display_login":"lim-enhui"}}