coolcare-lite-scada-component 2.0.10 → 2.0.11

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.
Files changed (242) hide show
  1. package/es/app.js +5 -5
  2. package/es/components/BoxShadowPicker/index.js +11 -11
  3. package/es/components/ColorPicker/index.js +11 -11
  4. package/es/components/DeviceSelect/DeviceTable.js +18 -19
  5. package/es/components/DeviceSelect/index.js +10 -10
  6. package/es/components/DialogExpression/ImagePicker/index.js +5 -5
  7. package/es/components/DialogExpression/index.js +13 -13
  8. package/es/components/DialogHistory/index.js +12 -12
  9. package/es/components/DialogIconPicker/index.js +5 -5
  10. package/es/components/DialogImagePicker/Gallery/index.js +14 -14
  11. package/es/components/DialogImagePicker/GroupPanel/index.js +21 -11
  12. package/es/components/DialogImagePicker/index.js +5 -5
  13. package/es/components/DialogPointWrite/PointItem.js +10 -10
  14. package/es/components/DialogPointWrite/index.js +11 -11
  15. package/es/components/ECharts/index.js +7 -7
  16. package/es/components/FontFamilySelect/list.js +0 -1
  17. package/es/components/FontStyleForm/index.js +11 -11
  18. package/es/components/FormBindPoint/FreedomScene.js +14 -14
  19. package/es/components/FormBindPoint/ProductionOrDeviceScene.js +14 -14
  20. package/es/components/FormIconSelect/index.js +5 -5
  21. package/es/components/FormNodeData/index.js +9 -10
  22. package/es/components/FormNodeData/utils/valueUtil.js +1 -1
  23. package/es/components/Icon/index.js +1 -2
  24. package/es/components/ImageUploader/index.js +16 -17
  25. package/es/components/LockBtn/index.js +5 -5
  26. package/es/components/Margin_Padding/index.js +8 -8
  27. package/es/components/ModalFanDevicePoint/index.js +12 -12
  28. package/es/components/MouseTooltip/index.js +11 -11
  29. package/es/components/PaddingPicker/index.js +11 -11
  30. package/es/components/PointInfoTip/index.js +15 -15
  31. package/es/components/PointSelect/DevicePointTable.js +5 -5
  32. package/es/components/PointSelect/ProductPointTable.js +5 -5
  33. package/es/components/PointSelect/index.js +13 -13
  34. package/es/components/Prompt/index.js +15 -15
  35. package/es/components/SliderWithInput/index.js +5 -5
  36. package/es/components/Switch/index.js +3 -3
  37. package/es/edge/EdgeLinePort/PropsSet/Flow.js +6 -6
  38. package/es/edge/EdgeLinePort/PropsSet/Line.js +6 -6
  39. package/es/edge/EdgeLinePort/PropsSet/Marker.js +6 -6
  40. package/es/edge/EdgeLinePort/index.js +15 -16
  41. package/es/edge/EdgePipe/PropsSet/Flow.js +6 -6
  42. package/es/edge/EdgePipe/PropsSet/Pipe.js +6 -6
  43. package/es/edge/EdgePipe/index.js +16 -18
  44. package/es/element/BasicShape/Circle/index.js +16 -18
  45. package/es/element/BasicShape/CommentBox/index.js +16 -18
  46. package/es/element/BasicShape/CommentBox2/index.js +16 -18
  47. package/es/element/BasicShape/Ellipse/index.js +16 -18
  48. package/es/element/BasicShape/Heart/index.js +16 -18
  49. package/es/element/BasicShape/Lightning/index.js +16 -18
  50. package/es/element/BasicShape/PropsForm/index.js +5 -5
  51. package/es/element/BasicShape/Rectangle/index.js +16 -18
  52. package/es/element/BasicShape/Star/index.js +16 -18
  53. package/es/element/BorderBox/BorderBox1/index.js +15 -16
  54. package/es/element/BorderBox/BorderBox10/Component.js +6 -6
  55. package/es/element/BorderBox/BorderBox10/index.js +15 -16
  56. package/es/element/BorderBox/BorderBox12/index.js +15 -16
  57. package/es/element/BorderBox/BorderBox13/index.js +15 -16
  58. package/es/element/BorderBox/BorderBox2/index.js +15 -16
  59. package/es/element/BorderBox/BorderBox3/index.js +15 -16
  60. package/es/element/BorderBox/BorderBox4/index.js +15 -16
  61. package/es/element/BorderBox/BorderBox5/index.js +15 -16
  62. package/es/element/BorderBox/BorderBox6/index.js +15 -16
  63. package/es/element/BorderBox/BorderBox7/Component.js +6 -6
  64. package/es/element/BorderBox/BorderBox7/index.js +15 -16
  65. package/es/element/BorderBox/BorderBox8/Component.js +5 -5
  66. package/es/element/BorderBox/BorderBox8/index.js +15 -16
  67. package/es/element/BorderBox/BorderBox9/Component.js +5 -5
  68. package/es/element/BorderBox/BorderBox9/index.js +15 -16
  69. package/es/element/BorderBox/PropsSet/ColorSet.js +5 -5
  70. package/es/element/Decoration/Decoration1/Component.js +5 -5
  71. package/es/element/Decoration/Decoration1/index.js +15 -16
  72. package/es/element/Decoration/Decoration10/index.js +15 -16
  73. package/es/element/Decoration/Decoration2/index.js +15 -16
  74. package/es/element/Decoration/Decoration3/Component.js +5 -5
  75. package/es/element/Decoration/Decoration3/index.js +15 -16
  76. package/es/element/Decoration/Decoration4/index.js +15 -16
  77. package/es/element/Decoration/Decoration5/index.js +15 -16
  78. package/es/element/Decoration/Decoration6/Component.js +11 -11
  79. package/es/element/Decoration/Decoration6/index.js +15 -16
  80. package/es/element/Decoration/Decoration8/Component.js +5 -5
  81. package/es/element/Decoration/Decoration8/index.js +15 -16
  82. package/es/element/Decoration/PropsSet/ColorSet.js +5 -5
  83. package/es/element/EleButton/Component.js +10 -18
  84. package/es/element/EleButton/index.js +15 -16
  85. package/es/element/EleClock/Component.js +11 -11
  86. package/es/element/EleClock/index.js +15 -16
  87. package/es/element/EleContainer/PropsSet/OtherPropsSet/index.js +5 -5
  88. package/es/element/EleContainer/index.js +15 -16
  89. package/es/element/EleDeviceName/Component.js +10 -10
  90. package/es/element/EleDeviceName/PropsSet/FormBindDevice/index.js +5 -5
  91. package/es/element/EleDeviceName/index.js +15 -16
  92. package/es/element/EleDeviceState/Component.js +15 -16
  93. package/es/element/EleDeviceState/PropsSet/FormBindDevice/index.js +5 -5
  94. package/es/element/EleDeviceState/index.js +15 -16
  95. package/es/element/EleDeviceUpdateTime/Component.js +10 -10
  96. package/es/element/EleDeviceUpdateTime/PropsSet/FormBindDevice/index.js +5 -5
  97. package/es/element/EleDeviceUpdateTime/index.js +15 -16
  98. package/es/element/EleFan/Component.js +11 -19
  99. package/es/element/EleFan/PropsSet/FormBindPoint/index.js +15 -15
  100. package/es/element/EleFan/PropsSet/index.js +5 -5
  101. package/es/element/EleFan/index.js +15 -16
  102. package/es/element/EleFanBySvg/PropsSet/FormBindPoint/index.js +15 -15
  103. package/es/element/EleFanBySvg/index.js +22 -27
  104. package/es/element/EleGauge/Component.js +15 -23
  105. package/es/element/EleGauge/PropsSet/OtherPropsSet/index.js +11 -11
  106. package/es/element/EleGauge/index.js +15 -16
  107. package/es/element/EleIcon/Component.js +10 -18
  108. package/es/element/EleIcon/PropsSet/IconPropsSet/index.js +5 -5
  109. package/es/element/EleIcon/index.js +15 -16
  110. package/es/element/EleImage/index.js +16 -17
  111. package/es/element/EleIndicatorLight/Component.js +10 -18
  112. package/es/element/EleIndicatorLight/PropsSet/ColorPropsSet/index.js +5 -5
  113. package/es/element/EleIndicatorLight/index.js +15 -16
  114. package/es/element/ElePointImage/Component.js +4 -12
  115. package/es/element/ElePointImage/PropsSet/ImagePropsSet/index.js +11 -11
  116. package/es/element/ElePointImage/index.js +16 -17
  117. package/es/element/ElePointList/Component.js +11 -11
  118. package/es/element/ElePointList/index.js +15 -16
  119. package/es/element/ElePointState/Component.js +10 -18
  120. package/es/element/ElePointState/PropsSet/IconPropsSet/index.js +5 -5
  121. package/es/element/ElePointState/index.js +15 -16
  122. package/es/element/ElePointValue/Component.js +10 -18
  123. package/es/element/ElePointValue/PropsSet/GlobalPropSet/index.js +11 -11
  124. package/es/element/ElePointValue/PropsSet/ValuePropsSet/index.js +11 -11
  125. package/es/element/ElePointValue/index.js +15 -16
  126. package/es/element/EleShine/Component.js +10 -18
  127. package/es/element/EleShine/PropsSet/OtherPropsSet/index.js +5 -5
  128. package/es/element/EleShine/index.js +15 -16
  129. package/es/element/EleState/index.js +17 -19
  130. package/es/element/EleSvg/index.js +15 -16
  131. package/es/element/EleSwitch/Component.js +5 -5
  132. package/es/element/EleSwitch/index.js +15 -16
  133. package/es/element/EleText/Component.js +6 -6
  134. package/es/element/EleText/index.js +16 -18
  135. package/es/element/PipeNodes/NodeBL/index.js +19 -20
  136. package/es/element/PipeNodes/NodeBR/index.js +19 -20
  137. package/es/element/PipeNodes/NodeBottom/index.js +19 -20
  138. package/es/element/PipeNodes/NodeCenter/index.js +19 -20
  139. package/es/element/PipeNodes/NodeHorizontal/index.js +19 -20
  140. package/es/element/PipeNodes/NodeLeft/index.js +19 -20
  141. package/es/element/PipeNodes/NodeRight/index.js +19 -20
  142. package/es/element/PipeNodes/NodeTL/index.js +19 -20
  143. package/es/element/PipeNodes/NodeTL.TEMP/index.js +15 -16
  144. package/es/element/PipeNodes/NodeTR/index.js +19 -20
  145. package/es/element/PipeNodes/NodeTop/index.js +19 -20
  146. package/es/element/PipeNodes/NodeVertical/index.js +19 -20
  147. package/es/element/PointCard/PointCard1/Component.js +10 -18
  148. package/es/element/PointCard/PointCard1/PropsSet/IconPropsSet/index.js +5 -5
  149. package/es/element/PointCard/PointCard1/PropsSet/PointValuePropsSet/index.js +11 -11
  150. package/es/element/PointCard/PointCard1/index.js +15 -16
  151. package/es/element/PointCard/PointCard2/Component/PointItem.js +10 -18
  152. package/es/element/PointCard/PointCard2/Component/PointItemPlaceholder.js +6 -6
  153. package/es/element/PointCard/PointCard2/Component/index.js +11 -11
  154. package/es/element/PointCard/PointCard2/PropsSet/PointItemSetDrawer/index.js +11 -12
  155. package/es/element/PointCard/PointCard2/index.js +15 -16
  156. package/es/element/PointCard/PointCard3/Component.js +10 -18
  157. package/es/element/PointCard/PointCard3/PropsSet/IconPropsSet/index.js +9 -9
  158. package/es/element/PointCard/PointCard3/index.js +15 -16
  159. package/es/element/PointCard/PointListCard/Component.js +18 -26
  160. package/es/element/PointCard/PointListCard/index.js +15 -16
  161. package/es/element/PointControl/PointControl1/Component.js +15 -23
  162. package/es/element/PointControl/PointControl1/index.js +15 -16
  163. package/es/element/PointControl/PointControl3/Component.js +15 -23
  164. package/es/element/PointControl/PointControl3/PropsSet/IconPropsSet/index.js +5 -5
  165. package/es/element/PointControl/PointControl3/index.js +15 -16
  166. package/es/element/nodeBase.js +16 -18
  167. package/es/element/reactShapeBase.js +16 -18
  168. package/es/element/type.d.ts +2 -4
  169. package/es/element/utils/handleEleEvent.js +0 -3
  170. package/es/element/utils/pointWrite.js +10 -10
  171. package/es/graph/graphCore.js +10 -20
  172. package/es/graph/tools/ToolTipTool.js +22 -23
  173. package/es/hooks/useCMDKey.js +5 -5
  174. package/es/hooks/useEleEventHandle.js +1 -7
  175. package/es/hooks/useForceUpdate.js +5 -5
  176. package/es/hooks/usePointWatch.js +5 -5
  177. package/es/models/useEditor.js +12 -12
  178. package/es/models/useElePanel.js +5 -5
  179. package/es/pages/display/Player/index.js +43 -76
  180. package/es/pages/display/components/Tools/index.js +5 -5
  181. package/es/pages/display/index.js +19 -27
  182. package/es/pages/document.ejs +1 -1
  183. package/es/pages/editor/Palette/PaletteDropdown/index.js +5 -5
  184. package/es/pages/editor/Palette/index.js +6 -6
  185. package/es/pages/editor/PanelLeft/BasicShapeList/index.js +0 -1
  186. package/es/pages/editor/PanelLeft/BasicShapeList/listData.js +8 -8
  187. package/es/pages/editor/PanelLeft/GroupManageDialog/index.js +22 -22
  188. package/es/pages/editor/PanelLeft/ImgConfigDialog/index.js +17 -17
  189. package/es/pages/editor/PanelLeft/ImgGroup/index.js +26 -16
  190. package/es/pages/editor/PanelLeft/MetaEleList/listData.js +14 -14
  191. package/es/pages/editor/PanelLeft/MineImgGroup/index.js +13 -13
  192. package/es/pages/editor/PanelLeft/PipeEleList/listData.js +11 -11
  193. package/es/pages/editor/PanelLeft/PointCardEleList/listData.js +6 -6
  194. package/es/pages/editor/PanelLeft/RecommendEleList/listData.js +4 -4
  195. package/es/pages/editor/PanelLeft/SystemImgGroupList/index.js +10 -10
  196. package/es/pages/editor/PanelLeft/index.js +5 -5
  197. package/es/pages/editor/PanelRight/components/FormBindEvent/index.js +16 -33
  198. package/es/pages/editor/PanelRight/components/FormEleBorderStyle/index.js +11 -11
  199. package/es/pages/editor/PanelRight/components/FormEleLayout/index.js +11 -11
  200. package/es/pages/editor/PanelRight/components/FormFillStyle/index.js +11 -11
  201. package/es/pages/editor/PanelRight/components/FormFontStyle/index.js +11 -11
  202. package/es/pages/editor/PanelRight/components/FormLayer/index.js +12 -12
  203. package/es/pages/editor/PanelRight/index.js +5 -5
  204. package/es/pages/editor/PanelTop/FullScreen/index.js +5 -5
  205. package/es/pages/editor/PanelTop/HistoryControl/index.js +11 -12
  206. package/es/pages/editor/PanelTop/HotKeyDescribe/index.js +1 -1
  207. package/es/pages/editor/PanelTop/Save/index.js +15 -15
  208. package/es/pages/editor/PanelTop/ZoomControl/index.js +5 -5
  209. package/es/pages/editor/PanelTop/index.js +11 -11
  210. package/es/pages/editor/index.js +6 -7
  211. package/es/services/common/Uploader.js +11 -11
  212. package/es/services/gateway/CompanyConfiguration.js +12 -12
  213. package/es/services/gateway/Device.js +26 -26
  214. package/es/services/gateway/DeviceAuthorizationApply.js +13 -13
  215. package/es/services/gateway/DeviceGroup.js +14 -14
  216. package/es/services/gateway/Gateway.js +26 -26
  217. package/es/services/gateway/GatewayGroup.js +13 -13
  218. package/es/services/gateway/Point.js +14 -14
  219. package/es/services/gateway/UserDevice.js +13 -13
  220. package/es/services/master/Func.js +10 -10
  221. package/es/services/master/Role.js +15 -15
  222. package/es/services/master/User.js +19 -19
  223. package/es/services/product/ConfigurationImg.js +12 -12
  224. package/es/services/product/ConfigurationImgGroup.js +12 -12
  225. package/es/services/product/DeviceType.js +10 -10
  226. package/es/services/product/Identifier.js +10 -10
  227. package/es/services/product/PointEnum.js +12 -12
  228. package/es/services/product/PointGroup.js +13 -13
  229. package/es/services/product/Product.js +23 -23
  230. package/es/services/product/ProductCompany.js +16 -16
  231. package/es/services/project/ProjectGateway.js +11 -11
  232. package/es/services/project/ProjectResource.js +16 -16
  233. package/es/services/project/ProjectRole.js +21 -21
  234. package/es/services/project/ProjectUserPermission.js +17 -17
  235. package/es/services/project/Subarea.js +18 -18
  236. package/es/services/project/UserSubarea.js +11 -11
  237. package/es/services/request.js +14 -20
  238. package/es/utils/auth.js +4 -2
  239. package/es/utils/events.js +6 -0
  240. package/es/utils/index.js +5 -5
  241. package/es/utils/queryToObject.js +8 -8
  242. package/package.json +1 -1
@@ -1,34 +1,33 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
11
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
3
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
9
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
12
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
13
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
14
  import React from "react";
15
15
  import { Graph } from '@antv/x6';
16
16
  import EleShineComponent from "./Component";
17
17
  import { ReactShapeBase } from "../reactShapeBase";
18
18
  export var shapeName = 'ele-shine';
19
19
  var EleShine = /*#__PURE__*/function (_ReactShapeBase) {
20
- _inherits(EleShine, _ReactShapeBase);
21
- var _super = _createSuper(EleShine);
22
20
  function EleShine() {
23
21
  var _this;
24
22
  _classCallCheck(this, EleShine);
25
23
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
26
24
  args[_key] = arguments[_key];
27
25
  }
28
- _this = _super.call.apply(_super, [this].concat(args));
26
+ _this = _callSuper(this, EleShine, [].concat(args));
29
27
  _this.shapeName = shapeName;
30
28
  return _this;
31
29
  }
30
+ _inherits(EleShine, _ReactShapeBase);
32
31
  return _createClass(EleShine);
33
32
  }(ReactShapeBase);
34
33
  EleShine.shapeName = shapeName;
@@ -1,16 +1,16 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
11
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
3
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
4
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
9
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
12
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
13
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
14
  import { NodeBase } from "../nodeBase";
15
15
  // import emitter from '@/utils/events';
16
16
  // import type { Events } from '@/utils/events';
@@ -18,20 +18,19 @@ import { NodeBase } from "../nodeBase";
18
18
 
19
19
  // import Tooltip from './Tooltip';
20
20
  var EleState = /*#__PURE__*/function (_NodeBase) {
21
- _inherits(EleState, _NodeBase);
22
- var _super = _createSuper(EleState);
23
21
  // tooltipContent = Tooltip;
24
22
 
25
23
  function EleState(metadata) {
26
24
  var _this;
27
25
  _classCallCheck(this, EleState);
28
- _this = _super.call(this, metadata);
26
+ _this = _callSuper(this, EleState, [metadata]);
29
27
  _this.shapeName = 'ele-state';
30
28
  _this.listenPointDataUpdate();
31
29
  _this.listenSelfRemoved();
32
30
  return _this;
33
31
  }
34
- _createClass(EleState, [{
32
+ _inherits(EleState, _NodeBase);
33
+ return _createClass(EleState, [{
35
34
  key: "listenPointDataUpdate",
36
35
  value: function listenPointDataUpdate() {}
37
36
  }, {
@@ -43,7 +42,6 @@ var EleState = /*#__PURE__*/function (_NodeBase) {
43
42
  return instance instanceof EleState;
44
43
  }
45
44
  }]);
46
- return EleState;
47
45
  }(NodeBase);
48
46
  EleState.shapeName = 'ele-state';
49
47
  export { EleState as default };
@@ -91,7 +89,7 @@ export var defaultConfig = {
91
89
  refWidth: '60%',
92
90
  refHeight: '60%',
93
91
  fill: 'red',
94
- xlinkHref: 'https://utopia1994.oss-cn-shanghai.aliyuncs.com/img-bed/202111021014940.svg'
92
+ xlinkHref: '/img-bed/202111021014940.svg'
95
93
  },
96
94
  label: {
97
95
  text: '温度',
@@ -1,28 +1,27 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
11
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
3
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
9
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
12
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
13
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
14
  import { Markup, Node } from '@antv/x6';
15
15
  var svg = "<svg class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" width=\"64\" height=\"64\">\n <defs>\n <style/>\n </defs>\n <path d=\"M524.05 909.55c-102.4 0-204.8-42.16-277.09-114.44S132.52 620.42 132.52 518.02s36.14-204.8 114.44-277.08S421.65 126.5 524.05 126.5s198.77 42.17 277.08 114.45 114.45 174.68 114.45 277.08-42.17 204.8-114.45 277.09-174.68 114.44-277.08 114.44zm0-740.9c-192.76 0-349.37 156.62-349.37 349.37S331.3 867.4 524.05 867.4 873.4 710.78 873.4 518.02 716.8 168.66 524.05 168.66z\" fill=\"#515151\"/>\n <path d=\"M771.01 505.98c-6.02 0-12.05-6.03-12.05-12.05 0-72.28-24.09-132.52-78.3-168.66-6.02-6.02-6.02-12.05-6.02-12.05l12.04-6.02c30.12 18.07 54.21 42.16 66.26 72.28 18.07 30.12 24.1 72.28 24.1 114.45 0 6.02-6.03 12.05-6.03 12.05zm-66.26-18.07c-6.02 0-12.04-6.03-12.04-12.05 0-36.14-12.05-72.28-42.17-84.33-6.02-6.02-6.02-12.05-6.02-12.05l12.04-6.02c30.12 18.07 54.22 60.23 48.2 102.4 6.02 12.05 6.02 12.05 0 12.05zm-102.4-174.69c-24.1-12.04-54.2-18.07-84.33-18.07v-18.07c30.12 0 60.24 6.03 90.36 18.07 6.02 0-6.03 18.07-6.03 18.07zM277.08 487.91c-6.02 0-12.04 0-12.04-6.03 0-18.07 0-36.14 6.02-48.19 12.05-60.23 54.21-114.44 108.42-150.58 6.03-6.03 12.05 0 12.05 6.02 6.02 6.02 0 12.05-6.02 12.05-48.2 24.1-84.33 78.3-96.38 132.51 0 18.07-6.02 30.12-6.02 48.2 0 6.02 0 6.02-6.03 6.02zm60.24-24.1c-6.03 0-12.05-6.02-12.05-12.05 0-12.04 0-18.07 6.02-30.11 6.03-30.12 30.12-60.24 60.24-78.3 6.02-6.03 12.05 0 12.05 6.01 6.02 6.03 0 12.05-6.03 12.05-24.1 12.05-42.16 42.17-48.19 66.26v24.1c0 6.02-6.02 12.04-12.04 12.04zM512 783.06c-48.19 0-90.35-12.05-132.52-42.17-6.02-6.02-6.02-12.04 0-12.04s12.05-6.03 12.05 0c36.14 24.1 78.3 36.14 120.47 36.14 36.14 0 66.26-6.03 96.38-24.1 6.02 0 12.04 0 12.04 6.03s0 12.04-6.02 12.04c-30.12 18.08-66.26 24.1-102.4 24.1z\" fill=\"#515151\"/>\n <path d=\"M505.98 740.9c-24.1 0-42.17-6.03-60.24-18.08-6.02-6.02-6.02-12.04 0-12.04 6.02-6.03 12.05-6.03 12.05 0 18.07 12.04 36.14 18.07 54.21 18.07 12.05 0 30.12-6.03 42.16-12.05 6.03 0 12.05 0 12.05 6.02s0 12.05-6.02 12.05c-18.07 0-36.14 6.02-54.21 6.02z\" fill=\"#515151\"/>\n <path d=\"M897.5 999.9H138.55c-54.21 0-102.4-42.16-102.4-102.4V132.53c0-54.21 42.17-102.4 102.4-102.4h764.99c54.21 0 102.4 42.16 102.4 102.4V897.5c-6.02 54.2-54.21 102.4-108.42 102.4zM138.55 78.3c-30.12 0-60.23 24.1-60.23 60.24v764.99c0 30.12 24.09 60.23 60.23 60.23h764.99c30.12 0 60.23-24.09 60.23-60.23V132.52c0-30.12-24.09-60.24-60.23-60.24-6.02 6.03-764.99 6.03-764.99 6.03z\" fill=\"#515151\"/>\n <path d=\"M596.33 307.2c30.12 96.38-42.17 204.8-78.3 216.85 18.06-138.54-36.15-120.47-54.22-174.69-6.02-30.11-6.02-72.28 42.17-84.32 42.16-12.05 72.28 0 90.35 42.16z\" fill=\"#515151\"/>\n <path d=\"M493.93 548.14l6.02-30.12c6.03-42.16 6.03-66.26 0-84.33-12.04-18.07-18.07-24.09-24.1-36.14-12.04-12.04-24.09-24.1-30.1-42.16-18.08-54.21 6.01-96.38 54.2-114.45 54.21-18.07 96.38 6.02 114.45 60.24 18.07 66.26 0 126.5-18.07 156.6-18.07 42.17-48.19 72.3-72.28 84.34l-30.12 6.02zm-12.05-204.8c6.03 12.05 12.05 18.07 24.1 24.1 6.02 12.04 18.07 24.09 30.11 54.2 0 12.05 6.03 30.12 6.03 48.2 6.02-12.05 12.04-18.08 18.07-36.15 12.05-24.09 30.12-72.28 12.05-126.49-12.05-30.12-30.12-42.16-60.24-30.12-18.07 12.05-36.14 24.1-30.12 66.26z\" fill=\"#515151\"/>\n <path d=\"M656.56 698.73c-96.37-30.12-150.58-144.57-138.54-180.7 108.43 90.35 120.47 36.13 174.69 48.18 24.09 6.03 60.23 30.12 48.18 84.33-12.04 36.14-42.16 60.24-84.33 48.19z\" fill=\"#515151\"/>\n <path d=\"M680.66 722.82c-6.02 0-18.07 0-30.12-6.02-66.26-18.07-102.4-66.26-120.47-96.38-30.12-36.14-42.16-78.3-36.14-108.42 0-6.02 6.02-12.05 12.05-12.05s12.04 0 18.07 6.03c36.14 24.1 60.23 36.14 78.3 42.16 18.07 6.02 24.1 0 36.14 0 12.05-6.02 30.12-6.02 54.22 0 54.2 18.07 78.3 54.21 60.23 108.42-6.02 42.17-36.14 66.26-72.28 66.26zm-18.07-42.16c30.12 6.02 48.19-6.02 60.23-36.14 6.03-18.07 6.03-42.17-36.14-60.24h-36.14c-12.05 6.03-36.14 6.03-60.23 0-12.05 0-30.12-6.02-48.2-18.07l18.08 36.14c18.07 24.1 48.19 60.24 102.4 78.3z\" fill=\"#515151\"/>\n <path d=\"M295.15 560.19c72.29-72.28 198.78-66.26 222.87-36.14-132.51 54.2-84.33 90.35-126.5 132.51-18.06 18.08-54.2 42.17-96.37 6.03-24.1-36.14-30.11-66.26 0-102.4z\" fill=\"#515151\"/>\n <path d=\"M343.34 698.73c-18.07 0-42.16-6.02-60.23-24.1-36.15-42.16-42.17-90.35 0-126.49 48.18-48.19 108.42-60.23 144.56-60.23 48.19-6.03 90.35 6.02 108.42 24.09 6.03 0 6.03 6.02 6.03 12.05s-6.03 12.04-12.05 18.07c-36.14 18.07-60.23 30.12-72.28 42.16-12.05 12.05-12.05 24.1-18.07 36.14-6.03 12.05-6.03 30.12-24.1 48.2-24.1 18.06-48.18 30.1-72.28 30.1zm-30.12-126.5c-24.1 24.1-18.07 48.2 0 66.26 12.05 12.05 36.14 30.12 66.26 0 6.03-12.04 12.05-18.07 12.05-30.11 6.02-18.07 12.05-36.14 30.12-54.22 12.04-12.04 24.1-24.09 42.16-30.11h-42.16c-24.1 0-72.29 12.04-108.43 48.19z\" fill=\"#515151\"/>\n <path d=\"M463.81 518.02c0 30.12 24.1 54.22 54.21 54.22s54.22-24.1 54.22-54.22-24.1-54.2-54.22-54.2c-30.11 6.02-54.2 24.09-54.2 54.2z\" fill=\"#515151\"/>\n <path d=\"M518.02 590.3c-42.16 0-72.28-30.11-72.28-72.28s30.12-72.28 72.28-72.28 72.29 36.14 72.29 72.28-30.12 72.29-72.29 72.29zm0-102.4c-18.07 0-30.11 12.05-30.11 30.12s12.04 30.12 30.11 30.12 30.12-12.05 30.12-30.12-12.05-30.11-30.12-30.11zM108.42 150.6c0 24.1 18.07 42.16 42.17 42.16s42.16-18.07 42.16-42.16-18.07-42.17-42.16-42.17c-24.1 0-42.17 18.07-42.17 42.17zm746.92 42.16c0 12.05 12.05 18.07 18.07 18.07s18.07-12.04 18.07-18.07-12.04-18.07-18.07-18.07-18.07 6.03-18.07 18.07z\" fill=\"#515151\"/>\n <path d=\"M132.52 192.75c0 12.05 12.04 18.07 18.07 18.07 12.05 0 18.07-12.04 18.07-18.07 0-12.04-12.05-18.07-18.07-18.07-12.05 0-18.07 6.03-18.07 18.07zm704.75-42.16c0 24.1 18.07 42.16 42.17 42.16 24.09 0 42.16-18.07 42.16-42.16 0-24.1-18.07-42.17-42.16-42.17-24.1 0-42.17 18.07-42.17 42.17z\" fill=\"#515151\"/>\n</svg>\n";
16
16
  var _Markup$xml2json = Markup.xml2json(svg),
17
17
  markup = _Markup$xml2json.markup,
18
18
  attrs = _Markup$xml2json.attrs;
19
19
  var EleSvg = /*#__PURE__*/function (_Node) {
20
- _inherits(EleSvg, _Node);
21
- var _super = _createSuper(EleSvg);
22
20
  function EleSvg() {
23
21
  _classCallCheck(this, EleSvg);
24
- return _super.apply(this, arguments);
22
+ return _callSuper(this, EleSvg, arguments);
25
23
  }
24
+ _inherits(EleSvg, _Node);
26
25
  return _createClass(EleSvg);
27
26
  }(Node);
28
27
  EleSvg.shapeName = 'ele-svg';
@@ -1,9 +1,9 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
2
2
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
3
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
7
  import React from "react";
8
8
  import { memo, useState, useEffect } from 'react';
9
9
  import { Tooltip } from 'antd';
@@ -1,34 +1,33 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
11
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
3
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
9
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
12
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
13
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
14
  import React from "react";
15
15
  import { Graph } from '@antv/x6';
16
16
  import EleSwitchComponent from "./Component";
17
17
  import { ReactShapeBase } from "../reactShapeBase";
18
18
  export var shapeName = 'ele-switch';
19
19
  var EleSwitch = /*#__PURE__*/function (_ReactShapeBase) {
20
- _inherits(EleSwitch, _ReactShapeBase);
21
- var _super = _createSuper(EleSwitch);
22
20
  function EleSwitch() {
23
21
  var _this;
24
22
  _classCallCheck(this, EleSwitch);
25
23
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
26
24
  args[_key] = arguments[_key];
27
25
  }
28
- _this = _super.call.apply(_super, [this].concat(args));
26
+ _this = _callSuper(this, EleSwitch, [].concat(args));
29
27
  _this.shapeName = shapeName;
30
28
  return _this;
31
29
  }
30
+ _inherits(EleSwitch, _ReactShapeBase);
32
31
  return _createClass(EleSwitch);
33
32
  }(ReactShapeBase);
34
33
  EleSwitch.shapeName = shapeName;
@@ -1,9 +1,9 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import React from "react";
8
8
  import { memo } from 'react';
9
9
  import { reactShapeNodeAreEqual } from "../utils";
@@ -1,35 +1,34 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
11
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
3
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
4
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
9
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
12
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
13
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
14
  import React from "react";
15
15
  import { Graph } from '@antv/x6';
16
16
  import EleTextComponent from "./Component";
17
17
  import { ReactShapeBase } from "../reactShapeBase";
18
18
  var EleText = /*#__PURE__*/function (_ReactShapeBase) {
19
- _inherits(EleText, _ReactShapeBase);
20
- var _super = _createSuper(EleText);
21
19
  function EleText() {
22
20
  var _this;
23
21
  _classCallCheck(this, EleText);
24
22
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
25
23
  args[_key] = arguments[_key];
26
24
  }
27
- _this = _super.call.apply(_super, [this].concat(args));
25
+ _this = _callSuper(this, EleText, [].concat(args));
28
26
  _this.shapeName = 'ele-text';
29
27
  _this.textEditable = true;
30
28
  return _this;
31
29
  }
32
- _createClass(EleText, [{
30
+ _inherits(EleText, _ReactShapeBase);
31
+ return _createClass(EleText, [{
33
32
  key: "setText",
34
33
  value: function setText(cell, text, view) {
35
34
  view.container.querySelector('.ele-text-wrap').style.display = 'block';
@@ -47,7 +46,6 @@ var EleText = /*#__PURE__*/function (_ReactShapeBase) {
47
46
  return this.getData().textContent || '双击输入';
48
47
  }
49
48
  }]);
50
- return EleText;
51
49
  }(ReactShapeBase);
52
50
  EleText.shapeName = 'ele-text';
53
51
  /** 注册的 react 组件名称 */
@@ -1,34 +1,33 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
6
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
14
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
15
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
6
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
10
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
12
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
13
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
15
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
16
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
17
17
  import { Node } from '@antv/x6';
18
18
  import portStyle from "../portStyle";
19
19
  var ElePipeBL = /*#__PURE__*/function (_Node) {
20
- _inherits(ElePipeBL, _Node);
21
- var _super = _createSuper(ElePipeBL);
22
20
  function ElePipeBL() {
23
21
  var _this;
24
22
  _classCallCheck(this, ElePipeBL);
25
23
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
26
24
  args[_key] = arguments[_key];
27
25
  }
28
- _this = _super.call.apply(_super, [this].concat(args));
26
+ _this = _callSuper(this, ElePipeBL, [].concat(args));
29
27
  _this.shapeName = 'ele-pipe-bl';
30
28
  return _this;
31
29
  }
30
+ _inherits(ElePipeBL, _Node);
32
31
  return _createClass(ElePipeBL);
33
32
  }(Node);
34
33
  ElePipeBL.shapeName = 'ele-pipe-bl';
@@ -43,7 +42,7 @@ export var defaultConfig = {
43
42
  }],
44
43
  attrs: {
45
44
  body: {
46
- xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/be42df157707426fb53360693eae8094.svg',
45
+ xlinkHref: '/生产/组态图片/图片元素/be42df157707426fb53360693eae8094.svg',
47
46
  refWidth: '100%',
48
47
  refHeight: '100%'
49
48
  }