Style arrow markers with current narrative style

This commit is contained in:
Franc Camps-Febrer
2018-12-17 08:20:37 +01:00
committed by Lachlan Kermode
parent 470ef65617
commit 028429a975

View File

@@ -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)';