Skip to content

Commit 7052984

Browse files
committed
add backoff to arrow-up and arrow-bar-up
1 parent dfd34d6 commit 7052984

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/components/drawing/symbol_defs.js

+2
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ module.exports = {
583583
var ry = round(r * 2, 2);
584584
return align(angle, standoff, 'M0,0L-' + rx + ',' + ry + 'H' + rx + 'Z');
585585
},
586+
backoff: 1,
586587
noDot: true
587588
},
588589
'arrow-down': {
@@ -627,6 +628,7 @@ module.exports = {
627628
var ry = round(r * 2, 2);
628629
return align(angle, standoff, 'M-' + rx + ',0H' + rx + 'M0,0L-' + rx + ',' + ry + 'H' + rx + 'Z');
629630
},
631+
backoff: 1,
630632
needLine: true,
631633
noDot: true
632634
},
Loading

test/image/mocks/z-marker-standoff_auto-backoff.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66
"width": 5
77
},
88
"marker": {
9+
"line": {
10+
"width": 2,
11+
"color": "darkblue"
12+
},
913
"standoff": [5, 20, null, 20, 10],
1014
"angleref": "previous",
11-
"symbol": "arrow",
15+
"symbol": "arrow-bar-up",
1216
"size": 20
1317
},
1418
"x": [
@@ -213,7 +217,7 @@
213217
"marker": {
214218
"standoff": [5, 20, null, 20, 10],
215219
"angleref": "previous",
216-
"symbol": "arrow",
220+
"symbol": "arrow-up",
217221
"size": 20
218222
},
219223
"r": [

0 commit comments

Comments
 (0)