{"version":3,"sources":["webpack:///./node_modules/@antv/x6-plugin-export/es/api.js","webpack:///./node_modules/@antv/x6-plugin-export/es/index.js","webpack:///./src/assets/SlnDesign/success.png","webpack:///./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js","webpack:///./src/views/SystemDesign/SlnDesign/DownLoadCode.vue?7762","webpack:///src/views/SystemDesign/SlnDesign/DownLoadCode.vue","webpack:///./src/views/SystemDesign/SlnDesign/DownLoadCode.vue?1ed8","webpack:///./src/views/SystemDesign/SlnDesign/DownLoadCode.vue"],"names":["prototype","toSVG","callback","options","instance","this","getPlugin","toPNG","toJPEG","exportPNG","fileName","exportJPEG","exportSVG","__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","super","name","graph","view","dataUri","downloadDataUri","svg","svgToDataUrl","notify","rawSVG","vSVG","create","clone","clonedSVG","node","vStage","findOne","prefixClassName","viewBox","graphToLocal","getContentBBox","dimension","preserveDimensions","size","attr","width","height","removeAttribute","x","y","join","copyStyles","document","ownerDocument","raws","Array","from","querySelectorAll","clones","styleSheetCount","styleSheets","styleSheetsCopy","k","disabled","defaultComputedStyles","forEach","elem","index","computedStyle","window","getComputedStyle","defaultComputedStyle","keys","property","getPropertyValue","copy","customStyles","customStyle","isNumber","css","stylesheet","cDATASection","implementation","createDocument","createCDATASection","prepend","type","format","beforeSerialize","ret","call","SVGSVGElement","XMLSerializer","serializeToString","replace","serializeImages","deferrals","find","map","vImage","Promise","resolve","url","imageToDataUri","err","all","then","padding","normalizeSides","left","right","top","bottom","expanding","scale","moveAndExpand","rawSize","ratio","parseFloat","Number","isFinite","Math","max","round","imgDataCanvas","createElement","context2D","getContext","fillStyle","fillRect","data","getImageData","Error","img","Image","onload","canvas","context","backgroundColor","drawImage","toDataURL","quality","error","src","encodeURIComponent","assign","args","trigger","off","dispose","module","exports","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","isArray","unsupportedIterableToArray","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","step","next","_e2","render","_vm","_h","$createElement","_c","_self","attrs","downLoadExcelDialogVisible","staticStyle","_v","_s","nowSelectDragOrder","updateTime","staticRenderFns","props","ImgBaseList","jsonData","parentNode","childNode","renderDonePromise","mounted","init","getDragOrder","methods","watch","component"],"mappings":"oKACA,OAAMA,UAAUC,MAAQ,SAAUC,EAAUC,GACxC,MAAMC,EAAWC,KAAKC,UAAU,UAC5BF,GACAA,EAASH,MAAMC,EAAUC,IAGjC,OAAMH,UAAUO,MAAQ,SAAUL,EAAUC,GACxC,MAAMC,EAAWC,KAAKC,UAAU,UAC5BF,GACAA,EAASG,MAAML,EAAUC,IAGjC,OAAMH,UAAUQ,OAAS,SAAUN,EAAUC,GACzC,MAAMC,EAAWC,KAAKC,UAAU,UAC5BF,GACAA,EAASI,OAAON,EAAUC,IAGlC,OAAMH,UAAUS,UAAY,SAAUC,EAAUP,GAC5C,MAAMC,EAAWC,KAAKC,UAAU,UAC5BF,GACAA,EAASK,UAAUC,EAAUP,IAGrC,OAAMH,UAAUW,WAAa,SAAUD,EAAUP,GAC7C,MAAMC,EAAWC,KAAKC,UAAU,UAC5BF,GACAA,EAASO,WAAWD,EAAUP,IAGtC,OAAMH,UAAUY,UAAY,SAAUF,EAAUP,GAC5C,MAAMC,EAAWC,KAAKC,UAAU,UAC5BF,GACAA,EAASQ,UAAUF,EAAUP,IClCrC,IAAIU,EAA0C,SAAUC,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,kBAAZQ,SAAoD,oBAArBA,QAAQC,SAAyBJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIU,EAAIb,EAAWO,OAAS,EAAGM,GAAK,EAAGA,KAAST,EAAIJ,EAAW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MAAO,IC/O2W,I,YCOhXC,EAAY,eACd,EACAzB,EACAa,GACA,EACA,KACA,WACA,MAIa,aAAAY,E","file":"js/chunk-dad40d46.4f1059fc.js","sourcesContent":["import { Graph } from '@antv/x6';\nGraph.prototype.toSVG = function (callback, options) {\n const instance = this.getPlugin('export');\n if (instance) {\n instance.toSVG(callback, options);\n }\n};\nGraph.prototype.toPNG = function (callback, options) {\n const instance = this.getPlugin('export');\n if (instance) {\n instance.toPNG(callback, options);\n }\n};\nGraph.prototype.toJPEG = function (callback, options) {\n const instance = this.getPlugin('export');\n if (instance) {\n instance.toJPEG(callback, options);\n }\n};\nGraph.prototype.exportPNG = function (fileName, options) {\n const instance = this.getPlugin('export');\n if (instance) {\n instance.exportPNG(fileName, options);\n }\n};\nGraph.prototype.exportJPEG = function (fileName, options) {\n const instance = this.getPlugin('export');\n if (instance) {\n instance.exportJPEG(fileName, options);\n }\n};\nGraph.prototype.exportSVG = function (fileName, options) {\n const instance = this.getPlugin('export');\n if (instance) {\n instance.exportSVG(fileName, options);\n }\n};\n//# sourceMappingURL=api.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { DataUri, NumberExt, FunctionExt, Vector, Rectangle, Basecoat, Dom, } from '@antv/x6';\nimport './api';\nexport class Export extends Basecoat {\n constructor() {\n super();\n this.name = 'export';\n }\n get view() {\n return this.graph.view;\n }\n init(graph) {\n this.graph = graph;\n }\n exportPNG(fileName = 'chart', options = {}) {\n this.toPNG((dataUri) => {\n DataUri.downloadDataUri(dataUri, fileName);\n }, options);\n }\n exportJPEG(fileName = 'chart', options = {}) {\n this.toPNG((dataUri) => {\n DataUri.downloadDataUri(dataUri, fileName);\n }, options);\n }\n exportSVG(fileName = 'chart', options = {}) {\n this.toSVG((svg) => {\n DataUri.downloadDataUri(DataUri.svgToDataUrl(svg), fileName);\n }, options);\n }\n toSVG(callback, options = {}) {\n this.notify('before:export', options);\n const rawSVG = this.view.svg;\n const vSVG = Vector.create(rawSVG).clone();\n let clonedSVG = vSVG.node;\n const vStage = vSVG.findOne(`.${this.view.prefixClassName('graph-svg-stage')}`);\n const viewBox = options.viewBox || this.graph.graphToLocal(this.graph.getContentBBox());\n const dimension = options.preserveDimensions;\n if (dimension) {\n const size = typeof dimension === 'boolean' ? viewBox : dimension;\n vSVG.attr({\n width: size.width,\n height: size.height,\n });\n }\n vSVG\n .removeAttribute('style')\n .attr('viewBox', [viewBox.x, viewBox.y, viewBox.width, viewBox.height].join(' '));\n vStage.removeAttribute('transform');\n // Stores all the CSS declarations from external stylesheets to the\n // `style` attribute of the SVG document nodes.\n // This is achieved in three steps.\n // -----------------------------------\n // 1. Disabling all the stylesheets in the page and therefore collecting\n // only default style values. This, together with the step 2, makes it\n // possible to discard default CSS property values and store only those\n // that differ.\n //\n // 2. Enabling back all the stylesheets in the page and collecting styles\n // that differ from the default values.\n //\n // 3. Applying the difference between default values and the ones set by\n // custom stylesheets onto the `style` attribute of each of the nodes\n // in SVG.\n if (options.copyStyles !== false) {\n const document = rawSVG.ownerDocument;\n const raws = Array.from(rawSVG.querySelectorAll('*'));\n const clones = Array.from(clonedSVG.querySelectorAll('*'));\n const styleSheetCount = document.styleSheets.length;\n const styleSheetsCopy = [];\n for (let k = styleSheetCount - 1; k >= 0; k -= 1) {\n // There is a bug (bugSS) in Chrome 14 and Safari. When you set\n // `stylesheet.disable = true` it will also remove it from\n // `document.styleSheets`. So we need to store all stylesheets before\n // we disable them. Later on we put them back to `document.styleSheets`\n // if needed.\n // See the bug `https://code.google.com/p/chromium/issues/detail?id=88310`.\n styleSheetsCopy[k] = document.styleSheets[k];\n document.styleSheets[k].disabled = true;\n }\n const defaultComputedStyles = {};\n raws.forEach((elem, index) => {\n const computedStyle = window.getComputedStyle(elem, null);\n // We're making a deep copy of the `computedStyle` so that it's not affected\n // by that next step when all the stylesheets are re-enabled again.\n const defaultComputedStyle = {};\n Object.keys(computedStyle).forEach((property) => {\n defaultComputedStyle[property] =\n computedStyle.getPropertyValue(property);\n });\n defaultComputedStyles[index] = defaultComputedStyle;\n });\n // Copy all stylesheets back\n if (styleSheetCount !== document.styleSheets.length) {\n styleSheetsCopy.forEach((copy, index) => {\n document.styleSheets[index] = copy;\n });\n }\n for (let i = 0; i < styleSheetCount; i += 1) {\n document.styleSheets[i].disabled = false;\n }\n const customStyles = {};\n raws.forEach((elem, index) => {\n const computedStyle = window.getComputedStyle(elem, null);\n const defaultComputedStyle = defaultComputedStyles[index];\n const customStyle = {};\n Object.keys(computedStyle).forEach((property) => {\n if (!NumberExt.isNumber(property) &&\n computedStyle.getPropertyValue(property) !==\n defaultComputedStyle[property]) {\n customStyle[property] = computedStyle.getPropertyValue(property);\n }\n });\n customStyles[index] = customStyle;\n });\n clones.forEach((elem, index) => {\n Dom.css(elem, customStyles[index]);\n });\n }\n const stylesheet = options.stylesheet;\n if (typeof stylesheet === 'string') {\n const cDATASection = rawSVG\n .ownerDocument.implementation.createDocument(null, 'xml', null)\n .createCDATASection(stylesheet);\n vSVG.prepend(Vector.create('style', {\n type: 'text/css',\n }, [cDATASection]));\n }\n const format = () => {\n const beforeSerialize = options.beforeSerialize;\n if (typeof beforeSerialize === 'function') {\n const ret = FunctionExt.call(beforeSerialize, this.graph, clonedSVG);\n if (ret instanceof SVGSVGElement) {\n clonedSVG = ret;\n }\n }\n const dataUri = new XMLSerializer()\n .serializeToString(clonedSVG)\n .replace(/ /g, '\\u00a0');\n this.notify('after:export', options);\n callback(dataUri);\n };\n if (options.serializeImages) {\n const deferrals = vSVG.find('image').map((vImage) => {\n return new Promise((resolve) => {\n const url = vImage.attr('xlink:href') || vImage.attr('href');\n DataUri.imageToDataUri(url, (err, dataUri) => {\n if (!err && dataUri) {\n vImage.attr('xlink:href', dataUri);\n }\n resolve();\n });\n });\n });\n Promise.all(deferrals).then(format);\n }\n else {\n format();\n }\n }\n toDataURL(callback, options) {\n let viewBox = options.viewBox || this.graph.getContentBBox();\n const padding = NumberExt.normalizeSides(options.padding);\n if (options.width && options.height) {\n if (padding.left + padding.right >= options.width) {\n padding.left = padding.right = 0;\n }\n if (padding.top + padding.bottom >= options.height) {\n padding.top = padding.bottom = 0;\n }\n }\n const expanding = new Rectangle(-padding.left, -padding.top, padding.left + padding.right, padding.top + padding.bottom);\n if (options.width && options.height) {\n const width = viewBox.width + padding.left + padding.right;\n const height = viewBox.height + padding.top + padding.bottom;\n expanding.scale(width / options.width, height / options.height);\n }\n viewBox = Rectangle.create(viewBox).moveAndExpand(expanding);\n const rawSize = typeof options.width === 'number' && typeof options.height === 'number'\n ? { width: options.width, height: options.height }\n : viewBox;\n let scale = options.ratio ? parseFloat(options.ratio) : 1;\n if (!Number.isFinite(scale) || scale === 0) {\n scale = 1;\n }\n const size = {\n width: Math.max(Math.round(rawSize.width * scale), 1),\n height: Math.max(Math.round(rawSize.height * scale), 1),\n };\n {\n const imgDataCanvas = document.createElement('canvas');\n const context2D = imgDataCanvas.getContext('2d');\n imgDataCanvas.width = size.width;\n imgDataCanvas.height = size.height;\n const x = size.width - 1;\n const y = size.height - 1;\n context2D.fillStyle = 'rgb(1,1,1)';\n context2D.fillRect(x, y, 1, 1);\n const data = context2D.getImageData(x, y, 1, 1).data;\n if (data[0] !== 1 || data[1] !== 1 || data[2] !== 1) {\n throw new Error('size exceeded');\n }\n }\n const img = new Image();\n img.onload = () => {\n const canvas = document.createElement('canvas');\n canvas.width = size.width;\n canvas.height = size.height;\n const context = canvas.getContext('2d');\n context.fillStyle = options.backgroundColor || 'white';\n context.fillRect(0, 0, size.width, size.height);\n try {\n context.drawImage(img, 0, 0, size.width, size.height);\n const dataUri = canvas.toDataURL(options.type, options.quality);\n callback(dataUri);\n }\n catch (error) {\n // pass\n }\n };\n this.toSVG((dataUri) => {\n img.src = `data:image/svg+xml,${encodeURIComponent(dataUri)}`;\n }, Object.assign(Object.assign({}, options), { viewBox, serializeImages: true, preserveDimensions: Object.assign({}, size) }));\n }\n toPNG(callback, options = {}) {\n this.toDataURL(callback, Object.assign(Object.assign({}, options), { type: 'image/png' }));\n }\n toJPEG(callback, options = {}) {\n this.toDataURL(callback, Object.assign(Object.assign({}, options), { type: 'image/jpeg' }));\n }\n notify(name, args) {\n this.trigger(name, args);\n this.graph.trigger(name, args);\n }\n dispose() {\n this.off();\n }\n}\n__decorate([\n Basecoat.dispose()\n], Export.prototype, \"dispose\", null);\n//# sourceMappingURL=index.js.map","module.exports = __webpack_public_path__ + \"img/success.d7a8c2d5.png\";","import unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nexport default function _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n if (!it) {\n if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n\n var F = function F() {};\n\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = it.call(o);\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{attrs:{\"id\":\"container\",\"hidden\":\"\"}}),(!_vm.downLoadExcelDialogVisible)?_c('div',{staticStyle:{\"width\":\"100%\",\"height\":\"100vh\",\"display\":\"flex\",\"align-items\":\"center\",\"justify-content\":\"center\"}},[_c('div',{staticStyle:{\"display\":\"inline-block\",\"text-align\":\"center\"}},[_c('img',{staticStyle:{\"width\":\"120px\",\"margin-bottom\":\"3vh\"},attrs:{\"src\":require(\"@/assets/SlnDesign/success.png\"),\"alt\":\"\"}}),_c('span',{staticStyle:{\"line-height\":\"5vh\",\"display\":\"block\"}},[_vm._v(\"方案下载成功!\")]),_c('span',{staticStyle:{\"line-height\":\"5vh\",\"display\":\"block\"}},[_vm._v(_vm._s(_vm.nowSelectDragOrder.name))]),_c('span',{staticStyle:{\"line-height\":\"5vh\",\"display\":\"block\",\"margin-bottom\":\"30vh\"}},[_vm._v(_vm._s(_vm.nowSelectDragOrder.updateTime))])])]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DownLoadCode.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DownLoadCode.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DownLoadCode.vue?vue&type=template&id=bdccef82&scoped=true&\"\nimport script from \"./DownLoadCode.vue?vue&type=script&lang=js&\"\nexport * from \"./DownLoadCode.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"bdccef82\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}