[英]arbor.js for annotated illustration
I'm hoping to use arbor.js as a way of creating annotated illustrations. 我希望使用arbor.js作为创建带注释的插图的方式。
The plan: 计划:
var data = {
nodes:{
brain-position:{},
brain-text:{'color':'green','shape':'dot','label':'brain'},
mouth-position:{},
mouth-text{'color':'green','shape':'dot','label':'mouth'},
},
edges:{
brain-position:{ brain-text },
mouth-position:{mouth-text}
}
};
sys.graft(data);
The problems i'm having is that when I try to create a statically positioned nodeBox eg. 我遇到的问题是,当我尝试创建静态放置的nodeBox时。 nodeBoxes[node.name] = [50,50, w,w]
it breaks the link to other linked nodes. nodeBoxes[node.name] = [50,50, w,w]
断开到其他链接节点的链接。
I'm tinkering with halfvis/src/renderer.js file from the downloaded arbor file. 我正在从下载的Arbor文件中修改halfvis / src / renderer.js文件。
Many thanks 非常感谢
EDIT 编辑
Below is an additional image that hopefully visualises the functionality I'm attempting. 下面是另外一张图片,希望能形象化我正在尝试的功能。 Probably should have done this first :) 大概应该先这样做:)
nodeBoxes
, in the halfvis example, is an array used to work out where to start drawing edges so the arrows don't overlap with the boxes - is that what you're using it for? nodeBoxes
,在halfvis例子,是用来工作从哪里开始绘制边缘,使箭头不与箱重叠的阵列-是你使用它是为了什么?
Are you trying to find a way of forcing the 'brain-position' node inside an area? 您是否正在尝试强迫区域内的“大脑位置”节点?
Please provide a bit more detail of what you're planning and we can probably do this. 请提供您计划的更多详细信息,我们可能会做到这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.