From 861eb2d15dd4cb5263634dc5ccaf5eea294933bb Mon Sep 17 00:00:00 2001 From: Rohan Dey Date: Tue, 18 Dec 2018 19:13:36 +0530 Subject: [PATCH 01/11] Restructred code for plugin and component --- component/index.js | 51 ++++++----- component/index.js.map | 2 +- component/index.min.js | 2 +- dist/vue-fusioncharts.js | 83 +++++++++-------- dist/vue-fusioncharts.js.map | 2 +- dist/vue-fusioncharts.min.js | 2 +- example/index.js | 13 ++- src/index.js | 31 +------ src/utils.js | 14 +++ src/vue-fusioncharts-component.js | 20 +---- src/vue-fusioncharts.js | 143 ------------------------------ 11 files changed, 105 insertions(+), 258 deletions(-) create mode 100644 src/utils.js delete mode 100644 src/vue-fusioncharts.js diff --git a/component/index.js b/component/index.js index 047eefe..921d922 100644 --- a/component/index.js +++ b/component/index.js @@ -7,7 +7,7 @@ exports["VueFusionChartsComponent"] = factory(require("fusioncharts")); else root["VueFusionChartsComponent"] = factory(root["FusionCharts"]); -})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) { +})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; @@ -73,7 +73,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 2); +/******/ return __webpack_require__(__webpack_require__.s = 3); /******/ }) /************************************************************************/ /******/ ([ @@ -304,12 +304,34 @@ module.exports = { optionsMap: optionsMap, props: props }; /***/ }), /* 1 */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + -module.exports = __WEBPACK_EXTERNAL_MODULE_1__; +Object.defineProperty(exports, "__esModule", { + value: true +}); +var addDep = exports.addDep = function addDep(FC, _FC, modules) { + if (FC) { + if (modules.getName && modules.getType || modules.name && modules.type) { + FC.addDep(modules); + } else { + modules(FC); + } + } else { + modules(_FC); + } +}; /***/ }), /* 2 */ +/***/ (function(module, exports) { + +module.exports = __WEBPACK_EXTERNAL_MODULE_2__; + +/***/ }), +/* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -321,23 +343,25 @@ Object.defineProperty(exports, "__esModule", { var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; -var _fusioncharts = __webpack_require__(1); +var _fusioncharts = __webpack_require__(2); var _fusioncharts2 = _interopRequireDefault(_fusioncharts); +var _utils = __webpack_require__(1); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _require = __webpack_require__(0), optionsMap = _require.optionsMap, props = _require.props; -var GetComponent = function GetComponent(FC) { +exports.default = function (FC) { for (var _len = arguments.length, options = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { options[_key - 1] = arguments[_key]; } options && options.forEach && options.forEach(function (modules) { - addDep(FC, _fusioncharts2.default, modules); + (0, _utils.addDep)(FC, _fusioncharts2.default, modules); }); return { name: 'fusioncharts', @@ -475,19 +499,6 @@ var GetComponent = function GetComponent(FC) { }; }; -var addDep = function addDep(FC, _FC, modules) { - if (FC) { - if (modules.getName && modules.getType || modules.name && modules.type) { - FC.addDep(modules); - } else { - modules(FC); - } - } else { - modules(_FC); - } -}; - -exports.default = GetComponent; module.exports = exports['default']; /***/ }) diff --git a/component/index.js.map b/component/index.js.map index b32e6e4..18de902 100644 --- a/component/index.js.map +++ b/component/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 2452c07ec2e90030f6a4","webpack:///./src/config.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","require","GetComponent","FC","forEach","addDep","_FC","modules","name","template","render","h","containerID","_uid","attrs","methods","attachListeners","$listeners","keys","chartObj","addEventListener","event","$emit","e","createEvents","ret","setLastOptions","config","_oldOptions","assign","getLastOptions","getOptions","THIS","i","undefined","renderChart","renderAt","dispose","updateChart","prevConfig","resizeTo","chartType","setChartData","watch","handler","deep","deactivated","beforeDestroy","mounted","ready","getName","getType"],"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,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;;;;AChEA,IAAMA,aAAa;AACjBC,QAAM,MADW;AAEjBC,MAAI,IAFa;AAGjBC,SAAO,OAHU;AAIjBC,UAAQ,QAJS;AAKjBC,cAAY,YALK;AAMjBC,cAAY,YANK;AAOjBC,UAAQ,QAPS;AAQjBC,QAAM,MARW;AASjBC,0BAAwB,wBATP;AAUjBC,2BAAyB,yBAVR;AAWjBC,wBAAsB,sBAXL;AAYjBC,4BAA0B,0BAZT;AAajBC,yBAAuB,u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B,EAGE;AACAkH,SAAGE,MAAH,CAAUE,OAAV;AACD,KALD,MAKO;AACLA,cAAQJ,EAAR;AACD;AACF,GATD,MASO;AACLI,YAAQD,GAAR;AACD;AACF,CAbD;;kBAeeJ,Y","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_1__) {\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 2452c07ec2e90030f6a4","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","module.exports = __WEBPACK_EXTERNAL_MODULE_1__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"commonjs2\":\"fusioncharts\",\"commonjs\":\"fusioncharts\",\"amd\":\"fusioncharts\",\"root\":\"FusionCharts\"}\n// module id = 1\n// module chunks = 0 1","import _FC from 'fusioncharts';\nconst { optionsMap, props } = require('./config.js');\n\nconst GetComponent = function(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 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 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 this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n },\n deep: true\n },\n datasource: {\n handler: function() {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n },\n deep: true\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 };\n};\n\nconst 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 default GetComponent;\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 ea04771095b3836cbabc","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","addDep","FC","_FC","modules","getName","getType","name","require","forEach","template","render","h","containerID","_uid","attrs","methods","attachListeners","$listeners","keys","chartObj","addEventListener","event","$emit","e","createEvents","ret","setLastOptions","config","_oldOptions","assign","getLastOptions","getOptions","THIS","i","undefined","renderChart","renderAt","dispose","updateChart","prevConfig","resizeTo","chartType","setChartData","watch","handler","deep","deactivated","beforeDestroy","mounted","ready"],"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,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;;;;AChEA,IAAMA,aAAa;AACjBC,QAAM,MADW;AAEjBC,MAAI,IAFa;AAGjBC,SAAO,OAHU;AAIjBC,UAAQ,QAJS;AAKjBC,cAAY,YALK;AAMjBC,cAAY,YANK;AAOjBC,UAAQ,QAPS;AAQjBC,QAAM,MARW;AASjBC,0BAAwB,wBATP;AAUjBC,2BAAyB,yBAVR;AAWjBC,wBAAsB,sBAXL;AAYjBC,4BAA0B,0BAZT;AAajBC,yBAAuB,uBAbN;AAcjBC,wBAAsB,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AKb,WAAL;AACD,KAtII;AAuILc,WAAO,iBAAW;AAChB,WAAKd,WAAL;AACD;AAzII,GAAP;AA2ID,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 ea04771095b3836cbabc","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\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 } 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 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 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 this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n },\n deep: true\n },\n datasource: {\n handler: function() {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n },\n deep: true\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 };\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 20ad0ab..25b75e1 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(t){if(s[t])return s[t].exports;var r=s[t]={i:t,l:!1,exports:{}};return a[t].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var s={};return e.m=a,e.c=s,e.i=function(a){return a},e.d=function(a,s,t){e.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:t})},e.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return e.d(s,"a",s),s},e.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},e.p="",e(e.s=2)}([function(a,e,s){"use strict";var t={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:t,props:r}},function(e,s){e.exports=a},function(a,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="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=s(1),g=function(a){return a&&a.__esModule?a:{default:a}}(r),n=s(0),o=n.optionsMap,i=n.props,d=function(a){for(var e=arguments.length,s=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:i,methods:{attachListeners:function(){var a=this;this.$listeners&&"object"===t(this.$listeners)&&Object.keys(this.$listeners).forEach(function(e){a.chartObj.addEventListener(e,function(s){a.$emit(e,s)})})},createEvents:function(){var a=this,e={events:{}};return this.$listeners&&"object"===t(this.$listeners)&&Object.keys(this.$listeners).forEach(function(s){e.events[s]=function(e){a.$emit(s,e)}}),e},setLastOptions:function(a){this._oldOptions=Object.assign({},a)},getLastOptions:function(){return this._oldOptions},getOptions:function(){var a={},e=this;for(var s in o)void 0!==e[s]&&null!==e[s]&&(a[o[s]]=e[s]);return Object.assign(Object.assign({},e.options),a)},renderChart:function(){var e=this,s=e.getOptions(),t=e.chartObj;s.renderAt=this.containerID,e.setLastOptions(s),t&&t.dispose&&t.dispose();var r=this.createEvents();s.events=Object.assign({},s.events,r.events),e.chartObj=t=new a(s),t.render()},updateChart:function(){var a=this,e=a.getOptions(),s=a.getLastOptions(),t=a.chartObj;e.width!==s.width||e.height!==s.height?t&&t.resizeTo(e.width,e.height):e.type!==s.type?t.chartType(e.type):t.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(){this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},datasource:{handler:function(){this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0}},deactivated:function(){this.chartObj&&this.chartObj.dispose()},beforeDestroy:function(){this.chartObj&&this.chartObj.dispose()},mounted:function(){this.renderChart()},ready:function(){this.renderChart()}}},m=function(a,e,s){a?s.getName&&s.getType||s.name&&s.type?a.addDep(s):s(a):s(e)};e.default=d,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(t){if(s[t])return s[t].exports;var r=s[t]={i:t,l:!1,exports:{}};return a[t].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var s={};return e.m=a,e.c=s,e.i=function(a){return a},e.d=function(a,s,t){e.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:t})},e.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return e.d(s,"a",s),s},e.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},e.p="",e(e.s=3)}([function(a,e,s){"use strict";var t={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:t,props:r}},function(a,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.addDep=function(a,e,s){a?s.getName&&s.getType||s.name&&s.type?a.addDep(s):s(a):s(e)}},function(e,s){e.exports=a},function(a,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="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=s(2),g=function(a){return a&&a.__esModule?a:{default:a}}(r),n=s(1),o=s(0),i=o.optionsMap,d=o.props;e.default=function(a){for(var e=arguments.length,s=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"===t(this.$listeners)&&Object.keys(this.$listeners).forEach(function(e){a.chartObj.addEventListener(e,function(s){a.$emit(e,s)})})},createEvents:function(){var a=this,e={events:{}};return this.$listeners&&"object"===t(this.$listeners)&&Object.keys(this.$listeners).forEach(function(s){e.events[s]=function(e){a.$emit(s,e)}}),e},setLastOptions:function(a){this._oldOptions=Object.assign({},a)},getLastOptions:function(){return this._oldOptions},getOptions:function(){var a={},e=this;for(var s in i)void 0!==e[s]&&null!==e[s]&&(a[i[s]]=e[s]);return Object.assign(Object.assign({},e.options),a)},renderChart:function(){var e=this,s=e.getOptions(),t=e.chartObj;s.renderAt=this.containerID,e.setLastOptions(s),t&&t.dispose&&t.dispose();var r=this.createEvents();s.events=Object.assign({},s.events,r.events),e.chartObj=t=new a(s),t.render()},updateChart:function(){var a=this,e=a.getOptions(),s=a.getLastOptions(),t=a.chartObj;e.width!==s.width||e.height!==s.height?t&&t.resizeTo(e.width,e.height):e.type!==s.type?t.chartType(e.type):t.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(){this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},datasource:{handler:function(){this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0}},deactivated:function(){this.chartObj&&this.chartObj.dispose()},beforeDestroy:function(){this.chartObj&&this.chartObj.dispose()},mounted:function(){this.renderChart()},ready:function(){this.renderChart()}}},a.exports=e.default}])}); \ No newline at end of file diff --git a/dist/vue-fusioncharts.js b/dist/vue-fusioncharts.js index b1161fc..b46ef50 100644 --- a/dist/vue-fusioncharts.js +++ b/dist/vue-fusioncharts.js @@ -7,7 +7,7 @@ exports["VueFusionCharts"] = factory(require("fusioncharts")); else root["VueFusionCharts"] = factory(root["FusionCharts"]); -})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) { +})(this, function(__WEBPACK_EXTERNAL_MODULE_4__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; @@ -73,7 +73,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 3); +/******/ return __webpack_require__(__webpack_require__.s = 2); /******/ }) /************************************************************************/ /******/ ([ @@ -89,11 +89,26 @@ Object.defineProperty(exports, "__esModule", { var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; -var _require = __webpack_require__(2), +var _fusioncharts = __webpack_require__(4); + +var _fusioncharts2 = _interopRequireDefault(_fusioncharts); + +var _utils = __webpack_require__(3); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var _require = __webpack_require__(1), optionsMap = _require.optionsMap, props = _require.props; exports.default = function (FC) { + for (var _len = arguments.length, options = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + options[_key - 1] = arguments[_key]; + } + + options && options.forEach && options.forEach(function (modules) { + (0, _utils.addDep)(FC, _fusioncharts2.default, modules); + }); return { name: 'fusioncharts', template: '
', @@ -234,12 +249,6 @@ module.exports = exports['default']; /***/ }), /* 1 */ -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_1__; - -/***/ }), -/* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -465,7 +474,7 @@ var props = { module.exports = { optionsMap: optionsMap, props: props }; /***/ }), -/* 3 */ +/* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -475,18 +484,35 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _fusioncharts = __webpack_require__(1); +var _vueFusionchartsComponent = __webpack_require__(0); -var _fusioncharts2 = _interopRequireDefault(_fusioncharts); +var _vueFusionchartsComponent2 = _interopRequireDefault(_vueFusionchartsComponent); -var _vueFusioncharts = __webpack_require__(0); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -var _vueFusioncharts2 = _interopRequireDefault(_vueFusioncharts); +var install = function install(Vue, FC) { + for (var _len = arguments.length, options = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + options[_key - 2] = arguments[_key]; + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var component = _vueFusionchartsComponent2.default.apply(undefined, [FC].concat(options)); + Vue.component(component.name, component); +}; -// This code is used if we use vue-fusioncharts as a Plugin. -var addDep = function addDep(FC, _FC, modules) { +exports.default = install; +module.exports = exports['default']; + +/***/ }), +/* 3 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +var addDep = exports.addDep = function addDep(FC, _FC, modules) { if (FC) { if (modules.getName && modules.getType || modules.name && modules.type) { FC.addDep(modules); @@ -497,27 +523,12 @@ var addDep = function addDep(FC, _FC, modules) { modules(_FC); } }; -var install = function install(Vue, FC) { - for (var _len = arguments.length, options = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - options[_key - 2] = arguments[_key]; - } - - options && options.forEach && options.forEach(function (modules) { - addDep(FC, _fusioncharts2.default, modules); - }); - var component = (0, _vueFusioncharts2.default)(FC); - - Vue.component(component.name, component); -}; -exports.default = install; - -// This code is used if we use vue-fusioncharts as a Component -// import _FCComponent from "./vue-fusioncharts-component"; - -// export default _FCComponent; +/***/ }), +/* 4 */ +/***/ (function(module, exports) { -module.exports = exports['default']; +module.exports = __WEBPACK_EXTERNAL_MODULE_4__; /***/ }) /******/ ]); diff --git a/dist/vue-fusioncharts.js.map b/dist/vue-fusioncharts.js.map index 08cd759..c477ec8 100644 --- a/dist/vue-fusioncharts.js.map +++ b/dist/vue-fusioncharts.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 30fcb02d2f0900822c0d","webpack:///./src/vue-fusioncharts.js","webpack:///external {\"commonjs2\":\"fusioncharts\",\"commonjs\":\"fusioncharts\",\"amd\":\"fusioncharts\",\"root\":\"FusionCharts\"}","webpack:///./src/config.js","webpack:///./src/index.js"],"names":["require","optionsMap","props","name","template","render","h","containerID","_uid","attrs","id","methods","attachListeners","$listeners","Object","keys","forEach","chartObj","addEventListener","event","$emit","e","createEvents","ret","events","setLastOptions","config","_oldOptions","assign","getLastOptions","getOptions","THIS","i","undefined","options","renderChart","renderAt","dispose","FC","updateChart","prevConfig","width","height","resizeTo","type","chartType","setChartData","dataSource","dataFormat","watch","handler","deep","datasource","dataformat","deactivated","beforeDestroy","mounted","ready","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","addDep","_FC","modules","getName","getType","install","Vue","component"],"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,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;eChE8B,mBAAAA,CAAQ,CAAR,C;IAAtBC,U,YAAAA,U;IAAYC,K,YAAAA,K;;kBAEL,cAAM;AACnB,SAAO;AACLC,UAAM,cADD;AAELC,cAAU,aAFL;AAGLC,YAAQ,gBAASC,CAAT,EAAY;AAClB,WAAKC,WAAL,GAAmB,QAAQ,KAAKC,IAAhC;AACA,aAAOF,EAAE,KAAF,EAAS;AACdG,eAAO;AACLC,cAAI,KAAKH;AADJ;AADO,OAAT,CAAP;AAKD,KAVI;AAWLL,gBAXK;AAYLS,aAAS;AACPC,uBAAiB,2BAAW;AAAA;;AAC1B,YAAI,KAAKC,UAAL,IAAmB,QAAO,KAAKA,UAAZ,MAA2B,QAAlD,EAA4D;AAC1DC,iBAAOC,IAAP,CAAY,KAAKF,UAAjB,EAA6BG,OAA7B,CAAqC,iBAAS;AAC5C,kBAAKC,QAAL,CAAcC,gBAAd,CAA+BC,KAA/B,EAAsC,aAAK;AACzC,oBAAKC,KAAL,CAAWD,KAAX,EAAkBE,CAAlB;AACD,aAFD;AAGD,WAJD;AAKD;AACF,OATM;AAUPC,oBAAc,wBAAW;AA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ZV,8BAA4BY,MAjGhB;AAkGZX,8BAA4BW,MAlGhB;AAmGZV,iCAA+BQ,MAnGnB;AAoGZP,iCAA+BO,MApGnB;AAqGZN,gCAA8BQ,MArGlB;AAsGZP,gCAA8BO,MAtGlB;AAuGZN,0BAAwBI,MAvGZ;AAwGZH,0BAAwBG,MAxGZ;AAyGZF,yBAAuBI,MAzGX;AA0GZH,yBAAuBG;AA1GX,CAAd;;AA6GAC,OAAOC,OAAP,GAAiB,EAAE5J,sBAAF,EAAcC,YAAd,EAAjB,C;;;;;;;;;;;;;ACxNA;;;;AACA;;;;;;AAFA;AAIA,IAAM4J,SAAS,SAATA,MAAS,CAACxH,EAAD,EAAKyH,GAAL,EAAUC,OAAV,EAAsB;AACnC,MAAI1H,EAAJ,EAAQ;AACN,QACG0H,QAAQC,OAAR,IAAmBD,QAAQE,OAA5B,IACCF,QAAQ7J,IAAR,IAAgB6J,QAAQpH,IAF3B,EAGE;AACAN,SAAGwH,MAAH,CAAUE,OAAV;AACD,KALD,MAKO;AACLA,cAAQ1H,EAAR;AACD;AACF,GATD,MASO;AACL0H,YAAQD,GAAR;AACD;AACF,CAbD;AAcA,IAAMI,UAAU,SAAVA,OAAU,CAACC,GAAD,EAAM9H,EAAN,EAAyB;AAAA,oCAAZJ,OAAY;AAAZA,WAAY;AAAA;;AACvCA,aACEA,QAAQlB,OADV,IAEEkB,QAAQlB,OAAR,CAAgB,mBAAW;AACzB8I,WAAOxH,EAAP,EAAWyH,sBAAX,EAAgBC,OAAhB;AACD,GAFD,CAFF;AAKA,MAAIK,YAAY,+BAAa/H,EAAb,CAAhB;;AAEA8H,MAAIC,SAAJ,CAAcA,UAAUlK,IAAxB,EAA8BkK,SAA9B;AACD,CATD;;kBAWeF,O;;AAEf;AACA;;AAEA","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_1__) {\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 30fcb02d2f0900822c0d","const { optionsMap, props } = require('./config.js');\n\nexport default FC => {\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 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 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 this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n },\n deep: true\n },\n datasource: {\n handler: function() {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n },\n deep: true\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 };\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/vue-fusioncharts.js","module.exports = __WEBPACK_EXTERNAL_MODULE_1__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"commonjs2\":\"fusioncharts\",\"commonjs\":\"fusioncharts\",\"amd\":\"fusioncharts\",\"root\":\"FusionCharts\"}\n// module id = 1\n// module chunks = 0 1","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","// This code is used if we use vue-fusioncharts as a Plugin.\nimport _FC from 'fusioncharts';\nimport _FCComponent from './vue-fusioncharts';\n\nconst 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};\nconst install = (Vue, FC, ...options) => {\n options &&\n options.forEach &&\n options.forEach(modules => {\n addDep(FC, _FC, modules);\n });\n let component = _FCComponent(FC);\n\n Vue.component(component.name, component);\n};\n\nexport default install;\n\n// This code is used if we use vue-fusioncharts as a Component\n// import _FCComponent from \"./vue-fusioncharts-component\";\n\n// export default _FCComponent;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap b364109088b90e1d980a","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","updateChart","prevConfig","width","height","resizeTo","type","chartType","setChartData","dataSource","dataFormat","watch","handler","deep","datasource","dataformat","deactivated","beforeDestroy","mounted","ready","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","addDep","getName","getType"],"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,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;AChEA;;;;AAEA;;;;eAD8B,mBAAAA,CAAQ,CAAR,C;IAAtBC,U,YAAAA,U;IAAYC,K,YAAAA,K;;kBAGL,UAACC,EAAD,EAAoB;AAAA,oCAAZC,OAAY;AAAZA,WAAY;AAAA;;AACjCA,aACEA,QAAQC,OADV,IAEED,QAAQC,OAAR,CAAgB,mBAAW;AACzB,uBAAOF,EAAP,EAAWG,sBAAX,EAAgBC,OAAhB;AACD,GAFD,CAFF;AAKA,SAAO;AACLC,UAAM,cADD;AAELC,cAAU,aAFL;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C,OAAV,EAAsB;AAC1C,MAAIJ,EAAJ,EAAQ;AACN,QACGI,QAAQ8J,OAAR,IAAmB9J,QAAQ+J,OAA5B,IACC/J,QAAQC,IAAR,IAAgBD,QAAQuC,IAF3B,EAGE;AACA3C,SAAGiK,MAAH,CAAU7J,OAAV;AACD,KALD,MAKO;AACLA,cAAQJ,EAAR;AACD;AACF,GATD,MASO;AACLI,YAAQD,GAAR;AACD;AACF,CAbM,C;;;;;;ACAP,+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 b364109088b90e1d980a","import _FC from 'fusioncharts';\nconst { optionsMap, props } = require('./config.js');\nimport { addDep } 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 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 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 this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n },\n deep: true\n },\n datasource: {\n handler: function() {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n },\n deep: true\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 };\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\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 e4e0bf9..0a1b900 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(t){if(s[t])return s[t].exports;var r=s[t]={i:t,l:!1,exports:{}};return a[t].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var s={};return e.m=a,e.c=s,e.i=function(a){return a},e.d=function(a,s,t){e.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:t})},e.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return e.d(s,"a",s),s},e.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},e.p="",e(e.s=3)}([function(a,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="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=s(2),g=r.optionsMap,n=r.props;e.default=function(a){return{name:"fusioncharts",template:"
",render:function(a){return this.containerID="fc-"+this._uid,a("div",{attrs:{id:this.containerID}})},props:n,methods:{attachListeners:function(){var a=this;this.$listeners&&"object"===t(this.$listeners)&&Object.keys(this.$listeners).forEach(function(e){a.chartObj.addEventListener(e,function(s){a.$emit(e,s)})})},createEvents:function(){var a=this,e={events:{}};return this.$listeners&&"object"===t(this.$listeners)&&Object.keys(this.$listeners).forEach(function(s){e.events[s]=function(e){a.$emit(s,e)}}),e},setLastOptions:function(a){this._oldOptions=Object.assign({},a)},getLastOptions:function(){return this._oldOptions},getOptions:function(){var a={},e=this;for(var s in g)void 0!==e[s]&&null!==e[s]&&(a[g[s]]=e[s]);return Object.assign(Object.assign({},e.options),a)},renderChart:function(){var e=this,s=e.getOptions(),t=e.chartObj;s.renderAt=this.containerID,e.setLastOptions(s),t&&t.dispose&&t.dispose();var r=this.createEvents();s.events=Object.assign({},s.events,r.events),e.chartObj=t=new a(s),t.render()},updateChart:function(){var a=this,e=a.getOptions(),s=a.getLastOptions(),t=a.chartObj;e.width!==s.width||e.height!==s.height?t&&t.resizeTo(e.width,e.height):e.type!==s.type?t.chartType(e.type):t.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(){this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},datasource:{handler:function(){this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0}},deactivated:function(){this.chartObj&&this.chartObj.dispose()},beforeDestroy:function(){this.chartObj&&this.chartObj.dispose()},mounted:function(){this.renderChart()},ready:function(){this.renderChart()}}},a.exports=e.default},function(e,s){e.exports=a},function(a,e,s){"use strict";var t={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:t,props:r}},function(a,e,s){"use strict";function t(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(e,"__esModule",{value:!0});var r=s(1),g=t(r),n=s(0),o=t(n),i=function(a,e,s){a?s.getName&&s.getType||s.name&&s.type?a.addDep(s):s(a):s(e)},d=function(a,e){for(var s=arguments.length,t=Array(s>2?s-2:0),r=2;r1?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"===t(this.$listeners)&&Object.keys(this.$listeners).forEach(function(e){a.chartObj.addEventListener(e,function(s){a.$emit(e,s)})})},createEvents:function(){var a=this,e={events:{}};return this.$listeners&&"object"===t(this.$listeners)&&Object.keys(this.$listeners).forEach(function(s){e.events[s]=function(e){a.$emit(s,e)}}),e},setLastOptions:function(a){this._oldOptions=Object.assign({},a)},getLastOptions:function(){return this._oldOptions},getOptions:function(){var a={},e=this;for(var s in i)void 0!==e[s]&&null!==e[s]&&(a[i[s]]=e[s]);return Object.assign(Object.assign({},e.options),a)},renderChart:function(){var e=this,s=e.getOptions(),t=e.chartObj;s.renderAt=this.containerID,e.setLastOptions(s),t&&t.dispose&&t.dispose();var r=this.createEvents();s.events=Object.assign({},s.events,r.events),e.chartObj=t=new a(s),t.render()},updateChart:function(){var a=this,e=a.getOptions(),s=a.getLastOptions(),t=a.chartObj;e.width!==s.width||e.height!==s.height?t&&t.resizeTo(e.width,e.height):e.type!==s.type?t.chartType(e.type):t.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(){this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},datasource:{handler:function(){this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0}},deactivated:function(){this.chartObj&&this.chartObj.dispose()},beforeDestroy:function(){this.chartObj&&this.chartObj.dispose()},mounted:function(){this.renderChart()},ready:function(){this.renderChart()}}},a.exports=e.default},function(a,e,s){"use strict";var t={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:t,props:r}},function(a,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=s(0),r=function(a){return a&&a.__esModule?a:{default:a}}(t),g=function(a,e){for(var s=arguments.length,t=Array(s>2?s-2:0),g=2;g { - if (FC) { - if ( - (modules.getName && modules.getType) || - (modules.name && modules.type) - ) { - FC.addDep(modules); - } else { - modules(FC); - } - } else { - modules(_FC); - } -}; const install = (Vue, FC, ...options) => { - options && - options.forEach && - options.forEach(modules => { - addDep(FC, _FC, modules); - }); - let component = _FCComponent(FC); - + let component = _FCComponent(FC, ...options); Vue.component(component.name, component); }; export default install; - -// This code is used if we use vue-fusioncharts as a Component -// import _FCComponent from "./vue-fusioncharts-component"; - -// export default _FCComponent; diff --git a/src/utils.js b/src/utils.js new file mode 100644 index 0000000..2526b50 --- /dev/null +++ b/src/utils.js @@ -0,0 +1,14 @@ +export const addDep = (FC, _FC, modules) => { + if (FC) { + if ( + (modules.getName && modules.getType) || + (modules.name && modules.type) + ) { + FC.addDep(modules); + } else { + modules(FC); + } + } else { + modules(_FC); + } +}; diff --git a/src/vue-fusioncharts-component.js b/src/vue-fusioncharts-component.js index 46cac7b..c4b55e3 100644 --- a/src/vue-fusioncharts-component.js +++ b/src/vue-fusioncharts-component.js @@ -1,7 +1,8 @@ import _FC from 'fusioncharts'; const { optionsMap, props } = require('./config.js'); +import { addDep } from './utils'; -const GetComponent = function(FC, ...options) { +export default (FC, ...options) => { options && options.forEach && options.forEach(modules => { @@ -147,20 +148,3 @@ const GetComponent = function(FC, ...options) { } }; }; - -const addDep = (FC, _FC, modules) => { - if (FC) { - if ( - (modules.getName && modules.getType) || - (modules.name && modules.type) - ) { - FC.addDep(modules); - } else { - modules(FC); - } - } else { - modules(_FC); - } -}; - -export default GetComponent; diff --git a/src/vue-fusioncharts.js b/src/vue-fusioncharts.js deleted file mode 100644 index 679f0fd..0000000 --- a/src/vue-fusioncharts.js +++ /dev/null @@ -1,143 +0,0 @@ -const { optionsMap, props } = require('./config.js'); - -export default FC => { - return { - name: 'fusioncharts', - template: '
', - render: function(h) { - this.containerID = 'fc-' + this._uid; - return h('div', { - attrs: { - id: this.containerID - } - }); - }, - props, - methods: { - attachListeners: function() { - if (this.$listeners && typeof this.$listeners === 'object') { - Object.keys(this.$listeners).forEach(event => { - this.chartObj.addEventListener(event, e => { - this.$emit(event, e); - }); - }); - } - }, - createEvents: function() { - const ret = { - events: {} - }; - if (this.$listeners && typeof this.$listeners === 'object') { - Object.keys(this.$listeners).forEach(event => { - ret.events[event] = e => { - this.$emit(event, e); - }; - }); - } - return ret; - }, - setLastOptions: function(config) { - this._oldOptions = Object.assign({}, config); - }, - getLastOptions: function() { - return this._oldOptions; - }, - getOptions: function() { - let config = {}, - THIS = this; - for (let i in optionsMap) { - if (THIS[i] !== undefined && THIS[i] !== null) { - config[optionsMap[i]] = THIS[i]; - } - } - - let options = Object.assign(Object.assign({}, THIS.options), config); - - return options; - }, - renderChart: function() { - let THIS = this, - config = THIS.getOptions(), - chartObj = THIS.chartObj; - - config.renderAt = this.containerID; - THIS.setLastOptions(config); - - if (chartObj && chartObj.dispose) { - chartObj.dispose(); - } - const events = this.createEvents(); - config.events = Object.assign({}, config.events, events.events); - - THIS.chartObj = chartObj = new FC(config); - chartObj.render(); - }, - updateChart: function() { - let THIS = this, - config = THIS.getOptions(), - prevConfig = THIS.getLastOptions(), - chartObj = THIS.chartObj; - - if ( - config.width !== prevConfig.width || - config.height !== prevConfig.height - ) { - chartObj && chartObj.resizeTo(config.width, config.height); - } else if (config.type !== prevConfig.type) { - chartObj.chartType(config.type); - } else { - chartObj.setChartData(config.dataSource, config.dataFormat); - } - - THIS.setLastOptions(config); - } - }, - 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: true - }, - dataSource: { - handler: function() { - this.chartObj.setChartData( - this.datasource || this.dataSource, - this.dataFormat || this.dataformat - ); - }, - deep: true - }, - datasource: { - handler: function() { - this.chartObj.setChartData( - this.datasource || this.dataSource, - this.dataFormat || this.dataformat - ); - }, - deep: true - } - }, - deactivated: function() { - this.chartObj && this.chartObj.dispose(); - }, - beforeDestroy: function() { - this.chartObj && this.chartObj.dispose(); - }, - mounted: function() { - this.renderChart(); - }, - ready: function() { - this.renderChart(); - } - }; -}; From aceb39cf1e7899a4b56e4f8557c1b391d2512f67 Mon Sep 17 00:00:00 2001 From: Rohan Dey Date: Fri, 21 Dec 2018 14:52:40 +0530 Subject: [PATCH 02/11] Added support for timeseries --- example/index.html | 12 ++- example/index.js | 102 ++++++++++++++++++++-- src/utils.js | 136 ++++++++++++++++++++++++++++++ src/vue-fusioncharts-component.js | 41 ++++++--- 4 files changed, 269 insertions(+), 22 deletions(-) diff --git a/example/index.html b/example/index.html index 3319d40..4870be2 100644 --- a/example/index.html +++ b/example/index.html @@ -21,9 +21,15 @@ FusionCharts will render here... -

- The value that you have selected is: {{ displayValue }} -

+
+ + FusionCharts will render here... + +
+ + diff --git a/example/index.js b/example/index.js index 73c7503..ba1463d 100644 --- a/example/index.js +++ b/example/index.js @@ -5,12 +5,21 @@ import VueFCComponent from '../src/vue-fusioncharts-component'; // import VueFusionCharts from '../dist/vue-fusioncharts'; import FusionCharts from 'fusioncharts'; import Charts from 'fusioncharts/fusioncharts.charts'; +import TimeSeries from 'fusioncharts/fusioncharts.timeseries'; + +const jsonify = res => 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' +).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' +).then(jsonify); // Use VueFusionCharts plugins by calling the Vue.use() global method: // Vue.use(VueFusionCharts, FusionCharts, Charts); //Use this to add vue-fusioncharts a component -let vFC = VueFCComponent(FusionCharts, Charts); +let vFC = VueFCComponent(FusionCharts, Charts, TimeSeries); Vue.component('fusioncharts', vFC); // bootstrap the demo @@ -18,10 +27,41 @@ var chart = new Vue({ el: '#chart1', // components: { fusioncharts: vFC }, data: { + chartType: 'Pie2D', + pieDataSource: { + chart: { + caption: 'Vue FusionCharts Sample', + theme: 'fint' + }, + data: [{ value: 1.9 }, { value: 2.3 }, { value: 2.1 }] + }, + displayValue: 'nothing', + events: { + dataplotRollover: function(ev, props) { + chart.displayValue = props.value; + } + }, + width: '500', + height: '300', + type: 'timeseries', + dataFormat: 'json', + dataSource: { + caption: { text: 'Online Sales of a SuperStore in the US' }, + data: null, + yAxis: [ + { + plot: [ + { + value: 'Sales ($)' + } + ] + } + ] + }, options: { - type: 'Pie2D', width: '500', height: '300', + type: 'Pie2D', dataFormat: 'json', dataSource: { chart: { @@ -29,15 +69,59 @@ var chart = new Vue({ theme: 'fint' }, data: [{ value: 1.9 }, { value: 2.3 }, { value: 2.1 }] - }, - displayValue: 'nothing', - events: { - dataplotRollover: function(ev, props) { - chart.displayValue = props.value; - } } }, - displayValue: 'nothing' + timeseriesOptions: { + width: '500', + height: '300', + type: 'timeseries', + dataFormat: 'json', + dataSource: { + caption: { text: 'Online Sales of a SuperStore in the US' }, + data: null, + yAxis: [ + { + plot: [ + { + value: 'Sales ($)' + } + ] + } + ] + } + }, + displayChart: false + }, + methods: { + changeFirstChartAttr: function() { + // let dataSource = Object.assign({}, this.pieDataSource); + this.options.dataSource.chart.caption = 'Changed to something else'; + // dataSource.data[2].value = this.getRandomNumber(); + // dataSource.data[1].value = this.getRandomNumber(); + // this.pieDataSource = dataSource; + }, + changeSecondChartAttr: function() { + let dataSource = Object.assign({}, this.timeseriesOptions.dataSource); + dataSource.caption.text = 'Changed to something else'; + this.timeseriesOptions.dataSource = dataSource; + }, + getRandomNumber: function() { + var max = 5, + min = 1; + return Math.round((max - min) * Math.random() + min); + } + }, + 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.timeseriesOptions.dataSource.data = fusionTable; + this.displayChart = true; + }); } }); diff --git a/src/utils.js b/src/utils.js index 2526b50..5f4d0e0 100644 --- a/src/utils.js +++ b/src/utils.js @@ -12,3 +12,139 @@ export const addDep = (FC, _FC, modules) => { modules(_FC); } }; + +export function checkIfDataTableExists(dataSource) { + // eslint-disable-next-line no-underscore-dangle + if (dataSource && dataSource.data && dataSource.data._dataStore) { + return true; + } + return false; +} + +export function cloneDataSource(obj, purpose = 'clone') { + const type = typeof obj; + if ( + type === 'string' || + type === 'number' || + type === 'function' || + type === 'boolean' + ) { + return obj; + } + if (obj === null || obj === undefined) { + return obj; + } + if (Array.isArray(obj)) { + const arr = []; + for (let i = 0; i < obj.length; i++) { + arr.push(cloneDataSource(obj[i])); + } + return arr; + } + if (typeof obj === 'object') { + const clonedObj = {}; + // eslint-disable-next-line guard-for-in + // eslint-disable-next-line no-restricted-syntax + for (const prop in obj) { + // Edge case handling for DataTable + if (prop === 'data') { + // eslint-disable-next-line no-underscore-dangle + if (obj[prop] && obj[prop]._dataStore && purpose === 'clone') { + clonedObj[prop] = obj[prop]; + // eslint-disable-next-line no-underscore-dangle + } else if (obj[prop] && obj[prop]._dataStore && purpose === 'diff') { + clonedObj[prop] = '-'; + } else { + clonedObj[prop] = cloneDataSource(obj[prop]); + } + continue; + } + clonedObj[prop] = cloneDataSource(obj[prop]); + } + return clonedObj; + } + return undefined; +} + +export function attachListeners(THIS) { + if (THIS.$listeners && typeof THIS.$listeners === 'object') { + Object.keys(THIS.$listeners).forEach(event => { + THIS.chartObj.addEventListener(event, e => { + THIS.$emit(event, e); + }); + }); + } +} + +export function createEvents(THIS) { + const ret = { + events: {} + }; + if (THIS.$listeners && typeof THIS.$listeners === 'object') { + Object.keys(THIS.$listeners).forEach(event => { + ret.events[event] = e => { + THIS.$emit(event, e); + }; + }); + } + return ret; +} + +export function setLastOptions(config, THIS) { + THIS._oldOptions = Object.assign({}, config); +} + +export function getLastOptions(THIS) { + return THIS._oldOptions; +} + +export function getOptions(This, optionsMap) { + let config = {}, + THIS = This; + for (let i in optionsMap) { + if (THIS[i] !== undefined && THIS[i] !== null) { + config[optionsMap[i]] = THIS[i]; + } + } + let options = Object.assign(Object.assign({}, THIS.options), config); + return options; +} + +export function renderChart(This, FC) { + let THIS = This, + config = THIS.getOptions(), + chartObj = THIS.chartObj; + + config.renderAt = this.containerID; + THIS.setLastOptions(config); + + if (chartObj && chartObj.dispose) { + chartObj.dispose(); + } + const events = this.createEvents(); + config.events = Object.assign({}, config.events, events.events); + + THIS.chartObj = chartObj = new FC(config); + chartObj.render(); +} + +export function updateChart(This) { + let THIS = This, + config = THIS.getOptions(), + prevConfig = THIS.getLastOptions(), + chartObj = THIS.chartObj; + + if ( + config.width !== prevConfig.width || + config.height !== prevConfig.height + ) { + chartObj && chartObj.resizeTo(config.width, config.height); + } else if (config.type !== prevConfig.type) { + chartObj.chartType(config.type); + } else { + if (!checkIfDataTableExists(config.dataSource)) + chartObj.setChartData(config.dataSource, config.dataFormat); + } + + THIS.setLastOptions(config); +} diff --git a/src/vue-fusioncharts-component.js b/src/vue-fusioncharts-component.js index c4b55e3..87cfb0d 100644 --- a/src/vue-fusioncharts-component.js +++ b/src/vue-fusioncharts-component.js @@ -1,6 +1,6 @@ import _FC from 'fusioncharts'; const { optionsMap, props } = require('./config.js'); -import { addDep } from './utils'; +import { addDep, checkIfDataTableExists, cloneDataSource } from './utils'; export default (FC, ...options) => { options && @@ -76,6 +76,12 @@ export default (FC, ...options) => { const events = this.createEvents(); config.events = Object.assign({}, config.events, events.events); + let ds = config.dataSource || config.datasource; + + if (checkIfDataTableExists(ds)) + this.prevDataSource = cloneDataSource(ds, 'diff'); + else this.prevDataSource = cloneDataSource(ds, 'clone'); + THIS.chartObj = chartObj = new FC(config); chartObj.render(); }, @@ -93,7 +99,8 @@ export default (FC, ...options) => { } else if (config.type !== prevConfig.type) { chartObj.chartType(config.type); } else { - chartObj.setChartData(config.dataSource, config.dataFormat); + if (!checkIfDataTableExists(config.dataSource)) + chartObj.setChartData(config.dataSource, config.dataFormat); } THIS.setLastOptions(config); @@ -117,19 +124,23 @@ export default (FC, ...options) => { }, dataSource: { handler: function() { - this.chartObj.setChartData( - this.datasource || this.dataSource, - this.dataFormat || this.dataformat - ); + if (!checkIfDataTableExists(this.dataSource)) { + this.chartObj.setChartData( + this.datasource || this.dataSource, + this.dataFormat || this.dataformat + ); + } }, deep: true }, datasource: { handler: function() { - this.chartObj.setChartData( - this.datasource || this.dataSource, - this.dataFormat || this.dataformat - ); + if (!checkIfDataTableExists(this.datasource)) { + this.chartObj.setChartData( + this.datasource || this.dataSource, + this.dataFormat || this.dataformat + ); + } }, deep: true } @@ -145,6 +156,16 @@ export default (FC, ...options) => { }, ready: function() { this.renderChart(); + }, + beforeUpdate: function() { + const strPrevClonedDataSource = JSON.stringify(this.prevDataSource); + const ds = this.datasource || this.dataSource || this.options.dataSource; + const strCurrClonedDataSource = JSON.stringify( + cloneDataSource(ds, 'diff') + ); + if (strPrevClonedDataSource !== strCurrClonedDataSource) { + this.chartObj.setChartData(ds, this.dataFormat || this.dataformat); + } } }; }; From 6efed3bf16a699f4162603eab8658089185fb354 Mon Sep 17 00:00:00 2001 From: Rohan Dey Date: Fri, 21 Dec 2018 15:20:50 +0530 Subject: [PATCH 03/11] Modified example for timeseries --- example/index.html | 8 +++++++- example/index.js | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/example/index.html b/example/index.html index 4870be2..c72792f 100644 --- a/example/index.html +++ b/example/index.html @@ -22,7 +22,13 @@ FusionCharts will render here...
- + FusionCharts will render here...
diff --git a/example/index.js b/example/index.js index ba1463d..24ba80c 100644 --- a/example/index.js +++ b/example/index.js @@ -101,9 +101,9 @@ var chart = new Vue({ // this.pieDataSource = dataSource; }, changeSecondChartAttr: function() { - let dataSource = Object.assign({}, this.timeseriesOptions.dataSource); + let dataSource = Object.assign({}, this.dataSource); dataSource.caption.text = 'Changed to something else'; - this.timeseriesOptions.dataSource = dataSource; + this.dataSource = dataSource; }, getRandomNumber: function() { var max = 5, @@ -119,7 +119,7 @@ var chart = new Vue({ data, schema ); - this.timeseriesOptions.dataSource.data = fusionTable; + this.dataSource.data = fusionTable; this.displayChart = true; }); } From 5a5edd87b756f8abc4a3beec723e10f2d74be3d4 Mon Sep 17 00:00:00 2001 From: Rohan Dey Date: Thu, 27 Dec 2018 15:09:31 +0530 Subject: [PATCH 04/11] Added README for TimeSeries --- README.md | 82 ++++++++++++++++++ component/index.js | 163 ++++++++++++++++++++++++++++++++++- component/index.js.map | 2 +- component/index.min.js | 2 +- dist/vue-fusioncharts.js | 163 ++++++++++++++++++++++++++++++++++- dist/vue-fusioncharts.js.map | 2 +- dist/vue-fusioncharts.min.js | 2 +- example/index.js | 2 +- package-lock.json | 140 ++++++++++++++++++++++++++++-- package.json | 12 ++- 10 files changed, 551 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 42f5d95..44dcb28 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ A simple and lightweight `VueJS` component for `FusionCharts` JavaScript Chartin - [Working with events](#working-with-events) - [Quick Start](#quick-start) - [Going Beyond Charts](#going-beyond-charts) +- [Usage and Integration of FusionTime](#usage-and-integration-of-fusionTime) - [For Contributors](#for-contributors) - [Licensing](#licensing) @@ -242,6 +243,87 @@ links to help you get started: - [Chart gallery](https://www.fusioncharts.com/explore/chart-gallery) - [FusionCharts API](https://www.fusioncharts.com/dev/api/fusioncharts) +## Usage and integration of FusionTime + +From `fusioncharts@3.13.3-sr.1` and `vue-usioncharts@3.0.0`, You can visualize timeseries data easily with angular. + +Learn more about FusionTime [here](https://www.fusioncharts.com/fusiontime). + +### Sample code for FusionTime + +```js +import Vue from 'vue'; +import VueFusionCharts from 'vue-fusioncharts'; +import FusionCharts from 'fusioncharts'; +import TimeSeries from 'fusioncharts/fusioncharts.timeseries'; + +// register VueFusionCharts +Vue.use(VueFusionCharts, FusionCharts, TimeSeries); + +const jsonify = res => 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' +).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' +).then(jsonify); + +const chart = new Vue({ + el: '#app', + data: { + width: '500', + height: '300', + type: 'timeseries', + dataFormat: 'json', + dataSource: { + caption: { text: 'Online Sales of a SuperStore in the US' }, + data: null, + yAxis: [ + { + plot: [ + { + value: 'Sales ($)' + } + ] + } + ] + } + }, + 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; + }); + } +}); +``` + +Here's HTML template for the above example: + +```html +
+ + FusionCharts will render here... + +
+``` + +Useful links for FusionTime + +- [How FusionTime works](https://www.fusioncharts.com/dev/fusiontime/getting-started/how-fusion-time-works) +- [Create your first chart](https://www.fusioncharts.com/dev/fusiontime/getting-started/create-your-first-chart-in-fusiontime) + ## Going beyond Charts - Explore 20+ pre-built business specific dashboards for different industries like energy and manufacturing to business functions like sales, marketing and operations [here](https://www.fusioncharts.com/explore/dashboards). diff --git a/component/index.js b/component/index.js index 921d922..b89ac62 100644 --- a/component/index.js +++ b/component/index.js @@ -312,6 +312,18 @@ module.exports = { optionsMap: optionsMap, props: props }; Object.defineProperty(exports, "__esModule", { value: true }); + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +exports.checkIfDataTableExists = checkIfDataTableExists; +exports.cloneDataSource = cloneDataSource; +exports.attachListeners = attachListeners; +exports.createEvents = createEvents; +exports.setLastOptions = setLastOptions; +exports.getLastOptions = getLastOptions; +exports.getOptions = getOptions; +exports.renderChart = renderChart; +exports.updateChart = updateChart; var addDep = exports.addDep = function addDep(FC, _FC, modules) { if (FC) { if (modules.getName && modules.getType || modules.name && modules.type) { @@ -324,6 +336,135 @@ var addDep = exports.addDep = function addDep(FC, _FC, modules) { } }; +function checkIfDataTableExists(dataSource) { + // eslint-disable-next-line no-underscore-dangle + if (dataSource && dataSource.data && dataSource.data._dataStore) { + return true; + } + return false; +} + +function cloneDataSource(obj) { + var purpose = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'clone'; + + var type = typeof obj === 'undefined' ? 'undefined' : _typeof(obj); + if (type === 'string' || type === 'number' || type === 'function' || type === 'boolean') { + return obj; + } + if (obj === null || obj === undefined) { + return obj; + } + if (Array.isArray(obj)) { + var arr = []; + for (var i = 0; i < obj.length; i++) { + arr.push(cloneDataSource(obj[i])); + } + return arr; + } + if ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object') { + var clonedObj = {}; + // eslint-disable-next-line guard-for-in + // eslint-disable-next-line no-restricted-syntax + for (var prop in obj) { + // Edge case handling for DataTable + if (prop === 'data') { + // eslint-disable-next-line no-underscore-dangle + if (obj[prop] && obj[prop]._dataStore && purpose === 'clone') { + clonedObj[prop] = obj[prop]; + // eslint-disable-next-line no-underscore-dangle + } else if (obj[prop] && obj[prop]._dataStore && purpose === 'diff') { + clonedObj[prop] = '-'; + } else { + clonedObj[prop] = cloneDataSource(obj[prop]); + } + continue; + } + clonedObj[prop] = cloneDataSource(obj[prop]); + } + return clonedObj; + } + return undefined; +} + +function attachListeners(THIS) { + if (THIS.$listeners && _typeof(THIS.$listeners) === 'object') { + Object.keys(THIS.$listeners).forEach(function (event) { + THIS.chartObj.addEventListener(event, function (e) { + THIS.$emit(event, e); + }); + }); + } +} + +function createEvents(THIS) { + var ret = { + events: {} + }; + if (THIS.$listeners && _typeof(THIS.$listeners) === 'object') { + Object.keys(THIS.$listeners).forEach(function (event) { + ret.events[event] = function (e) { + THIS.$emit(event, e); + }; + }); + } + return ret; +} + +function setLastOptions(config, THIS) { + THIS._oldOptions = Object.assign({}, config); +} + +function getLastOptions(THIS) { + return THIS._oldOptions; +} + +function getOptions(This, optionsMap) { + var config = {}, + THIS = This; + for (var i in optionsMap) { + if (THIS[i] !== undefined && THIS[i] !== null) { + config[optionsMap[i]] = THIS[i]; + } + } + var options = Object.assign(Object.assign({}, THIS.options), config); + return options; +} + +function renderChart(This, FC) { + var THIS = This, + config = THIS.getOptions(), + chartObj = THIS.chartObj; + + config.renderAt = this.containerID; + THIS.setLastOptions(config); + + if (chartObj && chartObj.dispose) { + chartObj.dispose(); + } + var events = this.createEvents(); + config.events = Object.assign({}, config.events, events.events); + + THIS.chartObj = chartObj = new FC(config); + chartObj.render(); +} + +function updateChart(This) { + var THIS = This, + config = THIS.getOptions(), + prevConfig = THIS.getLastOptions(), + chartObj = THIS.chartObj; + + if (config.width !== prevConfig.width || config.height !== prevConfig.height) { + chartObj && chartObj.resizeTo(config.width, config.height); + } else if (config.type !== prevConfig.type) { + chartObj.chartType(config.type); + } else { + if (!checkIfDataTableExists(config.dataSource)) chartObj.setChartData(config.dataSource, config.dataFormat); + } + + THIS.setLastOptions(config); +} + /***/ }), /* 2 */ /***/ (function(module, exports) { @@ -435,6 +576,10 @@ exports.default = function (FC) { var events = this.createEvents(); config.events = Object.assign({}, config.events, events.events); + var ds = config.dataSource || config.datasource; + + if ((0, _utils.checkIfDataTableExists)(ds)) this.prevDataSource = (0, _utils.cloneDataSource)(ds, 'diff');else this.prevDataSource = (0, _utils.cloneDataSource)(ds, 'clone'); + THIS.chartObj = chartObj = new FC(config); chartObj.render(); }, @@ -449,7 +594,7 @@ exports.default = function (FC) { } else if (config.type !== prevConfig.type) { chartObj.chartType(config.type); } else { - chartObj.setChartData(config.dataSource, config.dataFormat); + if (!(0, _utils.checkIfDataTableExists)(config.dataSource)) chartObj.setChartData(config.dataSource, config.dataFormat); } THIS.setLastOptions(config); @@ -473,13 +618,17 @@ exports.default = function (FC) { }, dataSource: { handler: function handler() { - this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); + if (!(0, _utils.checkIfDataTableExists)(this.dataSource)) { + this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); + } }, deep: true }, datasource: { handler: function handler() { - this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); + if (!(0, _utils.checkIfDataTableExists)(this.datasource)) { + this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); + } }, deep: true } @@ -495,6 +644,14 @@ exports.default = function (FC) { }, ready: function ready() { this.renderChart(); + }, + beforeUpdate: function beforeUpdate() { + var strPrevClonedDataSource = JSON.stringify(this.prevDataSource); + var ds = this.datasource || this.dataSource || this.options.dataSource; + var strCurrClonedDataSource = JSON.stringify((0, _utils.cloneDataSource)(ds, 'diff')); + if (strPrevClonedDataSource !== strCurrClonedDataSource) { + this.chartObj.setChartData(ds, this.dataFormat || this.dataformat); + } } }; }; diff --git a/component/index.js.map b/component/index.js.map index 18de902..44e058a 100644 --- a/component/index.js.map +++ b/component/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap ea04771095b3836cbabc","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","addDep","FC","_FC","modules","getName","getType","name","require","forEach","template","render","h","containerID","_uid","attrs","methods","attachListeners","$listeners","keys","chartObj","addEventListener","event","$emit","e","createEvents","ret","setLastOptions","config","_oldOptions","assign","getLastOptions","getOptions","THIS","i","undefined","renderChart","renderAt","dispose","updateChart","prevConfig","resizeTo","chartType","setChartData","watch","handler","deep","deactivated","beforeDestroy","mounted","ready"],"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,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;;;;AChEA,IAAMA,aAAa;AACjBC,QAAM,MADW;AAEjBC,MAAI,IAFa;AAGjBC,SAAO,OAHU;AAIjBC,UAAQ,QAJS;AAKjBC,cAAY,YALK;AAMjBC,cAAY,YANK;AAOjBC,UAAQ,QAPS;AAQjBC,QAAM,MARW;AASjBC,0BAAwB,wBATP;AAUjBC,2BAAyB,yBAVR;AAWjBC,wBAAsB,sBAXL;AAYjBC,4BAA0B,0BAZT;AAajBC,yBAAuB,uBAbN;AAcjBC,wBAAsB,sBAdL;AAejBC,wBAAsB,sBAfL;AAgBjBC,sBAAoB,oBAhBH;AAiBjBC,oBAAkB,kBAjBD;AAkBjBC,2BAAyB,yBAlBR;AAmBjBC,eAAa,aAnBI;AAoBjBC,sBAAoB,oBApBH;AAqBjBC,4BAA0B,0BArBT;AAsBjBC,8BAA4B,4BAtBX;AAuBjBC,sBAAoB,oBAvBH;AAwBjBC,+BAA6B,6BAxBZ;AAyBjBC,+BAA6B,6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,IAA7B;AACD,OAHI;AAILE,aAAO,iBAAW;AAChB,aAAKiI,QAAL,CAAcqB,QAAd,CAAuB,KAAKtJ,KAA5B,EAAmC,KAAKC,MAAxC;AACD,OANI;AAOLA,cAAQ,kBAAW;AACjB,aAAKgI,QAAL,CAAcqB,QAAd,CAAuB,KAAKtJ,KAA5B,EAAmC,KAAKC,MAAxC;AACD,OATI;AAULsG,eAAS;AACPmD,iBAAS,mBAAW;AAClB,eAAKN,WAAL;AACD,SAHM;AAIPO,cAAM;AAJC,OAVJ;AAgBLxJ,kBAAY;AACVuJ,iBAAS,mBAAW;AAClB,eAAKzB,QAAL,CAAcuB,YAAd,CACE,KAAKlG,UAAL,IAAmB,KAAKnD,UAD1B,EAEE,KAAKD,UAAL,IAAmB,KAAKmD,UAF1B;AAID,SANS;AAOVsG,cAAM;AAPI,OAhBP;AAyBLrG,kBAAY;AACVoG,iBAAS,mBAAW;AAClB,eAAKzB,QAAL,CAAcuB,YAAd,CACE,KAAKlG,UAAL,IAAmB,KAAKnD,UAD1B,EAEE,KAAKD,UAAL,IAAmB,KAAKmD,UAF1B;AAID,SANS;AAOVsG,cAAM;AAPI;AAzBP,KA3FF;AA8HLC,iBAAa,uBAAW;AACtB,WAAK3B,QAAL,IAAiB,KAAKA,QAAL,CAAckB,OAAd,EAAjB;AACD,KAhII;AAiILU,mBAAe,yBAAW;AACxB,WAAK5B,QAAL,IAAiB,KAAKA,QAAL,CAAckB,OAAd,EAAjB;AACD,KAnII;AAoILW,aAAS,mBAAW;AAClB,WAAKb,WAAL;AACD,KAtII;AAuILc,WAAO,iBAAW;AAChB,WAAKd,WAAL;AACD;AAzII,GAAP;AA2ID,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 ea04771095b3836cbabc","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\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 } 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 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 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 this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n },\n deep: true\n },\n datasource: {\n handler: function() {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n },\n deep: true\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 };\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 ed3f115579c710b9d2ca","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","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,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;;;;AChEA,IAAMA,aAAa;AACjBC,QAAM,MADW;AAEjBC,MAAI,IAFa;AAGjBC,SAAO,OAHU;AAIjBC,UAAQ,QAJS;AAKjBC,cAAY,YALK;AAMjBC,cAAY,YANK;AAOjBC,UAAQ,QAPS;AAQjBC,QAAM,MARW;AASjBC,0BAAwB,wBATP;AAUjBC,2BAAyB,yBAVR;AAWjBC,wBAAsB,sBAXL;AAYjBC,4BAA0B,0BAZT;AAajBC,yBAAuB,uBAbN;AAcjBC,wBAAsB,sBAdL;AAejBC,wBAAsB,sBAfL;AAgBjBC,sBAAoB,oBAhBH;AAiBjBC,oBAAkB,kBAjBD;AAkBjBC,2BAAyB,yBAlBR;AAmBjBC,eAAa,aAnBI;AAoBjBC,sBAAoB,oBApBH;AAqBjBC,4BAA0B,0BArBT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B,CAAhC;AAGA,UAAIU,4BAA4BG,uBAAhC,EAAyD;AACvD,aAAKrC,QAAL,CAAciB,YAAd,CAA2BO,EAA3B,EAA+B,KAAKrK,UAAL,IAAmB,KAAKmD,UAAvD;AACD;AACF;AA9JI,GAAP;AAgKD,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 ed3f115579c710b9d2ca","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 },\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.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 25b75e1..81537bb 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(t){if(s[t])return s[t].exports;var r=s[t]={i:t,l:!1,exports:{}};return a[t].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var s={};return e.m=a,e.c=s,e.i=function(a){return a},e.d=function(a,s,t){e.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:t})},e.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return e.d(s,"a",s),s},e.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},e.p="",e(e.s=3)}([function(a,e,s){"use strict";var t={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:t,props:r}},function(a,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.addDep=function(a,e,s){a?s.getName&&s.getType||s.name&&s.type?a.addDep(s):s(a):s(e)}},function(e,s){e.exports=a},function(a,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="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=s(2),g=function(a){return a&&a.__esModule?a:{default:a}}(r),n=s(1),o=s(0),i=o.optionsMap,d=o.props;e.default=function(a){for(var e=arguments.length,s=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"===t(this.$listeners)&&Object.keys(this.$listeners).forEach(function(e){a.chartObj.addEventListener(e,function(s){a.$emit(e,s)})})},createEvents:function(){var a=this,e={events:{}};return this.$listeners&&"object"===t(this.$listeners)&&Object.keys(this.$listeners).forEach(function(s){e.events[s]=function(e){a.$emit(s,e)}}),e},setLastOptions:function(a){this._oldOptions=Object.assign({},a)},getLastOptions:function(){return this._oldOptions},getOptions:function(){var a={},e=this;for(var s in i)void 0!==e[s]&&null!==e[s]&&(a[i[s]]=e[s]);return Object.assign(Object.assign({},e.options),a)},renderChart:function(){var e=this,s=e.getOptions(),t=e.chartObj;s.renderAt=this.containerID,e.setLastOptions(s),t&&t.dispose&&t.dispose();var r=this.createEvents();s.events=Object.assign({},s.events,r.events),e.chartObj=t=new a(s),t.render()},updateChart:function(){var a=this,e=a.getOptions(),s=a.getLastOptions(),t=a.chartObj;e.width!==s.width||e.height!==s.height?t&&t.resizeTo(e.width,e.height):e.type!==s.type?t.chartType(e.type):t.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(){this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},datasource:{handler:function(){this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0}},deactivated:function(){this.chartObj&&this.chartObj.dispose()},beforeDestroy:function(){this.chartObj&&this.chartObj.dispose()},mounted:function(){this.renderChart()},ready:function(){this.renderChart()}}},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 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}},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.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 b46ef50..a406728 100644 --- a/dist/vue-fusioncharts.js +++ b/dist/vue-fusioncharts.js @@ -181,6 +181,10 @@ exports.default = function (FC) { var events = this.createEvents(); config.events = Object.assign({}, config.events, events.events); + var ds = config.dataSource || config.datasource; + + if ((0, _utils.checkIfDataTableExists)(ds)) this.prevDataSource = (0, _utils.cloneDataSource)(ds, 'diff');else this.prevDataSource = (0, _utils.cloneDataSource)(ds, 'clone'); + THIS.chartObj = chartObj = new FC(config); chartObj.render(); }, @@ -195,7 +199,7 @@ exports.default = function (FC) { } else if (config.type !== prevConfig.type) { chartObj.chartType(config.type); } else { - chartObj.setChartData(config.dataSource, config.dataFormat); + if (!(0, _utils.checkIfDataTableExists)(config.dataSource)) chartObj.setChartData(config.dataSource, config.dataFormat); } THIS.setLastOptions(config); @@ -219,13 +223,17 @@ exports.default = function (FC) { }, dataSource: { handler: function handler() { - this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); + if (!(0, _utils.checkIfDataTableExists)(this.dataSource)) { + this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); + } }, deep: true }, datasource: { handler: function handler() { - this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); + if (!(0, _utils.checkIfDataTableExists)(this.datasource)) { + this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); + } }, deep: true } @@ -241,6 +249,14 @@ exports.default = function (FC) { }, ready: function ready() { this.renderChart(); + }, + beforeUpdate: function beforeUpdate() { + var strPrevClonedDataSource = JSON.stringify(this.prevDataSource); + var ds = this.datasource || this.dataSource || this.options.dataSource; + var strCurrClonedDataSource = JSON.stringify((0, _utils.cloneDataSource)(ds, 'diff')); + if (strPrevClonedDataSource !== strCurrClonedDataSource) { + this.chartObj.setChartData(ds, this.dataFormat || this.dataformat); + } } }; }; @@ -512,6 +528,18 @@ module.exports = exports['default']; Object.defineProperty(exports, "__esModule", { value: true }); + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +exports.checkIfDataTableExists = checkIfDataTableExists; +exports.cloneDataSource = cloneDataSource; +exports.attachListeners = attachListeners; +exports.createEvents = createEvents; +exports.setLastOptions = setLastOptions; +exports.getLastOptions = getLastOptions; +exports.getOptions = getOptions; +exports.renderChart = renderChart; +exports.updateChart = updateChart; var addDep = exports.addDep = function addDep(FC, _FC, modules) { if (FC) { if (modules.getName && modules.getType || modules.name && modules.type) { @@ -524,6 +552,135 @@ var addDep = exports.addDep = function addDep(FC, _FC, modules) { } }; +function checkIfDataTableExists(dataSource) { + // eslint-disable-next-line no-underscore-dangle + if (dataSource && dataSource.data && dataSource.data._dataStore) { + return true; + } + return false; +} + +function cloneDataSource(obj) { + var purpose = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'clone'; + + var type = typeof obj === 'undefined' ? 'undefined' : _typeof(obj); + if (type === 'string' || type === 'number' || type === 'function' || type === 'boolean') { + return obj; + } + if (obj === null || obj === undefined) { + return obj; + } + if (Array.isArray(obj)) { + var arr = []; + for (var i = 0; i < obj.length; i++) { + arr.push(cloneDataSource(obj[i])); + } + return arr; + } + if ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object') { + var clonedObj = {}; + // eslint-disable-next-line guard-for-in + // eslint-disable-next-line no-restricted-syntax + for (var prop in obj) { + // Edge case handling for DataTable + if (prop === 'data') { + // eslint-disable-next-line no-underscore-dangle + if (obj[prop] && obj[prop]._dataStore && purpose === 'clone') { + clonedObj[prop] = obj[prop]; + // eslint-disable-next-line no-underscore-dangle + } else if (obj[prop] && obj[prop]._dataStore && purpose === 'diff') { + clonedObj[prop] = '-'; + } else { + clonedObj[prop] = cloneDataSource(obj[prop]); + } + continue; + } + clonedObj[prop] = cloneDataSource(obj[prop]); + } + return clonedObj; + } + return undefined; +} + +function attachListeners(THIS) { + if (THIS.$listeners && _typeof(THIS.$listeners) === 'object') { + Object.keys(THIS.$listeners).forEach(function (event) { + THIS.chartObj.addEventListener(event, function (e) { + THIS.$emit(event, e); + }); + }); + } +} + +function createEvents(THIS) { + var ret = { + events: {} + }; + if (THIS.$listeners && _typeof(THIS.$listeners) === 'object') { + Object.keys(THIS.$listeners).forEach(function (event) { + ret.events[event] = function (e) { + THIS.$emit(event, e); + }; + }); + } + return ret; +} + +function setLastOptions(config, THIS) { + THIS._oldOptions = Object.assign({}, config); +} + +function getLastOptions(THIS) { + return THIS._oldOptions; +} + +function getOptions(This, optionsMap) { + var config = {}, + THIS = This; + for (var i in optionsMap) { + if (THIS[i] !== undefined && THIS[i] !== null) { + config[optionsMap[i]] = THIS[i]; + } + } + var options = Object.assign(Object.assign({}, THIS.options), config); + return options; +} + +function renderChart(This, FC) { + var THIS = This, + config = THIS.getOptions(), + chartObj = THIS.chartObj; + + config.renderAt = this.containerID; + THIS.setLastOptions(config); + + if (chartObj && chartObj.dispose) { + chartObj.dispose(); + } + var events = this.createEvents(); + config.events = Object.assign({}, config.events, events.events); + + THIS.chartObj = chartObj = new FC(config); + chartObj.render(); +} + +function updateChart(This) { + var THIS = This, + config = THIS.getOptions(), + prevConfig = THIS.getLastOptions(), + chartObj = THIS.chartObj; + + if (config.width !== prevConfig.width || config.height !== prevConfig.height) { + chartObj && chartObj.resizeTo(config.width, config.height); + } else if (config.type !== prevConfig.type) { + chartObj.chartType(config.type); + } else { + if (!checkIfDataTableExists(config.dataSource)) chartObj.setChartData(config.dataSource, config.dataFormat); + } + + THIS.setLastOptions(config); +} + /***/ }), /* 4 */ /***/ (function(module, exports) { diff --git a/dist/vue-fusioncharts.js.map b/dist/vue-fusioncharts.js.map index c477ec8..f62f739 100644 --- a/dist/vue-fusioncharts.js.map +++ b/dist/vue-fusioncharts.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap b364109088b90e1d980a","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","updateChart","prevConfig","width","height","resizeTo","type","chartType","setChartData","dataSource","dataFormat","watch","handler","deep","datasource","dataformat","deactivated","beforeDestroy","mounted","ready","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","_FC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Zd,gCAA8BgB,MA7FlB;AA8FZf,gCAA8Be,MA9FlB;AA+FZd,+BAA6BY,MA/FjB;AAgGZX,+BAA6BW,MAhGjB;AAiGZV,8BAA4BY,MAjGhB;AAkGZX,8BAA4BW,MAlGhB;AAmGZV,iCAA+BQ,MAnGnB;AAoGZP,iCAA+BO,MApGnB;AAqGZN,gCAA8BQ,MArGlB;AAsGZP,gCAA8BO,MAtGlB;AAuGZN,0BAAwBI,MAvGZ;AAwGZH,0BAAwBG,MAxGZ;AAyGZF,yBAAuBI,MAzGX;AA0GZH,yBAAuBG;AA1GX,CAAd;;AA6GAC,OAAOC,OAAP,GAAiB,EAAE9J,sBAAF,EAAcC,YAAd,EAAjB,C;;;;;;;;;;;;;ACzNA;;;;;;AAEA,IAAM8J,UAAU,SAAVA,OAAU,CAACC,GAAD,EAAM9J,EAAN,EAAyB;AAAA,oCAAZC,OAAY;AAAZA,WAAY;AAAA;;AACvC,MAAI8J,YAAYC,qDAAahK,EAAb,SAAoBC,OAApB,EAAhB;AACA6J,MAAIC,SAAJ,CAAcA,UAAU1J,IAAxB,EAA8B0J,SAA9B;AACD,CAHD;;kBAKeF,O;;;;;;;;;;;;;ACPR,IAAMI,0BAAS,SAATA,MAAS,CAACjK,EAAD,EAAKG,GAAL,EAAUC,OAAV,EAAsB;AAC1C,MAAIJ,EAAJ,EAAQ;AACN,QACGI,QAAQ8J,OAAR,IAAmB9J,QAAQ+J,OAA5B,IACC/J,QAAQC,IAAR,IAAgBD,QAAQuC,IAF3B,EAGE;AACA3C,SAAGiK,MAAH,CAAU7J,OAAV;AACD,KALD,MAKO;AACLA,cAAQJ,EAAR;AACD;AACF,GATD,MASO;AACLI,YAAQD,GAAR;AACD;AACF,CAbM,C;;;;;;ACAP,+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 b364109088b90e1d980a","import _FC from 'fusioncharts';\nconst { optionsMap, props } = require('./config.js');\nimport { addDep } 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 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 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 this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n },\n deep: true\n },\n datasource: {\n handler: function() {\n this.chartObj.setChartData(\n this.datasource || this.dataSource,\n this.dataFormat || this.dataformat\n );\n },\n deep: true\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 };\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\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 bebbb3bf7f857de5003b","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","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;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;AChEA;;;;AAEA;;;;eAD8B,mBAAAA,CAAQ,CAAR,C;IAAtBC,U,YAAAA,U;IAAYC,K,YAAAA,K;;kBAGL,UAACC,EAAD,EAAoB;AAAA,oCAAZC,OAAY;AAAZA,WAAY;AAAA;;AACjCA,aACEA,QAAQC,OADV,IAEED,QAAQC,OAAR,CAAgB,mBAAW;AACzB,uBAAOF,EAAP,EAAWG,sBAAX,EAAg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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,CAACyH,uBAAuB7I,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 bebbb3bf7f857de5003b","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 },\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.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 0a1b900..60eb014 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(t){if(s[t])return s[t].exports;var r=s[t]={i:t,l:!1,exports:{}};return a[t].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var s={};return e.m=a,e.c=s,e.i=function(a){return a},e.d=function(a,s,t){e.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:t})},e.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return e.d(s,"a",s),s},e.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},e.p="",e(e.s=2)}([function(a,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="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=s(4),g=function(a){return a&&a.__esModule?a:{default:a}}(r),n=s(3),o=s(1),i=o.optionsMap,d=o.props;e.default=function(a){for(var e=arguments.length,s=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"===t(this.$listeners)&&Object.keys(this.$listeners).forEach(function(e){a.chartObj.addEventListener(e,function(s){a.$emit(e,s)})})},createEvents:function(){var a=this,e={events:{}};return this.$listeners&&"object"===t(this.$listeners)&&Object.keys(this.$listeners).forEach(function(s){e.events[s]=function(e){a.$emit(s,e)}}),e},setLastOptions:function(a){this._oldOptions=Object.assign({},a)},getLastOptions:function(){return this._oldOptions},getOptions:function(){var a={},e=this;for(var s in i)void 0!==e[s]&&null!==e[s]&&(a[i[s]]=e[s]);return Object.assign(Object.assign({},e.options),a)},renderChart:function(){var e=this,s=e.getOptions(),t=e.chartObj;s.renderAt=this.containerID,e.setLastOptions(s),t&&t.dispose&&t.dispose();var r=this.createEvents();s.events=Object.assign({},s.events,r.events),e.chartObj=t=new a(s),t.render()},updateChart:function(){var a=this,e=a.getOptions(),s=a.getLastOptions(),t=a.chartObj;e.width!==s.width||e.height!==s.height?t&&t.resizeTo(e.width,e.height):e.type!==s.type?t.chartType(e.type):t.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(){this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},datasource:{handler:function(){this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0}},deactivated:function(){this.chartObj&&this.chartObj.dispose()},beforeDestroy:function(){this.chartObj&&this.chartObj.dispose()},mounted:function(){this.renderChart()},ready:function(){this.renderChart()}}},a.exports=e.default},function(a,e,s){"use strict";var t={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:t,props:r}},function(a,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=s(0),r=function(a){return a&&a.__esModule?a:{default:a}}(t),g=function(a,e){for(var s=arguments.length,t=Array(s>2?s-2:0),g=2;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}},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.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 Date: Thu, 27 Dec 2018 15:11:27 +0530 Subject: [PATCH 05/11] Fixed typo in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 44dcb28..32c75b0 100644 --- a/README.md +++ b/README.md @@ -245,7 +245,7 @@ links to help you get started: ## Usage and integration of FusionTime -From `fusioncharts@3.13.3-sr.1` and `vue-usioncharts@3.0.0`, You can visualize timeseries data easily with angular. +From `fusioncharts@3.13.3-sr.1` and `vue-fusioncharts@3.0.0`, You can visualize timeseries data easily with angular. Learn more about FusionTime [here](https://www.fusioncharts.com/fusiontime). From 6260de138acf182cf49a4202ba46a5aa4cedbf97 Mon Sep 17 00:00:00 2001 From: Rohan Dey Date: Thu, 27 Dec 2018 18:58:55 +0530 Subject: [PATCH 06/11] Fixed timeseries bug for initial rendering --- example/index.html | 8 +++++++- example/index.js | 16 +++++++++++++--- src/vue-fusioncharts-component.js | 19 +++++++++++++++++++ 3 files changed, 39 insertions(+), 4 deletions(-) diff --git a/example/index.html b/example/index.html index c72792f..9ce0973 100644 --- a/example/index.html +++ b/example/index.html @@ -18,7 +18,13 @@
- + FusionCharts will render here...
diff --git a/example/index.js b/example/index.js index e7a06b0..022cc4e 100644 --- a/example/index.js +++ b/example/index.js @@ -58,6 +58,16 @@ var chart = new Vue({ } ] }, + pieType: 'Pie2D', + chartDs: { + chart: { + caption: 'Vue FusionCharts Sample', + theme: 'fint', + animation: '1', + updateanimduration: '100' + }, + data: [{ value: 1.9 }, { value: 2.3 }, { value: 2.1 }] + }, options: { width: '500', height: '300', @@ -95,9 +105,9 @@ var chart = new Vue({ methods: { changeFirstChartAttr: function() { // let dataSource = Object.assign({}, this.pieDataSource); - this.options.dataSource.chart.caption = 'Changed to something else'; - // dataSource.data[2].value = this.getRandomNumber(); - // dataSource.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() { diff --git a/src/vue-fusioncharts-component.js b/src/vue-fusioncharts-component.js index 87cfb0d..4f7569d 100644 --- a/src/vue-fusioncharts-component.js +++ b/src/vue-fusioncharts-component.js @@ -124,6 +124,7 @@ export default (FC, ...options) => { }, dataSource: { handler: function() { + console.log('Called dataSource'); if (!checkIfDataTableExists(this.dataSource)) { this.chartObj.setChartData( this.datasource || this.dataSource, @@ -143,6 +144,24 @@ export default (FC, ...options) => { } }, deep: true + }, + 'datasource.data': { + handler: function() { + this.chartObj.setChartData( + this.datasource || this.dataSource, + this.dataFormat || this.dataformat + ); + }, + deep: false + }, + 'dataSource.data': { + handler: function() { + this.chartObj.setChartData( + this.datasource || this.dataSource, + this.dataFormat || this.dataformat + ); + }, + deep: false } }, deactivated: function() { From 27b85739a6b36b7dbe05be96c4329786e1890d81 Mon Sep 17 00:00:00 2001 From: Rohan Dey Date: Thu, 27 Dec 2018 19:01:35 +0530 Subject: [PATCH 07/11] Removed unnecessary code --- example/index.html | 20 +++++++++----------- example/index.js | 4 +--- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/example/index.html b/example/index.html index 9ce0973..8c9ccf4 100644 --- a/example/index.html +++ b/example/index.html @@ -27,17 +27,15 @@ > FusionCharts will render here... -
- - FusionCharts will render here... - -
+ + FusionCharts will render here... +
",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}},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.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 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 diff --git a/dist/vue-fusioncharts.js b/dist/vue-fusioncharts.js index a406728..3c7b656 100644 --- a/dist/vue-fusioncharts.js +++ b/dist/vue-fusioncharts.js @@ -236,6 +236,22 @@ exports.default = function (FC) { } }, deep: true + }, + 'datasource.data': { + handler: function handler(newVal, prevVal) { + if (newVal !== prevVal) { + this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); + } + }, + deep: false + }, + 'dataSource.data': { + handler: function handler(newVal, prevVal) { + if (newVal !== prevVal) { + this.chartObj.setChartData(this.datasource || this.dataSource, this.dataFormat || this.dataformat); + } + }, + deep: false } }, deactivated: function deactivated() { @@ -255,6 +271,7 @@ exports.default = function (FC) { var ds = this.datasource || this.dataSource || this.options.dataSource; var strCurrClonedDataSource = JSON.stringify((0, _utils.cloneDataSource)(ds, 'diff')); if (strPrevClonedDataSource !== strCurrClonedDataSource) { + this.prevDataSource = (0, _utils.cloneDataSource)(ds, 'diff'); this.chartObj.setChartData(ds, this.dataFormat || this.dataformat); } } diff --git a/dist/vue-fusioncharts.js.map b/dist/vue-fusioncharts.js.map index f62f739..c2b8619 100644 --- a/dist/vue-fusioncharts.js.map +++ b/dist/vue-fusioncharts.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap bebbb3bf7f857de5003b","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","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;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N,cAAL,CAAoBC,MAApB;;AAEA,MAAIT,YAAYA,SAASmB,OAAzB,EAAkC;AAChCnB,aAASmB,OAAT;AACD;AACD,MAAMZ,SAAS,KAAKF,YAAL,EAAf;AACAI,SAAOF,MAAP,GAAgBT,OAAOa,MAAP,CAAc,EAAd,EAAkBF,OAAOF,MAAzB,EAAiCA,OAAOA,MAAxC,CAAhB;;AAEAO,OAAKd,QAAL,GAAgBA,WAAW,IAAIlB,EAAJ,CAAO2B,MAAP,CAA3B;AACAT,WAASX,MAAT;AACD;;AAEM,SAASmC,WAAT,CAAqB8I,IAArB,EAA2B;AAChC,MAAIxJ,OAAOwJ,IAAX;AAAA,MACE7J,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,CAACyH,uBAAuB7I,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 bebbb3bf7f857de5003b","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 },\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.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 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;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;AChEA;;;;AAEA;;;;eAD8B,mBAAAA,CAAQ,CAAR,C;IAAtBC,U,YAAAA,U;IAAYC,K,YAAAA,K;;kBAGL,UAACC,EAAD,EAAoB;AAAA,oCAAZC,OAAY;AAAZA,WAAY;AAAA;;AACjCA,aACEA,QAAQC,OADV,IAEED,QAAQC,OAAR,CAAgB,mBAAW;AACzB,uBAAOF,EAAP,EAAWG,sBAAX,EAAgBC,OAAhB;AACD,GAFD,CAFF;AAKA,SAAO;AACLC,UAAM,cADD;AAELC,cAAU,aAFL;AAGLC,YAAQ,gBAASC,CAAT,EAAY;AAClB,WAAKC,WAAL,GAAmB,QAAQ,KAAKC,IAAhC;AACA,aAAOF,EAAE,KAAF,E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EAAkC;AAChCnB,aAASmB,OAAT;AACD;AACD,MAAMZ,SAAS,KAAKF,YAAL,EAAf;AACAI,SAAOF,MAAP,GAAgBT,OAAOa,MAAP,CAAc,EAAd,EAAkBF,OAAOF,MAAzB,EAAiCA,OAAOA,MAAxC,CAAhB;;AAEAO,OAAKd,QAAL,GAAgBA,WAAW,IAAIlB,EAAJ,CAAO2B,MAAP,CAA3B;AACAT,WAASX,MAAT;AACD;;AAEM,SAASmC,WAAT,CAAqBgJ,IAArB,EAA2B;AAChC,MAAI1J,OAAO0J,IAAX;AAAA,MACE/J,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,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 diff --git a/dist/vue-fusioncharts.min.js b/dist/vue-fusioncharts.min.js index 60eb014..86cd102 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}},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.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 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;g Date: Wed, 2 Jan 2019 16:25:33 +0530 Subject: [PATCH 11/11] Bump version 3.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 74da367..397f643 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-fusioncharts", - "version": "2.0.4", + "version": "3.0.0", "description": "FusionCharts component for Vue.js", "main": "dist/vue-fusioncharts.js", "author": "FusionCharts",