From 028429a975351b8fc15a3a61d6cda5ff0ac43517 Mon Sep 17 00:00:00 2001 From: Franc Camps-Febrer Date: Mon, 17 Dec 2018 08:20:37 +0100 Subject: [PATCH] Style arrow markers with current narrative style --- src/js/map/map.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/map/map.js b/src/js/map/map.js index 827810d..dc89045 100644 --- a/src/js/map/map.js +++ b/src/js/map/map.js @@ -380,6 +380,11 @@ Stop and start the development process in terminal after you have added your tok .exit() .remove(); + if (app.narrative !== null) { + d3.selectAll('#arrow path') + .style('fill', getNarrativeStyle(app.narrative.id).stroke); + } + const getMarker = (d) => { if (!d || app.narrative === null) return 'none'; if (d.id !== app.narrative.id) return 'url(#arrow-off)';