问题标签 [gojs]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
gojs - Auto position nodes in statechart in GOJS
I want to have "loc" value (positioning value eg. loc = "10 10") automatically calculated for statechart according to number of nodes in GOJS. Is there any specific attributes or commands to do it ?
javascript - Diagram.contextMenu 值不是 Adornment 的实例
contextMenu
我对 a on my Go有以下定义diagram
但是,当我写这个时,我收到以下错误:
情况究竟如何?
这是我的定义SeatingMapGraphicsRef
最后,这里是 ContextMenus 上的参考页面,我从中获得了 contextMenu 的定义diagram
。
gojs - 围棋 | 如何检索所选节点的数组?
我正在使用 GoJs Flow 构建器,并且在单击菜单内的按钮(右键单击对象时打开)时,我一直在尝试提醒所选节点(蓝色节点)的 ID:
也就是说,我希望它在单击“警报 ID”时提醒“1,2,3”。
任何帮助将不胜感激!
javascript - How to make groups invisible but their contents visible in gojs?
I've followed go.js example (http://gojs.net/latest/intro/layers.html) of using layers and now I want to modify it, so I can assign all groups to the same new layer while keeping the contents of the group in a separate layer. This seems to be working, as I can see, that depending on addLayerBefore
or addLayerAfter
being called the group overlay is displayed in front or behind the group contents. Now unfortunately, when I set the group layer invisible the group contents also become invisible. This is bad, as my whole idea to put the group and its contents to the separate layers, was in order to be able to add button, that toggle displaying group overlay, while keeping group contents always visible. Is there any way to achieve this functionality?
javascript - 链接上的 GoJS 流程图文本
我正在尝试在链接上添加文本,以便创建问答系统。我发现 GoJS 的流程图最适合这项任务。
我正在尝试升级此示例: http: //gojs.net/latest/samples/flowchart.html
链接上的文本示例:http: //gojs.net/latest/samples/stateChart.html
有没有办法在第一个示例中的链接上添加文本?
gojs - GoJS- 高亮基于 JSON 的 GOJS 图链接
我如何突出显示 GoJS 图表链接。
请参阅下图我需要显示“货物运输活动”以“检查是否需要额外保险活动”路径链接颜色应为红色。
铰链颜色应为黑色。
我试图理解下面的例子。 http://gojs.net/latest/extensions/BPMN.html
如何实现这一点以及我需要在输入 JSON 中修改什么。
javascript - 在 GoJs 中使用模板显示 TreeView
这是我第一次在 GoJs 上工作。我很确定这是很有可能的。这就是我在我的网页中想要的。我能够重现它。
http://gojs.net/latest/samples/records.html
我想在上面链接的两个面板中都低于树视图。
http://gojs.net/latest/samples/treeView.html
我该如何实施?
javascript - GoJS 自定义节点保存默认值
基于示例http://gojs.net/latest/samples/flowchart.html,我创建了如下所示的自定义节点模板。
问题是调用的保存按钮(save() 函数)
仅将默认值保存到 json 字符串。位置和链接等其他内容已正确保存。我的自定义模板是否有问题,或者如何保存对图中节点值的更改?