问题标签 [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.

0 投票
2 回答
1875 浏览

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 ?

0 投票
1 回答
512 浏览

javascript - Diagram.contextMenu 值不是 Adornment 的实例

contextMenu我对 a on my Go有以下定义diagram

但是,当我写这个时,我收到以下错误:

情况究竟如何?

这是我的定义SeatingMapGraphicsRef

最后,这里是 ContextMenus 上的参考页面,我从中获得了 contextMenu 的定义diagram

http://gojs.net/latest/intro/contextMenus.html

0 投票
1 回答
1745 浏览

gojs - 围棋 | 如何检索所选节点的数组?

我正在使用 GoJs Flow 构建器,并且在单击菜单内的按钮(右键单击对象时打开)时,我一直在尝试提醒所选节点(蓝色节点)的 ID:

如何检索选定节点的数组

也就是说,我希望它在单击“警报 ID”时提醒“1,2,3”。

任何帮助将不胜感激!

0 投票
1 回答
3012 浏览

javascript - GOJS 的家谱图中一个孩子的多个父母

如何在 GOJS 的家谱图中为子节点添加多个父节点。是否有任何参数或任何代码行可以这样做?

我想生成如下图。

在此处输入图像描述

0 投票
1 回答
339 浏览

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?

0 投票
2 回答
270 浏览

javascript - 链接上的 GoJS 流程图文本

我正在尝试在链接上添加文本,以便创建问答系统。我发现 GoJS 的流程图最适合这项任务。

我正在尝试升级此示例: http: //gojs.net/latest/samples/flowchart.html

链接上的文本示例:http: //gojs.net/latest/samples/stateChart.html

有没有办法在第一个示例中的链接上添加文本?

0 投票
1 回答
417 浏览

gojs - GoJS 自动对齐链接?

创建图表后是否可以强制执行某种自动对齐?

我使用该go.Model.fromJson()方法创建这样的边缘:

之后我的图表如下所示:

在此处输入图像描述

那么我们可以添加某种机制来尝试解决这个问题吗?

0 投票
1 回答
941 浏览

gojs - GoJS- 高亮基于 JSON 的 GOJS 图链接

我如何突出显示 GoJS 图表链接。

请参阅下图我需要显示“货物运输活动”以“检查是否需要额外保险活动”路径链接颜色应为红色。

铰链颜色应为黑色。

图像文件

我试图理解下面的例子。 http://gojs.net/latest/extensions/BPMN.html

如何实现这一点以及我需要在输入 JSON 中修改什么。

0 投票
0 回答
93 浏览

javascript - 在 GoJs 中使用模板显示 TreeView

这是我第一次在 GoJs 上工作。我很确定这是很有可能的。这就是我在我的网页中想要的。我能够重现它。

http://gojs.net/latest/samples/records.html

我想在上面链接的两个面板中都低于树视图。

http://gojs.net/latest/samples/treeView.html

我该如何实施?

0 投票
1 回答
648 浏览

javascript - GoJS 自定义节点保存默认值

基于示例http://gojs.net/latest/samples/flowchart.html,我创建了如下所示的自定义节点模板。

问题是调用的保存按钮(save() 函数)

仅将默认值保存到 json 字符串。位置和链接等其他内容已正确保存。我的自定义模板是否有问题,或者如何保存对图中节点值的更改?