Skip to content

Commit 045a804

Browse files
committed
Merge remote-tracking branch 'origin/master' into master
2 parents e11a21b + 8f8fb9e commit 045a804

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Render.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ public static function html(Graph $graph, array $params = []): string
104104
});
105105
</script>"
106106
: '',
107+
'<script>
108+
$(document).on("click", "path", e => {
109+
e.currentTarget.style.stroke = e.currentTarget.style.stroke ? "" : "red";
110+
});
111+
</script>',
107112
'</body>',
108113
'</html>',
109114
]);

0 commit comments

Comments
 (0)