问题标签 [jointjs]

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 投票
1 回答
1749 浏览

node.js - 解释或演示 JointJS 和 Node.js 之间的集成

一年后我又回到了 JointJS,我看到它现在声称某种 Node.js 支持或兼容性。我正在使用 Node.js,想知道是否可以利用此功能。是否有一个教程可以引导我完成这个,或者有人可以解释一下 Node.js 模型集成为 JointJS 提供了什么?

http://www.jointjs.com/声称“NodeJS 支持”。Git 提交日志包含诸如“为 NodeJS 环境创建测试”之类的注释。

0 投票
2 回答
1085 浏览

jointjs - JointJS: Inspector doesn't edit link label?

I'm working on a Flowchart editor and I want the ui.inspector to edit labels on links.

I did the following:

However, when I edit a link it shows in the JSON output:

but doesn't actually render on the link in the stencil.

I think the problem is with the { "0": part the inspector adds. I want to remove that and replace with it [ ] so the output will be

What should I do ??

0 投票
1 回答
1259 浏览

jointjs - JOINTJS:在链接中自引用形状

我想在链接中自我引用一个形状。基本上链接的源和目标是相同的。

它正在工作,但链接被形状隐藏: https ://imageshack.com/i/f2mu7jp

这是我想做的: https ://imageshack.com/i/mujp9lp

我知道我可以在链接的定义中使用“顶点”,但我不知道起点和终点的 XY 位置

如何获得起点和终点的位置?

谢谢

0 投票
2 回答
3115 浏览

jointjs - 新手:使用jointjs的hello world

您好,我正在尝试使用 JointJS 库执行 Hello world 应用程序,如下所示: http ://www.jointjs.com/tutorial#hello-world 我已经下载了joint.js 和joint.css 文件我已经复制了HelloWorld 教程中给出的代码在 html 文件中并从 firefox 浏览器 (26.0) 访问它但它没有按预期工作并在教程中显示。预期:应该有两个带有链接的框。实际:浏览器上没有任何内容。Ater 调试错误为:joint.js 中的“NS_ERROR_FAILURE:”:

代码是:

问候兰加纳特

0 投票
1 回答
1840 浏览

jointjs - 联合 JS - 检测边框单击/调整联合 Js 元素的大小

有什么方法可以检测元素边框的点击,我想给元素写调整大小函数,例如矩形,即当点击矩形的边框时调用调整大小函数,同样我无法追踪单击矩形的边框,任何人都可以帮忙。

提前致谢!

真由理

0 投票
2 回答
9004 浏览

jointjs - JointJS creating custom Shapes, Diamond, Hexagon

I m new to jointJS, I need to create custom shapes using JointJS, I have tried creating the diamond shape using the Rectangle, making its height and width same, and then rotate by 45 degrees as follows,

However, the text present inside the rectangle also gets rotated, Any Ideas how can i proceed.... Also I need to create hexagon with a label... Any help will be much appreciated ....

Thanks In Advance,

Mayuri

0 投票
1 回答
2967 浏览

javascript - 你好世界不能在带有jointjs的html中正常工作?

我是 html 和 joint.js 库的初学者。我有这段代码,一旦我将它保存为 html 在我的笔记本电脑上,它应该绘制 2 个连接的矩形,但浏览器中没有出现任何内容。我下载了许多库并将它们放在具有 html 页面的同一个文件夹中,但也没有出现任何内容。

我该怎么办?我可以将我想在 html 代码中使用的库放在哪里?

我下载的库是:

  • 骨干.js
  • 核心.js
  • 几何.js
  • 联合.all.css
  • 联合.all.js
  • 联合.all.min.css
  • 联合.all.min.js
  • 联合.css
  • 联合.dia.cell.js
  • 联合直径元素.js
  • 联合直径图.js
  • 联合.dia.link.js
  • 联合.dia.paper.js
  • 联合.js
  • 联合.min.css
  • 联合最小.js
  • 关节.shapes.devs.js
  • 关节.shapes.devs.min.js
  • 关节形状.erd.js
  • 关节形状.erd.min.js
  • 关节形状.fsa.js
  • 关节形状.fsa.min.js
  • 关节形状.org.js
  • 关节形状.org.min.js
  • jQuery.js
  • jquery.sortElements.js
  • lodash.js
  • raphael-min.js
  • 拉斐尔.js
  • 矢量化器.js

    /li>

感谢你们所有人.. 在我将库的来源更改为网站 URL 后,该程序现在正在运行。如果我使用我在计算机上下载的一次,它就不能再工作了:

0 投票
1 回答
1691 浏览

jointjs - 我怎样才能得到joint.ui.stencil.js 插件??

我找不到joint.ui.stecil.js 插件。

谁能建议我如何获得上述插件?

谢谢,齐亚

0 投票
3 回答
5251 浏览

javascript - JointJS:Hello World 示例不起作用

当我尝试来自 JointJS 站点的 Hello World 示例时,我总是看到此异常:

这是代码:

我看到这里已经针对同一个问题提出了另一个问题,但是那里给出的解决方案不相关,因为我已经有一个用于纸质对象的 div 元素。

0 投票
1 回答
2323 浏览

javascript - JointJS端口定位

如何获取模型对象顶部和底部的端口?

我看到端口总是在模型的左侧和右侧创建。我需要它在顶部和底部。

我不想使用旋转变换,因为它也会改变标签的方向。