coolcare-lite-scada-component 2.0.10 → 2.0.12
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 +21 -11
- 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 +10 -18
- 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 +11 -19
- 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 +15 -23
- package/es/element/EleGauge/PropsSet/OtherPropsSet/index.js +11 -11
- package/es/element/EleGauge/index.js +15 -16
- package/es/element/EleIcon/Component.js +10 -18
- 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 +10 -18
- package/es/element/EleIndicatorLight/PropsSet/ColorPropsSet/index.js +5 -5
- package/es/element/EleIndicatorLight/index.js +15 -16
- package/es/element/ElePointImage/Component.js +4 -12
- package/es/element/ElePointImage/PropsSet/ImagePropsSet/index.js +11 -11
- package/es/element/ElePointImage/index.js +16 -17
- package/es/element/ElePointList/Component.js +11 -11
- package/es/element/ElePointList/index.js +15 -16
- package/es/element/ElePointState/Component.js +10 -18
- package/es/element/ElePointState/PropsSet/IconPropsSet/index.js +5 -5
- package/es/element/ElePointState/index.js +15 -16
- package/es/element/ElePointValue/Component.js +10 -18
- 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 +10 -18
- 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 +10 -18
- 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 +10 -18
- 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 +10 -18
- 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 +18 -26
- package/es/element/PointCard/PointListCard/index.js +15 -16
- package/es/element/PointControl/PointControl1/Component.js +15 -23
- package/es/element/PointControl/PointControl1/index.js +15 -16
- package/es/element/PointControl/PointControl3/Component.js +15 -23
- 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/type.d.ts +2 -4
- package/es/element/utils/handleEleEvent.js +0 -3
- 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/useEleEventHandle.js +1 -7
- 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 +43 -76
- package/es/pages/display/components/Tools/index.js +5 -5
- package/es/pages/display/index.js +20 -28
- 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 +26 -16
- 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 +16 -33
- 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/HotKeyDescribe/index.js +1 -1
- 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 +11 -11
- 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 +1 -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 ElePointCard1Component from "./Component";
|
|
17
17
|
import { ReactShapeBase } from "../../reactShapeBase";
|
|
18
18
|
export var shapeName = 'ele-point-card';
|
|
19
19
|
var ElePointCard1 = /*#__PURE__*/function (_ReactShapeBase) {
|
|
20
|
-
_inherits(ElePointCard1, _ReactShapeBase);
|
|
21
|
-
var _super = _createSuper(ElePointCard1);
|
|
22
20
|
function ElePointCard1() {
|
|
23
21
|
var _this;
|
|
24
22
|
_classCallCheck(this, ElePointCard1);
|
|
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, ElePointCard1, [].concat(args));
|
|
29
27
|
_this.shapeName = shapeName;
|
|
30
28
|
return _this;
|
|
31
29
|
}
|
|
30
|
+
_inherits(ElePointCard1, _ReactShapeBase);
|
|
32
31
|
return _createClass(ElePointCard1);
|
|
33
32
|
}(ReactShapeBase);
|
|
34
33
|
ElePointCard1.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';
|
|
@@ -58,18 +58,10 @@ var PointItem = function PointItem(_ref) {
|
|
|
58
58
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
59
59
|
title: tooltipTitle
|
|
60
60
|
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
onClick:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return eventHandles.current.onContextMenu(e);
|
|
66
|
-
},
|
|
67
|
-
onMouseEnter: function onMouseEnter(e) {
|
|
68
|
-
return eventHandles.current.onMouseEnter(e);
|
|
69
|
-
},
|
|
70
|
-
onMouseLeave: function onMouseLeave(e) {
|
|
71
|
-
return eventHandles.current.onMouseLeave(e);
|
|
72
|
-
},
|
|
61
|
+
onClick: eventHandles.onClick,
|
|
62
|
+
onContextMenu: eventHandles.onContextMenu,
|
|
63
|
+
onMouseEnter: eventHandles.onMouseEnter,
|
|
64
|
+
onMouseLeave: eventHandles.onMouseLeave,
|
|
73
65
|
className: styles.item,
|
|
74
66
|
style: _objectSpread({}, style)
|
|
75
67
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -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 Icon from "../../../../components/Icon";
|
|
9
9
|
import styles from "./index.css";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _toConsumableArray(
|
|
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 _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
8
8
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _iterableToArray(
|
|
11
|
-
function _arrayWithoutHoles(
|
|
12
|
-
function _arrayLikeToArray(
|
|
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 _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
11
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
12
|
+
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; }
|
|
13
13
|
import React from "react";
|
|
14
14
|
import { memo } from 'react';
|
|
15
15
|
import { reactShapeNodeAreEqual } from "../../../utils";
|
|
@@ -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 { useState } from 'react';
|
|
15
15
|
import { Collapse, InputNumber, Input, Drawer } from 'antd';
|
|
@@ -171,5 +171,4 @@ var PointItemSetDrawer = function PointItemSetDrawer(_ref) {
|
|
|
171
171
|
// </Popover>
|
|
172
172
|
;
|
|
173
173
|
};
|
|
174
|
-
|
|
175
174
|
export default PointItemSetDrawer;
|
|
@@ -1,16 +1,16 @@
|
|
|
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 ElePointCard2Component from "./Component";
|
|
@@ -21,18 +21,17 @@ export var defaultIconColor = '#323233';
|
|
|
21
21
|
export var defaultIconBgColor = '#EBEDF1';
|
|
22
22
|
export var defaultIconName = 'zhileng';
|
|
23
23
|
var ElePointCard2 = /*#__PURE__*/function (_ReactShapeBase) {
|
|
24
|
-
_inherits(ElePointCard2, _ReactShapeBase);
|
|
25
|
-
var _super = _createSuper(ElePointCard2);
|
|
26
24
|
function ElePointCard2() {
|
|
27
25
|
var _this;
|
|
28
26
|
_classCallCheck(this, ElePointCard2);
|
|
29
27
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
30
28
|
args[_key] = arguments[_key];
|
|
31
29
|
}
|
|
32
|
-
_this =
|
|
30
|
+
_this = _callSuper(this, ElePointCard2, [].concat(args));
|
|
33
31
|
_this.shapeName = shapeName;
|
|
34
32
|
return _this;
|
|
35
33
|
}
|
|
34
|
+
_inherits(ElePointCard2, _ReactShapeBase);
|
|
36
35
|
return _createClass(ElePointCard2);
|
|
37
36
|
}(ReactShapeBase);
|
|
38
37
|
ElePointCard2.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';
|
|
@@ -78,20 +78,12 @@ var ElePointCard3Component = function ElePointCard3Component(_ref) {
|
|
|
78
78
|
title: tooltipTitle
|
|
79
79
|
}, /*#__PURE__*/React.createElement("div", {
|
|
80
80
|
className: "".concat(styles['ele-point-card3']),
|
|
81
|
-
onClick:
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
onContextMenu: function onContextMenu(e) {
|
|
85
|
-
return eventHandles.current.onContextMenu(e);
|
|
86
|
-
}
|
|
81
|
+
onClick: eventHandles.onClick,
|
|
82
|
+
onContextMenu: eventHandles.onContextMenu
|
|
87
83
|
// className=""
|
|
88
84
|
,
|
|
89
|
-
onMouseEnter:
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
onMouseLeave: function onMouseLeave(e) {
|
|
93
|
-
return eventHandles.current.onMouseLeave(e);
|
|
94
|
-
},
|
|
85
|
+
onMouseEnter: eventHandles.onMouseEnter,
|
|
86
|
+
onMouseLeave: eventHandles.onMouseLeave,
|
|
95
87
|
style: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, payload === null || payload === void 0 ? void 0 : payload.fontStyles), payload === null || payload === void 0 ? void 0 : payload.borderStyles), payload === null || payload === void 0 ? void 0 : payload.fillStyles), payload === null || payload === void 0 ? void 0 : payload.margin_padding)
|
|
96
88
|
}, /*#__PURE__*/React.createElement("div", {
|
|
97
89
|
className: styles.iconWrap,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function _defineProperty(
|
|
3
|
-
function _toPropertyKey(
|
|
4
|
-
function _toPrimitive(
|
|
5
|
-
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 _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; }
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
4
|
+
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); }
|
|
5
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
6
6
|
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."); }
|
|
7
|
-
function _unsupportedIterableToArray(
|
|
8
|
-
function _arrayLikeToArray(
|
|
9
|
-
function _iterableToArrayLimit(
|
|
10
|
-
function _arrayWithHoles(
|
|
7
|
+
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; } }
|
|
8
|
+
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; }
|
|
9
|
+
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; } }
|
|
10
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
11
11
|
import React from "react";
|
|
12
12
|
import { Form, Button, InputNumber } from 'antd';
|
|
13
13
|
import { useState } from 'react';
|
|
@@ -1,16 +1,16 @@
|
|
|
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 ElePointCard3Component from "./Component";
|
|
@@ -18,18 +18,17 @@ import { ReactShapeBase } from "../../reactShapeBase";
|
|
|
18
18
|
export var shapeName = 'ele-point-card3';
|
|
19
19
|
export var defaultIconSize = 30;
|
|
20
20
|
var ElePointCard3 = /*#__PURE__*/function (_ReactShapeBase) {
|
|
21
|
-
_inherits(ElePointCard3, _ReactShapeBase);
|
|
22
|
-
var _super = _createSuper(ElePointCard3);
|
|
23
21
|
function ElePointCard3() {
|
|
24
22
|
var _this;
|
|
25
23
|
_classCallCheck(this, ElePointCard3);
|
|
26
24
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
27
25
|
args[_key] = arguments[_key];
|
|
28
26
|
}
|
|
29
|
-
_this =
|
|
27
|
+
_this = _callSuper(this, ElePointCard3, [].concat(args));
|
|
30
28
|
_this.shapeName = shapeName;
|
|
31
29
|
return _this;
|
|
32
30
|
}
|
|
31
|
+
_inherits(ElePointCard3, _ReactShapeBase);
|
|
33
32
|
return _createClass(ElePointCard3);
|
|
34
33
|
}(ReactShapeBase);
|
|
35
34
|
ElePointCard3.shapeName = shapeName;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function _toConsumableArray(
|
|
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 _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
3
3
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _iterableToArray(
|
|
5
|
-
function _arrayWithoutHoles(
|
|
6
|
-
function _slicedToArray(
|
|
4
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
7
7
|
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."); }
|
|
8
|
-
function _unsupportedIterableToArray(
|
|
9
|
-
function _arrayLikeToArray(
|
|
10
|
-
function _iterableToArrayLimit(
|
|
11
|
-
function _arrayWithHoles(
|
|
12
|
-
function ownKeys(
|
|
13
|
-
function _objectSpread(
|
|
14
|
-
function _defineProperty(
|
|
15
|
-
function _toPropertyKey(
|
|
16
|
-
function _toPrimitive(
|
|
8
|
+
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; } }
|
|
9
|
+
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; }
|
|
10
|
+
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; } }
|
|
11
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
12
|
+
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; }
|
|
13
|
+
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; }
|
|
14
|
+
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; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
+
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); }
|
|
17
17
|
import React from "react";
|
|
18
18
|
import { memo, useState, useEffect, useRef } from 'react';
|
|
19
19
|
import { Tooltip } from 'antd';
|
|
@@ -47,18 +47,10 @@ var PointItem = function PointItem(_ref2) {
|
|
|
47
47
|
point: point
|
|
48
48
|
}) : false
|
|
49
49
|
}, /*#__PURE__*/React.createElement("div", {
|
|
50
|
-
onClick:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return eventHandles.current.onContextMenu(e);
|
|
55
|
-
},
|
|
56
|
-
onMouseEnter: function onMouseEnter(e) {
|
|
57
|
-
return eventHandles.current.onMouseEnter(e);
|
|
58
|
-
},
|
|
59
|
-
onMouseLeave: function onMouseLeave(e) {
|
|
60
|
-
return eventHandles.current.onMouseLeave(e);
|
|
61
|
-
},
|
|
50
|
+
onClick: eventHandles.onClick,
|
|
51
|
+
onContextMenu: eventHandles.onContextMenu,
|
|
52
|
+
onMouseEnter: eventHandles.onMouseEnter,
|
|
53
|
+
onMouseLeave: eventHandles.onMouseLeave,
|
|
62
54
|
style: style,
|
|
63
55
|
className: styles.item
|
|
64
56
|
}, /*#__PURE__*/React.createElement("div", {
|