Skip to content

Commit 274a4a7

Browse files
author
Jamie Hoover ⚔
committed
Differentiate Stop Icon
Changes stop icons from octagon to square. Closes ninja#49.
1 parent 0c45c5d commit 274a4a7

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/ninjaui.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -658,12 +658,20 @@
658658
'stroke-width': 1
659659
}).appendTo($g);
660660
} else if (options.value === 'stop') {
661-
$polygon.clone().attr({
661+
$rect.clone().attr({
662662
fill: 'none',
663-
points: '1,11 1,5 5,1 11,1 15,5 15,11 11,15 5,15',
664-
'stroke-width': 2
663+
height: 14,
664+
'stroke-width': 2,
665+
width: 14,
666+
x: 1,
667+
y: 1
668+
}).appendTo($g);
669+
$rect.attr({
670+
height: 10,
671+
width: 10,
672+
x: 3,
673+
y: 3
665674
}).appendTo($g);
666-
$polygon.attr('points', '3,10 3,6 6,3 10,3 13,6 13,10 10,13 6,13').appendTo($g);
667675
} else if (options.value === 'yield') {
668676
$polygon.clone().attr({
669677
fill: 'none',

0 commit comments

Comments
 (0)