Skip to content

Commit

Permalink
update dist and lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaming743 committed Aug 29, 2019
1 parent d598ad4 commit 46a85c4
Show file tree
Hide file tree
Showing 31 changed files with 12,745 additions and 1,025 deletions.
12,517 changes: 12,517 additions & 0 deletions dist/charts.map.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/charts.min.js

Large diffs are not rendered by default.

32 changes: 7 additions & 25 deletions lib/class/charts.class.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
"use strict";

require("core-js/modules/es.symbol");

require("core-js/modules/es.symbol.description");

require("core-js/modules/es.symbol.iterator");

require("core-js/modules/es.array.iterator");

require("core-js/modules/es.object.assign");

require("core-js/modules/es.object.define-property");

require("core-js/modules/es.object.to-string");

require("core-js/modules/es.string.iterator");

require("core-js/modules/web.dom-collections.iterator");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;

var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));

var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));

require("../extend/index");

var _cRender = _interopRequireDefault(require("@jiaminghi/c-render"));
Expand All @@ -31,14 +19,8 @@ var _util = require("@jiaminghi/c-render/lib/plugin/util");

var _core = require("../core");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var Charts = function Charts(dom) {
_classCallCheck(this, Charts);
(0, _classCallCheck2["default"])(this, Charts);

if (!dom) {
console.error('Charts Missing parameters!');
Expand Down Expand Up @@ -69,7 +51,7 @@ var Charts = function Charts(dom) {
exports["default"] = Charts;

Charts.prototype.setOption = function (option) {
if (!option || _typeof(option) !== 'object') {
if (!option || (0, _typeof2["default"])(option) !== 'object') {
console.error('setOption Missing parameters!');
return false;
}
Expand Down
61 changes: 7 additions & 54 deletions lib/class/updater.class.js
Original file line number Diff line number Diff line change
@@ -1,66 +1,21 @@
"use strict";

require("core-js/modules/es.symbol");

require("core-js/modules/es.symbol.description");

require("core-js/modules/es.symbol.iterator");

require("core-js/modules/es.array.fill");

require("core-js/modules/es.array.for-each");

require("core-js/modules/es.array.from");

require("core-js/modules/es.array.is-array");

require("core-js/modules/es.array.iterator");

require("core-js/modules/es.array.map");

require("core-js/modules/es.array.slice");

require("core-js/modules/es.array.splice");

require("core-js/modules/es.date.to-string");

require("core-js/modules/es.object.assign");

require("core-js/modules/es.object.define-property");

require("core-js/modules/es.object.keys");

require("core-js/modules/es.object.to-string");

require("core-js/modules/es.regexp.to-string");

require("core-js/modules/es.string.iterator");

require("core-js/modules/web.dom-collections.for-each");

require("core-js/modules/web.dom-collections.iterator");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.doUpdate = doUpdate;
exports.Updater = void 0;

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));

var Updater = function Updater(config, series) {
_classCallCheck(this, Updater);

(0, _classCallCheck2["default"])(this, Updater);
var chart = config.chart,
key = config.key,
getGraphConfig = config.getGraphConfig;
Expand All @@ -84,9 +39,7 @@ Updater.prototype.update = function (series) {
beforeUpdate = this.beforeUpdate;
delRedundanceGraph(this, series);
if (!series.length) return;

var beforeUpdateType = _typeof(beforeUpdate);

var beforeUpdateType = (0, _typeof2["default"])(beforeUpdate);
series.forEach(function (seriesItem, i) {
if (beforeUpdateType === 'function') beforeUpdate(graphs, seriesItem, i, _this);
var cache = graphs[i];
Expand Down Expand Up @@ -138,7 +91,7 @@ function balanceGraphsNum(graphs, graphConfig, render) {
var needAddGraphs = new Array(needAddGraphNum).fill(0).map(function (foo) {
return render.clone(lastCacheGraph);
});
graphs.push.apply(graphs, _toConsumableArray(needAddGraphs));
graphs.push.apply(graphs, (0, _toConsumableArray2["default"])(needAddGraphs));
} else if (needGraphNum < cacheGraphNum) {
var needDelCache = graphs.splice(needGraphNum);
needDelCache.forEach(function (g) {
Expand Down
2 changes: 0 additions & 2 deletions lib/config/axis.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

require("core-js/modules/es.object.define-property");

Object.defineProperty(exports, "__esModule", {
value: true
});
Expand Down
2 changes: 0 additions & 2 deletions lib/config/bar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

require("core-js/modules/es.object.define-property");

Object.defineProperty(exports, "__esModule", {
value: true
});
Expand Down
2 changes: 0 additions & 2 deletions lib/config/color.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

require("core-js/modules/es.object.define-property");

Object.defineProperty(exports, "__esModule", {
value: true
});
Expand Down
2 changes: 0 additions & 2 deletions lib/config/gauge.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

require("core-js/modules/es.object.define-property");

Object.defineProperty(exports, "__esModule", {
value: true
});
Expand Down
2 changes: 0 additions & 2 deletions lib/config/grid.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

require("core-js/modules/es.object.define-property");

Object.defineProperty(exports, "__esModule", {
value: true
});
Expand Down
8 changes: 0 additions & 8 deletions lib/config/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
"use strict";

require("core-js/modules/es.array.iterator");

require("core-js/modules/es.object.define-property");

require("core-js/modules/es.object.to-string");

require("core-js/modules/web.dom-collections.iterator");

Object.defineProperty(exports, "__esModule", {
value: true
});
Expand Down
2 changes: 0 additions & 2 deletions lib/config/legend.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

require("core-js/modules/es.object.define-property");

Object.defineProperty(exports, "__esModule", {
value: true
});
Expand Down
2 changes: 0 additions & 2 deletions lib/config/line.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

require("core-js/modules/es.object.define-property");

Object.defineProperty(exports, "__esModule", {
value: true
});
Expand Down
2 changes: 0 additions & 2 deletions lib/config/pie.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

require("core-js/modules/es.object.define-property");

Object.defineProperty(exports, "__esModule", {
value: true
});
Expand Down
2 changes: 0 additions & 2 deletions lib/config/radar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

require("core-js/modules/es.object.define-property");

Object.defineProperty(exports, "__esModule", {
value: true
});
Expand Down
2 changes: 0 additions & 2 deletions lib/config/radarAxis.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

require("core-js/modules/es.object.define-property");

Object.defineProperty(exports, "__esModule", {
value: true
});
Expand Down
2 changes: 0 additions & 2 deletions lib/config/title.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

require("core-js/modules/es.object.define-property");

Object.defineProperty(exports, "__esModule", {
value: true
});
Expand Down
Loading

0 comments on commit 46a85c4

Please sign in to comment.