javascript - GO JS 撤消显示错误

标签 javascript jquery gojs

萨拉蒙·阿勒库姆

当我使用 GOJS Undo使用我的代码的命令操作

diag.commandHandler.undo();

它显示我在浏览器控制台中提到的错误

property set error: Error: Picture.element must be an instance of Image, Canvas, or Video.

以及在使用 Redo 时使用 Undo diag.commandHandler.redo(); 函数 然后节点数据数组 diagram.model.nodeDataArray; 给出 Null

谁能确定根本原因是什么

谢谢

最佳答案

这是库中的一个错误,已在 1.5.14 版本中修复。

感谢您报告错误。

关于javascript - GO JS 撤消显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33933390/

相关文章:

检查单选按钮是否被选中的 JavaScript 函数

javascript - 将我的 javascript 日期时间从 PST 转换为 UTC

javascript - 定位动态 ID 并隐藏 div

javascript - 将特定元素移动到 GoJS 中的视口(viewport)中

javascript - 从对象中删除未定义的值

javascript - 使用 javascript 将值插入数组

javascript - 是否可以使用 jQuery 检索 Facebook 状态?

javascript - 没有jquery ui的可拖动: how to stop dragging the not-draggable and type-able elements?

javascript - 在Gojs中编辑滚动表行中的任何文本时如何获取行值?