@fmsim/board 0.0.85 → 0.0.86

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.
@@ -224,5 +224,9 @@ export const style = css `
224
224
  #toggle-property[active] {
225
225
  background: var(--url-icon-collapse-active) 80% 10px no-repeat;
226
226
  }
227
+
228
+ #generate-model {
229
+ background-position-y: -1492px;
230
+ }
227
231
  `;
228
232
  //# sourceMappingURL=edit-toolbar-style.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit-toolbar-style.js","sourceRoot":"","sources":["../../../src/modeller/edit-toolbar-style.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8NvB,CAAA","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport { css } from 'lit'\n\nexport const style = css`\n :host {\n color: white;\n background-color: var(--edit-toolbar-background-color, #394e64);\n\n overflow-x: hidden;\n }\n\n [tools] {\n display: flex;\n align-items: center;\n overflow: none;\n padding: 0px 10px;\n }\n\n [tools] > * {\n padding: 0px;\n }\n\n [tools] > span[button] {\n min-width: 30px;\n }\n\n [tools] > span[padding] {\n flex: 1;\n }\n\n [tools] > .vline {\n display: block;\n flex: none;\n border-left: 1px solid rgba(255, 255, 255, 0.2);\n border-right: 1px solid rgba(0, 0, 0, 0.15);\n width: 0px;\n height: 18px;\n margin: 0 3px;\n }\n\n span[button] {\n min-height: 35px;\n\n background: var(--url-icon-htoolbar) no-repeat;\n background-position-x: 50%;\n opacity: 0.8;\n }\n span[button]:hover {\n opacity: 1;\n background-color: rgba(0, 0, 0, 0.1);\n cursor: pointer;\n }\n\n #fullscreen,\n #toggle-property {\n flex: none;\n }\n\n #align-left {\n background-position-y: 8px;\n }\n\n #align-center {\n background-position-y: -42px;\n }\n\n #align-right {\n background-position-y: -92px;\n }\n\n #align-top {\n background-position-y: -142px;\n }\n\n #align-middle {\n background-position-y: -192px;\n }\n\n #align-bottom {\n background-position-y: -242px;\n }\n\n #undo {\n background-position-y: -592px;\n }\n\n #redo {\n background-position-y: -642px;\n }\n\n #front {\n background-position-y: -292px;\n }\n\n #back {\n background-position-y: -342px;\n }\n\n #forward {\n background-position-y: -392px;\n }\n\n #backward {\n background-position-y: -442px;\n }\n\n #symmetry-x {\n background-position-y: -492px;\n }\n\n #symmetry-y {\n background-position-y: -542px;\n }\n\n #group {\n background-position-y: -492px;\n }\n\n #ungroup {\n background-position-y: -542px;\n }\n\n #fullscreen {\n background-position-y: -692px;\n }\n\n #toggle-property {\n background-position-y: -692px;\n float: right;\n }\n\n #zoomin {\n background-position-y: -742px;\n }\n\n #zoomout {\n background-position-y: -792px;\n }\n\n #fit-scene {\n background-position-y: -1492px;\n }\n\n #cut {\n background-position-y: -842px;\n }\n\n #copy {\n background-position-y: -892px;\n }\n\n #paste {\n background-position-y: -942px;\n }\n\n #delete {\n background-position-y: -992px;\n }\n\n #font-increase {\n background-position-y: -1042px;\n }\n\n #font-decrease {\n background-position-y: -1092px;\n }\n\n #style-copy {\n background-position-y: -1142px;\n }\n\n #context-menu {\n background-position-y: -692px;\n }\n\n #symmetry-x {\n background-position-y: -1192px;\n }\n\n #symmetry-y {\n background-position-y: -1242px;\n }\n\n #rotate-cw {\n background-position-y: -1292px;\n }\n\n #rotate-ccw {\n background-position-y: -1342px;\n }\n\n #distribute-horizontal {\n background-position-y: -1542px;\n }\n\n #distribute-vertical {\n background-position-y: -1593px;\n }\n\n #toggle-property {\n background-position-y: -1392px;\n }\n\n #preview {\n background-position-y: -1640px;\n }\n\n /* bigger buttons */\n #fullscreen {\n background: var(--url-icon-fullscreen) 50% 10px no-repeat;\n width: var(--edit-toolbar-bigger-icon-size);\n height: var(--edit-toolbar-bigger-icon-size);\n border-left: var(--edit-toolbar-bigger-icon-line);\n }\n\n #toggle-property {\n background: var(--url-icon-collapse) 80% 10px no-repeat;\n width: var(--edit-toolbar-bigger-icon-size);\n height: var(--edit-toolbar-bigger-icon-size);\n border-left: var(--edit-toolbar-bigger-icon-line);\n }\n\n #toggle-property[active] {\n background: var(--url-icon-collapse-active) 80% 10px no-repeat;\n }\n`\n"]}
1
+ {"version":3,"file":"edit-toolbar-style.js","sourceRoot":"","sources":["../../../src/modeller/edit-toolbar-style.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkOvB,CAAA","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport { css } from 'lit'\n\nexport const style = css`\n :host {\n color: white;\n background-color: var(--edit-toolbar-background-color, #394e64);\n\n overflow-x: hidden;\n }\n\n [tools] {\n display: flex;\n align-items: center;\n overflow: none;\n padding: 0px 10px;\n }\n\n [tools] > * {\n padding: 0px;\n }\n\n [tools] > span[button] {\n min-width: 30px;\n }\n\n [tools] > span[padding] {\n flex: 1;\n }\n\n [tools] > .vline {\n display: block;\n flex: none;\n border-left: 1px solid rgba(255, 255, 255, 0.2);\n border-right: 1px solid rgba(0, 0, 0, 0.15);\n width: 0px;\n height: 18px;\n margin: 0 3px;\n }\n\n span[button] {\n min-height: 35px;\n\n background: var(--url-icon-htoolbar) no-repeat;\n background-position-x: 50%;\n opacity: 0.8;\n }\n span[button]:hover {\n opacity: 1;\n background-color: rgba(0, 0, 0, 0.1);\n cursor: pointer;\n }\n\n #fullscreen,\n #toggle-property {\n flex: none;\n }\n\n #align-left {\n background-position-y: 8px;\n }\n\n #align-center {\n background-position-y: -42px;\n }\n\n #align-right {\n background-position-y: -92px;\n }\n\n #align-top {\n background-position-y: -142px;\n }\n\n #align-middle {\n background-position-y: -192px;\n }\n\n #align-bottom {\n background-position-y: -242px;\n }\n\n #undo {\n background-position-y: -592px;\n }\n\n #redo {\n background-position-y: -642px;\n }\n\n #front {\n background-position-y: -292px;\n }\n\n #back {\n background-position-y: -342px;\n }\n\n #forward {\n background-position-y: -392px;\n }\n\n #backward {\n background-position-y: -442px;\n }\n\n #symmetry-x {\n background-position-y: -492px;\n }\n\n #symmetry-y {\n background-position-y: -542px;\n }\n\n #group {\n background-position-y: -492px;\n }\n\n #ungroup {\n background-position-y: -542px;\n }\n\n #fullscreen {\n background-position-y: -692px;\n }\n\n #toggle-property {\n background-position-y: -692px;\n float: right;\n }\n\n #zoomin {\n background-position-y: -742px;\n }\n\n #zoomout {\n background-position-y: -792px;\n }\n\n #fit-scene {\n background-position-y: -1492px;\n }\n\n #cut {\n background-position-y: -842px;\n }\n\n #copy {\n background-position-y: -892px;\n }\n\n #paste {\n background-position-y: -942px;\n }\n\n #delete {\n background-position-y: -992px;\n }\n\n #font-increase {\n background-position-y: -1042px;\n }\n\n #font-decrease {\n background-position-y: -1092px;\n }\n\n #style-copy {\n background-position-y: -1142px;\n }\n\n #context-menu {\n background-position-y: -692px;\n }\n\n #symmetry-x {\n background-position-y: -1192px;\n }\n\n #symmetry-y {\n background-position-y: -1242px;\n }\n\n #rotate-cw {\n background-position-y: -1292px;\n }\n\n #rotate-ccw {\n background-position-y: -1342px;\n }\n\n #distribute-horizontal {\n background-position-y: -1542px;\n }\n\n #distribute-vertical {\n background-position-y: -1593px;\n }\n\n #toggle-property {\n background-position-y: -1392px;\n }\n\n #preview {\n background-position-y: -1640px;\n }\n\n /* bigger buttons */\n #fullscreen {\n background: var(--url-icon-fullscreen) 50% 10px no-repeat;\n width: var(--edit-toolbar-bigger-icon-size);\n height: var(--edit-toolbar-bigger-icon-size);\n border-left: var(--edit-toolbar-bigger-icon-line);\n }\n\n #toggle-property {\n background: var(--url-icon-collapse) 80% 10px no-repeat;\n width: var(--edit-toolbar-bigger-icon-size);\n height: var(--edit-toolbar-bigger-icon-size);\n border-left: var(--edit-toolbar-bigger-icon-line);\n }\n\n #toggle-property[active] {\n background: var(--url-icon-collapse-active) 80% 10px no-repeat;\n }\n\n #generate-model {\n background-position-y: -1492px;\n }\n`\n"]}
@@ -59,4 +59,5 @@ export declare class EditToolbar extends LitElement {
59
59
  onTapPreview(): void;
60
60
  onTapDownloadModel(): void;
61
61
  onTapDistribute(e: TouchEvent | string): void;
62
+ onTapGenerateModel(e: TouchEvent | string): void;
62
63
  }
@@ -57,6 +57,9 @@ export class EditToolbar extends LitElement {
57
57
  .addEventListener('tap', this.onTapToggle.bind(this));
58
58
  this.renderRoot.querySelector('#fit-scene').addEventListener('tap', this.onTapFitScene.bind(this));
59
59
  this.renderRoot.querySelector('#preview').addEventListener('tap', this.onTapPreview.bind(this));
60
+ // this.renderRoot
61
+ // .querySelector('#generate-model')!
62
+ // .addEventListener('tap', this.onTapGenerateModel.bind(this) as EventListener)
60
63
  }
61
64
  updated(changes) {
62
65
  changes.has('scene') && this.onSceneChanged(this.scene, changes.get('scene'));
@@ -183,6 +186,7 @@ export class EditToolbar extends LitElement {
183
186
  <span class="vline"></span>
184
187
  <span padding></span>
185
188
 
189
+ <!-- <span button id="generate-model" title="generate model"> </span> -->
186
190
  <span button id="fit-scene" title="fit scene (${this.getShortcutString('cmd', 'd')})"> </span>
187
191
 
188
192
  <span class="vline"></span>
@@ -596,6 +600,477 @@ export class EditToolbar extends LitElement {
596
600
  var distribute = typeof e === 'string' ? e : e.target.getAttribute('data-distribute');
597
601
  distribute && this.scene.distribute(distribute);
598
602
  }
603
+ onTapGenerateModel(e) {
604
+ if (!this.scene)
605
+ return;
606
+ var id = 0;
607
+ for (var i = 0; i < 100; i++) {
608
+ for (var j = 0; j < 100; j++) {
609
+ const paddedNumber = String(++id).padStart(4, '0');
610
+ switch (j % 5) {
611
+ case 0:
612
+ this.scene.add([
613
+ {
614
+ type: 'Port',
615
+ id: 'Temp_' + paddedNumber,
616
+ left: i * 22,
617
+ top: j * 22,
618
+ width: 20,
619
+ height: 20
620
+ }
621
+ ], {});
622
+ break;
623
+ case 1:
624
+ this.scene.add([
625
+ {
626
+ type: 'STOCKER',
627
+ id: 'STOCKER_' + paddedNumber,
628
+ left: i * 22,
629
+ top: j * 22,
630
+ width: 20,
631
+ height: 20
632
+ }
633
+ ], {});
634
+ break;
635
+ case 2:
636
+ this.scene.add([
637
+ {
638
+ type: 'OHT',
639
+ id: 'RTV_' + paddedNumber,
640
+ left: i * 22,
641
+ top: j * 22,
642
+ width: 20,
643
+ height: 20,
644
+ direction: 'left'
645
+ }
646
+ ], {});
647
+ break;
648
+ case 3:
649
+ this.scene.add([
650
+ {
651
+ type: 'AGV',
652
+ id: 'Process_' + paddedNumber,
653
+ left: i * 22,
654
+ top: j * 22,
655
+ width: 20,
656
+ height: 20
657
+ }
658
+ ], {});
659
+ break;
660
+ case 4:
661
+ this.scene.add([
662
+ {
663
+ type: 'Conveyor',
664
+ id: 'Conveyor_' + paddedNumber,
665
+ left: i * 22,
666
+ top: j * 22,
667
+ width: 20,
668
+ height: 20,
669
+ conveyorType: 'rail'
670
+ }
671
+ ], {});
672
+ break;
673
+ }
674
+ }
675
+ // switch (j % 5) {
676
+ // case 0:
677
+ // this.scene.add(
678
+ // [
679
+ // {
680
+ // type: 'rect',
681
+ // realType: 'PORT',
682
+ // left: i * 22,
683
+ // top: j * 22,
684
+ // width: 20,
685
+ // height: 20,
686
+ // fillStyle: 'rgb(184, 184, 184)',
687
+ // strokeStyle: '#000',
688
+ // alpha: 0.9,
689
+ // hidden: false,
690
+ // lineWidth: 0,
691
+ // lineDash: 'solid',
692
+ // lineCap: 'butt',
693
+ // rotation: 0,
694
+ // mappings: [
695
+ // {
696
+ // rule: 'map',
697
+ // accessor: 'STATUS',
698
+ // target: '(self)',
699
+ // property: 'fillStyle',
700
+ // paramType: 'mcsPortLegend',
701
+ // param: {
702
+ // '2000': '#ff0000',
703
+ // '2001': '#595959',
704
+ // '2002': '#ffff00',
705
+ // '2003': '#ffff99',
706
+ // '2004': '#ccff99',
707
+ // '2005': '#33ff33',
708
+ // default: '#000000'
709
+ // }
710
+ // }
711
+ // ],
712
+ // isMcsUnit: true,
713
+ // carrierTypeUrl: {
714
+ // PALLET_EMPTY: {
715
+ // image: 'http://10.250.111.58:16060/images/6f3170c2-6e2b-4df7-9e52-20c71fcacb35.svg',
716
+ // width: 23,
717
+ // height: 23
718
+ // },
719
+ // PALLET: {
720
+ // image: 'http://10.250.111.58:16060/images/ee5f85db-0a9f-4d3a-a319-1d6f840ffb78.svg',
721
+ // width: 25,
722
+ // height: 25
723
+ // },
724
+ // FBE: {
725
+ // image: 'http://10.250.111.58:16060/images/a906b736-1f1b-4f35-ab8a-538ea7f563ea.svg',
726
+ // width: 25,
727
+ // height: 10
728
+ // },
729
+ // FB: {
730
+ // image: 'http://10.250.111.58:16060/images/7f0122d5-689d-4d0d-931a-e7074b11004f.svg',
731
+ // width: 25,
732
+ // height: 12
733
+ // },
734
+ // JBE: {
735
+ // image: 'http://10.250.111.58:16060/images/451437f8-0f89-4e25-b342-0f7a99f318aa.svg',
736
+ // width: 25,
737
+ // height: 10
738
+ // },
739
+ // JB: {
740
+ // image: 'http://10.250.111.58:16060/images/9fe6b754-b42e-439e-b7e3-77fc928921be.svg',
741
+ // width: 25,
742
+ // height: 12
743
+ // },
744
+ // RTEE: {
745
+ // image: 'http://10.250.111.58:16060/images/09719498-101c-4e89-9684-82cc39dfd644.svg',
746
+ // width: 25,
747
+ // height: 19
748
+ // },
749
+ // RTE: {
750
+ // image: 'http://10.250.111.58:16060/images/25615862-0ded-4b38-aabc-a534c63ae6f2.svg',
751
+ // width: 25,
752
+ // height: 19
753
+ // },
754
+ // RT: {
755
+ // image: 'http://10.250.111.58:16060/images/74f6d1f9-fcb6-4c6c-814a-135d3c682d98.svg',
756
+ // width: 25,
757
+ // height: 19
758
+ // },
759
+ // PLTEE: {
760
+ // image: 'http://10.250.111.58:16060/images/c3eaafce-cd94-4519-bac9-05f988697f4a.svg',
761
+ // width: 25,
762
+ // height: 25
763
+ // },
764
+ // PLTE: {
765
+ // image: 'http://10.250.111.58:16060/images/de6c655b-f02e-4b55-9b64-030f7b5b0cd8.svg',
766
+ // width: 25,
767
+ // height: 25
768
+ // },
769
+ // PLT: {
770
+ // image: 'http://10.250.111.58:16060/images/9072687a-4440-4475-9a64-528a601e9fea.svg',
771
+ // width: 25,
772
+ // height: 25
773
+ // },
774
+ // MGZE: {
775
+ // image: 'http://10.250.111.58:16060/images/1b79b7c0-42df-4439-9b5f-14efe87ad3b8.svg',
776
+ // width: 20,
777
+ // height: 10
778
+ // },
779
+ // MGZ: {
780
+ // image: 'http://10.250.111.58:16060/images/892d4dc2-5765-43f1-8508-bcce40acb3c4.svg',
781
+ // width: 20,
782
+ // height: 10
783
+ // },
784
+ // CTEE: {
785
+ // image: 'http://10.250.111.58:16060/images/4a44a3e0-f296-44d7-9f09-1cfa6eca6c4c.png',
786
+ // width: 25,
787
+ // height: 25
788
+ // },
789
+ // CTE: {
790
+ // image: 'http://10.250.111.58:16060/images/3069a8b9-6b7b-4c31-96ff-f5ade6f0e772.png',
791
+ // width: 25,
792
+ // height: 25
793
+ // },
794
+ // CT: {
795
+ // image: 'http://10.250.111.58:16060/images/797bc1ac-57a1-49fb-a70f-7ec2352bb480.png',
796
+ // width: 25,
797
+ // height: 25
798
+ // },
799
+ // CARRIERALL: {
800
+ // image: 'http://10.250.111.58:16060/images/757784f6-4e13-4faa-8ab2-5c25edcaa718.svg',
801
+ // width: 25,
802
+ // height: 25
803
+ // }
804
+ // },
805
+ // id: 'Temp_' + paddedNumber,
806
+ // text: '',
807
+ // fontSize: 12,
808
+ // bold: true,
809
+ // toggleText: false
810
+ // }
811
+ // ],
812
+ // {}
813
+ // )
814
+ // break;
815
+ // case 1:
816
+ // this.scene.add(
817
+ // [
818
+ // {
819
+ // type: 'rect',
820
+ // realType: 'STOCKER',
821
+ // hvType: 'vertical',
822
+ // headerType: 'topV',
823
+ // text: 'STK013',
824
+ // left: i * 22,
825
+ // top: j * 22,
826
+ // width: 20,
827
+ // height: 20,
828
+ // topHorizonW: 308,
829
+ // topHorizonH: 112,
830
+ // leftHorizonW: 523,
831
+ // leftHorizonH: 71,
832
+ // topVerticalW: 95,
833
+ // topVerticalH: 394,
834
+ // topHorizonHH: 40,
835
+ // leftHorizonHW: 54,
836
+ // topVerticalHH: 34,
837
+ // fontColor: '#fff',
838
+ // headerColor: '#afafaf',
839
+ // bgColor: '#fff',
840
+ // gaugeBgColor: 'rgba(0, 0, 0, 0.75)',
841
+ // gaugeBgBarColor: 'rgba(150, 150, 150, 0.8)',
842
+ // gaugeBarColor: 'rgb(65, 247, 215)',
843
+ // gaugeFontColor: '#fff',
844
+ // radius: 10,
845
+ // textWrap: true,
846
+ // strokeStyle: '#646464',
847
+ // alpha: 1,
848
+ // hidden: false,
849
+ // lineWidth: 0,
850
+ // lineCap: 'butt',
851
+ // mappings: [
852
+ // {
853
+ // rule: 'map',
854
+ // accessor: 'STATUS',
855
+ // target: '(self)',
856
+ // property: 'fillStyle',
857
+ // paramType: 'mcsMachineLegend',
858
+ // param: {
859
+ // '1000': '#000000',
860
+ // '1001': '#00FE00',
861
+ // '1002': '#ff2800',
862
+ // '1003': '#AE42FE',
863
+ // '1004': '#fff',
864
+ // '1005': '#ff2800',
865
+ // '1006': '#FAFF19',
866
+ // '1007': '#FACD18',
867
+ // '1008': '#0041ff',
868
+ // default: '#d6d6d6'
869
+ // }
870
+ // },
871
+ // {
872
+ // rule: 'value',
873
+ // target: '(self)',
874
+ // property: 'value'
875
+ // }
876
+ // ],
877
+ // rotation: 0,
878
+ // toggleText: false,
879
+ // id: 'STOCKER_' + paddedNumber,
880
+ // fontSize: 15,
881
+ // eqpNames: {
882
+ // ko: 'STK #2',
883
+ // en: 'STK #2',
884
+ // zh_CN: ''
885
+ // },
886
+ // class: 'STK013',
887
+ // fontFamily: 'Arial'
888
+ // }
889
+ // ],
890
+ // {}
891
+ // )
892
+ // break;
893
+ // case 2:
894
+ // this.scene.add(
895
+ // [
896
+ // {
897
+ // type: 'rect',
898
+ // realType: 'RTV',
899
+ // rgvType: 'middle',
900
+ // left: i * 22,
901
+ // top: j * 22,
902
+ // width: 20,
903
+ // height: 20,
904
+ // fillStyle: {
905
+ // fitPattern: false,
906
+ // height: null,
907
+ // image: 'http://skbamcs2.skbattery.com:7693/images/9d6d301b-458b-408c-b309-c35c631a0825.png',
908
+ // offsetX: 0,
909
+ // offsetY: 0,
910
+ // type: 'pattern',
911
+ // width: null,
912
+ // defaultBg: '#636363',
913
+ // pathType: 't',
914
+ // imageLoaded: {}
915
+ // },
916
+ // text: '',
917
+ // strokeStyle: '#000',
918
+ // alpha: 1,
919
+ // hidden: false,
920
+ // lineWidth: 0,
921
+ // lineDash: 'solid',
922
+ // lineCap: 'butt',
923
+ // mappings: [
924
+ // {
925
+ // rule: 'map',
926
+ // accessor: 'STATUS',
927
+ // target: '(self)',
928
+ // property: 'fillStyle',
929
+ // paramType: 'mcsMachineLegendDefault',
930
+ // param: {
931
+ // '1000': '#000000',
932
+ // '1002': '#ff2800',
933
+ // '1003': '#AE42FE',
934
+ // '1004': '#fff',
935
+ // '1005': '#ff2800',
936
+ // '1006': '#FAFF19',
937
+ // '1007': '#FACD18',
938
+ // '1008': '#0041ff',
939
+ // default: '#636363'
940
+ // }
941
+ // }
942
+ // ],
943
+ // rotation: 1.5707963267948966,
944
+ // toggleText: false,
945
+ // id: 'RTV_' + paddedNumber
946
+ // }
947
+ // ],
948
+ // {}
949
+ // )
950
+ // break
951
+ // case 3:
952
+ // this.scene.add(
953
+ // [
954
+ // {
955
+ // type: 'rect',
956
+ // realType: 'PROCESS',
957
+ // extend: false,
958
+ // left: i * 22,
959
+ // top: j * 22,
960
+ // width: 20,
961
+ // height: 20,
962
+ // headerHeight: 40,
963
+ // headerColor: '#afafaf',
964
+ // bgColor: '#fff',
965
+ // radius: 10,
966
+ // textColor: '#fff',
967
+ // text: ' C020',
968
+ // toggleText: false,
969
+ // strokeStyle: '#646464',
970
+ // alpha: 1,
971
+ // hidden: false,
972
+ // lineWidth: 0,
973
+ // lineDash: 'solid',
974
+ // lineCap: 'butt',
975
+ // mappings: [
976
+ // {
977
+ // rule: 'map',
978
+ // accessor: 'STATUS',
979
+ // target: '(self)',
980
+ // property: 'fillStyle',
981
+ // paramType: 'mcsMachineLegend',
982
+ // param: {
983
+ // '1000': '#000000',
984
+ // '1001': '#00FE00',
985
+ // '1002': '#ff2800',
986
+ // '1003': '#AE42FE',
987
+ // '1004': '#fff',
988
+ // '1005': '#ff2800',
989
+ // '1006': '#FAFF19',
990
+ // '1007': '#FACD18',
991
+ // '1008': '#0041ff',
992
+ // default: '#d6d6d6'
993
+ // }
994
+ // },
995
+ // {
996
+ // rule: 'value',
997
+ // target: '(self)',
998
+ // property: 'value'
999
+ // }
1000
+ // ],
1001
+ // rotation: 0,
1002
+ // fontSize: 11,
1003
+ // id: 'Process_' + paddedNumber,
1004
+ // textBaseline: 'top',
1005
+ // paddingTop: 2,
1006
+ // fontFamily: 'Arial'
1007
+ // }
1008
+ // ],
1009
+ // {}
1010
+ // )
1011
+ // break
1012
+ // case 4:
1013
+ // this.scene.add(
1014
+ // [
1015
+ // {
1016
+ // type: 'rect',
1017
+ // realType: 'CONVEYOR',
1018
+ // convType: 'middle',
1019
+ // id: 'Conveyor_' + paddedNumber,
1020
+ // left: i * 22,
1021
+ // top: j * 22,
1022
+ // width: 20,
1023
+ // height: 20,
1024
+ // fillStyle: {
1025
+ // fitPattern: false,
1026
+ // height: null,
1027
+ // image: 'http://skbamcs2.skbattery.com:7693/images/86e5e78c-8186-49ad-8846-63c89598d778.png',
1028
+ // offsetX: 0,
1029
+ // offsetY: 0,
1030
+ // type: 'pattern',
1031
+ // width: null,
1032
+ // defaultBg: '#636363',
1033
+ // pathType: 't',
1034
+ // imageLoaded: {}
1035
+ // },
1036
+ // text: '',
1037
+ // strokeStyle: '#000',
1038
+ // alpha: 1,
1039
+ // hidden: false,
1040
+ // lineWidth: 0,
1041
+ // lineDash: 'solid',
1042
+ // lineCap: 'butt',
1043
+ // mappings: [
1044
+ // {
1045
+ // rule: 'map',
1046
+ // accessor: 'STATUS',
1047
+ // target: '(self)',
1048
+ // property: 'fillStyle',
1049
+ // paramType: 'mcsMachineLegendDefault',
1050
+ // param: {
1051
+ // '1000': '#000000',
1052
+ // '1002': '#ff2800',
1053
+ // '1003': '#AE42FE',
1054
+ // '1004': '#fff',
1055
+ // '1005': '#ff2800',
1056
+ // '1006': '#FAFF19',
1057
+ // '1007': '#FACD18',
1058
+ // '1008': '#0041ff',
1059
+ // default: '#636363'
1060
+ // }
1061
+ // }
1062
+ // ],
1063
+ // rotation: 1.5707963267948966,
1064
+ // toggleText: false,
1065
+ // fontSize: 16
1066
+ // }
1067
+ // ],
1068
+ // {}
1069
+ // )
1070
+ // break;
1071
+ // }
1072
+ }
1073
+ }
599
1074
  }
600
1075
  EditToolbar.styles = [style];
601
1076
  __decorate([