kinimesi / cytoscape-svg

A Cytoscape.js extension to export the current graph view as an SVG.
https://kinimesi.github.io/cytoscape-svg
GNU General Public License v3.0
34 stars 5 forks source link

border not exported #12

Closed keszegh closed 4 months ago

keszegh commented 4 months ago

when i add to the node element an image background with 'background-image': svgpin_Url,

where earlier i have:

const svg_pin =  '<svg width="400" height="5" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M 90 0 v 1 h 220 v -1 z" fill="black"></path></svg>';
const svgpin_Url = encodeURI("data:image/svg+xml;utf-8," + svg_pin);

then when the svg is exported, the border line of the node is not exported anymore.

keszegh commented 4 months ago

i don't know what i've changed but now it started to work for me as expected.