samsha / graph.editor Goto Github PK
View Code? Open in Web Editor NEWHTML5拓扑图编辑器
HTML5拓扑图编辑器
images:[
{
name:"自定义",
images: [{
image: './dataImg/server.png',
properties: {size: {width: 30}}
},
{
image: './dataImg/exchange.png',
properties: {size: {width: 30}}
}]
}
]
我像上面这样写,会报错,说无法加载这个图片,但是图片路径是正确的。是必须要配置那个json文件么
一个小问题,导出图片时,如果设置为虚线,导出后默认改成了实线。
就是访问官网里的demo功能一切正常,但是如果把页面资源下载下来放到本地服务里就会出问题。
一开始使用正常,但是用着用着(时间很短,比如设置个名字,改变连线的颜色)图元啥的就不能编辑了,不能被选中,调整大小的框也不起作用了,比如把框拉大,但是元素并没有跟着变大;图元也不能拖动了,单击属性窗口也不出现了。。。等等。。。。求高手指点解决方法。
请问怎么添加自定义的图标呢?
在默认模式下,拖拽一个node出来后,点击选中,无法看到该node,但是当node与其他的图元有关系,不存在这个问题
请教一下,这个编辑器只能导入JSON文件,自己尝试了一下将PNG图片转化成SVG,SVG再转换成JSON,这样的JSON文件导入编辑器显示不出来,如果我想导入自己的图片进行编辑该怎么办?求大神指点,谢谢!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.