@neo4j-ndl/react-graph 1.5.6 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/graph-visualization-context.js.map +1 -1
- package/lib/cjs/graph-visualization.js +1 -1
- package/lib/cjs/graph-visualization.js.map +1 -1
- package/lib/cjs/index.js +5 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/stories/graph-visualization-range-styling.story.js +21 -16
- package/lib/cjs/stories/graph-visualization-range-styling.story.js.map +1 -1
- package/lib/cjs/stories/graph-visualization-rule-based-styling-advanced.story.js +105 -82
- package/lib/cjs/stories/graph-visualization-rule-based-styling-advanced.story.js.map +1 -1
- package/lib/cjs/stories/graph-visualization-rule-based-styling.story.js +15 -13
- package/lib/cjs/stories/graph-visualization-rule-based-styling.story.js.map +1 -1
- package/lib/cjs/stories/graph-visualization-simple-styling.story.js +12 -10
- package/lib/cjs/stories/graph-visualization-simple-styling.story.js.map +1 -1
- package/lib/cjs/stories/graph-visualization-unique-colors-styling.story.js +71 -0
- package/lib/cjs/stories/graph-visualization-unique-colors-styling.story.js.map +1 -0
- package/lib/cjs/stories/index.js +5 -1
- package/lib/cjs/stories/index.js.map +1 -1
- package/lib/cjs/styling/compile-graph-styles.js +143 -60
- package/lib/cjs/styling/compile-graph-styles.js.map +1 -1
- package/lib/cjs/styling/create-vis-data-structures.js.map +1 -1
- package/lib/cjs/styling/parse-style-rules.js +4 -4
- package/lib/cjs/styling/parse-style-rules.js.map +1 -1
- package/lib/cjs/styling/style-types.js +57 -16
- package/lib/cjs/styling/style-types.js.map +1 -1
- package/lib/cjs/styling/use-graph-data.js +1 -1
- package/lib/cjs/styling/use-graph-data.js.map +1 -1
- package/lib/esm/graph-visualization-context.js.map +1 -1
- package/lib/esm/graph-visualization.js +1 -1
- package/lib/esm/graph-visualization.js.map +1 -1
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/stories/graph-visualization-range-styling.story.js +21 -16
- package/lib/esm/stories/graph-visualization-range-styling.story.js.map +1 -1
- package/lib/esm/stories/graph-visualization-rule-based-styling-advanced.story.js +105 -82
- package/lib/esm/stories/graph-visualization-rule-based-styling-advanced.story.js.map +1 -1
- package/lib/esm/stories/graph-visualization-rule-based-styling.story.js +15 -13
- package/lib/esm/stories/graph-visualization-rule-based-styling.story.js.map +1 -1
- package/lib/esm/stories/graph-visualization-simple-styling.story.js +12 -10
- package/lib/esm/stories/graph-visualization-simple-styling.story.js.map +1 -1
- package/lib/esm/stories/graph-visualization-unique-colors-styling.story.js +69 -0
- package/lib/esm/stories/graph-visualization-unique-colors-styling.story.js.map +1 -0
- package/lib/esm/stories/index.js +3 -0
- package/lib/esm/stories/index.js.map +1 -1
- package/lib/esm/styling/compile-graph-styles.js +141 -58
- package/lib/esm/styling/compile-graph-styles.js.map +1 -1
- package/lib/esm/styling/create-vis-data-structures.js.map +1 -1
- package/lib/esm/styling/parse-style-rules.js +5 -5
- package/lib/esm/styling/parse-style-rules.js.map +1 -1
- package/lib/esm/styling/style-types.js +56 -15
- package/lib/esm/styling/style-types.js.map +1 -1
- package/lib/esm/styling/use-graph-data.js +2 -2
- package/lib/esm/styling/use-graph-data.js.map +1 -1
- package/lib/types/graph-visualization-context.d.ts +2 -2
- package/lib/types/graph-visualization-context.d.ts.map +1 -1
- package/lib/types/graph-visualization.d.ts +3 -3
- package/lib/types/graph-visualization.d.ts.map +1 -1
- package/lib/types/index.d.ts +3 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/stories/graph-visualization-range-styling.story.d.ts +2 -2
- package/lib/types/stories/graph-visualization-range-styling.story.d.ts.map +1 -1
- package/lib/types/stories/graph-visualization-rule-based-styling-advanced.story.d.ts +10 -10
- package/lib/types/stories/graph-visualization-rule-based-styling-advanced.story.d.ts.map +1 -1
- package/lib/types/stories/graph-visualization-rule-based-styling.story.d.ts +2 -2
- package/lib/types/stories/graph-visualization-rule-based-styling.story.d.ts.map +1 -1
- package/lib/types/stories/graph-visualization-simple-styling.story.d.ts +2 -2
- package/lib/types/stories/graph-visualization-simple-styling.story.d.ts.map +1 -1
- package/lib/types/stories/graph-visualization-unique-colors-styling.story.d.ts +23 -0
- package/lib/types/stories/graph-visualization-unique-colors-styling.story.d.ts.map +1 -0
- package/lib/types/stories/index.d.ts +2 -0
- package/lib/types/stories/index.d.ts.map +1 -1
- package/lib/types/styling/compile-graph-styles.d.ts +9 -8
- package/lib/types/styling/compile-graph-styles.d.ts.map +1 -1
- package/lib/types/styling/create-vis-data-structures.d.ts +2 -2
- package/lib/types/styling/create-vis-data-structures.d.ts.map +1 -1
- package/lib/types/styling/parse-style-rules.d.ts +5 -5
- package/lib/types/styling/parse-style-rules.d.ts.map +1 -1
- package/lib/types/styling/style-types.d.ts +113 -51
- package/lib/types/styling/style-types.d.ts.map +1 -1
- package/lib/types/styling/use-graph-data.d.ts +3 -3
- package/lib/types/styling/use-graph-data.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -111,53 +111,73 @@ export declare const ColorRangeSchema: z.ZodObject<{
|
|
|
111
111
|
maxColor: z.ZodString;
|
|
112
112
|
midValue: z.ZodOptional<z.ZodNumber>;
|
|
113
113
|
midColor: z.ZodOptional<z.ZodString>;
|
|
114
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
114
115
|
}, z.core.$strip>;
|
|
115
116
|
export type ColorRange = z.infer<typeof ColorRangeSchema>;
|
|
116
117
|
/**
|
|
117
118
|
* Size interpolation for nodes based on a continuous numeric property value.
|
|
118
119
|
* Maps a property value in [minValue, maxValue] to a size in [minSize, maxSize].
|
|
119
|
-
* If the property is missing or non-numeric,
|
|
120
|
+
* If the property is missing or non-numeric, sizeRange is silently ignored —
|
|
120
121
|
* other style properties still apply.
|
|
121
122
|
*/
|
|
122
|
-
export declare const
|
|
123
|
+
export declare const SizeRangeSchema: z.ZodObject<{
|
|
123
124
|
onProperty: z.ZodString;
|
|
124
125
|
minValue: z.ZodNumber;
|
|
125
126
|
maxValue: z.ZodNumber;
|
|
126
127
|
minSize: z.ZodNumber;
|
|
127
128
|
maxSize: z.ZodNumber;
|
|
129
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
128
130
|
}, z.core.$strip>;
|
|
129
|
-
export type
|
|
131
|
+
export type SizeRange = z.infer<typeof SizeRangeSchema>;
|
|
130
132
|
/**
|
|
131
133
|
* Width interpolation for relationships based on a continuous numeric property value.
|
|
132
134
|
* Maps a property value in [minValue, maxValue] to a width in [minWidth, maxWidth].
|
|
133
|
-
* If the property is missing or non-numeric,
|
|
135
|
+
* If the property is missing or non-numeric, widthRange is silently ignored —
|
|
134
136
|
* other style properties still apply.
|
|
135
137
|
*/
|
|
136
|
-
export declare const
|
|
138
|
+
export declare const WidthRangeSchema: z.ZodObject<{
|
|
137
139
|
onProperty: z.ZodString;
|
|
138
140
|
minValue: z.ZodNumber;
|
|
139
141
|
maxValue: z.ZodNumber;
|
|
140
142
|
minWidth: z.ZodNumber;
|
|
141
143
|
maxWidth: z.ZodNumber;
|
|
144
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
142
145
|
}, z.core.$strip>;
|
|
143
|
-
export type
|
|
146
|
+
export type WidthRange = z.infer<typeof WidthRangeSchema>;
|
|
147
|
+
/**
|
|
148
|
+
* Assigns a unique color per distinct value of a property.
|
|
149
|
+
* Colors are assigned in first-come, first-served order from a categorical palette.
|
|
150
|
+
* If the property is missing or null, uniqueColors is silently ignored —
|
|
151
|
+
* other style properties still apply.
|
|
152
|
+
*/
|
|
153
|
+
export declare const UniqueColorsSchema: z.ZodObject<{
|
|
154
|
+
onProperty: z.ZodString;
|
|
155
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
export type UniqueColors = z.infer<typeof UniqueColorsSchema>;
|
|
144
158
|
export declare const StyleSchema: z.ZodObject<{
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
captions: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
text: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
161
|
+
styles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
162
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
163
|
+
property: z.ZodString;
|
|
164
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
165
|
+
useType: z.ZodLiteral<true>;
|
|
166
|
+
}, z.core.$strip>]>>;
|
|
167
|
+
key: z.ZodOptional<z.ZodString>;
|
|
168
|
+
}, z.core.$strip>>>;
|
|
169
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
170
|
+
top: "top";
|
|
171
|
+
bottom: "bottom";
|
|
172
|
+
center: "center";
|
|
173
|
+
}>>;
|
|
174
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
178
|
+
value: z.ZodString;
|
|
179
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
+
}, z.core.$strip>>;
|
|
161
181
|
colorRange: z.ZodOptional<z.ZodObject<{
|
|
162
182
|
onProperty: z.ZodString;
|
|
163
183
|
minValue: z.ZodNumber;
|
|
@@ -166,32 +186,49 @@ export declare const StyleSchema: z.ZodObject<{
|
|
|
166
186
|
maxColor: z.ZodString;
|
|
167
187
|
midValue: z.ZodOptional<z.ZodNumber>;
|
|
168
188
|
midColor: z.ZodOptional<z.ZodString>;
|
|
189
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
icon: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
value: z.ZodString;
|
|
193
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
169
194
|
}, z.core.$strip>>;
|
|
170
|
-
|
|
171
|
-
nodeSizeRange: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
sizeRange: z.ZodOptional<z.ZodObject<{
|
|
172
196
|
onProperty: z.ZodString;
|
|
173
197
|
minValue: z.ZodNumber;
|
|
174
198
|
maxValue: z.ZodNumber;
|
|
175
199
|
minSize: z.ZodNumber;
|
|
176
200
|
maxSize: z.ZodNumber;
|
|
201
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
177
202
|
}, z.core.$strip>>;
|
|
178
203
|
overlayIcon: z.ZodOptional<z.ZodObject<{
|
|
179
204
|
url: z.ZodString;
|
|
180
205
|
position: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
181
206
|
size: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
182
208
|
}, z.core.$strip>>;
|
|
183
|
-
|
|
209
|
+
widthRange: z.ZodOptional<z.ZodObject<{
|
|
184
210
|
onProperty: z.ZodString;
|
|
185
211
|
minValue: z.ZodNumber;
|
|
186
212
|
maxValue: z.ZodNumber;
|
|
187
213
|
minWidth: z.ZodNumber;
|
|
188
214
|
maxWidth: z.ZodNumber;
|
|
215
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
216
|
+
}, z.core.$strip>>;
|
|
217
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
218
|
+
value: z.ZodNumber;
|
|
219
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
uniqueColors: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
onProperty: z.ZodString;
|
|
223
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
}, z.core.$strip>>;
|
|
225
|
+
width: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
value: z.ZodNumber;
|
|
227
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
189
228
|
}, z.core.$strip>>;
|
|
190
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
191
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
192
229
|
}, z.core.$strip>;
|
|
193
230
|
export type Style = z.infer<typeof StyleSchema>;
|
|
194
|
-
export declare const
|
|
231
|
+
export declare const GraphStyleRuleSchema: z.ZodObject<{
|
|
195
232
|
match: z.ZodUnion<readonly [z.ZodObject<{
|
|
196
233
|
label: z.ZodNullable<z.ZodString>;
|
|
197
234
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -201,22 +238,28 @@ export declare const StyleRuleSchema: z.ZodObject<{
|
|
|
201
238
|
}, z.core.$strip>]>;
|
|
202
239
|
where: z.ZodOptional<z.ZodType<Where, unknown, z.core.$ZodTypeInternals<Where, unknown>>>;
|
|
203
240
|
apply: z.ZodObject<{
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
241
|
+
captions: z.ZodOptional<z.ZodObject<{
|
|
242
|
+
text: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
243
|
+
styles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
244
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
245
|
+
property: z.ZodString;
|
|
246
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
247
|
+
useType: z.ZodLiteral<true>;
|
|
248
|
+
}, z.core.$strip>]>>;
|
|
249
|
+
key: z.ZodOptional<z.ZodString>;
|
|
250
|
+
}, z.core.$strip>>>;
|
|
251
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
252
|
+
top: "top";
|
|
253
|
+
bottom: "bottom";
|
|
254
|
+
center: "center";
|
|
255
|
+
}>>;
|
|
256
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
258
|
+
}, z.core.$strip>>;
|
|
259
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
260
|
+
value: z.ZodString;
|
|
261
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
}, z.core.$strip>>;
|
|
220
263
|
colorRange: z.ZodOptional<z.ZodObject<{
|
|
221
264
|
onProperty: z.ZodString;
|
|
222
265
|
minValue: z.ZodNumber;
|
|
@@ -225,34 +268,53 @@ export declare const StyleRuleSchema: z.ZodObject<{
|
|
|
225
268
|
maxColor: z.ZodString;
|
|
226
269
|
midValue: z.ZodOptional<z.ZodNumber>;
|
|
227
270
|
midColor: z.ZodOptional<z.ZodString>;
|
|
271
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
272
|
+
}, z.core.$strip>>;
|
|
273
|
+
icon: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
value: z.ZodString;
|
|
275
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
228
276
|
}, z.core.$strip>>;
|
|
229
|
-
|
|
230
|
-
nodeSizeRange: z.ZodOptional<z.ZodObject<{
|
|
277
|
+
sizeRange: z.ZodOptional<z.ZodObject<{
|
|
231
278
|
onProperty: z.ZodString;
|
|
232
279
|
minValue: z.ZodNumber;
|
|
233
280
|
maxValue: z.ZodNumber;
|
|
234
281
|
minSize: z.ZodNumber;
|
|
235
282
|
maxSize: z.ZodNumber;
|
|
283
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
236
284
|
}, z.core.$strip>>;
|
|
237
285
|
overlayIcon: z.ZodOptional<z.ZodObject<{
|
|
238
286
|
url: z.ZodString;
|
|
239
287
|
position: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
240
288
|
size: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
241
290
|
}, z.core.$strip>>;
|
|
242
|
-
|
|
291
|
+
widthRange: z.ZodOptional<z.ZodObject<{
|
|
243
292
|
onProperty: z.ZodString;
|
|
244
293
|
minValue: z.ZodNumber;
|
|
245
294
|
maxValue: z.ZodNumber;
|
|
246
295
|
minWidth: z.ZodNumber;
|
|
247
296
|
maxWidth: z.ZodNumber;
|
|
297
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
300
|
+
value: z.ZodNumber;
|
|
301
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
302
|
+
}, z.core.$strip>>;
|
|
303
|
+
uniqueColors: z.ZodOptional<z.ZodObject<{
|
|
304
|
+
onProperty: z.ZodString;
|
|
305
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
+
}, z.core.$strip>>;
|
|
307
|
+
width: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
value: z.ZodNumber;
|
|
309
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
248
310
|
}, z.core.$strip>>;
|
|
249
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
250
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
251
311
|
}, z.core.$strip>;
|
|
252
|
-
|
|
312
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
253
313
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
314
|
+
metaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
254
315
|
}, z.core.$strip>;
|
|
255
|
-
export type
|
|
316
|
+
export type GraphStyleRule = z.infer<typeof GraphStyleRuleSchema>;
|
|
317
|
+
export type NonStaticStyles = 'captions' | 'colorRange' | 'sizeRange' | 'widthRange' | 'uniqueColors';
|
|
256
318
|
type NodeStyleKey = 'icon' | 'overlayIcon' | 'color' | 'size' | 'captions' | 'captionSize' | 'captionAlign';
|
|
257
319
|
type RelStyleKey = 'width' | 'color' | 'captions' | 'captionSize' | 'captionAlign' | 'overlayIcon';
|
|
258
320
|
export type EvaluatedNvlNodeStyle = Pick<Node, NodeStyleKey>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style-types.d.ts","sourceRoot":"","sources":["../../../src/styling/style-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2BxB,eAAO,MAAM,cAAc;;;;;;mBAIzB,CAAC;AACH,KAAK,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE/C,eAAO,MAAM,WAAW;;;;;;mBAItB,CAAC;AAGH,eAAO,MAAM,iBAAiB,0EAK5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;+FAIrB,CAAC;AACJ,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD;;;GAGG;
|
|
1
|
+
{"version":3,"file":"style-types.d.ts","sourceRoot":"","sources":["../../../src/styling/style-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2BxB,eAAO,MAAM,cAAc;;;;;;mBAIzB,CAAC;AACH,KAAK,QAAQ,GAAG,CAA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;;;iBAO/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,MAAM,MAAM,eAAe,GACvB,UAAU,GACV,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,cAAc,CAAC;AAEnB,KAAK,YAAY,GACb,MAAM,GACN,aAAa,GACb,OAAO,GACP,MAAM,GACN,UAAU,GACV,aAAa,GACb,cAAc,CAAC;AAEnB,KAAK,WAAW,GACZ,OAAO,GACP,OAAO,GACP,UAAU,GACV,aAAa,GACb,cAAc,GACd,aAAa,CAAC;AAElB,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AAC7D,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;AAqB5E;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,OAAO,CAAC,qBAAqB,CAAC,GACnC,OAAO,CAAC,qBAAqB,CAAC,CAQhC;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,OAAO,CAAC,6BAA6B,CAAC,GAC1C,OAAO,CAAC,6BAA6B,CAAC,CAQxC"}
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import type { NeoNode, NeoRel } from '../graph-visualization-context';
|
|
22
|
-
import type {
|
|
23
|
-
export declare function useGraphData(rawNodes: NeoNode[], rawRels: NeoRel[], styleRules?:
|
|
22
|
+
import type { GraphStyleRule } from './style-types';
|
|
23
|
+
export declare function useGraphData(rawNodes: NeoNode[], rawRels: NeoRel[], styleRules?: GraphStyleRule[]): {
|
|
24
24
|
styledGraph: import("..").NvlGraph;
|
|
25
25
|
metadataLookup: import("..").MetadataLookupTable;
|
|
26
|
-
compiledStyleRules: import("./compile-graph-styles").
|
|
26
|
+
compiledStyleRules: import("./compile-graph-styles").CompiledGraphStyleRules;
|
|
27
27
|
};
|
|
28
28
|
//# sourceMappingURL=use-graph-data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-graph-data.d.ts","sourceRoot":"","sources":["../../../src/styling/use-graph-data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAGtE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"use-graph-data.d.ts","sourceRoot":"","sources":["../../../src/styling/use-graph-data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAGtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EAAE,EACnB,OAAO,EAAE,MAAM,EAAE,EACjB,UAAU,CAAC,EAAE,cAAc,EAAE;;;;EAiB9B"}
|