diff --git a/component/index.js b/component/index.js index 2e11685..c48519f 100644 --- a/component/index.js +++ b/component/index.js @@ -635,6 +635,19 @@ exports.default = function (FC) { 'datasource.data': { handler: function handler(newVal, prevVal) { if (newVal !== prevVal) { + // SPECIAL CASE: When DataSource has series attribute, vue internally goes into Infinite recursion + // specifically on _traverse method. This code is written to tackle that issue. In future a much more + // concrete solution is required. + if (this.datasource && this.datasource.series) { + var _FC_ = _fusioncharts2.default || window.FusionCharts; + var data = JSON.parse(JSON.stringify(newVal._data)); + var schema = JSON.parse(JSON.stringify(newVal._schema)); + var dataTable = new _FC_.DataStore().createDataTable(data, schema); + var newDs = Object.assign({}, this.datasource || this.dataSource); + newDs.data = dataTable; + this.chartObj.setChartData(newDs, this.dataFormat || this.dataformat); + return null; + } this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); } }, @@ -643,6 +656,16 @@ exports.default = function (FC) { 'dataSource.data': { handler: function handler(newVal, prevVal) { if (newVal !== prevVal) { + if (this.dataSource && this.dataSource.series) { + var _FC_ = _fusioncharts2.default || window.FusionCharts; + var data = JSON.parse(JSON.stringify(newVal._data)); + var schema = JSON.parse(JSON.stringify(newVal._schema)); + var dataTable = new _FC_.DataStore().createDataTable(data, schema); + var newDs = Object.assign({}, this.datasource || this.dataSource); + newDs.data = dataTable; + this.chartObj.setChartData(newDs, this.dataFormat || this.dataformat); + return null; + } this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); } }, @@ -667,6 +690,9 @@ exports.default = function (FC) { var strCurrClonedDataSource = JSON.stringify((0, _utils.cloneDataSource)(ds, 'diff')); if (strPrevClonedDataSource !== strCurrClonedDataSource) { this.prevDataSource = (0, _utils.cloneDataSource)(ds, 'diff'); + // if (ds.series) { + // return null; + // } this.chartObj.setChartData(ds, this.dataFormat || this.dataformat); } } diff --git a/component/index.js.map b/component/index.js.map index d994ee6..155bd70 100644 --- a/component/index.js.map +++ b/component/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 6f4039d474af7a5149f9","webpack:///./src/config.js","webpack:///./src/utils.js","webpack:///external {\"commonjs2\":\"fusioncharts\",\"commonjs\":\"fusioncharts\",\"amd\":\"fusioncharts\",\"root\":\"FusionCharts\"}","webpack:///./src/vue-fusioncharts-component.js"],"names":["optionsMap","type","id","width","height","dataFormat","dataSource","events","link","showDataLoadingMessage","showChartLoadingMessage","baseChartMessageFont","baseChartMessageFontSize","baseChartMessageColor","dataLoadStartMessage","dataLoadErrorMessage","dataInvalidMessage","dataEmptyMessage","typeNotSupportedMessage","loadMessage","renderErrorMessage","containerBackgroundColor","containerBackgroundOpacity","containerClassName","baseChartMessageImageHAlign","baseChartMessageImageVAlign","baseChartMessageImageAlpha","baseChartMessageImageScale","typeNotSupportedMessageImageHAlign","typeNotSupportedMessageImageVAlign","typeNotSupportedMessageImageAlpha","typeNotSupportedMessageImageScale","dataLoadErrorMessageImageHAlign","dataLoadErrorMessageImageVAlign","dataLoadErrorMessageImageAlpha","dataLoadErrorMessageImageScale","dataLoadStartMessageImageHAlign","dataLoadStartMessageImageVAlign","dataLoadStartMessageImageAlpha","dataLoadStartMessageImageScale","dataInvalidMessageImageHAlign","dataInvalidMessageImageVAlign","dataInvalidMessageImageAlpha","dataInvalidMessageImageScale","dataEmptyMessageImageHAlign","dataEmptyMessageImageVAlign","dataEmptyMessageImageAlpha","dataEmptyMessageImageScale","renderErrorMessageImageHAlign","renderErrorMessageImageVAlign","renderErrorMessageImageAlpha","renderErrorMessageImageScale","loadMessageImageHAlign","loadMessageImageVAlign","loadMessageImageAlpha","loadMessageImageScale","dataformat","datasource","showdataloadingmessage","showchartloadingmessage","basechartmessagefont","basechartmessagefontsize","basechartmessagecolor","dataloadstartmessage","dataloaderrormessage","datainvalidmessage","dataemptymessage","typenotsupportedmessage","loadmessage","rendererrormessage","containerbackgroundcolor","containerbackgroundopacity","containerclassname","basechartmessageimagehalign","basechartmessageimagevalign","basechartmessageimagealpha","basechartmessageimagescale","typenotsupportedmessageimagehalign","typenotsupportedmessageimagevalign","typenotsupportedmessageimagealpha","typenotsupportedmessageimagescale","dataloaderrormessageimagehalign","dataloaderrormessageimagevalign","dataloaderrormessageimagealpha","dataloaderrormessageimagescale","dataloadstartmessageimagehalign","dataloadstartmessageimagevalign","dataloadstartmessageimagealpha","dataloadstartmessageimagescale","datainvalidmessageimagehalign","datainvalidmessageimagevalign","datainvalidmessageimagealpha","datainvalidmessageimagescale","dataemptymessageimagehalign","dataemptymessageimagevalign","dataemptymessageimagealpha","dataemptymessageimagescale","rendererrormessageimagehalign","rendererrormessageimagevalign","rendererrormessageimagealpha","rendererrormessageimagescale","loadmessageimagehalign","loadmessageimagevalign","loadmessageimagealpha","loadmessageimagescale","props","options","Object","String","Boolean","Number","module","exports","checkIfDataTableExists","cloneDataSource","attachListeners","createEvents","setLastOptions","getLastOptions","getOptions","renderChart","updateChart","addDep","FC","_FC","modules","getName","getType","name","data","_dataStore","obj","purpose","undefined","Array","isArray","arr","i","length","push","clonedObj","prop","THIS","$listeners","keys","forEach","chartObj","addEventListener","event","$emit","e","ret","config","_oldOptions","assign","This","renderAt","containerID","dispose","render","prevConfig","resizeTo","chartType","setChartData","require","template","h","_uid","attrs","methods","ds","prevDataSource","watch","handler","deep","newVal","prevVal","deactivated","beforeDestroy","mounted","ready","beforeUpdate","strPrevClonedDataSource","JSON","stringify","strCurrClonedDataSource"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA,mDAA2C,cAAc;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAA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ACA,aAAKxB,QAAL,CAAciB,YAAd,CAA2BO,EAA3B,EAA+B,KAAKrK,UAAL,IAAmB,KAAKmD,UAAvD;AACD;AACF;AArLI,GAAP;AAuLD,C","file":"index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"fusioncharts\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"fusioncharts\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueFusionChartsComponent\"] = factory(require(\"fusioncharts\"));\n\telse\n\t\troot[\"VueFusionChartsComponent\"] = factory(root[\"FusionCharts\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 3);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 6f4039d474af7a5149f9","const optionsMap = {\n type: 'type',\n id: 'id',\n width: 'width',\n height: 'height',\n dataFormat: 'dataFormat',\n dataSource: 'dataSource',\n events: 'events',\n link: 'link',\n showDataLoadingMessage: 'showDataLoadingMessage',\n showChartLoadingMessage: 'showChartLoadingMessage',\n baseChartMessageFont: 'baseChartMessageFont',\n baseChartMessageFontSize: 'baseChartMessageFontSize',\n baseChartMessageColor: 'baseChartMessageColor',\n dataLoadStartMessage: 'dataLoadStartMessage',\n dataLoadErrorMessage: 'dataLoadErrorMessage',\n dataInvalidMessage: 'dataInvalidMessage',\n dataEmptyMessage: 'dataEmptyMessage',\n typeNotSupportedMessage: 'typeNotSupportedMessage',\n loadMessage: 'loadMessage',\n renderErrorMessage: 'renderErrorMessage',\n containerBackgroundColor: 'containerBackgroundColor',\n containerBackgroundOpacity: 'containerBackgroundOpacity',\n containerClassName: 'containerClassName',\n baseChartMessageImageHAlign: 'baseChartMessageImageHAlign',\n baseChartMessageImageVAlign: 'baseChartMessageImageVAlign',\n baseChartMessageImageAlpha: 'baseChartMessageImageAlpha',\n baseChartMessageImageScale: 'baseChartMessageImageScale',\n typeNotSupportedMessageImageHAlign: 'typeNotSupportedMessageImageHAlign',\n typeNotSupportedMessageImageVAlign: 'typeNotSupportedMessageImageVAlign',\n typeNotSupportedMessageImageAlpha: 'typeNotSupportedMessageImageAlpha',\n typeNotSupportedMessageImageScale: 'typeNotSupportedMessageImageScale',\n dataLoadErrorMessageImageHAlign: 'dataLoadErrorMessageImageHAlign',\n dataLoadErrorMessageImageVAlign: 'dataLoadErrorMessageImageVAlign',\n dataLoadErrorMessageImageAlpha: 'dataLoadErrorMessageImageAlpha',\n dataLoadErrorMessageImageScale: 'dataLoadErrorMessageImageScale',\n dataLoadStartMessageImageHAlign: 'dataLoadStartMessageImageHAlign',\n dataLoadStartMessageImageVAlign: 'dataLoadStartMessageImageVAlign',\n dataLoadStartMessageImageAlpha: 'dataLoadStartMessageImageAlpha',\n dataLoadStartMessageImageScale: 'dataLoadStartMessageImageScale',\n dataInvalidMessageImageHAlign: 'dataInvalidMessageImageHAlign',\n dataInvalidMessageImageVAlign: 'dataInvalidMessageImageVAlign',\n dataInvalidMessageImageAlpha: 'dataInvalidMessageImageAlpha',\n dataInvalidMessageImageScale: 'dataInvalidMessageImageScale',\n dataEmptyMessageImageHAlign: 'dataEmptyMessageImageHAlign',\n dataEmptyMessageImageVAlign: 'dataEmptyMessageImageVAlign',\n dataEmptyMessageImageAlpha: 'dataEmptyMessageImageAlpha',\n dataEmptyMessageImageScale: 'dataEmptyMessageImageScale',\n renderErrorMessageImageHAlign: 'renderErrorMessageImageHAlign',\n renderErrorMessageImageVAlign: 'renderErrorMessageImageVAlign',\n renderErrorMessageImageAlpha: 'renderErrorMessageImageAlpha',\n renderErrorMessageImageScale: 'renderErrorMessageImageScale',\n loadMessageImageHAlign: 'loadMessageImageHAlign',\n loadMessageImageVAlign: 'loadMessageImageVAlign',\n loadMessageImageAlpha: 'loadMessageImageAlpha',\n loadMessageImageScale: 'loadMessageImageScale',\n ///////////////////////////////////////////////////////\n dataformat: 'dataFormat',\n datasource: 'dataSource',\n showdataloadingmessage: 'showDataLoadingMessage',\n showchartloadingmessage: 'showChartLoadingMessage',\n basechartmessagefont: 'baseChartMessageFont',\n basechartmessagefontsize: 'baseChartMessageFontSize',\n basechartmessagecolor: 'baseChartMessageColor',\n dataloadstartmessage: 'dataLoadStartMessage',\n dataloaderrormessage: 'dataLoadErrorMessage',\n datainvalidmessage: 'dataInvalidMessage',\n dataemptymessage: 'dataEmptyMessage',\n typenotsupportedmessage: 'typeNotSupportedMessage',\n loadmessage: 'loadMessage',\n rendererrormessage: 'renderErrorMessage',\n containerbackgroundcolor: 'containerBackgroundColor',\n containerbackgroundopacity: 'containerBackgroundOpacity',\n containerclassname: 'containerClassName',\n basechartmessageimagehalign: 'baseChartMessageImageHAlign',\n basechartmessageimagevalign: 'baseChartMessageImageVAlign',\n basechartmessageimagealpha: 'baseChartMessageImageAlpha',\n basechartmessageimagescale: 'baseChartMessageImageScale',\n typenotsupportedmessageimagehalign: 'typeNotSupportedMessageImageHAlign',\n typenotsupportedmessageimagevalign: 'typeNotSupportedMessageImageVAlign',\n typenotsupportedmessageimagealpha: 'typeNotSupportedMessageImageAlpha',\n typenotsupportedmessageimagescale: 'typeNotSupportedMessageImageScale',\n dataloaderrormessageimagehalign: 'dataLoadErrorMessageImageHAlign',\n dataloaderrormessageimagevalign: 'dataLoadErrorMessageImageVAlign',\n dataloaderrormessageimagealpha: 'dataLoadErrorMessageImageAlpha',\n dataloaderrormessageimagescale: 'dataLoadErrorMessageImageScale',\n dataloadstartmessageimagehalign: 'dataLoadStartMessageImageHAlign',\n dataloadstartmessageimagevalign: 'dataLoadStartMessageImageVAlign',\n dataloadstartmessageimagealpha: 'dataLoadStartMessageImageAlpha',\n dataloadstartmessageimagescale: 'dataLoadStartMessageImageScale',\n datainvalidmessageimagehalign: 'dataInvalidMessageImageHAlign',\n datainvalidmessageimagevalign: 'dataInvalidMessageImageVAlign',\n datainvalidmessageimagealpha: 'dataInvalidMessageImageAlpha',\n datainvalidmessageimagescale: 'dataInvalidMessageImageScale',\n dataemptymessageimagehalign: 'dataEmptyMessageImageHAlign',\n dataemptymessageimagevalign: 'dataEmptyMessageImageVAlign',\n dataemptymessageimagealpha: 'dataEmptyMessageImageAlpha',\n dataemptymessageimagescale: 'dataEmptyMessageImageScale',\n rendererrormessageimagehalign: 'renderErrorMessageImageHAlign',\n rendererrormessageimagevalign: 'renderErrorMessageImageVAlign',\n rendererrormessageimagealpha: 'renderErrorMessageImageAlpha',\n rendererrormessageimagescale: 'renderErrorMessageImageScale',\n loadmessageimagehalign: 'loadMessageImageHAlign',\n loadmessageimagevalign: 'loadMessageImageVAlign',\n loadmessageimagealpha: 'loadMessageImageAlpha',\n loadmessageimagescale: 'loadMessageImageScale'\n};\n\nconst props = {\n options: Object,\n type: String,\n id: String,\n width: '',\n height: '',\n dataFormat: String,\n dataSource: '',\n events: Object,\n link: Object,\n showDataLoadingMessage: Boolean,\n showChartLoadingMessage: Boolean,\n baseChartMessageFont: String,\n baseChartMessageFontSize: String,\n baseChartMessageColor: String,\n dataLoadStartMessage: String,\n dataLoadErrorMessage: String,\n dataInvalidMessage: String,\n dataEmptyMessage: String,\n typeNotSupportedMessage: String,\n loadMessage: String,\n renderErrorMessage: String,\n containerBackgroundColor: String,\n containerBackgroundOpacity: Number,\n containerClassName: String,\n baseChartMessageImageHAlign: String,\n baseChartMessageImageVAlign: String,\n baseChartMessageImageAlpha: Number,\n baseChartMessageImageScale: Number,\n typeNotSupportedMessageImageHAlign: String,\n typeNotSupportedMessageImageVAlign: String,\n typeNotSupportedMessageImageAlpha: Number,\n typeNotSupportedMessageImageScale: Number,\n dataLoadErrorMessageImageHAlign: String,\n dataLoadErrorMessageImageVAlign: String,\n dataLoadErrorMessageImageAlpha: Number,\n dataLoadErrorMessageImageScale: Number,\n dataLoadStartMessageImageHAlign: String,\n dataLoadStartMessageImageVAlign: String,\n dataLoadStartMessageImageAlpha: Number,\n dataLoadStartMessageImageScale: Number,\n dataInvalidMessageImageHAlign: String,\n dataInvalidMessageImageVAlign: String,\n dataInvalidMessageImageAlpha: Number,\n dataInvalidMessageImageScale: Number,\n dataEmptyMessageImageHAlign: String,\n dataEmptyMessageImageVAlign: String,\n dataEmptyMessageImageAlpha: Number,\n dataEmptyMessageImageScale: Number,\n renderErrorMessageImageHAlign: String,\n renderErrorMessageImageVAlign: String,\n renderErrorMessageImageAlpha: Number,\n renderErrorMessageImageScale: Number,\n loadMessageImageHAlign: String,\n loadMessageImageVAlign: String,\n loadMessageImageAlpha: Number,\n loadMessageImageScale: Number,\n ///////////////////////////////////////////////\n dataformat: String,\n datasource: '',\n showdataloadingmessage: Boolean,\n showchartloadingmessage: Boolean,\n basechartmessagefont: String,\n basechartmessagefontsize: String,\n basechartmessagecolor: String,\n dataloadstartmessage: String,\n dataloaderrormessage: String,\n datainvalidmessage: String,\n dataemptymessage: String,\n typenotsupportedmessage: String,\n loadmessage: String,\n rendererrormessage: String,\n containerbackgroundcolor: String,\n containerbackgroundopacity: Number,\n containerclassname: String,\n basechartmessageimagehalign: String,\n basechartmessageimagevalign: String,\n basechartmessageimagealpha: Number,\n basechartmessageimagescale: Number,\n typenotsupportedmessageimagehalign: String,\n typenotsupportedmessageimagevalign: String,\n typenotsupportedmessageimagealpha: Number,\n typenotsupportedmessageimagescale: Number,\n dataloaderrormessageimagehalign: String,\n dataloaderrormessageimagevalign: String,\n dataloaderrormessageimagealpha: Number,\n dataloaderrormessageimagescale: Number,\n dataloadstartmessageimagehalign: String,\n dataloadstartmessageimagevalign: String,\n dataloadstartmessageimagealpha: Number,\n dataloadstartmessageimagescale: Number,\n datainvalidmessageimagehalign: String,\n datainvalidmessageimagevalign: String,\n datainvalidmessageimagealpha: Number,\n datainvalidmessageimagescale: Number,\n dataemptymessageimagehalign: String,\n dataemptymessageimagevalign: String,\n dataemptymessageimagealpha: Number,\n dataemptymessageimagescale: Number,\n rendererrormessageimagehalign: String,\n rendererrormessageimagevalign: String,\n rendererrormessageimagealpha: Number,\n rendererrormessageimagescale: Number,\n loadmessageimagehalign: String,\n loadmessageimagevalign: String,\n loadmessageimagealpha: Number,\n loadmessageimagescale: Number\n};\n\nmodule.exports = { optionsMap, props };\n\n\n\n// WEBPACK FOOTER //\n// ./src/config.js","export const addDep = (FC, _FC, modules) => {\n if (FC) {\n if (\n (modules.getName && modules.getType) ||\n (modules.name && modules.type)\n ) {\n FC.addDep(modules);\n } else {\n modules(FC);\n }\n } else {\n modules(_FC);\n }\n};\n\nexport function checkIfDataTableExists(dataSource) {\n // eslint-disable-next-line no-underscore-dangle\n if (dataSource && dataSource.data && dataSource.data._dataStore) {\n return true;\n }\n return false;\n}\n\nexport function cloneDataSource(obj, purpose = 'clone') {\n const type = typeof obj;\n if (\n type === 'string' ||\n type === 'number' ||\n type === 'function' ||\n type === 'boolean'\n ) {\n return obj;\n }\n if (obj === null || obj === undefined) {\n return obj;\n }\n if (Array.isArray(obj)) {\n const arr = [];\n for (let i = 0; i < obj.length; i++) {\n arr.push(cloneDataSource(obj[i]));\n }\n return arr;\n }\n if (typeof obj === 'object') {\n const clonedObj = {};\n // eslint-disable-next-line guard-for-in\n // eslint-disable-next-line no-restricted-syntax\n for (const prop in obj) {\n // Edge case handling for DataTable\n if (prop === 'data') {\n // eslint-disable-next-line no-underscore-dangle\n if (obj[prop] && obj[prop]._dataStore && purpose === 'clone') {\n clonedObj[prop] = obj[prop];\n // eslint-disable-next-line no-underscore-dangle\n } else if (obj[prop] && obj[prop]._dataStore && purpose === 'diff') {\n clonedObj[prop] = '-';\n } else {\n clonedObj[prop] = cloneDataSource(obj[prop]);\n }\n continue;\n }\n clonedObj[prop] = cloneDataSource(obj[prop]);\n }\n return clonedObj;\n }\n return undefined;\n}\n\nexport function attachListeners(THIS) {\n if (THIS.$listeners && typeof THIS.$listeners === 'object') {\n Object.keys(THIS.$listeners).forEach(event => {\n THIS.chartObj.addEventListener(event, e => {\n THIS.$emit(event, e);\n });\n });\n }\n}\n\nexport function createEvents(THIS) {\n const ret = {\n events: {}\n };\n if (THIS.$listeners && typeof THIS.$listeners === 'object') {\n Object.keys(THIS.$listeners).forEach(event => {\n ret.events[event] = e => {\n THIS.$emit(event, e);\n };\n });\n }\n return ret;\n}\n\nexport function setLastOptions(config, THIS) {\n THIS._oldOptions = Object.assign({}, config);\n}\n\nexport function getLastOptions(THIS) {\n return THIS._oldOptions;\n}\n\nexport function getOptions(This, optionsMap) {\n let config = {},\n THIS = This;\n for (let i in optionsMap) {\n if (THIS[i] !== undefined && THIS[i] !== null) {\n config[optionsMap[i]] = THIS[i];\n }\n }\n let options = Object.assign(Object.assign({}, THIS.options), config);\n return options;\n}\n\nexport function renderChart(This, FC) {\n let THIS = This,\n config = THIS.getOptions(),\n chartObj = THIS.chartObj;\n\n config.renderAt = this.containerID;\n THIS.setLastOptions(config);\n\n if (chartObj && chartObj.dispose) {\n chartObj.dispose();\n }\n const events = this.createEvents();\n config.events = Object.assign({}, config.events, events.events);\n\n THIS.chartObj = chartObj = new FC(config);\n chartObj.render();\n}\n\nexport function updateChart(This) {\n let THIS = This,\n config = THIS.getOptions(),\n prevConfig = THIS.getLastOptions(),\n chartObj = THIS.chartObj;\n\n if (\n config.width !== prevConfig.width ||\n config.height !== prevConfig.height\n ) {\n chartObj && chartObj.resizeTo(config.width, config.height);\n } else if (config.type !== prevConfig.type) {\n chartObj.chartType(config.type);\n } else {\n if (!checkIfDataTableExists(config.dataSource))\n chartObj.setChartData(config.dataSource, config.dataFormat);\n }\n\n THIS.setLastOptions(config);\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"commonjs2\":\"fusioncharts\",\"commonjs\":\"fusioncharts\",\"amd\":\"fusioncharts\",\"root\":\"FusionCharts\"}\n// module id = 2\n// module chunks = 0 1","import _FC from 'fusioncharts';\nconst { optionsMap, props } = require('./config.js');\nimport { addDep, checkIfDataTableExists, cloneDataSource } from './utils';\n\nexport default (FC, ...options) => {\n options &&\n options.forEach &&\n options.forEach(modules => {\n addDep(FC, _FC, modules);\n });\n return {\n name: 'fusioncharts',\n template: '
',\n render: function(h) {\n this.containerID = 'fc-' + this._uid;\n return h('div', {\n attrs: {\n id: this.containerID\n }\n });\n },\n props,\n methods: {\n attachListeners: function() {\n if (this.$listeners && typeof this.$listeners === 'object') {\n Object.keys(this.$listeners).forEach(event => {\n this.chartObj.addEventListener(event, e => {\n this.$emit(event, e);\n });\n });\n }\n },\n createEvents: function() {\n const ret = {\n events: {}\n };\n if (this.$listeners && typeof this.$listeners === 'object') {\n Object.keys(this.$listeners).forEach(event => {\n ret.events[event] = e => {\n this.$emit(event, e);\n };\n });\n }\n return ret;\n },\n setLastOptions: function(config) {\n this._oldOptions = Object.assign({}, config);\n },\n getLastOptions: function() {\n return this._oldOptions;\n },\n getOptions: function() {\n let config = {},\n THIS = this;\n for (let i in optionsMap) {\n if (THIS[i] !== undefined && THIS[i] !== null) {\n config[optionsMap[i]] = THIS[i];\n }\n }\n\n let options = Object.assign(Object.assign({}, THIS.options), config);\n\n return options;\n },\n renderChart: function() {\n let THIS = this,\n config = THIS.getOptions(),\n chartObj = THIS.chartObj;\n\n config.renderAt = this.containerID;\n THIS.setLastOptions(config);\n\n if (chartObj && chartObj.dispose) {\n chartObj.dispose();\n }\n const events = this.createEvents();\n config.events = Object.assign({}, config.events, events.events);\n\n let ds = config.dataSource || config.datasource;\n\n if (checkIfDataTableExists(ds))\n this.prevDataSource = cloneDataSource(ds, 'diff');\n else this.prevDataSource = cloneDataSource(ds, 'clone');\n\n THIS.chartObj = chartObj = new FC(config);\n chartObj.render();\n },\n updateChart: function() {\n let THIS = this,\n config = THIS.getOptions(),\n prevConfig = THIS.getLastOptions(),\n chartObj = THIS.chartObj;\n\n if (\n config.width !== prevConfig.width ||\n config.height !== prevConfig.height\n ) {\n chartObj && chartObj.resizeTo(config.width, config.height);\n } else if (config.type !== prevConfig.type) {\n chartObj.chartType(config.type);\n } else {\n if (!checkIfDataTableExists(config.dataSource))\n chartObj.setChartData(config.dataSource, config.dataFormat);\n }\n\n THIS.setLastOptions(config);\n }\n },\n watch: {\n type: function() {\n this.chartObj.chartType(this.type);\n },\n width: function() {\n this.chartObj.resizeTo(this.width, this.height);\n },\n height: function() {\n this.chartObj.resizeTo(this.width, this.height);\n },\n options: {\n handler: function() {\n this.updateChart();\n },\n deep: true\n },\n dataSource: {\n handler: function() {\n if (!checkIfDataTableExists(this.dataSource)) {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: true\n },\n datasource: {\n handler: function() {\n if (!checkIfDataTableExists(this.datasource)) {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: true\n },\n 'datasource.data': {\n handler: function(newVal, prevVal) {\n if (newVal !== prevVal) {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: false\n },\n 'dataSource.data': {\n handler: function(newVal, prevVal) {\n if (newVal !== prevVal) {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: false\n }\n },\n deactivated: function() {\n this.chartObj && this.chartObj.dispose();\n },\n beforeDestroy: function() {\n this.chartObj && this.chartObj.dispose();\n },\n mounted: function() {\n this.renderChart();\n },\n ready: function() {\n this.renderChart();\n },\n beforeUpdate: function() {\n const strPrevClonedDataSource = JSON.stringify(this.prevDataSource);\n const ds = this.datasource || this.dataSource || this.options.dataSource;\n const strCurrClonedDataSource = JSON.stringify(\n cloneDataSource(ds, 'diff')\n );\n if (strPrevClonedDataSource !== strCurrClonedDataSource) {\n this.prevDataSource = cloneDataSource(ds, 'diff');\n this.chartObj.setChartData(ds, this.dataFormat || this.dataformat);\n }\n }\n };\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/vue-fusioncharts-component.js"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 1d79467973bf9c34bb74","webpack:///./src/config.js","webpack:///./src/utils.js","webpack:///external {\"commonjs2\":\"fusioncharts\",\"commonjs\":\"fusioncharts\",\"amd\":\"fusioncharts\",\"root\":\"FusionCharts\"}","webpack:///./src/vue-fusioncharts-component.js"],"names":["optionsMap","type","id","width","height","dataFormat","dataSource","events","link","showDataLoadingMessage","showChartLoadingMessage","baseChartMessageFont","baseChartMessageFontSize","baseChartMessageColor","dataLoadStartMessage","dataLoadErrorMessage","dataInvalidMessage","dataEmptyMessage","typeNotSupportedMessage","loadMessage","renderErrorMessage","containerBackgroundColor","containerBackgroundOpacity","containerClassName","baseChartMessageImageHAlign","baseChartMessageImageVAlign","baseChartMessageImageAlpha","baseChartMessageImageScale","typeNotSupportedMessageImageHAlign","typeNotSupportedMessageImageVAlign","typeNotSupportedMessageImageAlpha","typeNotSupportedMessageImageScale","dataLoadErrorMessageImageHAlign","dataLoadErrorMessageImageVAlign","dataLoadErrorMessageImageAlpha","dataLoadErrorMessageImageScale","dataLoadStartMessageImageHAlign","dataLoadStartMessageImageVAlign","dataLoadStartMessageImageAlpha","dataLoadStartMessageImageScale","dataInvalidMessageImageHAlign","dataInvalidMessageImageVAlign","dataInvalidMessageImageAlpha","dataInvalidMessageImageScale","dataEmptyMessageImageHAlign","dataEmptyMessageImageVAlign","dataEmptyMessageImageAlpha","dataEmptyMessageImageScale","renderErrorMessageImageHAlign","renderErrorMessageImageVAlign","renderErrorMessageImageAlpha","renderErrorMessageImageScale","loadMessageImageHAlign","loadMessageImageVAlign","loadMessageImageAlpha","loadMessageImageScale","dataformat","datasource","showdataloadingmessage","showchartloadingmessage","basechartmessagefont","basechartmessagefontsize","basechartmessagecolor","dataloadstartmessage","dataloaderrormessage","datainvalidmessage","dataemptymessage","typenotsupportedmessage","loadmessage","rendererrormessage","containerbackgroundcolor","containerbackgroundopacity","containerclassname","basechartmessageimagehalign","basechartmessageimagevalign","basechartmessageimagealpha","basechartmessageimagescale","typenotsupportedmessageimagehalign","typenotsupportedmessageimagevalign","typenotsupportedmessageimagealpha","typenotsupportedmessageimagescale","dataloaderrormessageimagehalign","dataloaderrormessageimagevalign","dataloaderrormessageimagealpha","dataloaderrormessageimagescale","dataloadstartmessageimagehalign","dataloadstartmessageimagevalign","dataloadstartmessageimagealpha","dataloadstartmessageimagescale","datainvalidmessageimagehalign","datainvalidmessageimagevalign","datainvalidmessageimagealpha","datainvalidmessageimagescale","dataemptymessageimagehalign","dataemptymessageimagevalign","dataemptymessageimagealpha","dataemptymessageimagescale","rendererrormessageimagehalign","rendererrormessageimagevalign","rendererrormessageimagealpha","rendererrormessageimagescale","loadmessageimagehalign","loadmessageimagevalign","loadmessageimagealpha","loadmessageimagescale","props","options","Object","String","Boolean","Number","module","exports","checkIfDataTableExists","cloneDataSource","attachListeners","createEvents","setLastOptions","getLastOptions","getOptions","renderChart","updateChart","addDep","FC","_FC","modules","getName","getType","name","data","_dataStore","obj","purpose","undefined","Array","isArray","arr","i","length","push","clonedObj","prop","THIS","$listeners","keys","forEach","chartObj","addEventListener","event","$emit","e","ret","config","_oldOptions","assign","This","renderAt","containerID","dispose","render","prevConfig","resizeTo","chartType","setChartData","require","template","h","_uid","attrs","methods","ds","prevDataSource","watch","handler","deep","newVal","prevVal","series","_FC_","window","FusionCharts","JSON","parse","stringify","_data","schema","_schema","dataTable","DataStore","createDataTable","newDs","deactivated","beforeDestroy","mounted","ready","beforeUpdate","strPrevClonedDataSource","strCurrClonedDataSource"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA,mDAA2C,cAAc;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAA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D,EAAhB,EAAoB,MAApB,CAAtB;AACA;AACA;AACA;AACA,aAAKxB,QAAL,CAAciB,YAAd,CAA2BO,EAA3B,EAA+B,KAAKrK,UAAL,IAAmB,KAAKmD,UAAvD;AACD;AACF;AA9NI,GAAP;AAgOD,C","file":"index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"fusioncharts\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"fusioncharts\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueFusionChartsComponent\"] = factory(require(\"fusioncharts\"));\n\telse\n\t\troot[\"VueFusionChartsComponent\"] = factory(root[\"FusionCharts\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 3);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 1d79467973bf9c34bb74","const optionsMap = {\n type: 'type',\n id: 'id',\n width: 'width',\n height: 'height',\n dataFormat: 'dataFormat',\n dataSource: 'dataSource',\n events: 'events',\n link: 'link',\n showDataLoadingMessage: 'showDataLoadingMessage',\n showChartLoadingMessage: 'showChartLoadingMessage',\n baseChartMessageFont: 'baseChartMessageFont',\n baseChartMessageFontSize: 'baseChartMessageFontSize',\n baseChartMessageColor: 'baseChartMessageColor',\n dataLoadStartMessage: 'dataLoadStartMessage',\n dataLoadErrorMessage: 'dataLoadErrorMessage',\n dataInvalidMessage: 'dataInvalidMessage',\n dataEmptyMessage: 'dataEmptyMessage',\n typeNotSupportedMessage: 'typeNotSupportedMessage',\n loadMessage: 'loadMessage',\n renderErrorMessage: 'renderErrorMessage',\n containerBackgroundColor: 'containerBackgroundColor',\n containerBackgroundOpacity: 'containerBackgroundOpacity',\n containerClassName: 'containerClassName',\n baseChartMessageImageHAlign: 'baseChartMessageImageHAlign',\n baseChartMessageImageVAlign: 'baseChartMessageImageVAlign',\n baseChartMessageImageAlpha: 'baseChartMessageImageAlpha',\n baseChartMessageImageScale: 'baseChartMessageImageScale',\n typeNotSupportedMessageImageHAlign: 'typeNotSupportedMessageImageHAlign',\n typeNotSupportedMessageImageVAlign: 'typeNotSupportedMessageImageVAlign',\n typeNotSupportedMessageImageAlpha: 'typeNotSupportedMessageImageAlpha',\n typeNotSupportedMessageImageScale: 'typeNotSupportedMessageImageScale',\n dataLoadErrorMessageImageHAlign: 'dataLoadErrorMessageImageHAlign',\n dataLoadErrorMessageImageVAlign: 'dataLoadErrorMessageImageVAlign',\n dataLoadErrorMessageImageAlpha: 'dataLoadErrorMessageImageAlpha',\n dataLoadErrorMessageImageScale: 'dataLoadErrorMessageImageScale',\n dataLoadStartMessageImageHAlign: 'dataLoadStartMessageImageHAlign',\n dataLoadStartMessageImageVAlign: 'dataLoadStartMessageImageVAlign',\n dataLoadStartMessageImageAlpha: 'dataLoadStartMessageImageAlpha',\n dataLoadStartMessageImageScale: 'dataLoadStartMessageImageScale',\n dataInvalidMessageImageHAlign: 'dataInvalidMessageImageHAlign',\n dataInvalidMessageImageVAlign: 'dataInvalidMessageImageVAlign',\n dataInvalidMessageImageAlpha: 'dataInvalidMessageImageAlpha',\n dataInvalidMessageImageScale: 'dataInvalidMessageImageScale',\n dataEmptyMessageImageHAlign: 'dataEmptyMessageImageHAlign',\n dataEmptyMessageImageVAlign: 'dataEmptyMessageImageVAlign',\n dataEmptyMessageImageAlpha: 'dataEmptyMessageImageAlpha',\n dataEmptyMessageImageScale: 'dataEmptyMessageImageScale',\n renderErrorMessageImageHAlign: 'renderErrorMessageImageHAlign',\n renderErrorMessageImageVAlign: 'renderErrorMessageImageVAlign',\n renderErrorMessageImageAlpha: 'renderErrorMessageImageAlpha',\n renderErrorMessageImageScale: 'renderErrorMessageImageScale',\n loadMessageImageHAlign: 'loadMessageImageHAlign',\n loadMessageImageVAlign: 'loadMessageImageVAlign',\n loadMessageImageAlpha: 'loadMessageImageAlpha',\n loadMessageImageScale: 'loadMessageImageScale',\n ///////////////////////////////////////////////////////\n dataformat: 'dataFormat',\n datasource: 'dataSource',\n showdataloadingmessage: 'showDataLoadingMessage',\n showchartloadingmessage: 'showChartLoadingMessage',\n basechartmessagefont: 'baseChartMessageFont',\n basechartmessagefontsize: 'baseChartMessageFontSize',\n basechartmessagecolor: 'baseChartMessageColor',\n dataloadstartmessage: 'dataLoadStartMessage',\n dataloaderrormessage: 'dataLoadErrorMessage',\n datainvalidmessage: 'dataInvalidMessage',\n dataemptymessage: 'dataEmptyMessage',\n typenotsupportedmessage: 'typeNotSupportedMessage',\n loadmessage: 'loadMessage',\n rendererrormessage: 'renderErrorMessage',\n containerbackgroundcolor: 'containerBackgroundColor',\n containerbackgroundopacity: 'containerBackgroundOpacity',\n containerclassname: 'containerClassName',\n basechartmessageimagehalign: 'baseChartMessageImageHAlign',\n basechartmessageimagevalign: 'baseChartMessageImageVAlign',\n basechartmessageimagealpha: 'baseChartMessageImageAlpha',\n basechartmessageimagescale: 'baseChartMessageImageScale',\n typenotsupportedmessageimagehalign: 'typeNotSupportedMessageImageHAlign',\n typenotsupportedmessageimagevalign: 'typeNotSupportedMessageImageVAlign',\n typenotsupportedmessageimagealpha: 'typeNotSupportedMessageImageAlpha',\n typenotsupportedmessageimagescale: 'typeNotSupportedMessageImageScale',\n dataloaderrormessageimagehalign: 'dataLoadErrorMessageImageHAlign',\n dataloaderrormessageimagevalign: 'dataLoadErrorMessageImageVAlign',\n dataloaderrormessageimagealpha: 'dataLoadErrorMessageImageAlpha',\n dataloaderrormessageimagescale: 'dataLoadErrorMessageImageScale',\n dataloadstartmessageimagehalign: 'dataLoadStartMessageImageHAlign',\n dataloadstartmessageimagevalign: 'dataLoadStartMessageImageVAlign',\n dataloadstartmessageimagealpha: 'dataLoadStartMessageImageAlpha',\n dataloadstartmessageimagescale: 'dataLoadStartMessageImageScale',\n datainvalidmessageimagehalign: 'dataInvalidMessageImageHAlign',\n datainvalidmessageimagevalign: 'dataInvalidMessageImageVAlign',\n datainvalidmessageimagealpha: 'dataInvalidMessageImageAlpha',\n datainvalidmessageimagescale: 'dataInvalidMessageImageScale',\n dataemptymessageimagehalign: 'dataEmptyMessageImageHAlign',\n dataemptymessageimagevalign: 'dataEmptyMessageImageVAlign',\n dataemptymessageimagealpha: 'dataEmptyMessageImageAlpha',\n dataemptymessageimagescale: 'dataEmptyMessageImageScale',\n rendererrormessageimagehalign: 'renderErrorMessageImageHAlign',\n rendererrormessageimagevalign: 'renderErrorMessageImageVAlign',\n rendererrormessageimagealpha: 'renderErrorMessageImageAlpha',\n rendererrormessageimagescale: 'renderErrorMessageImageScale',\n loadmessageimagehalign: 'loadMessageImageHAlign',\n loadmessageimagevalign: 'loadMessageImageVAlign',\n loadmessageimagealpha: 'loadMessageImageAlpha',\n loadmessageimagescale: 'loadMessageImageScale'\n};\n\nconst props = {\n options: Object,\n type: String,\n id: String,\n width: '',\n height: '',\n dataFormat: String,\n dataSource: '',\n events: Object,\n link: Object,\n showDataLoadingMessage: Boolean,\n showChartLoadingMessage: Boolean,\n baseChartMessageFont: String,\n baseChartMessageFontSize: String,\n baseChartMessageColor: String,\n dataLoadStartMessage: String,\n dataLoadErrorMessage: String,\n dataInvalidMessage: String,\n dataEmptyMessage: String,\n typeNotSupportedMessage: String,\n loadMessage: String,\n renderErrorMessage: String,\n containerBackgroundColor: String,\n containerBackgroundOpacity: Number,\n containerClassName: String,\n baseChartMessageImageHAlign: String,\n baseChartMessageImageVAlign: String,\n baseChartMessageImageAlpha: Number,\n baseChartMessageImageScale: Number,\n typeNotSupportedMessageImageHAlign: String,\n typeNotSupportedMessageImageVAlign: String,\n typeNotSupportedMessageImageAlpha: Number,\n typeNotSupportedMessageImageScale: Number,\n dataLoadErrorMessageImageHAlign: String,\n dataLoadErrorMessageImageVAlign: String,\n dataLoadErrorMessageImageAlpha: Number,\n dataLoadErrorMessageImageScale: Number,\n dataLoadStartMessageImageHAlign: String,\n dataLoadStartMessageImageVAlign: String,\n dataLoadStartMessageImageAlpha: Number,\n dataLoadStartMessageImageScale: Number,\n dataInvalidMessageImageHAlign: String,\n dataInvalidMessageImageVAlign: String,\n dataInvalidMessageImageAlpha: Number,\n dataInvalidMessageImageScale: Number,\n dataEmptyMessageImageHAlign: String,\n dataEmptyMessageImageVAlign: String,\n dataEmptyMessageImageAlpha: Number,\n dataEmptyMessageImageScale: Number,\n renderErrorMessageImageHAlign: String,\n renderErrorMessageImageVAlign: String,\n renderErrorMessageImageAlpha: Number,\n renderErrorMessageImageScale: Number,\n loadMessageImageHAlign: String,\n loadMessageImageVAlign: String,\n loadMessageImageAlpha: Number,\n loadMessageImageScale: Number,\n ///////////////////////////////////////////////\n dataformat: String,\n datasource: '',\n showdataloadingmessage: Boolean,\n showchartloadingmessage: Boolean,\n basechartmessagefont: String,\n basechartmessagefontsize: String,\n basechartmessagecolor: String,\n dataloadstartmessage: String,\n dataloaderrormessage: String,\n datainvalidmessage: String,\n dataemptymessage: String,\n typenotsupportedmessage: String,\n loadmessage: String,\n rendererrormessage: String,\n containerbackgroundcolor: String,\n containerbackgroundopacity: Number,\n containerclassname: String,\n basechartmessageimagehalign: String,\n basechartmessageimagevalign: String,\n basechartmessageimagealpha: Number,\n basechartmessageimagescale: Number,\n typenotsupportedmessageimagehalign: String,\n typenotsupportedmessageimagevalign: String,\n typenotsupportedmessageimagealpha: Number,\n typenotsupportedmessageimagescale: Number,\n dataloaderrormessageimagehalign: String,\n dataloaderrormessageimagevalign: String,\n dataloaderrormessageimagealpha: Number,\n dataloaderrormessageimagescale: Number,\n dataloadstartmessageimagehalign: String,\n dataloadstartmessageimagevalign: String,\n dataloadstartmessageimagealpha: Number,\n dataloadstartmessageimagescale: Number,\n datainvalidmessageimagehalign: String,\n datainvalidmessageimagevalign: String,\n datainvalidmessageimagealpha: Number,\n datainvalidmessageimagescale: Number,\n dataemptymessageimagehalign: String,\n dataemptymessageimagevalign: String,\n dataemptymessageimagealpha: Number,\n dataemptymessageimagescale: Number,\n rendererrormessageimagehalign: String,\n rendererrormessageimagevalign: String,\n rendererrormessageimagealpha: Number,\n rendererrormessageimagescale: Number,\n loadmessageimagehalign: String,\n loadmessageimagevalign: String,\n loadmessageimagealpha: Number,\n loadmessageimagescale: Number\n};\n\nmodule.exports = { optionsMap, props };\n\n\n\n// WEBPACK FOOTER //\n// ./src/config.js","export const addDep = (FC, _FC, modules) => {\n if (FC) {\n if (\n (modules.getName && modules.getType) ||\n (modules.name && modules.type)\n ) {\n FC.addDep(modules);\n } else {\n modules(FC);\n }\n } else {\n modules(_FC);\n }\n};\n\nexport function checkIfDataTableExists(dataSource) {\n // eslint-disable-next-line no-underscore-dangle\n if (dataSource && dataSource.data && dataSource.data._dataStore) {\n return true;\n }\n return false;\n}\n\nexport function cloneDataSource(obj, purpose = 'clone') {\n const type = typeof obj;\n if (\n type === 'string' ||\n type === 'number' ||\n type === 'function' ||\n type === 'boolean'\n ) {\n return obj;\n }\n if (obj === null || obj === undefined) {\n return obj;\n }\n if (Array.isArray(obj)) {\n const arr = [];\n for (let i = 0; i < obj.length; i++) {\n arr.push(cloneDataSource(obj[i]));\n }\n return arr;\n }\n if (typeof obj === 'object') {\n const clonedObj = {};\n // eslint-disable-next-line guard-for-in\n // eslint-disable-next-line no-restricted-syntax\n for (const prop in obj) {\n // Edge case handling for DataTable\n if (prop === 'data') {\n // eslint-disable-next-line no-underscore-dangle\n if (obj[prop] && obj[prop]._dataStore && purpose === 'clone') {\n clonedObj[prop] = obj[prop];\n // eslint-disable-next-line no-underscore-dangle\n } else if (obj[prop] && obj[prop]._dataStore && purpose === 'diff') {\n clonedObj[prop] = '-';\n } else {\n clonedObj[prop] = cloneDataSource(obj[prop]);\n }\n continue;\n }\n clonedObj[prop] = cloneDataSource(obj[prop]);\n }\n return clonedObj;\n }\n return undefined;\n}\n\nexport function attachListeners(THIS) {\n if (THIS.$listeners && typeof THIS.$listeners === 'object') {\n Object.keys(THIS.$listeners).forEach(event => {\n THIS.chartObj.addEventListener(event, e => {\n THIS.$emit(event, e);\n });\n });\n }\n}\n\nexport function createEvents(THIS) {\n const ret = {\n events: {}\n };\n if (THIS.$listeners && typeof THIS.$listeners === 'object') {\n Object.keys(THIS.$listeners).forEach(event => {\n ret.events[event] = e => {\n THIS.$emit(event, e);\n };\n });\n }\n return ret;\n}\n\nexport function setLastOptions(config, THIS) {\n THIS._oldOptions = Object.assign({}, config);\n}\n\nexport function getLastOptions(THIS) {\n return THIS._oldOptions;\n}\n\nexport function getOptions(This, optionsMap) {\n let config = {},\n THIS = This;\n for (let i in optionsMap) {\n if (THIS[i] !== undefined && THIS[i] !== null) {\n config[optionsMap[i]] = THIS[i];\n }\n }\n let options = Object.assign(Object.assign({}, THIS.options), config);\n return options;\n}\n\nexport function renderChart(This, FC) {\n let THIS = This,\n config = THIS.getOptions(),\n chartObj = THIS.chartObj;\n\n config.renderAt = this.containerID;\n THIS.setLastOptions(config);\n\n if (chartObj && chartObj.dispose) {\n chartObj.dispose();\n }\n const events = this.createEvents();\n config.events = Object.assign({}, config.events, events.events);\n\n THIS.chartObj = chartObj = new FC(config);\n chartObj.render();\n}\n\nexport function updateChart(This) {\n let THIS = This,\n config = THIS.getOptions(),\n prevConfig = THIS.getLastOptions(),\n chartObj = THIS.chartObj;\n\n if (\n config.width !== prevConfig.width ||\n config.height !== prevConfig.height\n ) {\n chartObj && chartObj.resizeTo(config.width, config.height);\n } else if (config.type !== prevConfig.type) {\n chartObj.chartType(config.type);\n } else {\n if (!checkIfDataTableExists(config.dataSource))\n chartObj.setChartData(config.dataSource, config.dataFormat);\n }\n\n THIS.setLastOptions(config);\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"commonjs2\":\"fusioncharts\",\"commonjs\":\"fusioncharts\",\"amd\":\"fusioncharts\",\"root\":\"FusionCharts\"}\n// module id = 2\n// module chunks = 0 1","import _FC from 'fusioncharts';\nconst { optionsMap, props } = require('./config.js');\nimport { addDep, checkIfDataTableExists, cloneDataSource } from './utils';\n\nexport default (FC, ...options) => {\n options &&\n options.forEach &&\n options.forEach(modules => {\n addDep(FC, _FC, modules);\n });\n return {\n name: 'fusioncharts',\n template: '
',\n render: function(h) {\n this.containerID = 'fc-' + this._uid;\n return h('div', {\n attrs: {\n id: this.containerID\n }\n });\n },\n props,\n methods: {\n attachListeners: function() {\n if (this.$listeners && typeof this.$listeners === 'object') {\n Object.keys(this.$listeners).forEach(event => {\n this.chartObj.addEventListener(event, e => {\n this.$emit(event, e);\n });\n });\n }\n },\n createEvents: function() {\n const ret = {\n events: {}\n };\n if (this.$listeners && typeof this.$listeners === 'object') {\n Object.keys(this.$listeners).forEach(event => {\n ret.events[event] = e => {\n this.$emit(event, e);\n };\n });\n }\n return ret;\n },\n setLastOptions: function(config) {\n this._oldOptions = Object.assign({}, config);\n },\n getLastOptions: function() {\n return this._oldOptions;\n },\n getOptions: function() {\n let config = {},\n THIS = this;\n for (let i in optionsMap) {\n if (THIS[i] !== undefined && THIS[i] !== null) {\n config[optionsMap[i]] = THIS[i];\n }\n }\n\n let options = Object.assign(Object.assign({}, THIS.options), config);\n\n return options;\n },\n renderChart: function() {\n let THIS = this,\n config = THIS.getOptions(),\n chartObj = THIS.chartObj;\n\n config.renderAt = this.containerID;\n THIS.setLastOptions(config);\n\n if (chartObj && chartObj.dispose) {\n chartObj.dispose();\n }\n const events = this.createEvents();\n config.events = Object.assign({}, config.events, events.events);\n\n let ds = config.dataSource || config.datasource;\n\n if (checkIfDataTableExists(ds))\n this.prevDataSource = cloneDataSource(ds, 'diff');\n else this.prevDataSource = cloneDataSource(ds, 'clone');\n\n THIS.chartObj = chartObj = new FC(config);\n chartObj.render();\n },\n updateChart: function() {\n let THIS = this,\n config = THIS.getOptions(),\n prevConfig = THIS.getLastOptions(),\n chartObj = THIS.chartObj;\n\n if (\n config.width !== prevConfig.width ||\n config.height !== prevConfig.height\n ) {\n chartObj && chartObj.resizeTo(config.width, config.height);\n } else if (config.type !== prevConfig.type) {\n chartObj.chartType(config.type);\n } else {\n if (!checkIfDataTableExists(config.dataSource))\n chartObj.setChartData(config.dataSource, config.dataFormat);\n }\n\n THIS.setLastOptions(config);\n }\n },\n watch: {\n type: function() {\n this.chartObj.chartType(this.type);\n },\n width: function() {\n this.chartObj.resizeTo(this.width, this.height);\n },\n height: function() {\n this.chartObj.resizeTo(this.width, this.height);\n },\n options: {\n handler: function() {\n this.updateChart();\n },\n deep: true\n },\n dataSource: {\n handler: function() {\n if (!checkIfDataTableExists(this.dataSource)) {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: true\n },\n datasource: {\n handler: function() {\n if (!checkIfDataTableExists(this.datasource)) {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: true\n },\n 'datasource.data': {\n handler: function(newVal, prevVal) {\n if (newVal !== prevVal) {\n // SPECIAL CASE: When DataSource has series attribute, vue internally goes into Infinite recursion\n // specifically on _traverse method. This code is written to tackle that issue. In future a much more\n // concrete solution is required.\n if (this.datasource && this.datasource.series) {\n const _FC_ = _FC || window.FusionCharts;\n const data = JSON.parse(JSON.stringify(newVal._data));\n const schema = JSON.parse(JSON.stringify(newVal._schema));\n const dataTable = new _FC_.DataStore().createDataTable(\n data,\n schema\n );\n const newDs = Object.assign(\n {},\n this.datasource || this.dataSource\n );\n newDs.data = dataTable;\n this.chartObj.setChartData(\n newDs,\n this.dataFormat || this.dataformat\n );\n return null;\n }\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: false\n },\n 'dataSource.data': {\n handler: function(newVal, prevVal) {\n if (newVal !== prevVal) {\n if (this.dataSource && this.dataSource.series) {\n const _FC_ = _FC || window.FusionCharts;\n const data = JSON.parse(JSON.stringify(newVal._data));\n const schema = JSON.parse(JSON.stringify(newVal._schema));\n const dataTable = new _FC_.DataStore().createDataTable(\n data,\n schema\n );\n let newDs = Object.assign({}, this.datasource || this.dataSource);\n newDs.data = dataTable;\n this.chartObj.setChartData(\n newDs,\n this.dataFormat || this.dataformat\n );\n return null;\n }\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: false\n }\n },\n deactivated: function() {\n this.chartObj && this.chartObj.dispose();\n },\n beforeDestroy: function() {\n this.chartObj && this.chartObj.dispose();\n },\n mounted: function() {\n this.renderChart();\n },\n ready: function() {\n this.renderChart();\n },\n beforeUpdate: function() {\n const strPrevClonedDataSource = JSON.stringify(this.prevDataSource);\n const ds = this.datasource || this.dataSource || this.options.dataSource;\n const strCurrClonedDataSource = JSON.stringify(\n cloneDataSource(ds, 'diff')\n );\n if (strPrevClonedDataSource !== strCurrClonedDataSource) {\n this.prevDataSource = cloneDataSource(ds, 'diff');\n // if (ds.series) {\n // return null;\n // }\n this.chartObj.setChartData(ds, this.dataFormat || this.dataformat);\n }\n }\n };\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/vue-fusioncharts-component.js"],"sourceRoot":""} \ No newline at end of file diff --git a/component/index.min.js b/component/index.min.js index 30b9da1..dc967c4 100644 --- a/component/index.min.js +++ b/component/index.min.js @@ -1 +1 @@ -!function(a,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("fusioncharts")):"function"==typeof define&&define.amd?define(["fusioncharts"],e):"object"==typeof exports?exports.VueFusionChartsComponent=e(require("fusioncharts")):a.VueFusionChartsComponent=e(a.FusionCharts)}(this,function(a){return function(a){function e(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return a[s].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var t={};return e.m=a,e.c=t,e.i=function(a){return a},e.d=function(a,t,s){e.o(a,t)||Object.defineProperty(a,t,{configurable:!1,enumerable:!0,get:s})},e.n=function(a){var t=a&&a.__esModule?function(){return a.default}:function(){return a};return e.d(t,"a",t),t},e.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},e.p="",e(e.s=3)}([function(a,e,t){"use strict";var s={type:"type",id:"id",width:"width",height:"height",dataFormat:"dataFormat",dataSource:"dataSource",events:"events",link:"link",showDataLoadingMessage:"showDataLoadingMessage",showChartLoadingMessage:"showChartLoadingMessage",baseChartMessageFont:"baseChartMessageFont",baseChartMessageFontSize:"baseChartMessageFontSize",baseChartMessageColor:"baseChartMessageColor",dataLoadStartMessage:"dataLoadStartMessage",dataLoadErrorMessage:"dataLoadErrorMessage",dataInvalidMessage:"dataInvalidMessage",dataEmptyMessage:"dataEmptyMessage",typeNotSupportedMessage:"typeNotSupportedMessage",loadMessage:"loadMessage",renderErrorMessage:"renderErrorMessage",containerBackgroundColor:"containerBackgroundColor",containerBackgroundOpacity:"containerBackgroundOpacity",containerClassName:"containerClassName",baseChartMessageImageHAlign:"baseChartMessageImageHAlign",baseChartMessageImageVAlign:"baseChartMessageImageVAlign",baseChartMessageImageAlpha:"baseChartMessageImageAlpha",baseChartMessageImageScale:"baseChartMessageImageScale",typeNotSupportedMessageImageHAlign:"typeNotSupportedMessageImageHAlign",typeNotSupportedMessageImageVAlign:"typeNotSupportedMessageImageVAlign",typeNotSupportedMessageImageAlpha:"typeNotSupportedMessageImageAlpha",typeNotSupportedMessageImageScale:"typeNotSupportedMessageImageScale",dataLoadErrorMessageImageHAlign:"dataLoadErrorMessageImageHAlign",dataLoadErrorMessageImageVAlign:"dataLoadErrorMessageImageVAlign",dataLoadErrorMessageImageAlpha:"dataLoadErrorMessageImageAlpha",dataLoadErrorMessageImageScale:"dataLoadErrorMessageImageScale",dataLoadStartMessageImageHAlign:"dataLoadStartMessageImageHAlign",dataLoadStartMessageImageVAlign:"dataLoadStartMessageImageVAlign",dataLoadStartMessageImageAlpha:"dataLoadStartMessageImageAlpha",dataLoadStartMessageImageScale:"dataLoadStartMessageImageScale",dataInvalidMessageImageHAlign:"dataInvalidMessageImageHAlign",dataInvalidMessageImageVAlign:"dataInvalidMessageImageVAlign",dataInvalidMessageImageAlpha:"dataInvalidMessageImageAlpha",dataInvalidMessageImageScale:"dataInvalidMessageImageScale",dataEmptyMessageImageHAlign:"dataEmptyMessageImageHAlign",dataEmptyMessageImageVAlign:"dataEmptyMessageImageVAlign",dataEmptyMessageImageAlpha:"dataEmptyMessageImageAlpha",dataEmptyMessageImageScale:"dataEmptyMessageImageScale",renderErrorMessageImageHAlign:"renderErrorMessageImageHAlign",renderErrorMessageImageVAlign:"renderErrorMessageImageVAlign",renderErrorMessageImageAlpha:"renderErrorMessageImageAlpha",renderErrorMessageImageScale:"renderErrorMessageImageScale",loadMessageImageHAlign:"loadMessageImageHAlign",loadMessageImageVAlign:"loadMessageImageVAlign",loadMessageImageAlpha:"loadMessageImageAlpha",loadMessageImageScale:"loadMessageImageScale",dataformat:"dataFormat",datasource:"dataSource",showdataloadingmessage:"showDataLoadingMessage",showchartloadingmessage:"showChartLoadingMessage",basechartmessagefont:"baseChartMessageFont",basechartmessagefontsize:"baseChartMessageFontSize",basechartmessagecolor:"baseChartMessageColor",dataloadstartmessage:"dataLoadStartMessage",dataloaderrormessage:"dataLoadErrorMessage",datainvalidmessage:"dataInvalidMessage",dataemptymessage:"dataEmptyMessage",typenotsupportedmessage:"typeNotSupportedMessage",loadmessage:"loadMessage",rendererrormessage:"renderErrorMessage",containerbackgroundcolor:"containerBackgroundColor",containerbackgroundopacity:"containerBackgroundOpacity",containerclassname:"containerClassName",basechartmessageimagehalign:"baseChartMessageImageHAlign",basechartmessageimagevalign:"baseChartMessageImageVAlign",basechartmessageimagealpha:"baseChartMessageImageAlpha",basechartmessageimagescale:"baseChartMessageImageScale",typenotsupportedmessageimagehalign:"typeNotSupportedMessageImageHAlign",typenotsupportedmessageimagevalign:"typeNotSupportedMessageImageVAlign",typenotsupportedmessageimagealpha:"typeNotSupportedMessageImageAlpha",typenotsupportedmessageimagescale:"typeNotSupportedMessageImageScale",dataloaderrormessageimagehalign:"dataLoadErrorMessageImageHAlign",dataloaderrormessageimagevalign:"dataLoadErrorMessageImageVAlign",dataloaderrormessageimagealpha:"dataLoadErrorMessageImageAlpha",dataloaderrormessageimagescale:"dataLoadErrorMessageImageScale",dataloadstartmessageimagehalign:"dataLoadStartMessageImageHAlign",dataloadstartmessageimagevalign:"dataLoadStartMessageImageVAlign",dataloadstartmessageimagealpha:"dataLoadStartMessageImageAlpha",dataloadstartmessageimagescale:"dataLoadStartMessageImageScale",datainvalidmessageimagehalign:"dataInvalidMessageImageHAlign",datainvalidmessageimagevalign:"dataInvalidMessageImageVAlign",datainvalidmessageimagealpha:"dataInvalidMessageImageAlpha",datainvalidmessageimagescale:"dataInvalidMessageImageScale",dataemptymessageimagehalign:"dataEmptyMessageImageHAlign",dataemptymessageimagevalign:"dataEmptyMessageImageVAlign",dataemptymessageimagealpha:"dataEmptyMessageImageAlpha",dataemptymessageimagescale:"dataEmptyMessageImageScale",rendererrormessageimagehalign:"renderErrorMessageImageHAlign",rendererrormessageimagevalign:"renderErrorMessageImageVAlign",rendererrormessageimagealpha:"renderErrorMessageImageAlpha",rendererrormessageimagescale:"renderErrorMessageImageScale",loadmessageimagehalign:"loadMessageImageHAlign",loadmessageimagevalign:"loadMessageImageVAlign",loadmessageimagealpha:"loadMessageImageAlpha",loadmessageimagescale:"loadMessageImageScale"},r={options:Object,type:String,id:String,width:"",height:"",dataFormat:String,dataSource:"",events:Object,link:Object,showDataLoadingMessage:Boolean,showChartLoadingMessage:Boolean,baseChartMessageFont:String,baseChartMessageFontSize:String,baseChartMessageColor:String,dataLoadStartMessage:String,dataLoadErrorMessage:String,dataInvalidMessage:String,dataEmptyMessage:String,typeNotSupportedMessage:String,loadMessage:String,renderErrorMessage:String,containerBackgroundColor:String,containerBackgroundOpacity:Number,containerClassName:String,baseChartMessageImageHAlign:String,baseChartMessageImageVAlign:String,baseChartMessageImageAlpha:Number,baseChartMessageImageScale:Number,typeNotSupportedMessageImageHAlign:String,typeNotSupportedMessageImageVAlign:String,typeNotSupportedMessageImageAlpha:Number,typeNotSupportedMessageImageScale:Number,dataLoadErrorMessageImageHAlign:String,dataLoadErrorMessageImageVAlign:String,dataLoadErrorMessageImageAlpha:Number,dataLoadErrorMessageImageScale:Number,dataLoadStartMessageImageHAlign:String,dataLoadStartMessageImageVAlign:String,dataLoadStartMessageImageAlpha:Number,dataLoadStartMessageImageScale:Number,dataInvalidMessageImageHAlign:String,dataInvalidMessageImageVAlign:String,dataInvalidMessageImageAlpha:Number,dataInvalidMessageImageScale:Number,dataEmptyMessageImageHAlign:String,dataEmptyMessageImageVAlign:String,dataEmptyMessageImageAlpha:Number,dataEmptyMessageImageScale:Number,renderErrorMessageImageHAlign:String,renderErrorMessageImageVAlign:String,renderErrorMessageImageAlpha:Number,renderErrorMessageImageScale:Number,loadMessageImageHAlign:String,loadMessageImageVAlign:String,loadMessageImageAlpha:Number,loadMessageImageScale:Number,dataformat:String,datasource:"",showdataloadingmessage:Boolean,showchartloadingmessage:Boolean,basechartmessagefont:String,basechartmessagefontsize:String,basechartmessagecolor:String,dataloadstartmessage:String,dataloaderrormessage:String,datainvalidmessage:String,dataemptymessage:String,typenotsupportedmessage:String,loadmessage:String,rendererrormessage:String,containerbackgroundcolor:String,containerbackgroundopacity:Number,containerclassname:String,basechartmessageimagehalign:String,basechartmessageimagevalign:String,basechartmessageimagealpha:Number,basechartmessageimagescale:Number,typenotsupportedmessageimagehalign:String,typenotsupportedmessageimagevalign:String,typenotsupportedmessageimagealpha:Number,typenotsupportedmessageimagescale:Number,dataloaderrormessageimagehalign:String,dataloaderrormessageimagevalign:String,dataloaderrormessageimagealpha:Number,dataloaderrormessageimagescale:Number,dataloadstartmessageimagehalign:String,dataloadstartmessageimagevalign:String,dataloadstartmessageimagealpha:Number,dataloadstartmessageimagescale:Number,datainvalidmessageimagehalign:String,datainvalidmessageimagevalign:String,datainvalidmessageimagealpha:Number,datainvalidmessageimagescale:Number,dataemptymessageimagehalign:String,dataemptymessageimagevalign:String,dataemptymessageimagealpha:Number,dataemptymessageimagescale:Number,rendererrormessageimagehalign:String,rendererrormessageimagevalign:String,rendererrormessageimagealpha:Number,rendererrormessageimagescale:Number,loadmessageimagehalign:String,loadmessageimagevalign:String,loadmessageimagealpha:Number,loadmessageimagescale:Number};a.exports={optionsMap:s,props:r}},function(a,e,t){"use strict";function s(a){return!!(a&&a.data&&a.data._dataStore)}function r(a){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"clone",t=void 0===a?"undefined":c(a);if("string"===t||"number"===t||"function"===t||"boolean"===t)return a;if(null===a||void 0===a)return a;if(Array.isArray(a)){for(var s=[],g=0;g1?e-1:0),r=1;r",render:function(a){return this.containerID="fc-"+this._uid,a("div",{attrs:{id:this.containerID}})},props:d,methods:{attachListeners:function(){var a=this;this.$listeners&&"object"===s(this.$listeners)&&Object.keys(this.$listeners).forEach(function(e){a.chartObj.addEventListener(e,function(t){a.$emit(e,t)})})},createEvents:function(){var a=this,e={events:{}};return this.$listeners&&"object"===s(this.$listeners)&&Object.keys(this.$listeners).forEach(function(t){e.events[t]=function(e){a.$emit(t,e)}}),e},setLastOptions:function(a){this._oldOptions=Object.assign({},a)},getLastOptions:function(){return this._oldOptions},getOptions:function(){var a={},e=this;for(var t in i)void 0!==e[t]&&null!==e[t]&&(a[i[t]]=e[t]);return Object.assign(Object.assign({},e.options),a)},renderChart:function(){var e=this,t=e.getOptions(),s=e.chartObj;t.renderAt=this.containerID,e.setLastOptions(t),s&&s.dispose&&s.dispose();var r=this.createEvents();t.events=Object.assign({},t.events,r.events);var g=t.dataSource||t.datasource;(0,n.checkIfDataTableExists)(g)?this.prevDataSource=(0,n.cloneDataSource)(g,"diff"):this.prevDataSource=(0,n.cloneDataSource)(g,"clone"),e.chartObj=s=new a(t),s.render()},updateChart:function(){var a=this,e=a.getOptions(),t=a.getLastOptions(),s=a.chartObj;e.width!==t.width||e.height!==t.height?s&&s.resizeTo(e.width,e.height):e.type!==t.type?s.chartType(e.type):(0,n.checkIfDataTableExists)(e.dataSource)||s.setChartData(e.dataSource,e.dataFormat),a.setLastOptions(e)}},watch:{type:function(){this.chartObj.chartType(this.type)},width:function(){this.chartObj.resizeTo(this.width,this.height)},height:function(){this.chartObj.resizeTo(this.width,this.height)},options:{handler:function(){this.updateChart()},deep:!0},dataSource:{handler:function(){(0,n.checkIfDataTableExists)(this.dataSource)||this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},datasource:{handler:function(){(0,n.checkIfDataTableExists)(this.datasource)||this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},"datasource.data":{handler:function(a,e){a!==e&&this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!1},"dataSource.data":{handler:function(a,e){a!==e&&this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!1}},deactivated:function(){this.chartObj&&this.chartObj.dispose()},beforeDestroy:function(){this.chartObj&&this.chartObj.dispose()},mounted:function(){this.renderChart()},ready:function(){this.renderChart()},beforeUpdate:function(){var a=JSON.stringify(this.prevDataSource),e=this.datasource||this.dataSource||this.options.dataSource;a!==JSON.stringify((0,n.cloneDataSource)(e,"diff"))&&(this.prevDataSource=(0,n.cloneDataSource)(e,"diff"),this.chartObj.setChartData(e,this.dataFormat||this.dataformat))}}},a.exports=e.default}])}); \ No newline at end of file +!function(a,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("fusioncharts")):"function"==typeof define&&define.amd?define(["fusioncharts"],e):"object"==typeof exports?exports.VueFusionChartsComponent=e(require("fusioncharts")):a.VueFusionChartsComponent=e(a.FusionCharts)}(this,function(a){return function(a){function e(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return a[s].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var t={};return e.m=a,e.c=t,e.i=function(a){return a},e.d=function(a,t,s){e.o(a,t)||Object.defineProperty(a,t,{configurable:!1,enumerable:!0,get:s})},e.n=function(a){var t=a&&a.__esModule?function(){return a.default}:function(){return a};return e.d(t,"a",t),t},e.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},e.p="",e(e.s=3)}([function(a,e,t){"use strict";var s={type:"type",id:"id",width:"width",height:"height",dataFormat:"dataFormat",dataSource:"dataSource",events:"events",link:"link",showDataLoadingMessage:"showDataLoadingMessage",showChartLoadingMessage:"showChartLoadingMessage",baseChartMessageFont:"baseChartMessageFont",baseChartMessageFontSize:"baseChartMessageFontSize",baseChartMessageColor:"baseChartMessageColor",dataLoadStartMessage:"dataLoadStartMessage",dataLoadErrorMessage:"dataLoadErrorMessage",dataInvalidMessage:"dataInvalidMessage",dataEmptyMessage:"dataEmptyMessage",typeNotSupportedMessage:"typeNotSupportedMessage",loadMessage:"loadMessage",renderErrorMessage:"renderErrorMessage",containerBackgroundColor:"containerBackgroundColor",containerBackgroundOpacity:"containerBackgroundOpacity",containerClassName:"containerClassName",baseChartMessageImageHAlign:"baseChartMessageImageHAlign",baseChartMessageImageVAlign:"baseChartMessageImageVAlign",baseChartMessageImageAlpha:"baseChartMessageImageAlpha",baseChartMessageImageScale:"baseChartMessageImageScale",typeNotSupportedMessageImageHAlign:"typeNotSupportedMessageImageHAlign",typeNotSupportedMessageImageVAlign:"typeNotSupportedMessageImageVAlign",typeNotSupportedMessageImageAlpha:"typeNotSupportedMessageImageAlpha",typeNotSupportedMessageImageScale:"typeNotSupportedMessageImageScale",dataLoadErrorMessageImageHAlign:"dataLoadErrorMessageImageHAlign",dataLoadErrorMessageImageVAlign:"dataLoadErrorMessageImageVAlign",dataLoadErrorMessageImageAlpha:"dataLoadErrorMessageImageAlpha",dataLoadErrorMessageImageScale:"dataLoadErrorMessageImageScale",dataLoadStartMessageImageHAlign:"dataLoadStartMessageImageHAlign",dataLoadStartMessageImageVAlign:"dataLoadStartMessageImageVAlign",dataLoadStartMessageImageAlpha:"dataLoadStartMessageImageAlpha",dataLoadStartMessageImageScale:"dataLoadStartMessageImageScale",dataInvalidMessageImageHAlign:"dataInvalidMessageImageHAlign",dataInvalidMessageImageVAlign:"dataInvalidMessageImageVAlign",dataInvalidMessageImageAlpha:"dataInvalidMessageImageAlpha",dataInvalidMessageImageScale:"dataInvalidMessageImageScale",dataEmptyMessageImageHAlign:"dataEmptyMessageImageHAlign",dataEmptyMessageImageVAlign:"dataEmptyMessageImageVAlign",dataEmptyMessageImageAlpha:"dataEmptyMessageImageAlpha",dataEmptyMessageImageScale:"dataEmptyMessageImageScale",renderErrorMessageImageHAlign:"renderErrorMessageImageHAlign",renderErrorMessageImageVAlign:"renderErrorMessageImageVAlign",renderErrorMessageImageAlpha:"renderErrorMessageImageAlpha",renderErrorMessageImageScale:"renderErrorMessageImageScale",loadMessageImageHAlign:"loadMessageImageHAlign",loadMessageImageVAlign:"loadMessageImageVAlign",loadMessageImageAlpha:"loadMessageImageAlpha",loadMessageImageScale:"loadMessageImageScale",dataformat:"dataFormat",datasource:"dataSource",showdataloadingmessage:"showDataLoadingMessage",showchartloadingmessage:"showChartLoadingMessage",basechartmessagefont:"baseChartMessageFont",basechartmessagefontsize:"baseChartMessageFontSize",basechartmessagecolor:"baseChartMessageColor",dataloadstartmessage:"dataLoadStartMessage",dataloaderrormessage:"dataLoadErrorMessage",datainvalidmessage:"dataInvalidMessage",dataemptymessage:"dataEmptyMessage",typenotsupportedmessage:"typeNotSupportedMessage",loadmessage:"loadMessage",rendererrormessage:"renderErrorMessage",containerbackgroundcolor:"containerBackgroundColor",containerbackgroundopacity:"containerBackgroundOpacity",containerclassname:"containerClassName",basechartmessageimagehalign:"baseChartMessageImageHAlign",basechartmessageimagevalign:"baseChartMessageImageVAlign",basechartmessageimagealpha:"baseChartMessageImageAlpha",basechartmessageimagescale:"baseChartMessageImageScale",typenotsupportedmessageimagehalign:"typeNotSupportedMessageImageHAlign",typenotsupportedmessageimagevalign:"typeNotSupportedMessageImageVAlign",typenotsupportedmessageimagealpha:"typeNotSupportedMessageImageAlpha",typenotsupportedmessageimagescale:"typeNotSupportedMessageImageScale",dataloaderrormessageimagehalign:"dataLoadErrorMessageImageHAlign",dataloaderrormessageimagevalign:"dataLoadErrorMessageImageVAlign",dataloaderrormessageimagealpha:"dataLoadErrorMessageImageAlpha",dataloaderrormessageimagescale:"dataLoadErrorMessageImageScale",dataloadstartmessageimagehalign:"dataLoadStartMessageImageHAlign",dataloadstartmessageimagevalign:"dataLoadStartMessageImageVAlign",dataloadstartmessageimagealpha:"dataLoadStartMessageImageAlpha",dataloadstartmessageimagescale:"dataLoadStartMessageImageScale",datainvalidmessageimagehalign:"dataInvalidMessageImageHAlign",datainvalidmessageimagevalign:"dataInvalidMessageImageVAlign",datainvalidmessageimagealpha:"dataInvalidMessageImageAlpha",datainvalidmessageimagescale:"dataInvalidMessageImageScale",dataemptymessageimagehalign:"dataEmptyMessageImageHAlign",dataemptymessageimagevalign:"dataEmptyMessageImageVAlign",dataemptymessageimagealpha:"dataEmptyMessageImageAlpha",dataemptymessageimagescale:"dataEmptyMessageImageScale",rendererrormessageimagehalign:"renderErrorMessageImageHAlign",rendererrormessageimagevalign:"renderErrorMessageImageVAlign",rendererrormessageimagealpha:"renderErrorMessageImageAlpha",rendererrormessageimagescale:"renderErrorMessageImageScale",loadmessageimagehalign:"loadMessageImageHAlign",loadmessageimagevalign:"loadMessageImageVAlign",loadmessageimagealpha:"loadMessageImageAlpha",loadmessageimagescale:"loadMessageImageScale"},r={options:Object,type:String,id:String,width:"",height:"",dataFormat:String,dataSource:"",events:Object,link:Object,showDataLoadingMessage:Boolean,showChartLoadingMessage:Boolean,baseChartMessageFont:String,baseChartMessageFontSize:String,baseChartMessageColor:String,dataLoadStartMessage:String,dataLoadErrorMessage:String,dataInvalidMessage:String,dataEmptyMessage:String,typeNotSupportedMessage:String,loadMessage:String,renderErrorMessage:String,containerBackgroundColor:String,containerBackgroundOpacity:Number,containerClassName:String,baseChartMessageImageHAlign:String,baseChartMessageImageVAlign:String,baseChartMessageImageAlpha:Number,baseChartMessageImageScale:Number,typeNotSupportedMessageImageHAlign:String,typeNotSupportedMessageImageVAlign:String,typeNotSupportedMessageImageAlpha:Number,typeNotSupportedMessageImageScale:Number,dataLoadErrorMessageImageHAlign:String,dataLoadErrorMessageImageVAlign:String,dataLoadErrorMessageImageAlpha:Number,dataLoadErrorMessageImageScale:Number,dataLoadStartMessageImageHAlign:String,dataLoadStartMessageImageVAlign:String,dataLoadStartMessageImageAlpha:Number,dataLoadStartMessageImageScale:Number,dataInvalidMessageImageHAlign:String,dataInvalidMessageImageVAlign:String,dataInvalidMessageImageAlpha:Number,dataInvalidMessageImageScale:Number,dataEmptyMessageImageHAlign:String,dataEmptyMessageImageVAlign:String,dataEmptyMessageImageAlpha:Number,dataEmptyMessageImageScale:Number,renderErrorMessageImageHAlign:String,renderErrorMessageImageVAlign:String,renderErrorMessageImageAlpha:Number,renderErrorMessageImageScale:Number,loadMessageImageHAlign:String,loadMessageImageVAlign:String,loadMessageImageAlpha:Number,loadMessageImageScale:Number,dataformat:String,datasource:"",showdataloadingmessage:Boolean,showchartloadingmessage:Boolean,basechartmessagefont:String,basechartmessagefontsize:String,basechartmessagecolor:String,dataloadstartmessage:String,dataloaderrormessage:String,datainvalidmessage:String,dataemptymessage:String,typenotsupportedmessage:String,loadmessage:String,rendererrormessage:String,containerbackgroundcolor:String,containerbackgroundopacity:Number,containerclassname:String,basechartmessageimagehalign:String,basechartmessageimagevalign:String,basechartmessageimagealpha:Number,basechartmessageimagescale:Number,typenotsupportedmessageimagehalign:String,typenotsupportedmessageimagevalign:String,typenotsupportedmessageimagealpha:Number,typenotsupportedmessageimagescale:Number,dataloaderrormessageimagehalign:String,dataloaderrormessageimagevalign:String,dataloaderrormessageimagealpha:Number,dataloaderrormessageimagescale:Number,dataloadstartmessageimagehalign:String,dataloadstartmessageimagevalign:String,dataloadstartmessageimagealpha:Number,dataloadstartmessageimagescale:Number,datainvalidmessageimagehalign:String,datainvalidmessageimagevalign:String,datainvalidmessageimagealpha:Number,datainvalidmessageimagescale:Number,dataemptymessageimagehalign:String,dataemptymessageimagevalign:String,dataemptymessageimagealpha:Number,dataemptymessageimagescale:Number,rendererrormessageimagehalign:String,rendererrormessageimagevalign:String,rendererrormessageimagealpha:Number,rendererrormessageimagescale:Number,loadmessageimagehalign:String,loadmessageimagevalign:String,loadmessageimagealpha:Number,loadmessageimagescale:Number};a.exports={optionsMap:s,props:r}},function(a,e,t){"use strict";function s(a){return!!(a&&a.data&&a.data._dataStore)}function r(a){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"clone",t=void 0===a?"undefined":c(a);if("string"===t||"number"===t||"function"===t||"boolean"===t)return a;if(null===a||void 0===a)return a;if(Array.isArray(a)){for(var s=[],g=0;g1?e-1:0),r=1;r",render:function(a){return this.containerID="fc-"+this._uid,a("div",{attrs:{id:this.containerID}})},props:d,methods:{attachListeners:function(){var a=this;this.$listeners&&"object"===s(this.$listeners)&&Object.keys(this.$listeners).forEach(function(e){a.chartObj.addEventListener(e,function(t){a.$emit(e,t)})})},createEvents:function(){var a=this,e={events:{}};return this.$listeners&&"object"===s(this.$listeners)&&Object.keys(this.$listeners).forEach(function(t){e.events[t]=function(e){a.$emit(t,e)}}),e},setLastOptions:function(a){this._oldOptions=Object.assign({},a)},getLastOptions:function(){return this._oldOptions},getOptions:function(){var a={},e=this;for(var t in o)void 0!==e[t]&&null!==e[t]&&(a[o[t]]=e[t]);return Object.assign(Object.assign({},e.options),a)},renderChart:function(){var e=this,t=e.getOptions(),s=e.chartObj;t.renderAt=this.containerID,e.setLastOptions(t),s&&s.dispose&&s.dispose();var r=this.createEvents();t.events=Object.assign({},t.events,r.events);var g=t.dataSource||t.datasource;(0,i.checkIfDataTableExists)(g)?this.prevDataSource=(0,i.cloneDataSource)(g,"diff"):this.prevDataSource=(0,i.cloneDataSource)(g,"clone"),e.chartObj=s=new a(t),s.render()},updateChart:function(){var a=this,e=a.getOptions(),t=a.getLastOptions(),s=a.chartObj;e.width!==t.width||e.height!==t.height?s&&s.resizeTo(e.width,e.height):e.type!==t.type?s.chartType(e.type):(0,i.checkIfDataTableExists)(e.dataSource)||s.setChartData(e.dataSource,e.dataFormat),a.setLastOptions(e)}},watch:{type:function(){this.chartObj.chartType(this.type)},width:function(){this.chartObj.resizeTo(this.width,this.height)},height:function(){this.chartObj.resizeTo(this.width,this.height)},options:{handler:function(){this.updateChart()},deep:!0},dataSource:{handler:function(){(0,i.checkIfDataTableExists)(this.dataSource)||this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},datasource:{handler:function(){(0,i.checkIfDataTableExists)(this.datasource)||this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},"datasource.data":{handler:function(a,e){if(a!==e){if(this.datasource&&this.datasource.series){var t=g.default||window.FusionCharts,s=JSON.parse(JSON.stringify(a._data)),r=JSON.parse(JSON.stringify(a._schema)),i=(new t.DataStore).createDataTable(s,r),n=Object.assign({},this.datasource||this.dataSource);return n.data=i,this.chartObj.setChartData(n,this.dataFormat||this.dataformat),null}this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)}},deep:!1},"dataSource.data":{handler:function(a,e){if(a!==e){if(this.dataSource&&this.dataSource.series){var t=g.default||window.FusionCharts,s=JSON.parse(JSON.stringify(a._data)),r=JSON.parse(JSON.stringify(a._schema)),i=(new t.DataStore).createDataTable(s,r),n=Object.assign({},this.datasource||this.dataSource);return n.data=i,this.chartObj.setChartData(n,this.dataFormat||this.dataformat),null}this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)}},deep:!1}},deactivated:function(){this.chartObj&&this.chartObj.dispose()},beforeDestroy:function(){this.chartObj&&this.chartObj.dispose()},mounted:function(){this.renderChart()},ready:function(){this.renderChart()},beforeUpdate:function(){var a=JSON.stringify(this.prevDataSource),e=this.datasource||this.dataSource||this.options.dataSource;a!==JSON.stringify((0,i.cloneDataSource)(e,"diff"))&&(this.prevDataSource=(0,i.cloneDataSource)(e,"diff"),this.chartObj.setChartData(e,this.dataFormat||this.dataformat))}}},a.exports=e.default}])}); \ No newline at end of file diff --git a/dist/vue-fusioncharts.js b/dist/vue-fusioncharts.js index 3c7b656..fe5c062 100644 --- a/dist/vue-fusioncharts.js +++ b/dist/vue-fusioncharts.js @@ -240,6 +240,19 @@ exports.default = function (FC) { 'datasource.data': { handler: function handler(newVal, prevVal) { if (newVal !== prevVal) { + // SPECIAL CASE: When DataSource has series attribute, vue internally goes into Infinite recursion + // specifically on _traverse method. This code is written to tackle that issue. In future a much more + // concrete solution is required. + if (this.datasource && this.datasource.series) { + var _FC_ = _fusioncharts2.default || window.FusionCharts; + var data = JSON.parse(JSON.stringify(newVal._data)); + var schema = JSON.parse(JSON.stringify(newVal._schema)); + var dataTable = new _FC_.DataStore().createDataTable(data, schema); + var newDs = Object.assign({}, this.datasource || this.dataSource); + newDs.data = dataTable; + this.chartObj.setChartData(newDs, this.dataFormat || this.dataformat); + return null; + } this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); } }, @@ -248,6 +261,16 @@ exports.default = function (FC) { 'dataSource.data': { handler: function handler(newVal, prevVal) { if (newVal !== prevVal) { + if (this.dataSource && this.dataSource.series) { + var _FC_ = _fusioncharts2.default || window.FusionCharts; + var data = JSON.parse(JSON.stringify(newVal._data)); + var schema = JSON.parse(JSON.stringify(newVal._schema)); + var dataTable = new _FC_.DataStore().createDataTable(data, schema); + var newDs = Object.assign({}, this.datasource || this.dataSource); + newDs.data = dataTable; + this.chartObj.setChartData(newDs, this.dataFormat || this.dataformat); + return null; + } this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); } }, @@ -272,6 +295,9 @@ exports.default = function (FC) { var strCurrClonedDataSource = JSON.stringify((0, _utils.cloneDataSource)(ds, 'diff')); if (strPrevClonedDataSource !== strCurrClonedDataSource) { this.prevDataSource = (0, _utils.cloneDataSource)(ds, 'diff'); + // if (ds.series) { + // return null; + // } this.chartObj.setChartData(ds, this.dataFormat || this.dataformat); } } diff --git a/dist/vue-fusioncharts.js.map b/dist/vue-fusioncharts.js.map index c2b8619..1fa3cb1 100644 --- a/dist/vue-fusioncharts.js.map +++ b/dist/vue-fusioncharts.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 30cfa100ee6eae7da275","webpack:///./src/vue-fusioncharts-component.js","webpack:///./src/config.js","webpack:///./src/index.js","webpack:///./src/utils.js","webpack:///external {\"commonjs2\":\"fusioncharts\",\"commonjs\":\"fusioncharts\",\"amd\":\"fusioncharts\",\"root\":\"FusionCharts\"}"],"names":["require","optionsMap","props","FC","options","forEach","_FC","modules","name","template","render","h","containerID","_uid","attrs","id","methods","attachListeners","$listeners","Object","keys","chartObj","addEventListener","event","$emit","e","createEvents","ret","events","setLastOptions","config","_oldOptions","assign","getLastOptions","getOptions","THIS","i","undefined","renderChart","renderAt","dispose","ds","dataSource","datasource","prevDataSource","updateChart","prevConfig","width","height","resizeTo","type","chartType","setChartData","dataFormat","watch","handler","deep","dataformat","newVal","prevVal","deactivated","beforeDestroy","mounted","ready","beforeUpdate","strPrevClonedDataSource","JSON","stringify","strCurrClonedDataSource","link","showDataLoadingMessage","showChartLoadingMessage","baseChartMessageFont","baseChartMessageFontSize","baseChartMessageColor","dataLoadStartMessage","dataLoadErrorMessage","dataInvalidMessage","dataEmptyMessage","typeNotSupportedMessage","loadMessage","renderErrorMessage","containerBackgroundColor","containerBackgroundOpacity","containerClassName","baseChartMessageImageHAlign","baseChartMessageImageVAlign","baseChartMessageImageAlpha","baseChartMessageImageScale","typeNotSupportedMessageImageHAlign","typeNotSupportedMessageImageVAlign","typeNotSupportedMessageImageAlpha","typeNotSupportedMessageImageScale","dataLoadErrorMessageImageHAlign","dataLoadErrorMessageImageVAlign","dataLoadErrorMessageImageAlpha","dataLoadErrorMessageImageScale","dataLoadStartMessageImageHAlign","dataLoadStartMessageImageVAlign","dataLoadStartMessageImageAlpha","dataLoadStartMessageImageScale","dataInvalidMessageImageHAlign","dataInvalidMessageImageVAlign","dataInvalidMessageImageAlpha","dataInvalidMessageImageScale","dataEmptyMessageImageHAlign","dataEmptyMessageImageVAlign","dataEmptyMessageImageAlpha","dataEmptyMessageImageScale","renderErrorMessageImageHAlign","renderErrorMessageImageVAlign","renderErrorMessageImageAlpha","renderErrorMessageImageScale","loadMessageImageHAlign","loadMessageImageVAlign","loadMessageImageAlpha","loadMessageImageScale","showdataloadingmessage","showchartloadingmessage","basechartmessagefont","basechartmessagefontsize","basechartmessagecolor","dataloadstartmessage","dataloaderrormessage","datainvalidmessage","dataemptymessage","typenotsupportedmessage","loadmessage","rendererrormessage","containerbackgroundcolor","containerbackgroundopacity","containerclassname","basechartmessageimagehalign","basechartmessageimagevalign","basechartmessageimagealpha","basechartmessageimagescale","typenotsupportedmessageimagehalign","typenotsupportedmessageimagevalign","typenotsupportedmessageimagealpha","typenotsupportedmessageimagescale","dataloaderrormessageimagehalign","dataloaderrormessageimagevalign","dataloaderrormessageimagealpha","dataloaderrormessageimagescale","dataloadstartmessageimagehalign","dataloadstartmessageimagevalign","dataloadstartmessageimagealpha","dataloadstartmessageimagescale","datainvalidmessageimagehalign","datainvalidmessageimagevalign","datainvalidmessageimagealpha","datainvalidmessageimagescale","dataemptymessageimagehalign","dataemptymessageimagevalign","dataemptymessageimagealpha","dataemptymessageimagescale","rendererrormessageimagehalign","rendererrormessageimagevalign","rendererrormessageimagealpha","rendererrormessageimagescale","loadmessageimagehalign","loadmessageimagevalign","loadmessageimagealpha","loadmessageimagescale","String","Boolean","Number","module","exports","install","Vue","component","_FCComponent","checkIfDataTableExists","cloneDataSource","addDep","getName","getType","data","_dataStore","obj","purpose","Array","isArray","arr","length","push","clonedObj","prop","This"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA,mDAA2C,cAAc;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;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B,MAAvC,CAAZ;AACD,GALD,MAKO,IAAIlB,OAAOoB,IAAP,KAAgBJ,WAAWI,IAA/B,EAAqC;AAC1C7B,aAAS8B,SAAT,CAAmBrB,OAAOoB,IAA1B;AACD,GAFM,MAEA;AACL,QAAI,CAAC2H,uBAAuB/I,OAAOY,UAA9B,CAAL,EACErB,SAAS+B,YAAT,CAAsBtB,OAAOY,UAA7B,EAAyCZ,OAAOuB,UAAhD;AACH;;AAEDlB,OAAKN,cAAL,CAAoBC,MAApB;AACD,C;;;;;;ACrJD,+C","file":"vue-fusioncharts.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"fusioncharts\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"fusioncharts\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueFusionCharts\"] = factory(require(\"fusioncharts\"));\n\telse\n\t\troot[\"VueFusionCharts\"] = factory(root[\"FusionCharts\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_4__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 2);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 30cfa100ee6eae7da275","import _FC from 'fusioncharts';\nconst { optionsMap, props } = require('./config.js');\nimport { addDep, checkIfDataTableExists, cloneDataSource } from './utils';\n\nexport default (FC, ...options) => {\n options &&\n options.forEach &&\n options.forEach(modules => {\n addDep(FC, _FC, modules);\n });\n return {\n name: 'fusioncharts',\n template: '
',\n render: function(h) {\n this.containerID = 'fc-' + this._uid;\n return h('div', {\n attrs: {\n id: this.containerID\n }\n });\n },\n props,\n methods: {\n attachListeners: function() {\n if (this.$listeners && typeof this.$listeners === 'object') {\n Object.keys(this.$listeners).forEach(event => {\n this.chartObj.addEventListener(event, e => {\n this.$emit(event, e);\n });\n });\n }\n },\n createEvents: function() {\n const ret = {\n events: {}\n };\n if (this.$listeners && typeof this.$listeners === 'object') {\n Object.keys(this.$listeners).forEach(event => {\n ret.events[event] = e => {\n this.$emit(event, e);\n };\n });\n }\n return ret;\n },\n setLastOptions: function(config) {\n this._oldOptions = Object.assign({}, config);\n },\n getLastOptions: function() {\n return this._oldOptions;\n },\n getOptions: function() {\n let config = {},\n THIS = this;\n for (let i in optionsMap) {\n if (THIS[i] !== undefined && THIS[i] !== null) {\n config[optionsMap[i]] = THIS[i];\n }\n }\n\n let options = Object.assign(Object.assign({}, THIS.options), config);\n\n return options;\n },\n renderChart: function() {\n let THIS = this,\n config = THIS.getOptions(),\n chartObj = THIS.chartObj;\n\n config.renderAt = this.containerID;\n THIS.setLastOptions(config);\n\n if (chartObj && chartObj.dispose) {\n chartObj.dispose();\n }\n const events = this.createEvents();\n config.events = Object.assign({}, config.events, events.events);\n\n let ds = config.dataSource || config.datasource;\n\n if (checkIfDataTableExists(ds))\n this.prevDataSource = cloneDataSource(ds, 'diff');\n else this.prevDataSource = cloneDataSource(ds, 'clone');\n\n THIS.chartObj = chartObj = new FC(config);\n chartObj.render();\n },\n updateChart: function() {\n let THIS = this,\n config = THIS.getOptions(),\n prevConfig = THIS.getLastOptions(),\n chartObj = THIS.chartObj;\n\n if (\n config.width !== prevConfig.width ||\n config.height !== prevConfig.height\n ) {\n chartObj && chartObj.resizeTo(config.width, config.height);\n } else if (config.type !== prevConfig.type) {\n chartObj.chartType(config.type);\n } else {\n if (!checkIfDataTableExists(config.dataSource))\n chartObj.setChartData(config.dataSource, config.dataFormat);\n }\n\n THIS.setLastOptions(config);\n }\n },\n watch: {\n type: function() {\n this.chartObj.chartType(this.type);\n },\n width: function() {\n this.chartObj.resizeTo(this.width, this.height);\n },\n height: function() {\n this.chartObj.resizeTo(this.width, this.height);\n },\n options: {\n handler: function() {\n this.updateChart();\n },\n deep: true\n },\n dataSource: {\n handler: function() {\n if (!checkIfDataTableExists(this.dataSource)) {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: true\n },\n datasource: {\n handler: function() {\n if (!checkIfDataTableExists(this.datasource)) {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: true\n },\n 'datasource.data': {\n handler: function(newVal, prevVal) {\n if (newVal !== prevVal) {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: false\n },\n 'dataSource.data': {\n handler: function(newVal, prevVal) {\n if (newVal !== prevVal) {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: false\n }\n },\n deactivated: function() {\n this.chartObj && this.chartObj.dispose();\n },\n beforeDestroy: function() {\n this.chartObj && this.chartObj.dispose();\n },\n mounted: function() {\n this.renderChart();\n },\n ready: function() {\n this.renderChart();\n },\n beforeUpdate: function() {\n const strPrevClonedDataSource = JSON.stringify(this.prevDataSource);\n const ds = this.datasource || this.dataSource || this.options.dataSource;\n const strCurrClonedDataSource = JSON.stringify(\n cloneDataSource(ds, 'diff')\n );\n if (strPrevClonedDataSource !== strCurrClonedDataSource) {\n this.prevDataSource = cloneDataSource(ds, 'diff');\n this.chartObj.setChartData(ds, this.dataFormat || this.dataformat);\n }\n }\n };\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/vue-fusioncharts-component.js","const optionsMap = {\n type: 'type',\n id: 'id',\n width: 'width',\n height: 'height',\n dataFormat: 'dataFormat',\n dataSource: 'dataSource',\n events: 'events',\n link: 'link',\n showDataLoadingMessage: 'showDataLoadingMessage',\n showChartLoadingMessage: 'showChartLoadingMessage',\n baseChartMessageFont: 'baseChartMessageFont',\n baseChartMessageFontSize: 'baseChartMessageFontSize',\n baseChartMessageColor: 'baseChartMessageColor',\n dataLoadStartMessage: 'dataLoadStartMessage',\n dataLoadErrorMessage: 'dataLoadErrorMessage',\n dataInvalidMessage: 'dataInvalidMessage',\n dataEmptyMessage: 'dataEmptyMessage',\n typeNotSupportedMessage: 'typeNotSupportedMessage',\n loadMessage: 'loadMessage',\n renderErrorMessage: 'renderErrorMessage',\n containerBackgroundColor: 'containerBackgroundColor',\n containerBackgroundOpacity: 'containerBackgroundOpacity',\n containerClassName: 'containerClassName',\n baseChartMessageImageHAlign: 'baseChartMessageImageHAlign',\n baseChartMessageImageVAlign: 'baseChartMessageImageVAlign',\n baseChartMessageImageAlpha: 'baseChartMessageImageAlpha',\n baseChartMessageImageScale: 'baseChartMessageImageScale',\n typeNotSupportedMessageImageHAlign: 'typeNotSupportedMessageImageHAlign',\n typeNotSupportedMessageImageVAlign: 'typeNotSupportedMessageImageVAlign',\n typeNotSupportedMessageImageAlpha: 'typeNotSupportedMessageImageAlpha',\n typeNotSupportedMessageImageScale: 'typeNotSupportedMessageImageScale',\n dataLoadErrorMessageImageHAlign: 'dataLoadErrorMessageImageHAlign',\n dataLoadErrorMessageImageVAlign: 'dataLoadErrorMessageImageVAlign',\n dataLoadErrorMessageImageAlpha: 'dataLoadErrorMessageImageAlpha',\n dataLoadErrorMessageImageScale: 'dataLoadErrorMessageImageScale',\n dataLoadStartMessageImageHAlign: 'dataLoadStartMessageImageHAlign',\n dataLoadStartMessageImageVAlign: 'dataLoadStartMessageImageVAlign',\n dataLoadStartMessageImageAlpha: 'dataLoadStartMessageImageAlpha',\n dataLoadStartMessageImageScale: 'dataLoadStartMessageImageScale',\n dataInvalidMessageImageHAlign: 'dataInvalidMessageImageHAlign',\n dataInvalidMessageImageVAlign: 'dataInvalidMessageImageVAlign',\n dataInvalidMessageImageAlpha: 'dataInvalidMessageImageAlpha',\n dataInvalidMessageImageScale: 'dataInvalidMessageImageScale',\n dataEmptyMessageImageHAlign: 'dataEmptyMessageImageHAlign',\n dataEmptyMessageImageVAlign: 'dataEmptyMessageImageVAlign',\n dataEmptyMessageImageAlpha: 'dataEmptyMessageImageAlpha',\n dataEmptyMessageImageScale: 'dataEmptyMessageImageScale',\n renderErrorMessageImageHAlign: 'renderErrorMessageImageHAlign',\n renderErrorMessageImageVAlign: 'renderErrorMessageImageVAlign',\n renderErrorMessageImageAlpha: 'renderErrorMessageImageAlpha',\n renderErrorMessageImageScale: 'renderErrorMessageImageScale',\n loadMessageImageHAlign: 'loadMessageImageHAlign',\n loadMessageImageVAlign: 'loadMessageImageVAlign',\n loadMessageImageAlpha: 'loadMessageImageAlpha',\n loadMessageImageScale: 'loadMessageImageScale',\n ///////////////////////////////////////////////////////\n dataformat: 'dataFormat',\n datasource: 'dataSource',\n showdataloadingmessage: 'showDataLoadingMessage',\n showchartloadingmessage: 'showChartLoadingMessage',\n basechartmessagefont: 'baseChartMessageFont',\n basechartmessagefontsize: 'baseChartMessageFontSize',\n basechartmessagecolor: 'baseChartMessageColor',\n dataloadstartmessage: 'dataLoadStartMessage',\n dataloaderrormessage: 'dataLoadErrorMessage',\n datainvalidmessage: 'dataInvalidMessage',\n dataemptymessage: 'dataEmptyMessage',\n typenotsupportedmessage: 'typeNotSupportedMessage',\n loadmessage: 'loadMessage',\n rendererrormessage: 'renderErrorMessage',\n containerbackgroundcolor: 'containerBackgroundColor',\n containerbackgroundopacity: 'containerBackgroundOpacity',\n containerclassname: 'containerClassName',\n basechartmessageimagehalign: 'baseChartMessageImageHAlign',\n basechartmessageimagevalign: 'baseChartMessageImageVAlign',\n basechartmessageimagealpha: 'baseChartMessageImageAlpha',\n basechartmessageimagescale: 'baseChartMessageImageScale',\n typenotsupportedmessageimagehalign: 'typeNotSupportedMessageImageHAlign',\n typenotsupportedmessageimagevalign: 'typeNotSupportedMessageImageVAlign',\n typenotsupportedmessageimagealpha: 'typeNotSupportedMessageImageAlpha',\n typenotsupportedmessageimagescale: 'typeNotSupportedMessageImageScale',\n dataloaderrormessageimagehalign: 'dataLoadErrorMessageImageHAlign',\n dataloaderrormessageimagevalign: 'dataLoadErrorMessageImageVAlign',\n dataloaderrormessageimagealpha: 'dataLoadErrorMessageImageAlpha',\n dataloaderrormessageimagescale: 'dataLoadErrorMessageImageScale',\n dataloadstartmessageimagehalign: 'dataLoadStartMessageImageHAlign',\n dataloadstartmessageimagevalign: 'dataLoadStartMessageImageVAlign',\n dataloadstartmessageimagealpha: 'dataLoadStartMessageImageAlpha',\n dataloadstartmessageimagescale: 'dataLoadStartMessageImageScale',\n datainvalidmessageimagehalign: 'dataInvalidMessageImageHAlign',\n datainvalidmessageimagevalign: 'dataInvalidMessageImageVAlign',\n datainvalidmessageimagealpha: 'dataInvalidMessageImageAlpha',\n datainvalidmessageimagescale: 'dataInvalidMessageImageScale',\n dataemptymessageimagehalign: 'dataEmptyMessageImageHAlign',\n dataemptymessageimagevalign: 'dataEmptyMessageImageVAlign',\n dataemptymessageimagealpha: 'dataEmptyMessageImageAlpha',\n dataemptymessageimagescale: 'dataEmptyMessageImageScale',\n rendererrormessageimagehalign: 'renderErrorMessageImageHAlign',\n rendererrormessageimagevalign: 'renderErrorMessageImageVAlign',\n rendererrormessageimagealpha: 'renderErrorMessageImageAlpha',\n rendererrormessageimagescale: 'renderErrorMessageImageScale',\n loadmessageimagehalign: 'loadMessageImageHAlign',\n loadmessageimagevalign: 'loadMessageImageVAlign',\n loadmessageimagealpha: 'loadMessageImageAlpha',\n loadmessageimagescale: 'loadMessageImageScale'\n};\n\nconst props = {\n options: Object,\n type: String,\n id: String,\n width: '',\n height: '',\n dataFormat: String,\n dataSource: '',\n events: Object,\n link: Object,\n showDataLoadingMessage: Boolean,\n showChartLoadingMessage: Boolean,\n baseChartMessageFont: String,\n baseChartMessageFontSize: String,\n baseChartMessageColor: String,\n dataLoadStartMessage: String,\n dataLoadErrorMessage: String,\n dataInvalidMessage: String,\n dataEmptyMessage: String,\n typeNotSupportedMessage: String,\n loadMessage: String,\n renderErrorMessage: String,\n containerBackgroundColor: String,\n containerBackgroundOpacity: Number,\n containerClassName: String,\n baseChartMessageImageHAlign: String,\n baseChartMessageImageVAlign: String,\n baseChartMessageImageAlpha: Number,\n baseChartMessageImageScale: Number,\n typeNotSupportedMessageImageHAlign: String,\n typeNotSupportedMessageImageVAlign: String,\n typeNotSupportedMessageImageAlpha: Number,\n typeNotSupportedMessageImageScale: Number,\n dataLoadErrorMessageImageHAlign: String,\n dataLoadErrorMessageImageVAlign: String,\n dataLoadErrorMessageImageAlpha: Number,\n dataLoadErrorMessageImageScale: Number,\n dataLoadStartMessageImageHAlign: String,\n dataLoadStartMessageImageVAlign: String,\n dataLoadStartMessageImageAlpha: Number,\n dataLoadStartMessageImageScale: Number,\n dataInvalidMessageImageHAlign: String,\n dataInvalidMessageImageVAlign: String,\n dataInvalidMessageImageAlpha: Number,\n dataInvalidMessageImageScale: Number,\n dataEmptyMessageImageHAlign: String,\n dataEmptyMessageImageVAlign: String,\n dataEmptyMessageImageAlpha: Number,\n dataEmptyMessageImageScale: Number,\n renderErrorMessageImageHAlign: String,\n renderErrorMessageImageVAlign: String,\n renderErrorMessageImageAlpha: Number,\n renderErrorMessageImageScale: Number,\n loadMessageImageHAlign: String,\n loadMessageImageVAlign: String,\n loadMessageImageAlpha: Number,\n loadMessageImageScale: Number,\n ///////////////////////////////////////////////\n dataformat: String,\n datasource: '',\n showdataloadingmessage: Boolean,\n showchartloadingmessage: Boolean,\n basechartmessagefont: String,\n basechartmessagefontsize: String,\n basechartmessagecolor: String,\n dataloadstartmessage: String,\n dataloaderrormessage: String,\n datainvalidmessage: String,\n dataemptymessage: String,\n typenotsupportedmessage: String,\n loadmessage: String,\n rendererrormessage: String,\n containerbackgroundcolor: String,\n containerbackgroundopacity: Number,\n containerclassname: String,\n basechartmessageimagehalign: String,\n basechartmessageimagevalign: String,\n basechartmessageimagealpha: Number,\n basechartmessageimagescale: Number,\n typenotsupportedmessageimagehalign: String,\n typenotsupportedmessageimagevalign: String,\n typenotsupportedmessageimagealpha: Number,\n typenotsupportedmessageimagescale: Number,\n dataloaderrormessageimagehalign: String,\n dataloaderrormessageimagevalign: String,\n dataloaderrormessageimagealpha: Number,\n dataloaderrormessageimagescale: Number,\n dataloadstartmessageimagehalign: String,\n dataloadstartmessageimagevalign: String,\n dataloadstartmessageimagealpha: Number,\n dataloadstartmessageimagescale: Number,\n datainvalidmessageimagehalign: String,\n datainvalidmessageimagevalign: String,\n datainvalidmessageimagealpha: Number,\n datainvalidmessageimagescale: Number,\n dataemptymessageimagehalign: String,\n dataemptymessageimagevalign: String,\n dataemptymessageimagealpha: Number,\n dataemptymessageimagescale: Number,\n rendererrormessageimagehalign: String,\n rendererrormessageimagevalign: String,\n rendererrormessageimagealpha: Number,\n rendererrormessageimagescale: Number,\n loadmessageimagehalign: String,\n loadmessageimagevalign: String,\n loadmessageimagealpha: Number,\n loadmessageimagescale: Number\n};\n\nmodule.exports = { optionsMap, props };\n\n\n\n// WEBPACK FOOTER //\n// ./src/config.js","import _FCComponent from './vue-fusioncharts-component';\n\nconst install = (Vue, FC, ...options) => {\n let component = _FCComponent(FC, ...options);\n Vue.component(component.name, component);\n};\n\nexport default install;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","export const addDep = (FC, _FC, modules) => {\n if (FC) {\n if (\n (modules.getName && modules.getType) ||\n (modules.name && modules.type)\n ) {\n FC.addDep(modules);\n } else {\n modules(FC);\n }\n } else {\n modules(_FC);\n }\n};\n\nexport function checkIfDataTableExists(dataSource) {\n // eslint-disable-next-line no-underscore-dangle\n if (dataSource && dataSource.data && dataSource.data._dataStore) {\n return true;\n }\n return false;\n}\n\nexport function cloneDataSource(obj, purpose = 'clone') {\n const type = typeof obj;\n if (\n type === 'string' ||\n type === 'number' ||\n type === 'function' ||\n type === 'boolean'\n ) {\n return obj;\n }\n if (obj === null || obj === undefined) {\n return obj;\n }\n if (Array.isArray(obj)) {\n const arr = [];\n for (let i = 0; i < obj.length; i++) {\n arr.push(cloneDataSource(obj[i]));\n }\n return arr;\n }\n if (typeof obj === 'object') {\n const clonedObj = {};\n // eslint-disable-next-line guard-for-in\n // eslint-disable-next-line no-restricted-syntax\n for (const prop in obj) {\n // Edge case handling for DataTable\n if (prop === 'data') {\n // eslint-disable-next-line no-underscore-dangle\n if (obj[prop] && obj[prop]._dataStore && purpose === 'clone') {\n clonedObj[prop] = obj[prop];\n // eslint-disable-next-line no-underscore-dangle\n } else if (obj[prop] && obj[prop]._dataStore && purpose === 'diff') {\n clonedObj[prop] = '-';\n } else {\n clonedObj[prop] = cloneDataSource(obj[prop]);\n }\n continue;\n }\n clonedObj[prop] = cloneDataSource(obj[prop]);\n }\n return clonedObj;\n }\n return undefined;\n}\n\nexport function attachListeners(THIS) {\n if (THIS.$listeners && typeof THIS.$listeners === 'object') {\n Object.keys(THIS.$listeners).forEach(event => {\n THIS.chartObj.addEventListener(event, e => {\n THIS.$emit(event, e);\n });\n });\n }\n}\n\nexport function createEvents(THIS) {\n const ret = {\n events: {}\n };\n if (THIS.$listeners && typeof THIS.$listeners === 'object') {\n Object.keys(THIS.$listeners).forEach(event => {\n ret.events[event] = e => {\n THIS.$emit(event, e);\n };\n });\n }\n return ret;\n}\n\nexport function setLastOptions(config, THIS) {\n THIS._oldOptions = Object.assign({}, config);\n}\n\nexport function getLastOptions(THIS) {\n return THIS._oldOptions;\n}\n\nexport function getOptions(This, optionsMap) {\n let config = {},\n THIS = This;\n for (let i in optionsMap) {\n if (THIS[i] !== undefined && THIS[i] !== null) {\n config[optionsMap[i]] = THIS[i];\n }\n }\n let options = Object.assign(Object.assign({}, THIS.options), config);\n return options;\n}\n\nexport function renderChart(This, FC) {\n let THIS = This,\n config = THIS.getOptions(),\n chartObj = THIS.chartObj;\n\n config.renderAt = this.containerID;\n THIS.setLastOptions(config);\n\n if (chartObj && chartObj.dispose) {\n chartObj.dispose();\n }\n const events = this.createEvents();\n config.events = Object.assign({}, config.events, events.events);\n\n THIS.chartObj = chartObj = new FC(config);\n chartObj.render();\n}\n\nexport function updateChart(This) {\n let THIS = This,\n config = THIS.getOptions(),\n prevConfig = THIS.getLastOptions(),\n chartObj = THIS.chartObj;\n\n if (\n config.width !== prevConfig.width ||\n config.height !== prevConfig.height\n ) {\n chartObj && chartObj.resizeTo(config.width, config.height);\n } else if (config.type !== prevConfig.type) {\n chartObj.chartType(config.type);\n } else {\n if (!checkIfDataTableExists(config.dataSource))\n chartObj.setChartData(config.dataSource, config.dataFormat);\n }\n\n THIS.setLastOptions(config);\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils.js","module.exports = __WEBPACK_EXTERNAL_MODULE_4__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"commonjs2\":\"fusioncharts\",\"commonjs\":\"fusioncharts\",\"amd\":\"fusioncharts\",\"root\":\"FusionCharts\"}\n// module id = 4\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 737a40d00941a7a6001f","webpack:///./src/vue-fusioncharts-component.js","webpack:///./src/config.js","webpack:///./src/index.js","webpack:///./src/utils.js","webpack:///external {\"commonjs2\":\"fusioncharts\",\"commonjs\":\"fusioncharts\",\"amd\":\"fusioncharts\",\"root\":\"FusionCharts\"}"],"names":["require","optionsMap","props","FC","options","forEach","_FC","modules","name","template","render","h","containerID","_uid","attrs","id","methods","attachListeners","$listeners","Object","keys","chartObj","addEventListener","event","$emit","e","createEvents","ret","events","setLastOptions","config","_oldOptions","assign","getLastOptions","getOptions","THIS","i","undefined","renderChart","renderAt","dispose","ds","dataSource","datasource","prevDataSource","updateChart","prevConfig","width","height","resizeTo","type","chartType","setChartData","dataFormat","watch","handler","deep","dataformat","newVal","prevVal","series","_FC_","window","FusionCharts","data","JSON","parse","stringify","_data","schema","_schema","dataTable","DataStore","createDataTable","newDs","deactivated","beforeDestroy","mounted","ready","beforeUpdate","strPrevClonedDataSource","strCurrClonedDataSource","link","showDataLoadingMessage","showChartLoadingMessage","baseChartMessageFont","baseChartMessageFontSize","baseChartMessageColor","dataLoadStartMessage","dataLoadErrorMessage","dataInvalidMessage","dataEmptyMessage","typeNotSupportedMessage","loadMessage","renderErrorMessage","containerBackgroundColor","containerBackgroundOpacity","containerClassName","baseChartMessageImageHAlign","baseChartMessageImageVAlign","baseChartMessageImageAlpha","baseChartMessageImageScale","typeNotSupportedMessageImageHAlign","typeNotSupportedMessageImageVAlign","typeNotSupportedMessageImageAlpha","typeNotSupportedMessageImageScale","dataLoadErrorMessageImageHAlign","dataLoadErrorMessageImageVAlign","dataLoadErrorMessageImageAlpha","dataLoadErrorMessageImageScale","dataLoadStartMessageImageHAlign","dataLoadStartMessageImageVAlign","dataLoadStartMessageImageAlpha","dataLoadStartMessageImageScale","dataInvalidMessageImageHAlign","dataInvalidMessageImageVAlign","dataInvalidMessageImageAlpha","dataInvalidMessageImageScale","dataEmptyMessageImageHAlign","dataEmptyMessageImageVAlign","dataEmptyMessageImageAlpha","dataEmptyMessageImageScale","renderErrorMessageImageHAlign","renderErrorMessageImageVAlign","renderErrorMessageImageAlpha","renderErrorMessageImageScale","loadMessageImageHAlign","loadMessageImageVAlign","loadMessageImageAlpha","loadMessageImageScale","showdataloadingmessage","showchartloadingmessage","basechartmessagefont","basechartmessagefontsize","basechartmessagecolor","dataloadstartmessage","dataloaderrormessage","datainvalidmessage","dataemptymessage","typenotsupportedmessage","loadmessage","rendererrormessage","containerbackgroundcolor","containerbackgroundopacity","containerclassname","basechartmessageimagehalign","basechartmessageimagevalign","basechartmessageimagealpha","basechartmessageimagescale","typenotsupportedmessageimagehalign","typenotsupportedmessageimagevalign","typenotsupportedmessageimagealpha","typenotsupportedmessageimagescale","dataloaderrormessageimagehalign","dataloaderrormessageimagevalign","dataloaderrormessageimagealpha","dataloaderrormessageimagescale","dataloadstartmessageimagehalign","dataloadstartmessageimagevalign","dataloadstartmessageimagealpha","dataloadstartmessageimagescale","datainvalidmessageimagehalign","datainvalidmessageimagevalign","datainvalidmessageimagealpha","datainvalidmessageimagescale","dataemptymessageimagehalign","dataemptymessageimagevalign","dataemptymessageimagealpha","dataemptymessageimagescale","rendererrormessageimagehalign","rendererrormessageimagevalign","rendererrormessageimagealpha","rendererrormessageimagescale","loadmessageimagehalign","loadmessageimagevalign","loadmessageimagealpha","loadmessageimagescale","String","Boolean","Number","module","exports","install","Vue","component","_FCComponent","checkIfDataTableExists","cloneDataSource","addDep","getName","getType","_dataStore","obj","purpose","Array","isArray","arr","length","push","clonedObj","prop","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M,SAASmC,WAAT,CAAqB4J,IAArB,EAA2B;AAChC,MAAItK,OAAOsK,IAAX;AAAA,MACE3K,SAASK,KAAKD,UAAL,EADX;AAAA,MAEEY,aAAaX,KAAKF,cAAL,EAFf;AAAA,MAGEZ,WAAWc,KAAKd,QAHlB;;AAKA,MACES,OAAOiB,KAAP,KAAiBD,WAAWC,KAA5B,IACAjB,OAAOkB,MAAP,KAAkBF,WAAWE,MAF/B,EAGE;AACA3B,gBAAYA,SAAS4B,QAAT,CAAkBnB,OAAOiB,KAAzB,EAAgCjB,OAAOkB,MAAvC,CAAZ;AACD,GALD,MAKO,IAAIlB,OAAOoB,IAAP,KAAgBJ,WAAWI,IAA/B,EAAqC;AAC1C7B,aAAS8B,SAAT,CAAmBrB,OAAOoB,IAA1B;AACD,GAFM,MAEA;AACL,QAAI,CAACwI,uBAAuB5J,OAAOY,UAA9B,CAAL,EACErB,SAAS+B,YAAT,CAAsBtB,OAAOY,UAA7B,EAAyCZ,OAAOuB,UAAhD;AACH;;AAEDlB,OAAKN,cAAL,CAAoBC,MAApB;AACD,C;;;;;;ACrJD,+C","file":"vue-fusioncharts.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"fusioncharts\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"fusioncharts\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueFusionCharts\"] = factory(require(\"fusioncharts\"));\n\telse\n\t\troot[\"VueFusionCharts\"] = factory(root[\"FusionCharts\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_4__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 2);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 737a40d00941a7a6001f","import _FC from 'fusioncharts';\nconst { optionsMap, props } = require('./config.js');\nimport { addDep, checkIfDataTableExists, cloneDataSource } from './utils';\n\nexport default (FC, ...options) => {\n options &&\n options.forEach &&\n options.forEach(modules => {\n addDep(FC, _FC, modules);\n });\n return {\n name: 'fusioncharts',\n template: '
',\n render: function(h) {\n this.containerID = 'fc-' + this._uid;\n return h('div', {\n attrs: {\n id: this.containerID\n }\n });\n },\n props,\n methods: {\n attachListeners: function() {\n if (this.$listeners && typeof this.$listeners === 'object') {\n Object.keys(this.$listeners).forEach(event => {\n this.chartObj.addEventListener(event, e => {\n this.$emit(event, e);\n });\n });\n }\n },\n createEvents: function() {\n const ret = {\n events: {}\n };\n if (this.$listeners && typeof this.$listeners === 'object') {\n Object.keys(this.$listeners).forEach(event => {\n ret.events[event] = e => {\n this.$emit(event, e);\n };\n });\n }\n return ret;\n },\n setLastOptions: function(config) {\n this._oldOptions = Object.assign({}, config);\n },\n getLastOptions: function() {\n return this._oldOptions;\n },\n getOptions: function() {\n let config = {},\n THIS = this;\n for (let i in optionsMap) {\n if (THIS[i] !== undefined && THIS[i] !== null) {\n config[optionsMap[i]] = THIS[i];\n }\n }\n\n let options = Object.assign(Object.assign({}, THIS.options), config);\n\n return options;\n },\n renderChart: function() {\n let THIS = this,\n config = THIS.getOptions(),\n chartObj = THIS.chartObj;\n\n config.renderAt = this.containerID;\n THIS.setLastOptions(config);\n\n if (chartObj && chartObj.dispose) {\n chartObj.dispose();\n }\n const events = this.createEvents();\n config.events = Object.assign({}, config.events, events.events);\n\n let ds = config.dataSource || config.datasource;\n\n if (checkIfDataTableExists(ds))\n this.prevDataSource = cloneDataSource(ds, 'diff');\n else this.prevDataSource = cloneDataSource(ds, 'clone');\n\n THIS.chartObj = chartObj = new FC(config);\n chartObj.render();\n },\n updateChart: function() {\n let THIS = this,\n config = THIS.getOptions(),\n prevConfig = THIS.getLastOptions(),\n chartObj = THIS.chartObj;\n\n if (\n config.width !== prevConfig.width ||\n config.height !== prevConfig.height\n ) {\n chartObj && chartObj.resizeTo(config.width, config.height);\n } else if (config.type !== prevConfig.type) {\n chartObj.chartType(config.type);\n } else {\n if (!checkIfDataTableExists(config.dataSource))\n chartObj.setChartData(config.dataSource, config.dataFormat);\n }\n\n THIS.setLastOptions(config);\n }\n },\n watch: {\n type: function() {\n this.chartObj.chartType(this.type);\n },\n width: function() {\n this.chartObj.resizeTo(this.width, this.height);\n },\n height: function() {\n this.chartObj.resizeTo(this.width, this.height);\n },\n options: {\n handler: function() {\n this.updateChart();\n },\n deep: true\n },\n dataSource: {\n handler: function() {\n if (!checkIfDataTableExists(this.dataSource)) {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: true\n },\n datasource: {\n handler: function() {\n if (!checkIfDataTableExists(this.datasource)) {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: true\n },\n 'datasource.data': {\n handler: function(newVal, prevVal) {\n if (newVal !== prevVal) {\n // SPECIAL CASE: When DataSource has series attribute, vue internally goes into Infinite recursion\n // specifically on _traverse method. This code is written to tackle that issue. In future a much more\n // concrete solution is required.\n if (this.datasource && this.datasource.series) {\n const _FC_ = _FC || window.FusionCharts;\n const data = JSON.parse(JSON.stringify(newVal._data));\n const schema = JSON.parse(JSON.stringify(newVal._schema));\n const dataTable = new _FC_.DataStore().createDataTable(\n data,\n schema\n );\n const newDs = Object.assign(\n {},\n this.datasource || this.dataSource\n );\n newDs.data = dataTable;\n this.chartObj.setChartData(\n newDs,\n this.dataFormat || this.dataformat\n );\n return null;\n }\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: false\n },\n 'dataSource.data': {\n handler: function(newVal, prevVal) {\n if (newVal !== prevVal) {\n if (this.dataSource && this.dataSource.series) {\n const _FC_ = _FC || window.FusionCharts;\n const data = JSON.parse(JSON.stringify(newVal._data));\n const schema = JSON.parse(JSON.stringify(newVal._schema));\n const dataTable = new _FC_.DataStore().createDataTable(\n data,\n schema\n );\n let newDs = Object.assign({}, this.datasource || this.dataSource);\n newDs.data = dataTable;\n this.chartObj.setChartData(\n newDs,\n this.dataFormat || this.dataformat\n );\n return null;\n }\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n }\n },\n deep: false\n }\n },\n deactivated: function() {\n this.chartObj && this.chartObj.dispose();\n },\n beforeDestroy: function() {\n this.chartObj && this.chartObj.dispose();\n },\n mounted: function() {\n this.renderChart();\n },\n ready: function() {\n this.renderChart();\n },\n beforeUpdate: function() {\n const strPrevClonedDataSource = JSON.stringify(this.prevDataSource);\n const ds = this.datasource || this.dataSource || this.options.dataSource;\n const strCurrClonedDataSource = JSON.stringify(\n cloneDataSource(ds, 'diff')\n );\n if (strPrevClonedDataSource !== strCurrClonedDataSource) {\n this.prevDataSource = cloneDataSource(ds, 'diff');\n // if (ds.series) {\n // return null;\n // }\n this.chartObj.setChartData(ds, this.dataFormat || this.dataformat);\n }\n }\n };\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/vue-fusioncharts-component.js","const optionsMap = {\n type: 'type',\n id: 'id',\n width: 'width',\n height: 'height',\n dataFormat: 'dataFormat',\n dataSource: 'dataSource',\n events: 'events',\n link: 'link',\n showDataLoadingMessage: 'showDataLoadingMessage',\n showChartLoadingMessage: 'showChartLoadingMessage',\n baseChartMessageFont: 'baseChartMessageFont',\n baseChartMessageFontSize: 'baseChartMessageFontSize',\n baseChartMessageColor: 'baseChartMessageColor',\n dataLoadStartMessage: 'dataLoadStartMessage',\n dataLoadErrorMessage: 'dataLoadErrorMessage',\n dataInvalidMessage: 'dataInvalidMessage',\n dataEmptyMessage: 'dataEmptyMessage',\n typeNotSupportedMessage: 'typeNotSupportedMessage',\n loadMessage: 'loadMessage',\n renderErrorMessage: 'renderErrorMessage',\n containerBackgroundColor: 'containerBackgroundColor',\n containerBackgroundOpacity: 'containerBackgroundOpacity',\n containerClassName: 'containerClassName',\n baseChartMessageImageHAlign: 'baseChartMessageImageHAlign',\n baseChartMessageImageVAlign: 'baseChartMessageImageVAlign',\n baseChartMessageImageAlpha: 'baseChartMessageImageAlpha',\n baseChartMessageImageScale: 'baseChartMessageImageScale',\n typeNotSupportedMessageImageHAlign: 'typeNotSupportedMessageImageHAlign',\n typeNotSupportedMessageImageVAlign: 'typeNotSupportedMessageImageVAlign',\n typeNotSupportedMessageImageAlpha: 'typeNotSupportedMessageImageAlpha',\n typeNotSupportedMessageImageScale: 'typeNotSupportedMessageImageScale',\n dataLoadErrorMessageImageHAlign: 'dataLoadErrorMessageImageHAlign',\n dataLoadErrorMessageImageVAlign: 'dataLoadErrorMessageImageVAlign',\n dataLoadErrorMessageImageAlpha: 'dataLoadErrorMessageImageAlpha',\n dataLoadErrorMessageImageScale: 'dataLoadErrorMessageImageScale',\n dataLoadStartMessageImageHAlign: 'dataLoadStartMessageImageHAlign',\n dataLoadStartMessageImageVAlign: 'dataLoadStartMessageImageVAlign',\n dataLoadStartMessageImageAlpha: 'dataLoadStartMessageImageAlpha',\n dataLoadStartMessageImageScale: 'dataLoadStartMessageImageScale',\n dataInvalidMessageImageHAlign: 'dataInvalidMessageImageHAlign',\n dataInvalidMessageImageVAlign: 'dataInvalidMessageImageVAlign',\n dataInvalidMessageImageAlpha: 'dataInvalidMessageImageAlpha',\n dataInvalidMessageImageScale: 'dataInvalidMessageImageScale',\n dataEmptyMessageImageHAlign: 'dataEmptyMessageImageHAlign',\n dataEmptyMessageImageVAlign: 'dataEmptyMessageImageVAlign',\n dataEmptyMessageImageAlpha: 'dataEmptyMessageImageAlpha',\n dataEmptyMessageImageScale: 'dataEmptyMessageImageScale',\n renderErrorMessageImageHAlign: 'renderErrorMessageImageHAlign',\n renderErrorMessageImageVAlign: 'renderErrorMessageImageVAlign',\n renderErrorMessageImageAlpha: 'renderErrorMessageImageAlpha',\n renderErrorMessageImageScale: 'renderErrorMessageImageScale',\n loadMessageImageHAlign: 'loadMessageImageHAlign',\n loadMessageImageVAlign: 'loadMessageImageVAlign',\n loadMessageImageAlpha: 'loadMessageImageAlpha',\n loadMessageImageScale: 'loadMessageImageScale',\n ///////////////////////////////////////////////////////\n dataformat: 'dataFormat',\n datasource: 'dataSource',\n showdataloadingmessage: 'showDataLoadingMessage',\n showchartloadingmessage: 'showChartLoadingMessage',\n basechartmessagefont: 'baseChartMessageFont',\n basechartmessagefontsize: 'baseChartMessageFontSize',\n basechartmessagecolor: 'baseChartMessageColor',\n dataloadstartmessage: 'dataLoadStartMessage',\n dataloaderrormessage: 'dataLoadErrorMessage',\n datainvalidmessage: 'dataInvalidMessage',\n dataemptymessage: 'dataEmptyMessage',\n typenotsupportedmessage: 'typeNotSupportedMessage',\n loadmessage: 'loadMessage',\n rendererrormessage: 'renderErrorMessage',\n containerbackgroundcolor: 'containerBackgroundColor',\n containerbackgroundopacity: 'containerBackgroundOpacity',\n containerclassname: 'containerClassName',\n basechartmessageimagehalign: 'baseChartMessageImageHAlign',\n basechartmessageimagevalign: 'baseChartMessageImageVAlign',\n basechartmessageimagealpha: 'baseChartMessageImageAlpha',\n basechartmessageimagescale: 'baseChartMessageImageScale',\n typenotsupportedmessageimagehalign: 'typeNotSupportedMessageImageHAlign',\n typenotsupportedmessageimagevalign: 'typeNotSupportedMessageImageVAlign',\n typenotsupportedmessageimagealpha: 'typeNotSupportedMessageImageAlpha',\n typenotsupportedmessageimagescale: 'typeNotSupportedMessageImageScale',\n dataloaderrormessageimagehalign: 'dataLoadErrorMessageImageHAlign',\n dataloaderrormessageimagevalign: 'dataLoadErrorMessageImageVAlign',\n dataloaderrormessageimagealpha: 'dataLoadErrorMessageImageAlpha',\n dataloaderrormessageimagescale: 'dataLoadErrorMessageImageScale',\n dataloadstartmessageimagehalign: 'dataLoadStartMessageImageHAlign',\n dataloadstartmessageimagevalign: 'dataLoadStartMessageImageVAlign',\n dataloadstartmessageimagealpha: 'dataLoadStartMessageImageAlpha',\n dataloadstartmessageimagescale: 'dataLoadStartMessageImageScale',\n datainvalidmessageimagehalign: 'dataInvalidMessageImageHAlign',\n datainvalidmessageimagevalign: 'dataInvalidMessageImageVAlign',\n datainvalidmessageimagealpha: 'dataInvalidMessageImageAlpha',\n datainvalidmessageimagescale: 'dataInvalidMessageImageScale',\n dataemptymessageimagehalign: 'dataEmptyMessageImageHAlign',\n dataemptymessageimagevalign: 'dataEmptyMessageImageVAlign',\n dataemptymessageimagealpha: 'dataEmptyMessageImageAlpha',\n dataemptymessageimagescale: 'dataEmptyMessageImageScale',\n rendererrormessageimagehalign: 'renderErrorMessageImageHAlign',\n rendererrormessageimagevalign: 'renderErrorMessageImageVAlign',\n rendererrormessageimagealpha: 'renderErrorMessageImageAlpha',\n rendererrormessageimagescale: 'renderErrorMessageImageScale',\n loadmessageimagehalign: 'loadMessageImageHAlign',\n loadmessageimagevalign: 'loadMessageImageVAlign',\n loadmessageimagealpha: 'loadMessageImageAlpha',\n loadmessageimagescale: 'loadMessageImageScale'\n};\n\nconst props = {\n options: Object,\n type: String,\n id: String,\n width: '',\n height: '',\n dataFormat: String,\n dataSource: '',\n events: Object,\n link: Object,\n showDataLoadingMessage: Boolean,\n showChartLoadingMessage: Boolean,\n baseChartMessageFont: String,\n baseChartMessageFontSize: String,\n baseChartMessageColor: String,\n dataLoadStartMessage: String,\n dataLoadErrorMessage: String,\n dataInvalidMessage: String,\n dataEmptyMessage: String,\n typeNotSupportedMessage: String,\n loadMessage: String,\n renderErrorMessage: String,\n containerBackgroundColor: String,\n containerBackgroundOpacity: Number,\n containerClassName: String,\n baseChartMessageImageHAlign: String,\n baseChartMessageImageVAlign: String,\n baseChartMessageImageAlpha: Number,\n baseChartMessageImageScale: Number,\n typeNotSupportedMessageImageHAlign: String,\n typeNotSupportedMessageImageVAlign: String,\n typeNotSupportedMessageImageAlpha: Number,\n typeNotSupportedMessageImageScale: Number,\n dataLoadErrorMessageImageHAlign: String,\n dataLoadErrorMessageImageVAlign: String,\n dataLoadErrorMessageImageAlpha: Number,\n dataLoadErrorMessageImageScale: Number,\n dataLoadStartMessageImageHAlign: String,\n dataLoadStartMessageImageVAlign: String,\n dataLoadStartMessageImageAlpha: Number,\n dataLoadStartMessageImageScale: Number,\n dataInvalidMessageImageHAlign: String,\n dataInvalidMessageImageVAlign: String,\n dataInvalidMessageImageAlpha: Number,\n dataInvalidMessageImageScale: Number,\n dataEmptyMessageImageHAlign: String,\n dataEmptyMessageImageVAlign: String,\n dataEmptyMessageImageAlpha: Number,\n dataEmptyMessageImageScale: Number,\n renderErrorMessageImageHAlign: String,\n renderErrorMessageImageVAlign: String,\n renderErrorMessageImageAlpha: Number,\n renderErrorMessageImageScale: Number,\n loadMessageImageHAlign: String,\n loadMessageImageVAlign: String,\n loadMessageImageAlpha: Number,\n loadMessageImageScale: Number,\n ///////////////////////////////////////////////\n dataformat: String,\n datasource: '',\n showdataloadingmessage: Boolean,\n showchartloadingmessage: Boolean,\n basechartmessagefont: String,\n basechartmessagefontsize: String,\n basechartmessagecolor: String,\n dataloadstartmessage: String,\n dataloaderrormessage: String,\n datainvalidmessage: String,\n dataemptymessage: String,\n typenotsupportedmessage: String,\n loadmessage: String,\n rendererrormessage: String,\n containerbackgroundcolor: String,\n containerbackgroundopacity: Number,\n containerclassname: String,\n basechartmessageimagehalign: String,\n basechartmessageimagevalign: String,\n basechartmessageimagealpha: Number,\n basechartmessageimagescale: Number,\n typenotsupportedmessageimagehalign: String,\n typenotsupportedmessageimagevalign: String,\n typenotsupportedmessageimagealpha: Number,\n typenotsupportedmessageimagescale: Number,\n dataloaderrormessageimagehalign: String,\n dataloaderrormessageimagevalign: String,\n dataloaderrormessageimagealpha: Number,\n dataloaderrormessageimagescale: Number,\n dataloadstartmessageimagehalign: String,\n dataloadstartmessageimagevalign: String,\n dataloadstartmessageimagealpha: Number,\n dataloadstartmessageimagescale: Number,\n datainvalidmessageimagehalign: String,\n datainvalidmessageimagevalign: String,\n datainvalidmessageimagealpha: Number,\n datainvalidmessageimagescale: Number,\n dataemptymessageimagehalign: String,\n dataemptymessageimagevalign: String,\n dataemptymessageimagealpha: Number,\n dataemptymessageimagescale: Number,\n rendererrormessageimagehalign: String,\n rendererrormessageimagevalign: String,\n rendererrormessageimagealpha: Number,\n rendererrormessageimagescale: Number,\n loadmessageimagehalign: String,\n loadmessageimagevalign: String,\n loadmessageimagealpha: Number,\n loadmessageimagescale: Number\n};\n\nmodule.exports = { optionsMap, props };\n\n\n\n// WEBPACK FOOTER //\n// ./src/config.js","import _FCComponent from './vue-fusioncharts-component';\n\nconst install = (Vue, FC, ...options) => {\n let component = _FCComponent(FC, ...options);\n Vue.component(component.name, component);\n};\n\nexport default install;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","export const addDep = (FC, _FC, modules) => {\n if (FC) {\n if (\n (modules.getName && modules.getType) ||\n (modules.name && modules.type)\n ) {\n FC.addDep(modules);\n } else {\n modules(FC);\n }\n } else {\n modules(_FC);\n }\n};\n\nexport function checkIfDataTableExists(dataSource) {\n // eslint-disable-next-line no-underscore-dangle\n if (dataSource && dataSource.data && dataSource.data._dataStore) {\n return true;\n }\n return false;\n}\n\nexport function cloneDataSource(obj, purpose = 'clone') {\n const type = typeof obj;\n if (\n type === 'string' ||\n type === 'number' ||\n type === 'function' ||\n type === 'boolean'\n ) {\n return obj;\n }\n if (obj === null || obj === undefined) {\n return obj;\n }\n if (Array.isArray(obj)) {\n const arr = [];\n for (let i = 0; i < obj.length; i++) {\n arr.push(cloneDataSource(obj[i]));\n }\n return arr;\n }\n if (typeof obj === 'object') {\n const clonedObj = {};\n // eslint-disable-next-line guard-for-in\n // eslint-disable-next-line no-restricted-syntax\n for (const prop in obj) {\n // Edge case handling for DataTable\n if (prop === 'data') {\n // eslint-disable-next-line no-underscore-dangle\n if (obj[prop] && obj[prop]._dataStore && purpose === 'clone') {\n clonedObj[prop] = obj[prop];\n // eslint-disable-next-line no-underscore-dangle\n } else if (obj[prop] && obj[prop]._dataStore && purpose === 'diff') {\n clonedObj[prop] = '-';\n } else {\n clonedObj[prop] = cloneDataSource(obj[prop]);\n }\n continue;\n }\n clonedObj[prop] = cloneDataSource(obj[prop]);\n }\n return clonedObj;\n }\n return undefined;\n}\n\nexport function attachListeners(THIS) {\n if (THIS.$listeners && typeof THIS.$listeners === 'object') {\n Object.keys(THIS.$listeners).forEach(event => {\n THIS.chartObj.addEventListener(event, e => {\n THIS.$emit(event, e);\n });\n });\n }\n}\n\nexport function createEvents(THIS) {\n const ret = {\n events: {}\n };\n if (THIS.$listeners && typeof THIS.$listeners === 'object') {\n Object.keys(THIS.$listeners).forEach(event => {\n ret.events[event] = e => {\n THIS.$emit(event, e);\n };\n });\n }\n return ret;\n}\n\nexport function setLastOptions(config, THIS) {\n THIS._oldOptions = Object.assign({}, config);\n}\n\nexport function getLastOptions(THIS) {\n return THIS._oldOptions;\n}\n\nexport function getOptions(This, optionsMap) {\n let config = {},\n THIS = This;\n for (let i in optionsMap) {\n if (THIS[i] !== undefined && THIS[i] !== null) {\n config[optionsMap[i]] = THIS[i];\n }\n }\n let options = Object.assign(Object.assign({}, THIS.options), config);\n return options;\n}\n\nexport function renderChart(This, FC) {\n let THIS = This,\n config = THIS.getOptions(),\n chartObj = THIS.chartObj;\n\n config.renderAt = this.containerID;\n THIS.setLastOptions(config);\n\n if (chartObj && chartObj.dispose) {\n chartObj.dispose();\n }\n const events = this.createEvents();\n config.events = Object.assign({}, config.events, events.events);\n\n THIS.chartObj = chartObj = new FC(config);\n chartObj.render();\n}\n\nexport function updateChart(This) {\n let THIS = This,\n config = THIS.getOptions(),\n prevConfig = THIS.getLastOptions(),\n chartObj = THIS.chartObj;\n\n if (\n config.width !== prevConfig.width ||\n config.height !== prevConfig.height\n ) {\n chartObj && chartObj.resizeTo(config.width, config.height);\n } else if (config.type !== prevConfig.type) {\n chartObj.chartType(config.type);\n } else {\n if (!checkIfDataTableExists(config.dataSource))\n chartObj.setChartData(config.dataSource, config.dataFormat);\n }\n\n THIS.setLastOptions(config);\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils.js","module.exports = __WEBPACK_EXTERNAL_MODULE_4__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"commonjs2\":\"fusioncharts\",\"commonjs\":\"fusioncharts\",\"amd\":\"fusioncharts\",\"root\":\"FusionCharts\"}\n// module id = 4\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/vue-fusioncharts.min.js b/dist/vue-fusioncharts.min.js index 86cd102..e36588c 100644 --- a/dist/vue-fusioncharts.min.js +++ b/dist/vue-fusioncharts.min.js @@ -1 +1 @@ -!function(a,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("fusioncharts")):"function"==typeof define&&define.amd?define(["fusioncharts"],e):"object"==typeof exports?exports.VueFusionCharts=e(require("fusioncharts")):a.VueFusionCharts=e(a.FusionCharts)}(this,function(a){return function(a){function e(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return a[s].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var t={};return e.m=a,e.c=t,e.i=function(a){return a},e.d=function(a,t,s){e.o(a,t)||Object.defineProperty(a,t,{configurable:!1,enumerable:!0,get:s})},e.n=function(a){var t=a&&a.__esModule?function(){return a.default}:function(){return a};return e.d(t,"a",t),t},e.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},e.p="",e(e.s=2)}([function(a,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},r=t(4),g=function(a){return a&&a.__esModule?a:{default:a}}(r),n=t(3),o=t(1),i=o.optionsMap,d=o.props;e.default=function(a){for(var e=arguments.length,t=Array(e>1?e-1:0),r=1;r",render:function(a){return this.containerID="fc-"+this._uid,a("div",{attrs:{id:this.containerID}})},props:d,methods:{attachListeners:function(){var a=this;this.$listeners&&"object"===s(this.$listeners)&&Object.keys(this.$listeners).forEach(function(e){a.chartObj.addEventListener(e,function(t){a.$emit(e,t)})})},createEvents:function(){var a=this,e={events:{}};return this.$listeners&&"object"===s(this.$listeners)&&Object.keys(this.$listeners).forEach(function(t){e.events[t]=function(e){a.$emit(t,e)}}),e},setLastOptions:function(a){this._oldOptions=Object.assign({},a)},getLastOptions:function(){return this._oldOptions},getOptions:function(){var a={},e=this;for(var t in i)void 0!==e[t]&&null!==e[t]&&(a[i[t]]=e[t]);return Object.assign(Object.assign({},e.options),a)},renderChart:function(){var e=this,t=e.getOptions(),s=e.chartObj;t.renderAt=this.containerID,e.setLastOptions(t),s&&s.dispose&&s.dispose();var r=this.createEvents();t.events=Object.assign({},t.events,r.events);var g=t.dataSource||t.datasource;(0,n.checkIfDataTableExists)(g)?this.prevDataSource=(0,n.cloneDataSource)(g,"diff"):this.prevDataSource=(0,n.cloneDataSource)(g,"clone"),e.chartObj=s=new a(t),s.render()},updateChart:function(){var a=this,e=a.getOptions(),t=a.getLastOptions(),s=a.chartObj;e.width!==t.width||e.height!==t.height?s&&s.resizeTo(e.width,e.height):e.type!==t.type?s.chartType(e.type):(0,n.checkIfDataTableExists)(e.dataSource)||s.setChartData(e.dataSource,e.dataFormat),a.setLastOptions(e)}},watch:{type:function(){this.chartObj.chartType(this.type)},width:function(){this.chartObj.resizeTo(this.width,this.height)},height:function(){this.chartObj.resizeTo(this.width,this.height)},options:{handler:function(){this.updateChart()},deep:!0},dataSource:{handler:function(){(0,n.checkIfDataTableExists)(this.dataSource)||this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},datasource:{handler:function(){(0,n.checkIfDataTableExists)(this.datasource)||this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},"datasource.data":{handler:function(a,e){a!==e&&this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!1},"dataSource.data":{handler:function(a,e){a!==e&&this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!1}},deactivated:function(){this.chartObj&&this.chartObj.dispose()},beforeDestroy:function(){this.chartObj&&this.chartObj.dispose()},mounted:function(){this.renderChart()},ready:function(){this.renderChart()},beforeUpdate:function(){var a=JSON.stringify(this.prevDataSource),e=this.datasource||this.dataSource||this.options.dataSource;a!==JSON.stringify((0,n.cloneDataSource)(e,"diff"))&&(this.prevDataSource=(0,n.cloneDataSource)(e,"diff"),this.chartObj.setChartData(e,this.dataFormat||this.dataformat))}}},a.exports=e.default},function(a,e,t){"use strict";var s={type:"type",id:"id",width:"width",height:"height",dataFormat:"dataFormat",dataSource:"dataSource",events:"events",link:"link",showDataLoadingMessage:"showDataLoadingMessage",showChartLoadingMessage:"showChartLoadingMessage",baseChartMessageFont:"baseChartMessageFont",baseChartMessageFontSize:"baseChartMessageFontSize",baseChartMessageColor:"baseChartMessageColor",dataLoadStartMessage:"dataLoadStartMessage",dataLoadErrorMessage:"dataLoadErrorMessage",dataInvalidMessage:"dataInvalidMessage",dataEmptyMessage:"dataEmptyMessage",typeNotSupportedMessage:"typeNotSupportedMessage",loadMessage:"loadMessage",renderErrorMessage:"renderErrorMessage",containerBackgroundColor:"containerBackgroundColor",containerBackgroundOpacity:"containerBackgroundOpacity",containerClassName:"containerClassName",baseChartMessageImageHAlign:"baseChartMessageImageHAlign",baseChartMessageImageVAlign:"baseChartMessageImageVAlign",baseChartMessageImageAlpha:"baseChartMessageImageAlpha",baseChartMessageImageScale:"baseChartMessageImageScale",typeNotSupportedMessageImageHAlign:"typeNotSupportedMessageImageHAlign",typeNotSupportedMessageImageVAlign:"typeNotSupportedMessageImageVAlign",typeNotSupportedMessageImageAlpha:"typeNotSupportedMessageImageAlpha",typeNotSupportedMessageImageScale:"typeNotSupportedMessageImageScale",dataLoadErrorMessageImageHAlign:"dataLoadErrorMessageImageHAlign",dataLoadErrorMessageImageVAlign:"dataLoadErrorMessageImageVAlign",dataLoadErrorMessageImageAlpha:"dataLoadErrorMessageImageAlpha",dataLoadErrorMessageImageScale:"dataLoadErrorMessageImageScale",dataLoadStartMessageImageHAlign:"dataLoadStartMessageImageHAlign",dataLoadStartMessageImageVAlign:"dataLoadStartMessageImageVAlign",dataLoadStartMessageImageAlpha:"dataLoadStartMessageImageAlpha",dataLoadStartMessageImageScale:"dataLoadStartMessageImageScale",dataInvalidMessageImageHAlign:"dataInvalidMessageImageHAlign",dataInvalidMessageImageVAlign:"dataInvalidMessageImageVAlign",dataInvalidMessageImageAlpha:"dataInvalidMessageImageAlpha",dataInvalidMessageImageScale:"dataInvalidMessageImageScale",dataEmptyMessageImageHAlign:"dataEmptyMessageImageHAlign",dataEmptyMessageImageVAlign:"dataEmptyMessageImageVAlign",dataEmptyMessageImageAlpha:"dataEmptyMessageImageAlpha",dataEmptyMessageImageScale:"dataEmptyMessageImageScale",renderErrorMessageImageHAlign:"renderErrorMessageImageHAlign",renderErrorMessageImageVAlign:"renderErrorMessageImageVAlign",renderErrorMessageImageAlpha:"renderErrorMessageImageAlpha",renderErrorMessageImageScale:"renderErrorMessageImageScale",loadMessageImageHAlign:"loadMessageImageHAlign",loadMessageImageVAlign:"loadMessageImageVAlign",loadMessageImageAlpha:"loadMessageImageAlpha",loadMessageImageScale:"loadMessageImageScale",dataformat:"dataFormat",datasource:"dataSource",showdataloadingmessage:"showDataLoadingMessage",showchartloadingmessage:"showChartLoadingMessage",basechartmessagefont:"baseChartMessageFont",basechartmessagefontsize:"baseChartMessageFontSize",basechartmessagecolor:"baseChartMessageColor",dataloadstartmessage:"dataLoadStartMessage",dataloaderrormessage:"dataLoadErrorMessage",datainvalidmessage:"dataInvalidMessage",dataemptymessage:"dataEmptyMessage",typenotsupportedmessage:"typeNotSupportedMessage",loadmessage:"loadMessage",rendererrormessage:"renderErrorMessage",containerbackgroundcolor:"containerBackgroundColor",containerbackgroundopacity:"containerBackgroundOpacity",containerclassname:"containerClassName",basechartmessageimagehalign:"baseChartMessageImageHAlign",basechartmessageimagevalign:"baseChartMessageImageVAlign",basechartmessageimagealpha:"baseChartMessageImageAlpha",basechartmessageimagescale:"baseChartMessageImageScale",typenotsupportedmessageimagehalign:"typeNotSupportedMessageImageHAlign",typenotsupportedmessageimagevalign:"typeNotSupportedMessageImageVAlign",typenotsupportedmessageimagealpha:"typeNotSupportedMessageImageAlpha",typenotsupportedmessageimagescale:"typeNotSupportedMessageImageScale",dataloaderrormessageimagehalign:"dataLoadErrorMessageImageHAlign",dataloaderrormessageimagevalign:"dataLoadErrorMessageImageVAlign",dataloaderrormessageimagealpha:"dataLoadErrorMessageImageAlpha",dataloaderrormessageimagescale:"dataLoadErrorMessageImageScale",dataloadstartmessageimagehalign:"dataLoadStartMessageImageHAlign",dataloadstartmessageimagevalign:"dataLoadStartMessageImageVAlign",dataloadstartmessageimagealpha:"dataLoadStartMessageImageAlpha",dataloadstartmessageimagescale:"dataLoadStartMessageImageScale",datainvalidmessageimagehalign:"dataInvalidMessageImageHAlign",datainvalidmessageimagevalign:"dataInvalidMessageImageVAlign",datainvalidmessageimagealpha:"dataInvalidMessageImageAlpha",datainvalidmessageimagescale:"dataInvalidMessageImageScale",dataemptymessageimagehalign:"dataEmptyMessageImageHAlign",dataemptymessageimagevalign:"dataEmptyMessageImageVAlign",dataemptymessageimagealpha:"dataEmptyMessageImageAlpha",dataemptymessageimagescale:"dataEmptyMessageImageScale",rendererrormessageimagehalign:"renderErrorMessageImageHAlign",rendererrormessageimagevalign:"renderErrorMessageImageVAlign",rendererrormessageimagealpha:"renderErrorMessageImageAlpha",rendererrormessageimagescale:"renderErrorMessageImageScale",loadmessageimagehalign:"loadMessageImageHAlign",loadmessageimagevalign:"loadMessageImageVAlign",loadmessageimagealpha:"loadMessageImageAlpha",loadmessageimagescale:"loadMessageImageScale"},r={options:Object,type:String,id:String,width:"",height:"",dataFormat:String,dataSource:"",events:Object,link:Object,showDataLoadingMessage:Boolean,showChartLoadingMessage:Boolean,baseChartMessageFont:String,baseChartMessageFontSize:String,baseChartMessageColor:String,dataLoadStartMessage:String,dataLoadErrorMessage:String,dataInvalidMessage:String,dataEmptyMessage:String,typeNotSupportedMessage:String,loadMessage:String,renderErrorMessage:String,containerBackgroundColor:String,containerBackgroundOpacity:Number,containerClassName:String,baseChartMessageImageHAlign:String,baseChartMessageImageVAlign:String,baseChartMessageImageAlpha:Number,baseChartMessageImageScale:Number,typeNotSupportedMessageImageHAlign:String,typeNotSupportedMessageImageVAlign:String,typeNotSupportedMessageImageAlpha:Number,typeNotSupportedMessageImageScale:Number,dataLoadErrorMessageImageHAlign:String,dataLoadErrorMessageImageVAlign:String,dataLoadErrorMessageImageAlpha:Number,dataLoadErrorMessageImageScale:Number,dataLoadStartMessageImageHAlign:String,dataLoadStartMessageImageVAlign:String,dataLoadStartMessageImageAlpha:Number,dataLoadStartMessageImageScale:Number,dataInvalidMessageImageHAlign:String,dataInvalidMessageImageVAlign:String,dataInvalidMessageImageAlpha:Number,dataInvalidMessageImageScale:Number,dataEmptyMessageImageHAlign:String,dataEmptyMessageImageVAlign:String,dataEmptyMessageImageAlpha:Number,dataEmptyMessageImageScale:Number,renderErrorMessageImageHAlign:String,renderErrorMessageImageVAlign:String,renderErrorMessageImageAlpha:Number,renderErrorMessageImageScale:Number,loadMessageImageHAlign:String,loadMessageImageVAlign:String,loadMessageImageAlpha:Number,loadMessageImageScale:Number,dataformat:String,datasource:"",showdataloadingmessage:Boolean,showchartloadingmessage:Boolean,basechartmessagefont:String,basechartmessagefontsize:String,basechartmessagecolor:String,dataloadstartmessage:String,dataloaderrormessage:String,datainvalidmessage:String,dataemptymessage:String,typenotsupportedmessage:String,loadmessage:String,rendererrormessage:String,containerbackgroundcolor:String,containerbackgroundopacity:Number,containerclassname:String,basechartmessageimagehalign:String,basechartmessageimagevalign:String,basechartmessageimagealpha:Number,basechartmessageimagescale:Number,typenotsupportedmessageimagehalign:String,typenotsupportedmessageimagevalign:String,typenotsupportedmessageimagealpha:Number,typenotsupportedmessageimagescale:Number,dataloaderrormessageimagehalign:String,dataloaderrormessageimagevalign:String,dataloaderrormessageimagealpha:Number,dataloaderrormessageimagescale:Number,dataloadstartmessageimagehalign:String,dataloadstartmessageimagevalign:String,dataloadstartmessageimagealpha:Number,dataloadstartmessageimagescale:Number,datainvalidmessageimagehalign:String,datainvalidmessageimagevalign:String,datainvalidmessageimagealpha:Number,datainvalidmessageimagescale:Number,dataemptymessageimagehalign:String,dataemptymessageimagevalign:String,dataemptymessageimagealpha:Number,dataemptymessageimagescale:Number,rendererrormessageimagehalign:String,rendererrormessageimagevalign:String,rendererrormessageimagealpha:Number,rendererrormessageimagescale:Number,loadmessageimagehalign:String,loadmessageimagevalign:String,loadmessageimagealpha:Number,loadmessageimagescale:Number};a.exports={optionsMap:s,props:r}},function(a,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=t(0),r=function(a){return a&&a.__esModule?a:{default:a}}(s),g=function(a,e){for(var t=arguments.length,s=Array(t>2?t-2:0),g=2;g1&&void 0!==arguments[1]?arguments[1]:"clone",t=void 0===a?"undefined":c(a);if("string"===t||"number"===t||"function"===t||"boolean"===t)return a;if(null===a||void 0===a)return a;if(Array.isArray(a)){for(var s=[],g=0;g1?e-1:0),r=1;r",render:function(a){return this.containerID="fc-"+this._uid,a("div",{attrs:{id:this.containerID}})},props:d,methods:{attachListeners:function(){var a=this;this.$listeners&&"object"===s(this.$listeners)&&Object.keys(this.$listeners).forEach(function(e){a.chartObj.addEventListener(e,function(t){a.$emit(e,t)})})},createEvents:function(){var a=this,e={events:{}};return this.$listeners&&"object"===s(this.$listeners)&&Object.keys(this.$listeners).forEach(function(t){e.events[t]=function(e){a.$emit(t,e)}}),e},setLastOptions:function(a){this._oldOptions=Object.assign({},a)},getLastOptions:function(){return this._oldOptions},getOptions:function(){var a={},e=this;for(var t in o)void 0!==e[t]&&null!==e[t]&&(a[o[t]]=e[t]);return Object.assign(Object.assign({},e.options),a)},renderChart:function(){var e=this,t=e.getOptions(),s=e.chartObj;t.renderAt=this.containerID,e.setLastOptions(t),s&&s.dispose&&s.dispose();var r=this.createEvents();t.events=Object.assign({},t.events,r.events);var g=t.dataSource||t.datasource;(0,n.checkIfDataTableExists)(g)?this.prevDataSource=(0,n.cloneDataSource)(g,"diff"):this.prevDataSource=(0,n.cloneDataSource)(g,"clone"),e.chartObj=s=new a(t),s.render()},updateChart:function(){var a=this,e=a.getOptions(),t=a.getLastOptions(),s=a.chartObj;e.width!==t.width||e.height!==t.height?s&&s.resizeTo(e.width,e.height):e.type!==t.type?s.chartType(e.type):(0,n.checkIfDataTableExists)(e.dataSource)||s.setChartData(e.dataSource,e.dataFormat),a.setLastOptions(e)}},watch:{type:function(){this.chartObj.chartType(this.type)},width:function(){this.chartObj.resizeTo(this.width,this.height)},height:function(){this.chartObj.resizeTo(this.width,this.height)},options:{handler:function(){this.updateChart()},deep:!0},dataSource:{handler:function(){(0,n.checkIfDataTableExists)(this.dataSource)||this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},datasource:{handler:function(){(0,n.checkIfDataTableExists)(this.datasource)||this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},"datasource.data":{handler:function(a,e){if(a!==e){if(this.datasource&&this.datasource.series){var t=g.default||window.FusionCharts,s=JSON.parse(JSON.stringify(a._data)),r=JSON.parse(JSON.stringify(a._schema)),n=(new t.DataStore).createDataTable(s,r),i=Object.assign({},this.datasource||this.dataSource);return i.data=n,this.chartObj.setChartData(i,this.dataFormat||this.dataformat),null}this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)}},deep:!1},"dataSource.data":{handler:function(a,e){if(a!==e){if(this.dataSource&&this.dataSource.series){var t=g.default||window.FusionCharts,s=JSON.parse(JSON.stringify(a._data)),r=JSON.parse(JSON.stringify(a._schema)),n=(new t.DataStore).createDataTable(s,r),i=Object.assign({},this.datasource||this.dataSource);return i.data=n,this.chartObj.setChartData(i,this.dataFormat||this.dataformat),null}this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)}},deep:!1}},deactivated:function(){this.chartObj&&this.chartObj.dispose()},beforeDestroy:function(){this.chartObj&&this.chartObj.dispose()},mounted:function(){this.renderChart()},ready:function(){this.renderChart()},beforeUpdate:function(){var a=JSON.stringify(this.prevDataSource),e=this.datasource||this.dataSource||this.options.dataSource;a!==JSON.stringify((0,n.cloneDataSource)(e,"diff"))&&(this.prevDataSource=(0,n.cloneDataSource)(e,"diff"),this.chartObj.setChartData(e,this.dataFormat||this.dataformat))}}},a.exports=e.default},function(a,e,t){"use strict";var s={type:"type",id:"id",width:"width",height:"height",dataFormat:"dataFormat",dataSource:"dataSource",events:"events",link:"link",showDataLoadingMessage:"showDataLoadingMessage",showChartLoadingMessage:"showChartLoadingMessage",baseChartMessageFont:"baseChartMessageFont",baseChartMessageFontSize:"baseChartMessageFontSize",baseChartMessageColor:"baseChartMessageColor",dataLoadStartMessage:"dataLoadStartMessage",dataLoadErrorMessage:"dataLoadErrorMessage",dataInvalidMessage:"dataInvalidMessage",dataEmptyMessage:"dataEmptyMessage",typeNotSupportedMessage:"typeNotSupportedMessage",loadMessage:"loadMessage",renderErrorMessage:"renderErrorMessage",containerBackgroundColor:"containerBackgroundColor",containerBackgroundOpacity:"containerBackgroundOpacity",containerClassName:"containerClassName",baseChartMessageImageHAlign:"baseChartMessageImageHAlign",baseChartMessageImageVAlign:"baseChartMessageImageVAlign",baseChartMessageImageAlpha:"baseChartMessageImageAlpha",baseChartMessageImageScale:"baseChartMessageImageScale",typeNotSupportedMessageImageHAlign:"typeNotSupportedMessageImageHAlign",typeNotSupportedMessageImageVAlign:"typeNotSupportedMessageImageVAlign",typeNotSupportedMessageImageAlpha:"typeNotSupportedMessageImageAlpha",typeNotSupportedMessageImageScale:"typeNotSupportedMessageImageScale",dataLoadErrorMessageImageHAlign:"dataLoadErrorMessageImageHAlign",dataLoadErrorMessageImageVAlign:"dataLoadErrorMessageImageVAlign",dataLoadErrorMessageImageAlpha:"dataLoadErrorMessageImageAlpha",dataLoadErrorMessageImageScale:"dataLoadErrorMessageImageScale",dataLoadStartMessageImageHAlign:"dataLoadStartMessageImageHAlign",dataLoadStartMessageImageVAlign:"dataLoadStartMessageImageVAlign",dataLoadStartMessageImageAlpha:"dataLoadStartMessageImageAlpha",dataLoadStartMessageImageScale:"dataLoadStartMessageImageScale",dataInvalidMessageImageHAlign:"dataInvalidMessageImageHAlign",dataInvalidMessageImageVAlign:"dataInvalidMessageImageVAlign",dataInvalidMessageImageAlpha:"dataInvalidMessageImageAlpha",dataInvalidMessageImageScale:"dataInvalidMessageImageScale",dataEmptyMessageImageHAlign:"dataEmptyMessageImageHAlign",dataEmptyMessageImageVAlign:"dataEmptyMessageImageVAlign",dataEmptyMessageImageAlpha:"dataEmptyMessageImageAlpha",dataEmptyMessageImageScale:"dataEmptyMessageImageScale",renderErrorMessageImageHAlign:"renderErrorMessageImageHAlign",renderErrorMessageImageVAlign:"renderErrorMessageImageVAlign",renderErrorMessageImageAlpha:"renderErrorMessageImageAlpha",renderErrorMessageImageScale:"renderErrorMessageImageScale",loadMessageImageHAlign:"loadMessageImageHAlign",loadMessageImageVAlign:"loadMessageImageVAlign",loadMessageImageAlpha:"loadMessageImageAlpha",loadMessageImageScale:"loadMessageImageScale",dataformat:"dataFormat",datasource:"dataSource",showdataloadingmessage:"showDataLoadingMessage",showchartloadingmessage:"showChartLoadingMessage",basechartmessagefont:"baseChartMessageFont",basechartmessagefontsize:"baseChartMessageFontSize",basechartmessagecolor:"baseChartMessageColor",dataloadstartmessage:"dataLoadStartMessage",dataloaderrormessage:"dataLoadErrorMessage",datainvalidmessage:"dataInvalidMessage",dataemptymessage:"dataEmptyMessage",typenotsupportedmessage:"typeNotSupportedMessage",loadmessage:"loadMessage",rendererrormessage:"renderErrorMessage",containerbackgroundcolor:"containerBackgroundColor",containerbackgroundopacity:"containerBackgroundOpacity",containerclassname:"containerClassName",basechartmessageimagehalign:"baseChartMessageImageHAlign",basechartmessageimagevalign:"baseChartMessageImageVAlign",basechartmessageimagealpha:"baseChartMessageImageAlpha",basechartmessageimagescale:"baseChartMessageImageScale",typenotsupportedmessageimagehalign:"typeNotSupportedMessageImageHAlign",typenotsupportedmessageimagevalign:"typeNotSupportedMessageImageVAlign",typenotsupportedmessageimagealpha:"typeNotSupportedMessageImageAlpha",typenotsupportedmessageimagescale:"typeNotSupportedMessageImageScale",dataloaderrormessageimagehalign:"dataLoadErrorMessageImageHAlign",dataloaderrormessageimagevalign:"dataLoadErrorMessageImageVAlign",dataloaderrormessageimagealpha:"dataLoadErrorMessageImageAlpha",dataloaderrormessageimagescale:"dataLoadErrorMessageImageScale",dataloadstartmessageimagehalign:"dataLoadStartMessageImageHAlign",dataloadstartmessageimagevalign:"dataLoadStartMessageImageVAlign",dataloadstartmessageimagealpha:"dataLoadStartMessageImageAlpha",dataloadstartmessageimagescale:"dataLoadStartMessageImageScale",datainvalidmessageimagehalign:"dataInvalidMessageImageHAlign",datainvalidmessageimagevalign:"dataInvalidMessageImageVAlign",datainvalidmessageimagealpha:"dataInvalidMessageImageAlpha",datainvalidmessageimagescale:"dataInvalidMessageImageScale",dataemptymessageimagehalign:"dataEmptyMessageImageHAlign",dataemptymessageimagevalign:"dataEmptyMessageImageVAlign",dataemptymessageimagealpha:"dataEmptyMessageImageAlpha",dataemptymessageimagescale:"dataEmptyMessageImageScale",rendererrormessageimagehalign:"renderErrorMessageImageHAlign",rendererrormessageimagevalign:"renderErrorMessageImageVAlign",rendererrormessageimagealpha:"renderErrorMessageImageAlpha",rendererrormessageimagescale:"renderErrorMessageImageScale",loadmessageimagehalign:"loadMessageImageHAlign",loadmessageimagevalign:"loadMessageImageVAlign",loadmessageimagealpha:"loadMessageImageAlpha",loadmessageimagescale:"loadMessageImageScale"},r={options:Object,type:String,id:String,width:"",height:"",dataFormat:String,dataSource:"",events:Object,link:Object,showDataLoadingMessage:Boolean,showChartLoadingMessage:Boolean,baseChartMessageFont:String,baseChartMessageFontSize:String,baseChartMessageColor:String,dataLoadStartMessage:String,dataLoadErrorMessage:String,dataInvalidMessage:String,dataEmptyMessage:String,typeNotSupportedMessage:String,loadMessage:String,renderErrorMessage:String,containerBackgroundColor:String,containerBackgroundOpacity:Number,containerClassName:String,baseChartMessageImageHAlign:String,baseChartMessageImageVAlign:String,baseChartMessageImageAlpha:Number,baseChartMessageImageScale:Number,typeNotSupportedMessageImageHAlign:String,typeNotSupportedMessageImageVAlign:String,typeNotSupportedMessageImageAlpha:Number,typeNotSupportedMessageImageScale:Number,dataLoadErrorMessageImageHAlign:String,dataLoadErrorMessageImageVAlign:String,dataLoadErrorMessageImageAlpha:Number,dataLoadErrorMessageImageScale:Number,dataLoadStartMessageImageHAlign:String,dataLoadStartMessageImageVAlign:String,dataLoadStartMessageImageAlpha:Number,dataLoadStartMessageImageScale:Number,dataInvalidMessageImageHAlign:String,dataInvalidMessageImageVAlign:String,dataInvalidMessageImageAlpha:Number,dataInvalidMessageImageScale:Number,dataEmptyMessageImageHAlign:String,dataEmptyMessageImageVAlign:String,dataEmptyMessageImageAlpha:Number,dataEmptyMessageImageScale:Number,renderErrorMessageImageHAlign:String,renderErrorMessageImageVAlign:String,renderErrorMessageImageAlpha:Number,renderErrorMessageImageScale:Number,loadMessageImageHAlign:String,loadMessageImageVAlign:String,loadMessageImageAlpha:Number,loadMessageImageScale:Number,dataformat:String,datasource:"",showdataloadingmessage:Boolean,showchartloadingmessage:Boolean,basechartmessagefont:String,basechartmessagefontsize:String,basechartmessagecolor:String,dataloadstartmessage:String,dataloaderrormessage:String,datainvalidmessage:String,dataemptymessage:String,typenotsupportedmessage:String,loadmessage:String,rendererrormessage:String,containerbackgroundcolor:String,containerbackgroundopacity:Number,containerclassname:String,basechartmessageimagehalign:String,basechartmessageimagevalign:String,basechartmessageimagealpha:Number,basechartmessageimagescale:Number,typenotsupportedmessageimagehalign:String,typenotsupportedmessageimagevalign:String,typenotsupportedmessageimagealpha:Number,typenotsupportedmessageimagescale:Number,dataloaderrormessageimagehalign:String,dataloaderrormessageimagevalign:String,dataloaderrormessageimagealpha:Number,dataloaderrormessageimagescale:Number,dataloadstartmessageimagehalign:String,dataloadstartmessageimagevalign:String,dataloadstartmessageimagealpha:Number,dataloadstartmessageimagescale:Number,datainvalidmessageimagehalign:String,datainvalidmessageimagevalign:String,datainvalidmessageimagealpha:Number,datainvalidmessageimagescale:Number,dataemptymessageimagehalign:String,dataemptymessageimagevalign:String,dataemptymessageimagealpha:Number,dataemptymessageimagescale:Number,rendererrormessageimagehalign:String,rendererrormessageimagevalign:String,rendererrormessageimagealpha:Number,rendererrormessageimagescale:Number,loadmessageimagehalign:String,loadmessageimagevalign:String,loadmessageimagealpha:Number,loadmessageimagescale:Number};a.exports={optionsMap:s,props:r}},function(a,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=t(0),r=function(a){return a&&a.__esModule?a:{default:a}}(s),g=function(a,e){for(var t=arguments.length,s=Array(t>2?t-2:0),g=2;g1&&void 0!==arguments[1]?arguments[1]:"clone",t=void 0===a?"undefined":c(a);if("string"===t||"number"===t||"function"===t||"boolean"===t)return a;if(null===a||void 0===a)return a;if(Array.isArray(a)){for(var s=[],g=0;g res.json(); -const dataFetch = fetch( - 'https://raw.githubusercontent.com/fusioncharts/dev_centre_docs/fusiontime-beta-release/charts-resources/fusiontime/online-sales-single-series/data.json' +var dataFetch = fetch( + 'https://s3.eu-central-1.amazonaws.com/fusion.store/ft/data/plotting-multiple-series-on-time-axis-data.json' ).then(jsonify); -const schemaFetch = fetch( - 'https://raw.githubusercontent.com/fusioncharts/dev_centre_docs/fusiontime-beta-release/charts-resources/fusiontime/online-sales-single-series/schema.json' +var schemaFetch = fetch( + 'https://s3.eu-central-1.amazonaws.com/fusion.store/ft/schema/plotting-multiple-series-on-time-axis-schema.json' ).then(jsonify); // Use VueFusionCharts plugins by calling the Vue.use() global method: @@ -42,20 +42,26 @@ var chart = new Vue({ chart.displayValue = props.value; } }, - width: '500', - height: '300', + width: '600', + height: '400', type: 'timeseries', dataFormat: 'json', dataSource: { - caption: { text: 'Online Sales of a SuperStore in the US' }, data: null, + caption: { + text: 'Sales Analysis' + }, + subcaption: { + text: 'Grocery & Footwear' + }, + series: 'Type', yAxis: [ { - plot: [ - { - value: 'Sales ($)' - } - ] + plot: 'Sales Value', + title: 'Sale Value', + format: { + prefix: '$' + } } ] }, @@ -70,8 +76,8 @@ var chart = new Vue({ data: [{ value: 1.9 }, { value: 2.3 }, { value: 2.1 }] }, options: { - width: '500', - height: '300', + width: '600', + height: '400', type: 'Pie2D', dataFormat: 'json', dataSource: { @@ -83,8 +89,8 @@ var chart = new Vue({ } }, timeseriesOptions: { - width: '500', - height: '300', + width: '600', + height: '400', type: 'timeseries', dataFormat: 'json', dataSource: { @@ -105,9 +111,9 @@ var chart = new Vue({ methods: { changeFirstChartAttr: function() { // let dataSource = Object.assign({}, this.pieDataSource); - // this.chartDs.chart.caption = 'Changed to something else'; - this.chartDs.data[2].value = this.getRandomNumber(); - this.chartDs.data[1].value = this.getRandomNumber(); + this.chartDs.chart.caption = 'Changed to something else'; + // this.chartDs.data[2].value = this.getRandomNumber(); + // this.chartDs.data[1].value = this.getRandomNumber(); // this.pieDataSource = dataSource; }, changeSecondChartAttr: function() { @@ -122,6 +128,17 @@ var chart = new Vue({ } }, mounted: function() { + // Promise.all([dataFetch, schemaFetch]).then(res => { + // const data = res[0]; + // const schema = res[1]; + // const fusionTable = new FusionCharts.DataStore().createDataTable( + // data, + // schema + // ); + // this.dataSource.data = fusionTable; + // }); + }, + beforeMount: function() { Promise.all([dataFetch, schemaFetch]).then(res => { const data = res[0]; const schema = res[1]; diff --git a/package-lock.json b/package-lock.json index 190916d..ed18636 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vue-fusioncharts", - "version": "3.0.0", + "version": "3.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -3819,9 +3819,9 @@ "dev": true }, "hyphenate-style-name": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.2.tgz", - "integrity": "sha1-MRYKNpMK2vH8BMYHT360FGXU7Es=" + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.3.tgz", + "integrity": "sha512-EcuixamT82oplpoJ2XU4pDtKGWQ7b00CD9f1ug9IaQ3p1bkHMiKCZ9ut9QDI6qsa6cpUuB+A/I+zLtdNK4n2DQ==" }, "iconv-lite": { "version": "0.4.19", @@ -6697,6 +6697,11 @@ "dev": true, "optional": true }, + "underscore": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", + "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" + }, "union-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", diff --git a/package.json b/package.json index 5120547..1edb025 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-fusioncharts", - "version": "3.0.1", + "version": "3.0.2", "description": "FusionCharts component for Vue.js", "main": "dist/vue-fusioncharts.js", "author": "FusionCharts", @@ -80,6 +80,7 @@ "yards": "^0.1.4" }, "dependencies": { - "fusioncharts": "^3.13.3-sr.1" + "fusioncharts": "^3.13.3-sr.1", + "underscore": "^1.9.1" } } diff --git a/src/vue-fusioncharts-component.js b/src/vue-fusioncharts-component.js index badb657..7881a1a 100644 --- a/src/vue-fusioncharts-component.js +++ b/src/vue-fusioncharts-component.js @@ -147,6 +147,28 @@ export default (FC, ...options) => { 'datasource.data': { handler: function(newVal, prevVal) { if (newVal !== prevVal) { + // SPECIAL CASE: When DataSource has series attribute, vue internally goes into Infinite recursion + // specifically on _traverse method. This code is written to tackle that issue. In future a much more + // concrete solution is required. + if (this.datasource && this.datasource.series) { + const _FC_ = _FC || window.FusionCharts; + const data = JSON.parse(JSON.stringify(newVal._data)); + const schema = JSON.parse(JSON.stringify(newVal._schema)); + const dataTable = new _FC_.DataStore().createDataTable( + data, + schema + ); + const newDs = Object.assign( + {}, + this.datasource || this.dataSource + ); + newDs.data = dataTable; + this.chartObj.setChartData( + newDs, + this.dataFormat || this.dataformat + ); + return null; + } this.chartObj.setChartData( this.datasource || this.dataSource, this.dataFormat || this.dataformat @@ -158,6 +180,22 @@ export default (FC, ...options) => { 'dataSource.data': { handler: function(newVal, prevVal) { if (newVal !== prevVal) { + if (this.dataSource && this.dataSource.series) { + const _FC_ = _FC || window.FusionCharts; + const data = JSON.parse(JSON.stringify(newVal._data)); + const schema = JSON.parse(JSON.stringify(newVal._schema)); + const dataTable = new _FC_.DataStore().createDataTable( + data, + schema + ); + let newDs = Object.assign({}, this.datasource || this.dataSource); + newDs.data = dataTable; + this.chartObj.setChartData( + newDs, + this.dataFormat || this.dataformat + ); + return null; + } this.chartObj.setChartData( this.datasource || this.dataSource, this.dataFormat || this.dataformat @@ -187,6 +225,9 @@ export default (FC, ...options) => { ); if (strPrevClonedDataSource !== strCurrClonedDataSource) { this.prevDataSource = cloneDataSource(ds, 'diff'); + // if (ds.series) { + // return null; + // } this.chartObj.setChartData(ds, this.dataFormat || this.dataformat); } }