coolcare-lite-scada-component 1.0.5 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/app.js +5 -5
- package/es/components/BoxShadowPicker/index.js +11 -11
- package/es/components/ColorPicker/index.js +11 -11
- package/es/components/DeviceSelect/DeviceTable.js +18 -19
- package/es/components/DeviceSelect/index.js +10 -10
- package/es/components/DialogExpression/ImagePicker/index.js +5 -5
- package/es/components/DialogExpression/index.js +13 -13
- package/es/components/DialogHistory/index.js +12 -12
- package/es/components/DialogIconPicker/index.js +5 -5
- package/es/components/DialogImagePicker/Gallery/index.js +14 -14
- package/es/components/DialogImagePicker/GroupPanel/index.js +10 -10
- package/es/components/DialogImagePicker/index.js +5 -5
- package/es/components/DialogPointWrite/PointItem.js +10 -10
- package/es/components/DialogPointWrite/index.js +11 -11
- package/es/components/ECharts/index.js +7 -7
- package/es/components/FontFamilySelect/list.js +0 -1
- package/es/components/FontStyleForm/index.js +11 -11
- package/es/components/FormBindPoint/FreedomScene.js +14 -14
- package/es/components/FormBindPoint/ProductionOrDeviceScene.js +14 -14
- package/es/components/FormIconSelect/index.js +5 -5
- package/es/components/FormNodeData/index.js +9 -10
- package/es/components/FormNodeData/utils/valueUtil.js +1 -1
- package/es/components/Icon/index.js +1 -2
- package/es/components/ImageUploader/index.js +16 -17
- package/es/components/LockBtn/index.js +5 -5
- package/es/components/Margin_Padding/index.js +8 -8
- package/es/components/ModalFanDevicePoint/index.js +12 -12
- package/es/components/MouseTooltip/index.js +11 -11
- package/es/components/PaddingPicker/index.js +11 -11
- package/es/components/PointInfoTip/index.js +15 -15
- package/es/components/PointSelect/DevicePointTable.js +5 -5
- package/es/components/PointSelect/ProductPointTable.js +5 -5
- package/es/components/PointSelect/index.js +13 -13
- package/es/components/Prompt/index.js +15 -15
- package/es/components/SliderWithInput/index.js +5 -5
- package/es/components/Switch/index.js +3 -3
- package/es/edge/EdgeLinePort/PropsSet/Flow.js +6 -6
- package/es/edge/EdgeLinePort/PropsSet/Line.js +6 -6
- package/es/edge/EdgeLinePort/PropsSet/Marker.js +6 -6
- package/es/edge/EdgeLinePort/index.js +15 -16
- package/es/edge/EdgePipe/PropsSet/Flow.js +6 -6
- package/es/edge/EdgePipe/PropsSet/Pipe.js +6 -6
- package/es/edge/EdgePipe/index.js +16 -18
- package/es/element/BasicShape/Circle/index.js +16 -18
- package/es/element/BasicShape/CommentBox/index.js +16 -18
- package/es/element/BasicShape/CommentBox2/index.js +16 -18
- package/es/element/BasicShape/Ellipse/index.js +16 -18
- package/es/element/BasicShape/Heart/index.js +16 -18
- package/es/element/BasicShape/Lightning/index.js +16 -18
- package/es/element/BasicShape/PropsForm/index.js +5 -5
- package/es/element/BasicShape/Rectangle/index.js +16 -18
- package/es/element/BasicShape/Star/index.js +16 -18
- package/es/element/BorderBox/BorderBox1/index.js +15 -16
- package/es/element/BorderBox/BorderBox10/Component.js +6 -6
- package/es/element/BorderBox/BorderBox10/index.js +15 -16
- package/es/element/BorderBox/BorderBox12/index.js +15 -16
- package/es/element/BorderBox/BorderBox13/index.js +15 -16
- package/es/element/BorderBox/BorderBox2/index.js +15 -16
- package/es/element/BorderBox/BorderBox3/index.js +15 -16
- package/es/element/BorderBox/BorderBox4/index.js +15 -16
- package/es/element/BorderBox/BorderBox5/index.js +15 -16
- package/es/element/BorderBox/BorderBox6/index.js +15 -16
- package/es/element/BorderBox/BorderBox7/Component.js +6 -6
- package/es/element/BorderBox/BorderBox7/index.js +15 -16
- package/es/element/BorderBox/BorderBox8/Component.js +5 -5
- package/es/element/BorderBox/BorderBox8/index.js +15 -16
- package/es/element/BorderBox/BorderBox9/Component.js +5 -5
- package/es/element/BorderBox/BorderBox9/index.js +15 -16
- package/es/element/BorderBox/PropsSet/ColorSet.js +5 -5
- package/es/element/Decoration/Decoration1/Component.js +5 -5
- package/es/element/Decoration/Decoration1/index.js +15 -16
- package/es/element/Decoration/Decoration10/index.js +15 -16
- package/es/element/Decoration/Decoration2/index.js +15 -16
- package/es/element/Decoration/Decoration3/Component.js +5 -5
- package/es/element/Decoration/Decoration3/index.js +15 -16
- package/es/element/Decoration/Decoration4/index.js +15 -16
- package/es/element/Decoration/Decoration5/index.js +15 -16
- package/es/element/Decoration/Decoration6/Component.js +11 -11
- package/es/element/Decoration/Decoration6/index.js +15 -16
- package/es/element/Decoration/Decoration8/Component.js +5 -5
- package/es/element/Decoration/Decoration8/index.js +15 -16
- package/es/element/Decoration/PropsSet/ColorSet.js +5 -5
- package/es/element/EleButton/Component.js +6 -6
- package/es/element/EleButton/index.js +15 -16
- package/es/element/EleClock/Component.js +11 -11
- package/es/element/EleClock/index.js +15 -16
- package/es/element/EleContainer/PropsSet/OtherPropsSet/index.js +5 -5
- package/es/element/EleContainer/index.js +15 -16
- package/es/element/EleDeviceName/Component.js +10 -10
- package/es/element/EleDeviceName/PropsSet/FormBindDevice/index.js +5 -5
- package/es/element/EleDeviceName/index.js +15 -16
- package/es/element/EleDeviceState/Component.js +15 -16
- package/es/element/EleDeviceState/PropsSet/FormBindDevice/index.js +5 -5
- package/es/element/EleDeviceState/index.js +15 -16
- package/es/element/EleDeviceUpdateTime/Component.js +10 -10
- package/es/element/EleDeviceUpdateTime/PropsSet/FormBindDevice/index.js +5 -5
- package/es/element/EleDeviceUpdateTime/index.js +15 -16
- package/es/element/EleFan/Component.js +7 -7
- package/es/element/EleFan/PropsSet/FormBindPoint/index.js +15 -15
- package/es/element/EleFan/PropsSet/index.js +5 -5
- package/es/element/EleFan/index.js +15 -16
- package/es/element/EleFanBySvg/PropsSet/FormBindPoint/index.js +15 -15
- package/es/element/EleFanBySvg/index.js +22 -27
- package/es/element/EleGauge/Component.js +11 -11
- package/es/element/EleGauge/PropsSet/OtherPropsSet/index.js +11 -11
- package/es/element/EleGauge/index.js +15 -16
- package/es/element/EleIcon/Component.js +6 -6
- package/es/element/EleIcon/PropsSet/IconPropsSet/index.js +5 -5
- package/es/element/EleIcon/index.js +15 -16
- package/es/element/EleImage/index.js +16 -17
- package/es/element/EleIndicatorLight/Component.js +6 -6
- package/es/element/EleIndicatorLight/PropsSet/ColorPropsSet/index.js +5 -5
- package/es/element/EleIndicatorLight/index.js +15 -16
- package/es/element/ElePointImage/PropsSet/ImagePropsSet/index.js +11 -11
- package/es/element/ElePointImage/index.js +15 -16
- package/es/element/ElePointList/Component.js +11 -11
- package/es/element/ElePointList/index.js +15 -16
- package/es/element/ElePointState/Component.js +6 -6
- package/es/element/ElePointState/PropsSet/IconPropsSet/index.js +5 -5
- package/es/element/ElePointState/index.js +15 -16
- package/es/element/ElePointValue/Component.js +6 -6
- package/es/element/ElePointValue/PropsSet/GlobalPropSet/index.js +11 -11
- package/es/element/ElePointValue/PropsSet/ValuePropsSet/index.js +11 -11
- package/es/element/ElePointValue/index.js +15 -16
- package/es/element/EleShine/Component.js +6 -6
- package/es/element/EleShine/PropsSet/OtherPropsSet/index.js +5 -5
- package/es/element/EleShine/index.js +15 -16
- package/es/element/EleState/index.js +17 -19
- package/es/element/EleSvg/index.js +15 -16
- package/es/element/EleSwitch/Component.js +5 -5
- package/es/element/EleSwitch/index.js +15 -16
- package/es/element/EleText/Component.js +6 -6
- package/es/element/EleText/index.js +16 -18
- package/es/element/PipeNodes/NodeBL/index.js +19 -20
- package/es/element/PipeNodes/NodeBR/index.js +19 -20
- package/es/element/PipeNodes/NodeBottom/index.js +19 -20
- package/es/element/PipeNodes/NodeCenter/index.js +19 -20
- package/es/element/PipeNodes/NodeHorizontal/index.js +19 -20
- package/es/element/PipeNodes/NodeLeft/index.js +19 -20
- package/es/element/PipeNodes/NodeRight/index.js +19 -20
- package/es/element/PipeNodes/NodeTL/index.js +19 -20
- package/es/element/PipeNodes/NodeTL.TEMP/index.js +15 -16
- package/es/element/PipeNodes/NodeTR/index.js +19 -20
- package/es/element/PipeNodes/NodeTop/index.js +19 -20
- package/es/element/PipeNodes/NodeVertical/index.js +19 -20
- package/es/element/PointCard/PointCard1/Component.js +6 -6
- package/es/element/PointCard/PointCard1/PropsSet/IconPropsSet/index.js +5 -5
- package/es/element/PointCard/PointCard1/PropsSet/PointValuePropsSet/index.js +11 -11
- package/es/element/PointCard/PointCard1/index.js +15 -16
- package/es/element/PointCard/PointCard2/Component/PointItem.js +6 -6
- package/es/element/PointCard/PointCard2/Component/PointItemPlaceholder.js +6 -6
- package/es/element/PointCard/PointCard2/Component/index.js +11 -11
- package/es/element/PointCard/PointCard2/PropsSet/PointItemSetDrawer/index.js +11 -12
- package/es/element/PointCard/PointCard2/index.js +15 -16
- package/es/element/PointCard/PointCard3/Component.js +6 -6
- package/es/element/PointCard/PointCard3/PropsSet/IconPropsSet/index.js +9 -9
- package/es/element/PointCard/PointCard3/index.js +15 -16
- package/es/element/PointCard/PointListCard/Component.js +14 -14
- package/es/element/PointCard/PointListCard/index.js +15 -16
- package/es/element/PointControl/PointControl1/Component.js +11 -11
- package/es/element/PointControl/PointControl1/index.js +15 -16
- package/es/element/PointControl/PointControl3/Component.js +11 -11
- package/es/element/PointControl/PointControl3/PropsSet/IconPropsSet/index.js +5 -5
- package/es/element/PointControl/PointControl3/index.js +15 -16
- package/es/element/nodeBase.js +16 -18
- package/es/element/reactShapeBase.js +16 -18
- package/es/element/utils/pointWrite.js +10 -10
- package/es/graph/graphCore.js +10 -20
- package/es/graph/tools/ToolTipTool.js +22 -23
- package/es/hooks/useCMDKey.js +5 -5
- package/es/hooks/useForceUpdate.js +5 -5
- package/es/hooks/usePointWatch.js +5 -5
- package/es/models/useEditor.js +12 -12
- package/es/models/useElePanel.js +5 -5
- package/es/pages/display/Player/index.js +24 -25
- package/es/pages/display/components/Tools/index.js +5 -5
- package/es/pages/display/index.js +12 -12
- package/es/pages/document.ejs +1 -1
- package/es/pages/editor/Palette/PaletteDropdown/index.js +5 -5
- package/es/pages/editor/Palette/index.js +6 -6
- package/es/pages/editor/PanelLeft/BasicShapeList/index.js +0 -1
- package/es/pages/editor/PanelLeft/BasicShapeList/listData.js +8 -8
- package/es/pages/editor/PanelLeft/GroupManageDialog/index.js +22 -22
- package/es/pages/editor/PanelLeft/ImgConfigDialog/index.js +17 -17
- package/es/pages/editor/PanelLeft/ImgGroup/index.js +15 -15
- package/es/pages/editor/PanelLeft/MetaEleList/listData.js +14 -14
- package/es/pages/editor/PanelLeft/MineImgGroup/index.js +13 -13
- package/es/pages/editor/PanelLeft/PipeEleList/listData.js +11 -11
- package/es/pages/editor/PanelLeft/PointCardEleList/listData.js +6 -6
- package/es/pages/editor/PanelLeft/RecommendEleList/listData.js +4 -4
- package/es/pages/editor/PanelLeft/SystemImgGroupList/index.js +10 -10
- package/es/pages/editor/PanelLeft/index.js +5 -5
- package/es/pages/editor/PanelRight/components/FormBindEvent/index.js +6 -6
- package/es/pages/editor/PanelRight/components/FormEleBorderStyle/index.js +11 -11
- package/es/pages/editor/PanelRight/components/FormEleLayout/index.js +11 -11
- package/es/pages/editor/PanelRight/components/FormFillStyle/index.js +11 -11
- package/es/pages/editor/PanelRight/components/FormFontStyle/index.js +11 -11
- package/es/pages/editor/PanelRight/components/FormLayer/index.js +12 -12
- package/es/pages/editor/PanelRight/index.js +5 -5
- package/es/pages/editor/PanelTop/FullScreen/index.js +5 -5
- package/es/pages/editor/PanelTop/HistoryControl/index.js +11 -12
- package/es/pages/editor/PanelTop/Save/index.js +15 -15
- package/es/pages/editor/PanelTop/ZoomControl/index.js +5 -5
- package/es/pages/editor/PanelTop/index.js +11 -11
- package/es/pages/editor/index.js +6 -7
- package/es/services/common/Uploader.js +10 -10
- package/es/services/gateway/CompanyConfiguration.js +12 -12
- package/es/services/gateway/Device.js +26 -26
- package/es/services/gateway/DeviceAuthorizationApply.js +13 -13
- package/es/services/gateway/DeviceGroup.js +14 -14
- package/es/services/gateway/Gateway.js +26 -26
- package/es/services/gateway/GatewayGroup.js +13 -13
- package/es/services/gateway/Point.js +14 -14
- package/es/services/gateway/UserDevice.js +13 -13
- package/es/services/master/Func.js +10 -10
- package/es/services/master/Role.js +15 -15
- package/es/services/master/User.js +19 -19
- package/es/services/product/ConfigurationImg.js +12 -12
- package/es/services/product/ConfigurationImgGroup.js +12 -12
- package/es/services/product/DeviceType.js +10 -10
- package/es/services/product/Identifier.js +10 -10
- package/es/services/product/PointEnum.js +12 -12
- package/es/services/product/PointGroup.js +13 -13
- package/es/services/product/Product.js +23 -23
- package/es/services/product/ProductCompany.js +16 -16
- package/es/services/project/ProjectGateway.js +11 -11
- package/es/services/project/ProjectResource.js +16 -16
- package/es/services/project/ProjectRole.js +21 -21
- package/es/services/project/ProjectUserPermission.js +17 -17
- package/es/services/project/Subarea.js +18 -18
- package/es/services/project/UserSubarea.js +11 -11
- package/es/services/request.js +14 -20
- package/es/utils/auth.js +4 -2
- package/es/utils/events.js +6 -0
- package/es/utils/index.js +5 -5
- package/es/utils/queryToObject.js +8 -8
- package/package.json +2 -1
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function _defineProperties(
|
|
3
|
-
function _createClass(
|
|
4
|
-
function _toPropertyKey(
|
|
5
|
-
function _toPrimitive(
|
|
6
|
-
function _classCallCheck(
|
|
7
|
-
function
|
|
8
|
-
function
|
|
9
|
-
function
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function
|
|
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 ElePointStateComponent from "./Component";
|
|
17
17
|
import { ReactShapeBase } from "../reactShapeBase";
|
|
18
18
|
export var shapeName = 'ele-point-state';
|
|
19
19
|
var ElePointState = /*#__PURE__*/function (_ReactShapeBase) {
|
|
20
|
-
_inherits(ElePointState, _ReactShapeBase);
|
|
21
|
-
var _super = _createSuper(ElePointState);
|
|
22
20
|
function ElePointState() {
|
|
23
21
|
var _this;
|
|
24
22
|
_classCallCheck(this, ElePointState);
|
|
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 =
|
|
26
|
+
_this = _callSuper(this, ElePointState, [].concat(args));
|
|
29
27
|
_this.shapeName = shapeName;
|
|
30
28
|
return _this;
|
|
31
29
|
}
|
|
30
|
+
_inherits(ElePointState, _ReactShapeBase);
|
|
32
31
|
return _createClass(ElePointState);
|
|
33
32
|
}(ReactShapeBase);
|
|
34
33
|
ElePointState.shapeName = shapeName;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
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 { Tooltip } from 'antd';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
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
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
8
|
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."); }
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
9
|
+
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; } }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
13
|
import React from "react";
|
|
14
14
|
import { Form, Select } from 'antd';
|
|
15
15
|
import { useModel } from 'umi';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
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
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
8
|
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."); }
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
9
|
+
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; } }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
13
|
import React from "react";
|
|
14
14
|
import { Collapse, Form } from 'antd';
|
|
15
15
|
import { useModel } from 'umi';
|
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function _defineProperties(
|
|
3
|
-
function _createClass(
|
|
4
|
-
function _toPropertyKey(
|
|
5
|
-
function _toPrimitive(
|
|
6
|
-
function _classCallCheck(
|
|
7
|
-
function
|
|
8
|
-
function
|
|
9
|
-
function
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function
|
|
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 ElePointValueComponent from "./Component";
|
|
17
17
|
import { ReactShapeBase } from "../reactShapeBase";
|
|
18
18
|
export var shapeName = 'ele-point-value';
|
|
19
19
|
var ElePointValue = /*#__PURE__*/function (_ReactShapeBase) {
|
|
20
|
-
_inherits(ElePointValue, _ReactShapeBase);
|
|
21
|
-
var _super = _createSuper(ElePointValue);
|
|
22
20
|
function ElePointValue() {
|
|
23
21
|
var _this;
|
|
24
22
|
_classCallCheck(this, ElePointValue);
|
|
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 =
|
|
26
|
+
_this = _callSuper(this, ElePointValue, [].concat(args));
|
|
29
27
|
_this.shapeName = shapeName;
|
|
30
28
|
return _this;
|
|
31
29
|
}
|
|
30
|
+
_inherits(ElePointValue, _ReactShapeBase);
|
|
32
31
|
return _createClass(ElePointValue);
|
|
33
32
|
}(ReactShapeBase);
|
|
34
33
|
ElePointValue.shapeName = shapeName;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
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 { Tooltip } from 'antd';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
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(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
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 { Form } from 'antd';
|
|
9
9
|
import { useState } from 'react';
|
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function _defineProperties(
|
|
3
|
-
function _createClass(
|
|
4
|
-
function _toPropertyKey(
|
|
5
|
-
function _toPrimitive(
|
|
6
|
-
function _classCallCheck(
|
|
7
|
-
function
|
|
8
|
-
function
|
|
9
|
-
function
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function
|
|
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 =
|
|
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(
|
|
2
|
-
function _classCallCheck(
|
|
3
|
-
function _defineProperties(
|
|
4
|
-
function _createClass(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function
|
|
8
|
-
function
|
|
9
|
-
function
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function
|
|
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 =
|
|
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
|
-
|
|
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: '
|
|
92
|
+
xlinkHref: '/img-bed/202111021014940.svg'
|
|
95
93
|
},
|
|
96
94
|
label: {
|
|
97
95
|
text: '温度',
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function _defineProperties(
|
|
3
|
-
function _createClass(
|
|
4
|
-
function _toPropertyKey(
|
|
5
|
-
function _toPrimitive(
|
|
6
|
-
function _classCallCheck(
|
|
7
|
-
function
|
|
8
|
-
function
|
|
9
|
-
function
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function
|
|
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
|
|
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(
|
|
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(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
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';
|