mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
Style arrow markers with current narrative style
This commit is contained in:
committed by
Lachlan Kermode
parent
470ef65617
commit
028429a975
@@ -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)';
|
||||
|
||||
Reference in New Issue
Block a user