From 66c4cc0d7ef264fd58bd582025b11b1a07b1b5f2 Mon Sep 17 00:00:00 2001 From: Samuel Gratzl Date: Fri, 10 Jul 2020 11:29:29 +0200 Subject: [PATCH] fix style --- samples/euler.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/samples/euler.html b/samples/euler.html index a16df15..0399011 100644 --- a/samples/euler.html +++ b/samples/euler.html @@ -65,15 +65,19 @@ const atp = cy.nodes().filter(`[sbgnlabel = 'ATP']`); bb.addPath(atp, null, cy.nodes().diff(atp).left, { virtualEdges: true, - fillStyle: 'rgba(255, 0, 0, 0.2)', - strokeStyle: 'red', + style: { + fill: 'rgba(255, 0, 0, 0.2)', + stroke: 'red', + }, }); const edges = cy.$('node#glyph20').connectedEdges(); const nodes = edges.connectedNodes(); bb.addPath(nodes, edges, cy.nodes().diff(nodes).left, { virtualEdges: true, - fillStyle: 'rgba(70, 130, 180, 0.2)', - strokeStyle: 'steelblue', + style: { + fill: 'rgba(70, 130, 180, 0.2)', + stroke: 'steelblue', + }, }); });