GoJS在html vue项目中的使用,github地址:https://github.com/cag2050/gojs_demo
GoJS在vue-cli 2.x 项目中的使用,github地址:https://github.com/cag2050/vue_cli_2_gojs_demo
GoJS 的事件,事件说明官方地址:https://gojs.net/latest/intro/events.html
事件 | 说明 |
---|---|
BackgroundSingleClicked | 在背景上点击,发生的事件 |
textEdited | node节点的文本编辑完之后,发生的事件 |
node和link的事件,写在node和link的定义里,比如:mouseEnter、mouseOver、mouseLeave。
Mouse-over-like event properties include GraphObject.mouseEnter
, GraphObject.mouseOver
, and GraphObject.mouseLeave
. But only Diagram.mouseOver
applies to the diagram.