问题标签 [mxgraph]
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.
java - mxGraph 编辑器 - 创建节点时触发事件
我正在使用 JGraph 附带的示例 mxGraph 编辑器。我有一个方法,每次创建新节点时都想调用它。你知道怎么做吗?
我觉得它与 mxGraphComponent 有关,但我不知道该怎么做。
user-interface - 我可以使用 HP 的 Quick Test Professional 测试 mxGraph ui 吗?
嗨,
是否可以使用 Quick Test Professional 通过 UI 测试 mxGraphs?
javascript - 如何在边缘上方显示 MXGraph 顶点?
我正在使用 MX Graph 来帮助识别通过网站的关键内容路径。我已经设置好了,所以每个顶点代表网站上的一个页面,每个边代表一组从页面 A 到页面 B 的访问者。
一切都运行良好,除了边缘太多,我看不到最受欢迎的顶点。有没有办法将顶点下方的边缘分层?我尝试使用基本的分层系统,但这似乎打破了快速的有机布局。
javascript - 如何在 mxGraph 的 Iframe 中获取选定的单元格值?
我们如何在框架中获取选定的单元格值?我通过单击链接调用 iframe。在 Iframe 中,我想获取所选单元格的属性值。
javascript - 如何在 mxGraph 中使用弯曲边缘样式
最近发布的 mxGraph 添加了曲线作为边的样式。我希望这是一种边缘路由样式,但似乎不是。谁能给我看一个带有弯曲边缘的图的小例子?
javascript - 创建自定义连接
我想在两个节点之间创建一个特定的连接。该连接将具有图像。这可能吗?
我使用 mxGraph,javascript。
http://upload.wikimedia.org/wikipedia/commons/0/08/Simple_stock_and_flow_diagram.gif
对不起我的英语不好。谢谢。
mxgraph - mxGraph cell resize and graph layout
I'm having problems with resizing cells and built-in mxGraph layouts. If I put a cell on canvas, and I try to resize it, even for a pixel, it grows huge, something like 50000px x 30000px, so it streches my whole canvas, and of course it is unusable. If I load a graph from an xml file from the database, I can resize cells without any problems.
Similar thing happens with the built in layouts. I'd like to use compact tree layout (the reason I like it beacuse it aligns my whole horizontal). When I draw a graph and try to use that layout, my graph goes wild, also streching to 50000px x 30000 px (example dimensions, but the scroll is so tiny I can barely aim it with the mouse). If I load a graph from xml from a database, compact tree layout works perfect. But as soon as I add another cell in it, and try to use compact tree layout again, it goes wild, again.
I use absolute positioning for div which holds the canvas, as same as on the example here (http://jgraph.github.io/mxgraph/javascript/examples/editors/workfloweditor.html)
This is my css and html :
And this is my javascript for graph initialization (along with the couple of events, beacuse I'm not sure if they are the problem):
}
Any thoughts what the problem might be?
mxgraph - Graph does not render properly due to vertices overlap
Graph is not rendering properly because two vertex has the same co-ordinates hence the length of the edge between this two vertex is zero.Since edge's length is zero the x&y co-ordinates are set as NaN in mxParallelEdgeLayout.prototype.layout function.
How can I ensure vertices not to overlap and stay at least a certain distance from one another.Our application uses mxFastOrganicLayout layout and mxgraph version is 1.8.0.5.
mxgraph - 防止顶点被移动到组中
使用 mxGraph 版本 1.10.1.1
该图包含一个组和组外的一个顶点。基于顶点的属性,我将如何阻止用户将该节点拖入组中?
收听 mxEvent.CELLS_MOVED 似乎没有帮助,因为该事件没有应用于图表并且目标单元格还没有父组信息。我想除非事件被消耗掉。
是否有一种简单的方法可以防止移动完成,或者有没有一种方法可以在满足条件后回滚事务?
graph - 有什么方法可以在 JgraphX 中添加指南吗?
我看到可以在 mxGraph 的 javascript 版本中使用指南,我想知道在 Java 版本中是否有一些方法可以做到这一点?