Commit 11c4120013f8aa7b1c79f8f664db8f961cfe83fc

Authored by ww
1 parent 4caa9c61

feat: add more component && default checked

No preview for this file type

51 KB | W: | H:

28.9 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

60.1 KB | W: | H:

19.1 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -26,7 +26,7 @@
26 26 /**
27 27 *
28 28 */
29   - Sidebar.prototype.defaultEntries = 'component;fan;engine;valve;controller;';
  29 + Sidebar.prototype.defaultEntries = 'component;fan;engine;valve;controller;light;button;conduit;instrument;sewage';
30 30
31 31 /**
32 32 * Library definitions
... ... @@ -116,7 +116,7 @@
116 116 */
117 117 Sidebar.prototype.configuration = [{id: 'general', libs: ['general', 'misc', 'advanced']},
118 118 //加入自定义图形ID
119   - {id:'fan'},{id:'engine'},{id:'valve'},{id:'component'},{id:'controller'},{id:'sewage'},{id:'conduit'},
  119 + {id:'fan'},{id:'engine'},{id:'valve'},{id:'component'},{id:'controller'},{id:'sewage'},{id:'conduit'},{id: 'light'},{id: 'instrument'},{id: 'button'},
120 120 {id: 'uml'}, {id: 'uml25'}, {id: 'search'}, {id: 'er'},
121 121 {id: 'azure2', prefix: 'azure2', libs: ['AI Machine Learning', 'Analytics', 'App Services', 'Azure Stack', 'Azure VMware Solution', 'Blockchain', 'Compute', 'Containers', 'CXP', 'Databases', 'DevOps', 'General', 'Identity', 'Integration', 'Internet of Things', 'Intune', 'IoT', 'Management Governance', 'Migrate', 'Mixed Reality', 'Monitor', 'Networking', 'Other', 'Preview', 'Security', 'Storage', 'Web']},
122 122 {id: 'ios', prefix: 'ios', libs: [''/*prefix is library*/, '7icons', '7ui']},
... ... @@ -511,12 +511,17 @@
511 511 // {title: mxResources.get('clipart'), id: 'clipart', image: IMAGE_PATH + '/sidebar-clipart.png'},
512 512 // {title: mxResources.get('flowchart'), id: 'flowchart', image: IMAGE_PATH + '/sidebar-flowchart.png'}];
513 513 //更多图形,显示出来的的标题跟id,同时包括图片
514   - var thingskitEntries = [{title:"风机",id:'fan',image:IMAGE_PATH + '/thingskit/风机.png'},
515   - {title:"电机",id:'engine',image:IMAGE_PATH + '/thingskit/发动机.png'},
516   - {title:"阀门",id:'valve',image:IMAGE_PATH + '/thingskit/1.png'},
  514 + var thingskitEntries = [
  515 + {title:"风机",id:'fan',image:IMAGE_PATH + '/thingskit/风机.png'},
  516 + {title:"发动机",id:'engine',image:IMAGE_PATH + '/thingskit/发动机.png'},
  517 + {title:"阀门",id:'valve',image:IMAGE_PATH + '/thingskit/阀门.png'},
517 518 {title:"基础组件",id:'component',image:IMAGE_PATH + '/thingskit/1.png'},
518   - {title: "污水处理",id:'sewage',image: IMAGE_PATH + '/thingskit/1.png'},
519   - {title: "管道",id:'conduit',image: IMAGE_PATH + '/thingskit/1.png'}];
  519 + {title: "污水处理",id:'sewage',image: IMAGE_PATH + '/thingskit/污水处理.png'},
  520 + {title: "管道",id:'conduit',image: IMAGE_PATH + '/thingskit/管道.png'},
  521 + {title: "灯",id:'light',image: IMAGE_PATH + '/thingskit/灯.png'},
  522 + {title: "按钮",id:'button',image: IMAGE_PATH + '/thingskit/按钮.png'},
  523 + {title: "仪表",id:'instrument',image: IMAGE_PATH + '/thingskit/仪表.png'},
  524 + ];
520 525 if (urlParams['sketch'] == '1')
521 526 {
522 527 stdEntries = [{title: mxResources.get('searchShapes'), id: 'search'},
... ... @@ -1098,13 +1103,13 @@
1098 1103 // 基础原件
1099 1104 this.addBasicComponentsPalette();
1100 1105 // 控制原价
1101   - this.addControllerComponentsPalette();
  1106 + // this.addControllerComponentsPalette();
1102 1107 // 发动机
1103 1108 this.addEnginePalette();
1104 1109 // 阀门
1105 1110 this.addValvePalette();
1106 1111 // 图表
1107   - this.addChartsPalette();
  1112 + // this.addChartsPalette();
1108 1113 // 风机
1109 1114 this.addFanPalette();
1110 1115 // 污水处理
... ...