{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\node_modules\\@jiaminghi\\data-view\\lib\\components\\decoration6\\src\\main.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\@jiaminghi\\data-view\\lib\\components\\decoration6\\src\\main.vue","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _toConsumableArray from \"D:/jenkins/workspace/xypm-web/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\";\nimport \"core-js/modules/es6.array.fill\";\nimport _slicedToArray from \"D:/jenkins/workspace/xypm-web/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport autoResize from \"../../../mixin/autoResize\";\nimport { randomExtend } from \"../../../util\";\nimport { deepMerge } from '@jiaminghi/charts/lib/util/index';\nimport { deepClone } from '@jiaminghi/c-render/lib/plugin/util';\nexport default {\n  name: 'DvDecoration6',\n  mixins: [autoResize],\n  props: {\n    color: {\n      type: Array,\n      default: function _default() {\n        return [];\n      }\n    }\n  },\n  data: function data() {\n    var rectWidth = 7;\n    return {\n      ref: 'decoration-6',\n      svgWH: [300, 35],\n      svgScale: [1, 1],\n      rowNum: 1,\n      rowPoints: 40,\n      rectWidth: rectWidth,\n      halfRectWidth: rectWidth / 2,\n      points: [],\n      heights: [],\n      minHeights: [],\n      randoms: [],\n      defaultColor: ['#7acaec', '#7acaec'],\n      mergedColor: []\n    };\n  },\n  watch: {\n    color: function color() {\n      var mergeColor = this.mergeColor;\n      mergeColor();\n    }\n  },\n  methods: {\n    afterAutoResizeMixinInit: function afterAutoResizeMixinInit() {\n      var calcSVGData = this.calcSVGData;\n      calcSVGData();\n    },\n    calcSVGData: function calcSVGData() {\n      var calcPointsPosition = this.calcPointsPosition,\n        calcScale = this.calcScale;\n      calcPointsPosition();\n      calcScale();\n    },\n    calcPointsPosition: function calcPointsPosition() {\n      var svgWH = this.svgWH,\n        rowNum = this.rowNum,\n        rowPoints = this.rowPoints;\n      var _svgWH = _slicedToArray(svgWH, 2),\n        w = _svgWH[0],\n        h = _svgWH[1];\n      var horizontalGap = w / (rowPoints + 1);\n      var verticalGap = h / (rowNum + 1);\n      var points = new Array(rowNum).fill(0).map(function (foo, i) {\n        return new Array(rowPoints).fill(0).map(function (foo, j) {\n          return [horizontalGap * (j + 1), verticalGap * (i + 1)];\n        });\n      });\n      this.points = points.reduce(function (all, item) {\n        return [].concat(_toConsumableArray(all), _toConsumableArray(item));\n      }, []);\n      var heights = this.heights = new Array(rowNum * rowPoints).fill(0).map(function (foo) {\n        return Math.random() > 0.8 ? randomExtend(0.7 * h, h) : randomExtend(0.2 * h, 0.5 * h);\n      });\n      this.minHeights = new Array(rowNum * rowPoints).fill(0).map(function (foo, i) {\n        return heights[i] * Math.random();\n      });\n      this.randoms = new Array(rowNum * rowPoints).fill(0).map(function (foo) {\n        return Math.random() + 1.5;\n      });\n    },\n    calcScale: function calcScale() {\n      var width = this.width,\n        height = this.height,\n        svgWH = this.svgWH;\n      var _svgWH2 = _slicedToArray(svgWH, 2),\n        w = _svgWH2[0],\n        h = _svgWH2[1];\n      this.svgScale = [width / w, height / h];\n    },\n    onResize: function onResize() {\n      var calcSVGData = this.calcSVGData;\n      calcSVGData();\n    },\n    mergeColor: function mergeColor() {\n      var color = this.color,\n        defaultColor = this.defaultColor;\n      this.mergedColor = deepMerge(deepClone(defaultColor, true), color || []);\n    }\n  },\n  mounted: function mounted() {\n    var mergeColor = this.mergeColor;\n    mergeColor();\n  }\n};",null]}