• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

catmaid / CATMAID / 2853
47%
master: 45%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 06 Jan 2017 03:02PM UTC
Jobs 1
Files 81
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2853

push

travis-ci

tomka
Graph widget: fix SVG export and add SVG factory

The recent update of Cytoscape.js broke SVG export. Cytoscape.js changed
their CanvasRenderer quite a bit and so our hacks to allow SVG export
had to be updated. Instead of adding yet another heack to make SVG
export work through SVGKit, a custom SVG factory has been created, which
is used to create SVG documents manually. It currently supports basic
text, circle, line and polygon geometries plus labels. This allows us to
create Graph Widget SVGs ourselves and to remove MochiKit along with
SVGKit as a dependency.

The following Graph Widget elements have been tested:

- regular nodes, circle (with label)
- group node, hexagon (with label)
- directed edge, line (with label)
- split node edges
- different colors

Labels are optional, but are centered on top of an element. The
generated SVG file groups nodes/edges along with their labels, this
makes later editing easier. Color, font and font-size are obtained from
Cytoscape.js.

Node that the Graph Widget uses this SVG factory by making use of some
of Cytoscape.js' internal renderer cache. For the sake of quickly fixing
the broken SVG export, our own version of the math (e.g. where are Bezer
control points) has been skipped. This can be done later if we want to
be more independent from Cytoscape.js or if changes in their renderer
break our export again.

Fixes catmaid/CATMAID#1450

5918 of 12479 relevant lines covered (47.42%)

0.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2853.1 06 Jan 2017 03:02PM UTC 0
47.42
Travis Job 2853.1
Source Files on build 2853
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2853
  • 9534c89b on github
  • Prev Build on maintenance/2016.12.16 (#2788)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc