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

1 line
6.0 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\\system\\logicflow\\editor\\components\\node\\path\\CylindeNode.js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\logicflow\\editor\\components\\node\\path\\CylindeNode.js","mtime":1732871026779},{"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 _extension = require(\"@logicflow/extension\");\nvar _getShapeStyleUtil = require(\"../getShapeStyleUtil\");\n// 圆柱体\nvar CylindeModel = /*#__PURE__*/function (_RectResize$model) {\n function CylindeModel() {\n (0, _classCallCheck2.default)(this, CylindeModel);\n return (0, _callSuper2.default)(this, CylindeModel, arguments);\n }\n (0, _inherits2.default)(CylindeModel, _RectResize$model);\n return (0, _createClass2.default)(CylindeModel, [{\n key: \"initNodeData\",\n value: function initNodeData(data) {\n (0, _superPropGet2.default)(CylindeModel, \"initNodeData\", this, 3)([data]);\n this.width = 60;\n this.height = 80;\n }\n }, {\n key: \"getNodeStyle\",\n value: function getNodeStyle() {\n var style = (0, _superPropGet2.default)(CylindeModel, \"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)(CylindeModel, \"getTextStyle\", this, 3)([]);\n var properties = this.getProperties();\n return (0, _getShapeStyleUtil.getTextStyleFunction)(style, properties);\n }\n }]);\n}(_extension.RectResize.model);\nvar CylindeView = /*#__PURE__*/function (_RectResize$view) {\n function CylindeView() {\n (0, _classCallCheck2.default)(this, CylindeView);\n return (0, _callSuper2.default)(this, CylindeView, arguments);\n }\n (0, _inherits2.default)(CylindeView, _RectResize$view);\n return (0, _createClass2.default)(CylindeView, [{\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 // 圆柱体顶部椭圆\n var ellipseAAttrs = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {\n cx: x,\n cy: y - 1 / 3 * height,\n rx: 1 / 2 * width,\n ry: 1 / 6 * height,\n width: width,\n height: height\n });\n // 圆柱体左直线\n var pathAAttrs = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {\n d: \"M \".concat(x - 1 / 2 * width, \" \").concat(y - 1 / 3 * height, \" L \").concat(x - 1 / 2 * width, \" \").concat(y + 1 / 3 * height)\n });\n // 圆柱体右直线\n var pathBAttrs = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {\n d: \"M \".concat(x + 1 / 2 * width, \" \").concat(y - 1 / 3 * height, \" L \").concat(x + 1 / 2 * width, \" \").concat(y + 1 / 3 * height)\n });\n // 圆柱体下椭圆\n var ellipseBAttrs = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {\n cx: x,\n cy: y + 1 / 3 * height,\n rx: 1 / 2 * width,\n ry: 1 / 6 * height,\n width: width,\n height: height\n });\n // 圆柱体中间填充部分\n var rectAttrs = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {\n x: x - 1 / 2 * width,\n y: y - 1 / 3 * height,\n width: width,\n height: 2 / 3 * height,\n stroke: 'transparent'\n });\n return (0, _core.h)('g', {}, [(0, _core.h)('ellipse', (0, _objectSpread2.default)({}, ellipseBAttrs)), (0, _core.h)('rect', (0, _objectSpread2.default)({}, rectAttrs)), (0, _core.h)('path', (0, _objectSpread2.default)({}, pathAAttrs)), (0, _core.h)('path', (0, _objectSpread2.default)({}, pathBAttrs)), (0, _core.h)('ellipse', (0, _objectSpread2.default)({}, ellipseAAttrs))]);\n }\n }]);\n}(_extension.RectResize.view);\nvar _default = exports.default = {\n type: 'cylinde',\n model: CylindeModel,\n view: CylindeView\n};",null]}