@xenolithengine/graph-vue 0.7.0-beta.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/LICENSE +21 -0
- package/README.md +57 -0
- package/dist/components.d.ts +181 -0
- package/dist/components.d.ts.map +1 -0
- package/dist/components.js +155 -0
- package/dist/components.js.map +1 -0
- package/dist/hooks.d.ts +2875 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/hooks.js +86 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.d.ts +140 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +162 -0
- package/dist/index.js.map +1 -0
- package/dist/widget.d.ts +28 -0
- package/dist/widget.d.ts.map +1 -0
- package/dist/widget.js +50 -0
- package/dist/widget.js.map +1 -0
- package/package.json +66 -0
package/dist/hooks.d.ts
ADDED
|
@@ -0,0 +1,2875 @@
|
|
|
1
|
+
import { type DeepReadonly, type ShallowRef } from 'vue';
|
|
2
|
+
type ReadonlyRef<T> = DeepReadonly<ShallowRef<T>>;
|
|
3
|
+
import type { Node, NodeId } from '@xenolithengine/graph-editor';
|
|
4
|
+
/** Live array of nodes; re-renders on add/remove/move, load, and undo/redo. */
|
|
5
|
+
export declare const useNodes: () => Readonly<import("vue").Ref<readonly {
|
|
6
|
+
readonly id: NodeId;
|
|
7
|
+
readonly type: string;
|
|
8
|
+
readonly position: {
|
|
9
|
+
readonly x: number;
|
|
10
|
+
readonly y: number;
|
|
11
|
+
};
|
|
12
|
+
readonly size?: {
|
|
13
|
+
readonly x: number;
|
|
14
|
+
readonly y: number;
|
|
15
|
+
};
|
|
16
|
+
readonly state: {
|
|
17
|
+
readonly [x: string]: Readonly<unknown>;
|
|
18
|
+
};
|
|
19
|
+
readonly pins: readonly {
|
|
20
|
+
readonly id: import("@xenolithengine/graph-core").PinId;
|
|
21
|
+
readonly kind: import("@xenolithengine/graph-core").PinKind;
|
|
22
|
+
readonly direction: import("@xenolithengine/graph-core").PinDirection;
|
|
23
|
+
readonly type: import("@xenolithengine/graph-core").TypeId | string;
|
|
24
|
+
readonly multiple: boolean;
|
|
25
|
+
readonly label?: string;
|
|
26
|
+
readonly default?: Readonly<unknown>;
|
|
27
|
+
}[];
|
|
28
|
+
readonly widgets?: readonly ({
|
|
29
|
+
readonly id: string;
|
|
30
|
+
readonly label: string;
|
|
31
|
+
readonly key: string;
|
|
32
|
+
readonly disabled?: boolean;
|
|
33
|
+
readonly hint?: string;
|
|
34
|
+
readonly style?: {
|
|
35
|
+
readonly bg?: string;
|
|
36
|
+
readonly bgHover?: string;
|
|
37
|
+
readonly bgFocused?: string;
|
|
38
|
+
readonly track?: string;
|
|
39
|
+
readonly fill?: string;
|
|
40
|
+
readonly fillAlpha?: number;
|
|
41
|
+
readonly text?: string;
|
|
42
|
+
readonly label?: string;
|
|
43
|
+
readonly placeholder?: string;
|
|
44
|
+
readonly border?: string;
|
|
45
|
+
readonly borderFocused?: string;
|
|
46
|
+
readonly selection?: string;
|
|
47
|
+
readonly knob?: string;
|
|
48
|
+
readonly radius?: number;
|
|
49
|
+
readonly paddingX?: number;
|
|
50
|
+
readonly paddingY?: number;
|
|
51
|
+
readonly borderWidth?: number;
|
|
52
|
+
readonly toggleWidth?: number;
|
|
53
|
+
readonly toggleHeight?: number;
|
|
54
|
+
};
|
|
55
|
+
readonly pinKey?: string;
|
|
56
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
57
|
+
readonly showInSidebar?: boolean;
|
|
58
|
+
readonly displayOptions?: {
|
|
59
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
60
|
+
};
|
|
61
|
+
readonly freeFloating?: boolean;
|
|
62
|
+
readonly type: "number";
|
|
63
|
+
readonly min?: number;
|
|
64
|
+
readonly max?: number;
|
|
65
|
+
readonly step?: number;
|
|
66
|
+
readonly precision?: number;
|
|
67
|
+
readonly unit?: string;
|
|
68
|
+
} | {
|
|
69
|
+
readonly id: string;
|
|
70
|
+
readonly label: string;
|
|
71
|
+
readonly key: string;
|
|
72
|
+
readonly disabled?: boolean;
|
|
73
|
+
readonly hint?: string;
|
|
74
|
+
readonly style?: {
|
|
75
|
+
readonly bg?: string;
|
|
76
|
+
readonly bgHover?: string;
|
|
77
|
+
readonly bgFocused?: string;
|
|
78
|
+
readonly track?: string;
|
|
79
|
+
readonly fill?: string;
|
|
80
|
+
readonly fillAlpha?: number;
|
|
81
|
+
readonly text?: string;
|
|
82
|
+
readonly label?: string;
|
|
83
|
+
readonly placeholder?: string;
|
|
84
|
+
readonly border?: string;
|
|
85
|
+
readonly borderFocused?: string;
|
|
86
|
+
readonly selection?: string;
|
|
87
|
+
readonly knob?: string;
|
|
88
|
+
readonly radius?: number;
|
|
89
|
+
readonly paddingX?: number;
|
|
90
|
+
readonly paddingY?: number;
|
|
91
|
+
readonly borderWidth?: number;
|
|
92
|
+
readonly toggleWidth?: number;
|
|
93
|
+
readonly toggleHeight?: number;
|
|
94
|
+
};
|
|
95
|
+
readonly pinKey?: string;
|
|
96
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
97
|
+
readonly showInSidebar?: boolean;
|
|
98
|
+
readonly displayOptions?: {
|
|
99
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
100
|
+
};
|
|
101
|
+
readonly freeFloating?: boolean;
|
|
102
|
+
readonly type: "slider";
|
|
103
|
+
readonly min: number;
|
|
104
|
+
readonly max: number;
|
|
105
|
+
readonly step?: number;
|
|
106
|
+
} | {
|
|
107
|
+
readonly id: string;
|
|
108
|
+
readonly label: string;
|
|
109
|
+
readonly key: string;
|
|
110
|
+
readonly disabled?: boolean;
|
|
111
|
+
readonly hint?: string;
|
|
112
|
+
readonly style?: {
|
|
113
|
+
readonly bg?: string;
|
|
114
|
+
readonly bgHover?: string;
|
|
115
|
+
readonly bgFocused?: string;
|
|
116
|
+
readonly track?: string;
|
|
117
|
+
readonly fill?: string;
|
|
118
|
+
readonly fillAlpha?: number;
|
|
119
|
+
readonly text?: string;
|
|
120
|
+
readonly label?: string;
|
|
121
|
+
readonly placeholder?: string;
|
|
122
|
+
readonly border?: string;
|
|
123
|
+
readonly borderFocused?: string;
|
|
124
|
+
readonly selection?: string;
|
|
125
|
+
readonly knob?: string;
|
|
126
|
+
readonly radius?: number;
|
|
127
|
+
readonly paddingX?: number;
|
|
128
|
+
readonly paddingY?: number;
|
|
129
|
+
readonly borderWidth?: number;
|
|
130
|
+
readonly toggleWidth?: number;
|
|
131
|
+
readonly toggleHeight?: number;
|
|
132
|
+
};
|
|
133
|
+
readonly pinKey?: string;
|
|
134
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
135
|
+
readonly showInSidebar?: boolean;
|
|
136
|
+
readonly displayOptions?: {
|
|
137
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
138
|
+
};
|
|
139
|
+
readonly freeFloating?: boolean;
|
|
140
|
+
readonly type: "combo";
|
|
141
|
+
readonly values: readonly (string | {
|
|
142
|
+
readonly label: string;
|
|
143
|
+
readonly value: string | number;
|
|
144
|
+
})[];
|
|
145
|
+
} | {
|
|
146
|
+
readonly id: string;
|
|
147
|
+
readonly label: string;
|
|
148
|
+
readonly key: string;
|
|
149
|
+
readonly disabled?: boolean;
|
|
150
|
+
readonly hint?: string;
|
|
151
|
+
readonly style?: {
|
|
152
|
+
readonly bg?: string;
|
|
153
|
+
readonly bgHover?: string;
|
|
154
|
+
readonly bgFocused?: string;
|
|
155
|
+
readonly track?: string;
|
|
156
|
+
readonly fill?: string;
|
|
157
|
+
readonly fillAlpha?: number;
|
|
158
|
+
readonly text?: string;
|
|
159
|
+
readonly label?: string;
|
|
160
|
+
readonly placeholder?: string;
|
|
161
|
+
readonly border?: string;
|
|
162
|
+
readonly borderFocused?: string;
|
|
163
|
+
readonly selection?: string;
|
|
164
|
+
readonly knob?: string;
|
|
165
|
+
readonly radius?: number;
|
|
166
|
+
readonly paddingX?: number;
|
|
167
|
+
readonly paddingY?: number;
|
|
168
|
+
readonly borderWidth?: number;
|
|
169
|
+
readonly toggleWidth?: number;
|
|
170
|
+
readonly toggleHeight?: number;
|
|
171
|
+
};
|
|
172
|
+
readonly pinKey?: string;
|
|
173
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
174
|
+
readonly showInSidebar?: boolean;
|
|
175
|
+
readonly displayOptions?: {
|
|
176
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
177
|
+
};
|
|
178
|
+
readonly freeFloating?: boolean;
|
|
179
|
+
readonly type: "text";
|
|
180
|
+
readonly multiline?: boolean;
|
|
181
|
+
readonly placeholder?: string;
|
|
182
|
+
readonly maxLength?: number;
|
|
183
|
+
} | {
|
|
184
|
+
readonly id: string;
|
|
185
|
+
readonly label: string;
|
|
186
|
+
readonly key: string;
|
|
187
|
+
readonly disabled?: boolean;
|
|
188
|
+
readonly hint?: string;
|
|
189
|
+
readonly style?: {
|
|
190
|
+
readonly bg?: string;
|
|
191
|
+
readonly bgHover?: string;
|
|
192
|
+
readonly bgFocused?: string;
|
|
193
|
+
readonly track?: string;
|
|
194
|
+
readonly fill?: string;
|
|
195
|
+
readonly fillAlpha?: number;
|
|
196
|
+
readonly text?: string;
|
|
197
|
+
readonly label?: string;
|
|
198
|
+
readonly placeholder?: string;
|
|
199
|
+
readonly border?: string;
|
|
200
|
+
readonly borderFocused?: string;
|
|
201
|
+
readonly selection?: string;
|
|
202
|
+
readonly knob?: string;
|
|
203
|
+
readonly radius?: number;
|
|
204
|
+
readonly paddingX?: number;
|
|
205
|
+
readonly paddingY?: number;
|
|
206
|
+
readonly borderWidth?: number;
|
|
207
|
+
readonly toggleWidth?: number;
|
|
208
|
+
readonly toggleHeight?: number;
|
|
209
|
+
};
|
|
210
|
+
readonly pinKey?: string;
|
|
211
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
212
|
+
readonly showInSidebar?: boolean;
|
|
213
|
+
readonly displayOptions?: {
|
|
214
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
215
|
+
};
|
|
216
|
+
readonly freeFloating?: boolean;
|
|
217
|
+
readonly type: "toggle";
|
|
218
|
+
readonly onLabel?: string;
|
|
219
|
+
readonly offLabel?: string;
|
|
220
|
+
} | {
|
|
221
|
+
readonly id: string;
|
|
222
|
+
readonly label: string;
|
|
223
|
+
readonly key?: string;
|
|
224
|
+
readonly disabled?: boolean;
|
|
225
|
+
readonly hint?: string;
|
|
226
|
+
readonly style?: {
|
|
227
|
+
readonly bg?: string;
|
|
228
|
+
readonly bgHover?: string;
|
|
229
|
+
readonly bgFocused?: string;
|
|
230
|
+
readonly track?: string;
|
|
231
|
+
readonly fill?: string;
|
|
232
|
+
readonly fillAlpha?: number;
|
|
233
|
+
readonly text?: string;
|
|
234
|
+
readonly label?: string;
|
|
235
|
+
readonly placeholder?: string;
|
|
236
|
+
readonly border?: string;
|
|
237
|
+
readonly borderFocused?: string;
|
|
238
|
+
readonly selection?: string;
|
|
239
|
+
readonly knob?: string;
|
|
240
|
+
readonly radius?: number;
|
|
241
|
+
readonly paddingX?: number;
|
|
242
|
+
readonly paddingY?: number;
|
|
243
|
+
readonly borderWidth?: number;
|
|
244
|
+
readonly toggleWidth?: number;
|
|
245
|
+
readonly toggleHeight?: number;
|
|
246
|
+
};
|
|
247
|
+
readonly pinKey?: string;
|
|
248
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
249
|
+
readonly showInSidebar?: boolean;
|
|
250
|
+
readonly displayOptions?: {
|
|
251
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
252
|
+
};
|
|
253
|
+
readonly freeFloating?: boolean;
|
|
254
|
+
readonly type: "button";
|
|
255
|
+
readonly action: string;
|
|
256
|
+
} | {
|
|
257
|
+
readonly id: string;
|
|
258
|
+
readonly label: string;
|
|
259
|
+
readonly key: string;
|
|
260
|
+
readonly disabled?: boolean;
|
|
261
|
+
readonly hint?: string;
|
|
262
|
+
readonly style?: {
|
|
263
|
+
readonly bg?: string;
|
|
264
|
+
readonly bgHover?: string;
|
|
265
|
+
readonly bgFocused?: string;
|
|
266
|
+
readonly track?: string;
|
|
267
|
+
readonly fill?: string;
|
|
268
|
+
readonly fillAlpha?: number;
|
|
269
|
+
readonly text?: string;
|
|
270
|
+
readonly label?: string;
|
|
271
|
+
readonly placeholder?: string;
|
|
272
|
+
readonly border?: string;
|
|
273
|
+
readonly borderFocused?: string;
|
|
274
|
+
readonly selection?: string;
|
|
275
|
+
readonly knob?: string;
|
|
276
|
+
readonly radius?: number;
|
|
277
|
+
readonly paddingX?: number;
|
|
278
|
+
readonly paddingY?: number;
|
|
279
|
+
readonly borderWidth?: number;
|
|
280
|
+
readonly toggleWidth?: number;
|
|
281
|
+
readonly toggleHeight?: number;
|
|
282
|
+
};
|
|
283
|
+
readonly pinKey?: string;
|
|
284
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
285
|
+
readonly showInSidebar?: boolean;
|
|
286
|
+
readonly displayOptions?: {
|
|
287
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
288
|
+
};
|
|
289
|
+
readonly freeFloating?: boolean;
|
|
290
|
+
readonly type: "color";
|
|
291
|
+
} | {
|
|
292
|
+
readonly id: string;
|
|
293
|
+
readonly label: string;
|
|
294
|
+
readonly key: string;
|
|
295
|
+
readonly disabled?: boolean;
|
|
296
|
+
readonly hint?: string;
|
|
297
|
+
readonly style?: {
|
|
298
|
+
readonly bg?: string;
|
|
299
|
+
readonly bgHover?: string;
|
|
300
|
+
readonly bgFocused?: string;
|
|
301
|
+
readonly track?: string;
|
|
302
|
+
readonly fill?: string;
|
|
303
|
+
readonly fillAlpha?: number;
|
|
304
|
+
readonly text?: string;
|
|
305
|
+
readonly label?: string;
|
|
306
|
+
readonly placeholder?: string;
|
|
307
|
+
readonly border?: string;
|
|
308
|
+
readonly borderFocused?: string;
|
|
309
|
+
readonly selection?: string;
|
|
310
|
+
readonly knob?: string;
|
|
311
|
+
readonly radius?: number;
|
|
312
|
+
readonly paddingX?: number;
|
|
313
|
+
readonly paddingY?: number;
|
|
314
|
+
readonly borderWidth?: number;
|
|
315
|
+
readonly toggleWidth?: number;
|
|
316
|
+
readonly toggleHeight?: number;
|
|
317
|
+
};
|
|
318
|
+
readonly pinKey?: string;
|
|
319
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
320
|
+
readonly showInSidebar?: boolean;
|
|
321
|
+
readonly displayOptions?: {
|
|
322
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
323
|
+
};
|
|
324
|
+
readonly freeFloating?: boolean;
|
|
325
|
+
readonly type: "custom";
|
|
326
|
+
readonly renderer: string;
|
|
327
|
+
readonly height?: number;
|
|
328
|
+
})[];
|
|
329
|
+
readonly pure?: boolean;
|
|
330
|
+
readonly meta?: {
|
|
331
|
+
readonly [x: string]: Readonly<unknown>;
|
|
332
|
+
};
|
|
333
|
+
readonly glyph?: {
|
|
334
|
+
readonly icon: string;
|
|
335
|
+
readonly side?: "left" | "right";
|
|
336
|
+
};
|
|
337
|
+
readonly version?: number;
|
|
338
|
+
}[], readonly {
|
|
339
|
+
readonly id: NodeId;
|
|
340
|
+
readonly type: string;
|
|
341
|
+
readonly position: {
|
|
342
|
+
readonly x: number;
|
|
343
|
+
readonly y: number;
|
|
344
|
+
};
|
|
345
|
+
readonly size?: {
|
|
346
|
+
readonly x: number;
|
|
347
|
+
readonly y: number;
|
|
348
|
+
};
|
|
349
|
+
readonly state: {
|
|
350
|
+
readonly [x: string]: Readonly<unknown>;
|
|
351
|
+
};
|
|
352
|
+
readonly pins: readonly {
|
|
353
|
+
readonly id: import("@xenolithengine/graph-core").PinId;
|
|
354
|
+
readonly kind: import("@xenolithengine/graph-core").PinKind;
|
|
355
|
+
readonly direction: import("@xenolithengine/graph-core").PinDirection;
|
|
356
|
+
readonly type: import("@xenolithengine/graph-core").TypeId | string;
|
|
357
|
+
readonly multiple: boolean;
|
|
358
|
+
readonly label?: string;
|
|
359
|
+
readonly default?: Readonly<unknown>;
|
|
360
|
+
}[];
|
|
361
|
+
readonly widgets?: readonly ({
|
|
362
|
+
readonly id: string;
|
|
363
|
+
readonly label: string;
|
|
364
|
+
readonly key: string;
|
|
365
|
+
readonly disabled?: boolean;
|
|
366
|
+
readonly hint?: string;
|
|
367
|
+
readonly style?: {
|
|
368
|
+
readonly bg?: string;
|
|
369
|
+
readonly bgHover?: string;
|
|
370
|
+
readonly bgFocused?: string;
|
|
371
|
+
readonly track?: string;
|
|
372
|
+
readonly fill?: string;
|
|
373
|
+
readonly fillAlpha?: number;
|
|
374
|
+
readonly text?: string;
|
|
375
|
+
readonly label?: string;
|
|
376
|
+
readonly placeholder?: string;
|
|
377
|
+
readonly border?: string;
|
|
378
|
+
readonly borderFocused?: string;
|
|
379
|
+
readonly selection?: string;
|
|
380
|
+
readonly knob?: string;
|
|
381
|
+
readonly radius?: number;
|
|
382
|
+
readonly paddingX?: number;
|
|
383
|
+
readonly paddingY?: number;
|
|
384
|
+
readonly borderWidth?: number;
|
|
385
|
+
readonly toggleWidth?: number;
|
|
386
|
+
readonly toggleHeight?: number;
|
|
387
|
+
};
|
|
388
|
+
readonly pinKey?: string;
|
|
389
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
390
|
+
readonly showInSidebar?: boolean;
|
|
391
|
+
readonly displayOptions?: {
|
|
392
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
393
|
+
};
|
|
394
|
+
readonly freeFloating?: boolean;
|
|
395
|
+
readonly type: "number";
|
|
396
|
+
readonly min?: number;
|
|
397
|
+
readonly max?: number;
|
|
398
|
+
readonly step?: number;
|
|
399
|
+
readonly precision?: number;
|
|
400
|
+
readonly unit?: string;
|
|
401
|
+
} | {
|
|
402
|
+
readonly id: string;
|
|
403
|
+
readonly label: string;
|
|
404
|
+
readonly key: string;
|
|
405
|
+
readonly disabled?: boolean;
|
|
406
|
+
readonly hint?: string;
|
|
407
|
+
readonly style?: {
|
|
408
|
+
readonly bg?: string;
|
|
409
|
+
readonly bgHover?: string;
|
|
410
|
+
readonly bgFocused?: string;
|
|
411
|
+
readonly track?: string;
|
|
412
|
+
readonly fill?: string;
|
|
413
|
+
readonly fillAlpha?: number;
|
|
414
|
+
readonly text?: string;
|
|
415
|
+
readonly label?: string;
|
|
416
|
+
readonly placeholder?: string;
|
|
417
|
+
readonly border?: string;
|
|
418
|
+
readonly borderFocused?: string;
|
|
419
|
+
readonly selection?: string;
|
|
420
|
+
readonly knob?: string;
|
|
421
|
+
readonly radius?: number;
|
|
422
|
+
readonly paddingX?: number;
|
|
423
|
+
readonly paddingY?: number;
|
|
424
|
+
readonly borderWidth?: number;
|
|
425
|
+
readonly toggleWidth?: number;
|
|
426
|
+
readonly toggleHeight?: number;
|
|
427
|
+
};
|
|
428
|
+
readonly pinKey?: string;
|
|
429
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
430
|
+
readonly showInSidebar?: boolean;
|
|
431
|
+
readonly displayOptions?: {
|
|
432
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
433
|
+
};
|
|
434
|
+
readonly freeFloating?: boolean;
|
|
435
|
+
readonly type: "slider";
|
|
436
|
+
readonly min: number;
|
|
437
|
+
readonly max: number;
|
|
438
|
+
readonly step?: number;
|
|
439
|
+
} | {
|
|
440
|
+
readonly id: string;
|
|
441
|
+
readonly label: string;
|
|
442
|
+
readonly key: string;
|
|
443
|
+
readonly disabled?: boolean;
|
|
444
|
+
readonly hint?: string;
|
|
445
|
+
readonly style?: {
|
|
446
|
+
readonly bg?: string;
|
|
447
|
+
readonly bgHover?: string;
|
|
448
|
+
readonly bgFocused?: string;
|
|
449
|
+
readonly track?: string;
|
|
450
|
+
readonly fill?: string;
|
|
451
|
+
readonly fillAlpha?: number;
|
|
452
|
+
readonly text?: string;
|
|
453
|
+
readonly label?: string;
|
|
454
|
+
readonly placeholder?: string;
|
|
455
|
+
readonly border?: string;
|
|
456
|
+
readonly borderFocused?: string;
|
|
457
|
+
readonly selection?: string;
|
|
458
|
+
readonly knob?: string;
|
|
459
|
+
readonly radius?: number;
|
|
460
|
+
readonly paddingX?: number;
|
|
461
|
+
readonly paddingY?: number;
|
|
462
|
+
readonly borderWidth?: number;
|
|
463
|
+
readonly toggleWidth?: number;
|
|
464
|
+
readonly toggleHeight?: number;
|
|
465
|
+
};
|
|
466
|
+
readonly pinKey?: string;
|
|
467
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
468
|
+
readonly showInSidebar?: boolean;
|
|
469
|
+
readonly displayOptions?: {
|
|
470
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
471
|
+
};
|
|
472
|
+
readonly freeFloating?: boolean;
|
|
473
|
+
readonly type: "combo";
|
|
474
|
+
readonly values: readonly (string | {
|
|
475
|
+
readonly label: string;
|
|
476
|
+
readonly value: string | number;
|
|
477
|
+
})[];
|
|
478
|
+
} | {
|
|
479
|
+
readonly id: string;
|
|
480
|
+
readonly label: string;
|
|
481
|
+
readonly key: string;
|
|
482
|
+
readonly disabled?: boolean;
|
|
483
|
+
readonly hint?: string;
|
|
484
|
+
readonly style?: {
|
|
485
|
+
readonly bg?: string;
|
|
486
|
+
readonly bgHover?: string;
|
|
487
|
+
readonly bgFocused?: string;
|
|
488
|
+
readonly track?: string;
|
|
489
|
+
readonly fill?: string;
|
|
490
|
+
readonly fillAlpha?: number;
|
|
491
|
+
readonly text?: string;
|
|
492
|
+
readonly label?: string;
|
|
493
|
+
readonly placeholder?: string;
|
|
494
|
+
readonly border?: string;
|
|
495
|
+
readonly borderFocused?: string;
|
|
496
|
+
readonly selection?: string;
|
|
497
|
+
readonly knob?: string;
|
|
498
|
+
readonly radius?: number;
|
|
499
|
+
readonly paddingX?: number;
|
|
500
|
+
readonly paddingY?: number;
|
|
501
|
+
readonly borderWidth?: number;
|
|
502
|
+
readonly toggleWidth?: number;
|
|
503
|
+
readonly toggleHeight?: number;
|
|
504
|
+
};
|
|
505
|
+
readonly pinKey?: string;
|
|
506
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
507
|
+
readonly showInSidebar?: boolean;
|
|
508
|
+
readonly displayOptions?: {
|
|
509
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
510
|
+
};
|
|
511
|
+
readonly freeFloating?: boolean;
|
|
512
|
+
readonly type: "text";
|
|
513
|
+
readonly multiline?: boolean;
|
|
514
|
+
readonly placeholder?: string;
|
|
515
|
+
readonly maxLength?: number;
|
|
516
|
+
} | {
|
|
517
|
+
readonly id: string;
|
|
518
|
+
readonly label: string;
|
|
519
|
+
readonly key: string;
|
|
520
|
+
readonly disabled?: boolean;
|
|
521
|
+
readonly hint?: string;
|
|
522
|
+
readonly style?: {
|
|
523
|
+
readonly bg?: string;
|
|
524
|
+
readonly bgHover?: string;
|
|
525
|
+
readonly bgFocused?: string;
|
|
526
|
+
readonly track?: string;
|
|
527
|
+
readonly fill?: string;
|
|
528
|
+
readonly fillAlpha?: number;
|
|
529
|
+
readonly text?: string;
|
|
530
|
+
readonly label?: string;
|
|
531
|
+
readonly placeholder?: string;
|
|
532
|
+
readonly border?: string;
|
|
533
|
+
readonly borderFocused?: string;
|
|
534
|
+
readonly selection?: string;
|
|
535
|
+
readonly knob?: string;
|
|
536
|
+
readonly radius?: number;
|
|
537
|
+
readonly paddingX?: number;
|
|
538
|
+
readonly paddingY?: number;
|
|
539
|
+
readonly borderWidth?: number;
|
|
540
|
+
readonly toggleWidth?: number;
|
|
541
|
+
readonly toggleHeight?: number;
|
|
542
|
+
};
|
|
543
|
+
readonly pinKey?: string;
|
|
544
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
545
|
+
readonly showInSidebar?: boolean;
|
|
546
|
+
readonly displayOptions?: {
|
|
547
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
548
|
+
};
|
|
549
|
+
readonly freeFloating?: boolean;
|
|
550
|
+
readonly type: "toggle";
|
|
551
|
+
readonly onLabel?: string;
|
|
552
|
+
readonly offLabel?: string;
|
|
553
|
+
} | {
|
|
554
|
+
readonly id: string;
|
|
555
|
+
readonly label: string;
|
|
556
|
+
readonly key?: string;
|
|
557
|
+
readonly disabled?: boolean;
|
|
558
|
+
readonly hint?: string;
|
|
559
|
+
readonly style?: {
|
|
560
|
+
readonly bg?: string;
|
|
561
|
+
readonly bgHover?: string;
|
|
562
|
+
readonly bgFocused?: string;
|
|
563
|
+
readonly track?: string;
|
|
564
|
+
readonly fill?: string;
|
|
565
|
+
readonly fillAlpha?: number;
|
|
566
|
+
readonly text?: string;
|
|
567
|
+
readonly label?: string;
|
|
568
|
+
readonly placeholder?: string;
|
|
569
|
+
readonly border?: string;
|
|
570
|
+
readonly borderFocused?: string;
|
|
571
|
+
readonly selection?: string;
|
|
572
|
+
readonly knob?: string;
|
|
573
|
+
readonly radius?: number;
|
|
574
|
+
readonly paddingX?: number;
|
|
575
|
+
readonly paddingY?: number;
|
|
576
|
+
readonly borderWidth?: number;
|
|
577
|
+
readonly toggleWidth?: number;
|
|
578
|
+
readonly toggleHeight?: number;
|
|
579
|
+
};
|
|
580
|
+
readonly pinKey?: string;
|
|
581
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
582
|
+
readonly showInSidebar?: boolean;
|
|
583
|
+
readonly displayOptions?: {
|
|
584
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
585
|
+
};
|
|
586
|
+
readonly freeFloating?: boolean;
|
|
587
|
+
readonly type: "button";
|
|
588
|
+
readonly action: string;
|
|
589
|
+
} | {
|
|
590
|
+
readonly id: string;
|
|
591
|
+
readonly label: string;
|
|
592
|
+
readonly key: string;
|
|
593
|
+
readonly disabled?: boolean;
|
|
594
|
+
readonly hint?: string;
|
|
595
|
+
readonly style?: {
|
|
596
|
+
readonly bg?: string;
|
|
597
|
+
readonly bgHover?: string;
|
|
598
|
+
readonly bgFocused?: string;
|
|
599
|
+
readonly track?: string;
|
|
600
|
+
readonly fill?: string;
|
|
601
|
+
readonly fillAlpha?: number;
|
|
602
|
+
readonly text?: string;
|
|
603
|
+
readonly label?: string;
|
|
604
|
+
readonly placeholder?: string;
|
|
605
|
+
readonly border?: string;
|
|
606
|
+
readonly borderFocused?: string;
|
|
607
|
+
readonly selection?: string;
|
|
608
|
+
readonly knob?: string;
|
|
609
|
+
readonly radius?: number;
|
|
610
|
+
readonly paddingX?: number;
|
|
611
|
+
readonly paddingY?: number;
|
|
612
|
+
readonly borderWidth?: number;
|
|
613
|
+
readonly toggleWidth?: number;
|
|
614
|
+
readonly toggleHeight?: number;
|
|
615
|
+
};
|
|
616
|
+
readonly pinKey?: string;
|
|
617
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
618
|
+
readonly showInSidebar?: boolean;
|
|
619
|
+
readonly displayOptions?: {
|
|
620
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
621
|
+
};
|
|
622
|
+
readonly freeFloating?: boolean;
|
|
623
|
+
readonly type: "color";
|
|
624
|
+
} | {
|
|
625
|
+
readonly id: string;
|
|
626
|
+
readonly label: string;
|
|
627
|
+
readonly key: string;
|
|
628
|
+
readonly disabled?: boolean;
|
|
629
|
+
readonly hint?: string;
|
|
630
|
+
readonly style?: {
|
|
631
|
+
readonly bg?: string;
|
|
632
|
+
readonly bgHover?: string;
|
|
633
|
+
readonly bgFocused?: string;
|
|
634
|
+
readonly track?: string;
|
|
635
|
+
readonly fill?: string;
|
|
636
|
+
readonly fillAlpha?: number;
|
|
637
|
+
readonly text?: string;
|
|
638
|
+
readonly label?: string;
|
|
639
|
+
readonly placeholder?: string;
|
|
640
|
+
readonly border?: string;
|
|
641
|
+
readonly borderFocused?: string;
|
|
642
|
+
readonly selection?: string;
|
|
643
|
+
readonly knob?: string;
|
|
644
|
+
readonly radius?: number;
|
|
645
|
+
readonly paddingX?: number;
|
|
646
|
+
readonly paddingY?: number;
|
|
647
|
+
readonly borderWidth?: number;
|
|
648
|
+
readonly toggleWidth?: number;
|
|
649
|
+
readonly toggleHeight?: number;
|
|
650
|
+
};
|
|
651
|
+
readonly pinKey?: string;
|
|
652
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
653
|
+
readonly showInSidebar?: boolean;
|
|
654
|
+
readonly displayOptions?: {
|
|
655
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
656
|
+
};
|
|
657
|
+
readonly freeFloating?: boolean;
|
|
658
|
+
readonly type: "custom";
|
|
659
|
+
readonly renderer: string;
|
|
660
|
+
readonly height?: number;
|
|
661
|
+
})[];
|
|
662
|
+
readonly pure?: boolean;
|
|
663
|
+
readonly meta?: {
|
|
664
|
+
readonly [x: string]: Readonly<unknown>;
|
|
665
|
+
};
|
|
666
|
+
readonly glyph?: {
|
|
667
|
+
readonly icon: string;
|
|
668
|
+
readonly side?: "left" | "right";
|
|
669
|
+
};
|
|
670
|
+
readonly version?: number;
|
|
671
|
+
}[]>>;
|
|
672
|
+
/** Live array of edges; re-renders on connect/disconnect, node removal, load, and undo/redo. */
|
|
673
|
+
export declare const useEdges: () => Readonly<import("vue").Ref<readonly {
|
|
674
|
+
readonly id: import("@xenolithengine/graph-core").EdgeId;
|
|
675
|
+
readonly from: {
|
|
676
|
+
readonly node: NodeId;
|
|
677
|
+
readonly pin: import("@xenolithengine/graph-core").PinId;
|
|
678
|
+
};
|
|
679
|
+
readonly to: {
|
|
680
|
+
readonly node: NodeId;
|
|
681
|
+
readonly pin: import("@xenolithengine/graph-core").PinId;
|
|
682
|
+
};
|
|
683
|
+
}[], readonly {
|
|
684
|
+
readonly id: import("@xenolithengine/graph-core").EdgeId;
|
|
685
|
+
readonly from: {
|
|
686
|
+
readonly node: NodeId;
|
|
687
|
+
readonly pin: import("@xenolithengine/graph-core").PinId;
|
|
688
|
+
};
|
|
689
|
+
readonly to: {
|
|
690
|
+
readonly node: NodeId;
|
|
691
|
+
readonly pin: import("@xenolithengine/graph-core").PinId;
|
|
692
|
+
};
|
|
693
|
+
}[]>>;
|
|
694
|
+
/** Live selection (node ids); re-renders on selection change. */
|
|
695
|
+
export declare const useSelection: () => Readonly<import("vue").Ref<readonly NodeId[], readonly NodeId[]>>;
|
|
696
|
+
/** Live viewport (`x`, `y`, `zoom`); re-renders on pan / zoom. */
|
|
697
|
+
export declare const useViewport: () => Readonly<import("vue").Ref<{
|
|
698
|
+
readonly x: number;
|
|
699
|
+
readonly y: number;
|
|
700
|
+
readonly zoom: number;
|
|
701
|
+
}, {
|
|
702
|
+
readonly x: number;
|
|
703
|
+
readonly y: number;
|
|
704
|
+
readonly zoom: number;
|
|
705
|
+
}>>;
|
|
706
|
+
/** Live serialized graph (xenolith.v1); recomputes on any graph mutation, load, and undo/redo. */
|
|
707
|
+
export declare const useGraphJSON: () => Readonly<import("vue").Ref<{
|
|
708
|
+
readonly version: import("@xenolithengine/graph-editor").XenolithGraphVersion;
|
|
709
|
+
readonly viewport?: {
|
|
710
|
+
readonly x: number;
|
|
711
|
+
readonly y: number;
|
|
712
|
+
readonly zoom: number;
|
|
713
|
+
};
|
|
714
|
+
readonly nodes: readonly {
|
|
715
|
+
readonly id: string;
|
|
716
|
+
readonly type: string;
|
|
717
|
+
readonly position: {
|
|
718
|
+
readonly x: number;
|
|
719
|
+
readonly y: number;
|
|
720
|
+
};
|
|
721
|
+
readonly size?: {
|
|
722
|
+
readonly x: number;
|
|
723
|
+
readonly y: number;
|
|
724
|
+
};
|
|
725
|
+
readonly state?: {
|
|
726
|
+
readonly [x: string]: Readonly<unknown>;
|
|
727
|
+
};
|
|
728
|
+
readonly pins: readonly {
|
|
729
|
+
readonly id: string;
|
|
730
|
+
readonly kind: "exec" | "data";
|
|
731
|
+
readonly direction: "in" | "out";
|
|
732
|
+
readonly type: string;
|
|
733
|
+
readonly multiple: boolean;
|
|
734
|
+
readonly label?: string;
|
|
735
|
+
}[];
|
|
736
|
+
readonly widgets?: readonly ({
|
|
737
|
+
readonly id: string;
|
|
738
|
+
readonly label: string;
|
|
739
|
+
readonly key: string;
|
|
740
|
+
readonly disabled?: boolean;
|
|
741
|
+
readonly hint?: string;
|
|
742
|
+
readonly style?: {
|
|
743
|
+
readonly bg?: string;
|
|
744
|
+
readonly bgHover?: string;
|
|
745
|
+
readonly bgFocused?: string;
|
|
746
|
+
readonly track?: string;
|
|
747
|
+
readonly fill?: string;
|
|
748
|
+
readonly fillAlpha?: number;
|
|
749
|
+
readonly text?: string;
|
|
750
|
+
readonly label?: string;
|
|
751
|
+
readonly placeholder?: string;
|
|
752
|
+
readonly border?: string;
|
|
753
|
+
readonly borderFocused?: string;
|
|
754
|
+
readonly selection?: string;
|
|
755
|
+
readonly knob?: string;
|
|
756
|
+
readonly radius?: number;
|
|
757
|
+
readonly paddingX?: number;
|
|
758
|
+
readonly paddingY?: number;
|
|
759
|
+
readonly borderWidth?: number;
|
|
760
|
+
readonly toggleWidth?: number;
|
|
761
|
+
readonly toggleHeight?: number;
|
|
762
|
+
};
|
|
763
|
+
readonly pinKey?: string;
|
|
764
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
765
|
+
readonly showInSidebar?: boolean;
|
|
766
|
+
readonly displayOptions?: {
|
|
767
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
768
|
+
};
|
|
769
|
+
readonly freeFloating?: boolean;
|
|
770
|
+
readonly type: "number";
|
|
771
|
+
readonly min?: number;
|
|
772
|
+
readonly max?: number;
|
|
773
|
+
readonly step?: number;
|
|
774
|
+
readonly precision?: number;
|
|
775
|
+
readonly unit?: string;
|
|
776
|
+
} | {
|
|
777
|
+
readonly id: string;
|
|
778
|
+
readonly label: string;
|
|
779
|
+
readonly key: string;
|
|
780
|
+
readonly disabled?: boolean;
|
|
781
|
+
readonly hint?: string;
|
|
782
|
+
readonly style?: {
|
|
783
|
+
readonly bg?: string;
|
|
784
|
+
readonly bgHover?: string;
|
|
785
|
+
readonly bgFocused?: string;
|
|
786
|
+
readonly track?: string;
|
|
787
|
+
readonly fill?: string;
|
|
788
|
+
readonly fillAlpha?: number;
|
|
789
|
+
readonly text?: string;
|
|
790
|
+
readonly label?: string;
|
|
791
|
+
readonly placeholder?: string;
|
|
792
|
+
readonly border?: string;
|
|
793
|
+
readonly borderFocused?: string;
|
|
794
|
+
readonly selection?: string;
|
|
795
|
+
readonly knob?: string;
|
|
796
|
+
readonly radius?: number;
|
|
797
|
+
readonly paddingX?: number;
|
|
798
|
+
readonly paddingY?: number;
|
|
799
|
+
readonly borderWidth?: number;
|
|
800
|
+
readonly toggleWidth?: number;
|
|
801
|
+
readonly toggleHeight?: number;
|
|
802
|
+
};
|
|
803
|
+
readonly pinKey?: string;
|
|
804
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
805
|
+
readonly showInSidebar?: boolean;
|
|
806
|
+
readonly displayOptions?: {
|
|
807
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
808
|
+
};
|
|
809
|
+
readonly freeFloating?: boolean;
|
|
810
|
+
readonly type: "slider";
|
|
811
|
+
readonly min: number;
|
|
812
|
+
readonly max: number;
|
|
813
|
+
readonly step?: number;
|
|
814
|
+
} | {
|
|
815
|
+
readonly id: string;
|
|
816
|
+
readonly label: string;
|
|
817
|
+
readonly key: string;
|
|
818
|
+
readonly disabled?: boolean;
|
|
819
|
+
readonly hint?: string;
|
|
820
|
+
readonly style?: {
|
|
821
|
+
readonly bg?: string;
|
|
822
|
+
readonly bgHover?: string;
|
|
823
|
+
readonly bgFocused?: string;
|
|
824
|
+
readonly track?: string;
|
|
825
|
+
readonly fill?: string;
|
|
826
|
+
readonly fillAlpha?: number;
|
|
827
|
+
readonly text?: string;
|
|
828
|
+
readonly label?: string;
|
|
829
|
+
readonly placeholder?: string;
|
|
830
|
+
readonly border?: string;
|
|
831
|
+
readonly borderFocused?: string;
|
|
832
|
+
readonly selection?: string;
|
|
833
|
+
readonly knob?: string;
|
|
834
|
+
readonly radius?: number;
|
|
835
|
+
readonly paddingX?: number;
|
|
836
|
+
readonly paddingY?: number;
|
|
837
|
+
readonly borderWidth?: number;
|
|
838
|
+
readonly toggleWidth?: number;
|
|
839
|
+
readonly toggleHeight?: number;
|
|
840
|
+
};
|
|
841
|
+
readonly pinKey?: string;
|
|
842
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
843
|
+
readonly showInSidebar?: boolean;
|
|
844
|
+
readonly displayOptions?: {
|
|
845
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
846
|
+
};
|
|
847
|
+
readonly freeFloating?: boolean;
|
|
848
|
+
readonly type: "combo";
|
|
849
|
+
readonly values: readonly (string | {
|
|
850
|
+
readonly label: string;
|
|
851
|
+
readonly value: string | number;
|
|
852
|
+
})[];
|
|
853
|
+
} | {
|
|
854
|
+
readonly id: string;
|
|
855
|
+
readonly label: string;
|
|
856
|
+
readonly key: string;
|
|
857
|
+
readonly disabled?: boolean;
|
|
858
|
+
readonly hint?: string;
|
|
859
|
+
readonly style?: {
|
|
860
|
+
readonly bg?: string;
|
|
861
|
+
readonly bgHover?: string;
|
|
862
|
+
readonly bgFocused?: string;
|
|
863
|
+
readonly track?: string;
|
|
864
|
+
readonly fill?: string;
|
|
865
|
+
readonly fillAlpha?: number;
|
|
866
|
+
readonly text?: string;
|
|
867
|
+
readonly label?: string;
|
|
868
|
+
readonly placeholder?: string;
|
|
869
|
+
readonly border?: string;
|
|
870
|
+
readonly borderFocused?: string;
|
|
871
|
+
readonly selection?: string;
|
|
872
|
+
readonly knob?: string;
|
|
873
|
+
readonly radius?: number;
|
|
874
|
+
readonly paddingX?: number;
|
|
875
|
+
readonly paddingY?: number;
|
|
876
|
+
readonly borderWidth?: number;
|
|
877
|
+
readonly toggleWidth?: number;
|
|
878
|
+
readonly toggleHeight?: number;
|
|
879
|
+
};
|
|
880
|
+
readonly pinKey?: string;
|
|
881
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
882
|
+
readonly showInSidebar?: boolean;
|
|
883
|
+
readonly displayOptions?: {
|
|
884
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
885
|
+
};
|
|
886
|
+
readonly freeFloating?: boolean;
|
|
887
|
+
readonly type: "text";
|
|
888
|
+
readonly multiline?: boolean;
|
|
889
|
+
readonly placeholder?: string;
|
|
890
|
+
readonly maxLength?: number;
|
|
891
|
+
} | {
|
|
892
|
+
readonly id: string;
|
|
893
|
+
readonly label: string;
|
|
894
|
+
readonly key: string;
|
|
895
|
+
readonly disabled?: boolean;
|
|
896
|
+
readonly hint?: string;
|
|
897
|
+
readonly style?: {
|
|
898
|
+
readonly bg?: string;
|
|
899
|
+
readonly bgHover?: string;
|
|
900
|
+
readonly bgFocused?: string;
|
|
901
|
+
readonly track?: string;
|
|
902
|
+
readonly fill?: string;
|
|
903
|
+
readonly fillAlpha?: number;
|
|
904
|
+
readonly text?: string;
|
|
905
|
+
readonly label?: string;
|
|
906
|
+
readonly placeholder?: string;
|
|
907
|
+
readonly border?: string;
|
|
908
|
+
readonly borderFocused?: string;
|
|
909
|
+
readonly selection?: string;
|
|
910
|
+
readonly knob?: string;
|
|
911
|
+
readonly radius?: number;
|
|
912
|
+
readonly paddingX?: number;
|
|
913
|
+
readonly paddingY?: number;
|
|
914
|
+
readonly borderWidth?: number;
|
|
915
|
+
readonly toggleWidth?: number;
|
|
916
|
+
readonly toggleHeight?: number;
|
|
917
|
+
};
|
|
918
|
+
readonly pinKey?: string;
|
|
919
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
920
|
+
readonly showInSidebar?: boolean;
|
|
921
|
+
readonly displayOptions?: {
|
|
922
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
923
|
+
};
|
|
924
|
+
readonly freeFloating?: boolean;
|
|
925
|
+
readonly type: "toggle";
|
|
926
|
+
readonly onLabel?: string;
|
|
927
|
+
readonly offLabel?: string;
|
|
928
|
+
} | {
|
|
929
|
+
readonly id: string;
|
|
930
|
+
readonly label: string;
|
|
931
|
+
readonly key?: string;
|
|
932
|
+
readonly disabled?: boolean;
|
|
933
|
+
readonly hint?: string;
|
|
934
|
+
readonly style?: {
|
|
935
|
+
readonly bg?: string;
|
|
936
|
+
readonly bgHover?: string;
|
|
937
|
+
readonly bgFocused?: string;
|
|
938
|
+
readonly track?: string;
|
|
939
|
+
readonly fill?: string;
|
|
940
|
+
readonly fillAlpha?: number;
|
|
941
|
+
readonly text?: string;
|
|
942
|
+
readonly label?: string;
|
|
943
|
+
readonly placeholder?: string;
|
|
944
|
+
readonly border?: string;
|
|
945
|
+
readonly borderFocused?: string;
|
|
946
|
+
readonly selection?: string;
|
|
947
|
+
readonly knob?: string;
|
|
948
|
+
readonly radius?: number;
|
|
949
|
+
readonly paddingX?: number;
|
|
950
|
+
readonly paddingY?: number;
|
|
951
|
+
readonly borderWidth?: number;
|
|
952
|
+
readonly toggleWidth?: number;
|
|
953
|
+
readonly toggleHeight?: number;
|
|
954
|
+
};
|
|
955
|
+
readonly pinKey?: string;
|
|
956
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
957
|
+
readonly showInSidebar?: boolean;
|
|
958
|
+
readonly displayOptions?: {
|
|
959
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
960
|
+
};
|
|
961
|
+
readonly freeFloating?: boolean;
|
|
962
|
+
readonly type: "button";
|
|
963
|
+
readonly action: string;
|
|
964
|
+
} | {
|
|
965
|
+
readonly id: string;
|
|
966
|
+
readonly label: string;
|
|
967
|
+
readonly key: string;
|
|
968
|
+
readonly disabled?: boolean;
|
|
969
|
+
readonly hint?: string;
|
|
970
|
+
readonly style?: {
|
|
971
|
+
readonly bg?: string;
|
|
972
|
+
readonly bgHover?: string;
|
|
973
|
+
readonly bgFocused?: string;
|
|
974
|
+
readonly track?: string;
|
|
975
|
+
readonly fill?: string;
|
|
976
|
+
readonly fillAlpha?: number;
|
|
977
|
+
readonly text?: string;
|
|
978
|
+
readonly label?: string;
|
|
979
|
+
readonly placeholder?: string;
|
|
980
|
+
readonly border?: string;
|
|
981
|
+
readonly borderFocused?: string;
|
|
982
|
+
readonly selection?: string;
|
|
983
|
+
readonly knob?: string;
|
|
984
|
+
readonly radius?: number;
|
|
985
|
+
readonly paddingX?: number;
|
|
986
|
+
readonly paddingY?: number;
|
|
987
|
+
readonly borderWidth?: number;
|
|
988
|
+
readonly toggleWidth?: number;
|
|
989
|
+
readonly toggleHeight?: number;
|
|
990
|
+
};
|
|
991
|
+
readonly pinKey?: string;
|
|
992
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
993
|
+
readonly showInSidebar?: boolean;
|
|
994
|
+
readonly displayOptions?: {
|
|
995
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
996
|
+
};
|
|
997
|
+
readonly freeFloating?: boolean;
|
|
998
|
+
readonly type: "color";
|
|
999
|
+
} | {
|
|
1000
|
+
readonly id: string;
|
|
1001
|
+
readonly label: string;
|
|
1002
|
+
readonly key: string;
|
|
1003
|
+
readonly disabled?: boolean;
|
|
1004
|
+
readonly hint?: string;
|
|
1005
|
+
readonly style?: {
|
|
1006
|
+
readonly bg?: string;
|
|
1007
|
+
readonly bgHover?: string;
|
|
1008
|
+
readonly bgFocused?: string;
|
|
1009
|
+
readonly track?: string;
|
|
1010
|
+
readonly fill?: string;
|
|
1011
|
+
readonly fillAlpha?: number;
|
|
1012
|
+
readonly text?: string;
|
|
1013
|
+
readonly label?: string;
|
|
1014
|
+
readonly placeholder?: string;
|
|
1015
|
+
readonly border?: string;
|
|
1016
|
+
readonly borderFocused?: string;
|
|
1017
|
+
readonly selection?: string;
|
|
1018
|
+
readonly knob?: string;
|
|
1019
|
+
readonly radius?: number;
|
|
1020
|
+
readonly paddingX?: number;
|
|
1021
|
+
readonly paddingY?: number;
|
|
1022
|
+
readonly borderWidth?: number;
|
|
1023
|
+
readonly toggleWidth?: number;
|
|
1024
|
+
readonly toggleHeight?: number;
|
|
1025
|
+
};
|
|
1026
|
+
readonly pinKey?: string;
|
|
1027
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1028
|
+
readonly showInSidebar?: boolean;
|
|
1029
|
+
readonly displayOptions?: {
|
|
1030
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1031
|
+
};
|
|
1032
|
+
readonly freeFloating?: boolean;
|
|
1033
|
+
readonly type: "custom";
|
|
1034
|
+
readonly renderer: string;
|
|
1035
|
+
readonly height?: number;
|
|
1036
|
+
})[];
|
|
1037
|
+
readonly render?: {
|
|
1038
|
+
readonly category?: string;
|
|
1039
|
+
readonly title?: string;
|
|
1040
|
+
readonly collapsed?: boolean;
|
|
1041
|
+
readonly color?: string;
|
|
1042
|
+
};
|
|
1043
|
+
readonly pure?: boolean;
|
|
1044
|
+
readonly meta?: {
|
|
1045
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1046
|
+
};
|
|
1047
|
+
readonly glyph?: {
|
|
1048
|
+
readonly icon: string;
|
|
1049
|
+
readonly side?: "left" | "right";
|
|
1050
|
+
};
|
|
1051
|
+
}[];
|
|
1052
|
+
readonly edges: readonly {
|
|
1053
|
+
readonly id: string;
|
|
1054
|
+
readonly from: {
|
|
1055
|
+
readonly node: string;
|
|
1056
|
+
readonly pin: string;
|
|
1057
|
+
};
|
|
1058
|
+
readonly to: {
|
|
1059
|
+
readonly node: string;
|
|
1060
|
+
readonly pin: string;
|
|
1061
|
+
};
|
|
1062
|
+
readonly opts?: {
|
|
1063
|
+
readonly sourceType?: string;
|
|
1064
|
+
readonly label?: string;
|
|
1065
|
+
readonly markerEnd?: "arrow" | "none";
|
|
1066
|
+
readonly animated?: boolean;
|
|
1067
|
+
};
|
|
1068
|
+
}[];
|
|
1069
|
+
readonly comments?: readonly {
|
|
1070
|
+
readonly id: string;
|
|
1071
|
+
readonly position: {
|
|
1072
|
+
readonly x: number;
|
|
1073
|
+
readonly y: number;
|
|
1074
|
+
};
|
|
1075
|
+
readonly size: {
|
|
1076
|
+
readonly x: number;
|
|
1077
|
+
readonly y: number;
|
|
1078
|
+
};
|
|
1079
|
+
readonly text: string;
|
|
1080
|
+
readonly color?: string;
|
|
1081
|
+
}[];
|
|
1082
|
+
readonly categories?: {
|
|
1083
|
+
readonly [x: string]: {
|
|
1084
|
+
readonly color: string;
|
|
1085
|
+
} | {
|
|
1086
|
+
readonly gradient: {
|
|
1087
|
+
readonly start: string;
|
|
1088
|
+
readonly end: string;
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
1092
|
+
readonly templates?: {
|
|
1093
|
+
readonly [x: string]: {
|
|
1094
|
+
readonly title: string;
|
|
1095
|
+
readonly nodes: readonly {
|
|
1096
|
+
readonly id: string;
|
|
1097
|
+
readonly type: string;
|
|
1098
|
+
readonly position: {
|
|
1099
|
+
readonly x: number;
|
|
1100
|
+
readonly y: number;
|
|
1101
|
+
};
|
|
1102
|
+
readonly size?: {
|
|
1103
|
+
readonly x: number;
|
|
1104
|
+
readonly y: number;
|
|
1105
|
+
};
|
|
1106
|
+
readonly state?: {
|
|
1107
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1108
|
+
};
|
|
1109
|
+
readonly pins: readonly {
|
|
1110
|
+
readonly id: string;
|
|
1111
|
+
readonly kind: "exec" | "data";
|
|
1112
|
+
readonly direction: "in" | "out";
|
|
1113
|
+
readonly type: string;
|
|
1114
|
+
readonly multiple: boolean;
|
|
1115
|
+
readonly label?: string;
|
|
1116
|
+
}[];
|
|
1117
|
+
readonly widgets?: readonly ({
|
|
1118
|
+
readonly id: string;
|
|
1119
|
+
readonly label: string;
|
|
1120
|
+
readonly key: string;
|
|
1121
|
+
readonly disabled?: boolean;
|
|
1122
|
+
readonly hint?: string;
|
|
1123
|
+
readonly style?: {
|
|
1124
|
+
readonly bg?: string;
|
|
1125
|
+
readonly bgHover?: string;
|
|
1126
|
+
readonly bgFocused?: string;
|
|
1127
|
+
readonly track?: string;
|
|
1128
|
+
readonly fill?: string;
|
|
1129
|
+
readonly fillAlpha?: number;
|
|
1130
|
+
readonly text?: string;
|
|
1131
|
+
readonly label?: string;
|
|
1132
|
+
readonly placeholder?: string;
|
|
1133
|
+
readonly border?: string;
|
|
1134
|
+
readonly borderFocused?: string;
|
|
1135
|
+
readonly selection?: string;
|
|
1136
|
+
readonly knob?: string;
|
|
1137
|
+
readonly radius?: number;
|
|
1138
|
+
readonly paddingX?: number;
|
|
1139
|
+
readonly paddingY?: number;
|
|
1140
|
+
readonly borderWidth?: number;
|
|
1141
|
+
readonly toggleWidth?: number;
|
|
1142
|
+
readonly toggleHeight?: number;
|
|
1143
|
+
};
|
|
1144
|
+
readonly pinKey?: string;
|
|
1145
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1146
|
+
readonly showInSidebar?: boolean;
|
|
1147
|
+
readonly displayOptions?: {
|
|
1148
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1149
|
+
};
|
|
1150
|
+
readonly freeFloating?: boolean;
|
|
1151
|
+
readonly type: "number";
|
|
1152
|
+
readonly min?: number;
|
|
1153
|
+
readonly max?: number;
|
|
1154
|
+
readonly step?: number;
|
|
1155
|
+
readonly precision?: number;
|
|
1156
|
+
readonly unit?: string;
|
|
1157
|
+
} | {
|
|
1158
|
+
readonly id: string;
|
|
1159
|
+
readonly label: string;
|
|
1160
|
+
readonly key: string;
|
|
1161
|
+
readonly disabled?: boolean;
|
|
1162
|
+
readonly hint?: string;
|
|
1163
|
+
readonly style?: {
|
|
1164
|
+
readonly bg?: string;
|
|
1165
|
+
readonly bgHover?: string;
|
|
1166
|
+
readonly bgFocused?: string;
|
|
1167
|
+
readonly track?: string;
|
|
1168
|
+
readonly fill?: string;
|
|
1169
|
+
readonly fillAlpha?: number;
|
|
1170
|
+
readonly text?: string;
|
|
1171
|
+
readonly label?: string;
|
|
1172
|
+
readonly placeholder?: string;
|
|
1173
|
+
readonly border?: string;
|
|
1174
|
+
readonly borderFocused?: string;
|
|
1175
|
+
readonly selection?: string;
|
|
1176
|
+
readonly knob?: string;
|
|
1177
|
+
readonly radius?: number;
|
|
1178
|
+
readonly paddingX?: number;
|
|
1179
|
+
readonly paddingY?: number;
|
|
1180
|
+
readonly borderWidth?: number;
|
|
1181
|
+
readonly toggleWidth?: number;
|
|
1182
|
+
readonly toggleHeight?: number;
|
|
1183
|
+
};
|
|
1184
|
+
readonly pinKey?: string;
|
|
1185
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1186
|
+
readonly showInSidebar?: boolean;
|
|
1187
|
+
readonly displayOptions?: {
|
|
1188
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1189
|
+
};
|
|
1190
|
+
readonly freeFloating?: boolean;
|
|
1191
|
+
readonly type: "slider";
|
|
1192
|
+
readonly min: number;
|
|
1193
|
+
readonly max: number;
|
|
1194
|
+
readonly step?: number;
|
|
1195
|
+
} | {
|
|
1196
|
+
readonly id: string;
|
|
1197
|
+
readonly label: string;
|
|
1198
|
+
readonly key: string;
|
|
1199
|
+
readonly disabled?: boolean;
|
|
1200
|
+
readonly hint?: string;
|
|
1201
|
+
readonly style?: {
|
|
1202
|
+
readonly bg?: string;
|
|
1203
|
+
readonly bgHover?: string;
|
|
1204
|
+
readonly bgFocused?: string;
|
|
1205
|
+
readonly track?: string;
|
|
1206
|
+
readonly fill?: string;
|
|
1207
|
+
readonly fillAlpha?: number;
|
|
1208
|
+
readonly text?: string;
|
|
1209
|
+
readonly label?: string;
|
|
1210
|
+
readonly placeholder?: string;
|
|
1211
|
+
readonly border?: string;
|
|
1212
|
+
readonly borderFocused?: string;
|
|
1213
|
+
readonly selection?: string;
|
|
1214
|
+
readonly knob?: string;
|
|
1215
|
+
readonly radius?: number;
|
|
1216
|
+
readonly paddingX?: number;
|
|
1217
|
+
readonly paddingY?: number;
|
|
1218
|
+
readonly borderWidth?: number;
|
|
1219
|
+
readonly toggleWidth?: number;
|
|
1220
|
+
readonly toggleHeight?: number;
|
|
1221
|
+
};
|
|
1222
|
+
readonly pinKey?: string;
|
|
1223
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1224
|
+
readonly showInSidebar?: boolean;
|
|
1225
|
+
readonly displayOptions?: {
|
|
1226
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1227
|
+
};
|
|
1228
|
+
readonly freeFloating?: boolean;
|
|
1229
|
+
readonly type: "combo";
|
|
1230
|
+
readonly values: readonly (string | {
|
|
1231
|
+
readonly label: string;
|
|
1232
|
+
readonly value: string | number;
|
|
1233
|
+
})[];
|
|
1234
|
+
} | {
|
|
1235
|
+
readonly id: string;
|
|
1236
|
+
readonly label: string;
|
|
1237
|
+
readonly key: string;
|
|
1238
|
+
readonly disabled?: boolean;
|
|
1239
|
+
readonly hint?: string;
|
|
1240
|
+
readonly style?: {
|
|
1241
|
+
readonly bg?: string;
|
|
1242
|
+
readonly bgHover?: string;
|
|
1243
|
+
readonly bgFocused?: string;
|
|
1244
|
+
readonly track?: string;
|
|
1245
|
+
readonly fill?: string;
|
|
1246
|
+
readonly fillAlpha?: number;
|
|
1247
|
+
readonly text?: string;
|
|
1248
|
+
readonly label?: string;
|
|
1249
|
+
readonly placeholder?: string;
|
|
1250
|
+
readonly border?: string;
|
|
1251
|
+
readonly borderFocused?: string;
|
|
1252
|
+
readonly selection?: string;
|
|
1253
|
+
readonly knob?: string;
|
|
1254
|
+
readonly radius?: number;
|
|
1255
|
+
readonly paddingX?: number;
|
|
1256
|
+
readonly paddingY?: number;
|
|
1257
|
+
readonly borderWidth?: number;
|
|
1258
|
+
readonly toggleWidth?: number;
|
|
1259
|
+
readonly toggleHeight?: number;
|
|
1260
|
+
};
|
|
1261
|
+
readonly pinKey?: string;
|
|
1262
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1263
|
+
readonly showInSidebar?: boolean;
|
|
1264
|
+
readonly displayOptions?: {
|
|
1265
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1266
|
+
};
|
|
1267
|
+
readonly freeFloating?: boolean;
|
|
1268
|
+
readonly type: "text";
|
|
1269
|
+
readonly multiline?: boolean;
|
|
1270
|
+
readonly placeholder?: string;
|
|
1271
|
+
readonly maxLength?: number;
|
|
1272
|
+
} | {
|
|
1273
|
+
readonly id: string;
|
|
1274
|
+
readonly label: string;
|
|
1275
|
+
readonly key: string;
|
|
1276
|
+
readonly disabled?: boolean;
|
|
1277
|
+
readonly hint?: string;
|
|
1278
|
+
readonly style?: {
|
|
1279
|
+
readonly bg?: string;
|
|
1280
|
+
readonly bgHover?: string;
|
|
1281
|
+
readonly bgFocused?: string;
|
|
1282
|
+
readonly track?: string;
|
|
1283
|
+
readonly fill?: string;
|
|
1284
|
+
readonly fillAlpha?: number;
|
|
1285
|
+
readonly text?: string;
|
|
1286
|
+
readonly label?: string;
|
|
1287
|
+
readonly placeholder?: string;
|
|
1288
|
+
readonly border?: string;
|
|
1289
|
+
readonly borderFocused?: string;
|
|
1290
|
+
readonly selection?: string;
|
|
1291
|
+
readonly knob?: string;
|
|
1292
|
+
readonly radius?: number;
|
|
1293
|
+
readonly paddingX?: number;
|
|
1294
|
+
readonly paddingY?: number;
|
|
1295
|
+
readonly borderWidth?: number;
|
|
1296
|
+
readonly toggleWidth?: number;
|
|
1297
|
+
readonly toggleHeight?: number;
|
|
1298
|
+
};
|
|
1299
|
+
readonly pinKey?: string;
|
|
1300
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1301
|
+
readonly showInSidebar?: boolean;
|
|
1302
|
+
readonly displayOptions?: {
|
|
1303
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1304
|
+
};
|
|
1305
|
+
readonly freeFloating?: boolean;
|
|
1306
|
+
readonly type: "toggle";
|
|
1307
|
+
readonly onLabel?: string;
|
|
1308
|
+
readonly offLabel?: string;
|
|
1309
|
+
} | {
|
|
1310
|
+
readonly id: string;
|
|
1311
|
+
readonly label: string;
|
|
1312
|
+
readonly key?: string;
|
|
1313
|
+
readonly disabled?: boolean;
|
|
1314
|
+
readonly hint?: string;
|
|
1315
|
+
readonly style?: {
|
|
1316
|
+
readonly bg?: string;
|
|
1317
|
+
readonly bgHover?: string;
|
|
1318
|
+
readonly bgFocused?: string;
|
|
1319
|
+
readonly track?: string;
|
|
1320
|
+
readonly fill?: string;
|
|
1321
|
+
readonly fillAlpha?: number;
|
|
1322
|
+
readonly text?: string;
|
|
1323
|
+
readonly label?: string;
|
|
1324
|
+
readonly placeholder?: string;
|
|
1325
|
+
readonly border?: string;
|
|
1326
|
+
readonly borderFocused?: string;
|
|
1327
|
+
readonly selection?: string;
|
|
1328
|
+
readonly knob?: string;
|
|
1329
|
+
readonly radius?: number;
|
|
1330
|
+
readonly paddingX?: number;
|
|
1331
|
+
readonly paddingY?: number;
|
|
1332
|
+
readonly borderWidth?: number;
|
|
1333
|
+
readonly toggleWidth?: number;
|
|
1334
|
+
readonly toggleHeight?: number;
|
|
1335
|
+
};
|
|
1336
|
+
readonly pinKey?: string;
|
|
1337
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1338
|
+
readonly showInSidebar?: boolean;
|
|
1339
|
+
readonly displayOptions?: {
|
|
1340
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1341
|
+
};
|
|
1342
|
+
readonly freeFloating?: boolean;
|
|
1343
|
+
readonly type: "button";
|
|
1344
|
+
readonly action: string;
|
|
1345
|
+
} | {
|
|
1346
|
+
readonly id: string;
|
|
1347
|
+
readonly label: string;
|
|
1348
|
+
readonly key: string;
|
|
1349
|
+
readonly disabled?: boolean;
|
|
1350
|
+
readonly hint?: string;
|
|
1351
|
+
readonly style?: {
|
|
1352
|
+
readonly bg?: string;
|
|
1353
|
+
readonly bgHover?: string;
|
|
1354
|
+
readonly bgFocused?: string;
|
|
1355
|
+
readonly track?: string;
|
|
1356
|
+
readonly fill?: string;
|
|
1357
|
+
readonly fillAlpha?: number;
|
|
1358
|
+
readonly text?: string;
|
|
1359
|
+
readonly label?: string;
|
|
1360
|
+
readonly placeholder?: string;
|
|
1361
|
+
readonly border?: string;
|
|
1362
|
+
readonly borderFocused?: string;
|
|
1363
|
+
readonly selection?: string;
|
|
1364
|
+
readonly knob?: string;
|
|
1365
|
+
readonly radius?: number;
|
|
1366
|
+
readonly paddingX?: number;
|
|
1367
|
+
readonly paddingY?: number;
|
|
1368
|
+
readonly borderWidth?: number;
|
|
1369
|
+
readonly toggleWidth?: number;
|
|
1370
|
+
readonly toggleHeight?: number;
|
|
1371
|
+
};
|
|
1372
|
+
readonly pinKey?: string;
|
|
1373
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1374
|
+
readonly showInSidebar?: boolean;
|
|
1375
|
+
readonly displayOptions?: {
|
|
1376
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1377
|
+
};
|
|
1378
|
+
readonly freeFloating?: boolean;
|
|
1379
|
+
readonly type: "color";
|
|
1380
|
+
} | {
|
|
1381
|
+
readonly id: string;
|
|
1382
|
+
readonly label: string;
|
|
1383
|
+
readonly key: string;
|
|
1384
|
+
readonly disabled?: boolean;
|
|
1385
|
+
readonly hint?: string;
|
|
1386
|
+
readonly style?: {
|
|
1387
|
+
readonly bg?: string;
|
|
1388
|
+
readonly bgHover?: string;
|
|
1389
|
+
readonly bgFocused?: string;
|
|
1390
|
+
readonly track?: string;
|
|
1391
|
+
readonly fill?: string;
|
|
1392
|
+
readonly fillAlpha?: number;
|
|
1393
|
+
readonly text?: string;
|
|
1394
|
+
readonly label?: string;
|
|
1395
|
+
readonly placeholder?: string;
|
|
1396
|
+
readonly border?: string;
|
|
1397
|
+
readonly borderFocused?: string;
|
|
1398
|
+
readonly selection?: string;
|
|
1399
|
+
readonly knob?: string;
|
|
1400
|
+
readonly radius?: number;
|
|
1401
|
+
readonly paddingX?: number;
|
|
1402
|
+
readonly paddingY?: number;
|
|
1403
|
+
readonly borderWidth?: number;
|
|
1404
|
+
readonly toggleWidth?: number;
|
|
1405
|
+
readonly toggleHeight?: number;
|
|
1406
|
+
};
|
|
1407
|
+
readonly pinKey?: string;
|
|
1408
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1409
|
+
readonly showInSidebar?: boolean;
|
|
1410
|
+
readonly displayOptions?: {
|
|
1411
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1412
|
+
};
|
|
1413
|
+
readonly freeFloating?: boolean;
|
|
1414
|
+
readonly type: "custom";
|
|
1415
|
+
readonly renderer: string;
|
|
1416
|
+
readonly height?: number;
|
|
1417
|
+
})[];
|
|
1418
|
+
readonly render?: {
|
|
1419
|
+
readonly category?: string;
|
|
1420
|
+
readonly title?: string;
|
|
1421
|
+
readonly collapsed?: boolean;
|
|
1422
|
+
readonly color?: string;
|
|
1423
|
+
};
|
|
1424
|
+
readonly pure?: boolean;
|
|
1425
|
+
readonly meta?: {
|
|
1426
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1427
|
+
};
|
|
1428
|
+
readonly glyph?: {
|
|
1429
|
+
readonly icon: string;
|
|
1430
|
+
readonly side?: "left" | "right";
|
|
1431
|
+
};
|
|
1432
|
+
}[];
|
|
1433
|
+
readonly edges: readonly {
|
|
1434
|
+
readonly id: string;
|
|
1435
|
+
readonly from: {
|
|
1436
|
+
readonly node: string;
|
|
1437
|
+
readonly pin: string;
|
|
1438
|
+
};
|
|
1439
|
+
readonly to: {
|
|
1440
|
+
readonly node: string;
|
|
1441
|
+
readonly pin: string;
|
|
1442
|
+
};
|
|
1443
|
+
readonly opts?: {
|
|
1444
|
+
readonly sourceType?: string;
|
|
1445
|
+
readonly label?: string;
|
|
1446
|
+
readonly markerEnd?: "arrow" | "none";
|
|
1447
|
+
readonly animated?: boolean;
|
|
1448
|
+
};
|
|
1449
|
+
}[];
|
|
1450
|
+
};
|
|
1451
|
+
};
|
|
1452
|
+
readonly schemas?: readonly {
|
|
1453
|
+
readonly type: string;
|
|
1454
|
+
readonly title: string;
|
|
1455
|
+
readonly category?: string;
|
|
1456
|
+
readonly description?: string;
|
|
1457
|
+
readonly keywords?: readonly string[];
|
|
1458
|
+
readonly pins: readonly {
|
|
1459
|
+
readonly kind: import("@xenolithengine/graph-core").PinKind;
|
|
1460
|
+
readonly direction: import("@xenolithengine/graph-core").PinDirection;
|
|
1461
|
+
readonly type: string;
|
|
1462
|
+
readonly label?: string;
|
|
1463
|
+
readonly multiple?: boolean;
|
|
1464
|
+
readonly default?: Readonly<unknown>;
|
|
1465
|
+
}[];
|
|
1466
|
+
readonly widgets?: readonly ({
|
|
1467
|
+
readonly id: string;
|
|
1468
|
+
readonly label: string;
|
|
1469
|
+
readonly key: string;
|
|
1470
|
+
readonly disabled?: boolean;
|
|
1471
|
+
readonly hint?: string;
|
|
1472
|
+
readonly style?: {
|
|
1473
|
+
readonly bg?: string;
|
|
1474
|
+
readonly bgHover?: string;
|
|
1475
|
+
readonly bgFocused?: string;
|
|
1476
|
+
readonly track?: string;
|
|
1477
|
+
readonly fill?: string;
|
|
1478
|
+
readonly fillAlpha?: number;
|
|
1479
|
+
readonly text?: string;
|
|
1480
|
+
readonly label?: string;
|
|
1481
|
+
readonly placeholder?: string;
|
|
1482
|
+
readonly border?: string;
|
|
1483
|
+
readonly borderFocused?: string;
|
|
1484
|
+
readonly selection?: string;
|
|
1485
|
+
readonly knob?: string;
|
|
1486
|
+
readonly radius?: number;
|
|
1487
|
+
readonly paddingX?: number;
|
|
1488
|
+
readonly paddingY?: number;
|
|
1489
|
+
readonly borderWidth?: number;
|
|
1490
|
+
readonly toggleWidth?: number;
|
|
1491
|
+
readonly toggleHeight?: number;
|
|
1492
|
+
};
|
|
1493
|
+
readonly pinKey?: string;
|
|
1494
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1495
|
+
readonly showInSidebar?: boolean;
|
|
1496
|
+
readonly displayOptions?: {
|
|
1497
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1498
|
+
};
|
|
1499
|
+
readonly freeFloating?: boolean;
|
|
1500
|
+
readonly type: "number";
|
|
1501
|
+
readonly min?: number;
|
|
1502
|
+
readonly max?: number;
|
|
1503
|
+
readonly step?: number;
|
|
1504
|
+
readonly precision?: number;
|
|
1505
|
+
readonly unit?: string;
|
|
1506
|
+
} | {
|
|
1507
|
+
readonly id: string;
|
|
1508
|
+
readonly label: string;
|
|
1509
|
+
readonly key: string;
|
|
1510
|
+
readonly disabled?: boolean;
|
|
1511
|
+
readonly hint?: string;
|
|
1512
|
+
readonly style?: {
|
|
1513
|
+
readonly bg?: string;
|
|
1514
|
+
readonly bgHover?: string;
|
|
1515
|
+
readonly bgFocused?: string;
|
|
1516
|
+
readonly track?: string;
|
|
1517
|
+
readonly fill?: string;
|
|
1518
|
+
readonly fillAlpha?: number;
|
|
1519
|
+
readonly text?: string;
|
|
1520
|
+
readonly label?: string;
|
|
1521
|
+
readonly placeholder?: string;
|
|
1522
|
+
readonly border?: string;
|
|
1523
|
+
readonly borderFocused?: string;
|
|
1524
|
+
readonly selection?: string;
|
|
1525
|
+
readonly knob?: string;
|
|
1526
|
+
readonly radius?: number;
|
|
1527
|
+
readonly paddingX?: number;
|
|
1528
|
+
readonly paddingY?: number;
|
|
1529
|
+
readonly borderWidth?: number;
|
|
1530
|
+
readonly toggleWidth?: number;
|
|
1531
|
+
readonly toggleHeight?: number;
|
|
1532
|
+
};
|
|
1533
|
+
readonly pinKey?: string;
|
|
1534
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1535
|
+
readonly showInSidebar?: boolean;
|
|
1536
|
+
readonly displayOptions?: {
|
|
1537
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1538
|
+
};
|
|
1539
|
+
readonly freeFloating?: boolean;
|
|
1540
|
+
readonly type: "slider";
|
|
1541
|
+
readonly min: number;
|
|
1542
|
+
readonly max: number;
|
|
1543
|
+
readonly step?: number;
|
|
1544
|
+
} | {
|
|
1545
|
+
readonly id: string;
|
|
1546
|
+
readonly label: string;
|
|
1547
|
+
readonly key: string;
|
|
1548
|
+
readonly disabled?: boolean;
|
|
1549
|
+
readonly hint?: string;
|
|
1550
|
+
readonly style?: {
|
|
1551
|
+
readonly bg?: string;
|
|
1552
|
+
readonly bgHover?: string;
|
|
1553
|
+
readonly bgFocused?: string;
|
|
1554
|
+
readonly track?: string;
|
|
1555
|
+
readonly fill?: string;
|
|
1556
|
+
readonly fillAlpha?: number;
|
|
1557
|
+
readonly text?: string;
|
|
1558
|
+
readonly label?: string;
|
|
1559
|
+
readonly placeholder?: string;
|
|
1560
|
+
readonly border?: string;
|
|
1561
|
+
readonly borderFocused?: string;
|
|
1562
|
+
readonly selection?: string;
|
|
1563
|
+
readonly knob?: string;
|
|
1564
|
+
readonly radius?: number;
|
|
1565
|
+
readonly paddingX?: number;
|
|
1566
|
+
readonly paddingY?: number;
|
|
1567
|
+
readonly borderWidth?: number;
|
|
1568
|
+
readonly toggleWidth?: number;
|
|
1569
|
+
readonly toggleHeight?: number;
|
|
1570
|
+
};
|
|
1571
|
+
readonly pinKey?: string;
|
|
1572
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1573
|
+
readonly showInSidebar?: boolean;
|
|
1574
|
+
readonly displayOptions?: {
|
|
1575
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1576
|
+
};
|
|
1577
|
+
readonly freeFloating?: boolean;
|
|
1578
|
+
readonly type: "combo";
|
|
1579
|
+
readonly values: readonly (string | {
|
|
1580
|
+
readonly label: string;
|
|
1581
|
+
readonly value: string | number;
|
|
1582
|
+
})[];
|
|
1583
|
+
} | {
|
|
1584
|
+
readonly id: string;
|
|
1585
|
+
readonly label: string;
|
|
1586
|
+
readonly key: string;
|
|
1587
|
+
readonly disabled?: boolean;
|
|
1588
|
+
readonly hint?: string;
|
|
1589
|
+
readonly style?: {
|
|
1590
|
+
readonly bg?: string;
|
|
1591
|
+
readonly bgHover?: string;
|
|
1592
|
+
readonly bgFocused?: string;
|
|
1593
|
+
readonly track?: string;
|
|
1594
|
+
readonly fill?: string;
|
|
1595
|
+
readonly fillAlpha?: number;
|
|
1596
|
+
readonly text?: string;
|
|
1597
|
+
readonly label?: string;
|
|
1598
|
+
readonly placeholder?: string;
|
|
1599
|
+
readonly border?: string;
|
|
1600
|
+
readonly borderFocused?: string;
|
|
1601
|
+
readonly selection?: string;
|
|
1602
|
+
readonly knob?: string;
|
|
1603
|
+
readonly radius?: number;
|
|
1604
|
+
readonly paddingX?: number;
|
|
1605
|
+
readonly paddingY?: number;
|
|
1606
|
+
readonly borderWidth?: number;
|
|
1607
|
+
readonly toggleWidth?: number;
|
|
1608
|
+
readonly toggleHeight?: number;
|
|
1609
|
+
};
|
|
1610
|
+
readonly pinKey?: string;
|
|
1611
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1612
|
+
readonly showInSidebar?: boolean;
|
|
1613
|
+
readonly displayOptions?: {
|
|
1614
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1615
|
+
};
|
|
1616
|
+
readonly freeFloating?: boolean;
|
|
1617
|
+
readonly type: "text";
|
|
1618
|
+
readonly multiline?: boolean;
|
|
1619
|
+
readonly placeholder?: string;
|
|
1620
|
+
readonly maxLength?: number;
|
|
1621
|
+
} | {
|
|
1622
|
+
readonly id: string;
|
|
1623
|
+
readonly label: string;
|
|
1624
|
+
readonly key: string;
|
|
1625
|
+
readonly disabled?: boolean;
|
|
1626
|
+
readonly hint?: string;
|
|
1627
|
+
readonly style?: {
|
|
1628
|
+
readonly bg?: string;
|
|
1629
|
+
readonly bgHover?: string;
|
|
1630
|
+
readonly bgFocused?: string;
|
|
1631
|
+
readonly track?: string;
|
|
1632
|
+
readonly fill?: string;
|
|
1633
|
+
readonly fillAlpha?: number;
|
|
1634
|
+
readonly text?: string;
|
|
1635
|
+
readonly label?: string;
|
|
1636
|
+
readonly placeholder?: string;
|
|
1637
|
+
readonly border?: string;
|
|
1638
|
+
readonly borderFocused?: string;
|
|
1639
|
+
readonly selection?: string;
|
|
1640
|
+
readonly knob?: string;
|
|
1641
|
+
readonly radius?: number;
|
|
1642
|
+
readonly paddingX?: number;
|
|
1643
|
+
readonly paddingY?: number;
|
|
1644
|
+
readonly borderWidth?: number;
|
|
1645
|
+
readonly toggleWidth?: number;
|
|
1646
|
+
readonly toggleHeight?: number;
|
|
1647
|
+
};
|
|
1648
|
+
readonly pinKey?: string;
|
|
1649
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1650
|
+
readonly showInSidebar?: boolean;
|
|
1651
|
+
readonly displayOptions?: {
|
|
1652
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1653
|
+
};
|
|
1654
|
+
readonly freeFloating?: boolean;
|
|
1655
|
+
readonly type: "toggle";
|
|
1656
|
+
readonly onLabel?: string;
|
|
1657
|
+
readonly offLabel?: string;
|
|
1658
|
+
} | {
|
|
1659
|
+
readonly id: string;
|
|
1660
|
+
readonly label: string;
|
|
1661
|
+
readonly key?: string;
|
|
1662
|
+
readonly disabled?: boolean;
|
|
1663
|
+
readonly hint?: string;
|
|
1664
|
+
readonly style?: {
|
|
1665
|
+
readonly bg?: string;
|
|
1666
|
+
readonly bgHover?: string;
|
|
1667
|
+
readonly bgFocused?: string;
|
|
1668
|
+
readonly track?: string;
|
|
1669
|
+
readonly fill?: string;
|
|
1670
|
+
readonly fillAlpha?: number;
|
|
1671
|
+
readonly text?: string;
|
|
1672
|
+
readonly label?: string;
|
|
1673
|
+
readonly placeholder?: string;
|
|
1674
|
+
readonly border?: string;
|
|
1675
|
+
readonly borderFocused?: string;
|
|
1676
|
+
readonly selection?: string;
|
|
1677
|
+
readonly knob?: string;
|
|
1678
|
+
readonly radius?: number;
|
|
1679
|
+
readonly paddingX?: number;
|
|
1680
|
+
readonly paddingY?: number;
|
|
1681
|
+
readonly borderWidth?: number;
|
|
1682
|
+
readonly toggleWidth?: number;
|
|
1683
|
+
readonly toggleHeight?: number;
|
|
1684
|
+
};
|
|
1685
|
+
readonly pinKey?: string;
|
|
1686
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1687
|
+
readonly showInSidebar?: boolean;
|
|
1688
|
+
readonly displayOptions?: {
|
|
1689
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1690
|
+
};
|
|
1691
|
+
readonly freeFloating?: boolean;
|
|
1692
|
+
readonly type: "button";
|
|
1693
|
+
readonly action: string;
|
|
1694
|
+
} | {
|
|
1695
|
+
readonly id: string;
|
|
1696
|
+
readonly label: string;
|
|
1697
|
+
readonly key: string;
|
|
1698
|
+
readonly disabled?: boolean;
|
|
1699
|
+
readonly hint?: string;
|
|
1700
|
+
readonly style?: {
|
|
1701
|
+
readonly bg?: string;
|
|
1702
|
+
readonly bgHover?: string;
|
|
1703
|
+
readonly bgFocused?: string;
|
|
1704
|
+
readonly track?: string;
|
|
1705
|
+
readonly fill?: string;
|
|
1706
|
+
readonly fillAlpha?: number;
|
|
1707
|
+
readonly text?: string;
|
|
1708
|
+
readonly label?: string;
|
|
1709
|
+
readonly placeholder?: string;
|
|
1710
|
+
readonly border?: string;
|
|
1711
|
+
readonly borderFocused?: string;
|
|
1712
|
+
readonly selection?: string;
|
|
1713
|
+
readonly knob?: string;
|
|
1714
|
+
readonly radius?: number;
|
|
1715
|
+
readonly paddingX?: number;
|
|
1716
|
+
readonly paddingY?: number;
|
|
1717
|
+
readonly borderWidth?: number;
|
|
1718
|
+
readonly toggleWidth?: number;
|
|
1719
|
+
readonly toggleHeight?: number;
|
|
1720
|
+
};
|
|
1721
|
+
readonly pinKey?: string;
|
|
1722
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1723
|
+
readonly showInSidebar?: boolean;
|
|
1724
|
+
readonly displayOptions?: {
|
|
1725
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1726
|
+
};
|
|
1727
|
+
readonly freeFloating?: boolean;
|
|
1728
|
+
readonly type: "color";
|
|
1729
|
+
} | {
|
|
1730
|
+
readonly id: string;
|
|
1731
|
+
readonly label: string;
|
|
1732
|
+
readonly key: string;
|
|
1733
|
+
readonly disabled?: boolean;
|
|
1734
|
+
readonly hint?: string;
|
|
1735
|
+
readonly style?: {
|
|
1736
|
+
readonly bg?: string;
|
|
1737
|
+
readonly bgHover?: string;
|
|
1738
|
+
readonly bgFocused?: string;
|
|
1739
|
+
readonly track?: string;
|
|
1740
|
+
readonly fill?: string;
|
|
1741
|
+
readonly fillAlpha?: number;
|
|
1742
|
+
readonly text?: string;
|
|
1743
|
+
readonly label?: string;
|
|
1744
|
+
readonly placeholder?: string;
|
|
1745
|
+
readonly border?: string;
|
|
1746
|
+
readonly borderFocused?: string;
|
|
1747
|
+
readonly selection?: string;
|
|
1748
|
+
readonly knob?: string;
|
|
1749
|
+
readonly radius?: number;
|
|
1750
|
+
readonly paddingX?: number;
|
|
1751
|
+
readonly paddingY?: number;
|
|
1752
|
+
readonly borderWidth?: number;
|
|
1753
|
+
readonly toggleWidth?: number;
|
|
1754
|
+
readonly toggleHeight?: number;
|
|
1755
|
+
};
|
|
1756
|
+
readonly pinKey?: string;
|
|
1757
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1758
|
+
readonly showInSidebar?: boolean;
|
|
1759
|
+
readonly displayOptions?: {
|
|
1760
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1761
|
+
};
|
|
1762
|
+
readonly freeFloating?: boolean;
|
|
1763
|
+
readonly type: "custom";
|
|
1764
|
+
readonly renderer: string;
|
|
1765
|
+
readonly height?: number;
|
|
1766
|
+
})[];
|
|
1767
|
+
readonly pure?: boolean;
|
|
1768
|
+
readonly meta?: {
|
|
1769
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1770
|
+
};
|
|
1771
|
+
readonly glyph?: {
|
|
1772
|
+
readonly icon: string;
|
|
1773
|
+
readonly side?: "left" | "right";
|
|
1774
|
+
};
|
|
1775
|
+
readonly serialize?: (node: Node) => Record<string, unknown>;
|
|
1776
|
+
readonly deserialize?: (json: Record<string, unknown>, node: Node) => Record<string, unknown>;
|
|
1777
|
+
readonly dynamic?: (node: Node) => {
|
|
1778
|
+
pins?: import("@xenolithengine/graph-core").PinSchema[];
|
|
1779
|
+
widgets?: import("@xenolithengine/graph-core").WidgetSpec[];
|
|
1780
|
+
} | undefined;
|
|
1781
|
+
readonly version?: number;
|
|
1782
|
+
readonly migrate?: (oldNode: Partial<Node> & {
|
|
1783
|
+
version?: number;
|
|
1784
|
+
}, oldVersion: number) => Partial<Node>;
|
|
1785
|
+
}[];
|
|
1786
|
+
} | null, {
|
|
1787
|
+
readonly version: import("@xenolithengine/graph-editor").XenolithGraphVersion;
|
|
1788
|
+
readonly viewport?: {
|
|
1789
|
+
readonly x: number;
|
|
1790
|
+
readonly y: number;
|
|
1791
|
+
readonly zoom: number;
|
|
1792
|
+
};
|
|
1793
|
+
readonly nodes: readonly {
|
|
1794
|
+
readonly id: string;
|
|
1795
|
+
readonly type: string;
|
|
1796
|
+
readonly position: {
|
|
1797
|
+
readonly x: number;
|
|
1798
|
+
readonly y: number;
|
|
1799
|
+
};
|
|
1800
|
+
readonly size?: {
|
|
1801
|
+
readonly x: number;
|
|
1802
|
+
readonly y: number;
|
|
1803
|
+
};
|
|
1804
|
+
readonly state?: {
|
|
1805
|
+
readonly [x: string]: Readonly<unknown>;
|
|
1806
|
+
};
|
|
1807
|
+
readonly pins: readonly {
|
|
1808
|
+
readonly id: string;
|
|
1809
|
+
readonly kind: "exec" | "data";
|
|
1810
|
+
readonly direction: "in" | "out";
|
|
1811
|
+
readonly type: string;
|
|
1812
|
+
readonly multiple: boolean;
|
|
1813
|
+
readonly label?: string;
|
|
1814
|
+
}[];
|
|
1815
|
+
readonly widgets?: readonly ({
|
|
1816
|
+
readonly id: string;
|
|
1817
|
+
readonly label: string;
|
|
1818
|
+
readonly key: string;
|
|
1819
|
+
readonly disabled?: boolean;
|
|
1820
|
+
readonly hint?: string;
|
|
1821
|
+
readonly style?: {
|
|
1822
|
+
readonly bg?: string;
|
|
1823
|
+
readonly bgHover?: string;
|
|
1824
|
+
readonly bgFocused?: string;
|
|
1825
|
+
readonly track?: string;
|
|
1826
|
+
readonly fill?: string;
|
|
1827
|
+
readonly fillAlpha?: number;
|
|
1828
|
+
readonly text?: string;
|
|
1829
|
+
readonly label?: string;
|
|
1830
|
+
readonly placeholder?: string;
|
|
1831
|
+
readonly border?: string;
|
|
1832
|
+
readonly borderFocused?: string;
|
|
1833
|
+
readonly selection?: string;
|
|
1834
|
+
readonly knob?: string;
|
|
1835
|
+
readonly radius?: number;
|
|
1836
|
+
readonly paddingX?: number;
|
|
1837
|
+
readonly paddingY?: number;
|
|
1838
|
+
readonly borderWidth?: number;
|
|
1839
|
+
readonly toggleWidth?: number;
|
|
1840
|
+
readonly toggleHeight?: number;
|
|
1841
|
+
};
|
|
1842
|
+
readonly pinKey?: string;
|
|
1843
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1844
|
+
readonly showInSidebar?: boolean;
|
|
1845
|
+
readonly displayOptions?: {
|
|
1846
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1847
|
+
};
|
|
1848
|
+
readonly freeFloating?: boolean;
|
|
1849
|
+
readonly type: "number";
|
|
1850
|
+
readonly min?: number;
|
|
1851
|
+
readonly max?: number;
|
|
1852
|
+
readonly step?: number;
|
|
1853
|
+
readonly precision?: number;
|
|
1854
|
+
readonly unit?: string;
|
|
1855
|
+
} | {
|
|
1856
|
+
readonly id: string;
|
|
1857
|
+
readonly label: string;
|
|
1858
|
+
readonly key: string;
|
|
1859
|
+
readonly disabled?: boolean;
|
|
1860
|
+
readonly hint?: string;
|
|
1861
|
+
readonly style?: {
|
|
1862
|
+
readonly bg?: string;
|
|
1863
|
+
readonly bgHover?: string;
|
|
1864
|
+
readonly bgFocused?: string;
|
|
1865
|
+
readonly track?: string;
|
|
1866
|
+
readonly fill?: string;
|
|
1867
|
+
readonly fillAlpha?: number;
|
|
1868
|
+
readonly text?: string;
|
|
1869
|
+
readonly label?: string;
|
|
1870
|
+
readonly placeholder?: string;
|
|
1871
|
+
readonly border?: string;
|
|
1872
|
+
readonly borderFocused?: string;
|
|
1873
|
+
readonly selection?: string;
|
|
1874
|
+
readonly knob?: string;
|
|
1875
|
+
readonly radius?: number;
|
|
1876
|
+
readonly paddingX?: number;
|
|
1877
|
+
readonly paddingY?: number;
|
|
1878
|
+
readonly borderWidth?: number;
|
|
1879
|
+
readonly toggleWidth?: number;
|
|
1880
|
+
readonly toggleHeight?: number;
|
|
1881
|
+
};
|
|
1882
|
+
readonly pinKey?: string;
|
|
1883
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1884
|
+
readonly showInSidebar?: boolean;
|
|
1885
|
+
readonly displayOptions?: {
|
|
1886
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1887
|
+
};
|
|
1888
|
+
readonly freeFloating?: boolean;
|
|
1889
|
+
readonly type: "slider";
|
|
1890
|
+
readonly min: number;
|
|
1891
|
+
readonly max: number;
|
|
1892
|
+
readonly step?: number;
|
|
1893
|
+
} | {
|
|
1894
|
+
readonly id: string;
|
|
1895
|
+
readonly label: string;
|
|
1896
|
+
readonly key: string;
|
|
1897
|
+
readonly disabled?: boolean;
|
|
1898
|
+
readonly hint?: string;
|
|
1899
|
+
readonly style?: {
|
|
1900
|
+
readonly bg?: string;
|
|
1901
|
+
readonly bgHover?: string;
|
|
1902
|
+
readonly bgFocused?: string;
|
|
1903
|
+
readonly track?: string;
|
|
1904
|
+
readonly fill?: string;
|
|
1905
|
+
readonly fillAlpha?: number;
|
|
1906
|
+
readonly text?: string;
|
|
1907
|
+
readonly label?: string;
|
|
1908
|
+
readonly placeholder?: string;
|
|
1909
|
+
readonly border?: string;
|
|
1910
|
+
readonly borderFocused?: string;
|
|
1911
|
+
readonly selection?: string;
|
|
1912
|
+
readonly knob?: string;
|
|
1913
|
+
readonly radius?: number;
|
|
1914
|
+
readonly paddingX?: number;
|
|
1915
|
+
readonly paddingY?: number;
|
|
1916
|
+
readonly borderWidth?: number;
|
|
1917
|
+
readonly toggleWidth?: number;
|
|
1918
|
+
readonly toggleHeight?: number;
|
|
1919
|
+
};
|
|
1920
|
+
readonly pinKey?: string;
|
|
1921
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1922
|
+
readonly showInSidebar?: boolean;
|
|
1923
|
+
readonly displayOptions?: {
|
|
1924
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1925
|
+
};
|
|
1926
|
+
readonly freeFloating?: boolean;
|
|
1927
|
+
readonly type: "combo";
|
|
1928
|
+
readonly values: readonly (string | {
|
|
1929
|
+
readonly label: string;
|
|
1930
|
+
readonly value: string | number;
|
|
1931
|
+
})[];
|
|
1932
|
+
} | {
|
|
1933
|
+
readonly id: string;
|
|
1934
|
+
readonly label: string;
|
|
1935
|
+
readonly key: string;
|
|
1936
|
+
readonly disabled?: boolean;
|
|
1937
|
+
readonly hint?: string;
|
|
1938
|
+
readonly style?: {
|
|
1939
|
+
readonly bg?: string;
|
|
1940
|
+
readonly bgHover?: string;
|
|
1941
|
+
readonly bgFocused?: string;
|
|
1942
|
+
readonly track?: string;
|
|
1943
|
+
readonly fill?: string;
|
|
1944
|
+
readonly fillAlpha?: number;
|
|
1945
|
+
readonly text?: string;
|
|
1946
|
+
readonly label?: string;
|
|
1947
|
+
readonly placeholder?: string;
|
|
1948
|
+
readonly border?: string;
|
|
1949
|
+
readonly borderFocused?: string;
|
|
1950
|
+
readonly selection?: string;
|
|
1951
|
+
readonly knob?: string;
|
|
1952
|
+
readonly radius?: number;
|
|
1953
|
+
readonly paddingX?: number;
|
|
1954
|
+
readonly paddingY?: number;
|
|
1955
|
+
readonly borderWidth?: number;
|
|
1956
|
+
readonly toggleWidth?: number;
|
|
1957
|
+
readonly toggleHeight?: number;
|
|
1958
|
+
};
|
|
1959
|
+
readonly pinKey?: string;
|
|
1960
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1961
|
+
readonly showInSidebar?: boolean;
|
|
1962
|
+
readonly displayOptions?: {
|
|
1963
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
1964
|
+
};
|
|
1965
|
+
readonly freeFloating?: boolean;
|
|
1966
|
+
readonly type: "text";
|
|
1967
|
+
readonly multiline?: boolean;
|
|
1968
|
+
readonly placeholder?: string;
|
|
1969
|
+
readonly maxLength?: number;
|
|
1970
|
+
} | {
|
|
1971
|
+
readonly id: string;
|
|
1972
|
+
readonly label: string;
|
|
1973
|
+
readonly key: string;
|
|
1974
|
+
readonly disabled?: boolean;
|
|
1975
|
+
readonly hint?: string;
|
|
1976
|
+
readonly style?: {
|
|
1977
|
+
readonly bg?: string;
|
|
1978
|
+
readonly bgHover?: string;
|
|
1979
|
+
readonly bgFocused?: string;
|
|
1980
|
+
readonly track?: string;
|
|
1981
|
+
readonly fill?: string;
|
|
1982
|
+
readonly fillAlpha?: number;
|
|
1983
|
+
readonly text?: string;
|
|
1984
|
+
readonly label?: string;
|
|
1985
|
+
readonly placeholder?: string;
|
|
1986
|
+
readonly border?: string;
|
|
1987
|
+
readonly borderFocused?: string;
|
|
1988
|
+
readonly selection?: string;
|
|
1989
|
+
readonly knob?: string;
|
|
1990
|
+
readonly radius?: number;
|
|
1991
|
+
readonly paddingX?: number;
|
|
1992
|
+
readonly paddingY?: number;
|
|
1993
|
+
readonly borderWidth?: number;
|
|
1994
|
+
readonly toggleWidth?: number;
|
|
1995
|
+
readonly toggleHeight?: number;
|
|
1996
|
+
};
|
|
1997
|
+
readonly pinKey?: string;
|
|
1998
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
1999
|
+
readonly showInSidebar?: boolean;
|
|
2000
|
+
readonly displayOptions?: {
|
|
2001
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2002
|
+
};
|
|
2003
|
+
readonly freeFloating?: boolean;
|
|
2004
|
+
readonly type: "toggle";
|
|
2005
|
+
readonly onLabel?: string;
|
|
2006
|
+
readonly offLabel?: string;
|
|
2007
|
+
} | {
|
|
2008
|
+
readonly id: string;
|
|
2009
|
+
readonly label: string;
|
|
2010
|
+
readonly key?: string;
|
|
2011
|
+
readonly disabled?: boolean;
|
|
2012
|
+
readonly hint?: string;
|
|
2013
|
+
readonly style?: {
|
|
2014
|
+
readonly bg?: string;
|
|
2015
|
+
readonly bgHover?: string;
|
|
2016
|
+
readonly bgFocused?: string;
|
|
2017
|
+
readonly track?: string;
|
|
2018
|
+
readonly fill?: string;
|
|
2019
|
+
readonly fillAlpha?: number;
|
|
2020
|
+
readonly text?: string;
|
|
2021
|
+
readonly label?: string;
|
|
2022
|
+
readonly placeholder?: string;
|
|
2023
|
+
readonly border?: string;
|
|
2024
|
+
readonly borderFocused?: string;
|
|
2025
|
+
readonly selection?: string;
|
|
2026
|
+
readonly knob?: string;
|
|
2027
|
+
readonly radius?: number;
|
|
2028
|
+
readonly paddingX?: number;
|
|
2029
|
+
readonly paddingY?: number;
|
|
2030
|
+
readonly borderWidth?: number;
|
|
2031
|
+
readonly toggleWidth?: number;
|
|
2032
|
+
readonly toggleHeight?: number;
|
|
2033
|
+
};
|
|
2034
|
+
readonly pinKey?: string;
|
|
2035
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2036
|
+
readonly showInSidebar?: boolean;
|
|
2037
|
+
readonly displayOptions?: {
|
|
2038
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2039
|
+
};
|
|
2040
|
+
readonly freeFloating?: boolean;
|
|
2041
|
+
readonly type: "button";
|
|
2042
|
+
readonly action: string;
|
|
2043
|
+
} | {
|
|
2044
|
+
readonly id: string;
|
|
2045
|
+
readonly label: string;
|
|
2046
|
+
readonly key: string;
|
|
2047
|
+
readonly disabled?: boolean;
|
|
2048
|
+
readonly hint?: string;
|
|
2049
|
+
readonly style?: {
|
|
2050
|
+
readonly bg?: string;
|
|
2051
|
+
readonly bgHover?: string;
|
|
2052
|
+
readonly bgFocused?: string;
|
|
2053
|
+
readonly track?: string;
|
|
2054
|
+
readonly fill?: string;
|
|
2055
|
+
readonly fillAlpha?: number;
|
|
2056
|
+
readonly text?: string;
|
|
2057
|
+
readonly label?: string;
|
|
2058
|
+
readonly placeholder?: string;
|
|
2059
|
+
readonly border?: string;
|
|
2060
|
+
readonly borderFocused?: string;
|
|
2061
|
+
readonly selection?: string;
|
|
2062
|
+
readonly knob?: string;
|
|
2063
|
+
readonly radius?: number;
|
|
2064
|
+
readonly paddingX?: number;
|
|
2065
|
+
readonly paddingY?: number;
|
|
2066
|
+
readonly borderWidth?: number;
|
|
2067
|
+
readonly toggleWidth?: number;
|
|
2068
|
+
readonly toggleHeight?: number;
|
|
2069
|
+
};
|
|
2070
|
+
readonly pinKey?: string;
|
|
2071
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2072
|
+
readonly showInSidebar?: boolean;
|
|
2073
|
+
readonly displayOptions?: {
|
|
2074
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2075
|
+
};
|
|
2076
|
+
readonly freeFloating?: boolean;
|
|
2077
|
+
readonly type: "color";
|
|
2078
|
+
} | {
|
|
2079
|
+
readonly id: string;
|
|
2080
|
+
readonly label: string;
|
|
2081
|
+
readonly key: string;
|
|
2082
|
+
readonly disabled?: boolean;
|
|
2083
|
+
readonly hint?: string;
|
|
2084
|
+
readonly style?: {
|
|
2085
|
+
readonly bg?: string;
|
|
2086
|
+
readonly bgHover?: string;
|
|
2087
|
+
readonly bgFocused?: string;
|
|
2088
|
+
readonly track?: string;
|
|
2089
|
+
readonly fill?: string;
|
|
2090
|
+
readonly fillAlpha?: number;
|
|
2091
|
+
readonly text?: string;
|
|
2092
|
+
readonly label?: string;
|
|
2093
|
+
readonly placeholder?: string;
|
|
2094
|
+
readonly border?: string;
|
|
2095
|
+
readonly borderFocused?: string;
|
|
2096
|
+
readonly selection?: string;
|
|
2097
|
+
readonly knob?: string;
|
|
2098
|
+
readonly radius?: number;
|
|
2099
|
+
readonly paddingX?: number;
|
|
2100
|
+
readonly paddingY?: number;
|
|
2101
|
+
readonly borderWidth?: number;
|
|
2102
|
+
readonly toggleWidth?: number;
|
|
2103
|
+
readonly toggleHeight?: number;
|
|
2104
|
+
};
|
|
2105
|
+
readonly pinKey?: string;
|
|
2106
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2107
|
+
readonly showInSidebar?: boolean;
|
|
2108
|
+
readonly displayOptions?: {
|
|
2109
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2110
|
+
};
|
|
2111
|
+
readonly freeFloating?: boolean;
|
|
2112
|
+
readonly type: "custom";
|
|
2113
|
+
readonly renderer: string;
|
|
2114
|
+
readonly height?: number;
|
|
2115
|
+
})[];
|
|
2116
|
+
readonly render?: {
|
|
2117
|
+
readonly category?: string;
|
|
2118
|
+
readonly title?: string;
|
|
2119
|
+
readonly collapsed?: boolean;
|
|
2120
|
+
readonly color?: string;
|
|
2121
|
+
};
|
|
2122
|
+
readonly pure?: boolean;
|
|
2123
|
+
readonly meta?: {
|
|
2124
|
+
readonly [x: string]: Readonly<unknown>;
|
|
2125
|
+
};
|
|
2126
|
+
readonly glyph?: {
|
|
2127
|
+
readonly icon: string;
|
|
2128
|
+
readonly side?: "left" | "right";
|
|
2129
|
+
};
|
|
2130
|
+
}[];
|
|
2131
|
+
readonly edges: readonly {
|
|
2132
|
+
readonly id: string;
|
|
2133
|
+
readonly from: {
|
|
2134
|
+
readonly node: string;
|
|
2135
|
+
readonly pin: string;
|
|
2136
|
+
};
|
|
2137
|
+
readonly to: {
|
|
2138
|
+
readonly node: string;
|
|
2139
|
+
readonly pin: string;
|
|
2140
|
+
};
|
|
2141
|
+
readonly opts?: {
|
|
2142
|
+
readonly sourceType?: string;
|
|
2143
|
+
readonly label?: string;
|
|
2144
|
+
readonly markerEnd?: "arrow" | "none";
|
|
2145
|
+
readonly animated?: boolean;
|
|
2146
|
+
};
|
|
2147
|
+
}[];
|
|
2148
|
+
readonly comments?: readonly {
|
|
2149
|
+
readonly id: string;
|
|
2150
|
+
readonly position: {
|
|
2151
|
+
readonly x: number;
|
|
2152
|
+
readonly y: number;
|
|
2153
|
+
};
|
|
2154
|
+
readonly size: {
|
|
2155
|
+
readonly x: number;
|
|
2156
|
+
readonly y: number;
|
|
2157
|
+
};
|
|
2158
|
+
readonly text: string;
|
|
2159
|
+
readonly color?: string;
|
|
2160
|
+
}[];
|
|
2161
|
+
readonly categories?: {
|
|
2162
|
+
readonly [x: string]: {
|
|
2163
|
+
readonly color: string;
|
|
2164
|
+
} | {
|
|
2165
|
+
readonly gradient: {
|
|
2166
|
+
readonly start: string;
|
|
2167
|
+
readonly end: string;
|
|
2168
|
+
};
|
|
2169
|
+
};
|
|
2170
|
+
};
|
|
2171
|
+
readonly templates?: {
|
|
2172
|
+
readonly [x: string]: {
|
|
2173
|
+
readonly title: string;
|
|
2174
|
+
readonly nodes: readonly {
|
|
2175
|
+
readonly id: string;
|
|
2176
|
+
readonly type: string;
|
|
2177
|
+
readonly position: {
|
|
2178
|
+
readonly x: number;
|
|
2179
|
+
readonly y: number;
|
|
2180
|
+
};
|
|
2181
|
+
readonly size?: {
|
|
2182
|
+
readonly x: number;
|
|
2183
|
+
readonly y: number;
|
|
2184
|
+
};
|
|
2185
|
+
readonly state?: {
|
|
2186
|
+
readonly [x: string]: Readonly<unknown>;
|
|
2187
|
+
};
|
|
2188
|
+
readonly pins: readonly {
|
|
2189
|
+
readonly id: string;
|
|
2190
|
+
readonly kind: "exec" | "data";
|
|
2191
|
+
readonly direction: "in" | "out";
|
|
2192
|
+
readonly type: string;
|
|
2193
|
+
readonly multiple: boolean;
|
|
2194
|
+
readonly label?: string;
|
|
2195
|
+
}[];
|
|
2196
|
+
readonly widgets?: readonly ({
|
|
2197
|
+
readonly id: string;
|
|
2198
|
+
readonly label: string;
|
|
2199
|
+
readonly key: string;
|
|
2200
|
+
readonly disabled?: boolean;
|
|
2201
|
+
readonly hint?: string;
|
|
2202
|
+
readonly style?: {
|
|
2203
|
+
readonly bg?: string;
|
|
2204
|
+
readonly bgHover?: string;
|
|
2205
|
+
readonly bgFocused?: string;
|
|
2206
|
+
readonly track?: string;
|
|
2207
|
+
readonly fill?: string;
|
|
2208
|
+
readonly fillAlpha?: number;
|
|
2209
|
+
readonly text?: string;
|
|
2210
|
+
readonly label?: string;
|
|
2211
|
+
readonly placeholder?: string;
|
|
2212
|
+
readonly border?: string;
|
|
2213
|
+
readonly borderFocused?: string;
|
|
2214
|
+
readonly selection?: string;
|
|
2215
|
+
readonly knob?: string;
|
|
2216
|
+
readonly radius?: number;
|
|
2217
|
+
readonly paddingX?: number;
|
|
2218
|
+
readonly paddingY?: number;
|
|
2219
|
+
readonly borderWidth?: number;
|
|
2220
|
+
readonly toggleWidth?: number;
|
|
2221
|
+
readonly toggleHeight?: number;
|
|
2222
|
+
};
|
|
2223
|
+
readonly pinKey?: string;
|
|
2224
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2225
|
+
readonly showInSidebar?: boolean;
|
|
2226
|
+
readonly displayOptions?: {
|
|
2227
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2228
|
+
};
|
|
2229
|
+
readonly freeFloating?: boolean;
|
|
2230
|
+
readonly type: "number";
|
|
2231
|
+
readonly min?: number;
|
|
2232
|
+
readonly max?: number;
|
|
2233
|
+
readonly step?: number;
|
|
2234
|
+
readonly precision?: number;
|
|
2235
|
+
readonly unit?: string;
|
|
2236
|
+
} | {
|
|
2237
|
+
readonly id: string;
|
|
2238
|
+
readonly label: string;
|
|
2239
|
+
readonly key: string;
|
|
2240
|
+
readonly disabled?: boolean;
|
|
2241
|
+
readonly hint?: string;
|
|
2242
|
+
readonly style?: {
|
|
2243
|
+
readonly bg?: string;
|
|
2244
|
+
readonly bgHover?: string;
|
|
2245
|
+
readonly bgFocused?: string;
|
|
2246
|
+
readonly track?: string;
|
|
2247
|
+
readonly fill?: string;
|
|
2248
|
+
readonly fillAlpha?: number;
|
|
2249
|
+
readonly text?: string;
|
|
2250
|
+
readonly label?: string;
|
|
2251
|
+
readonly placeholder?: string;
|
|
2252
|
+
readonly border?: string;
|
|
2253
|
+
readonly borderFocused?: string;
|
|
2254
|
+
readonly selection?: string;
|
|
2255
|
+
readonly knob?: string;
|
|
2256
|
+
readonly radius?: number;
|
|
2257
|
+
readonly paddingX?: number;
|
|
2258
|
+
readonly paddingY?: number;
|
|
2259
|
+
readonly borderWidth?: number;
|
|
2260
|
+
readonly toggleWidth?: number;
|
|
2261
|
+
readonly toggleHeight?: number;
|
|
2262
|
+
};
|
|
2263
|
+
readonly pinKey?: string;
|
|
2264
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2265
|
+
readonly showInSidebar?: boolean;
|
|
2266
|
+
readonly displayOptions?: {
|
|
2267
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2268
|
+
};
|
|
2269
|
+
readonly freeFloating?: boolean;
|
|
2270
|
+
readonly type: "slider";
|
|
2271
|
+
readonly min: number;
|
|
2272
|
+
readonly max: number;
|
|
2273
|
+
readonly step?: number;
|
|
2274
|
+
} | {
|
|
2275
|
+
readonly id: string;
|
|
2276
|
+
readonly label: string;
|
|
2277
|
+
readonly key: string;
|
|
2278
|
+
readonly disabled?: boolean;
|
|
2279
|
+
readonly hint?: string;
|
|
2280
|
+
readonly style?: {
|
|
2281
|
+
readonly bg?: string;
|
|
2282
|
+
readonly bgHover?: string;
|
|
2283
|
+
readonly bgFocused?: string;
|
|
2284
|
+
readonly track?: string;
|
|
2285
|
+
readonly fill?: string;
|
|
2286
|
+
readonly fillAlpha?: number;
|
|
2287
|
+
readonly text?: string;
|
|
2288
|
+
readonly label?: string;
|
|
2289
|
+
readonly placeholder?: string;
|
|
2290
|
+
readonly border?: string;
|
|
2291
|
+
readonly borderFocused?: string;
|
|
2292
|
+
readonly selection?: string;
|
|
2293
|
+
readonly knob?: string;
|
|
2294
|
+
readonly radius?: number;
|
|
2295
|
+
readonly paddingX?: number;
|
|
2296
|
+
readonly paddingY?: number;
|
|
2297
|
+
readonly borderWidth?: number;
|
|
2298
|
+
readonly toggleWidth?: number;
|
|
2299
|
+
readonly toggleHeight?: number;
|
|
2300
|
+
};
|
|
2301
|
+
readonly pinKey?: string;
|
|
2302
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2303
|
+
readonly showInSidebar?: boolean;
|
|
2304
|
+
readonly displayOptions?: {
|
|
2305
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2306
|
+
};
|
|
2307
|
+
readonly freeFloating?: boolean;
|
|
2308
|
+
readonly type: "combo";
|
|
2309
|
+
readonly values: readonly (string | {
|
|
2310
|
+
readonly label: string;
|
|
2311
|
+
readonly value: string | number;
|
|
2312
|
+
})[];
|
|
2313
|
+
} | {
|
|
2314
|
+
readonly id: string;
|
|
2315
|
+
readonly label: string;
|
|
2316
|
+
readonly key: string;
|
|
2317
|
+
readonly disabled?: boolean;
|
|
2318
|
+
readonly hint?: string;
|
|
2319
|
+
readonly style?: {
|
|
2320
|
+
readonly bg?: string;
|
|
2321
|
+
readonly bgHover?: string;
|
|
2322
|
+
readonly bgFocused?: string;
|
|
2323
|
+
readonly track?: string;
|
|
2324
|
+
readonly fill?: string;
|
|
2325
|
+
readonly fillAlpha?: number;
|
|
2326
|
+
readonly text?: string;
|
|
2327
|
+
readonly label?: string;
|
|
2328
|
+
readonly placeholder?: string;
|
|
2329
|
+
readonly border?: string;
|
|
2330
|
+
readonly borderFocused?: string;
|
|
2331
|
+
readonly selection?: string;
|
|
2332
|
+
readonly knob?: string;
|
|
2333
|
+
readonly radius?: number;
|
|
2334
|
+
readonly paddingX?: number;
|
|
2335
|
+
readonly paddingY?: number;
|
|
2336
|
+
readonly borderWidth?: number;
|
|
2337
|
+
readonly toggleWidth?: number;
|
|
2338
|
+
readonly toggleHeight?: number;
|
|
2339
|
+
};
|
|
2340
|
+
readonly pinKey?: string;
|
|
2341
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2342
|
+
readonly showInSidebar?: boolean;
|
|
2343
|
+
readonly displayOptions?: {
|
|
2344
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2345
|
+
};
|
|
2346
|
+
readonly freeFloating?: boolean;
|
|
2347
|
+
readonly type: "text";
|
|
2348
|
+
readonly multiline?: boolean;
|
|
2349
|
+
readonly placeholder?: string;
|
|
2350
|
+
readonly maxLength?: number;
|
|
2351
|
+
} | {
|
|
2352
|
+
readonly id: string;
|
|
2353
|
+
readonly label: string;
|
|
2354
|
+
readonly key: string;
|
|
2355
|
+
readonly disabled?: boolean;
|
|
2356
|
+
readonly hint?: string;
|
|
2357
|
+
readonly style?: {
|
|
2358
|
+
readonly bg?: string;
|
|
2359
|
+
readonly bgHover?: string;
|
|
2360
|
+
readonly bgFocused?: string;
|
|
2361
|
+
readonly track?: string;
|
|
2362
|
+
readonly fill?: string;
|
|
2363
|
+
readonly fillAlpha?: number;
|
|
2364
|
+
readonly text?: string;
|
|
2365
|
+
readonly label?: string;
|
|
2366
|
+
readonly placeholder?: string;
|
|
2367
|
+
readonly border?: string;
|
|
2368
|
+
readonly borderFocused?: string;
|
|
2369
|
+
readonly selection?: string;
|
|
2370
|
+
readonly knob?: string;
|
|
2371
|
+
readonly radius?: number;
|
|
2372
|
+
readonly paddingX?: number;
|
|
2373
|
+
readonly paddingY?: number;
|
|
2374
|
+
readonly borderWidth?: number;
|
|
2375
|
+
readonly toggleWidth?: number;
|
|
2376
|
+
readonly toggleHeight?: number;
|
|
2377
|
+
};
|
|
2378
|
+
readonly pinKey?: string;
|
|
2379
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2380
|
+
readonly showInSidebar?: boolean;
|
|
2381
|
+
readonly displayOptions?: {
|
|
2382
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2383
|
+
};
|
|
2384
|
+
readonly freeFloating?: boolean;
|
|
2385
|
+
readonly type: "toggle";
|
|
2386
|
+
readonly onLabel?: string;
|
|
2387
|
+
readonly offLabel?: string;
|
|
2388
|
+
} | {
|
|
2389
|
+
readonly id: string;
|
|
2390
|
+
readonly label: string;
|
|
2391
|
+
readonly key?: string;
|
|
2392
|
+
readonly disabled?: boolean;
|
|
2393
|
+
readonly hint?: string;
|
|
2394
|
+
readonly style?: {
|
|
2395
|
+
readonly bg?: string;
|
|
2396
|
+
readonly bgHover?: string;
|
|
2397
|
+
readonly bgFocused?: string;
|
|
2398
|
+
readonly track?: string;
|
|
2399
|
+
readonly fill?: string;
|
|
2400
|
+
readonly fillAlpha?: number;
|
|
2401
|
+
readonly text?: string;
|
|
2402
|
+
readonly label?: string;
|
|
2403
|
+
readonly placeholder?: string;
|
|
2404
|
+
readonly border?: string;
|
|
2405
|
+
readonly borderFocused?: string;
|
|
2406
|
+
readonly selection?: string;
|
|
2407
|
+
readonly knob?: string;
|
|
2408
|
+
readonly radius?: number;
|
|
2409
|
+
readonly paddingX?: number;
|
|
2410
|
+
readonly paddingY?: number;
|
|
2411
|
+
readonly borderWidth?: number;
|
|
2412
|
+
readonly toggleWidth?: number;
|
|
2413
|
+
readonly toggleHeight?: number;
|
|
2414
|
+
};
|
|
2415
|
+
readonly pinKey?: string;
|
|
2416
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2417
|
+
readonly showInSidebar?: boolean;
|
|
2418
|
+
readonly displayOptions?: {
|
|
2419
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2420
|
+
};
|
|
2421
|
+
readonly freeFloating?: boolean;
|
|
2422
|
+
readonly type: "button";
|
|
2423
|
+
readonly action: string;
|
|
2424
|
+
} | {
|
|
2425
|
+
readonly id: string;
|
|
2426
|
+
readonly label: string;
|
|
2427
|
+
readonly key: string;
|
|
2428
|
+
readonly disabled?: boolean;
|
|
2429
|
+
readonly hint?: string;
|
|
2430
|
+
readonly style?: {
|
|
2431
|
+
readonly bg?: string;
|
|
2432
|
+
readonly bgHover?: string;
|
|
2433
|
+
readonly bgFocused?: string;
|
|
2434
|
+
readonly track?: string;
|
|
2435
|
+
readonly fill?: string;
|
|
2436
|
+
readonly fillAlpha?: number;
|
|
2437
|
+
readonly text?: string;
|
|
2438
|
+
readonly label?: string;
|
|
2439
|
+
readonly placeholder?: string;
|
|
2440
|
+
readonly border?: string;
|
|
2441
|
+
readonly borderFocused?: string;
|
|
2442
|
+
readonly selection?: string;
|
|
2443
|
+
readonly knob?: string;
|
|
2444
|
+
readonly radius?: number;
|
|
2445
|
+
readonly paddingX?: number;
|
|
2446
|
+
readonly paddingY?: number;
|
|
2447
|
+
readonly borderWidth?: number;
|
|
2448
|
+
readonly toggleWidth?: number;
|
|
2449
|
+
readonly toggleHeight?: number;
|
|
2450
|
+
};
|
|
2451
|
+
readonly pinKey?: string;
|
|
2452
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2453
|
+
readonly showInSidebar?: boolean;
|
|
2454
|
+
readonly displayOptions?: {
|
|
2455
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2456
|
+
};
|
|
2457
|
+
readonly freeFloating?: boolean;
|
|
2458
|
+
readonly type: "color";
|
|
2459
|
+
} | {
|
|
2460
|
+
readonly id: string;
|
|
2461
|
+
readonly label: string;
|
|
2462
|
+
readonly key: string;
|
|
2463
|
+
readonly disabled?: boolean;
|
|
2464
|
+
readonly hint?: string;
|
|
2465
|
+
readonly style?: {
|
|
2466
|
+
readonly bg?: string;
|
|
2467
|
+
readonly bgHover?: string;
|
|
2468
|
+
readonly bgFocused?: string;
|
|
2469
|
+
readonly track?: string;
|
|
2470
|
+
readonly fill?: string;
|
|
2471
|
+
readonly fillAlpha?: number;
|
|
2472
|
+
readonly text?: string;
|
|
2473
|
+
readonly label?: string;
|
|
2474
|
+
readonly placeholder?: string;
|
|
2475
|
+
readonly border?: string;
|
|
2476
|
+
readonly borderFocused?: string;
|
|
2477
|
+
readonly selection?: string;
|
|
2478
|
+
readonly knob?: string;
|
|
2479
|
+
readonly radius?: number;
|
|
2480
|
+
readonly paddingX?: number;
|
|
2481
|
+
readonly paddingY?: number;
|
|
2482
|
+
readonly borderWidth?: number;
|
|
2483
|
+
readonly toggleWidth?: number;
|
|
2484
|
+
readonly toggleHeight?: number;
|
|
2485
|
+
};
|
|
2486
|
+
readonly pinKey?: string;
|
|
2487
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2488
|
+
readonly showInSidebar?: boolean;
|
|
2489
|
+
readonly displayOptions?: {
|
|
2490
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2491
|
+
};
|
|
2492
|
+
readonly freeFloating?: boolean;
|
|
2493
|
+
readonly type: "custom";
|
|
2494
|
+
readonly renderer: string;
|
|
2495
|
+
readonly height?: number;
|
|
2496
|
+
})[];
|
|
2497
|
+
readonly render?: {
|
|
2498
|
+
readonly category?: string;
|
|
2499
|
+
readonly title?: string;
|
|
2500
|
+
readonly collapsed?: boolean;
|
|
2501
|
+
readonly color?: string;
|
|
2502
|
+
};
|
|
2503
|
+
readonly pure?: boolean;
|
|
2504
|
+
readonly meta?: {
|
|
2505
|
+
readonly [x: string]: Readonly<unknown>;
|
|
2506
|
+
};
|
|
2507
|
+
readonly glyph?: {
|
|
2508
|
+
readonly icon: string;
|
|
2509
|
+
readonly side?: "left" | "right";
|
|
2510
|
+
};
|
|
2511
|
+
}[];
|
|
2512
|
+
readonly edges: readonly {
|
|
2513
|
+
readonly id: string;
|
|
2514
|
+
readonly from: {
|
|
2515
|
+
readonly node: string;
|
|
2516
|
+
readonly pin: string;
|
|
2517
|
+
};
|
|
2518
|
+
readonly to: {
|
|
2519
|
+
readonly node: string;
|
|
2520
|
+
readonly pin: string;
|
|
2521
|
+
};
|
|
2522
|
+
readonly opts?: {
|
|
2523
|
+
readonly sourceType?: string;
|
|
2524
|
+
readonly label?: string;
|
|
2525
|
+
readonly markerEnd?: "arrow" | "none";
|
|
2526
|
+
readonly animated?: boolean;
|
|
2527
|
+
};
|
|
2528
|
+
}[];
|
|
2529
|
+
};
|
|
2530
|
+
};
|
|
2531
|
+
readonly schemas?: readonly {
|
|
2532
|
+
readonly type: string;
|
|
2533
|
+
readonly title: string;
|
|
2534
|
+
readonly category?: string;
|
|
2535
|
+
readonly description?: string;
|
|
2536
|
+
readonly keywords?: readonly string[];
|
|
2537
|
+
readonly pins: readonly {
|
|
2538
|
+
readonly kind: import("@xenolithengine/graph-core").PinKind;
|
|
2539
|
+
readonly direction: import("@xenolithengine/graph-core").PinDirection;
|
|
2540
|
+
readonly type: string;
|
|
2541
|
+
readonly label?: string;
|
|
2542
|
+
readonly multiple?: boolean;
|
|
2543
|
+
readonly default?: Readonly<unknown>;
|
|
2544
|
+
}[];
|
|
2545
|
+
readonly widgets?: readonly ({
|
|
2546
|
+
readonly id: string;
|
|
2547
|
+
readonly label: string;
|
|
2548
|
+
readonly key: string;
|
|
2549
|
+
readonly disabled?: boolean;
|
|
2550
|
+
readonly hint?: string;
|
|
2551
|
+
readonly style?: {
|
|
2552
|
+
readonly bg?: string;
|
|
2553
|
+
readonly bgHover?: string;
|
|
2554
|
+
readonly bgFocused?: string;
|
|
2555
|
+
readonly track?: string;
|
|
2556
|
+
readonly fill?: string;
|
|
2557
|
+
readonly fillAlpha?: number;
|
|
2558
|
+
readonly text?: string;
|
|
2559
|
+
readonly label?: string;
|
|
2560
|
+
readonly placeholder?: string;
|
|
2561
|
+
readonly border?: string;
|
|
2562
|
+
readonly borderFocused?: string;
|
|
2563
|
+
readonly selection?: string;
|
|
2564
|
+
readonly knob?: string;
|
|
2565
|
+
readonly radius?: number;
|
|
2566
|
+
readonly paddingX?: number;
|
|
2567
|
+
readonly paddingY?: number;
|
|
2568
|
+
readonly borderWidth?: number;
|
|
2569
|
+
readonly toggleWidth?: number;
|
|
2570
|
+
readonly toggleHeight?: number;
|
|
2571
|
+
};
|
|
2572
|
+
readonly pinKey?: string;
|
|
2573
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2574
|
+
readonly showInSidebar?: boolean;
|
|
2575
|
+
readonly displayOptions?: {
|
|
2576
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2577
|
+
};
|
|
2578
|
+
readonly freeFloating?: boolean;
|
|
2579
|
+
readonly type: "number";
|
|
2580
|
+
readonly min?: number;
|
|
2581
|
+
readonly max?: number;
|
|
2582
|
+
readonly step?: number;
|
|
2583
|
+
readonly precision?: number;
|
|
2584
|
+
readonly unit?: string;
|
|
2585
|
+
} | {
|
|
2586
|
+
readonly id: string;
|
|
2587
|
+
readonly label: string;
|
|
2588
|
+
readonly key: string;
|
|
2589
|
+
readonly disabled?: boolean;
|
|
2590
|
+
readonly hint?: string;
|
|
2591
|
+
readonly style?: {
|
|
2592
|
+
readonly bg?: string;
|
|
2593
|
+
readonly bgHover?: string;
|
|
2594
|
+
readonly bgFocused?: string;
|
|
2595
|
+
readonly track?: string;
|
|
2596
|
+
readonly fill?: string;
|
|
2597
|
+
readonly fillAlpha?: number;
|
|
2598
|
+
readonly text?: string;
|
|
2599
|
+
readonly label?: string;
|
|
2600
|
+
readonly placeholder?: string;
|
|
2601
|
+
readonly border?: string;
|
|
2602
|
+
readonly borderFocused?: string;
|
|
2603
|
+
readonly selection?: string;
|
|
2604
|
+
readonly knob?: string;
|
|
2605
|
+
readonly radius?: number;
|
|
2606
|
+
readonly paddingX?: number;
|
|
2607
|
+
readonly paddingY?: number;
|
|
2608
|
+
readonly borderWidth?: number;
|
|
2609
|
+
readonly toggleWidth?: number;
|
|
2610
|
+
readonly toggleHeight?: number;
|
|
2611
|
+
};
|
|
2612
|
+
readonly pinKey?: string;
|
|
2613
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2614
|
+
readonly showInSidebar?: boolean;
|
|
2615
|
+
readonly displayOptions?: {
|
|
2616
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2617
|
+
};
|
|
2618
|
+
readonly freeFloating?: boolean;
|
|
2619
|
+
readonly type: "slider";
|
|
2620
|
+
readonly min: number;
|
|
2621
|
+
readonly max: number;
|
|
2622
|
+
readonly step?: number;
|
|
2623
|
+
} | {
|
|
2624
|
+
readonly id: string;
|
|
2625
|
+
readonly label: string;
|
|
2626
|
+
readonly key: string;
|
|
2627
|
+
readonly disabled?: boolean;
|
|
2628
|
+
readonly hint?: string;
|
|
2629
|
+
readonly style?: {
|
|
2630
|
+
readonly bg?: string;
|
|
2631
|
+
readonly bgHover?: string;
|
|
2632
|
+
readonly bgFocused?: string;
|
|
2633
|
+
readonly track?: string;
|
|
2634
|
+
readonly fill?: string;
|
|
2635
|
+
readonly fillAlpha?: number;
|
|
2636
|
+
readonly text?: string;
|
|
2637
|
+
readonly label?: string;
|
|
2638
|
+
readonly placeholder?: string;
|
|
2639
|
+
readonly border?: string;
|
|
2640
|
+
readonly borderFocused?: string;
|
|
2641
|
+
readonly selection?: string;
|
|
2642
|
+
readonly knob?: string;
|
|
2643
|
+
readonly radius?: number;
|
|
2644
|
+
readonly paddingX?: number;
|
|
2645
|
+
readonly paddingY?: number;
|
|
2646
|
+
readonly borderWidth?: number;
|
|
2647
|
+
readonly toggleWidth?: number;
|
|
2648
|
+
readonly toggleHeight?: number;
|
|
2649
|
+
};
|
|
2650
|
+
readonly pinKey?: string;
|
|
2651
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2652
|
+
readonly showInSidebar?: boolean;
|
|
2653
|
+
readonly displayOptions?: {
|
|
2654
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2655
|
+
};
|
|
2656
|
+
readonly freeFloating?: boolean;
|
|
2657
|
+
readonly type: "combo";
|
|
2658
|
+
readonly values: readonly (string | {
|
|
2659
|
+
readonly label: string;
|
|
2660
|
+
readonly value: string | number;
|
|
2661
|
+
})[];
|
|
2662
|
+
} | {
|
|
2663
|
+
readonly id: string;
|
|
2664
|
+
readonly label: string;
|
|
2665
|
+
readonly key: string;
|
|
2666
|
+
readonly disabled?: boolean;
|
|
2667
|
+
readonly hint?: string;
|
|
2668
|
+
readonly style?: {
|
|
2669
|
+
readonly bg?: string;
|
|
2670
|
+
readonly bgHover?: string;
|
|
2671
|
+
readonly bgFocused?: string;
|
|
2672
|
+
readonly track?: string;
|
|
2673
|
+
readonly fill?: string;
|
|
2674
|
+
readonly fillAlpha?: number;
|
|
2675
|
+
readonly text?: string;
|
|
2676
|
+
readonly label?: string;
|
|
2677
|
+
readonly placeholder?: string;
|
|
2678
|
+
readonly border?: string;
|
|
2679
|
+
readonly borderFocused?: string;
|
|
2680
|
+
readonly selection?: string;
|
|
2681
|
+
readonly knob?: string;
|
|
2682
|
+
readonly radius?: number;
|
|
2683
|
+
readonly paddingX?: number;
|
|
2684
|
+
readonly paddingY?: number;
|
|
2685
|
+
readonly borderWidth?: number;
|
|
2686
|
+
readonly toggleWidth?: number;
|
|
2687
|
+
readonly toggleHeight?: number;
|
|
2688
|
+
};
|
|
2689
|
+
readonly pinKey?: string;
|
|
2690
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2691
|
+
readonly showInSidebar?: boolean;
|
|
2692
|
+
readonly displayOptions?: {
|
|
2693
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2694
|
+
};
|
|
2695
|
+
readonly freeFloating?: boolean;
|
|
2696
|
+
readonly type: "text";
|
|
2697
|
+
readonly multiline?: boolean;
|
|
2698
|
+
readonly placeholder?: string;
|
|
2699
|
+
readonly maxLength?: number;
|
|
2700
|
+
} | {
|
|
2701
|
+
readonly id: string;
|
|
2702
|
+
readonly label: string;
|
|
2703
|
+
readonly key: string;
|
|
2704
|
+
readonly disabled?: boolean;
|
|
2705
|
+
readonly hint?: string;
|
|
2706
|
+
readonly style?: {
|
|
2707
|
+
readonly bg?: string;
|
|
2708
|
+
readonly bgHover?: string;
|
|
2709
|
+
readonly bgFocused?: string;
|
|
2710
|
+
readonly track?: string;
|
|
2711
|
+
readonly fill?: string;
|
|
2712
|
+
readonly fillAlpha?: number;
|
|
2713
|
+
readonly text?: string;
|
|
2714
|
+
readonly label?: string;
|
|
2715
|
+
readonly placeholder?: string;
|
|
2716
|
+
readonly border?: string;
|
|
2717
|
+
readonly borderFocused?: string;
|
|
2718
|
+
readonly selection?: string;
|
|
2719
|
+
readonly knob?: string;
|
|
2720
|
+
readonly radius?: number;
|
|
2721
|
+
readonly paddingX?: number;
|
|
2722
|
+
readonly paddingY?: number;
|
|
2723
|
+
readonly borderWidth?: number;
|
|
2724
|
+
readonly toggleWidth?: number;
|
|
2725
|
+
readonly toggleHeight?: number;
|
|
2726
|
+
};
|
|
2727
|
+
readonly pinKey?: string;
|
|
2728
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2729
|
+
readonly showInSidebar?: boolean;
|
|
2730
|
+
readonly displayOptions?: {
|
|
2731
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2732
|
+
};
|
|
2733
|
+
readonly freeFloating?: boolean;
|
|
2734
|
+
readonly type: "toggle";
|
|
2735
|
+
readonly onLabel?: string;
|
|
2736
|
+
readonly offLabel?: string;
|
|
2737
|
+
} | {
|
|
2738
|
+
readonly id: string;
|
|
2739
|
+
readonly label: string;
|
|
2740
|
+
readonly key?: string;
|
|
2741
|
+
readonly disabled?: boolean;
|
|
2742
|
+
readonly hint?: string;
|
|
2743
|
+
readonly style?: {
|
|
2744
|
+
readonly bg?: string;
|
|
2745
|
+
readonly bgHover?: string;
|
|
2746
|
+
readonly bgFocused?: string;
|
|
2747
|
+
readonly track?: string;
|
|
2748
|
+
readonly fill?: string;
|
|
2749
|
+
readonly fillAlpha?: number;
|
|
2750
|
+
readonly text?: string;
|
|
2751
|
+
readonly label?: string;
|
|
2752
|
+
readonly placeholder?: string;
|
|
2753
|
+
readonly border?: string;
|
|
2754
|
+
readonly borderFocused?: string;
|
|
2755
|
+
readonly selection?: string;
|
|
2756
|
+
readonly knob?: string;
|
|
2757
|
+
readonly radius?: number;
|
|
2758
|
+
readonly paddingX?: number;
|
|
2759
|
+
readonly paddingY?: number;
|
|
2760
|
+
readonly borderWidth?: number;
|
|
2761
|
+
readonly toggleWidth?: number;
|
|
2762
|
+
readonly toggleHeight?: number;
|
|
2763
|
+
};
|
|
2764
|
+
readonly pinKey?: string;
|
|
2765
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2766
|
+
readonly showInSidebar?: boolean;
|
|
2767
|
+
readonly displayOptions?: {
|
|
2768
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2769
|
+
};
|
|
2770
|
+
readonly freeFloating?: boolean;
|
|
2771
|
+
readonly type: "button";
|
|
2772
|
+
readonly action: string;
|
|
2773
|
+
} | {
|
|
2774
|
+
readonly id: string;
|
|
2775
|
+
readonly label: string;
|
|
2776
|
+
readonly key: string;
|
|
2777
|
+
readonly disabled?: boolean;
|
|
2778
|
+
readonly hint?: string;
|
|
2779
|
+
readonly style?: {
|
|
2780
|
+
readonly bg?: string;
|
|
2781
|
+
readonly bgHover?: string;
|
|
2782
|
+
readonly bgFocused?: string;
|
|
2783
|
+
readonly track?: string;
|
|
2784
|
+
readonly fill?: string;
|
|
2785
|
+
readonly fillAlpha?: number;
|
|
2786
|
+
readonly text?: string;
|
|
2787
|
+
readonly label?: string;
|
|
2788
|
+
readonly placeholder?: string;
|
|
2789
|
+
readonly border?: string;
|
|
2790
|
+
readonly borderFocused?: string;
|
|
2791
|
+
readonly selection?: string;
|
|
2792
|
+
readonly knob?: string;
|
|
2793
|
+
readonly radius?: number;
|
|
2794
|
+
readonly paddingX?: number;
|
|
2795
|
+
readonly paddingY?: number;
|
|
2796
|
+
readonly borderWidth?: number;
|
|
2797
|
+
readonly toggleWidth?: number;
|
|
2798
|
+
readonly toggleHeight?: number;
|
|
2799
|
+
};
|
|
2800
|
+
readonly pinKey?: string;
|
|
2801
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2802
|
+
readonly showInSidebar?: boolean;
|
|
2803
|
+
readonly displayOptions?: {
|
|
2804
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2805
|
+
};
|
|
2806
|
+
readonly freeFloating?: boolean;
|
|
2807
|
+
readonly type: "color";
|
|
2808
|
+
} | {
|
|
2809
|
+
readonly id: string;
|
|
2810
|
+
readonly label: string;
|
|
2811
|
+
readonly key: string;
|
|
2812
|
+
readonly disabled?: boolean;
|
|
2813
|
+
readonly hint?: string;
|
|
2814
|
+
readonly style?: {
|
|
2815
|
+
readonly bg?: string;
|
|
2816
|
+
readonly bgHover?: string;
|
|
2817
|
+
readonly bgFocused?: string;
|
|
2818
|
+
readonly track?: string;
|
|
2819
|
+
readonly fill?: string;
|
|
2820
|
+
readonly fillAlpha?: number;
|
|
2821
|
+
readonly text?: string;
|
|
2822
|
+
readonly label?: string;
|
|
2823
|
+
readonly placeholder?: string;
|
|
2824
|
+
readonly border?: string;
|
|
2825
|
+
readonly borderFocused?: string;
|
|
2826
|
+
readonly selection?: string;
|
|
2827
|
+
readonly knob?: string;
|
|
2828
|
+
readonly radius?: number;
|
|
2829
|
+
readonly paddingX?: number;
|
|
2830
|
+
readonly paddingY?: number;
|
|
2831
|
+
readonly borderWidth?: number;
|
|
2832
|
+
readonly toggleWidth?: number;
|
|
2833
|
+
readonly toggleHeight?: number;
|
|
2834
|
+
};
|
|
2835
|
+
readonly pinKey?: string;
|
|
2836
|
+
readonly visibility?: "whenDisconnected" | "always";
|
|
2837
|
+
readonly showInSidebar?: boolean;
|
|
2838
|
+
readonly displayOptions?: {
|
|
2839
|
+
readonly show?: (state: Readonly<Record<string, unknown>>) => boolean;
|
|
2840
|
+
};
|
|
2841
|
+
readonly freeFloating?: boolean;
|
|
2842
|
+
readonly type: "custom";
|
|
2843
|
+
readonly renderer: string;
|
|
2844
|
+
readonly height?: number;
|
|
2845
|
+
})[];
|
|
2846
|
+
readonly pure?: boolean;
|
|
2847
|
+
readonly meta?: {
|
|
2848
|
+
readonly [x: string]: Readonly<unknown>;
|
|
2849
|
+
};
|
|
2850
|
+
readonly glyph?: {
|
|
2851
|
+
readonly icon: string;
|
|
2852
|
+
readonly side?: "left" | "right";
|
|
2853
|
+
};
|
|
2854
|
+
readonly serialize?: (node: Node) => Record<string, unknown>;
|
|
2855
|
+
readonly deserialize?: (json: Record<string, unknown>, node: Node) => Record<string, unknown>;
|
|
2856
|
+
readonly dynamic?: (node: Node) => {
|
|
2857
|
+
pins?: import("@xenolithengine/graph-core").PinSchema[];
|
|
2858
|
+
widgets?: import("@xenolithengine/graph-core").WidgetSpec[];
|
|
2859
|
+
} | undefined;
|
|
2860
|
+
readonly version?: number;
|
|
2861
|
+
readonly migrate?: (oldNode: Partial<Node> & {
|
|
2862
|
+
version?: number;
|
|
2863
|
+
}, oldVersion: number) => Partial<Node>;
|
|
2864
|
+
}[];
|
|
2865
|
+
} | null>>;
|
|
2866
|
+
/** Live `{ canUndo, canRedo, undo, redo }` — wires `editor.history.*` to reactive refs so a Vue
|
|
2867
|
+
* toolbar button can `:disabled="!canUndo.value"` and call `undo()` on click. */
|
|
2868
|
+
export declare function useUndoRedo(): {
|
|
2869
|
+
canUndo: ReadonlyRef<boolean>;
|
|
2870
|
+
canRedo: ReadonlyRef<boolean>;
|
|
2871
|
+
undo: () => boolean;
|
|
2872
|
+
redo: () => boolean;
|
|
2873
|
+
};
|
|
2874
|
+
export {};
|
|
2875
|
+
//# sourceMappingURL=hooks.d.ts.map
|