在Cytoscape.js中为家谱样式化边缘 [英] Styling edges in Cytoscape.js for a Family Tree

查看:149
本文介绍了在Cytoscape.js中为家谱样式化边缘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Django的Family Tree应用程序,我正在尝试使用 http://js.cytoscape.org

I have a Family Tree application that uses Django and I am trying to use http://js.cytoscape.org for the UI.

我想在浪漫伙伴之间设置边缘样式,

http://www.eprintablecalendars.com/ images / arts-and-crafts / family-tree.jpg

这是您通常看到的(方形U)。

which is what you commonly see (the square-U).

我对Cytoscape.js完全陌生,还无法在文档或其他线程中找到任何答案。

I am completely new to Cytoscape.js, and haven't been able to find any answers in the docs or other threads.

推荐答案

您所描述的不是边缘,而是超边。超边缘具有多个来源和/或目标。您可以使用中间节点来模拟hyperedge,或者在2.5+版本中使用曲线样式:分段

What you're describing is not edges but hyperedges. A hyperedge has multiple sources and/or targets. You can simulate hyperedge with intermediary nodes or in your case curve-style: segments in 2.5+.

这篇关于在Cytoscape.js中为家谱样式化边缘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆