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

1 line
3.1 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\\getShapeStyleUtil.js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\stage\\editor\\components\\node\\getShapeStyleUtil.js","mtime":1732871026654},{"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\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getTextStyleFunction = exports.getShapeStyleFuction = void 0;\nrequire(\"core-js/modules/es6.array.fill\");\nvar getShapeStyleFuction = exports.getShapeStyleFuction = function getShapeStyleFuction(style, properties) {\n if (properties.backgroundColor) {\n style.fill = properties.backgroundColor;\n }\n if (properties.gradientColor && style.fill !== properties.gradientColor) {\n style.fillGradient = properties.gradientColor;\n }\n if (properties.borderColor) {\n style.stroke = properties.borderColor;\n }\n if (properties.borderWidth) {\n style.strokeWidth = properties.borderWidth;\n }\n if (properties.borderStyle) {\n if (properties.borderStyle === 'solid') {\n style.strokeDashArray = '0';\n // nodeResize里的bug导致的,array小写了\n style.strokeDasharray = '0';\n }\n if (properties.borderStyle === 'dashed') {\n style.strokeDashArray = '3 3';\n style.strokeDasharray = '3 3';\n }\n if (properties.borderStyle === 'dotted') {\n style.strokeDashArray = '1 1';\n style.strokeDasharray = '1 1';\n }\n if (properties.borderStyle === 'hidden') {\n style.stroke = style.fill;\n }\n }\n return style;\n};\nvar getTextStyleFunction = exports.getTextStyleFunction = function getTextStyleFunction() {\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var properties = arguments.length > 1 ? arguments[1] : undefined;\n if (properties.fontColor) {\n style.color = properties.fontColor;\n }\n if (properties.fontSize) {\n style.fontSize = properties.fontSize;\n }\n if (properties.fontFamily) {\n style.fontFamily = properties.fontFamily;\n }\n if (properties.lineHeight) {\n style.lineHeight = properties.lineHeight;\n }\n if (properties.textAlign) {\n style.textAlign = properties.textAlign;\n }\n if (properties.fontWeight) {\n style.fontWeight = properties.fontWeight;\n }\n if (properties.textDecoration) {\n style.textDecoration = properties.textDecoration;\n }\n if (properties.fontStyle) {\n style.fontStyle = properties.fontStyle;\n }\n return style;\n};",null]}