@linkdlab/funcnodes_pyodide_react_flow 0.1.2 → 0.1.3
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/dist/esm/index.esm.js +1 -1
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/style.css +65 -121
- package/dist/index.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/umd/index.umd.js +1 -1
- package/dist/umd/index.umd.js.map +1 -1
- package/dist/umd/style.css +65 -121
- package/dist/worker/pyodideDedicatedWorker.js +1 -1
- package/dist/worker/pyodideDedicatedWorker.js.map +1 -1
- package/dist/worker/pyodideSharedWorker.js +1 -1
- package/dist/worker/pyodideSharedWorker.js.map +1 -1
- package/dist/worker/pyodideWorkerLayout.d.ts +15 -1
- package/dist/worker/pyodideWorkerLayout.js +1 -1
- package/dist/worker/pyodideWorkerLayout.js.map +1 -1
- package/dist/worker/pyodideWorkerLogic.d.ts +14 -1
- package/dist/worker/pyodideWorkerLogic.js +1 -1
- package/dist/worker/pyodideWorkerLogic.js.map +1 -1
- package/package.json +3 -3
package/dist/umd/style.css
CHANGED
|
@@ -342,8 +342,7 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
342
342
|
--fa-animation-direction: reverse;
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
.fa-pulse,
|
|
346
|
-
.fa-spin-pulse {
|
|
345
|
+
.fa-pulse, .fa-spin-pulse {
|
|
347
346
|
animation-name: fa-spin;
|
|
348
347
|
animation-direction: var(--fa-animation-direction, normal);
|
|
349
348
|
animation-duration: var(--fa-animation-duration, 1s);
|
|
@@ -352,15 +351,7 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
352
351
|
}
|
|
353
352
|
|
|
354
353
|
@media (prefers-reduced-motion: reduce) {
|
|
355
|
-
.fa-beat,
|
|
356
|
-
.fa-bounce,
|
|
357
|
-
.fa-fade,
|
|
358
|
-
.fa-beat-fade,
|
|
359
|
-
.fa-flip,
|
|
360
|
-
.fa-pulse,
|
|
361
|
-
.fa-shake,
|
|
362
|
-
.fa-spin,
|
|
363
|
-
.fa-spin-pulse {
|
|
354
|
+
.fa-beat, .fa-bounce, .fa-fade, .fa-beat-fade, .fa-flip, .fa-pulse, .fa-shake, .fa-spin, .fa-spin-pulse {
|
|
364
355
|
animation-delay: -1ms;
|
|
365
356
|
animation-duration: 1ms;
|
|
366
357
|
animation-iteration-count: 1;
|
|
@@ -476,8 +467,7 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
476
467
|
transform: scale(1, -1);
|
|
477
468
|
}
|
|
478
469
|
|
|
479
|
-
.fa-flip-both,
|
|
480
|
-
.fa-flip-horizontal.fa-flip-vertical {
|
|
470
|
+
.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {
|
|
481
471
|
transform: scale(-1, -1);
|
|
482
472
|
}
|
|
483
473
|
|
|
@@ -493,8 +483,7 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
493
483
|
width: 2.5em;
|
|
494
484
|
}
|
|
495
485
|
|
|
496
|
-
.fa-stack-1x,
|
|
497
|
-
.fa-stack-2x {
|
|
486
|
+
.fa-stack-1x, .fa-stack-2x {
|
|
498
487
|
bottom: 0;
|
|
499
488
|
left: 0;
|
|
500
489
|
margin: auto;
|
|
@@ -518,8 +507,7 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
518
507
|
color: var(--fa-inverse, #fff);
|
|
519
508
|
}
|
|
520
509
|
|
|
521
|
-
.sr-only,
|
|
522
|
-
.fa-sr-only {
|
|
510
|
+
.sr-only, .fa-sr-only {
|
|
523
511
|
position: absolute;
|
|
524
512
|
width: 1px;
|
|
525
513
|
height: 1px;
|
|
@@ -531,8 +519,7 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
531
519
|
border-width: 0;
|
|
532
520
|
}
|
|
533
521
|
|
|
534
|
-
.sr-only-focusable:not(:focus),
|
|
535
|
-
.fa-sr-only-focusable:not(:focus) {
|
|
522
|
+
.sr-only-focusable:not(:focus), .fa-sr-only-focusable:not(:focus) {
|
|
536
523
|
position: absolute;
|
|
537
524
|
width: 1px;
|
|
538
525
|
height: 1px;
|
|
@@ -562,13 +549,10 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
562
549
|
opacity: var(--fa-primary-opacity, 1);
|
|
563
550
|
}
|
|
564
551
|
|
|
565
|
-
.svg-inline--fa mask .fa-primary,
|
|
566
|
-
.svg-inline--fa mask .fa-secondary {
|
|
552
|
+
.svg-inline--fa mask .fa-primary, .svg-inline--fa mask .fa-secondary {
|
|
567
553
|
fill: black;
|
|
568
554
|
}
|
|
569
555
|
|
|
570
|
-
/* this gets exported as style.css and can be used for the default theming */
|
|
571
|
-
/* these are the necessary styles for React Flow, they get used by base.css and style.css */
|
|
572
556
|
.react-flow {
|
|
573
557
|
direction: ltr;
|
|
574
558
|
}
|
|
@@ -610,8 +594,7 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
610
594
|
z-index: 6;
|
|
611
595
|
}
|
|
612
596
|
|
|
613
|
-
.react-flow__nodesselection-rect:focus,
|
|
614
|
-
.react-flow__nodesselection-rect:focus-visible {
|
|
597
|
+
.react-flow__nodesselection-rect:focus, .react-flow__nodesselection-rect:focus-visible {
|
|
615
598
|
outline: none;
|
|
616
599
|
}
|
|
617
600
|
|
|
@@ -620,8 +603,7 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
620
603
|
overflow: visible;
|
|
621
604
|
}
|
|
622
605
|
|
|
623
|
-
.react-flow__edge-path,
|
|
624
|
-
.react-flow__connection-path {
|
|
606
|
+
.react-flow__edge-path, .react-flow__connection-path {
|
|
625
607
|
stroke: #b1b1b7;
|
|
626
608
|
stroke-width: 1;
|
|
627
609
|
fill: none;
|
|
@@ -648,15 +630,11 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
648
630
|
pointer-events: none;
|
|
649
631
|
}
|
|
650
632
|
|
|
651
|
-
.react-flow__edge.selected,
|
|
652
|
-
.react-flow__edge:focus,
|
|
653
|
-
.react-flow__edge:focus-visible {
|
|
633
|
+
.react-flow__edge.selected, .react-flow__edge:focus, .react-flow__edge:focus-visible {
|
|
654
634
|
outline: none;
|
|
655
635
|
}
|
|
656
636
|
|
|
657
|
-
.react-flow__edge.selected .react-flow__edge-path,
|
|
658
|
-
.react-flow__edge:focus .react-flow__edge-path,
|
|
659
|
-
.react-flow__edge:focus-visible .react-flow__edge-path {
|
|
637
|
+
.react-flow__edge.selected .react-flow__edge-path, .react-flow__edge:focus .react-flow__edge-path, .react-flow__edge:focus-visible .react-flow__edge-path {
|
|
660
638
|
stroke: #555;
|
|
661
639
|
}
|
|
662
640
|
|
|
@@ -838,15 +816,11 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
838
816
|
font-size: 10px;
|
|
839
817
|
}
|
|
840
818
|
|
|
841
|
-
.react-flow__node.selectable:focus,
|
|
842
|
-
.react-flow__node.selectable:focus-visible {
|
|
819
|
+
.react-flow__node.selectable:focus, .react-flow__node.selectable:focus-visible {
|
|
843
820
|
outline: none;
|
|
844
821
|
}
|
|
845
822
|
|
|
846
|
-
.react-flow__node-default,
|
|
847
|
-
.react-flow__node-input,
|
|
848
|
-
.react-flow__node-output,
|
|
849
|
-
.react-flow__node-group {
|
|
823
|
+
.react-flow__node-default, .react-flow__node-input, .react-flow__node-output, .react-flow__node-group {
|
|
850
824
|
padding: 10px;
|
|
851
825
|
border-radius: 3px;
|
|
852
826
|
width: 150px;
|
|
@@ -863,18 +837,7 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
863
837
|
box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.08);
|
|
864
838
|
}
|
|
865
839
|
|
|
866
|
-
.react-flow__node-default.selectable.selected,
|
|
867
|
-
.react-flow__node-default.selectable:focus,
|
|
868
|
-
.react-flow__node-default.selectable:focus-visible,
|
|
869
|
-
.react-flow__node-input.selectable.selected,
|
|
870
|
-
.react-flow__node-input.selectable:focus,
|
|
871
|
-
.react-flow__node-input.selectable:focus-visible,
|
|
872
|
-
.react-flow__node-output.selectable.selected,
|
|
873
|
-
.react-flow__node-output.selectable:focus,
|
|
874
|
-
.react-flow__node-output.selectable:focus-visible,
|
|
875
|
-
.react-flow__node-group.selectable.selected,
|
|
876
|
-
.react-flow__node-group.selectable:focus,
|
|
877
|
-
.react-flow__node-group.selectable:focus-visible {
|
|
840
|
+
.react-flow__node-default.selectable.selected, .react-flow__node-default.selectable:focus, .react-flow__node-default.selectable:focus-visible, .react-flow__node-input.selectable.selected, .react-flow__node-input.selectable:focus, .react-flow__node-input.selectable:focus-visible, .react-flow__node-output.selectable.selected, .react-flow__node-output.selectable:focus, .react-flow__node-output.selectable:focus-visible, .react-flow__node-group.selectable.selected, .react-flow__node-group.selectable:focus, .react-flow__node-group.selectable:focus-visible {
|
|
878
841
|
box-shadow: 0 0 0 0.5px #1a192b;
|
|
879
842
|
}
|
|
880
843
|
|
|
@@ -882,16 +845,12 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
882
845
|
background-color: rgba(240, 240, 240, 0.25);
|
|
883
846
|
}
|
|
884
847
|
|
|
885
|
-
.react-flow__nodesselection-rect,
|
|
886
|
-
.react-flow__selection {
|
|
848
|
+
.react-flow__nodesselection-rect, .react-flow__selection {
|
|
887
849
|
background: rgba(0, 89, 220, 0.08);
|
|
888
850
|
border: 1px dotted rgba(0, 89, 220, 0.8);
|
|
889
851
|
}
|
|
890
852
|
|
|
891
|
-
.react-flow__nodesselection-rect:focus,
|
|
892
|
-
.react-flow__nodesselection-rect:focus-visible,
|
|
893
|
-
.react-flow__selection:focus,
|
|
894
|
-
.react-flow__selection:focus-visible {
|
|
853
|
+
.react-flow__nodesselection-rect:focus, .react-flow__nodesselection-rect:focus-visible, .react-flow__selection:focus, .react-flow__selection:focus-visible {
|
|
895
854
|
outline: none;
|
|
896
855
|
}
|
|
897
856
|
|
|
@@ -946,27 +905,22 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
946
905
|
position: absolute;
|
|
947
906
|
}
|
|
948
907
|
|
|
949
|
-
.react-flow__resize-control.left,
|
|
950
|
-
.react-flow__resize-control.right {
|
|
908
|
+
.react-flow__resize-control.left, .react-flow__resize-control.right {
|
|
951
909
|
cursor: ew-resize;
|
|
952
910
|
}
|
|
953
911
|
|
|
954
|
-
.react-flow__resize-control.top,
|
|
955
|
-
.react-flow__resize-control.bottom {
|
|
912
|
+
.react-flow__resize-control.top, .react-flow__resize-control.bottom {
|
|
956
913
|
cursor: ns-resize;
|
|
957
914
|
}
|
|
958
915
|
|
|
959
|
-
.react-flow__resize-control.top.left,
|
|
960
|
-
.react-flow__resize-control.bottom.right {
|
|
916
|
+
.react-flow__resize-control.top.left, .react-flow__resize-control.bottom.right {
|
|
961
917
|
cursor: nwse-resize;
|
|
962
918
|
}
|
|
963
919
|
|
|
964
|
-
.react-flow__resize-control.bottom.left,
|
|
965
|
-
.react-flow__resize-control.top.right {
|
|
920
|
+
.react-flow__resize-control.bottom.left, .react-flow__resize-control.top.right {
|
|
966
921
|
cursor: nesw-resize;
|
|
967
922
|
}
|
|
968
923
|
|
|
969
|
-
/* handle styles */
|
|
970
924
|
.react-flow__resize-control.handle {
|
|
971
925
|
width: 4px;
|
|
972
926
|
height: 4px;
|
|
@@ -1012,15 +966,13 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
1012
966
|
left: 100%;
|
|
1013
967
|
}
|
|
1014
968
|
|
|
1015
|
-
/* line styles */
|
|
1016
969
|
.react-flow__resize-control.line {
|
|
1017
970
|
border-color: #3367d9;
|
|
1018
971
|
border-width: 0;
|
|
1019
972
|
border-style: solid;
|
|
1020
973
|
}
|
|
1021
974
|
|
|
1022
|
-
.react-flow__resize-control.line.left,
|
|
1023
|
-
.react-flow__resize-control.line.right {
|
|
975
|
+
.react-flow__resize-control.line.left, .react-flow__resize-control.line.right {
|
|
1024
976
|
width: 1px;
|
|
1025
977
|
transform: translate(-50%, 0);
|
|
1026
978
|
top: 0;
|
|
@@ -1037,8 +989,7 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
1037
989
|
border-right-width: 1px;
|
|
1038
990
|
}
|
|
1039
991
|
|
|
1040
|
-
.react-flow__resize-control.line.top,
|
|
1041
|
-
.react-flow__resize-control.line.bottom {
|
|
992
|
+
.react-flow__resize-control.line.top, .react-flow__resize-control.line.bottom {
|
|
1042
993
|
height: 1px;
|
|
1043
994
|
transform: translate(0, -50%);
|
|
1044
995
|
left: 0;
|
|
@@ -4473,8 +4424,7 @@ svg.svg-inline--fa:not(:root), svg.svg-inline--fa:not(:host) {
|
|
|
4473
4424
|
outline: none;
|
|
4474
4425
|
}
|
|
4475
4426
|
|
|
4476
|
-
input[type=number]::-webkit-inner-spin-button,
|
|
4477
|
-
input[type=number]::-webkit-outer-spin-button {
|
|
4427
|
+
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
|
|
4478
4428
|
opacity: 0.5;
|
|
4479
4429
|
background-color: tr;
|
|
4480
4430
|
}
|
|
@@ -4535,7 +4485,7 @@ input[type=number]::-webkit-outer-spin-button {
|
|
|
4535
4485
|
display: block;
|
|
4536
4486
|
width: 10px;
|
|
4537
4487
|
height: 10px;
|
|
4538
|
-
background-color:
|
|
4488
|
+
background-color: #fff;
|
|
4539
4489
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3333333333);
|
|
4540
4490
|
border-radius: 10px;
|
|
4541
4491
|
}
|
|
@@ -4848,7 +4798,7 @@ button {
|
|
|
4848
4798
|
color: #f0f8ff;
|
|
4849
4799
|
box-sizing: content-box;
|
|
4850
4800
|
transform: -50%, -50%;
|
|
4851
|
-
border: 2px solid
|
|
4801
|
+
border: 2px solid hsla(0, 0%, 100%, 0);
|
|
4852
4802
|
font-size: 0.5rem;
|
|
4853
4803
|
width: auto;
|
|
4854
4804
|
max-width: 250px;
|
|
@@ -4858,7 +4808,7 @@ button {
|
|
|
4858
4808
|
}
|
|
4859
4809
|
|
|
4860
4810
|
.react-flow__node.selected {
|
|
4861
|
-
border-color:
|
|
4811
|
+
border-color: hsla(0, 0%, 100%, 0.6);
|
|
4862
4812
|
}
|
|
4863
4813
|
|
|
4864
4814
|
.react-flow__node * {
|
|
@@ -4924,7 +4874,7 @@ button {
|
|
|
4924
4874
|
}
|
|
4925
4875
|
|
|
4926
4876
|
.innernode.error .nodeheader {
|
|
4927
|
-
background-color:
|
|
4877
|
+
background-color: red;
|
|
4928
4878
|
}
|
|
4929
4879
|
|
|
4930
4880
|
.nodeheader {
|
|
@@ -4933,30 +4883,30 @@ button {
|
|
|
4933
4883
|
width: 100%;
|
|
4934
4884
|
padding: 0.1rem;
|
|
4935
4885
|
border-radius: var(--node_border_radius) var(--node_border_radius) 0 0;
|
|
4936
|
-
display: flex;
|
|
4937
|
-
align-items: center;
|
|
4938
|
-
justify-content: space-between;
|
|
4886
|
+
display: flex;
|
|
4887
|
+
align-items: center;
|
|
4888
|
+
justify-content: space-between;
|
|
4939
4889
|
}
|
|
4940
4890
|
|
|
4941
4891
|
.nodeheader_element {
|
|
4942
|
-
display: flex;
|
|
4943
|
-
align-items: center;
|
|
4892
|
+
display: flex;
|
|
4893
|
+
align-items: center;
|
|
4944
4894
|
}
|
|
4945
4895
|
|
|
4946
4896
|
.nodeheader_title {
|
|
4947
|
-
flex-grow: 1;
|
|
4948
|
-
margin: 0 10px;
|
|
4949
|
-
white-space: nowrap;
|
|
4950
|
-
overflow: hidden;
|
|
4951
|
-
text-overflow: ellipsis;
|
|
4952
|
-
justify-content: center;
|
|
4897
|
+
flex-grow: 1;
|
|
4898
|
+
margin: 0 10px;
|
|
4899
|
+
white-space: nowrap;
|
|
4900
|
+
overflow: hidden;
|
|
4901
|
+
text-overflow: ellipsis;
|
|
4902
|
+
justify-content: center;
|
|
4953
4903
|
}
|
|
4954
4904
|
|
|
4955
4905
|
.nodeheader_title_text {
|
|
4956
4906
|
overflow: hidden;
|
|
4957
4907
|
text-overflow: ellipsis;
|
|
4958
4908
|
white-space: nowrap;
|
|
4959
|
-
max-width: 100%;
|
|
4909
|
+
max-width: 100%;
|
|
4960
4910
|
}
|
|
4961
4911
|
|
|
4962
4912
|
.nodeheader .triggerbutton {
|
|
@@ -4972,10 +4922,10 @@ button {
|
|
|
4972
4922
|
}
|
|
4973
4923
|
|
|
4974
4924
|
.nodename_input {
|
|
4975
|
-
border: 1px solid #
|
|
4925
|
+
border: 1px solid #000;
|
|
4976
4926
|
border-radius: 2px;
|
|
4977
4927
|
background: none;
|
|
4978
|
-
color:
|
|
4928
|
+
color: #fff;
|
|
4979
4929
|
text-align: center;
|
|
4980
4930
|
font-size: inherit;
|
|
4981
4931
|
margin: 2px;
|
|
@@ -4994,7 +4944,7 @@ button {
|
|
|
4994
4944
|
}
|
|
4995
4945
|
|
|
4996
4946
|
.nodefooter .nodeerror {
|
|
4997
|
-
border: 1px solid
|
|
4947
|
+
border: 1px solid red;
|
|
4998
4948
|
border-radius: 2px;
|
|
4999
4949
|
padding: 0.25rem;
|
|
5000
4950
|
background-color: rgba(255, 0, 0, 0.4588235294);
|
|
@@ -5018,7 +4968,7 @@ button {
|
|
|
5018
4968
|
}
|
|
5019
4969
|
|
|
5020
4970
|
.noderesizecontrol {
|
|
5021
|
-
background:
|
|
4971
|
+
background: rgba(0, 0, 0, 0) !important;
|
|
5022
4972
|
border: none !important;
|
|
5023
4973
|
font-size: 0.5rem;
|
|
5024
4974
|
}
|
|
@@ -5039,7 +4989,7 @@ button {
|
|
|
5039
4989
|
position: relative;
|
|
5040
4990
|
display: flex;
|
|
5041
4991
|
flex-direction: row;
|
|
5042
|
-
border: 1px solid
|
|
4992
|
+
border: 1px solid hsla(0, 0%, 100%, 0.5333333333);
|
|
5043
4993
|
border-radius: 3px;
|
|
5044
4994
|
box-sizing: border-box;
|
|
5045
4995
|
margin-left: calc(var(--nodeinput_margin) * 1px);
|
|
@@ -5093,20 +5043,17 @@ input.nodedatainput:focus {
|
|
|
5093
5043
|
outline: none;
|
|
5094
5044
|
}
|
|
5095
5045
|
|
|
5096
|
-
.nodedatastyledelement, input.nodedatainput.styledinput,
|
|
5097
|
-
.nodedatainput.styleddropdown {
|
|
5046
|
+
.nodedatastyledelement, input.nodedatainput.styledinput, .nodedatainput.styleddropdown {
|
|
5098
5047
|
background-color: var(--node_header_color);
|
|
5099
5048
|
font-size: 0.5rem;
|
|
5100
5049
|
height: 1.5rem;
|
|
5101
5050
|
}
|
|
5102
5051
|
|
|
5103
|
-
.nodedatastyledelement:disabled, input.nodedatainput.styledinput:disabled,
|
|
5104
|
-
.nodedatainput.styleddropdown:disabled {
|
|
5052
|
+
.nodedatastyledelement:disabled, input.nodedatainput.styledinput:disabled, .nodedatainput.styleddropdown:disabled {
|
|
5105
5053
|
opacity: 0.5;
|
|
5106
5054
|
}
|
|
5107
5055
|
|
|
5108
|
-
input.nodedatainput.styledinput,
|
|
5109
|
-
.nodedatainput.styleddropdown {
|
|
5056
|
+
input.nodedatainput.styledinput, .nodedatainput.styleddropdown {
|
|
5110
5057
|
width: 100%;
|
|
5111
5058
|
}
|
|
5112
5059
|
|
|
@@ -5119,7 +5066,7 @@ input.nodedatainput.styledinput,
|
|
|
5119
5066
|
|
|
5120
5067
|
.nodeprogress-text {
|
|
5121
5068
|
text-align: center;
|
|
5122
|
-
color:
|
|
5069
|
+
color: #fff;
|
|
5123
5070
|
mix-blend-mode: difference;
|
|
5124
5071
|
}
|
|
5125
5072
|
|
|
@@ -5203,7 +5150,7 @@ s slideUpAndFade to {
|
|
|
5203
5150
|
.iotooltipcontent {
|
|
5204
5151
|
z-index: 100;
|
|
5205
5152
|
background-color: #f9f9f9;
|
|
5206
|
-
border: 1px solid #
|
|
5153
|
+
border: 1px solid #fff;
|
|
5207
5154
|
border-radius: 5px;
|
|
5208
5155
|
padding: 10px;
|
|
5209
5156
|
box-shadow: hsla(206, 22%, 7%, 0.35) 0px 10px 38px -10px, hsla(206, 22%, 7%, 0.2) 0px 10px 20px -15px;
|
|
@@ -5248,7 +5195,7 @@ s slideUpAndFade to {
|
|
|
5248
5195
|
}
|
|
5249
5196
|
|
|
5250
5197
|
.iotooltipcontentarrow {
|
|
5251
|
-
fill:
|
|
5198
|
+
fill: #fff;
|
|
5252
5199
|
}
|
|
5253
5200
|
|
|
5254
5201
|
.colorspace {
|
|
@@ -5315,7 +5262,7 @@ s slideUpAndFade to {
|
|
|
5315
5262
|
|
|
5316
5263
|
.tablecontainer {
|
|
5317
5264
|
overflow: auto;
|
|
5318
|
-
background-color:
|
|
5265
|
+
background-color: #fff;
|
|
5319
5266
|
min-height: 20rem;
|
|
5320
5267
|
}
|
|
5321
5268
|
|
|
@@ -5338,7 +5285,6 @@ s slideUpAndFade to {
|
|
|
5338
5285
|
font-weight: inherit !important;
|
|
5339
5286
|
}
|
|
5340
5287
|
|
|
5341
|
-
/* base styles */
|
|
5342
5288
|
._GzYRV {
|
|
5343
5289
|
line-height: 1.2;
|
|
5344
5290
|
white-space: pre-wrap;
|
|
@@ -5400,15 +5346,14 @@ s slideUpAndFade to {
|
|
|
5400
5346
|
padding: 0;
|
|
5401
5347
|
}
|
|
5402
5348
|
|
|
5403
|
-
/* default light style */
|
|
5404
5349
|
._1MGIk {
|
|
5405
5350
|
font-weight: 600;
|
|
5406
5351
|
margin-right: 5px;
|
|
5407
|
-
color: #
|
|
5352
|
+
color: #000;
|
|
5408
5353
|
}
|
|
5409
5354
|
|
|
5410
5355
|
._3uHL6 {
|
|
5411
|
-
color: #
|
|
5356
|
+
color: #000;
|
|
5412
5357
|
}
|
|
5413
5358
|
|
|
5414
5359
|
._2T6PJ {
|
|
@@ -5436,18 +5381,17 @@ s slideUpAndFade to {
|
|
|
5436
5381
|
}
|
|
5437
5382
|
|
|
5438
5383
|
._oLqym {
|
|
5439
|
-
color: #
|
|
5384
|
+
color: #000;
|
|
5440
5385
|
}
|
|
5441
5386
|
|
|
5442
5387
|
._2AXVT {
|
|
5443
|
-
color: #
|
|
5388
|
+
color: #000;
|
|
5444
5389
|
}
|
|
5445
5390
|
|
|
5446
5391
|
._2KJWg {
|
|
5447
|
-
color: #
|
|
5392
|
+
color: #000;
|
|
5448
5393
|
}
|
|
5449
5394
|
|
|
5450
|
-
/* default dark style */
|
|
5451
5395
|
._11RoI {
|
|
5452
5396
|
background: rgb(0, 43, 54);
|
|
5453
5397
|
}
|
|
@@ -5600,7 +5544,7 @@ s slideUpAndFade to {
|
|
|
5600
5544
|
}
|
|
5601
5545
|
|
|
5602
5546
|
.funcnodes-edge.selected .react-flow__edge-path {
|
|
5603
|
-
stroke: #
|
|
5547
|
+
stroke: #1f0;
|
|
5604
5548
|
}
|
|
5605
5549
|
|
|
5606
5550
|
:root {
|
|
@@ -5612,7 +5556,7 @@ s slideUpAndFade to {
|
|
|
5612
5556
|
.libcontainer {
|
|
5613
5557
|
top: 0;
|
|
5614
5558
|
left: 0;
|
|
5615
|
-
|
|
5559
|
+
height: 100%;
|
|
5616
5560
|
padding: 0.5rem;
|
|
5617
5561
|
box-sizing: border-box;
|
|
5618
5562
|
display: flex;
|
|
@@ -5692,7 +5636,7 @@ s slideUpAndFade to {
|
|
|
5692
5636
|
|
|
5693
5637
|
.libfilter input {
|
|
5694
5638
|
flex-grow: 1;
|
|
5695
|
-
background-color:
|
|
5639
|
+
background-color: rgba(0, 0, 0, 0);
|
|
5696
5640
|
color: var(--funcnodestextcolor1);
|
|
5697
5641
|
border: 0;
|
|
5698
5642
|
}
|
|
@@ -5759,12 +5703,12 @@ s slideUpAndFade to {
|
|
|
5759
5703
|
border: 1px solid var(--libnodebgcolor);
|
|
5760
5704
|
transition: border 0.2s ease-in-out;
|
|
5761
5705
|
font-size: 0.8rem;
|
|
5762
|
-
box-shadow: -0.2rem 0px
|
|
5706
|
+
box-shadow: -0.2rem 0px #004cff;
|
|
5763
5707
|
}
|
|
5764
5708
|
|
|
5765
5709
|
.libnodeentry:hover {
|
|
5766
5710
|
background-color: var(--libnodebgcolor_hover);
|
|
5767
|
-
border: 1px solid
|
|
5711
|
+
border: 1px solid #004cff;
|
|
5768
5712
|
}
|
|
5769
5713
|
|
|
5770
5714
|
.expandicon {
|
|
@@ -5817,7 +5761,7 @@ s slideUpAndFade to {
|
|
|
5817
5761
|
.addable-module .add-button {
|
|
5818
5762
|
background-color: #28a745;
|
|
5819
5763
|
border: none;
|
|
5820
|
-
color:
|
|
5764
|
+
color: #fff;
|
|
5821
5765
|
padding: 8px 12px;
|
|
5822
5766
|
border-radius: 4px;
|
|
5823
5767
|
cursor: pointer;
|
|
@@ -5832,7 +5776,7 @@ s slideUpAndFade to {
|
|
|
5832
5776
|
.addable-module .remove-button {
|
|
5833
5777
|
background-color: #dc3545;
|
|
5834
5778
|
border: none;
|
|
5835
|
-
color:
|
|
5779
|
+
color: #fff;
|
|
5836
5780
|
padding: 8px 12px;
|
|
5837
5781
|
border-radius: 4px;
|
|
5838
5782
|
cursor: pointer;
|
|
@@ -5847,7 +5791,7 @@ s slideUpAndFade to {
|
|
|
5847
5791
|
.addable-module .update-button {
|
|
5848
5792
|
background-color: #007bff;
|
|
5849
5793
|
border: none;
|
|
5850
|
-
color:
|
|
5794
|
+
color: #fff;
|
|
5851
5795
|
padding: 8px 12px;
|
|
5852
5796
|
border-radius: 4px;
|
|
5853
5797
|
cursor: pointer;
|
|
@@ -5865,7 +5809,7 @@ s slideUpAndFade to {
|
|
|
5865
5809
|
}
|
|
5866
5810
|
|
|
5867
5811
|
.addable-module .toggle-description {
|
|
5868
|
-
background-color:
|
|
5812
|
+
background-color: rgba(0, 0, 0, 0);
|
|
5869
5813
|
border: none;
|
|
5870
5814
|
color: #007bff;
|
|
5871
5815
|
cursor: pointer;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function e(e,r,o,t){return new(o||(o=Promise))((function(i,d){function n(e){try{a(t.next(e))}catch(e){d(e)}}function s(e){try{a(t.throw(e))}catch(e){d(e)}}function a(e){var r;e.done?i(e.value):(r=e.value,r instanceof o?r:new o((function(e){e(r)}))).then(n,s)}a((t=t.apply(e,r||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const r=self;r.workerState={pyodide:null,pyodide_url:"https://cdn.jsdelivr.net/pyodide/v0.27.2/full/pyodide.mjs",micropip:null,worker:{},pyodideReady:!1,pyodideReadyPromise:null,debug:!1,interruptBuffer:null,receivepy:(e,r)=>{},handel_register:{},post_pyodide_ready:void 0},r.reset=()=>e(void 0,void 0,void 0,(function*(){var e;for(const o in r.list_workers())try{const t=yield r.get_worker(o);t.worker&&t.worker.stop(),null===(e=t.reject_promise)||void 0===e||e.call(t,"Worker reset")}catch(e){}r.workerState.pyodide&&r.interrupt(),r.workerState.pyodide=null,r.workerState.micropip=null,r.workerState.worker={},r.workerState.pyodideReady=!1;try{r.workerState.interruptBuffer=new Uint8Array(new SharedArrayBuffer(1)),r.workerState.interruptBuffer[0]=0}catch(e){}})),r.initializePyodide=()=>e(void 0,void 0,void 0,(function*(){var e,o;if(!r.workerState.pyodide){console.debug("Loading Pyodide..."),yield r.reset(),console.debug("Loading Pyodide module...");const e=yield import(r.workerState.pyodide_url);console.debug("Loading Pyodide instance...");const o=e.loadPyodide,t=r.workerState.pyodide_url.split("/").slice(0,-1).join("/");console.log(t),r.workerState.pyodide=yield o({packages:["micropip"],indexURL:t}),r.workerState.interruptBuffer&&r.workerState.pyodide.setInterruptBuffer(r.workerState.interruptBuffer)}
|
|
1
|
+
function e(e,r,o,t){return new(o||(o=Promise))((function(i,d){function n(e){try{a(t.next(e))}catch(e){d(e)}}function s(e){try{a(t.throw(e))}catch(e){d(e)}}function a(e){var r;e.done?i(e.value):(r=e.value,r instanceof o?r:new o((function(e){e(r)}))).then(n,s)}a((t=t.apply(e,r||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const r=self;r.workerState={pyodide:null,pyodide_url:"https://cdn.jsdelivr.net/pyodide/v0.27.2/full/pyodide.mjs",packages:[],micropip:null,worker:{},pyodideReady:!1,pyodideReadyPromise:null,debug:!1,interruptBuffer:null,receivepy:(e,r)=>{},receivepy_bytes:(e,r)=>{},handel_register:{},post_pyodide_ready:void 0},r.reset=()=>e(void 0,void 0,void 0,(function*(){var e;for(const o in r.list_workers())try{const t=yield r.get_worker(o);t.worker&&t.worker.stop(),null===(e=t.reject_promise)||void 0===e||e.call(t,"Worker reset")}catch(e){}r.workerState.pyodide&&r.interrupt(),r.workerState.pyodide=null,r.workerState.micropip=null,r.workerState.worker={},r.workerState.pyodideReady=!1;try{r.workerState.interruptBuffer=new Uint8Array(new SharedArrayBuffer(1)),r.workerState.interruptBuffer[0]=0}catch(e){}})),r.initializePyodide=()=>e(void 0,void 0,void 0,(function*(){var e,o;if(!r.workerState.pyodide){console.debug("Loading Pyodide..."),yield r.reset(),console.debug("Loading Pyodide module...");const e=yield import(r.workerState.pyodide_url);console.debug("Loading Pyodide instance...");const o=e.loadPyodide,t=r.workerState.pyodide_url.split("/").slice(0,-1).join("/");console.log(t),r.workerState.pyodide=yield o({packages:["micropip"],indexURL:t}),r.workerState.interruptBuffer&&r.workerState.pyodide.setInterruptBuffer(r.workerState.interruptBuffer)}r.workerState.micropip||(console.debug("Importing micropip..."),r.workerState.micropip=r.workerState.pyodide.pyimport("micropip")),console.debug("Pyodide ready. Installing funcnodes...");for(const e of r.workerState.packages)console.log("Installing package:",e),yield r.workerState.micropip.install(e);return yield r.workerState.micropip.install("funcnodes"),yield r.workerState.micropip.install("funcnodes-worker"),yield r.workerState.micropip.install("funcnodes-pyodide"),console.debug("Importing funcnodes..."),yield r.workerState.pyodide.runPythonAsync("import funcnodes_pyodide"),console.debug("Running post_pyodide_ready..."),yield null===(o=(e=r.workerState).post_pyodide_ready)||void 0===o?void 0:o.call(e,r.workerState),console.debug("Pyodide ready"),r.workerState.pyodideReady=!0,{pyodide:r.workerState.pyodide,micropip:r.workerState.micropip}})),r.interrupt=()=>{r.workerState.interruptBuffer&&(r.workerState.interruptBuffer[0]=1)},r.list_workers=()=>Object.keys(r.workerState.worker),r.get_worker=o=>e(void 0,void 0,void 0,(function*(){if(!o)throw new Error("Worker id is required");if(!r.workerState.worker[o])throw new Error(`Worker with id ${o} not found`);return yield r.workerState.worker[o].make_promise,r.workerState.worker[o]})),r.has_worker=e=>{if(!e)throw new Error("Worker id is required");return!!r.workerState.worker[e]},r.get_or_create_worker=o=>e(void 0,void 0,void 0,(function*(){if(!o)throw new Error("Worker id is required");return r.workerState.worker[o]||(console.log("Creating worker with id",o),yield r.initializeFuncNodesWorker(o)),r.get_worker(o)})),r.initializeFuncNodesWorker=o=>e(void 0,void 0,void 0,(function*(){try{const{pyodide:t}=yield r.initializePyodide();if(!r.has_worker(o)){r.workerState.worker[o]={worker:null,make_promise:void 0};const i=new Promise(((i,d)=>e(void 0,void 0,void 0,(function*(){r.workerState.worker[o].reject_promise=d,console.debug(`Creating worker (${o})...`);const e=yield t.runPythonAsync(`funcnodes_pyodide.new_worker(debug=${r.workerState.debug?1:0}, uuid="${o}")`);if(console.debug("Worker created:",e),"function"!=typeof e.set_receiver)throw new Error("Worker does not expose a 'set_receiver' method.");e.set_receiver(self),r.workerState.worker[o].worker=e,console.debug("Worker ready"),i(e)}))));r.workerState.worker[o].make_promise=i}return r.get_worker(o)}catch(e){throw console.error("Error during worker initialization:",e),e}})),r.receivepy=(e,o)=>{try{let t={};if("string"==typeof e?t.msg=e:t=e,void 0===t.msg)return;"string"!=typeof t.msg&&(t.msg=JSON.stringify(t.msg)),void 0!==o&&("string"==typeof o?t.worker_id||(t.worker_id=o):t=Object.assign(Object.assign({},o),t));const i=t.worker_id;if(!i)throw new Error(`Worker id not provided in receivepy(${JSON.stringify(t)})`);if(!r.workerState.worker[i])throw new Error(`Worker with id ${i} not found in receivepy(${JSON.stringify(t)})`);r.workerState.receivepy(e,i)}catch(e){return void console.error("Error during receivepy:",e)}},r.receivepy_bytes=(e,o)=>{e=e.toJs();try{let t={};if(e instanceof Uint8Array?t.msg=e:t=e,void 0===t.msg)return;void 0!==o&&("string"==typeof o?t.worker_id||(t.worker_id=o):t=Object.assign(Object.assign({},o),t));const i=t.worker_id;if(!i)throw new Error("Worker id not provided in receivepy_bytes");if(!r.workerState.worker[i])throw new Error(`Worker with id ${i} not found in receivepy_bytes`);r.workerState.receivepy_bytes(e,i)}catch(e){return void console.error("Error during receivepy_bytes:",e)}},r.startInitialization=({debug:e=!1,receivepy:o,receivepy_bytes:t,pyodide_url:i,post_pyodide_ready:d,packages:n})=>(r.workerState.debug=e,r.workerState.pyodide_url=i||"https://cdn.jsdelivr.net/pyodide/v0.27.2/full/pyodide.mjs",r.workerState.packages=n,r.workerState.receivepy=o,r.workerState.receivepy_bytes=t,r.workerState.pyodideReadyPromise=r.initializePyodide(),r.workerState.post_pyodide_ready=d,r.workerState),r.register_cmd_message=(e,o)=>{if(r.workerState.handel_register[e])throw new Error(`Command ${e} already registered`);r.workerState.handel_register[e]=o},r.register_cmd_message("ping",(r=>e(void 0,void 0,void 0,(function*(){return"pong"})))),r.register_cmd_message("_eval",(o=>e(void 0,void 0,void 0,(function*(){var e;try{const t=yield null===(e=r.workerState.pyodide)||void 0===e?void 0:e.runPythonAsync(o.msg||"print('No code provided')");return console.log("Eval result:",t),t}catch(e){console.error("Error during _eval:",e)}})))),r.register_cmd_message("state",(o=>e(void 0,void 0,void 0,(function*(){return{state:{loaded:r.workerState.pyodideReady}}})))),r.register_cmd_message("worker:state",(o=>e(void 0,void 0,void 0,(function*(){return{state:{loaded:!!(yield r.get_or_create_worker(o.worker_id)).worker}}})))),r.register_cmd_message("worker:stop",(o=>e(void 0,void 0,void 0,(function*(){var e;if(!r.has_worker(o.worker_id))return;const t=yield r.get_or_create_worker(o.worker_id);return t.worker&&(t.worker.stop(),t.worker=null,null===(e=t.reject_promise)||void 0===e||e.call(t,"Worker stopped")),delete r.workerState.worker[o.worker_id],{state:{loaded:!1}}})))),r.register_cmd_message("worker:send",(o=>e(void 0,void 0,void 0,(function*(){const e=yield r.get_or_create_worker(o.worker_id);if(!e.worker)throw new Error("Worker is not initialized");if("function"!=typeof e.worker.receivejs)throw new Error("Worker does not support receivejs: "+typeof e.worker.receivejs);e.worker.receivejs(o.msg)})))),r.handleMessage=o=>e(void 0,void 0,void 0,(function*(){const e={original:o};o.id&&(e.id=o.id),void 0===o.toJs&&(o.toJs=!0);try{if(!o.cmd)throw new Error("Unknown message format: "+JSON.stringify(o));{const t=o;if(!r.workerState.handel_register[t.cmd])throw new Error("Unknown command: "+t.cmd);e.result=yield r.workerState.handel_register[t.cmd](t)}}catch(r){e.error=r.message}return e})),r.read_url_params=()=>{var e,r;const o=new URLSearchParams(self.location.search),t="true"===(null===(e=o.get("debug"))||void 0===e?void 0:e.toLowerCase()),i=o.get("pyodide_url")||void 0,d=(null===(r=o.get("packages"))||void 0===r?void 0:r.split(","))||[];return console.log("Debug:",t,"Pyodide URL:",i,"Packages:",d),{debug:t,pyodide_url:i,packages:d}};const o=r;o.general_initalization=e=>{const r=o.read_url_params();o.startInitialization(Object.assign(Object.assign({},e),r))};const t=o;o.init_dedicated_worker=o=>{const t=r;t.onmessage=r=>e(void 0,void 0,void 0,(function*(){const e=r.data,o=yield t.handleMessage(e);t.postMessage(o)}));const i=Object.assign(Object.assign({},o),{receivepy:(e,r)=>{t.postMessage({cmd:"receive",msg:e,worker_id:r})},receivepy_bytes(e,r){t.postMessage({cmd:"receive_bytes",msg:e,worker_id:r})}});t.general_initalization(i)},t.init_shared_worker=o=>{const t=r;t.connectedPorts=[],t.onconnect=r=>{const o=r.ports[0];t.connectedPorts.push(o),o.start(),console.debug("Port connected in shared worker"),o.onmessage=r=>e(void 0,void 0,void 0,(function*(){const e=r.data,i=yield t.handleMessage(e);o.postMessage(i)}))};const i=Object.assign(Object.assign({},o),{receivepy:(e,r)=>{t.connectedPorts.forEach((o=>{o.postMessage({cmd:"receive",msg:e,worker_id:r})}))},receivepy_bytes(e,r){t.connectedPorts.forEach((o=>{o.postMessage({cmd:"receive_bytes",msg:e,worker_id:r})}))}});t.general_initalization(i)};o.init_dedicated_worker({});
|
|
2
2
|
//# sourceMappingURL=pyodideDedicatedWorker.js.map
|