Skip to content

Commit 6e6cbd4

Browse files
committed
extended preview WiP
1 parent d2b7682 commit 6e6cbd4

File tree

5 files changed

+322
-81
lines changed

5 files changed

+322
-81
lines changed

examples-test-flows/test-flow-with-draggable-values.json

Lines changed: 226 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020
"inputType": "number"
2121
},
2222
"showFormOnlyInPopup": true,
23-
"isSettingsPopup": true
23+
"isSettingsPopup": true,
24+
"supportsPreview": true
2425
}
2526
},
2627
{
2728
"id": "978bb5b9-95bd-48db-b5d0-32ee0a19f359",
28-
"x": 10155.030522436788,
29-
"y": 2025.1435225993878,
29+
"x": 10144.732159651405,
30+
"y": 2054.89922988111,
3031
"width": 200,
3132
"height": 100,
3233
"nodeType": "Shape",
@@ -37,15 +38,16 @@
3738
"inputType": "number"
3839
},
3940
"showFormOnlyInPopup": true,
40-
"isSettingsPopup": true
41+
"isSettingsPopup": true,
42+
"supportsPreview": true
4143
}
4244
},
4345
{
4446
"id": "2c2ab16e-ddc9-46ee-be49-5b510c91e354",
4547
"x": 10590.913232625046,
4648
"y": 2075.6191535879448,
47-
"width": 119.99920876217523,
48-
"height": 56.00001459796518,
49+
"width": 120.0002010973282,
50+
"height": 55.999878211635284,
4951
"nodeType": "Shape",
5052
"nodeInfo": {
5153
"type": "show-input",
@@ -90,24 +92,26 @@
9092
"inputType": "number"
9193
},
9294
"showFormOnlyInPopup": true,
93-
"isSettingsPopup": true
95+
"isSettingsPopup": true,
96+
"supportsPreview": true
9497
}
9598
},
9699
{
97100
"id": "b0174761-22cc-4db6-8e83-27a09ad462c5",
98101
"x": 10183.360322930836,
99102
"y": 2388.8825245919566,
100-
"width": 239.9999549266688,
101-
"height": 55.999943143829334,
103+
"width": 240.00037802829422,
104+
"height": 55.99995455356423,
102105
"nodeType": "Shape",
103106
"nodeInfo": {
104-
"type": "sum"
107+
"type": "sum",
108+
"supportsPreview": true
105109
}
106110
},
107111
{
108112
"id": "14ec0c88-c5eb-4508-b153-1a5e9d36eb37",
109-
"x": 9956.864328701347,
110-
"y": 2275.756821883576,
113+
"x": 10003.168275387698,
114+
"y": 2233.263415886229,
111115
"width": 240,
112116
"height": 100,
113117
"nodeType": "Shape",
@@ -127,8 +131,8 @@
127131
"id": "61581958-5591-4b51-984d-cd0f2ab47372",
128132
"x": 10151.010505581524,
129133
"y": 1792.4660031566073,
130-
"width": 174.4218324956868,
131-
"height": 84.00002331858714,
134+
"width": 174.42185563990446,
135+
"height": 83.9999251343452,
132136
"nodeType": "Shape",
133137
"nodeInfo": {
134138
"type": "scope-variable",
@@ -146,8 +150,8 @@
146150
},
147151
{
148152
"id": "92d2514d-6342-43a2-b864-8adc9ec88c8b",
149-
"x": 9821.897279533316,
150-
"y": 1819.556623295406,
153+
"x": 9778.74423107898,
154+
"y": 1832.3438638052135,
151155
"width": 240,
152156
"height": 100,
153157
"nodeType": "Shape",
@@ -163,12 +167,157 @@
163167
"isAnnotation": true
164168
}
165169
},
170+
{
171+
"id": "acfcfe5c-aec6-4b3d-adc8-483ed18a2258",
172+
"x": 9907.66439699885,
173+
"y": 1954.9950704892774,
174+
"width": 110.6247244815404,
175+
"height": 37.74433114564067,
176+
"nodeType": "Shape",
177+
"nodeInfo": {
178+
"type": "annotation",
179+
"formValues": {
180+
"annotation": "21.123",
181+
"fontSize": "16",
182+
"fontWeight": "false"
183+
},
184+
"isSettingsPopup": true,
185+
"nodeCannotBeReplaced": true,
186+
"isAnnotation": true
187+
}
188+
},
189+
{
190+
"id": "92a6abc0-21c5-4dba-869f-5658bc4bd22b",
191+
"x": 9892.44389173188,
192+
"y": 1902.6022524138707,
193+
"width": 57.8133295343614,
194+
"height": 31.36911666207766,
195+
"nodeType": "Shape",
196+
"nodeInfo": {
197+
"type": "annotation",
198+
"formValues": {
199+
"annotation": "9998",
200+
"fontSize": "16",
201+
"fontWeight": "false"
202+
},
203+
"isSettingsPopup": true,
204+
"nodeCannotBeReplaced": true,
205+
"isAnnotation": true
206+
}
207+
},
208+
{
209+
"id": "273a4864-e8d0-4f9c-8353-d987b7a81670",
210+
"x": 9778.222906541308,
211+
"y": 2674.086134444579,
212+
"width": 200,
213+
"height": 100,
214+
"nodeType": "Shape",
215+
"nodeInfo": {
216+
"type": "expression",
217+
"formValues": {
218+
"expression": "a+b",
219+
"inputType": "number"
220+
},
221+
"showFormOnlyInPopup": true,
222+
"isSettingsPopup": true,
223+
"supportsPreview": true
224+
}
225+
},
226+
{
227+
"id": "6c2d5383-788b-43ae-8793-970a43c7975e",
228+
"x": 9322.372983471387,
229+
"y": 2679.6586107991366,
230+
"width": 150,
231+
"height": 105,
232+
"nodeType": "Shape",
233+
"nodeInfo": {
234+
"type": "object-node",
235+
"formValues": {
236+
"input-thumbs": [
237+
{
238+
"thumbName": "a",
239+
"dataType": "number"
240+
},
241+
{
242+
"thumbName": "b",
243+
"dataType": "number"
244+
}
245+
],
246+
"clearMode": "false"
247+
},
248+
"isSettingsPopup": true
249+
}
250+
},
251+
{
252+
"id": "b263083e-a153-4208-bb68-116e00460c23",
253+
"x": 10197.643266767667,
254+
"y": 2727.1226810117664,
255+
"width": 120.0002010973282,
256+
"height": 55.999878211635284,
257+
"nodeType": "Shape",
258+
"nodeInfo": {
259+
"type": "show-input",
260+
"formValues": {
261+
"name": "",
262+
"data-type": "default"
263+
},
264+
"initializeOnStartFlow": true,
265+
"isSettingsPopup": true
266+
}
267+
},
268+
{
269+
"id": "d599c236-1308-4b6c-b1b5-fa640282be69",
270+
"x": 9028.04658563688,
271+
"y": 2642.216719475015,
272+
"width": 200,
273+
"height": 112,
274+
"nodeType": "Shape",
275+
"nodeInfo": {
276+
"type": "value",
277+
"formValues": {
278+
"value": "2"
279+
}
280+
}
281+
},
282+
{
283+
"id": "61f144bd-4e2c-4880-b233-687954b3bbb6",
284+
"x": 9028.04658563688,
285+
"y": 2774.216712362698,
286+
"width": 200,
287+
"height": 112,
288+
"nodeType": "Shape",
289+
"nodeInfo": {
290+
"type": "value",
291+
"formValues": {
292+
"value": "3"
293+
}
294+
}
295+
},
296+
{
297+
"id": "84047b6f-7f0b-44c9-be01-3a7de97c6781",
298+
"x": 9458.310091566247,
299+
"y": 2479.0801354514206,
300+
"width": 131.5148659851293,
301+
"height": 103.6776176126441,
302+
"nodeType": "Shape",
303+
"nodeInfo": {
304+
"type": "annotation",
305+
"formValues": {
306+
"annotation": "{\n \"a\" : 10,\n \"b\" : 20\n}",
307+
"fontSize": "16",
308+
"fontWeight": "false"
309+
},
310+
"isSettingsPopup": true,
311+
"nodeCannotBeReplaced": true,
312+
"isAnnotation": true
313+
}
314+
},
166315
{
167316
"id": "ce778a45-3fad-4ef5-8864-c4e08ba8a987",
168317
"x": 9814.665662495308,
169318
"y": 2091.8724614975927,
170-
"endX": 10155.030522436788,
171-
"endY": 2075.143522599388,
319+
"endX": 10144.732159651405,
320+
"endY": 2104.89922988111,
172321
"startNodeId": "7e166d63-47d1-434c-a2aa-a7c75331ec7e",
173322
"endNodeId": "978bb5b9-95bd-48db-b5d0-32ee0a19f359",
174323
"startThumbName": "output",
@@ -180,8 +329,8 @@
180329
},
181330
{
182331
"id": "bdc6c812-445a-4a0b-a39c-fc5cae21e3d7",
183-
"x": 10355.030522436788,
184-
"y": 2075.143522599388,
332+
"x": 10344.732159651405,
333+
"y": 2104.89922988111,
185334
"endX": 10590.913232625046,
186335
"endY": 2105.6191535879448,
187336
"startNodeId": "978bb5b9-95bd-48db-b5d0-32ee0a19f359",
@@ -198,7 +347,7 @@
198347
"x": 9977.394152186711,
199348
"y": 2416.7596505691417,
200349
"endX": 10183.360322930836,
201-
"endY": 2416.882496163871,
350+
"endY": 2416.8825018687385,
202351
"startNodeId": "5c55d11b-3983-4b13-ac70-166d1899c5cd",
203352
"endNodeId": "b0174761-22cc-4db6-8e83-27a09ad462c5",
204353
"startThumbName": "output",
@@ -209,44 +358,64 @@
209358
"nodeInfo": {}
210359
},
211360
{
212-
"id": "acfcfe5c-aec6-4b3d-adc8-483ed18a2258",
213-
"x": 9904.898398872987,
214-
"y": 1964.8880805353383,
215-
"width": 110.6247244815404,
216-
"height": 37.74433114564067,
217-
"nodeType": "Shape",
218-
"nodeInfo": {
219-
"type": "annotation",
220-
"formValues": {
221-
"annotation": "21.123",
222-
"fontSize": "16",
223-
"fontWeight": "false"
224-
},
225-
"isSettingsPopup": true,
226-
"nodeCannotBeReplaced": true,
227-
"isAnnotation": true,
228-
"taskType": "annotation"
229-
}
361+
"id": "9153a4f2-1ff3-4590-a944-224b998444c2",
362+
"x": 9472.372983471387,
363+
"y": 2732.1586107991366,
364+
"endX": 9778.222906541308,
365+
"endY": 2724.086134444579,
366+
"startNodeId": "6c2d5383-788b-43ae-8793-970a43c7975e",
367+
"endNodeId": "273a4864-e8d0-4f9c-8353-d987b7a81670",
368+
"startThumbName": "output",
369+
"endThumbName": "input",
370+
"lineType": "BezierCubic",
371+
"nodeType": "Connection",
372+
"layer": 1,
373+
"nodeInfo": {}
230374
},
231375
{
232-
"id": "92a6abc0-21c5-4dba-869f-5658bc4bd22b",
233-
"x": 9926.399921662924,
234-
"y": 1905.2449817802428,
235-
"width": 57.8133295343614,
236-
"height": 31.36911666207766,
237-
"nodeType": "Shape",
238-
"nodeInfo": {
239-
"type": "annotation",
240-
"formValues": {
241-
"annotation": "9998",
242-
"fontSize": "16",
243-
"fontWeight": "false"
244-
},
245-
"isSettingsPopup": true,
246-
"nodeCannotBeReplaced": true,
247-
"isAnnotation": true,
248-
"taskType": "annotation"
249-
}
376+
"id": "e0115944-440b-472e-a6f5-f2058895187f",
377+
"x": 9978.222906541308,
378+
"y": 2724.086134444579,
379+
"endX": 10197.643266767667,
380+
"endY": 2757.1226810117664,
381+
"startNodeId": "273a4864-e8d0-4f9c-8353-d987b7a81670",
382+
"endNodeId": "b263083e-a153-4208-bb68-116e00460c23",
383+
"startThumbName": "output",
384+
"endThumbName": "input",
385+
"lineType": "BezierCubic",
386+
"nodeType": "Connection",
387+
"layer": 1,
388+
"nodeInfo": {}
389+
},
390+
{
391+
"id": "d017df0a-d2d8-43c2-a462-cab377621050",
392+
"x": 9228.04658563688,
393+
"y": 2698.216719475015,
394+
"endX": 9322.372983471387,
395+
"endY": 2709.6586107991366,
396+
"startNodeId": "d599c236-1308-4b6c-b1b5-fa640282be69",
397+
"endNodeId": "6c2d5383-788b-43ae-8793-970a43c7975e",
398+
"startThumbName": "output",
399+
"endThumbName": "input1",
400+
"lineType": "BezierCubic",
401+
"nodeType": "Connection",
402+
"layer": 1,
403+
"nodeInfo": {}
404+
},
405+
{
406+
"id": "043e13a0-9bc6-4dba-be45-c7a490d1c208",
407+
"x": 9228.04658563688,
408+
"y": 2830.216712362698,
409+
"endX": 9322.372983471387,
410+
"endY": 2759.6586107991366,
411+
"startNodeId": "61f144bd-4e2c-4880-b233-687954b3bbb6",
412+
"endNodeId": "6c2d5383-788b-43ae-8793-970a43c7975e",
413+
"startThumbName": "output",
414+
"endThumbName": "input2",
415+
"lineType": "BezierCubic",
416+
"nodeType": "Connection",
417+
"layer": 1,
418+
"nodeInfo": {}
250419
}
251420
]
252421
}

0 commit comments

Comments
 (0)