Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/babel-loader/df2debd43d6b847da5cc532989d43761.json
2024-12-05 09:33:18 +08:00

1 line
5.5 KiB
JSON

{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\stage\\editor\\components\\node\\path\\DivideNode.js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\stage\\editor\\components\\node\\path\\DivideNode.js","mtime":1732871026662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\babel.config.js","mtime":1732871025888},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\eslint-loader\\index.js","mtime":1732872823677}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _interopRequireDefault = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/objectSpread2.js\"));\nvar _classCallCheck2 = _interopRequireDefault(require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/classCallCheck.js\"));\nvar _createClass2 = _interopRequireDefault(require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/createClass.js\"));\nvar _callSuper2 = _interopRequireDefault(require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/callSuper.js\"));\nvar _superPropGet2 = _interopRequireDefault(require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/superPropGet.js\"));\nvar _inherits2 = _interopRequireDefault(require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/inherits.js\"));\nvar _core = require(\"@logicflow/core\");\nvar _RectNode = _interopRequireDefault(require(\"../basic/RectNode\"));\nvar _getShapeStyleUtil = require(\"../getShapeStyleUtil\");\n// 除号\nvar DivideModel = /*#__PURE__*/function (_RectNode$model) {\n function DivideModel() {\n (0, _classCallCheck2.default)(this, DivideModel);\n return (0, _callSuper2.default)(this, DivideModel, arguments);\n }\n (0, _inherits2.default)(DivideModel, _RectNode$model);\n return (0, _createClass2.default)(DivideModel, [{\n key: \"initNodeData\",\n value: function initNodeData(data) {\n (0, _superPropGet2.default)(DivideModel, \"initNodeData\", this, 3)([data]);\n this.width = 80;\n this.height = 80;\n }\n }, {\n key: \"getNodeStyle\",\n value: function getNodeStyle() {\n var style = (0, _superPropGet2.default)(DivideModel, \"getNodeStyle\", this, 3)([]);\n var properties = this.getProperties();\n return (0, _getShapeStyleUtil.getShapeStyleFuction)(style, properties);\n }\n }, {\n key: \"getTextStyle\",\n value: function getTextStyle() {\n var style = (0, _superPropGet2.default)(DivideModel, \"getTextStyle\", this, 3)([]);\n var properties = this.getProperties();\n return (0, _getShapeStyleUtil.getTextStyleFunction)(style, properties);\n }\n }]);\n}(_RectNode.default.model);\nvar DivideView = /*#__PURE__*/function (_RectNode$view) {\n function DivideView() {\n (0, _classCallCheck2.default)(this, DivideView);\n return (0, _callSuper2.default)(this, DivideView, arguments);\n }\n (0, _inherits2.default)(DivideView, _RectNode$view);\n return (0, _createClass2.default)(DivideView, [{\n key: \"getResizeShape\",\n value: function getResizeShape() {\n var _this$props$model = this.props.model,\n x = _this$props$model.x,\n y = _this$props$model.y,\n width = _this$props$model.width,\n height = _this$props$model.height;\n var style = this.props.model.getNodeStyle();\n var pointList = [[x - 1 / 2 * width, y - 1 / 8 * height], [x + 1 / 2 * width, y - 1 / 8 * height], [x + 1 / 2 * width, y + 1 / 8 * height], [x - 1 / 2 * width, y + 1 / 8 * height]];\n var points = pointList.map(function (item) {\n return \"\".concat(item[0], \",\").concat(item[1]);\n });\n var attrs = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {\n x: x,\n y: y,\n width: width,\n height: height\n });\n\n // 除号中间横线\n var lineAttrs = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, attrs), {}, {\n points: points.join(' ')\n });\n\n // 除号上圆点\n var upEllipseAttrs = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, attrs), {}, {\n cy: y - 3 / 8 * height,\n cx: x,\n rx: 1 / 8 * width,\n ry: 1 / 8 * height\n });\n\n // 除号下圆点\n var downEllipseAttrs = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, attrs), {}, {\n cy: y + 3 / 8 * height,\n cx: x,\n rx: 1 / 8 * width,\n ry: 1 / 8 * height\n });\n return (0, _core.h)('g', {}, [(0, _core.h)('polygon', (0, _objectSpread2.default)({}, lineAttrs)), (0, _core.h)('ellipse', (0, _objectSpread2.default)({}, upEllipseAttrs)), (0, _core.h)('ellipse', (0, _objectSpread2.default)({}, downEllipseAttrs))]);\n }\n }]);\n}(_RectNode.default.view);\nvar _default = exports.default = {\n type: 'divide',\n view: DivideView,\n model: DivideModel\n};",null]}