File tree Expand file tree Collapse file tree 5 files changed +15
-1
lines changed
docs/modules/ROOT/pages/user-guide/reports Expand file tree Collapse file tree 5 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,9 @@ directly maps to the width value.
91
91
relationships with animated particles on them, moving in the direction
92
92
of the relationship.
93
93
94
+ |Arrow head size |Number |3 |Use this to set the length of the arrow head, size is adjusted automatically.
95
+ If 0, no arrow will be drawn.
96
+
94
97
|Background Color |Text |#fafafa |The background color of the
95
98
visualization.
96
99
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ const NeoGraphChart = (props: ChartProps) => {
33
33
// Retrieve config from advanced settings
34
34
const settings = getSettings ( props . settings , props . extensions , props . getGlobalParameter ) ;
35
35
const linkDirectionalParticles = props . settings && props . settings . relationshipParticles ? 5 : undefined ;
36
+ const arrowLengthProp = props ?. settings ?. arrowLengthProp ?? 3 ;
37
+
36
38
let nodePositions = props . settings && props . settings . nodePositions ? props . settings . nodePositions : { } ;
37
39
const parameters = props . parameters ? props . parameters : { } ;
38
40
@@ -139,6 +141,7 @@ const NeoGraphChart = (props: ChartProps) => {
139
141
height : height ,
140
142
backgroundColor : settings . backgroundColor ,
141
143
linkDirectionalParticles : linkDirectionalParticles ,
144
+ linkDirectionalArrowLength : arrowLengthProp ,
142
145
linkDirectionalParticleSpeed : settings . linkDirectionalParticleSpeed ,
143
146
nodeLabelFontSize : settings . nodeLabelFontSize ,
144
147
nodeLabelColor : settings . nodeLabelColor ,
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ export interface GraphChartVisualizationProps {
69
69
backgroundColor : any ;
70
70
linkDirectionalParticles ?: number ;
71
71
linkDirectionalParticleSpeed : number ;
72
+ linkDirectionalArrowLength : number ;
72
73
nodeLabelFontSize : number ;
73
74
nodeLabelColor : string ;
74
75
relLabelFontSize : number ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export const NeoGraphChartVisualization2D = (props: GraphChartVisualizationProps
24
24
height = { props . style . height - 10 }
25
25
linkCurvature = 'curvature'
26
26
backgroundColor = { props . style . backgroundColor }
27
- linkDirectionalArrowLength = { 3 }
27
+ linkDirectionalArrowLength = { props . style . linkDirectionalArrowLength }
28
28
linkDirectionalArrowRelPos = { 1 }
29
29
dagMode = { props . engine . layout }
30
30
linkWidth = { ( link : any ) => link . width }
@@ -42,6 +42,7 @@ export const NeoGraphChartVisualization2D = (props: GraphChartVisualizationProps
42
42
onBackgroundClick = { ( ) => props . interactivity . onNodeClick ( undefined ) }
43
43
onBackgroundRightClick = { ( ) => props . interactivity . onNodeClick ( undefined ) }
44
44
linkLineDash = { ( link ) => ( link . new ? [ 2 , 1 ] : null ) }
45
+ linkDirectionalParticles = { props . style . linkDirectionalParticles }
45
46
linkDirectionalParticleSpeed = { props . style . linkDirectionalParticleSpeed }
46
47
cooldownTicks = { props . engine . cooldownTicks }
47
48
onEngineStop = { ( ) => {
Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ export const REPORT_TYPES = {
191
191
type : SELECTION_TYPES . TEXT ,
192
192
default : 'width' ,
193
193
} ,
194
+
194
195
relationshipParticles : {
195
196
label : 'Animated particles on Relationships' ,
196
197
type : SELECTION_TYPES . LIST ,
@@ -202,6 +203,11 @@ export const REPORT_TYPES = {
202
203
type : SELECTION_TYPES . NUMBER ,
203
204
default : 0.005 ,
204
205
} ,
206
+ arrowLengthProp : {
207
+ label : 'Arrow head size' ,
208
+ type : SELECTION_TYPES . NUMBER ,
209
+ default : 3 ,
210
+ } ,
205
211
layout : {
206
212
label : 'Graph Layout (experimental)' ,
207
213
type : SELECTION_TYPES . LIST ,
You can’t perform that action at this time.
0 commit comments