Skip to content

Commit 1dfee89

Browse files
committed
move align and orientation into annotation note by default
1 parent 3178121 commit 1dfee89

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/annotationRules/networkframeRules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const svgNodeRule = ({ d, i, nodeSizeAccessor }) => {
7474
dy: d.dy || -25,
7575
x: d.x,
7676
y: d.y,
77-
note: { label: d.label },
77+
note: { label: d.label, orientation: d.orientation, align: d.align },
7878
connector: { end: "arrow" }
7979
},
8080
d,

src/components/annotationRules/orframeRules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export const basicReactAnnotationRule = ({ d, i, screenCoordinates }) => {
371371
{
372372
dx: 0,
373373
dy: 0,
374-
note: { label: d.label },
374+
note: { label: d.label, orientation: d.orientation, align: d.align },
375375
connector: { end: "arrow" }
376376
},
377377
d,

src/components/annotationRules/xyframeRules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export const basicReactAnnotation = ({ screenCoordinates, d, i }) => {
205205
{
206206
dx: 0,
207207
dy: 0,
208-
note: { label: d.label },
208+
note: { label: d.label, orientation: d.orientation, align: d.align },
209209
connector: { end: "arrow" }
210210
},
211211
d,

0 commit comments

Comments
 (0)