@wg-npm/survey-analyzer 0.3.22831 → 0.3.22835
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/survey-analyer.esm.js +1092 -684
- package/package.json +6 -6
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
|
-
import Component$2, { createDecorator } from 'vue-class-component';
|
|
3
2
|
|
|
4
3
|
/******************************************************************************
|
|
5
4
|
Copyright (c) Microsoft Corporation.
|
|
@@ -27,28 +26,340 @@ function __metadata(metadataKey, metadataValue) {
|
|
|
27
26
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
/**
|
|
30
|
+
* vue-class-component v7.2.6
|
|
31
|
+
* (c) 2015-present Evan You
|
|
32
|
+
* @license MIT
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
function _typeof(obj) {
|
|
36
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
37
|
+
_typeof = function (obj) {
|
|
38
|
+
return typeof obj;
|
|
39
|
+
};
|
|
40
|
+
} else {
|
|
41
|
+
_typeof = function (obj) {
|
|
42
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return _typeof(obj);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function _defineProperty(obj, key, value) {
|
|
50
|
+
if (key in obj) {
|
|
51
|
+
Object.defineProperty(obj, key, {
|
|
52
|
+
value: value,
|
|
53
|
+
enumerable: true,
|
|
54
|
+
configurable: true,
|
|
55
|
+
writable: true
|
|
56
|
+
});
|
|
57
|
+
} else {
|
|
58
|
+
obj[key] = value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return obj;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function _toConsumableArray(arr) {
|
|
65
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function _arrayWithoutHoles(arr) {
|
|
69
|
+
if (Array.isArray(arr)) {
|
|
70
|
+
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
|
71
|
+
|
|
72
|
+
return arr2;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function _iterableToArray(iter) {
|
|
77
|
+
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function _nonIterableSpread() {
|
|
81
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
82
|
+
} // The rational behind the verbose Reflect-feature check below is the fact that there are polyfills
|
|
83
|
+
// which add an implementation for Reflect.defineMetadata but not for Reflect.getOwnMetadataKeys.
|
|
84
|
+
// Without this check consumers will encounter hard to track down runtime errors.
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
function reflectionIsSupported() {
|
|
88
|
+
return typeof Reflect !== 'undefined' && Reflect.defineMetadata && Reflect.getOwnMetadataKeys;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function copyReflectionMetadata(to, from) {
|
|
92
|
+
forwardMetadata(to, from);
|
|
93
|
+
Object.getOwnPropertyNames(from.prototype).forEach(function (key) {
|
|
94
|
+
forwardMetadata(to.prototype, from.prototype, key);
|
|
95
|
+
});
|
|
96
|
+
Object.getOwnPropertyNames(from).forEach(function (key) {
|
|
97
|
+
forwardMetadata(to, from, key);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function forwardMetadata(to, from, propertyKey) {
|
|
102
|
+
var metaKeys = propertyKey ? Reflect.getOwnMetadataKeys(from, propertyKey) : Reflect.getOwnMetadataKeys(from);
|
|
103
|
+
metaKeys.forEach(function (metaKey) {
|
|
104
|
+
var metadata = propertyKey ? Reflect.getOwnMetadata(metaKey, from, propertyKey) : Reflect.getOwnMetadata(metaKey, from);
|
|
105
|
+
|
|
106
|
+
if (propertyKey) {
|
|
107
|
+
Reflect.defineMetadata(metaKey, metadata, to, propertyKey);
|
|
108
|
+
} else {
|
|
109
|
+
Reflect.defineMetadata(metaKey, metadata, to);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
var fakeArray = {
|
|
115
|
+
__proto__: []
|
|
36
116
|
};
|
|
117
|
+
var hasProto = fakeArray instanceof Array;
|
|
118
|
+
|
|
119
|
+
function createDecorator(factory) {
|
|
120
|
+
return function (target, key, index) {
|
|
121
|
+
var Ctor = typeof target === 'function' ? target : target.constructor;
|
|
122
|
+
|
|
123
|
+
if (!Ctor.__decorators__) {
|
|
124
|
+
Ctor.__decorators__ = [];
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (typeof index !== 'number') {
|
|
128
|
+
index = undefined;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
Ctor.__decorators__.push(function (options) {
|
|
132
|
+
return factory(options, key, index);
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function isPrimitive$1(value) {
|
|
138
|
+
var type = _typeof(value);
|
|
139
|
+
|
|
140
|
+
return value == null || type !== 'object' && type !== 'function';
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function warn(message) {
|
|
144
|
+
if (typeof console !== 'undefined') {
|
|
145
|
+
console.warn('[vue-class-component] ' + message);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function collectDataFromConstructor(vm, Component) {
|
|
150
|
+
// override _init to prevent to init as Vue instance
|
|
151
|
+
var originalInit = Component.prototype._init;
|
|
152
|
+
|
|
153
|
+
Component.prototype._init = function () {
|
|
154
|
+
var _this = this; // proxy to actual vm
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
var keys = Object.getOwnPropertyNames(vm); // 2.2.0 compat (props are no longer exposed as self properties)
|
|
158
|
+
|
|
159
|
+
if (vm.$options.props) {
|
|
160
|
+
for (var key in vm.$options.props) {
|
|
161
|
+
if (!vm.hasOwnProperty(key)) {
|
|
162
|
+
keys.push(key);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
keys.forEach(function (key) {
|
|
168
|
+
Object.defineProperty(_this, key, {
|
|
169
|
+
get: function get() {
|
|
170
|
+
return vm[key];
|
|
171
|
+
},
|
|
172
|
+
set: function set(value) {
|
|
173
|
+
vm[key] = value;
|
|
174
|
+
},
|
|
175
|
+
configurable: true
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
}; // should be acquired class property values
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
var data = new Component(); // restore original _init to avoid memory leak (#209)
|
|
182
|
+
|
|
183
|
+
Component.prototype._init = originalInit; // create plain data object
|
|
184
|
+
|
|
185
|
+
var plainData = {};
|
|
186
|
+
Object.keys(data).forEach(function (key) {
|
|
187
|
+
if (data[key] !== undefined) {
|
|
188
|
+
plainData[key] = data[key];
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
193
|
+
if (!(Component.prototype instanceof Vue) && Object.keys(plainData).length > 0) {
|
|
194
|
+
warn('Component class must inherit Vue or its descendant class ' + 'when class property is used.');
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
return plainData;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
var $internalHooks = ['data', 'beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeDestroy', 'destroyed', 'beforeUpdate', 'updated', 'activated', 'deactivated', 'render', 'errorCaptured', 'serverPrefetch' // 2.6
|
|
202
|
+
];
|
|
203
|
+
|
|
204
|
+
function componentFactory(Component) {
|
|
205
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
206
|
+
options.name = options.name || Component._componentTag || Component.name; // prototype props.
|
|
207
|
+
|
|
208
|
+
var proto = Component.prototype;
|
|
209
|
+
Object.getOwnPropertyNames(proto).forEach(function (key) {
|
|
210
|
+
if (key === 'constructor') {
|
|
211
|
+
return;
|
|
212
|
+
} // hooks
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
if ($internalHooks.indexOf(key) > -1) {
|
|
216
|
+
options[key] = proto[key];
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
var descriptor = Object.getOwnPropertyDescriptor(proto, key);
|
|
221
|
+
|
|
222
|
+
if (descriptor.value !== void 0) {
|
|
223
|
+
// methods
|
|
224
|
+
if (typeof descriptor.value === 'function') {
|
|
225
|
+
(options.methods || (options.methods = {}))[key] = descriptor.value;
|
|
226
|
+
} else {
|
|
227
|
+
// typescript decorated data
|
|
228
|
+
(options.mixins || (options.mixins = [])).push({
|
|
229
|
+
data: function data() {
|
|
230
|
+
return _defineProperty({}, key, descriptor.value);
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
} else if (descriptor.get || descriptor.set) {
|
|
235
|
+
// computed properties
|
|
236
|
+
(options.computed || (options.computed = {}))[key] = {
|
|
237
|
+
get: descriptor.get,
|
|
238
|
+
set: descriptor.set
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
(options.mixins || (options.mixins = [])).push({
|
|
243
|
+
data: function data() {
|
|
244
|
+
return collectDataFromConstructor(this, Component);
|
|
245
|
+
}
|
|
246
|
+
}); // decorate options
|
|
247
|
+
|
|
248
|
+
var decorators = Component.__decorators__;
|
|
249
|
+
|
|
250
|
+
if (decorators) {
|
|
251
|
+
decorators.forEach(function (fn) {
|
|
252
|
+
return fn(options);
|
|
253
|
+
});
|
|
254
|
+
delete Component.__decorators__;
|
|
255
|
+
} // find super
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
var superProto = Object.getPrototypeOf(Component.prototype);
|
|
259
|
+
var Super = superProto instanceof Vue ? superProto.constructor : Vue;
|
|
260
|
+
var Extended = Super.extend(options);
|
|
261
|
+
forwardStaticMembers(Extended, Component, Super);
|
|
262
|
+
|
|
263
|
+
if (reflectionIsSupported()) {
|
|
264
|
+
copyReflectionMetadata(Extended, Component);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
return Extended;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
var reservedPropertyNames = [// Unique id
|
|
271
|
+
'cid', // Super Vue constructor
|
|
272
|
+
'super', // Component options that will be used by the component
|
|
273
|
+
'options', 'superOptions', 'extendOptions', 'sealedOptions', // Private assets
|
|
274
|
+
'component', 'directive', 'filter'];
|
|
275
|
+
var shouldIgnore = {
|
|
276
|
+
prototype: true,
|
|
277
|
+
arguments: true,
|
|
278
|
+
callee: true,
|
|
279
|
+
caller: true
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
function forwardStaticMembers(Extended, Original, Super) {
|
|
283
|
+
// We have to use getOwnPropertyNames since Babel registers methods as non-enumerable
|
|
284
|
+
Object.getOwnPropertyNames(Original).forEach(function (key) {
|
|
285
|
+
// Skip the properties that should not be overwritten
|
|
286
|
+
if (shouldIgnore[key]) {
|
|
287
|
+
return;
|
|
288
|
+
} // Some browsers does not allow reconfigure built-in properties
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
var extendedDescriptor = Object.getOwnPropertyDescriptor(Extended, key);
|
|
292
|
+
|
|
293
|
+
if (extendedDescriptor && !extendedDescriptor.configurable) {
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
var descriptor = Object.getOwnPropertyDescriptor(Original, key); // If the user agent does not support `__proto__` or its family (IE <= 10),
|
|
298
|
+
// the sub class properties may be inherited properties from the super class in TypeScript.
|
|
299
|
+
// We need to exclude such properties to prevent to overwrite
|
|
300
|
+
// the component options object which stored on the extended constructor (See #192).
|
|
301
|
+
// If the value is a referenced value (object or function),
|
|
302
|
+
// we can check equality of them and exclude it if they have the same reference.
|
|
303
|
+
// If it is a primitive value, it will be forwarded for safety.
|
|
304
|
+
|
|
305
|
+
if (!hasProto) {
|
|
306
|
+
// Only `cid` is explicitly exluded from property forwarding
|
|
307
|
+
// because we cannot detect whether it is a inherited property or not
|
|
308
|
+
// on the no `__proto__` environment even though the property is reserved.
|
|
309
|
+
if (key === 'cid') {
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
var superDescriptor = Object.getOwnPropertyDescriptor(Super, key);
|
|
314
|
+
|
|
315
|
+
if (!isPrimitive$1(descriptor.value) && superDescriptor && superDescriptor.value === descriptor.value) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
} // Warn if the users manually declare reserved properties
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
if (process.env.NODE_ENV !== 'production' && reservedPropertyNames.indexOf(key) >= 0) {
|
|
322
|
+
warn("Static property name '".concat(key, "' declared on class '").concat(Original.name, "' ") + 'conflicts with reserved property name of Vue internal. ' + 'It may cause unexpected behavior of the component. Consider renaming the property.');
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
Object.defineProperty(Extended, key, descriptor);
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
function Component$2(options) {
|
|
330
|
+
if (typeof options === 'function') {
|
|
331
|
+
return componentFactory(options);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
return function (Component) {
|
|
335
|
+
return componentFactory(Component, options);
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
Component$2.registerHooks = function registerHooks(keys) {
|
|
340
|
+
$internalHooks.push.apply($internalHooks, _toConsumableArray(keys));
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
undefined && undefined.__spreadArrays || function () {
|
|
344
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
345
|
+
|
|
346
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
|
|
347
|
+
|
|
348
|
+
return r;
|
|
349
|
+
}; // Code copied from Vue/src/shared/util.js
|
|
37
350
|
|
|
38
351
|
/** @see {@link https://github.com/vuejs/vue-class-component/blob/master/src/reflect.ts} */
|
|
39
352
|
var reflectMetadataIsSupported = typeof Reflect !== 'undefined' && typeof Reflect.getMetadata !== 'undefined';
|
|
40
353
|
function applyMetadata(options, target, key) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
options.type = type;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
354
|
+
if (reflectMetadataIsSupported) {
|
|
355
|
+
if (!Array.isArray(options) && typeof options !== 'function' && !options.hasOwnProperty('type') && typeof options.type === 'undefined') {
|
|
356
|
+
var type = Reflect.getMetadata('design:type', target, key);
|
|
357
|
+
|
|
358
|
+
if (type !== Object) {
|
|
359
|
+
options.type = type;
|
|
360
|
+
}
|
|
51
361
|
}
|
|
362
|
+
}
|
|
52
363
|
}
|
|
53
364
|
|
|
54
365
|
/**
|
|
@@ -56,14 +367,18 @@ function applyMetadata(options, target, key) {
|
|
|
56
367
|
* @param options the options for the prop
|
|
57
368
|
* @return PropertyDecorator | void
|
|
58
369
|
*/
|
|
370
|
+
|
|
59
371
|
function Prop(options) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
372
|
+
if (options === void 0) {
|
|
373
|
+
options = {};
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
return function (target, key) {
|
|
377
|
+
applyMetadata(options, target, key);
|
|
378
|
+
createDecorator(function (componentOptions, k) {
|
|
379
|
+
(componentOptions.props || (componentOptions.props = {}))[k] = options;
|
|
380
|
+
})(target, key);
|
|
381
|
+
};
|
|
67
382
|
}
|
|
68
383
|
|
|
69
384
|
class SurveyAnalyzerVue extends Vue {
|
|
@@ -91,8 +406,8 @@ function commonjsRequire () {
|
|
|
91
406
|
|
|
92
407
|
if (typeof window !== 'undefined') ; // In node
|
|
93
408
|
else if (typeof commonjsGlobal !== 'undefined') {
|
|
94
|
-
|
|
95
|
-
|
|
409
|
+
commonjsGlobal.__DEV__;
|
|
410
|
+
}
|
|
96
411
|
|
|
97
412
|
/**
|
|
98
413
|
* zrender: 生成唯一id
|
|
@@ -2111,10 +2426,10 @@ var Dispatcher$1 = Eventful_1;
|
|
|
2111
2426
|
|
|
2112
2427
|
var isCanvasEl = dom.isCanvasEl;
|
|
2113
2428
|
var transformCoordWithViewport = dom.transformCoordWithViewport;
|
|
2114
|
-
|
|
2115
2429
|
/**
|
|
2116
2430
|
* Utilities for mouse or touch events.
|
|
2117
2431
|
*/
|
|
2432
|
+
|
|
2118
2433
|
var isDomLevel2 = typeof window !== 'undefined' && !!window.addEventListener;
|
|
2119
2434
|
var MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/;
|
|
2120
2435
|
var _calcOut = [];
|
|
@@ -2160,16 +2475,16 @@ function clientToLocal(el, e, out, calculate) {
|
|
|
2160
2475
|
// <https://bugs.jquery.com/ticket/8523#comment:14>
|
|
2161
2476
|
// BTW3, In ff, offsetX/offsetY is always 0.
|
|
2162
2477
|
else if (env_1.browser.firefox && e.layerX != null && e.layerX !== e.offsetX) {
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2478
|
+
out.zrX = e.layerX;
|
|
2479
|
+
out.zrY = e.layerY;
|
|
2480
|
+
} // For IE6+, chrome, safari, opera. (When will ff support offsetX?)
|
|
2481
|
+
else if (e.offsetX != null) {
|
|
2482
|
+
out.zrX = e.offsetX;
|
|
2483
|
+
out.zrY = e.offsetY;
|
|
2484
|
+
} // For some other device, e.g., IOS safari.
|
|
2485
|
+
else {
|
|
2486
|
+
calculateZrXY(el, e, out);
|
|
2487
|
+
}
|
|
2173
2488
|
|
|
2174
2489
|
return out;
|
|
2175
2490
|
}
|
|
@@ -2387,6 +2702,8 @@ var event = {
|
|
|
2387
2702
|
/**
|
|
2388
2703
|
* Only implements needed gestures for mobile.
|
|
2389
2704
|
*/
|
|
2705
|
+
|
|
2706
|
+
|
|
2390
2707
|
var GestureMgr = function () {
|
|
2391
2708
|
/**
|
|
2392
2709
|
* @private
|
|
@@ -2539,6 +2856,8 @@ var GestureMgr_1 = _default$1y;
|
|
|
2539
2856
|
* `document` capture phase to prevent the propagation to any listener of the webpage.
|
|
2540
2857
|
* But they are needed to work when the pointer inside the zrender dom.
|
|
2541
2858
|
*/
|
|
2859
|
+
|
|
2860
|
+
|
|
2542
2861
|
var SILENT = 'silent';
|
|
2543
2862
|
|
|
2544
2863
|
function makeEventPacket(eveType, targetInfo, event) {
|
|
@@ -3109,6 +3428,8 @@ var matrix = {
|
|
|
3109
3428
|
* @module zrender/mixin/Transformable
|
|
3110
3429
|
* @author pissang (https://www.github.com/pissang)
|
|
3111
3430
|
*/
|
|
3431
|
+
|
|
3432
|
+
|
|
3112
3433
|
var mIdentity = matrix.identity;
|
|
3113
3434
|
var EPSILON$3 = 5e-5;
|
|
3114
3435
|
|
|
@@ -3818,6 +4139,8 @@ var easing_1 = _default$1v;
|
|
|
3818
4139
|
*
|
|
3819
4140
|
* TODO pause
|
|
3820
4141
|
*/
|
|
4142
|
+
|
|
4143
|
+
|
|
3821
4144
|
function Clip(options) {
|
|
3822
4145
|
this._target = options.target; // 生命周期
|
|
3823
4146
|
|
|
@@ -4747,10 +5070,10 @@ var color$1 = {
|
|
|
4747
5070
|
};
|
|
4748
5071
|
|
|
4749
5072
|
var isArrayLike$2 = util$2.isArrayLike;
|
|
4750
|
-
|
|
4751
5073
|
/**
|
|
4752
5074
|
* @module echarts/animation/Animator
|
|
4753
5075
|
*/
|
|
5076
|
+
|
|
4754
5077
|
var arraySlice = Array.prototype.slice;
|
|
4755
5078
|
|
|
4756
5079
|
function defaultGetter(target, key) {
|
|
@@ -5424,11 +5747,11 @@ var isFunction$2 = util$2.isFunction;
|
|
|
5424
5747
|
var isObject$b = util$2.isObject;
|
|
5425
5748
|
var isArrayLike$1 = util$2.isArrayLike;
|
|
5426
5749
|
var indexOf$1 = util$2.indexOf;
|
|
5427
|
-
|
|
5428
5750
|
/**
|
|
5429
5751
|
* @alias module:zrender/mixin/Animatable
|
|
5430
5752
|
* @constructor
|
|
5431
5753
|
*/
|
|
5754
|
+
|
|
5432
5755
|
var Animatable = function () {
|
|
5433
5756
|
/**
|
|
5434
5757
|
* @type {Array.<module:zrender/animation/Animator>}
|
|
@@ -5568,21 +5891,21 @@ function animateTo(animatable, target, time, delay, easing, callback, forceAnima
|
|
|
5568
5891
|
delay = 0;
|
|
5569
5892
|
} // animateTo(target, time, delay, callback);
|
|
5570
5893
|
else if (isFunction$2(easing)) {
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5894
|
+
callback = easing;
|
|
5895
|
+
easing = 'linear';
|
|
5896
|
+
delay = 0;
|
|
5897
|
+
} // animateTo(target, time, callback);
|
|
5898
|
+
else if (isFunction$2(delay)) {
|
|
5899
|
+
callback = delay;
|
|
5900
|
+
delay = 0;
|
|
5901
|
+
} // animateTo(target, callback)
|
|
5902
|
+
else if (isFunction$2(time)) {
|
|
5903
|
+
callback = time;
|
|
5904
|
+
time = 500;
|
|
5905
|
+
} // animateTo(target)
|
|
5906
|
+
else if (!time) {
|
|
5907
|
+
time = 500;
|
|
5908
|
+
} // Stop all previous animations
|
|
5586
5909
|
|
|
5587
5910
|
|
|
5588
5911
|
animatable.stopAnimation();
|
|
@@ -5696,6 +6019,8 @@ var Animatable_1 = _default$1q;
|
|
|
5696
6019
|
* @extends {module:zrender/mixin/Transformable}
|
|
5697
6020
|
* @extends {module:zrender/mixin/Eventful}
|
|
5698
6021
|
*/
|
|
6022
|
+
|
|
6023
|
+
|
|
5699
6024
|
var Element = function (opts) {
|
|
5700
6025
|
// jshint ignore:line
|
|
5701
6026
|
Transformable_1.call(this, opts);
|
|
@@ -5952,6 +6277,8 @@ var Element_1 = _default$1p;
|
|
|
5952
6277
|
/**
|
|
5953
6278
|
* @module echarts/core/BoundingRect
|
|
5954
6279
|
*/
|
|
6280
|
+
|
|
6281
|
+
|
|
5955
6282
|
var v2ApplyTransform$1 = vector.applyTransform;
|
|
5956
6283
|
var mathMin$3 = Math.min;
|
|
5957
6284
|
var mathMax$3 = Math.max;
|
|
@@ -6154,6 +6481,8 @@ var BoundingRect_1$1 = _default$1o;
|
|
|
6154
6481
|
* @extends module:zrender/mixin/Transformable
|
|
6155
6482
|
* @extends module:zrender/mixin/Eventful
|
|
6156
6483
|
*/
|
|
6484
|
+
|
|
6485
|
+
|
|
6157
6486
|
var Group = function (opts) {
|
|
6158
6487
|
opts = opts || {};
|
|
6159
6488
|
Element_1.call(this, opts);
|
|
@@ -7096,6 +7425,8 @@ var timsort = sort;
|
|
|
7096
7425
|
|
|
7097
7426
|
// Use timsort because in most case elements are partially sorted
|
|
7098
7427
|
// https://jsfiddle.net/pissang/jr4x7mdm/8/
|
|
7428
|
+
|
|
7429
|
+
|
|
7099
7430
|
function shapeCompareFunc(a, b) {
|
|
7100
7431
|
if (a.zlevel === b.zlevel) {
|
|
7101
7432
|
if (a.z === b.z) {
|
|
@@ -7851,11 +8182,12 @@ var devicePixelRatio$1 = config.devicePixelRatio;
|
|
|
7851
8182
|
|
|
7852
8183
|
|
|
7853
8184
|
|
|
7854
|
-
|
|
7855
8185
|
/**
|
|
7856
8186
|
* @module zrender/Layer
|
|
7857
8187
|
* @author pissang(https://www.github.com/pissang)
|
|
7858
8188
|
*/
|
|
8189
|
+
|
|
8190
|
+
|
|
7859
8191
|
function returnFalse() {
|
|
7860
8192
|
return false;
|
|
7861
8193
|
}
|
|
@@ -7907,9 +8239,9 @@ var Layer = function (id, painter, dpr) {
|
|
|
7907
8239
|
dom = createDom(id, painter, dpr);
|
|
7908
8240
|
} // Not using isDom because in node it will return false
|
|
7909
8241
|
else if (util$2.isObject(id)) {
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
8242
|
+
dom = id;
|
|
8243
|
+
id = dom.id;
|
|
8244
|
+
}
|
|
7913
8245
|
|
|
7914
8246
|
this.id = id;
|
|
7915
8247
|
this.dom = dom;
|
|
@@ -8057,8 +8389,8 @@ Layer.prototype = {
|
|
|
8057
8389
|
clearColor.__canvasGradient = clearColorGradientOrPattern;
|
|
8058
8390
|
} // Pattern
|
|
8059
8391
|
else if (clearColor.image) {
|
|
8060
|
-
|
|
8061
|
-
|
|
8392
|
+
clearColorGradientOrPattern = Pattern_1.prototype.getCanvasPattern.call(clearColor, ctx);
|
|
8393
|
+
}
|
|
8062
8394
|
|
|
8063
8395
|
ctx.save();
|
|
8064
8396
|
ctx.fillStyle = clearColorGradientOrPattern || clearColor;
|
|
@@ -8146,8 +8478,8 @@ function createOrUpdateImage(newImageOrSrc, image, hostEl, cb, cbPayload) {
|
|
|
8146
8478
|
return image;
|
|
8147
8479
|
} // newImageOrSrc is an HTMLImageElement or HTMLCanvasElement or Canvas
|
|
8148
8480
|
else {
|
|
8149
|
-
|
|
8150
|
-
|
|
8481
|
+
return newImageOrSrc;
|
|
8482
|
+
}
|
|
8151
8483
|
}
|
|
8152
8484
|
|
|
8153
8485
|
function imageOnLoad() {
|
|
@@ -8861,11 +9193,11 @@ function pushTokens(block, str, styleName) {
|
|
|
8861
9193
|
(text || !tokensLen || isEmptyStr) && tokens.push(token);
|
|
8862
9194
|
} // Other tokens always start a new line.
|
|
8863
9195
|
else {
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
9196
|
+
// If there is '', insert it as a placeholder.
|
|
9197
|
+
lines.push({
|
|
9198
|
+
tokens: [token]
|
|
9199
|
+
});
|
|
9200
|
+
}
|
|
8869
9201
|
}
|
|
8870
9202
|
}
|
|
8871
9203
|
|
|
@@ -9104,8 +9436,8 @@ function renderPlainText(hostEl, ctx, text, style, rect, prevEl) {
|
|
|
9104
9436
|
} // Since this will be restored, prevent from using these props to check cache in the next
|
|
9105
9437
|
// entering of this method. But do not need to clear other cache like `Style::bind`.
|
|
9106
9438
|
else if (cachedByMe) {
|
|
9107
|
-
|
|
9108
|
-
|
|
9439
|
+
ctx.__attrCachedBy = ContextCachedBy$1.NONE;
|
|
9440
|
+
}
|
|
9109
9441
|
|
|
9110
9442
|
var styleFont = style.font || DEFAULT_FONT; // PENDING
|
|
9111
9443
|
// Only `Text` el set `font` and keep it (`RectText` will restore). So theoretically
|
|
@@ -9560,11 +9892,11 @@ var text = {
|
|
|
9560
9892
|
};
|
|
9561
9893
|
|
|
9562
9894
|
var WILL_BE_RESTORED = constant.WILL_BE_RESTORED;
|
|
9563
|
-
|
|
9564
9895
|
/**
|
|
9565
9896
|
* Mixin for drawing text in a element bounding rect
|
|
9566
9897
|
* @module zrender/mixin/RectText
|
|
9567
9898
|
*/
|
|
9899
|
+
|
|
9568
9900
|
var tmpRect$1 = new BoundingRect_1$1();
|
|
9569
9901
|
|
|
9570
9902
|
var RectText = function () {};
|
|
@@ -9626,6 +9958,8 @@ var RectText_1 = _default$1g;
|
|
|
9626
9958
|
* @extends module:zrender/Element
|
|
9627
9959
|
* @extends module:zrender/graphic/mixin/RectText
|
|
9628
9960
|
*/
|
|
9961
|
+
|
|
9962
|
+
|
|
9629
9963
|
function Displayable(opts) {
|
|
9630
9964
|
opts = opts || {};
|
|
9631
9965
|
Element_1.call(this, opts); // Extend properties
|
|
@@ -9892,6 +10226,8 @@ var Displayable_1 = _default$1f;
|
|
|
9892
10226
|
* @constructor
|
|
9893
10227
|
* @param {Object} opts
|
|
9894
10228
|
*/
|
|
10229
|
+
|
|
10230
|
+
|
|
9895
10231
|
function ZImage(opts) {
|
|
9896
10232
|
Displayable_1.call(this, opts);
|
|
9897
10233
|
}
|
|
@@ -10514,8 +10850,8 @@ Painter.prototype = {
|
|
|
10514
10850
|
util$2.merge(layer, this._layerConfig[zlevel], true);
|
|
10515
10851
|
} // TODO Remove EL_AFTER_INCREMENTAL_INC magic number
|
|
10516
10852
|
else if (this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC]) {
|
|
10517
|
-
|
|
10518
|
-
|
|
10853
|
+
util$2.merge(layer, this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC], true);
|
|
10854
|
+
}
|
|
10519
10855
|
|
|
10520
10856
|
if (virtual) {
|
|
10521
10857
|
layer.virtual = virtual;
|
|
@@ -11008,7 +11344,6 @@ var Dispatcher = event.Dispatcher;
|
|
|
11008
11344
|
|
|
11009
11345
|
|
|
11010
11346
|
|
|
11011
|
-
|
|
11012
11347
|
/**
|
|
11013
11348
|
* Animation main class, dispatch and manage all animation controllers
|
|
11014
11349
|
*
|
|
@@ -11047,6 +11382,8 @@ var Dispatcher = event.Dispatcher;
|
|
|
11047
11382
|
* })
|
|
11048
11383
|
* .start('spline');
|
|
11049
11384
|
*/
|
|
11385
|
+
|
|
11386
|
+
|
|
11050
11387
|
var Animation = function (options) {
|
|
11051
11388
|
options = options || {};
|
|
11052
11389
|
this.stage = options.stage || {};
|
|
@@ -11257,8 +11594,9 @@ var getNativeEvent = event.getNativeEvent;
|
|
|
11257
11594
|
|
|
11258
11595
|
|
|
11259
11596
|
|
|
11260
|
-
|
|
11261
11597
|
/* global document */
|
|
11598
|
+
|
|
11599
|
+
|
|
11262
11600
|
var TOUCH_CLICK_DELAY = 300;
|
|
11263
11601
|
var globalEventSupported = env_1.domSupported;
|
|
11264
11602
|
|
|
@@ -11629,8 +11967,8 @@ function mountGlobalDOMEventListeners(instance, scope) {
|
|
|
11629
11967
|
// We do not consider "both-support-touch-and-mouse device" for this feature (see the comment of
|
|
11630
11968
|
// `mountLocalDOMEventListeners`) to avoid bugs util some requirements come.
|
|
11631
11969
|
else if (!env_1.touchEventsSupported) {
|
|
11632
|
-
|
|
11633
|
-
|
|
11970
|
+
util$2.each(globalNativeListenerNames.mouse, mount);
|
|
11971
|
+
}
|
|
11634
11972
|
|
|
11635
11973
|
function mount(nativeEventName) {
|
|
11636
11974
|
function nativeEventListener(event) {
|
|
@@ -11760,6 +12098,8 @@ var HandlerProxy = _default$1b;
|
|
|
11760
12098
|
* LICENSE
|
|
11761
12099
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
11762
12100
|
*/
|
|
12101
|
+
|
|
12102
|
+
|
|
11763
12103
|
var useVML = !env_1.canvasSupported;
|
|
11764
12104
|
var painterCtors = {
|
|
11765
12105
|
canvas: Painter_1
|
|
@@ -12217,8 +12557,6 @@ var zrender = {
|
|
|
12217
12557
|
|
|
12218
12558
|
|
|
12219
12559
|
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
12560
|
/*
|
|
12223
12561
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
12224
12562
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -12237,6 +12575,8 @@ var zrender = {
|
|
|
12237
12575
|
* specific language governing permissions and limitations
|
|
12238
12576
|
* under the License.
|
|
12239
12577
|
*/
|
|
12578
|
+
|
|
12579
|
+
|
|
12240
12580
|
var each$h = util$2.each;
|
|
12241
12581
|
var isObject$9 = util$2.isObject;
|
|
12242
12582
|
var isArray$6 = util$2.isArray;
|
|
@@ -12781,6 +13121,8 @@ var model = {
|
|
|
12781
13121
|
* specific language governing permissions and limitations
|
|
12782
13122
|
* under the License.
|
|
12783
13123
|
*/
|
|
13124
|
+
|
|
13125
|
+
|
|
12784
13126
|
var TYPE_DELIMITER = '.';
|
|
12785
13127
|
var IS_CONTAINER = '___EC__COMPONENT__CONTAINER___';
|
|
12786
13128
|
/**
|
|
@@ -13046,8 +13388,6 @@ var clazz = {
|
|
|
13046
13388
|
* under the License.
|
|
13047
13389
|
*/
|
|
13048
13390
|
|
|
13049
|
-
|
|
13050
|
-
|
|
13051
13391
|
/*
|
|
13052
13392
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
13053
13393
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -13068,6 +13408,8 @@ var clazz = {
|
|
|
13068
13408
|
*/
|
|
13069
13409
|
// TODO Parse shadow style
|
|
13070
13410
|
// TODO Only shallow path support
|
|
13411
|
+
|
|
13412
|
+
|
|
13071
13413
|
function _default$1a(properties) {
|
|
13072
13414
|
// Normalize
|
|
13073
13415
|
for (var i = 0; i < properties.length; i++) {
|
|
@@ -13118,8 +13460,6 @@ var makeStyleMapper = _default$1a;
|
|
|
13118
13460
|
* under the License.
|
|
13119
13461
|
*/
|
|
13120
13462
|
|
|
13121
|
-
|
|
13122
|
-
|
|
13123
13463
|
/*
|
|
13124
13464
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
13125
13465
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -13138,6 +13478,8 @@ var makeStyleMapper = _default$1a;
|
|
|
13138
13478
|
* specific language governing permissions and limitations
|
|
13139
13479
|
* under the License.
|
|
13140
13480
|
*/
|
|
13481
|
+
|
|
13482
|
+
|
|
13141
13483
|
var getLineStyle = makeStyleMapper([['lineWidth', 'width'], ['stroke', 'color'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor']]);
|
|
13142
13484
|
var _default$19 = {
|
|
13143
13485
|
getLineStyle: function (excludes) {
|
|
@@ -13184,8 +13526,6 @@ var lineStyle = _default$19;
|
|
|
13184
13526
|
* under the License.
|
|
13185
13527
|
*/
|
|
13186
13528
|
|
|
13187
|
-
|
|
13188
|
-
|
|
13189
13529
|
/*
|
|
13190
13530
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
13191
13531
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -13204,6 +13544,8 @@ var lineStyle = _default$19;
|
|
|
13204
13544
|
* specific language governing permissions and limitations
|
|
13205
13545
|
* under the License.
|
|
13206
13546
|
*/
|
|
13547
|
+
|
|
13548
|
+
|
|
13207
13549
|
var getAreaStyle = makeStyleMapper([['fill', 'color'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['opacity'], ['shadowColor']]);
|
|
13208
13550
|
var _default$18 = {
|
|
13209
13551
|
getAreaStyle: function (excludes, includes) {
|
|
@@ -13214,12 +13556,12 @@ var areaStyle = _default$18;
|
|
|
13214
13556
|
|
|
13215
13557
|
var v2Create = vector.create;
|
|
13216
13558
|
var v2DistSquare = vector.distSquare;
|
|
13217
|
-
|
|
13218
13559
|
/**
|
|
13219
13560
|
* 曲线辅助模块
|
|
13220
13561
|
* @module zrender/core/curve
|
|
13221
13562
|
* @author pissang(https://www.github.com/pissang)
|
|
13222
13563
|
*/
|
|
13564
|
+
|
|
13223
13565
|
var mathPow$1 = Math.pow;
|
|
13224
13566
|
var mathSqrt$3 = Math.sqrt;
|
|
13225
13567
|
var EPSILON$2 = 1e-8;
|
|
@@ -13761,6 +14103,8 @@ var curve = {
|
|
|
13761
14103
|
/**
|
|
13762
14104
|
* @author Yi Shen(https://github.com/pissang)
|
|
13763
14105
|
*/
|
|
14106
|
+
|
|
14107
|
+
|
|
13764
14108
|
var mathMin$2 = Math.min;
|
|
13765
14109
|
var mathMax$2 = Math.max;
|
|
13766
14110
|
var mathSin$2 = Math.sin;
|
|
@@ -13985,7 +14329,6 @@ var bbox = {
|
|
|
13985
14329
|
};
|
|
13986
14330
|
|
|
13987
14331
|
var dpr = config.devicePixelRatio;
|
|
13988
|
-
|
|
13989
14332
|
/**
|
|
13990
14333
|
* Path 代理,可以在`buildPath`中用于替代`ctx`, 会保存每个path操作的命令到pathCommands属性中
|
|
13991
14334
|
* 可以用于 isInsidePath 判断以及获取boundingRect
|
|
@@ -13996,6 +14339,7 @@ var dpr = config.devicePixelRatio;
|
|
|
13996
14339
|
// TODO getTotalLength, getPointAtLength
|
|
13997
14340
|
|
|
13998
14341
|
/* global Float32Array */
|
|
14342
|
+
|
|
13999
14343
|
var CMD$2 = {
|
|
14000
14344
|
M: 1,
|
|
14001
14345
|
L: 2,
|
|
@@ -14804,6 +15148,8 @@ var line = {
|
|
|
14804
15148
|
* @param {number} y
|
|
14805
15149
|
* @return {boolean}
|
|
14806
15150
|
*/
|
|
15151
|
+
|
|
15152
|
+
|
|
14807
15153
|
function containStroke$3(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
|
|
14808
15154
|
if (lineWidth === 0) {
|
|
14809
15155
|
return false;
|
|
@@ -14826,7 +15172,6 @@ var cubic = {
|
|
|
14826
15172
|
};
|
|
14827
15173
|
|
|
14828
15174
|
var quadraticProjectPoint = curve.quadraticProjectPoint;
|
|
14829
|
-
|
|
14830
15175
|
/**
|
|
14831
15176
|
* 二次贝塞尔曲线描边包含判断
|
|
14832
15177
|
* @param {number} x0
|
|
@@ -14840,6 +15185,7 @@ var quadraticProjectPoint = curve.quadraticProjectPoint;
|
|
|
14840
15185
|
* @param {number} y
|
|
14841
15186
|
* @return {boolean}
|
|
14842
15187
|
*/
|
|
15188
|
+
|
|
14843
15189
|
function containStroke$2(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
|
|
14844
15190
|
if (lineWidth === 0) {
|
|
14845
15191
|
return false;
|
|
@@ -15827,6 +16173,8 @@ var transformPath = _default$15;
|
|
|
15827
16173
|
// 'm', 'M', 'l', 'L', 'v', 'V', 'h', 'H', 'z', 'Z',
|
|
15828
16174
|
// 'c', 'C', 'q', 'Q', 't', 'T', 's', 'S', 'a', 'A'
|
|
15829
16175
|
// ];
|
|
16176
|
+
|
|
16177
|
+
|
|
15830
16178
|
var mathSqrt = Math.sqrt;
|
|
15831
16179
|
var mathSin = Math.sin;
|
|
15832
16180
|
var mathCos = Math.cos;
|
|
@@ -16264,13 +16612,13 @@ var path = {
|
|
|
16264
16612
|
};
|
|
16265
16613
|
|
|
16266
16614
|
var ContextCachedBy = constant.ContextCachedBy;
|
|
16267
|
-
|
|
16268
16615
|
/**
|
|
16269
16616
|
* @alias zrender/graphic/Text
|
|
16270
16617
|
* @extends module:zrender/graphic/Displayable
|
|
16271
16618
|
* @constructor
|
|
16272
16619
|
* @param {Object} opts
|
|
16273
16620
|
*/
|
|
16621
|
+
|
|
16274
16622
|
var Text = function (opts) {
|
|
16275
16623
|
// jshint ignore:line
|
|
16276
16624
|
Displayable_1.call(this, opts);
|
|
@@ -16336,6 +16684,8 @@ var Text_1$1 = _default$14;
|
|
|
16336
16684
|
* 圆形
|
|
16337
16685
|
* @module zrender/shape/Circle
|
|
16338
16686
|
*/
|
|
16687
|
+
|
|
16688
|
+
|
|
16339
16689
|
var _default$13 = Path_1.extend({
|
|
16340
16690
|
type: 'circle',
|
|
16341
16691
|
shape: {
|
|
@@ -16377,6 +16727,8 @@ var Circle = _default$13;
|
|
|
16377
16727
|
// ...
|
|
16378
16728
|
// ctx.fill();
|
|
16379
16729
|
// )
|
|
16730
|
+
|
|
16731
|
+
|
|
16380
16732
|
var shadowTemp = [['shadowBlur', 0], ['shadowColor', '#000'], ['shadowOffsetX', 0], ['shadowOffsetY', 0]];
|
|
16381
16733
|
|
|
16382
16734
|
function _default$12(orignalBrush) {
|
|
@@ -16422,6 +16774,8 @@ var fixClipWithShadow = _default$12;
|
|
|
16422
16774
|
* 扇形
|
|
16423
16775
|
* @module zrender/graphic/shape/Sector
|
|
16424
16776
|
*/
|
|
16777
|
+
|
|
16778
|
+
|
|
16425
16779
|
var _default$11 = Path_1.extend({
|
|
16426
16780
|
type: 'sector',
|
|
16427
16781
|
shape: {
|
|
@@ -16463,6 +16817,8 @@ var Sector = _default$11;
|
|
|
16463
16817
|
* 圆环
|
|
16464
16818
|
* @module zrender/graphic/shape/Ring
|
|
16465
16819
|
*/
|
|
16820
|
+
|
|
16821
|
+
|
|
16466
16822
|
var _default$10 = Path_1.extend({
|
|
16467
16823
|
type: 'ring',
|
|
16468
16824
|
shape: {
|
|
@@ -16485,7 +16841,6 @@ var _default$10 = Path_1.extend({
|
|
|
16485
16841
|
var Ring = _default$10;
|
|
16486
16842
|
|
|
16487
16843
|
var v2Distance$1 = vector.distance;
|
|
16488
|
-
|
|
16489
16844
|
/**
|
|
16490
16845
|
* Catmull-Rom spline 插值折线
|
|
16491
16846
|
* @module zrender/shape/util/smoothSpline
|
|
@@ -16497,6 +16852,7 @@ var v2Distance$1 = vector.distance;
|
|
|
16497
16852
|
/**
|
|
16498
16853
|
* @inner
|
|
16499
16854
|
*/
|
|
16855
|
+
|
|
16500
16856
|
function interpolate(p0, p1, p2, p3, t, t2, t3) {
|
|
16501
16857
|
var v0 = (p2 - p0) * 0.5;
|
|
16502
16858
|
var v1 = (p3 - p1) * 0.5;
|
|
@@ -16558,7 +16914,6 @@ var v2Distance = vector.distance;
|
|
|
16558
16914
|
var v2Add = vector.add;
|
|
16559
16915
|
var v2Clone = vector.clone;
|
|
16560
16916
|
var v2Sub = vector.sub;
|
|
16561
|
-
|
|
16562
16917
|
/**
|
|
16563
16918
|
* 贝塞尔平滑曲线
|
|
16564
16919
|
* @module zrender/shape/util/smoothBezier
|
|
@@ -16578,6 +16933,7 @@ var v2Sub = vector.sub;
|
|
|
16578
16933
|
* 整个折线的包围盒做一个并集用来约束控制点。
|
|
16579
16934
|
* @param {Array} 计算出来的控制点数组
|
|
16580
16935
|
*/
|
|
16936
|
+
|
|
16581
16937
|
function _default$_(points, smooth, isLoop, constraint) {
|
|
16582
16938
|
var cps = [];
|
|
16583
16939
|
var v = [];
|
|
@@ -16697,6 +17053,8 @@ var poly = {
|
|
|
16697
17053
|
* 多边形
|
|
16698
17054
|
* @module zrender/shape/Polygon
|
|
16699
17055
|
*/
|
|
17056
|
+
|
|
17057
|
+
|
|
16700
17058
|
var _default$Z = Path_1.extend({
|
|
16701
17059
|
type: 'polygon',
|
|
16702
17060
|
shape: {
|
|
@@ -16714,6 +17072,8 @@ var Polygon = _default$Z;
|
|
|
16714
17072
|
/**
|
|
16715
17073
|
* @module zrender/graphic/shape/Polyline
|
|
16716
17074
|
*/
|
|
17075
|
+
|
|
17076
|
+
|
|
16717
17077
|
var _default$Y = Path_1.extend({
|
|
16718
17078
|
type: 'polyline',
|
|
16719
17079
|
shape: {
|
|
@@ -16853,12 +17213,12 @@ var subPixelOptimize_1$1 = {
|
|
|
16853
17213
|
};
|
|
16854
17214
|
|
|
16855
17215
|
var subPixelOptimizeRect$1 = subPixelOptimize_1$1.subPixelOptimizeRect;
|
|
16856
|
-
|
|
16857
17216
|
/**
|
|
16858
17217
|
* 矩形
|
|
16859
17218
|
* @module zrender/graphic/shape/Rect
|
|
16860
17219
|
*/
|
|
16861
17220
|
// Avoid create repeatly.
|
|
17221
|
+
|
|
16862
17222
|
var subPixelOptimizeOutputShape$1 = {};
|
|
16863
17223
|
|
|
16864
17224
|
var _default$X = Path_1.extend({
|
|
@@ -16910,12 +17270,12 @@ var _default$X = Path_1.extend({
|
|
|
16910
17270
|
var Rect = _default$X;
|
|
16911
17271
|
|
|
16912
17272
|
var subPixelOptimizeLine$1 = subPixelOptimize_1$1.subPixelOptimizeLine;
|
|
16913
|
-
|
|
16914
17273
|
/**
|
|
16915
17274
|
* 直线
|
|
16916
17275
|
* @module zrender/graphic/shape/Line
|
|
16917
17276
|
*/
|
|
16918
17277
|
// Avoid create repeatly.
|
|
17278
|
+
|
|
16919
17279
|
var subPixelOptimizeOutputShape = {};
|
|
16920
17280
|
|
|
16921
17281
|
var _default$W = Path_1.extend({
|
|
@@ -16987,11 +17347,11 @@ var quadraticAt = curve.quadraticAt;
|
|
|
16987
17347
|
var cubicAt = curve.cubicAt;
|
|
16988
17348
|
var quadraticDerivativeAt = curve.quadraticDerivativeAt;
|
|
16989
17349
|
var cubicDerivativeAt = curve.cubicDerivativeAt;
|
|
16990
|
-
|
|
16991
17350
|
/**
|
|
16992
17351
|
* 贝塞尔曲线
|
|
16993
17352
|
* @module zrender/shape/BezierCurve
|
|
16994
17353
|
*/
|
|
17354
|
+
|
|
16995
17355
|
var out = [];
|
|
16996
17356
|
|
|
16997
17357
|
function someVectorAt(shape, t, isTangent) {
|
|
@@ -17093,6 +17453,8 @@ var BezierCurve = _default$V;
|
|
|
17093
17453
|
* 圆弧
|
|
17094
17454
|
* @module zrender/graphic/shape/Arc
|
|
17095
17455
|
*/
|
|
17456
|
+
|
|
17457
|
+
|
|
17096
17458
|
var _default$U = Path_1.extend({
|
|
17097
17459
|
type: 'arc',
|
|
17098
17460
|
shape: {
|
|
@@ -17124,6 +17486,8 @@ var _default$U = Path_1.extend({
|
|
|
17124
17486
|
var Arc = _default$U;
|
|
17125
17487
|
|
|
17126
17488
|
// CompoundPath to improve performance
|
|
17489
|
+
|
|
17490
|
+
|
|
17127
17491
|
var _default$T = Path_1.extend({
|
|
17128
17492
|
type: 'compound',
|
|
17129
17493
|
shape: {
|
|
@@ -17206,6 +17570,8 @@ var Gradient_1 = _default$S;
|
|
|
17206
17570
|
* @param {Array.<Object>} colorStops
|
|
17207
17571
|
* @param {boolean} [globalCoord=false]
|
|
17208
17572
|
*/
|
|
17573
|
+
|
|
17574
|
+
|
|
17209
17575
|
var LinearGradient = function (x, y, x2, y2, colorStops, globalCoord) {
|
|
17210
17576
|
// Should do nothing more in this constructor. Because gradient can be
|
|
17211
17577
|
// declard by `color: {type: 'linear', colorStops: ...}`, where
|
|
@@ -17236,6 +17602,8 @@ var LinearGradient_1$1 = _default$R;
|
|
|
17236
17602
|
* @param {Array.<Object>} [colorStops]
|
|
17237
17603
|
* @param {boolean} [globalCoord=false]
|
|
17238
17604
|
*/
|
|
17605
|
+
|
|
17606
|
+
|
|
17239
17607
|
var RadialGradient = function (x, y, r, colorStops, globalCoord) {
|
|
17240
17608
|
// Should do nothing more in this constructor. Because gradient can be
|
|
17241
17609
|
// declard by `color: {type: 'radial', colorStops: ...}`, where
|
|
@@ -17262,7 +17630,6 @@ var inherits = util$2.inherits;
|
|
|
17262
17630
|
|
|
17263
17631
|
|
|
17264
17632
|
|
|
17265
|
-
|
|
17266
17633
|
/**
|
|
17267
17634
|
* Displayable for incremental rendering. It will be rendered in a separate layer
|
|
17268
17635
|
* IncrementalDisplay have two main methods. `clearDisplayables` and `addDisplayables`
|
|
@@ -17271,6 +17638,8 @@ var inherits = util$2.inherits;
|
|
|
17271
17638
|
* It use a not clearFlag to tell the painter don't clear the layer if it's the first element.
|
|
17272
17639
|
*/
|
|
17273
17640
|
// TODO Style override ?
|
|
17641
|
+
|
|
17642
|
+
|
|
17274
17643
|
function IncrementalDisplayble(opts) {
|
|
17275
17644
|
Displayable_1.call(this, opts);
|
|
17276
17645
|
this._displayables = [];
|
|
@@ -17437,7 +17806,6 @@ var IncrementalDisplayable = _default$P;
|
|
|
17437
17806
|
|
|
17438
17807
|
|
|
17439
17808
|
|
|
17440
|
-
|
|
17441
17809
|
var Image$1 = Image$2;
|
|
17442
17810
|
|
|
17443
17811
|
|
|
@@ -17505,7 +17873,6 @@ var BoundingRect_1 = BoundingRect_1$1;
|
|
|
17505
17873
|
var IncrementalDisplayable_1 = IncrementalDisplayable;
|
|
17506
17874
|
|
|
17507
17875
|
|
|
17508
|
-
|
|
17509
17876
|
/*
|
|
17510
17877
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
17511
17878
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -17524,6 +17891,8 @@ var IncrementalDisplayable_1 = IncrementalDisplayable;
|
|
|
17524
17891
|
* specific language governing permissions and limitations
|
|
17525
17892
|
* under the License.
|
|
17526
17893
|
*/
|
|
17894
|
+
|
|
17895
|
+
|
|
17527
17896
|
var mathMax = Math.max;
|
|
17528
17897
|
var mathMin = Math.min;
|
|
17529
17898
|
var EMPTY_OBJ = {};
|
|
@@ -19005,8 +19374,6 @@ var graphic$1 = {
|
|
|
19005
19374
|
|
|
19006
19375
|
|
|
19007
19376
|
|
|
19008
|
-
|
|
19009
|
-
|
|
19010
19377
|
/*
|
|
19011
19378
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
19012
19379
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -19025,6 +19392,8 @@ var graphic$1 = {
|
|
|
19025
19392
|
* specific language governing permissions and limitations
|
|
19026
19393
|
* under the License.
|
|
19027
19394
|
*/
|
|
19395
|
+
|
|
19396
|
+
|
|
19028
19397
|
var PATH_COLOR = ['textStyle', 'color'];
|
|
19029
19398
|
var _default$O = {
|
|
19030
19399
|
/**
|
|
@@ -19074,8 +19443,6 @@ var textStyle = _default$O;
|
|
|
19074
19443
|
* under the License.
|
|
19075
19444
|
*/
|
|
19076
19445
|
|
|
19077
|
-
|
|
19078
|
-
|
|
19079
19446
|
/*
|
|
19080
19447
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
19081
19448
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -19094,6 +19461,8 @@ var textStyle = _default$O;
|
|
|
19094
19461
|
* specific language governing permissions and limitations
|
|
19095
19462
|
* under the License.
|
|
19096
19463
|
*/
|
|
19464
|
+
|
|
19465
|
+
|
|
19097
19466
|
var getItemStyle = makeStyleMapper([['fill', 'color'], ['stroke', 'borderColor'], ['lineWidth', 'borderWidth'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'], ['textPosition'], ['textAlign']]);
|
|
19098
19467
|
var _default$N = {
|
|
19099
19468
|
getItemStyle: function (excludes, includes) {
|
|
@@ -19133,7 +19502,6 @@ var itemStyle = _default$N;
|
|
|
19133
19502
|
|
|
19134
19503
|
|
|
19135
19504
|
|
|
19136
|
-
|
|
19137
19505
|
var makeInner$5 = model.makeInner;
|
|
19138
19506
|
|
|
19139
19507
|
|
|
@@ -19148,7 +19516,6 @@ var enableClassCheck$1 = clazz.enableClassCheck;
|
|
|
19148
19516
|
|
|
19149
19517
|
|
|
19150
19518
|
|
|
19151
|
-
|
|
19152
19519
|
/*
|
|
19153
19520
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
19154
19521
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -19171,6 +19538,8 @@ var enableClassCheck$1 = clazz.enableClassCheck;
|
|
|
19171
19538
|
/**
|
|
19172
19539
|
* @module echarts/model/Model
|
|
19173
19540
|
*/
|
|
19541
|
+
|
|
19542
|
+
|
|
19174
19543
|
var mixin$1 = util$2.mixin;
|
|
19175
19544
|
var inner$6 = makeInner$5();
|
|
19176
19545
|
/**
|
|
@@ -19369,9 +19738,7 @@ var Model_1 = _default$M;
|
|
|
19369
19738
|
|
|
19370
19739
|
|
|
19371
19740
|
|
|
19372
|
-
|
|
19373
19741
|
var parseClassType$1 = clazz.parseClassType;
|
|
19374
|
-
|
|
19375
19742
|
/*
|
|
19376
19743
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
19377
19744
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -19390,6 +19757,7 @@ var parseClassType$1 = clazz.parseClassType;
|
|
|
19390
19757
|
* specific language governing permissions and limitations
|
|
19391
19758
|
* under the License.
|
|
19392
19759
|
*/
|
|
19760
|
+
|
|
19393
19761
|
var base = 0;
|
|
19394
19762
|
/**
|
|
19395
19763
|
* @public
|
|
@@ -19591,8 +19959,6 @@ var component = {
|
|
|
19591
19959
|
* under the License.
|
|
19592
19960
|
*/
|
|
19593
19961
|
|
|
19594
|
-
|
|
19595
|
-
|
|
19596
19962
|
/*
|
|
19597
19963
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
19598
19964
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -19620,6 +19986,8 @@ var component = {
|
|
|
19620
19986
|
* and consitions of the license of "d3.js" (BSD-3Clause, see
|
|
19621
19987
|
* </licenses/LICENSE-d3>).
|
|
19622
19988
|
*/
|
|
19989
|
+
|
|
19990
|
+
|
|
19623
19991
|
var RADIAN_EPSILON = 1e-4;
|
|
19624
19992
|
|
|
19625
19993
|
function _trim(str) {
|
|
@@ -19949,14 +20317,14 @@ function parseDate$1(value) {
|
|
|
19949
20317
|
// `new Date(1478412000000).getTimezoneOffset(); // get 300`
|
|
19950
20318
|
// So we should not use `new Date`, but use `Date.UTC`.
|
|
19951
20319
|
else {
|
|
19952
|
-
|
|
19953
|
-
|
|
19954
|
-
if (match[8].toUpperCase() !== 'Z') {
|
|
19955
|
-
hour -= match[8].slice(0, 3);
|
|
19956
|
-
}
|
|
20320
|
+
var hour = +match[4] || 0;
|
|
19957
20321
|
|
|
19958
|
-
|
|
20322
|
+
if (match[8].toUpperCase() !== 'Z') {
|
|
20323
|
+
hour -= match[8].slice(0, 3);
|
|
19959
20324
|
}
|
|
20325
|
+
|
|
20326
|
+
return new Date(Date.UTC(+match[1], +(match[2] || 1) - 1, +match[3] || 1, hour, +(match[5] || 0), +match[6] || 0, +match[7] || 0));
|
|
20327
|
+
}
|
|
19960
20328
|
} else if (value == null) {
|
|
19961
20329
|
return new Date(NaN);
|
|
19962
20330
|
}
|
|
@@ -20202,8 +20570,6 @@ var number$1 = {
|
|
|
20202
20570
|
|
|
20203
20571
|
|
|
20204
20572
|
|
|
20205
|
-
|
|
20206
|
-
|
|
20207
20573
|
/*
|
|
20208
20574
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
20209
20575
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -20229,6 +20595,8 @@ var number$1 = {
|
|
|
20229
20595
|
* @param {string|number} x
|
|
20230
20596
|
* @return {string}
|
|
20231
20597
|
*/
|
|
20598
|
+
|
|
20599
|
+
|
|
20232
20600
|
function addCommas$1(x) {
|
|
20233
20601
|
if (isNaN(x)) {
|
|
20234
20602
|
return '-';
|
|
@@ -20512,11 +20880,9 @@ var format$1 = {
|
|
|
20512
20880
|
|
|
20513
20881
|
|
|
20514
20882
|
|
|
20515
|
-
|
|
20516
20883
|
var parsePercent$3 = number$1.parsePercent;
|
|
20517
20884
|
|
|
20518
20885
|
|
|
20519
|
-
|
|
20520
20886
|
/*
|
|
20521
20887
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
20522
20888
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -20536,6 +20902,8 @@ var parsePercent$3 = number$1.parsePercent;
|
|
|
20536
20902
|
* under the License.
|
|
20537
20903
|
*/
|
|
20538
20904
|
// Layout helpers for each component positioning
|
|
20905
|
+
|
|
20906
|
+
|
|
20539
20907
|
var each$g = util$2.each;
|
|
20540
20908
|
/**
|
|
20541
20909
|
* @public
|
|
@@ -20944,20 +21312,20 @@ function mergeLayoutParam$1(targetOption, newOption, opt) {
|
|
|
20944
21312
|
// Than we can make sure user only want those two, and ignore
|
|
20945
21313
|
// all origin params in targetOption.
|
|
20946
21314
|
else if (newValueCount >= enoughParamNumber) {
|
|
20947
|
-
|
|
20948
|
-
|
|
20949
|
-
|
|
20950
|
-
|
|
20951
|
-
|
|
21315
|
+
return newParams;
|
|
21316
|
+
} else {
|
|
21317
|
+
// Chose another param from targetOption by priority.
|
|
21318
|
+
for (var i = 0; i < names.length; i++) {
|
|
21319
|
+
var name = names[i];
|
|
20952
21320
|
|
|
20953
|
-
|
|
20954
|
-
|
|
20955
|
-
|
|
20956
|
-
}
|
|
21321
|
+
if (!hasProp(newParams, name) && hasProp(targetOption, name)) {
|
|
21322
|
+
newParams[name] = targetOption[name];
|
|
21323
|
+
break;
|
|
20957
21324
|
}
|
|
20958
|
-
|
|
20959
|
-
return newParams;
|
|
20960
21325
|
}
|
|
21326
|
+
|
|
21327
|
+
return newParams;
|
|
21328
|
+
}
|
|
20961
21329
|
}
|
|
20962
21330
|
|
|
20963
21331
|
function hasProp(obj, name) {
|
|
@@ -21103,7 +21471,6 @@ var boxLayout = _default$L;
|
|
|
21103
21471
|
|
|
21104
21472
|
|
|
21105
21473
|
|
|
21106
|
-
|
|
21107
21474
|
var enableClassManagement = clazz.enableClassManagement;
|
|
21108
21475
|
var parseClassType = clazz.parseClassType;
|
|
21109
21476
|
|
|
@@ -21114,7 +21481,6 @@ var makeInner$4 = model.makeInner;
|
|
|
21114
21481
|
|
|
21115
21482
|
|
|
21116
21483
|
|
|
21117
|
-
|
|
21118
21484
|
/*
|
|
21119
21485
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
21120
21486
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -21139,6 +21505,8 @@ var makeInner$4 = model.makeInner;
|
|
|
21139
21505
|
*
|
|
21140
21506
|
* @module echarts/model/Component
|
|
21141
21507
|
*/
|
|
21508
|
+
|
|
21509
|
+
|
|
21142
21510
|
var inner$5 = makeInner$4();
|
|
21143
21511
|
/**
|
|
21144
21512
|
* @alias module:echarts/model/Component
|
|
@@ -21430,10 +21798,8 @@ var globalDefault = _default$J;
|
|
|
21430
21798
|
*/
|
|
21431
21799
|
|
|
21432
21800
|
|
|
21433
|
-
|
|
21434
21801
|
var makeInner$3 = model.makeInner;
|
|
21435
21802
|
var normalizeToArray$3 = model.normalizeToArray;
|
|
21436
|
-
|
|
21437
21803
|
/*
|
|
21438
21804
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
21439
21805
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -21452,6 +21818,7 @@ var normalizeToArray$3 = model.normalizeToArray;
|
|
|
21452
21818
|
* specific language governing permissions and limitations
|
|
21453
21819
|
* under the License.
|
|
21454
21820
|
*/
|
|
21821
|
+
|
|
21455
21822
|
var inner$4 = makeInner$3();
|
|
21456
21823
|
|
|
21457
21824
|
function getNearestColorPalette(colors, requestColorNum) {
|
|
@@ -21598,7 +21965,6 @@ var sourceType = {
|
|
|
21598
21965
|
*/
|
|
21599
21966
|
|
|
21600
21967
|
|
|
21601
|
-
|
|
21602
21968
|
var createHashMap$a = util$2.createHashMap;
|
|
21603
21969
|
var isTypedArray$1 = util$2.isTypedArray;
|
|
21604
21970
|
|
|
@@ -21613,7 +21979,6 @@ var SERIES_LAYOUT_BY_COLUMN$1 = sourceType.SERIES_LAYOUT_BY_COLUMN;
|
|
|
21613
21979
|
var SOURCE_FORMAT_UNKNOWN$1 = sourceType.SOURCE_FORMAT_UNKNOWN;
|
|
21614
21980
|
var SOURCE_FORMAT_TYPED_ARRAY$2 = sourceType.SOURCE_FORMAT_TYPED_ARRAY;
|
|
21615
21981
|
var SOURCE_FORMAT_KEYED_COLUMNS$1 = sourceType.SOURCE_FORMAT_KEYED_COLUMNS;
|
|
21616
|
-
|
|
21617
21982
|
/*
|
|
21618
21983
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
21619
21984
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -21681,6 +22046,7 @@ var SOURCE_FORMAT_KEYED_COLUMNS$1 = sourceType.SOURCE_FORMAT_KEYED_COLUMNS;
|
|
|
21681
22046
|
* @param {number} [startIndex=0]
|
|
21682
22047
|
* @param {number} [dimensionsDetectCount]
|
|
21683
22048
|
*/
|
|
22049
|
+
|
|
21684
22050
|
function Source(fields) {
|
|
21685
22051
|
/**
|
|
21686
22052
|
* @type {boolean}
|
|
@@ -21776,7 +22142,6 @@ var SOURCE_FORMAT_KEYED_COLUMNS = sourceType.SOURCE_FORMAT_KEYED_COLUMNS;
|
|
|
21776
22142
|
var SOURCE_FORMAT_UNKNOWN = sourceType.SOURCE_FORMAT_UNKNOWN;
|
|
21777
22143
|
var SOURCE_FORMAT_TYPED_ARRAY$1 = sourceType.SOURCE_FORMAT_TYPED_ARRAY;
|
|
21778
22144
|
var SERIES_LAYOUT_BY_ROW = sourceType.SERIES_LAYOUT_BY_ROW;
|
|
21779
|
-
|
|
21780
22145
|
/*
|
|
21781
22146
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
21782
22147
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -21796,6 +22161,7 @@ var SERIES_LAYOUT_BY_ROW = sourceType.SERIES_LAYOUT_BY_ROW;
|
|
|
21796
22161
|
* under the License.
|
|
21797
22162
|
*/
|
|
21798
22163
|
// The result of `guessOrdinal`.
|
|
22164
|
+
|
|
21799
22165
|
var BE_ORDINAL$1 = {
|
|
21800
22166
|
Must: 1,
|
|
21801
22167
|
// Encounter string but not '-' and not number-like.
|
|
@@ -22150,15 +22516,15 @@ function makeSeriesEncodeForAxisCoordSys$1(coordDimensions, seriesModel, source)
|
|
|
22150
22516
|
// both dimensions name.
|
|
22151
22517
|
} // In category way, the first category axis.
|
|
22152
22518
|
else if (baseCategoryDimIndex === coordDimIdx) {
|
|
22153
|
-
|
|
22154
|
-
|
|
22155
|
-
|
|
22156
|
-
|
|
22157
|
-
|
|
22158
|
-
|
|
22159
|
-
|
|
22160
|
-
|
|
22161
|
-
|
|
22519
|
+
pushDim(encode[coordDimName], 0, count);
|
|
22520
|
+
pushDim(encodeItemName, 0, count);
|
|
22521
|
+
} // In category way, the other axis.
|
|
22522
|
+
else {
|
|
22523
|
+
var start = datasetRecord.categoryWayDim;
|
|
22524
|
+
pushDim(encode[coordDimName], start, count);
|
|
22525
|
+
pushDim(encodeSeriesName, start, count);
|
|
22526
|
+
datasetRecord.categoryWayDim += count;
|
|
22527
|
+
}
|
|
22162
22528
|
});
|
|
22163
22529
|
|
|
22164
22530
|
function pushDim(dimIdxArr, idxFrom, idxCount) {
|
|
@@ -22452,7 +22818,6 @@ var mixin = util$2.mixin;
|
|
|
22452
22818
|
|
|
22453
22819
|
|
|
22454
22820
|
var resetSourceDefaulter = sourceHelper.resetSourceDefaulter;
|
|
22455
|
-
|
|
22456
22821
|
/*
|
|
22457
22822
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
22458
22823
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -22490,6 +22855,7 @@ var resetSourceDefaulter = sourceHelper.resetSourceDefaulter;
|
|
|
22490
22855
|
* (3) `reset` feature (in toolbox). Find detailed info in comments about
|
|
22491
22856
|
* `mergeOption` in module:echarts/model/OptionManager.
|
|
22492
22857
|
*/
|
|
22858
|
+
|
|
22493
22859
|
var OPTION_INNER_KEY = '\0_ec_inner';
|
|
22494
22860
|
/**
|
|
22495
22861
|
* @alias module:echarts/model/Global
|
|
@@ -23134,8 +23500,6 @@ var Global = _default$G;
|
|
|
23134
23500
|
* under the License.
|
|
23135
23501
|
*/
|
|
23136
23502
|
|
|
23137
|
-
|
|
23138
|
-
|
|
23139
23503
|
/*
|
|
23140
23504
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
23141
23505
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -23154,6 +23518,8 @@ var Global = _default$G;
|
|
|
23154
23518
|
* specific language governing permissions and limitations
|
|
23155
23519
|
* under the License.
|
|
23156
23520
|
*/
|
|
23521
|
+
|
|
23522
|
+
|
|
23157
23523
|
var echartsAPIList = ['getDom', 'getZr', 'getWidth', 'getHeight', 'getDevicePixelRatio', 'dispatchAction', 'isDisposed', 'on', 'off', 'getDataURL', 'getConnectedDataURL', 'getModel', 'getOption', 'getViewOfComponentModel', 'getViewOfSeriesModel']; // And `getCoordinateSystems` and `getComponentByElement` will be injected in echarts.js
|
|
23158
23524
|
|
|
23159
23525
|
function ExtensionAPI(chartInstance) {
|
|
@@ -23184,8 +23550,6 @@ var ExtensionAPI_1 = _default$F;
|
|
|
23184
23550
|
* under the License.
|
|
23185
23551
|
*/
|
|
23186
23552
|
|
|
23187
|
-
|
|
23188
|
-
|
|
23189
23553
|
/*
|
|
23190
23554
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
23191
23555
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -23204,6 +23568,8 @@ var ExtensionAPI_1 = _default$F;
|
|
|
23204
23568
|
* specific language governing permissions and limitations
|
|
23205
23569
|
* under the License.
|
|
23206
23570
|
*/
|
|
23571
|
+
|
|
23572
|
+
|
|
23207
23573
|
var coordinateSystemCreators = {};
|
|
23208
23574
|
|
|
23209
23575
|
function CoordinateSystemManager() {
|
|
@@ -23264,8 +23630,6 @@ var CoordinateSystem = _default$E;
|
|
|
23264
23630
|
|
|
23265
23631
|
|
|
23266
23632
|
|
|
23267
|
-
|
|
23268
|
-
|
|
23269
23633
|
/*
|
|
23270
23634
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
23271
23635
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -23290,6 +23654,8 @@ var CoordinateSystem = _default$E;
|
|
|
23290
23654
|
*
|
|
23291
23655
|
* @module {echarts/model/OptionManager}
|
|
23292
23656
|
*/
|
|
23657
|
+
|
|
23658
|
+
|
|
23293
23659
|
var each$d = util$2.each;
|
|
23294
23660
|
var clone$1 = util$2.clone;
|
|
23295
23661
|
var map$3 = util$2.map;
|
|
@@ -23715,8 +24081,6 @@ var OptionManager_1 = _default$D;
|
|
|
23715
24081
|
|
|
23716
24082
|
|
|
23717
24083
|
|
|
23718
|
-
|
|
23719
|
-
|
|
23720
24084
|
/*
|
|
23721
24085
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
23722
24086
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -23735,6 +24099,8 @@ var OptionManager_1 = _default$D;
|
|
|
23735
24099
|
* specific language governing permissions and limitations
|
|
23736
24100
|
* under the License.
|
|
23737
24101
|
*/
|
|
24102
|
+
|
|
24103
|
+
|
|
23738
24104
|
var each$c = util$2.each;
|
|
23739
24105
|
var isObject$6 = util$2.isObject;
|
|
23740
24106
|
var POSSIBLE_STYLES = ['areaStyle', 'lineStyle', 'nodeStyle', 'linkStyle', 'chordStyle', 'label', 'labelLine'];
|
|
@@ -24033,7 +24399,6 @@ var compatStyle = _default$C;
|
|
|
24033
24399
|
*/
|
|
24034
24400
|
|
|
24035
24401
|
|
|
24036
|
-
|
|
24037
24402
|
var each$b = util$2.each;
|
|
24038
24403
|
var isArray$3 = util$2.isArray;
|
|
24039
24404
|
var isObject$5 = util$2.isObject;
|
|
@@ -24043,7 +24408,6 @@ var isObject$5 = util$2.isObject;
|
|
|
24043
24408
|
|
|
24044
24409
|
|
|
24045
24410
|
var normalizeToArray$2 = model.normalizeToArray;
|
|
24046
|
-
|
|
24047
24411
|
/*
|
|
24048
24412
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
24049
24413
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -24063,6 +24427,7 @@ var normalizeToArray$2 = model.normalizeToArray;
|
|
|
24063
24427
|
* under the License.
|
|
24064
24428
|
*/
|
|
24065
24429
|
// Compatitable with 2.0
|
|
24430
|
+
|
|
24066
24431
|
function get(opt, path) {
|
|
24067
24432
|
path = path.split(',');
|
|
24068
24433
|
var obj = opt;
|
|
@@ -24177,10 +24542,8 @@ var backwardCompat = _default$B;
|
|
|
24177
24542
|
*/
|
|
24178
24543
|
|
|
24179
24544
|
|
|
24180
|
-
|
|
24181
24545
|
var createHashMap$7 = util$2.createHashMap;
|
|
24182
24546
|
var each$a = util$2.each;
|
|
24183
|
-
|
|
24184
24547
|
/*
|
|
24185
24548
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
24186
24549
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -24204,6 +24567,7 @@ var each$a = util$2.each;
|
|
|
24204
24567
|
// See <module:echarts/stream/Scheduler#performDataProcessorTasks>
|
|
24205
24568
|
// (2) Only register once when import repeatly.
|
|
24206
24569
|
// Should be executed after series filtered and before stack calculation.
|
|
24570
|
+
|
|
24207
24571
|
function _default$A(ecModel) {
|
|
24208
24572
|
var stackInfoMap = createHashMap$7();
|
|
24209
24573
|
ecModel.eachSeries(function (seriesModel) {
|
|
@@ -24276,10 +24640,10 @@ function calculateStack(stackInfoList) {
|
|
|
24276
24640
|
if (sum >= 0 && val > 0 || // Positive stack
|
|
24277
24641
|
sum <= 0 && val < 0 // Negative stack
|
|
24278
24642
|
) {
|
|
24279
|
-
|
|
24280
|
-
|
|
24281
|
-
|
|
24282
|
-
|
|
24643
|
+
sum += val;
|
|
24644
|
+
stackedOver = val;
|
|
24645
|
+
break;
|
|
24646
|
+
}
|
|
24283
24647
|
}
|
|
24284
24648
|
}
|
|
24285
24649
|
|
|
@@ -24316,7 +24680,6 @@ var SOURCE_FORMAT_TYPED_ARRAY = sourceType.SOURCE_FORMAT_TYPED_ARRAY;
|
|
|
24316
24680
|
var SOURCE_FORMAT_ARRAY_ROWS = sourceType.SOURCE_FORMAT_ARRAY_ROWS;
|
|
24317
24681
|
var SOURCE_FORMAT_ORIGINAL$1 = sourceType.SOURCE_FORMAT_ORIGINAL;
|
|
24318
24682
|
var SOURCE_FORMAT_OBJECT_ROWS = sourceType.SOURCE_FORMAT_OBJECT_ROWS;
|
|
24319
|
-
|
|
24320
24683
|
/*
|
|
24321
24684
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
24322
24685
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -24343,6 +24706,7 @@ var SOURCE_FORMAT_OBJECT_ROWS = sourceType.SOURCE_FORMAT_OBJECT_ROWS;
|
|
|
24343
24706
|
* If normal array used, mutable chunk size is supported.
|
|
24344
24707
|
* If typed array used, chunk size must be fixed.
|
|
24345
24708
|
*/
|
|
24709
|
+
|
|
24346
24710
|
function DefaultDataProvider$1(source, dimSize) {
|
|
24347
24711
|
if (!Source_1.isInstance(source)) {
|
|
24348
24712
|
source = Source_1.seriesDataToSource(source);
|
|
@@ -24673,7 +25037,6 @@ var dataProvider = {
|
|
|
24673
25037
|
*/
|
|
24674
25038
|
|
|
24675
25039
|
|
|
24676
|
-
|
|
24677
25040
|
var retrieveRawValue$2 = dataProvider.retrieveRawValue;
|
|
24678
25041
|
|
|
24679
25042
|
|
|
@@ -24684,7 +25047,6 @@ var formatTpl = format$1.formatTpl;
|
|
|
24684
25047
|
|
|
24685
25048
|
|
|
24686
25049
|
var getTooltipRenderMode = model.getTooltipRenderMode;
|
|
24687
|
-
|
|
24688
25050
|
/*
|
|
24689
25051
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
24690
25052
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -24703,6 +25065,7 @@ var getTooltipRenderMode = model.getTooltipRenderMode;
|
|
|
24703
25065
|
* specific language governing permissions and limitations
|
|
24704
25066
|
* under the License.
|
|
24705
25067
|
*/
|
|
25068
|
+
|
|
24706
25069
|
var DIMENSION_LABEL_REG = /\{@(.+?)\}/g; // PENDING A little ugly
|
|
24707
25070
|
|
|
24708
25071
|
var _default$z = {
|
|
@@ -24817,7 +25180,6 @@ var _default$z = {
|
|
|
24817
25180
|
var dataFormat = _default$z;
|
|
24818
25181
|
|
|
24819
25182
|
var isArray$2 = util$2.isArray;
|
|
24820
|
-
|
|
24821
25183
|
/*
|
|
24822
25184
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
24823
25185
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -24841,6 +25203,7 @@ var isArray$2 = util$2.isArray;
|
|
|
24841
25203
|
* @param {Object} define
|
|
24842
25204
|
* @return See the return of `createTask`.
|
|
24843
25205
|
*/
|
|
25206
|
+
|
|
24844
25207
|
function createTask$3(define) {
|
|
24845
25208
|
return new Task(define);
|
|
24846
25209
|
}
|
|
@@ -24928,8 +25291,8 @@ taskProto.perform = function (performArgs) {
|
|
|
24928
25291
|
this._dueEnd = upTask._outputDueEnd;
|
|
24929
25292
|
} // DataTask or overallTask
|
|
24930
25293
|
else {
|
|
24931
|
-
|
|
24932
|
-
|
|
25294
|
+
this._dueEnd = this._count ? this._count(this.context) : Infinity;
|
|
25295
|
+
} // Note: Stubs, that its host overall task let it has progress, has progress.
|
|
24933
25296
|
// If no progress, pass index from upstream to downstream each time plan called.
|
|
24934
25297
|
|
|
24935
25298
|
|
|
@@ -25169,7 +25532,6 @@ var getSource = sourceHelper.getSource;
|
|
|
25169
25532
|
|
|
25170
25533
|
|
|
25171
25534
|
var retrieveRawValue$1 = dataProvider.retrieveRawValue;
|
|
25172
|
-
|
|
25173
25535
|
/*
|
|
25174
25536
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
25175
25537
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -25188,6 +25550,7 @@ var retrieveRawValue$1 = dataProvider.retrieveRawValue;
|
|
|
25188
25550
|
* specific language governing permissions and limitations
|
|
25189
25551
|
* under the License.
|
|
25190
25552
|
*/
|
|
25553
|
+
|
|
25191
25554
|
var inner$2 = model.makeInner();
|
|
25192
25555
|
var SeriesModel = Component$1.extend({
|
|
25193
25556
|
type: 'series.__base__',
|
|
@@ -25247,11 +25610,11 @@ var SeriesModel = Component$1.extend({
|
|
|
25247
25610
|
var data = this.getInitialData(option, ecModel);
|
|
25248
25611
|
wrapData(data, this);
|
|
25249
25612
|
this.dataTask.context.data = data;
|
|
25250
|
-
|
|
25251
25613
|
/**
|
|
25252
25614
|
* @type {module:echarts/data/List|module:echarts/data/Tree|module:echarts/data/Graph}
|
|
25253
25615
|
* @private
|
|
25254
25616
|
*/
|
|
25617
|
+
|
|
25255
25618
|
inner$2(this).dataBeforeProcessed = data; // If we reverse the order (make data firstly, and then make
|
|
25256
25619
|
// dataBeforeProcessed by cloneShallow), cloneShallow will
|
|
25257
25620
|
// cause data.graph.data !== data when using
|
|
@@ -25748,8 +26111,6 @@ var Series = _default$y;
|
|
|
25748
26111
|
|
|
25749
26112
|
|
|
25750
26113
|
|
|
25751
|
-
|
|
25752
|
-
|
|
25753
26114
|
/*
|
|
25754
26115
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
25755
26116
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -25768,6 +26129,8 @@ var Series = _default$y;
|
|
|
25768
26129
|
* specific language governing permissions and limitations
|
|
25769
26130
|
* under the License.
|
|
25770
26131
|
*/
|
|
26132
|
+
|
|
26133
|
+
|
|
25771
26134
|
var Component = function () {
|
|
25772
26135
|
/**
|
|
25773
26136
|
* @type {module:zrender/container/Group}
|
|
@@ -25831,9 +26194,7 @@ var Component_1 = _default$x;
|
|
|
25831
26194
|
*/
|
|
25832
26195
|
|
|
25833
26196
|
|
|
25834
|
-
|
|
25835
26197
|
var makeInner$1 = model.makeInner;
|
|
25836
|
-
|
|
25837
26198
|
/*
|
|
25838
26199
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
25839
26200
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -25856,6 +26217,7 @@ var makeInner$1 = model.makeInner;
|
|
|
25856
26217
|
/**
|
|
25857
26218
|
* @return {string} If large mode changed, return string 'reset';
|
|
25858
26219
|
*/
|
|
26220
|
+
|
|
25859
26221
|
function _default$w() {
|
|
25860
26222
|
var inner = makeInner$1();
|
|
25861
26223
|
return function (seriesModel) {
|
|
@@ -25894,7 +26256,6 @@ var createRenderPlanner = _default$w;
|
|
|
25894
26256
|
*/
|
|
25895
26257
|
|
|
25896
26258
|
|
|
25897
|
-
|
|
25898
26259
|
var each$8 = util$2.each;
|
|
25899
26260
|
|
|
25900
26261
|
|
|
@@ -25912,7 +26273,6 @@ var each$8 = util$2.each;
|
|
|
25912
26273
|
var createTask$1 = task.createTask;
|
|
25913
26274
|
|
|
25914
26275
|
|
|
25915
|
-
|
|
25916
26276
|
/*
|
|
25917
26277
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
25918
26278
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -25931,6 +26291,8 @@ var createTask$1 = task.createTask;
|
|
|
25931
26291
|
* specific language governing permissions and limitations
|
|
25932
26292
|
* under the License.
|
|
25933
26293
|
*/
|
|
26294
|
+
|
|
26295
|
+
|
|
25934
26296
|
var inner$1 = model.makeInner();
|
|
25935
26297
|
var renderPlanner = createRenderPlanner();
|
|
25936
26298
|
|
|
@@ -26381,9 +26743,7 @@ var throttle_1$1 = {
|
|
|
26381
26743
|
|
|
26382
26744
|
|
|
26383
26745
|
|
|
26384
|
-
|
|
26385
26746
|
var isFunction$1 = util$2.isFunction;
|
|
26386
|
-
|
|
26387
26747
|
/*
|
|
26388
26748
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
26389
26749
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -26402,6 +26762,7 @@ var isFunction$1 = util$2.isFunction;
|
|
|
26402
26762
|
* specific language governing permissions and limitations
|
|
26403
26763
|
* under the License.
|
|
26404
26764
|
*/
|
|
26765
|
+
|
|
26405
26766
|
var _default$u = {
|
|
26406
26767
|
createOnAllSeries: true,
|
|
26407
26768
|
performRawSeries: true,
|
|
@@ -26622,9 +26983,7 @@ var lang = _default$t;
|
|
|
26622
26983
|
|
|
26623
26984
|
|
|
26624
26985
|
|
|
26625
|
-
|
|
26626
26986
|
var retrieveRawValue = dataProvider.retrieveRawValue;
|
|
26627
|
-
|
|
26628
26987
|
/*
|
|
26629
26988
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
26630
26989
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -26643,6 +27002,7 @@ var retrieveRawValue = dataProvider.retrieveRawValue;
|
|
|
26643
27002
|
* specific language governing permissions and limitations
|
|
26644
27003
|
* under the License.
|
|
26645
27004
|
*/
|
|
27005
|
+
|
|
26646
27006
|
function _default$s(dom, ecModel) {
|
|
26647
27007
|
var ariaModel = ecModel.getModel('aria');
|
|
26648
27008
|
|
|
@@ -26794,8 +27154,6 @@ var aria = _default$s;
|
|
|
26794
27154
|
|
|
26795
27155
|
|
|
26796
27156
|
|
|
26797
|
-
|
|
26798
|
-
|
|
26799
27157
|
/*
|
|
26800
27158
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
26801
27159
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -26814,6 +27172,8 @@ var aria = _default$s;
|
|
|
26814
27172
|
* specific language governing permissions and limitations
|
|
26815
27173
|
* under the License.
|
|
26816
27174
|
*/
|
|
27175
|
+
|
|
27176
|
+
|
|
26817
27177
|
var PI = Math.PI;
|
|
26818
27178
|
/**
|
|
26819
27179
|
* @param {module:echarts/ExtensionAPI} api
|
|
@@ -26938,7 +27298,6 @@ var _default_1 = _default$r;
|
|
|
26938
27298
|
*/
|
|
26939
27299
|
|
|
26940
27300
|
|
|
26941
|
-
|
|
26942
27301
|
var each$7 = util$2.each;
|
|
26943
27302
|
var map$2 = util$2.map;
|
|
26944
27303
|
var isFunction = util$2.isFunction;
|
|
@@ -26960,7 +27319,6 @@ var getUID = component.getUID;
|
|
|
26960
27319
|
|
|
26961
27320
|
|
|
26962
27321
|
var normalizeToArray$1 = model.normalizeToArray;
|
|
26963
|
-
|
|
26964
27322
|
/*
|
|
26965
27323
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
26966
27324
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -26987,6 +27345,7 @@ var normalizeToArray$1 = model.normalizeToArray;
|
|
|
26987
27345
|
/**
|
|
26988
27346
|
* @constructor
|
|
26989
27347
|
*/
|
|
27348
|
+
|
|
26990
27349
|
function Scheduler(ecInstance, api, dataProcessorHandlers, visualHandlers) {
|
|
26991
27350
|
this.ecInstance = ecInstance;
|
|
26992
27351
|
this.api = api;
|
|
@@ -27327,9 +27686,9 @@ function createOverallStageTask(scheduler, stageHandler, stageHandlerRecord, ecM
|
|
|
27327
27686
|
// pipelines will be disabled unexpectedly. But it still needs stubs to receive
|
|
27328
27687
|
// dirty info from upsteam.
|
|
27329
27688
|
else {
|
|
27330
|
-
|
|
27331
|
-
|
|
27332
|
-
|
|
27689
|
+
overallProgress = false;
|
|
27690
|
+
each$7(ecModel.getSeries(), createStub);
|
|
27691
|
+
}
|
|
27333
27692
|
|
|
27334
27693
|
function createStub(seriesModel) {
|
|
27335
27694
|
var pipelineId = seriesModel.uid;
|
|
@@ -27734,13 +28093,11 @@ var dark = _default$o;
|
|
|
27734
28093
|
|
|
27735
28094
|
|
|
27736
28095
|
|
|
27737
|
-
|
|
27738
28096
|
var detectSourceFormat = sourceHelper.detectSourceFormat;
|
|
27739
28097
|
|
|
27740
28098
|
|
|
27741
28099
|
|
|
27742
28100
|
var SERIES_LAYOUT_BY_COLUMN = sourceType.SERIES_LAYOUT_BY_COLUMN;
|
|
27743
|
-
|
|
27744
28101
|
/*
|
|
27745
28102
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
27746
28103
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -27768,6 +28125,7 @@ var SERIES_LAYOUT_BY_COLUMN = sourceType.SERIES_LAYOUT_BY_COLUMN;
|
|
|
27768
28125
|
* Because before 4.1.0, dataset is an optional component,
|
|
27769
28126
|
* some users may import this module manually.
|
|
27770
28127
|
*/
|
|
28128
|
+
|
|
27771
28129
|
Component$1.extend({
|
|
27772
28130
|
type: 'dataset',
|
|
27773
28131
|
|
|
@@ -27794,6 +28152,8 @@ Component_1.extend({
|
|
|
27794
28152
|
* 椭圆形状
|
|
27795
28153
|
* @module zrender/graphic/shape/Ellipse
|
|
27796
28154
|
*/
|
|
28155
|
+
|
|
28156
|
+
|
|
27797
28157
|
var _default$n = Path_1.extend({
|
|
27798
28158
|
type: 'ellipse',
|
|
27799
28159
|
shape: {
|
|
@@ -27832,11 +28192,11 @@ var isString$3 = util$2.isString;
|
|
|
27832
28192
|
var extend$2 = util$2.extend;
|
|
27833
28193
|
var defaults$1 = util$2.defaults;
|
|
27834
28194
|
var trim = util$2.trim;
|
|
27835
|
-
var each$6 = util$2.each;
|
|
27836
|
-
// import RadialGradient from '../graphic/RadialGradient';
|
|
28195
|
+
var each$6 = util$2.each; // import RadialGradient from '../graphic/RadialGradient';
|
|
27837
28196
|
// import Pattern from '../graphic/Pattern';
|
|
27838
28197
|
// import * as vector from '../core/vector';
|
|
27839
28198
|
// Most of the values can be separated by comma and/or white space.
|
|
28199
|
+
|
|
27840
28200
|
var DILIMITER_REG = /[\s,]+/;
|
|
27841
28201
|
/**
|
|
27842
28202
|
* For big svg string, this method might be time consuming.
|
|
@@ -28503,7 +28863,6 @@ var each$5 = util$2.each;
|
|
|
28503
28863
|
|
|
28504
28864
|
|
|
28505
28865
|
var parseXML = parseSVG_1.parseXML;
|
|
28506
|
-
|
|
28507
28866
|
/*
|
|
28508
28867
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
28509
28868
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -28522,6 +28881,7 @@ var parseXML = parseSVG_1.parseXML;
|
|
|
28522
28881
|
* specific language governing permissions and limitations
|
|
28523
28882
|
* under the License.
|
|
28524
28883
|
*/
|
|
28884
|
+
|
|
28525
28885
|
var storage = createHashMap$5(); // For minimize the code size of common echarts package,
|
|
28526
28886
|
// do not put too much logic in this module.
|
|
28527
28887
|
|
|
@@ -28763,10 +29123,8 @@ var DataDiffer_1 = _default$l;
|
|
|
28763
29123
|
*/
|
|
28764
29124
|
|
|
28765
29125
|
|
|
28766
|
-
|
|
28767
29126
|
var each$4 = util$2.each;
|
|
28768
29127
|
var createHashMap$4 = util$2.createHashMap;
|
|
28769
|
-
|
|
28770
29128
|
/*
|
|
28771
29129
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
28772
29130
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -28785,6 +29143,7 @@ var createHashMap$4 = util$2.createHashMap;
|
|
|
28785
29143
|
* specific language governing permissions and limitations
|
|
28786
29144
|
* under the License.
|
|
28787
29145
|
*/
|
|
29146
|
+
|
|
28788
29147
|
var OTHER_DIMENSIONS$1 = createHashMap$4(['tooltip', 'label', 'itemName', 'itemId', 'seriesName']);
|
|
28789
29148
|
|
|
28790
29149
|
function summarizeDimensions$1(data) {
|
|
@@ -28928,8 +29287,6 @@ var dimensionHelper = {
|
|
|
28928
29287
|
* under the License.
|
|
28929
29288
|
*/
|
|
28930
29289
|
|
|
28931
|
-
|
|
28932
|
-
|
|
28933
29290
|
/*
|
|
28934
29291
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
28935
29292
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -28953,6 +29310,8 @@ var dimensionHelper = {
|
|
|
28953
29310
|
* @class
|
|
28954
29311
|
* @param {Object|DataDimensionInfo} [opt] All of the fields will be shallow copied.
|
|
28955
29312
|
*/
|
|
29313
|
+
|
|
29314
|
+
|
|
28956
29315
|
function DataDimensionInfo(opt) {
|
|
28957
29316
|
if (opt != null) {
|
|
28958
29317
|
util$2.extend(this, opt);
|
|
@@ -29072,7 +29431,6 @@ var DefaultDataProvider = dataProvider.DefaultDataProvider;
|
|
|
29072
29431
|
var summarizeDimensions = dimensionHelper.summarizeDimensions;
|
|
29073
29432
|
|
|
29074
29433
|
|
|
29075
|
-
|
|
29076
29434
|
/*
|
|
29077
29435
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
29078
29436
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -29098,6 +29456,8 @@ var summarizeDimensions = dimensionHelper.summarizeDimensions;
|
|
|
29098
29456
|
* List for data storage
|
|
29099
29457
|
* @module echarts/data/List
|
|
29100
29458
|
*/
|
|
29459
|
+
|
|
29460
|
+
|
|
29101
29461
|
var isObject$3 = util$2.isObject;
|
|
29102
29462
|
var UNDEFINED = 'undefined';
|
|
29103
29463
|
var INDEX_NOT_FOUND = -1; // Use prefix to avoid index to be the same as otherIdList[idx],
|
|
@@ -31121,7 +31481,6 @@ var List_1 = _default$j;
|
|
|
31121
31481
|
*/
|
|
31122
31482
|
|
|
31123
31483
|
|
|
31124
|
-
|
|
31125
31484
|
var createHashMap$3 = util$2.createHashMap;
|
|
31126
31485
|
var each$3 = util$2.each;
|
|
31127
31486
|
var isString$1 = util$2.isString;
|
|
@@ -31146,7 +31505,6 @@ var BE_ORDINAL = sourceHelper.BE_ORDINAL;
|
|
|
31146
31505
|
var OTHER_DIMENSIONS = dimensionHelper.OTHER_DIMENSIONS;
|
|
31147
31506
|
|
|
31148
31507
|
|
|
31149
|
-
|
|
31150
31508
|
/*
|
|
31151
31509
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
31152
31510
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -31210,6 +31568,8 @@ var OTHER_DIMENSIONS = dimensionHelper.OTHER_DIMENSIONS;
|
|
|
31210
31568
|
* @param {number} [opt.dimCount] If not specified, guess by the first data item.
|
|
31211
31569
|
* @return {Array.<module:data/DataDimensionInfo>}
|
|
31212
31570
|
*/
|
|
31571
|
+
|
|
31572
|
+
|
|
31213
31573
|
function completeDimensions$1(sysDims, source, opt) {
|
|
31214
31574
|
if (!Source_1.isInstance(source)) {
|
|
31215
31575
|
source = Source_1.seriesDataToSource(source);
|
|
@@ -31444,8 +31804,6 @@ var completeDimensions_1 = _default$i;
|
|
|
31444
31804
|
* under the License.
|
|
31445
31805
|
*/
|
|
31446
31806
|
|
|
31447
|
-
|
|
31448
|
-
|
|
31449
31807
|
/*
|
|
31450
31808
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
31451
31809
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -31482,6 +31840,8 @@ var completeDimensions_1 = _default$i;
|
|
|
31482
31840
|
* @param {Function} [opt.encodeDefaulter] Make default encode if user not specified.
|
|
31483
31841
|
* @return {Array.<Object>} dimensionsInfo
|
|
31484
31842
|
*/
|
|
31843
|
+
|
|
31844
|
+
|
|
31485
31845
|
function _default$h(source, opt) {
|
|
31486
31846
|
opt = opt || {};
|
|
31487
31847
|
return completeDimensions_1(opt.coordDimensions || [], source, {
|
|
@@ -31498,7 +31858,6 @@ var createDimensions$1 = _default$h;
|
|
|
31498
31858
|
|
|
31499
31859
|
var createHashMap$2 = util$2.createHashMap;
|
|
31500
31860
|
var each$2 = util$2.each;
|
|
31501
|
-
|
|
31502
31861
|
/*
|
|
31503
31862
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
31504
31863
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -31546,6 +31905,7 @@ var each$2 = util$2.each;
|
|
|
31546
31905
|
* // To replace user specified encode.
|
|
31547
31906
|
* }
|
|
31548
31907
|
*/
|
|
31908
|
+
|
|
31549
31909
|
function CoordSysInfo(coordSysName) {
|
|
31550
31910
|
/**
|
|
31551
31911
|
* @type {string}
|
|
@@ -31684,10 +32044,8 @@ var referHelper = {
|
|
|
31684
32044
|
*/
|
|
31685
32045
|
|
|
31686
32046
|
|
|
31687
|
-
|
|
31688
32047
|
var each$1 = util$2.each;
|
|
31689
32048
|
var isString = util$2.isString;
|
|
31690
|
-
|
|
31691
32049
|
/*
|
|
31692
32050
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
31693
32051
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -31727,6 +32085,7 @@ var isString = util$2.isString;
|
|
|
31727
32085
|
* stackResultDimension: string
|
|
31728
32086
|
* }
|
|
31729
32087
|
*/
|
|
32088
|
+
|
|
31730
32089
|
function enableDataStack$2(seriesModel, dimensionInfoList, opt) {
|
|
31731
32090
|
opt = opt || {};
|
|
31732
32091
|
var byIndex = opt.byIndex;
|
|
@@ -31878,7 +32237,6 @@ var dataStackHelper = {
|
|
|
31878
32237
|
|
|
31879
32238
|
|
|
31880
32239
|
|
|
31881
|
-
|
|
31882
32240
|
var SOURCE_FORMAT_ORIGINAL = sourceType.SOURCE_FORMAT_ORIGINAL;
|
|
31883
32241
|
|
|
31884
32242
|
|
|
@@ -31904,7 +32262,6 @@ var enableDataStack$1 = dataStackHelper.enableDataStack;
|
|
|
31904
32262
|
|
|
31905
32263
|
|
|
31906
32264
|
var makeSeriesEncodeForAxisCoordSys = sourceHelper.makeSeriesEncodeForAxisCoordSys;
|
|
31907
|
-
|
|
31908
32265
|
/*
|
|
31909
32266
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
31910
32267
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -31931,6 +32288,7 @@ var makeSeriesEncodeForAxisCoordSys = sourceHelper.makeSeriesEncodeForAxisCoordS
|
|
|
31931
32288
|
* @param {string} [opt.generateCoord]
|
|
31932
32289
|
* @param {boolean} [opt.useEncodeDefaulter]
|
|
31933
32290
|
*/
|
|
32291
|
+
|
|
31934
32292
|
function createListFromArray(source, seriesModel, opt) {
|
|
31935
32293
|
opt = opt || {};
|
|
31936
32294
|
|
|
@@ -32043,8 +32401,6 @@ var createListFromArray_1 = _default$g;
|
|
|
32043
32401
|
* under the License.
|
|
32044
32402
|
*/
|
|
32045
32403
|
|
|
32046
|
-
|
|
32047
|
-
|
|
32048
32404
|
/*
|
|
32049
32405
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
32050
32406
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -32072,6 +32428,8 @@ var createListFromArray_1 = _default$g;
|
|
|
32072
32428
|
/**
|
|
32073
32429
|
* @param {Object} [setting]
|
|
32074
32430
|
*/
|
|
32431
|
+
|
|
32432
|
+
|
|
32075
32433
|
function Scale(setting) {
|
|
32076
32434
|
this._setting = setting || {};
|
|
32077
32435
|
/**
|
|
@@ -32239,11 +32597,9 @@ var Scale_1 = _default$f;
|
|
|
32239
32597
|
*/
|
|
32240
32598
|
|
|
32241
32599
|
|
|
32242
|
-
|
|
32243
32600
|
var createHashMap$1 = util$2.createHashMap;
|
|
32244
32601
|
var isObject$1 = util$2.isObject;
|
|
32245
32602
|
var map$1 = util$2.map;
|
|
32246
|
-
|
|
32247
32603
|
/*
|
|
32248
32604
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
32249
32605
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -32270,6 +32626,7 @@ var map$1 = util$2.map;
|
|
|
32270
32626
|
* @param {Object} [opt.needCollect=false]
|
|
32271
32627
|
* @param {Object} [opt.deduplication=false]
|
|
32272
32628
|
*/
|
|
32629
|
+
|
|
32273
32630
|
function OrdinalMeta(opt) {
|
|
32274
32631
|
/**
|
|
32275
32632
|
* @readOnly
|
|
@@ -32409,8 +32766,6 @@ var OrdinalMeta_1 = _default$e;
|
|
|
32409
32766
|
|
|
32410
32767
|
|
|
32411
32768
|
|
|
32412
|
-
|
|
32413
|
-
|
|
32414
32769
|
/*
|
|
32415
32770
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
32416
32771
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -32437,6 +32792,8 @@ var OrdinalMeta_1 = _default$e;
|
|
|
32437
32792
|
* http://en.wikipedia.org/wiki/Level_of_measurement
|
|
32438
32793
|
*/
|
|
32439
32794
|
// FIXME only one data
|
|
32795
|
+
|
|
32796
|
+
|
|
32440
32797
|
var scaleProto$1 = Scale_1.prototype;
|
|
32441
32798
|
var OrdinalScale = Scale_1.extend({
|
|
32442
32799
|
type: 'ordinal',
|
|
@@ -32554,8 +32911,6 @@ var Ordinal = _default$d;
|
|
|
32554
32911
|
* under the License.
|
|
32555
32912
|
*/
|
|
32556
32913
|
|
|
32557
|
-
|
|
32558
|
-
|
|
32559
32914
|
/*
|
|
32560
32915
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
32561
32916
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -32578,6 +32933,8 @@ var Ordinal = _default$d;
|
|
|
32578
32933
|
/**
|
|
32579
32934
|
* For testable.
|
|
32580
32935
|
*/
|
|
32936
|
+
|
|
32937
|
+
|
|
32581
32938
|
var roundNumber$1 = number$1.round;
|
|
32582
32939
|
/**
|
|
32583
32940
|
* @param {Array.<number>} extent Both extent[0] and extent[1] should be valid number.
|
|
@@ -32670,8 +33027,6 @@ var helper$2 = {
|
|
|
32670
33027
|
|
|
32671
33028
|
|
|
32672
33029
|
|
|
32673
|
-
|
|
32674
|
-
|
|
32675
33030
|
/*
|
|
32676
33031
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
32677
33032
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -32695,6 +33050,8 @@ var helper$2 = {
|
|
|
32695
33050
|
* Interval scale
|
|
32696
33051
|
* @module echarts/scale/Interval
|
|
32697
33052
|
*/
|
|
33053
|
+
|
|
33054
|
+
|
|
32698
33055
|
var roundNumber = number$1.round;
|
|
32699
33056
|
/**
|
|
32700
33057
|
* @alias module:echarts/coord/scale/Interval
|
|
@@ -32975,7 +33332,6 @@ var Interval = _default$c;
|
|
|
32975
33332
|
|
|
32976
33333
|
|
|
32977
33334
|
|
|
32978
|
-
|
|
32979
33335
|
var parsePercent$2 = number$1.parsePercent;
|
|
32980
33336
|
|
|
32981
33337
|
|
|
@@ -32983,7 +33339,6 @@ var parsePercent$2 = number$1.parsePercent;
|
|
|
32983
33339
|
var isDimensionStacked$1 = dataStackHelper.isDimensionStacked;
|
|
32984
33340
|
|
|
32985
33341
|
|
|
32986
|
-
|
|
32987
33342
|
/*
|
|
32988
33343
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
32989
33344
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -33004,6 +33359,8 @@ var isDimensionStacked$1 = dataStackHelper.isDimensionStacked;
|
|
|
33004
33359
|
*/
|
|
33005
33360
|
|
|
33006
33361
|
/* global Float32Array */
|
|
33362
|
+
|
|
33363
|
+
|
|
33007
33364
|
var STACK_PREFIX = '__ec_stack_';
|
|
33008
33365
|
var LARGE_BAR_MIN_WIDTH = 0.5;
|
|
33009
33366
|
var LargeArr = typeof Float32Array !== 'undefined' ? Float32Array : Array;
|
|
@@ -33568,8 +33925,6 @@ var barGrid = {
|
|
|
33568
33925
|
|
|
33569
33926
|
|
|
33570
33927
|
|
|
33571
|
-
|
|
33572
|
-
|
|
33573
33928
|
/*
|
|
33574
33929
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
33575
33930
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -33607,6 +33962,8 @@ var barGrid = {
|
|
|
33607
33962
|
// in local time by default.
|
|
33608
33963
|
// (2) By default, the input data string (e.g., '2011-01-02') should be displayed
|
|
33609
33964
|
// as its original time, without any time difference.
|
|
33965
|
+
|
|
33966
|
+
|
|
33610
33967
|
var intervalScaleProto$1 = Interval.prototype;
|
|
33611
33968
|
var mathCeil$1 = Math.ceil;
|
|
33612
33969
|
var mathFloor$1 = Math.floor;
|
|
@@ -33806,8 +34163,6 @@ TimeScale.create = function (model) {
|
|
|
33806
34163
|
|
|
33807
34164
|
|
|
33808
34165
|
|
|
33809
|
-
|
|
33810
|
-
|
|
33811
34166
|
/*
|
|
33812
34167
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
33813
34168
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -33832,6 +34187,8 @@ TimeScale.create = function (model) {
|
|
|
33832
34187
|
* @module echarts/scale/Log
|
|
33833
34188
|
*/
|
|
33834
34189
|
// Use some method of IntervalScale
|
|
34190
|
+
|
|
34191
|
+
|
|
33835
34192
|
var scaleProto = Scale_1.prototype;
|
|
33836
34193
|
var intervalScaleProto = Interval.prototype;
|
|
33837
34194
|
var getPrecisionSafe = number$1.getPrecisionSafe;
|
|
@@ -33999,7 +34356,6 @@ var retrieveColumnLayout = barGrid.retrieveColumnLayout;
|
|
|
33999
34356
|
|
|
34000
34357
|
|
|
34001
34358
|
|
|
34002
|
-
|
|
34003
34359
|
/*
|
|
34004
34360
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
34005
34361
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -34023,6 +34379,8 @@ var retrieveColumnLayout = barGrid.retrieveColumnLayout;
|
|
|
34023
34379
|
* Get axis scale extent before niced.
|
|
34024
34380
|
* Item of returned array can only be number (including Infinity and NaN).
|
|
34025
34381
|
*/
|
|
34382
|
+
|
|
34383
|
+
|
|
34026
34384
|
function getScaleExtent(scale, model) {
|
|
34027
34385
|
var scaleType = scale.type;
|
|
34028
34386
|
var min = model.getMin();
|
|
@@ -34421,8 +34779,6 @@ var axisHelper = {
|
|
|
34421
34779
|
* under the License.
|
|
34422
34780
|
*/
|
|
34423
34781
|
|
|
34424
|
-
|
|
34425
|
-
|
|
34426
34782
|
/*
|
|
34427
34783
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
34428
34784
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -34442,6 +34798,8 @@ var axisHelper = {
|
|
|
34442
34798
|
* under the License.
|
|
34443
34799
|
*/
|
|
34444
34800
|
// import * as axisHelper from './axisHelper';
|
|
34801
|
+
|
|
34802
|
+
|
|
34445
34803
|
var _default$b = {
|
|
34446
34804
|
/**
|
|
34447
34805
|
* @param {boolean} origin
|
|
@@ -34532,9 +34890,7 @@ var axisModelCommonMixin = _default$b;
|
|
|
34532
34890
|
|
|
34533
34891
|
|
|
34534
34892
|
|
|
34535
|
-
|
|
34536
34893
|
var calculateTextPosition = text$1.calculateTextPosition;
|
|
34537
|
-
|
|
34538
34894
|
/*
|
|
34539
34895
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
34540
34896
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -34559,6 +34915,7 @@ var calculateTextPosition = text$1.calculateTextPosition;
|
|
|
34559
34915
|
* Triangle shape
|
|
34560
34916
|
* @inner
|
|
34561
34917
|
*/
|
|
34918
|
+
|
|
34562
34919
|
var Triangle = graphic$1.extendShape({
|
|
34563
34920
|
type: 'triangle',
|
|
34564
34921
|
shape: {
|
|
@@ -34873,7 +35230,6 @@ var createDimensions = createDimensions$1;
|
|
|
34873
35230
|
|
|
34874
35231
|
|
|
34875
35232
|
var createSymbol = symbol.createSymbol;
|
|
34876
|
-
|
|
34877
35233
|
/*
|
|
34878
35234
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
34879
35235
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -34899,6 +35255,7 @@ var createSymbol = symbol.createSymbol;
|
|
|
34899
35255
|
* @param {module:echarts/model/Model} seriesModel
|
|
34900
35256
|
* @return {module:echarts/data/List} list
|
|
34901
35257
|
*/
|
|
35258
|
+
|
|
34902
35259
|
function createList(seriesModel) {
|
|
34903
35260
|
return createListFromArray_1(seriesModel.getSource(), seriesModel);
|
|
34904
35261
|
} // export function createGraph(seriesModel) {
|
|
@@ -34928,6 +35285,7 @@ var dataStack = {
|
|
|
34928
35285
|
* @param {Array.<number>} dataExtent
|
|
34929
35286
|
* @param {Object|module:echarts/Model} option
|
|
34930
35287
|
*/
|
|
35288
|
+
|
|
34931
35289
|
function createScale(dataExtent, option) {
|
|
34932
35290
|
var axisModel = option;
|
|
34933
35291
|
|
|
@@ -35036,8 +35394,6 @@ var polygon = {
|
|
|
35036
35394
|
|
|
35037
35395
|
|
|
35038
35396
|
|
|
35039
|
-
|
|
35040
|
-
|
|
35041
35397
|
/*
|
|
35042
35398
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
35043
35399
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -35066,6 +35422,8 @@ var polygon = {
|
|
|
35066
35422
|
* @param {Array} geometries
|
|
35067
35423
|
* @param {Array.<number>} cp
|
|
35068
35424
|
*/
|
|
35425
|
+
|
|
35426
|
+
|
|
35069
35427
|
function Region(name, geometries, cp) {
|
|
35070
35428
|
/**
|
|
35071
35429
|
* @type {string}
|
|
@@ -35242,8 +35600,6 @@ var Region_1 = _default$a;
|
|
|
35242
35600
|
|
|
35243
35601
|
|
|
35244
35602
|
|
|
35245
|
-
|
|
35246
|
-
|
|
35247
35603
|
/*
|
|
35248
35604
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
35249
35605
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -35267,6 +35623,8 @@ var Region_1 = _default$a;
|
|
|
35267
35623
|
* Parse and decode geo json
|
|
35268
35624
|
* @module echarts/coord/geo/parseGeoJson
|
|
35269
35625
|
*/
|
|
35626
|
+
|
|
35627
|
+
|
|
35270
35628
|
function decode(json) {
|
|
35271
35629
|
if (!json.UTF8Encoding) {
|
|
35272
35630
|
return json;
|
|
@@ -35400,7 +35758,6 @@ var parseGeoJson$1 = _default$9;
|
|
|
35400
35758
|
|
|
35401
35759
|
|
|
35402
35760
|
|
|
35403
|
-
|
|
35404
35761
|
var makeInner = model.makeInner;
|
|
35405
35762
|
|
|
35406
35763
|
|
|
@@ -35408,7 +35765,6 @@ var makeInner = model.makeInner;
|
|
|
35408
35765
|
var makeLabelFormatter = axisHelper.makeLabelFormatter;
|
|
35409
35766
|
var getOptionCategoryInterval = axisHelper.getOptionCategoryInterval;
|
|
35410
35767
|
var shouldShowAllLabels = axisHelper.shouldShowAllLabels;
|
|
35411
|
-
|
|
35412
35768
|
/*
|
|
35413
35769
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
35414
35770
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -35427,6 +35783,7 @@ var shouldShowAllLabels = axisHelper.shouldShowAllLabels;
|
|
|
35427
35783
|
* specific language governing permissions and limitations
|
|
35428
35784
|
* under the License.
|
|
35429
35785
|
*/
|
|
35786
|
+
|
|
35430
35787
|
var inner = makeInner();
|
|
35431
35788
|
/**
|
|
35432
35789
|
* @param {module:echats/coord/Axis} axis
|
|
@@ -35519,15 +35876,15 @@ function makeCategoryTicks(axis, tickModel) {
|
|
|
35519
35876
|
// scenario, Use multiple grid with the xAxis sync, and only one xAxis shows
|
|
35520
35877
|
// labels. `splitLine` and `axisTick` should be consistent in this case.
|
|
35521
35878
|
else if (optionTickInterval === 'auto') {
|
|
35522
|
-
|
|
35523
|
-
|
|
35524
|
-
|
|
35525
|
-
|
|
35526
|
-
|
|
35527
|
-
|
|
35528
|
-
|
|
35529
|
-
|
|
35530
|
-
|
|
35879
|
+
var labelsResult = makeCategoryLabelsActually(axis, axis.getLabelModel());
|
|
35880
|
+
tickCategoryInterval = labelsResult.labelCategoryInterval;
|
|
35881
|
+
ticks = util$2.map(labelsResult.labels, function (labelItem) {
|
|
35882
|
+
return labelItem.tickValue;
|
|
35883
|
+
});
|
|
35884
|
+
} else {
|
|
35885
|
+
tickCategoryInterval = optionTickInterval;
|
|
35886
|
+
ticks = makeLabelsByNumericCategoryInterval(axis, tickCategoryInterval, true);
|
|
35887
|
+
} // Cache to avoid calling interval function repeatly.
|
|
35531
35888
|
|
|
35532
35889
|
|
|
35533
35890
|
return listCacheSet(ticksCache, optionTickInterval, {
|
|
@@ -35653,11 +36010,11 @@ function calculateCategoryInterval$1(axis) {
|
|
|
35653
36010
|
} // Only update cache if cache not used, otherwise the
|
|
35654
36011
|
// changing of interval is too insensitive.
|
|
35655
36012
|
else {
|
|
35656
|
-
|
|
35657
|
-
|
|
35658
|
-
|
|
35659
|
-
|
|
35660
|
-
|
|
36013
|
+
cache.lastTickCount = tickCount;
|
|
36014
|
+
cache.lastAutoInterval = interval;
|
|
36015
|
+
cache.axisExtend0 = axisExtent[0];
|
|
36016
|
+
cache.axisExtend1 = axisExtent[1];
|
|
36017
|
+
}
|
|
35661
36018
|
|
|
35662
36019
|
return interval;
|
|
35663
36020
|
}
|
|
@@ -35774,7 +36131,6 @@ var axisTickLabelBuilder = {
|
|
|
35774
36131
|
*/
|
|
35775
36132
|
|
|
35776
36133
|
|
|
35777
|
-
|
|
35778
36134
|
var each = util$2.each;
|
|
35779
36135
|
var map = util$2.map;
|
|
35780
36136
|
|
|
@@ -35789,7 +36145,6 @@ var round = number$1.round;
|
|
|
35789
36145
|
var createAxisTicks = axisTickLabelBuilder.createAxisTicks;
|
|
35790
36146
|
var createAxisLabels = axisTickLabelBuilder.createAxisLabels;
|
|
35791
36147
|
var calculateCategoryInterval = axisTickLabelBuilder.calculateCategoryInterval;
|
|
35792
|
-
|
|
35793
36148
|
/*
|
|
35794
36149
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
35795
36150
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -35808,6 +36163,7 @@ var calculateCategoryInterval = axisTickLabelBuilder.calculateCategoryInterval;
|
|
|
35808
36163
|
* specific language governing permissions and limitations
|
|
35809
36164
|
* under the License.
|
|
35810
36165
|
*/
|
|
36166
|
+
|
|
35811
36167
|
var NORMALIZED_EXTENT = [0, 1];
|
|
35812
36168
|
/**
|
|
35813
36169
|
* Base class of Axis.
|
|
@@ -36169,7 +36525,6 @@ var Axis_1 = _default$8;
|
|
|
36169
36525
|
*/
|
|
36170
36526
|
|
|
36171
36527
|
|
|
36172
|
-
|
|
36173
36528
|
var zrender_1 = zrender;
|
|
36174
36529
|
|
|
36175
36530
|
|
|
@@ -36220,7 +36575,6 @@ var Axis = Axis_1;
|
|
|
36220
36575
|
|
|
36221
36576
|
|
|
36222
36577
|
var env = env_1;
|
|
36223
|
-
|
|
36224
36578
|
/*
|
|
36225
36579
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
36226
36580
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -36243,6 +36597,7 @@ var env = env_1;
|
|
|
36243
36597
|
/**
|
|
36244
36598
|
* Do not mount those modules on 'src/echarts' for better tree shaking.
|
|
36245
36599
|
*/
|
|
36600
|
+
|
|
36246
36601
|
var parseGeoJson = parseGeoJson$1;
|
|
36247
36602
|
var ecUtil = {};
|
|
36248
36603
|
util$2.each(['map', 'each', 'filter', 'indexOf', 'inherits', 'reduce', 'filter', 'bind', 'curry', 'isArray', 'isString', 'isObject', 'isFunction', 'extend', 'defaults', 'clone', 'merge'], function (name) {
|
|
@@ -36332,7 +36687,6 @@ var throttle = throttle_1$1.throttle;
|
|
|
36332
36687
|
|
|
36333
36688
|
|
|
36334
36689
|
|
|
36335
|
-
|
|
36336
36690
|
/*
|
|
36337
36691
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
36338
36692
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -36351,6 +36705,8 @@ var throttle = throttle_1$1.throttle;
|
|
|
36351
36705
|
* specific language governing permissions and limitations
|
|
36352
36706
|
* under the License.
|
|
36353
36707
|
*/
|
|
36708
|
+
|
|
36709
|
+
|
|
36354
36710
|
var assert = util$2.assert;
|
|
36355
36711
|
var each = util$2.each;
|
|
36356
36712
|
var isFunction = util$2.isFunction;
|
|
@@ -36453,11 +36809,11 @@ function ECharts(dom, theme, opts) {
|
|
|
36453
36809
|
|
|
36454
36810
|
this._dom = dom;
|
|
36455
36811
|
var defaultRenderer = 'canvas';
|
|
36456
|
-
|
|
36457
36812
|
/**
|
|
36458
36813
|
* @type {module:zrender/ZRender}
|
|
36459
36814
|
* @private
|
|
36460
36815
|
*/
|
|
36816
|
+
|
|
36461
36817
|
var zr = this._zr = zrender.init(dom, {
|
|
36462
36818
|
renderer: opts.renderer || defaultRenderer,
|
|
36463
36819
|
devicePixelRatio: opts.devicePixelRatio,
|
|
@@ -36567,36 +36923,36 @@ echartsProto._onframe = function () {
|
|
|
36567
36923
|
triggerUpdatedEvent.call(this, silent);
|
|
36568
36924
|
} // Avoid do both lazy update and progress in one frame.
|
|
36569
36925
|
else if (scheduler.unfinished) {
|
|
36570
|
-
|
|
36571
|
-
|
|
36572
|
-
|
|
36573
|
-
|
|
36574
|
-
|
|
36926
|
+
// Stream progress.
|
|
36927
|
+
var remainTime = TEST_FRAME_REMAIN_TIME;
|
|
36928
|
+
var ecModel = this._model;
|
|
36929
|
+
var api = this._api;
|
|
36930
|
+
scheduler.unfinished = false;
|
|
36575
36931
|
|
|
36576
|
-
|
|
36577
|
-
|
|
36578
|
-
|
|
36932
|
+
do {
|
|
36933
|
+
var startTime = +new Date();
|
|
36934
|
+
scheduler.performSeriesTasks(ecModel); // Currently dataProcessorFuncs do not check threshold.
|
|
36579
36935
|
|
|
36580
|
-
|
|
36581
|
-
|
|
36582
|
-
|
|
36583
|
-
|
|
36584
|
-
|
|
36585
|
-
|
|
36586
|
-
|
|
36936
|
+
scheduler.performDataProcessorTasks(ecModel);
|
|
36937
|
+
updateStreamModes(this, ecModel); // Do not update coordinate system here. Because that coord system update in
|
|
36938
|
+
// each frame is not a good user experience. So we follow the rule that
|
|
36939
|
+
// the extent of the coordinate system is determin in the first frame (the
|
|
36940
|
+
// frame is executed immedietely after task reset.
|
|
36941
|
+
// this._coordSysMgr.update(ecModel, api);
|
|
36942
|
+
// console.log('--- ec frame visual ---', remainTime);
|
|
36587
36943
|
|
|
36588
|
-
|
|
36589
|
-
|
|
36590
|
-
|
|
36591
|
-
|
|
36944
|
+
scheduler.performVisualTasks(ecModel);
|
|
36945
|
+
renderSeries(this, this._model, api, 'remain');
|
|
36946
|
+
remainTime -= +new Date() - startTime;
|
|
36947
|
+
} while (remainTime > 0 && scheduler.unfinished); // Call flush explicitly for trigger finished event.
|
|
36592
36948
|
|
|
36593
36949
|
|
|
36594
|
-
|
|
36595
|
-
|
|
36596
|
-
|
|
36597
|
-
|
|
36950
|
+
if (!scheduler.unfinished) {
|
|
36951
|
+
this._zr.flush();
|
|
36952
|
+
} // Else, zr flushing be ensue within the same frame,
|
|
36953
|
+
// because zr flushing is after onframe event.
|
|
36598
36954
|
|
|
36599
|
-
|
|
36955
|
+
}
|
|
36600
36956
|
};
|
|
36601
36957
|
/**
|
|
36602
36958
|
* @return {HTMLElement}
|
|
@@ -37764,8 +38120,8 @@ echartsProto._initEvents = function () {
|
|
|
37764
38120
|
params = dataModel && dataModel.getDataParams(el.dataIndex, el.dataType, el) || {};
|
|
37765
38121
|
} // If element has custom eventData of components
|
|
37766
38122
|
else if (el && el.eventData) {
|
|
37767
|
-
|
|
37768
|
-
|
|
38123
|
+
params = util$2.extend({}, el.eventData);
|
|
38124
|
+
} // Contract: if params prepared in mouse event,
|
|
37769
38125
|
// these properties must be specified:
|
|
37770
38126
|
// {
|
|
37771
38127
|
// componentType: string (component main type)
|
|
@@ -37995,42 +38351,42 @@ EventProcessor.prototype = {
|
|
|
37995
38351
|
cptQuery.subType = condCptType.sub || null;
|
|
37996
38352
|
} // `query` is an object, convert to {mainType, index, name, id}.
|
|
37997
38353
|
else {
|
|
37998
|
-
|
|
37999
|
-
|
|
38000
|
-
|
|
38001
|
-
|
|
38002
|
-
|
|
38003
|
-
|
|
38004
|
-
|
|
38005
|
-
|
|
38006
|
-
|
|
38007
|
-
|
|
38354
|
+
// `xxxIndex`, `xxxName`, `xxxId`, `name`, `dataIndex`, `dataType` is reserved,
|
|
38355
|
+
// can not be used in `compomentModel.filterForExposedEvent`.
|
|
38356
|
+
var suffixes = ['Index', 'Name', 'Id'];
|
|
38357
|
+
var dataKeys = {
|
|
38358
|
+
name: 1,
|
|
38359
|
+
dataIndex: 1,
|
|
38360
|
+
dataType: 1
|
|
38361
|
+
};
|
|
38362
|
+
util$2.each(query, function (val, key) {
|
|
38363
|
+
var reserved = false;
|
|
38008
38364
|
|
|
38009
|
-
|
|
38010
|
-
|
|
38011
|
-
|
|
38365
|
+
for (var i = 0; i < suffixes.length; i++) {
|
|
38366
|
+
var propSuffix = suffixes[i];
|
|
38367
|
+
var suffixPos = key.lastIndexOf(propSuffix);
|
|
38012
38368
|
|
|
38013
|
-
|
|
38014
|
-
|
|
38369
|
+
if (suffixPos > 0 && suffixPos === key.length - propSuffix.length) {
|
|
38370
|
+
var mainType = key.slice(0, suffixPos); // Consider `dataIndex`.
|
|
38015
38371
|
|
|
38016
|
-
|
|
38017
|
-
|
|
38018
|
-
|
|
38019
|
-
|
|
38020
|
-
}
|
|
38372
|
+
if (mainType !== 'data') {
|
|
38373
|
+
cptQuery.mainType = mainType;
|
|
38374
|
+
cptQuery[propSuffix.toLowerCase()] = val;
|
|
38375
|
+
reserved = true;
|
|
38021
38376
|
}
|
|
38022
38377
|
}
|
|
38378
|
+
}
|
|
38023
38379
|
|
|
38024
|
-
|
|
38025
|
-
|
|
38026
|
-
|
|
38027
|
-
|
|
38380
|
+
if (dataKeys.hasOwnProperty(key)) {
|
|
38381
|
+
dataQuery[key] = val;
|
|
38382
|
+
reserved = true;
|
|
38383
|
+
}
|
|
38028
38384
|
|
|
38029
|
-
|
|
38030
|
-
|
|
38031
|
-
|
|
38032
|
-
|
|
38033
|
-
|
|
38385
|
+
if (!reserved) {
|
|
38386
|
+
otherQuery[key] = val;
|
|
38387
|
+
}
|
|
38388
|
+
});
|
|
38389
|
+
}
|
|
38034
38390
|
|
|
38035
38391
|
return {
|
|
38036
38392
|
cptQuery: cptQuery,
|
|
@@ -38592,12 +38948,14 @@ exports.registerMap = registerMap;
|
|
|
38592
38948
|
exports.getMap = getMap;
|
|
38593
38949
|
exports.dataTool = dataTool;
|
|
38594
38950
|
|
|
38951
|
+
|
|
38952
|
+
|
|
38595
38953
|
(function () {
|
|
38596
|
-
|
|
38597
|
-
|
|
38598
|
-
|
|
38599
|
-
}
|
|
38954
|
+
for (var key in _export) {
|
|
38955
|
+
if (_export.hasOwnProperty(key)) {
|
|
38956
|
+
exports[key] = _export[key];
|
|
38600
38957
|
}
|
|
38958
|
+
}
|
|
38601
38959
|
})();
|
|
38602
38960
|
});
|
|
38603
38961
|
|
|
@@ -38635,15 +38993,15 @@ var isObject_1 = isObject;
|
|
|
38635
38993
|
|
|
38636
38994
|
/** Detect free variable `global` from Node.js. */
|
|
38637
38995
|
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
38638
|
-
|
|
38639
38996
|
var _freeGlobal = freeGlobal;
|
|
38640
38997
|
|
|
38641
38998
|
/** Detect free variable `self`. */
|
|
38642
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
38643
38999
|
|
|
39000
|
+
|
|
39001
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
38644
39002
|
/** Used as a reference to the global object. */
|
|
38645
|
-
var root = _freeGlobal || freeSelf || Function('return this')();
|
|
38646
39003
|
|
|
39004
|
+
var root = _freeGlobal || freeSelf || Function('return this')();
|
|
38647
39005
|
var _root = root;
|
|
38648
39006
|
|
|
38649
39007
|
/**
|
|
@@ -38662,7 +39020,9 @@ var _root = root;
|
|
|
38662
39020
|
* }, _.now());
|
|
38663
39021
|
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
38664
39022
|
*/
|
|
38665
|
-
|
|
39023
|
+
|
|
39024
|
+
|
|
39025
|
+
var now = function () {
|
|
38666
39026
|
return _root.Date.now();
|
|
38667
39027
|
};
|
|
38668
39028
|
|
|
@@ -38670,7 +39030,6 @@ var now_1 = now;
|
|
|
38670
39030
|
|
|
38671
39031
|
/** Used to match a single whitespace character. */
|
|
38672
39032
|
var reWhitespace = /\s/;
|
|
38673
|
-
|
|
38674
39033
|
/**
|
|
38675
39034
|
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
38676
39035
|
* character of `string`.
|
|
@@ -38679,18 +39038,21 @@ var reWhitespace = /\s/;
|
|
|
38679
39038
|
* @param {string} string The string to inspect.
|
|
38680
39039
|
* @returns {number} Returns the index of the last non-whitespace character.
|
|
38681
39040
|
*/
|
|
39041
|
+
|
|
38682
39042
|
function trimmedEndIndex(string) {
|
|
38683
39043
|
var index = string.length;
|
|
38684
39044
|
|
|
38685
39045
|
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
39046
|
+
|
|
38686
39047
|
return index;
|
|
38687
39048
|
}
|
|
38688
39049
|
|
|
38689
39050
|
var _trimmedEndIndex = trimmedEndIndex;
|
|
38690
39051
|
|
|
38691
39052
|
/** Used to match leading whitespace. */
|
|
38692
|
-
var reTrimStart = /^\s+/;
|
|
38693
39053
|
|
|
39054
|
+
|
|
39055
|
+
var reTrimStart = /^\s+/;
|
|
38694
39056
|
/**
|
|
38695
39057
|
* The base implementation of `_.trim`.
|
|
38696
39058
|
*
|
|
@@ -38698,35 +39060,36 @@ var reTrimStart = /^\s+/;
|
|
|
38698
39060
|
* @param {string} string The string to trim.
|
|
38699
39061
|
* @returns {string} Returns the trimmed string.
|
|
38700
39062
|
*/
|
|
39063
|
+
|
|
38701
39064
|
function baseTrim(string) {
|
|
38702
|
-
return string
|
|
38703
|
-
? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
38704
|
-
: string;
|
|
39065
|
+
return string ? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '') : string;
|
|
38705
39066
|
}
|
|
38706
39067
|
|
|
38707
39068
|
var _baseTrim = baseTrim;
|
|
38708
39069
|
|
|
38709
39070
|
/** Built-in value references. */
|
|
38710
|
-
var Symbol = _root.Symbol;
|
|
38711
39071
|
|
|
38712
|
-
|
|
39072
|
+
|
|
39073
|
+
var Symbol$1 = _root.Symbol;
|
|
39074
|
+
var _Symbol = Symbol$1;
|
|
38713
39075
|
|
|
38714
39076
|
/** Used for built-in method references. */
|
|
38715
|
-
var objectProto$1 = Object.prototype;
|
|
38716
39077
|
|
|
39078
|
+
|
|
39079
|
+
var objectProto$1 = Object.prototype;
|
|
38717
39080
|
/** Used to check objects for own properties. */
|
|
38718
|
-
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
38719
39081
|
|
|
39082
|
+
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
38720
39083
|
/**
|
|
38721
39084
|
* Used to resolve the
|
|
38722
39085
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
38723
39086
|
* of values.
|
|
38724
39087
|
*/
|
|
38725
|
-
var nativeObjectToString$1 = objectProto$1.toString;
|
|
38726
39088
|
|
|
39089
|
+
var nativeObjectToString$1 = objectProto$1.toString;
|
|
38727
39090
|
/** Built-in value references. */
|
|
38728
|
-
var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
38729
39091
|
|
|
39092
|
+
var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
38730
39093
|
/**
|
|
38731
39094
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
38732
39095
|
*
|
|
@@ -38734,6 +39097,7 @@ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
|
38734
39097
|
* @param {*} value The value to query.
|
|
38735
39098
|
* @returns {string} Returns the raw `toStringTag`.
|
|
38736
39099
|
*/
|
|
39100
|
+
|
|
38737
39101
|
function getRawTag(value) {
|
|
38738
39102
|
var isOwn = hasOwnProperty.call(value, symToStringTag$1),
|
|
38739
39103
|
tag = value[symToStringTag$1];
|
|
@@ -38744,6 +39108,7 @@ function getRawTag(value) {
|
|
|
38744
39108
|
} catch (e) {}
|
|
38745
39109
|
|
|
38746
39110
|
var result = nativeObjectToString$1.call(value);
|
|
39111
|
+
|
|
38747
39112
|
if (unmasked) {
|
|
38748
39113
|
if (isOwn) {
|
|
38749
39114
|
value[symToStringTag$1] = tag;
|
|
@@ -38751,6 +39116,7 @@ function getRawTag(value) {
|
|
|
38751
39116
|
delete value[symToStringTag$1];
|
|
38752
39117
|
}
|
|
38753
39118
|
}
|
|
39119
|
+
|
|
38754
39120
|
return result;
|
|
38755
39121
|
}
|
|
38756
39122
|
|
|
@@ -38758,14 +39124,13 @@ var _getRawTag = getRawTag;
|
|
|
38758
39124
|
|
|
38759
39125
|
/** Used for built-in method references. */
|
|
38760
39126
|
var objectProto = Object.prototype;
|
|
38761
|
-
|
|
38762
39127
|
/**
|
|
38763
39128
|
* Used to resolve the
|
|
38764
39129
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
38765
39130
|
* of values.
|
|
38766
39131
|
*/
|
|
38767
|
-
var nativeObjectToString = objectProto.toString;
|
|
38768
39132
|
|
|
39133
|
+
var nativeObjectToString = objectProto.toString;
|
|
38769
39134
|
/**
|
|
38770
39135
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
38771
39136
|
*
|
|
@@ -38773,6 +39138,7 @@ var nativeObjectToString = objectProto.toString;
|
|
|
38773
39138
|
* @param {*} value The value to convert.
|
|
38774
39139
|
* @returns {string} Returns the converted string.
|
|
38775
39140
|
*/
|
|
39141
|
+
|
|
38776
39142
|
function objectToString(value) {
|
|
38777
39143
|
return nativeObjectToString.call(value);
|
|
38778
39144
|
}
|
|
@@ -38780,12 +39146,13 @@ function objectToString(value) {
|
|
|
38780
39146
|
var _objectToString = objectToString;
|
|
38781
39147
|
|
|
38782
39148
|
/** `Object#toString` result references. */
|
|
39149
|
+
|
|
39150
|
+
|
|
38783
39151
|
var nullTag = '[object Null]',
|
|
38784
39152
|
undefinedTag = '[object Undefined]';
|
|
38785
|
-
|
|
38786
39153
|
/** Built-in value references. */
|
|
38787
|
-
var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
38788
39154
|
|
|
39155
|
+
var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
38789
39156
|
/**
|
|
38790
39157
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
38791
39158
|
*
|
|
@@ -38793,13 +39160,13 @@ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
|
38793
39160
|
* @param {*} value The value to query.
|
|
38794
39161
|
* @returns {string} Returns the `toStringTag`.
|
|
38795
39162
|
*/
|
|
39163
|
+
|
|
38796
39164
|
function baseGetTag(value) {
|
|
38797
39165
|
if (value == null) {
|
|
38798
39166
|
return value === undefined ? undefinedTag : nullTag;
|
|
38799
39167
|
}
|
|
38800
|
-
|
|
38801
|
-
|
|
38802
|
-
: _objectToString(value);
|
|
39168
|
+
|
|
39169
|
+
return symToStringTag && symToStringTag in Object(value) ? _getRawTag(value) : _objectToString(value);
|
|
38803
39170
|
}
|
|
38804
39171
|
|
|
38805
39172
|
var _baseGetTag = baseGetTag;
|
|
@@ -38835,8 +39202,9 @@ function isObjectLike(value) {
|
|
|
38835
39202
|
var isObjectLike_1 = isObjectLike;
|
|
38836
39203
|
|
|
38837
39204
|
/** `Object#toString` result references. */
|
|
38838
|
-
var symbolTag = '[object Symbol]';
|
|
38839
39205
|
|
|
39206
|
+
|
|
39207
|
+
var symbolTag = '[object Symbol]';
|
|
38840
39208
|
/**
|
|
38841
39209
|
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
38842
39210
|
*
|
|
@@ -38854,28 +39222,29 @@ var symbolTag = '[object Symbol]';
|
|
|
38854
39222
|
* _.isSymbol('abc');
|
|
38855
39223
|
* // => false
|
|
38856
39224
|
*/
|
|
39225
|
+
|
|
38857
39226
|
function isSymbol(value) {
|
|
38858
|
-
return typeof value == 'symbol' ||
|
|
38859
|
-
(isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
|
|
39227
|
+
return typeof value == 'symbol' || isObjectLike_1(value) && _baseGetTag(value) == symbolTag;
|
|
38860
39228
|
}
|
|
38861
39229
|
|
|
38862
39230
|
var isSymbol_1 = isSymbol;
|
|
38863
39231
|
|
|
38864
39232
|
/** Used as references for various `Number` constants. */
|
|
38865
|
-
var NAN = 0 / 0;
|
|
38866
39233
|
|
|
39234
|
+
|
|
39235
|
+
var NAN = 0 / 0;
|
|
38867
39236
|
/** Used to detect bad signed hexadecimal string values. */
|
|
38868
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
38869
39237
|
|
|
39238
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
38870
39239
|
/** Used to detect binary string values. */
|
|
38871
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
38872
39240
|
|
|
39241
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
38873
39242
|
/** Used to detect octal string values. */
|
|
38874
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
38875
39243
|
|
|
39244
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
38876
39245
|
/** Built-in method references without a dependency on `root`. */
|
|
38877
|
-
var freeParseInt = parseInt;
|
|
38878
39246
|
|
|
39247
|
+
var freeParseInt = parseInt;
|
|
38879
39248
|
/**
|
|
38880
39249
|
* Converts `value` to a number.
|
|
38881
39250
|
*
|
|
@@ -38899,36 +39268,40 @@ var freeParseInt = parseInt;
|
|
|
38899
39268
|
* _.toNumber('3.2');
|
|
38900
39269
|
* // => 3.2
|
|
38901
39270
|
*/
|
|
39271
|
+
|
|
38902
39272
|
function toNumber(value) {
|
|
38903
39273
|
if (typeof value == 'number') {
|
|
38904
39274
|
return value;
|
|
38905
39275
|
}
|
|
39276
|
+
|
|
38906
39277
|
if (isSymbol_1(value)) {
|
|
38907
39278
|
return NAN;
|
|
38908
39279
|
}
|
|
39280
|
+
|
|
38909
39281
|
if (isObject_1(value)) {
|
|
38910
39282
|
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
38911
|
-
value = isObject_1(other) ?
|
|
39283
|
+
value = isObject_1(other) ? other + '' : other;
|
|
38912
39284
|
}
|
|
39285
|
+
|
|
38913
39286
|
if (typeof value != 'string') {
|
|
38914
39287
|
return value === 0 ? value : +value;
|
|
38915
39288
|
}
|
|
39289
|
+
|
|
38916
39290
|
value = _baseTrim(value);
|
|
38917
39291
|
var isBinary = reIsBinary.test(value);
|
|
38918
|
-
return
|
|
38919
|
-
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
38920
|
-
: (reIsBadHex.test(value) ? NAN : +value);
|
|
39292
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
38921
39293
|
}
|
|
38922
39294
|
|
|
38923
39295
|
var toNumber_1 = toNumber;
|
|
38924
39296
|
|
|
38925
39297
|
/** Error message constants. */
|
|
38926
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
38927
39298
|
|
|
39299
|
+
|
|
39300
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
38928
39301
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
39302
|
+
|
|
38929
39303
|
var nativeMax = Math.max,
|
|
38930
39304
|
nativeMin = Math.min;
|
|
38931
|
-
|
|
38932
39305
|
/**
|
|
38933
39306
|
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
38934
39307
|
* milliseconds have elapsed since the last time the debounced function was
|
|
@@ -38983,6 +39356,7 @@ var nativeMax = Math.max,
|
|
|
38983
39356
|
* // Cancel the trailing debounced invocation.
|
|
38984
39357
|
* jQuery(window).on('popstate', debounced.cancel);
|
|
38985
39358
|
*/
|
|
39359
|
+
|
|
38986
39360
|
function debounce(func, wait, options) {
|
|
38987
39361
|
var lastArgs,
|
|
38988
39362
|
lastThis,
|
|
@@ -38998,7 +39372,9 @@ function debounce(func, wait, options) {
|
|
|
38998
39372
|
if (typeof func != 'function') {
|
|
38999
39373
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
39000
39374
|
}
|
|
39375
|
+
|
|
39001
39376
|
wait = toNumber_1(wait) || 0;
|
|
39377
|
+
|
|
39002
39378
|
if (isObject_1(options)) {
|
|
39003
39379
|
leading = !!options.leading;
|
|
39004
39380
|
maxing = 'maxWait' in options;
|
|
@@ -39009,7 +39385,6 @@ function debounce(func, wait, options) {
|
|
|
39009
39385
|
function invokeFunc(time) {
|
|
39010
39386
|
var args = lastArgs,
|
|
39011
39387
|
thisArg = lastThis;
|
|
39012
|
-
|
|
39013
39388
|
lastArgs = lastThis = undefined;
|
|
39014
39389
|
lastInvokeTime = time;
|
|
39015
39390
|
result = func.apply(thisArg, args);
|
|
@@ -39018,10 +39393,10 @@ function debounce(func, wait, options) {
|
|
|
39018
39393
|
|
|
39019
39394
|
function leadingEdge(time) {
|
|
39020
39395
|
// Reset any `maxWait` timer.
|
|
39021
|
-
lastInvokeTime = time;
|
|
39022
|
-
|
|
39023
|
-
timerId = setTimeout(timerExpired, wait);
|
|
39024
|
-
|
|
39396
|
+
lastInvokeTime = time; // Start the timer for the trailing edge.
|
|
39397
|
+
|
|
39398
|
+
timerId = setTimeout(timerExpired, wait); // Invoke the leading edge.
|
|
39399
|
+
|
|
39025
39400
|
return leading ? invokeFunc(time) : result;
|
|
39026
39401
|
}
|
|
39027
39402
|
|
|
@@ -39029,40 +39404,37 @@ function debounce(func, wait, options) {
|
|
|
39029
39404
|
var timeSinceLastCall = time - lastCallTime,
|
|
39030
39405
|
timeSinceLastInvoke = time - lastInvokeTime,
|
|
39031
39406
|
timeWaiting = wait - timeSinceLastCall;
|
|
39032
|
-
|
|
39033
|
-
return maxing
|
|
39034
|
-
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
|
39035
|
-
: timeWaiting;
|
|
39407
|
+
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
39036
39408
|
}
|
|
39037
39409
|
|
|
39038
39410
|
function shouldInvoke(time) {
|
|
39039
39411
|
var timeSinceLastCall = time - lastCallTime,
|
|
39040
|
-
timeSinceLastInvoke = time - lastInvokeTime;
|
|
39041
|
-
|
|
39042
|
-
// Either this is the first call, activity has stopped and we're at the
|
|
39412
|
+
timeSinceLastInvoke = time - lastInvokeTime; // Either this is the first call, activity has stopped and we're at the
|
|
39043
39413
|
// trailing edge, the system time has gone backwards and we're treating
|
|
39044
39414
|
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
39045
|
-
|
|
39046
|
-
|
|
39415
|
+
|
|
39416
|
+
return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
39047
39417
|
}
|
|
39048
39418
|
|
|
39049
39419
|
function timerExpired() {
|
|
39050
39420
|
var time = now_1();
|
|
39421
|
+
|
|
39051
39422
|
if (shouldInvoke(time)) {
|
|
39052
39423
|
return trailingEdge(time);
|
|
39053
|
-
}
|
|
39054
|
-
|
|
39424
|
+
} // Restart the timer.
|
|
39425
|
+
|
|
39426
|
+
|
|
39055
39427
|
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
39056
39428
|
}
|
|
39057
39429
|
|
|
39058
39430
|
function trailingEdge(time) {
|
|
39059
|
-
timerId = undefined;
|
|
39060
|
-
|
|
39061
|
-
// Only invoke if we have `lastArgs` which means `func` has been
|
|
39431
|
+
timerId = undefined; // Only invoke if we have `lastArgs` which means `func` has been
|
|
39062
39432
|
// debounced at least once.
|
|
39433
|
+
|
|
39063
39434
|
if (trailing && lastArgs) {
|
|
39064
39435
|
return invokeFunc(time);
|
|
39065
39436
|
}
|
|
39437
|
+
|
|
39066
39438
|
lastArgs = lastThis = undefined;
|
|
39067
39439
|
return result;
|
|
39068
39440
|
}
|
|
@@ -39071,6 +39443,7 @@ function debounce(func, wait, options) {
|
|
|
39071
39443
|
if (timerId !== undefined) {
|
|
39072
39444
|
clearTimeout(timerId);
|
|
39073
39445
|
}
|
|
39446
|
+
|
|
39074
39447
|
lastInvokeTime = 0;
|
|
39075
39448
|
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
39076
39449
|
}
|
|
@@ -39082,7 +39455,6 @@ function debounce(func, wait, options) {
|
|
|
39082
39455
|
function debounced() {
|
|
39083
39456
|
var time = now_1(),
|
|
39084
39457
|
isInvoking = shouldInvoke(time);
|
|
39085
|
-
|
|
39086
39458
|
lastArgs = arguments;
|
|
39087
39459
|
lastThis = this;
|
|
39088
39460
|
lastCallTime = time;
|
|
@@ -39091,6 +39463,7 @@ function debounce(func, wait, options) {
|
|
|
39091
39463
|
if (timerId === undefined) {
|
|
39092
39464
|
return leadingEdge(lastCallTime);
|
|
39093
39465
|
}
|
|
39466
|
+
|
|
39094
39467
|
if (maxing) {
|
|
39095
39468
|
// Handle invocations in a tight loop.
|
|
39096
39469
|
clearTimeout(timerId);
|
|
@@ -39098,11 +39471,14 @@ function debounce(func, wait, options) {
|
|
|
39098
39471
|
return invokeFunc(lastCallTime);
|
|
39099
39472
|
}
|
|
39100
39473
|
}
|
|
39474
|
+
|
|
39101
39475
|
if (timerId === undefined) {
|
|
39102
39476
|
timerId = setTimeout(timerExpired, wait);
|
|
39103
39477
|
}
|
|
39478
|
+
|
|
39104
39479
|
return result;
|
|
39105
39480
|
}
|
|
39481
|
+
|
|
39106
39482
|
debounced.cancel = cancel;
|
|
39107
39483
|
debounced.flush = flush;
|
|
39108
39484
|
return debounced;
|
|
@@ -39111,37 +39487,30 @@ function debounce(func, wait, options) {
|
|
|
39111
39487
|
var debounce_1 = debounce;
|
|
39112
39488
|
|
|
39113
39489
|
let raf = null;
|
|
39114
|
-
|
|
39490
|
+
|
|
39491
|
+
function requestAnimationFrame(callback) {
|
|
39115
39492
|
if (!raf) {
|
|
39116
|
-
raf = (
|
|
39117
|
-
|
|
39118
|
-
|
|
39119
|
-
window.mozRequestAnimationFrame ||
|
|
39120
|
-
function (callback) {
|
|
39121
|
-
return setTimeout(callback, 16)
|
|
39122
|
-
}
|
|
39123
|
-
).bind(window);
|
|
39493
|
+
raf = (window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (callback) {
|
|
39494
|
+
return setTimeout(callback, 16);
|
|
39495
|
+
}).bind(window);
|
|
39124
39496
|
}
|
|
39125
|
-
|
|
39497
|
+
|
|
39498
|
+
return raf(callback);
|
|
39126
39499
|
}
|
|
39127
39500
|
|
|
39128
39501
|
let caf = null;
|
|
39129
|
-
|
|
39502
|
+
|
|
39503
|
+
function cancelAnimationFrame(id) {
|
|
39130
39504
|
if (!caf) {
|
|
39131
|
-
caf = (
|
|
39132
|
-
|
|
39133
|
-
|
|
39134
|
-
window.mozCancelAnimationFrame ||
|
|
39135
|
-
function (id) {
|
|
39136
|
-
clearTimeout(id);
|
|
39137
|
-
}
|
|
39138
|
-
).bind(window);
|
|
39505
|
+
caf = (window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || function (id) {
|
|
39506
|
+
clearTimeout(id);
|
|
39507
|
+
}).bind(window);
|
|
39139
39508
|
}
|
|
39140
39509
|
|
|
39141
39510
|
caf(id);
|
|
39142
39511
|
}
|
|
39143
39512
|
|
|
39144
|
-
function createStyles
|
|
39513
|
+
function createStyles(styleText) {
|
|
39145
39514
|
var style = document.createElement('style');
|
|
39146
39515
|
style.type = 'text/css';
|
|
39147
39516
|
|
|
@@ -39150,60 +39519,61 @@ function createStyles (styleText) {
|
|
|
39150
39519
|
} else {
|
|
39151
39520
|
style.appendChild(document.createTextNode(styleText));
|
|
39152
39521
|
}
|
|
39522
|
+
|
|
39153
39523
|
(document.querySelector('head') || document.body).appendChild(style);
|
|
39154
|
-
return style
|
|
39524
|
+
return style;
|
|
39155
39525
|
}
|
|
39156
39526
|
|
|
39157
|
-
function createElement
|
|
39527
|
+
function createElement(tagName, props = {}) {
|
|
39158
39528
|
let elem = document.createElement(tagName);
|
|
39159
39529
|
Object.keys(props).forEach(key => {
|
|
39160
39530
|
elem[key] = props[key];
|
|
39161
39531
|
});
|
|
39162
|
-
return elem
|
|
39532
|
+
return elem;
|
|
39163
39533
|
}
|
|
39164
39534
|
|
|
39165
|
-
function getComputedStyle
|
|
39535
|
+
function getComputedStyle(elem, prop, pseudo) {
|
|
39166
39536
|
// for older versions of Firefox, `getComputedStyle` required
|
|
39167
39537
|
// the second argument and may return `null` for some elements
|
|
39168
39538
|
// when `display: none`
|
|
39169
39539
|
let computedStyle = window.getComputedStyle(elem, pseudo || null) || {
|
|
39170
39540
|
display: 'none'
|
|
39171
39541
|
};
|
|
39172
|
-
|
|
39173
|
-
return computedStyle[prop]
|
|
39542
|
+
return computedStyle[prop];
|
|
39174
39543
|
}
|
|
39175
39544
|
|
|
39176
|
-
function getRenderInfo
|
|
39545
|
+
function getRenderInfo(elem) {
|
|
39177
39546
|
if (!document.documentElement.contains(elem)) {
|
|
39178
39547
|
return {
|
|
39179
39548
|
detached: true,
|
|
39180
39549
|
rendered: false
|
|
39181
|
-
}
|
|
39550
|
+
};
|
|
39182
39551
|
}
|
|
39183
39552
|
|
|
39184
39553
|
let current = elem;
|
|
39554
|
+
|
|
39185
39555
|
while (current !== document) {
|
|
39186
39556
|
if (getComputedStyle(current, 'display') === 'none') {
|
|
39187
39557
|
return {
|
|
39188
39558
|
detached: false,
|
|
39189
39559
|
rendered: false
|
|
39190
|
-
}
|
|
39560
|
+
};
|
|
39191
39561
|
}
|
|
39562
|
+
|
|
39192
39563
|
current = current.parentNode;
|
|
39193
39564
|
}
|
|
39194
39565
|
|
|
39195
39566
|
return {
|
|
39196
39567
|
detached: false,
|
|
39197
39568
|
rendered: true
|
|
39198
|
-
}
|
|
39569
|
+
};
|
|
39199
39570
|
}
|
|
39200
39571
|
|
|
39201
39572
|
var css = ".resize-triggers{visibility:hidden;opacity:0}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:\"\";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}";
|
|
39202
|
-
|
|
39203
39573
|
let total = 0;
|
|
39204
39574
|
let style = null;
|
|
39205
39575
|
|
|
39206
|
-
function addListener
|
|
39576
|
+
function addListener(elem, callback) {
|
|
39207
39577
|
if (!elem.__resize_mutation_handler__) {
|
|
39208
39578
|
elem.__resize_mutation_handler__ = handleMutation.bind(elem);
|
|
39209
39579
|
}
|
|
@@ -39212,37 +39582,47 @@ function addListener (elem, callback) {
|
|
|
39212
39582
|
|
|
39213
39583
|
if (!listeners) {
|
|
39214
39584
|
elem.__resize_listeners__ = [];
|
|
39585
|
+
|
|
39215
39586
|
if (window.ResizeObserver) {
|
|
39216
|
-
let {
|
|
39587
|
+
let {
|
|
39588
|
+
offsetWidth,
|
|
39589
|
+
offsetHeight
|
|
39590
|
+
} = elem;
|
|
39217
39591
|
let ro = new ResizeObserver(() => {
|
|
39218
39592
|
if (!elem.__resize_observer_triggered__) {
|
|
39219
39593
|
elem.__resize_observer_triggered__ = true;
|
|
39594
|
+
|
|
39220
39595
|
if (elem.offsetWidth === offsetWidth && elem.offsetHeight === offsetHeight) {
|
|
39221
|
-
return
|
|
39596
|
+
return;
|
|
39222
39597
|
}
|
|
39223
39598
|
}
|
|
39599
|
+
|
|
39224
39600
|
runCallbacks(elem);
|
|
39225
|
-
});
|
|
39601
|
+
}); // initially display none won't trigger ResizeObserver callback
|
|
39226
39602
|
|
|
39227
|
-
|
|
39228
|
-
|
|
39603
|
+
let {
|
|
39604
|
+
detached,
|
|
39605
|
+
rendered
|
|
39606
|
+
} = getRenderInfo(elem);
|
|
39229
39607
|
elem.__resize_observer_triggered__ = detached === false && rendered === false;
|
|
39230
39608
|
elem.__resize_observer__ = ro;
|
|
39231
39609
|
ro.observe(elem);
|
|
39232
39610
|
} else if (elem.attachEvent && elem.addEventListener) {
|
|
39233
39611
|
// targeting IE9/10
|
|
39234
|
-
elem.__resize_legacy_resize_handler__ = function handleLegacyResize
|
|
39612
|
+
elem.__resize_legacy_resize_handler__ = function handleLegacyResize() {
|
|
39235
39613
|
runCallbacks(elem);
|
|
39236
39614
|
};
|
|
39615
|
+
|
|
39237
39616
|
elem.attachEvent('onresize', elem.__resize_legacy_resize_handler__);
|
|
39238
39617
|
document.addEventListener('DOMSubtreeModified', elem.__resize_mutation_handler__);
|
|
39239
39618
|
} else {
|
|
39240
39619
|
if (!total) {
|
|
39241
39620
|
style = createStyles(css);
|
|
39242
39621
|
}
|
|
39243
|
-
initTriggers(elem);
|
|
39244
39622
|
|
|
39623
|
+
initTriggers(elem);
|
|
39245
39624
|
elem.__resize_rendered__ = getRenderInfo(elem).rendered;
|
|
39625
|
+
|
|
39246
39626
|
if (window.MutationObserver) {
|
|
39247
39627
|
let mo = new MutationObserver(elem.__resize_mutation_handler__);
|
|
39248
39628
|
mo.observe(document, {
|
|
@@ -39257,78 +39637,102 @@ function addListener (elem, callback) {
|
|
|
39257
39637
|
}
|
|
39258
39638
|
|
|
39259
39639
|
elem.__resize_listeners__.push(callback);
|
|
39640
|
+
|
|
39260
39641
|
total++;
|
|
39261
39642
|
}
|
|
39262
39643
|
|
|
39263
|
-
function removeListener
|
|
39644
|
+
function removeListener(elem, callback) {
|
|
39264
39645
|
// targeting IE9/10
|
|
39265
39646
|
if (elem.detachEvent && elem.removeEventListener) {
|
|
39266
39647
|
elem.detachEvent('onresize', elem.__resize_legacy_resize_handler__);
|
|
39267
39648
|
document.removeEventListener('DOMSubtreeModified', elem.__resize_mutation_handler__);
|
|
39268
|
-
return
|
|
39649
|
+
return;
|
|
39269
39650
|
}
|
|
39270
39651
|
|
|
39271
39652
|
let listeners = elem.__resize_listeners__;
|
|
39653
|
+
|
|
39272
39654
|
if (!listeners) {
|
|
39273
|
-
return
|
|
39655
|
+
return;
|
|
39274
39656
|
}
|
|
39657
|
+
|
|
39275
39658
|
listeners.splice(listeners.indexOf(callback), 1);
|
|
39276
39659
|
|
|
39277
39660
|
if (!listeners.length) {
|
|
39278
39661
|
if (elem.__resize_observer__) {
|
|
39279
39662
|
elem.__resize_observer__.unobserve(elem);
|
|
39663
|
+
|
|
39280
39664
|
elem.__resize_observer__.disconnect();
|
|
39665
|
+
|
|
39281
39666
|
elem.__resize_observer__ = null;
|
|
39282
39667
|
} else {
|
|
39283
39668
|
if (elem.__resize_mutation_observer__) {
|
|
39284
39669
|
elem.__resize_mutation_observer__.disconnect();
|
|
39670
|
+
|
|
39285
39671
|
elem.__resize_mutation_observer__ = null;
|
|
39286
39672
|
}
|
|
39673
|
+
|
|
39287
39674
|
elem.removeEventListener('scroll', handleScroll);
|
|
39288
39675
|
elem.removeChild(elem.__resize_triggers__.triggers);
|
|
39289
39676
|
elem.__resize_triggers__ = null;
|
|
39290
39677
|
}
|
|
39678
|
+
|
|
39291
39679
|
elem.__resize_listeners__ = null;
|
|
39292
39680
|
}
|
|
39293
39681
|
|
|
39294
|
-
if (
|
|
39682
|
+
if (! --total && style) {
|
|
39295
39683
|
style.parentNode.removeChild(style);
|
|
39296
39684
|
}
|
|
39297
39685
|
}
|
|
39298
39686
|
|
|
39299
|
-
function getUpdatedSize
|
|
39300
|
-
let {
|
|
39301
|
-
|
|
39687
|
+
function getUpdatedSize(elem) {
|
|
39688
|
+
let {
|
|
39689
|
+
width,
|
|
39690
|
+
height
|
|
39691
|
+
} = elem.__resize_last__;
|
|
39692
|
+
let {
|
|
39693
|
+
offsetWidth,
|
|
39694
|
+
offsetHeight
|
|
39695
|
+
} = elem;
|
|
39696
|
+
|
|
39302
39697
|
if (offsetWidth !== width || offsetHeight !== height) {
|
|
39303
39698
|
return {
|
|
39304
39699
|
width: offsetWidth,
|
|
39305
39700
|
height: offsetHeight
|
|
39306
|
-
}
|
|
39701
|
+
};
|
|
39307
39702
|
}
|
|
39308
|
-
|
|
39703
|
+
|
|
39704
|
+
return null;
|
|
39309
39705
|
}
|
|
39310
39706
|
|
|
39311
|
-
function handleMutation
|
|
39707
|
+
function handleMutation() {
|
|
39312
39708
|
// `this` denotes the scrolling element
|
|
39313
|
-
let {
|
|
39709
|
+
let {
|
|
39710
|
+
rendered,
|
|
39711
|
+
detached
|
|
39712
|
+
} = getRenderInfo(this);
|
|
39713
|
+
|
|
39314
39714
|
if (rendered !== this.__resize_rendered__) {
|
|
39315
39715
|
if (!detached && this.__resize_triggers__) {
|
|
39316
39716
|
resetTriggers(this);
|
|
39317
39717
|
this.addEventListener('scroll', handleScroll, true);
|
|
39318
39718
|
}
|
|
39719
|
+
|
|
39319
39720
|
this.__resize_rendered__ = rendered;
|
|
39320
39721
|
runCallbacks(this);
|
|
39321
39722
|
}
|
|
39322
39723
|
}
|
|
39323
39724
|
|
|
39324
|
-
function handleScroll
|
|
39725
|
+
function handleScroll() {
|
|
39325
39726
|
// `this` denotes the scrolling element
|
|
39326
39727
|
resetTriggers(this);
|
|
39728
|
+
|
|
39327
39729
|
if (this.__resize_raf__) {
|
|
39328
39730
|
cancelAnimationFrame(this.__resize_raf__);
|
|
39329
39731
|
}
|
|
39732
|
+
|
|
39330
39733
|
this.__resize_raf__ = requestAnimationFrame(() => {
|
|
39331
39734
|
let updated = getUpdatedSize(this);
|
|
39735
|
+
|
|
39332
39736
|
if (updated) {
|
|
39333
39737
|
this.__resize_last__ = updated;
|
|
39334
39738
|
runCallbacks(this);
|
|
@@ -39336,24 +39740,25 @@ function handleScroll () {
|
|
|
39336
39740
|
});
|
|
39337
39741
|
}
|
|
39338
39742
|
|
|
39339
|
-
function runCallbacks
|
|
39743
|
+
function runCallbacks(elem) {
|
|
39340
39744
|
if (!elem || !elem.__resize_listeners__) {
|
|
39341
|
-
return
|
|
39745
|
+
return;
|
|
39342
39746
|
}
|
|
39747
|
+
|
|
39343
39748
|
elem.__resize_listeners__.forEach(callback => {
|
|
39344
39749
|
callback.call(elem);
|
|
39345
39750
|
});
|
|
39346
39751
|
}
|
|
39347
39752
|
|
|
39348
|
-
function initTriggers
|
|
39753
|
+
function initTriggers(elem) {
|
|
39349
39754
|
let position = getComputedStyle(elem, 'position');
|
|
39755
|
+
|
|
39350
39756
|
if (!position || position === 'static') {
|
|
39351
39757
|
elem.style.position = 'relative';
|
|
39352
39758
|
}
|
|
39353
39759
|
|
|
39354
39760
|
elem.__resize_old_position__ = position;
|
|
39355
39761
|
elem.__resize_last__ = {};
|
|
39356
|
-
|
|
39357
39762
|
let triggers = createElement('div', {
|
|
39358
39763
|
className: 'resize-triggers'
|
|
39359
39764
|
});
|
|
@@ -39368,31 +39773,38 @@ function initTriggers (elem) {
|
|
|
39368
39773
|
triggers.appendChild(expand);
|
|
39369
39774
|
triggers.appendChild(contract);
|
|
39370
39775
|
elem.appendChild(triggers);
|
|
39371
|
-
|
|
39372
39776
|
elem.__resize_triggers__ = {
|
|
39373
39777
|
triggers,
|
|
39374
39778
|
expand,
|
|
39375
39779
|
expandChild,
|
|
39376
39780
|
contract
|
|
39377
39781
|
};
|
|
39378
|
-
|
|
39379
39782
|
resetTriggers(elem);
|
|
39380
39783
|
elem.addEventListener('scroll', handleScroll, true);
|
|
39381
|
-
|
|
39382
39784
|
elem.__resize_last__ = {
|
|
39383
39785
|
width: elem.offsetWidth,
|
|
39384
39786
|
height: elem.offsetHeight
|
|
39385
39787
|
};
|
|
39386
39788
|
}
|
|
39387
39789
|
|
|
39388
|
-
function resetTriggers
|
|
39389
|
-
let {
|
|
39390
|
-
|
|
39391
|
-
|
|
39392
|
-
|
|
39393
|
-
|
|
39790
|
+
function resetTriggers(elem) {
|
|
39791
|
+
let {
|
|
39792
|
+
expand,
|
|
39793
|
+
expandChild,
|
|
39794
|
+
contract
|
|
39795
|
+
} = elem.__resize_triggers__; // batch read
|
|
39796
|
+
|
|
39797
|
+
let {
|
|
39798
|
+
scrollWidth: csw,
|
|
39799
|
+
scrollHeight: csh
|
|
39800
|
+
} = contract;
|
|
39801
|
+
let {
|
|
39802
|
+
offsetWidth: eow,
|
|
39803
|
+
offsetHeight: eoh,
|
|
39804
|
+
scrollWidth: esw,
|
|
39805
|
+
scrollHeight: esh
|
|
39806
|
+
} = expand; // batch write
|
|
39394
39807
|
|
|
39395
|
-
// batch write
|
|
39396
39808
|
contract.scrollLeft = csw;
|
|
39397
39809
|
contract.scrollTop = csh;
|
|
39398
39810
|
expandChild.style.width = eow + 1 + 'px';
|
|
@@ -39403,58 +39815,10 @@ function resetTriggers (elem) {
|
|
|
39403
39815
|
|
|
39404
39816
|
//
|
|
39405
39817
|
|
|
39406
|
-
|
|
39407
|
-
const
|
|
39408
|
-
'legendselectchanged',
|
|
39409
|
-
'legendselected',
|
|
39410
|
-
'legendunselected',
|
|
39411
|
-
'legendscroll',
|
|
39412
|
-
'datazoom',
|
|
39413
|
-
'datarangeselected',
|
|
39414
|
-
'timelinechanged',
|
|
39415
|
-
'timelineplaychanged',
|
|
39416
|
-
'restore',
|
|
39417
|
-
'dataviewchanged',
|
|
39418
|
-
'magictypechanged',
|
|
39419
|
-
'geoselectchanged',
|
|
39420
|
-
'geoselected',
|
|
39421
|
-
'geounselected',
|
|
39422
|
-
'pieselectchanged',
|
|
39423
|
-
'pieselected',
|
|
39424
|
-
'pieunselected',
|
|
39425
|
-
'mapselectchanged',
|
|
39426
|
-
'mapselected',
|
|
39427
|
-
'mapunselected',
|
|
39428
|
-
'axisareaselected',
|
|
39429
|
-
'focusnodeadjacency',
|
|
39430
|
-
'unfocusnodeadjacency',
|
|
39431
|
-
'brush',
|
|
39432
|
-
'brushselected',
|
|
39433
|
-
'rendered',
|
|
39434
|
-
'finished',
|
|
39435
|
-
'click',
|
|
39436
|
-
'dblclick',
|
|
39437
|
-
'mouseover',
|
|
39438
|
-
'mouseout',
|
|
39439
|
-
'mousemove',
|
|
39440
|
-
'mousedown',
|
|
39441
|
-
'mouseup',
|
|
39442
|
-
'globalout',
|
|
39443
|
-
'contextmenu'
|
|
39444
|
-
];
|
|
39445
|
-
|
|
39446
|
-
const ZR_EVENTS = [
|
|
39447
|
-
'click',
|
|
39448
|
-
'mousedown',
|
|
39449
|
-
'mouseup',
|
|
39450
|
-
'mousewheel',
|
|
39451
|
-
'dblclick',
|
|
39452
|
-
'contextmenu'
|
|
39453
|
-
];
|
|
39454
|
-
|
|
39818
|
+
const EVENTS = ['legendselectchanged', 'legendselected', 'legendunselected', 'legendscroll', 'datazoom', 'datarangeselected', 'timelinechanged', 'timelineplaychanged', 'restore', 'dataviewchanged', 'magictypechanged', 'geoselectchanged', 'geoselected', 'geounselected', 'pieselectchanged', 'pieselected', 'pieunselected', 'mapselectchanged', 'mapselected', 'mapunselected', 'axisareaselected', 'focusnodeadjacency', 'unfocusnodeadjacency', 'brush', 'brushselected', 'rendered', 'finished', 'click', 'dblclick', 'mouseover', 'mouseout', 'mousemove', 'mousedown', 'mouseup', 'globalout', 'contextmenu'];
|
|
39819
|
+
const ZR_EVENTS = ['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick', 'contextmenu'];
|
|
39455
39820
|
const INIT_TRIGGERS = ['theme', 'initOptions', 'autoresize'];
|
|
39456
39821
|
const REWATCH_TRIGGERS = ['manualUpdate', 'watchShallow'];
|
|
39457
|
-
|
|
39458
39822
|
var script$1 = {
|
|
39459
39823
|
props: {
|
|
39460
39824
|
options: Object,
|
|
@@ -39465,19 +39829,22 @@ var script$1 = {
|
|
|
39465
39829
|
watchShallow: Boolean,
|
|
39466
39830
|
manualUpdate: Boolean
|
|
39467
39831
|
},
|
|
39468
|
-
|
|
39832
|
+
|
|
39833
|
+
data() {
|
|
39469
39834
|
return {
|
|
39470
39835
|
lastArea: 0
|
|
39471
|
-
}
|
|
39836
|
+
};
|
|
39472
39837
|
},
|
|
39838
|
+
|
|
39473
39839
|
watch: {
|
|
39474
|
-
group
|
|
39840
|
+
group(group) {
|
|
39475
39841
|
this.chart.group = group;
|
|
39476
39842
|
}
|
|
39843
|
+
|
|
39477
39844
|
},
|
|
39478
39845
|
methods: {
|
|
39479
39846
|
// provide an explicit merge option method
|
|
39480
|
-
mergeOptions
|
|
39847
|
+
mergeOptions(options, notMerge, lazyUpdate) {
|
|
39481
39848
|
if (this.manualUpdate) {
|
|
39482
39849
|
this.manualOptions = options;
|
|
39483
39850
|
}
|
|
@@ -39488,62 +39855,80 @@ var script$1 = {
|
|
|
39488
39855
|
this.delegateMethod('setOption', options, notMerge, lazyUpdate);
|
|
39489
39856
|
}
|
|
39490
39857
|
},
|
|
39858
|
+
|
|
39491
39859
|
// just delegates ECharts methods to Vue component
|
|
39492
39860
|
// use explicit params to reduce transpiled size for now
|
|
39493
|
-
appendData
|
|
39861
|
+
appendData(params) {
|
|
39494
39862
|
this.delegateMethod('appendData', params);
|
|
39495
39863
|
},
|
|
39496
|
-
|
|
39864
|
+
|
|
39865
|
+
resize(options) {
|
|
39497
39866
|
this.delegateMethod('resize', options);
|
|
39498
39867
|
},
|
|
39499
|
-
|
|
39868
|
+
|
|
39869
|
+
dispatchAction(payload) {
|
|
39500
39870
|
this.delegateMethod('dispatchAction', payload);
|
|
39501
39871
|
},
|
|
39502
|
-
|
|
39503
|
-
|
|
39872
|
+
|
|
39873
|
+
convertToPixel(finder, value) {
|
|
39874
|
+
return this.delegateMethod('convertToPixel', finder, value);
|
|
39504
39875
|
},
|
|
39505
|
-
|
|
39506
|
-
|
|
39876
|
+
|
|
39877
|
+
convertFromPixel(finder, value) {
|
|
39878
|
+
return this.delegateMethod('convertFromPixel', finder, value);
|
|
39507
39879
|
},
|
|
39508
|
-
|
|
39509
|
-
|
|
39880
|
+
|
|
39881
|
+
containPixel(finder, value) {
|
|
39882
|
+
return this.delegateMethod('containPixel', finder, value);
|
|
39510
39883
|
},
|
|
39511
|
-
|
|
39884
|
+
|
|
39885
|
+
showLoading(type, options) {
|
|
39512
39886
|
this.delegateMethod('showLoading', type, options);
|
|
39513
39887
|
},
|
|
39514
|
-
|
|
39888
|
+
|
|
39889
|
+
hideLoading() {
|
|
39515
39890
|
this.delegateMethod('hideLoading');
|
|
39516
39891
|
},
|
|
39517
|
-
|
|
39518
|
-
|
|
39892
|
+
|
|
39893
|
+
getDataURL(options) {
|
|
39894
|
+
return this.delegateMethod('getDataURL', options);
|
|
39519
39895
|
},
|
|
39520
|
-
|
|
39521
|
-
|
|
39896
|
+
|
|
39897
|
+
getConnectedDataURL(options) {
|
|
39898
|
+
return this.delegateMethod('getConnectedDataURL', options);
|
|
39522
39899
|
},
|
|
39523
|
-
|
|
39900
|
+
|
|
39901
|
+
clear() {
|
|
39524
39902
|
this.delegateMethod('clear');
|
|
39525
39903
|
},
|
|
39526
|
-
|
|
39904
|
+
|
|
39905
|
+
dispose() {
|
|
39527
39906
|
this.delegateMethod('dispose');
|
|
39528
39907
|
},
|
|
39529
|
-
|
|
39908
|
+
|
|
39909
|
+
delegateMethod(name, ...args) {
|
|
39530
39910
|
if (!this.chart) {
|
|
39531
39911
|
this.init();
|
|
39532
39912
|
}
|
|
39533
|
-
|
|
39913
|
+
|
|
39914
|
+
return this.chart[name](...args);
|
|
39534
39915
|
},
|
|
39535
|
-
|
|
39916
|
+
|
|
39917
|
+
delegateGet(methodName) {
|
|
39536
39918
|
if (!this.chart) {
|
|
39537
39919
|
this.init();
|
|
39538
39920
|
}
|
|
39539
|
-
|
|
39921
|
+
|
|
39922
|
+
return this.chart[methodName]();
|
|
39540
39923
|
},
|
|
39541
|
-
|
|
39542
|
-
|
|
39924
|
+
|
|
39925
|
+
getArea() {
|
|
39926
|
+
return this.$el.offsetWidth * this.$el.offsetHeight;
|
|
39543
39927
|
},
|
|
39544
|
-
|
|
39928
|
+
|
|
39929
|
+
init(options) {
|
|
39545
39930
|
if (this.chart) {
|
|
39546
|
-
return
|
|
39931
|
+
return;
|
|
39547
39932
|
}
|
|
39548
39933
|
|
|
39549
39934
|
let chart = echarts.init(this.$el, this.theme, this.initOptions);
|
|
@@ -39552,15 +39937,13 @@ var script$1 = {
|
|
|
39552
39937
|
chart.group = this.group;
|
|
39553
39938
|
}
|
|
39554
39939
|
|
|
39555
|
-
chart.setOption(options || this.manualOptions || this.options || {}, true);
|
|
39940
|
+
chart.setOption(options || this.manualOptions || this.options || {}, true); // expose ECharts events as custom events
|
|
39556
39941
|
|
|
39557
|
-
// expose ECharts events as custom events
|
|
39558
39942
|
EVENTS.forEach(event => {
|
|
39559
39943
|
chart.on(event, params => {
|
|
39560
39944
|
this.$emit(event, params);
|
|
39561
39945
|
});
|
|
39562
39946
|
});
|
|
39563
|
-
|
|
39564
39947
|
ZR_EVENTS.forEach(event => {
|
|
39565
39948
|
chart.getZr().on(event, params => {
|
|
39566
39949
|
this.$emit(`zr:${event}`, params);
|
|
@@ -39578,8 +39961,11 @@ var script$1 = {
|
|
|
39578
39961
|
} else {
|
|
39579
39962
|
this.resize();
|
|
39580
39963
|
}
|
|
39964
|
+
|
|
39581
39965
|
this.lastArea = this.getArea();
|
|
39582
|
-
}, 100, {
|
|
39966
|
+
}, 100, {
|
|
39967
|
+
leading: true
|
|
39968
|
+
});
|
|
39583
39969
|
addListener(this.$el, this.__resizeHandler);
|
|
39584
39970
|
}
|
|
39585
39971
|
|
|
@@ -39590,34 +39976,35 @@ var script$1 = {
|
|
|
39590
39976
|
width: {
|
|
39591
39977
|
configurable: true,
|
|
39592
39978
|
get: () => {
|
|
39593
|
-
return this.delegateGet('getWidth')
|
|
39979
|
+
return this.delegateGet('getWidth');
|
|
39594
39980
|
}
|
|
39595
39981
|
},
|
|
39596
39982
|
height: {
|
|
39597
39983
|
configurable: true,
|
|
39598
39984
|
get: () => {
|
|
39599
|
-
return this.delegateGet('getHeight')
|
|
39985
|
+
return this.delegateGet('getHeight');
|
|
39600
39986
|
}
|
|
39601
39987
|
},
|
|
39602
39988
|
isDisposed: {
|
|
39603
39989
|
configurable: true,
|
|
39604
39990
|
get: () => {
|
|
39605
|
-
return !!this.delegateGet('isDisposed')
|
|
39991
|
+
return !!this.delegateGet('isDisposed');
|
|
39606
39992
|
}
|
|
39607
39993
|
},
|
|
39608
39994
|
computedOptions: {
|
|
39609
39995
|
configurable: true,
|
|
39610
39996
|
get: () => {
|
|
39611
|
-
return this.delegateGet('getOption')
|
|
39997
|
+
return this.delegateGet('getOption');
|
|
39612
39998
|
}
|
|
39613
39999
|
}
|
|
39614
40000
|
});
|
|
39615
|
-
|
|
39616
40001
|
this.chart = chart;
|
|
39617
40002
|
},
|
|
39618
|
-
|
|
40003
|
+
|
|
40004
|
+
initOptionsWatcher() {
|
|
39619
40005
|
if (this.__unwatchOptions) {
|
|
39620
40006
|
this.__unwatchOptions();
|
|
40007
|
+
|
|
39621
40008
|
this.__unwatchOptions = null;
|
|
39622
40009
|
}
|
|
39623
40010
|
|
|
@@ -39635,32 +40022,39 @@ var script$1 = {
|
|
|
39635
40022
|
// will trigger `this.chart.setOption(val, false)`
|
|
39636
40023
|
this.chart.setOption(val, val !== oldVal);
|
|
39637
40024
|
}
|
|
39638
|
-
}, {
|
|
40025
|
+
}, {
|
|
40026
|
+
deep: !this.watchShallow
|
|
40027
|
+
});
|
|
39639
40028
|
}
|
|
39640
40029
|
},
|
|
39641
|
-
|
|
40030
|
+
|
|
40031
|
+
destroy() {
|
|
39642
40032
|
if (this.autoresize) {
|
|
39643
40033
|
removeListener(this.$el, this.__resizeHandler);
|
|
39644
40034
|
}
|
|
40035
|
+
|
|
39645
40036
|
this.dispose();
|
|
39646
40037
|
this.chart = null;
|
|
39647
40038
|
},
|
|
39648
|
-
|
|
40039
|
+
|
|
40040
|
+
refresh() {
|
|
39649
40041
|
if (this.chart) {
|
|
39650
40042
|
this.destroy();
|
|
39651
40043
|
this.init();
|
|
39652
40044
|
}
|
|
39653
40045
|
}
|
|
40046
|
+
|
|
39654
40047
|
},
|
|
39655
|
-
created () {
|
|
39656
|
-
this.initOptionsWatcher();
|
|
39657
40048
|
|
|
40049
|
+
created() {
|
|
40050
|
+
this.initOptionsWatcher();
|
|
39658
40051
|
INIT_TRIGGERS.forEach(prop => {
|
|
39659
40052
|
this.$watch(prop, () => {
|
|
39660
40053
|
this.refresh();
|
|
39661
|
-
}, {
|
|
40054
|
+
}, {
|
|
40055
|
+
deep: true
|
|
40056
|
+
});
|
|
39662
40057
|
});
|
|
39663
|
-
|
|
39664
40058
|
REWATCH_TRIGGERS.forEach(prop => {
|
|
39665
40059
|
this.$watch(prop, () => {
|
|
39666
40060
|
this.initOptionsWatcher();
|
|
@@ -39668,166 +40062,183 @@ var script$1 = {
|
|
|
39668
40062
|
});
|
|
39669
40063
|
});
|
|
39670
40064
|
},
|
|
39671
|
-
|
|
40065
|
+
|
|
40066
|
+
mounted() {
|
|
39672
40067
|
// auto init if `options` is already provided
|
|
39673
40068
|
if (this.options) {
|
|
39674
40069
|
this.init();
|
|
39675
40070
|
}
|
|
39676
40071
|
},
|
|
39677
|
-
|
|
40072
|
+
|
|
40073
|
+
activated() {
|
|
39678
40074
|
if (this.autoresize) {
|
|
39679
40075
|
this.chart && this.chart.resize();
|
|
39680
40076
|
}
|
|
39681
40077
|
},
|
|
39682
|
-
|
|
40078
|
+
|
|
40079
|
+
destroyed() {
|
|
39683
40080
|
if (this.chart) {
|
|
39684
40081
|
this.destroy();
|
|
39685
40082
|
}
|
|
39686
40083
|
},
|
|
39687
|
-
|
|
40084
|
+
|
|
40085
|
+
connect(group) {
|
|
39688
40086
|
if (typeof group !== 'string') {
|
|
39689
40087
|
group = group.map(chart => chart.chart);
|
|
39690
40088
|
}
|
|
40089
|
+
|
|
39691
40090
|
echarts.connect(group);
|
|
39692
40091
|
},
|
|
39693
|
-
|
|
40092
|
+
|
|
40093
|
+
disconnect(group) {
|
|
39694
40094
|
echarts.disConnect(group);
|
|
39695
40095
|
},
|
|
39696
|
-
|
|
40096
|
+
|
|
40097
|
+
registerMap(mapName, geoJSON, specialAreas) {
|
|
39697
40098
|
echarts.registerMap(mapName, geoJSON, specialAreas);
|
|
39698
40099
|
},
|
|
39699
|
-
|
|
40100
|
+
|
|
40101
|
+
registerTheme(name, theme) {
|
|
39700
40102
|
echarts.registerTheme(name, theme);
|
|
39701
40103
|
},
|
|
40104
|
+
|
|
39702
40105
|
graphic: echarts.graphic
|
|
39703
40106
|
};
|
|
39704
40107
|
|
|
39705
|
-
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
|
|
39706
|
-
|
|
39707
|
-
|
|
39708
|
-
|
|
39709
|
-
|
|
39710
|
-
|
|
39711
|
-
|
|
39712
|
-
|
|
39713
|
-
|
|
39714
|
-
|
|
39715
|
-
|
|
39716
|
-
|
|
39717
|
-
|
|
39718
|
-
|
|
39719
|
-
|
|
39720
|
-
|
|
39721
|
-
|
|
39722
|
-
|
|
39723
|
-
|
|
39724
|
-
|
|
39725
|
-
|
|
39726
|
-
|
|
39727
|
-
|
|
39728
|
-
|
|
39729
|
-
|
|
39730
|
-
|
|
39731
|
-
|
|
39732
|
-
|
|
39733
|
-
|
|
39734
|
-
|
|
39735
|
-
|
|
39736
|
-
|
|
39737
|
-
|
|
39738
|
-
|
|
39739
|
-
|
|
39740
|
-
|
|
39741
|
-
|
|
39742
|
-
|
|
39743
|
-
|
|
39744
|
-
|
|
39745
|
-
|
|
39746
|
-
|
|
39747
|
-
|
|
39748
|
-
|
|
39749
|
-
|
|
39750
|
-
|
|
39751
|
-
|
|
39752
|
-
|
|
39753
|
-
|
|
39754
|
-
|
|
39755
|
-
|
|
39756
|
-
|
|
39757
|
-
|
|
39758
|
-
|
|
39759
|
-
|
|
39760
|
-
|
|
39761
|
-
|
|
39762
|
-
|
|
39763
|
-
|
|
39764
|
-
|
|
39765
|
-
|
|
39766
|
-
|
|
39767
|
-
|
|
39768
|
-
|
|
39769
|
-
|
|
39770
|
-
|
|
39771
|
-
|
|
39772
|
-
|
|
39773
|
-
|
|
39774
|
-
|
|
39775
|
-
|
|
39776
|
-
|
|
39777
|
-
|
|
40108
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
|
|
40109
|
+
/* server only */
|
|
40110
|
+
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
40111
|
+
if (typeof shadowMode !== 'boolean') {
|
|
40112
|
+
createInjectorSSR = createInjector;
|
|
40113
|
+
createInjector = shadowMode;
|
|
40114
|
+
shadowMode = false;
|
|
40115
|
+
} // Vue.extend constructor export interop.
|
|
40116
|
+
|
|
40117
|
+
|
|
40118
|
+
const options = typeof script === 'function' ? script.options : script; // render functions
|
|
40119
|
+
|
|
40120
|
+
if (template && template.render) {
|
|
40121
|
+
options.render = template.render;
|
|
40122
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
40123
|
+
options._compiled = true; // functional template
|
|
40124
|
+
|
|
40125
|
+
if (isFunctionalTemplate) {
|
|
40126
|
+
options.functional = true;
|
|
40127
|
+
}
|
|
40128
|
+
} // scopedId
|
|
40129
|
+
|
|
40130
|
+
|
|
40131
|
+
if (scopeId) {
|
|
40132
|
+
options._scopeId = scopeId;
|
|
40133
|
+
}
|
|
40134
|
+
|
|
40135
|
+
let hook;
|
|
40136
|
+
|
|
40137
|
+
if (moduleIdentifier) {
|
|
40138
|
+
// server build
|
|
40139
|
+
hook = function (context) {
|
|
40140
|
+
// 2.3 injection
|
|
40141
|
+
context = context || // cached call
|
|
40142
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
40143
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
|
|
40144
|
+
// 2.2 with runInNewContext: true
|
|
40145
|
+
|
|
40146
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
40147
|
+
context = __VUE_SSR_CONTEXT__;
|
|
40148
|
+
} // inject component styles
|
|
40149
|
+
|
|
40150
|
+
|
|
40151
|
+
if (style) {
|
|
40152
|
+
style.call(this, createInjectorSSR(context));
|
|
40153
|
+
} // register component module identifier for async chunk inference
|
|
40154
|
+
|
|
40155
|
+
|
|
40156
|
+
if (context && context._registeredComponents) {
|
|
40157
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
40158
|
+
}
|
|
40159
|
+
}; // used by ssr in case component is cached and beforeCreate
|
|
40160
|
+
// never gets called
|
|
40161
|
+
|
|
40162
|
+
|
|
40163
|
+
options._ssrRegister = hook;
|
|
40164
|
+
} else if (style) {
|
|
40165
|
+
hook = shadowMode ? function (context) {
|
|
40166
|
+
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
40167
|
+
} : function (context) {
|
|
40168
|
+
style.call(this, createInjector(context));
|
|
40169
|
+
};
|
|
40170
|
+
}
|
|
40171
|
+
|
|
40172
|
+
if (hook) {
|
|
40173
|
+
if (options.functional) {
|
|
40174
|
+
// register for functional component in vue file
|
|
40175
|
+
const originalRender = options.render;
|
|
40176
|
+
|
|
40177
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
40178
|
+
hook.call(context);
|
|
40179
|
+
return originalRender(h, context);
|
|
40180
|
+
};
|
|
40181
|
+
} else {
|
|
40182
|
+
// inject component registration as beforeCreate hook
|
|
40183
|
+
const existing = options.beforeCreate;
|
|
40184
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
40185
|
+
}
|
|
40186
|
+
}
|
|
40187
|
+
|
|
40188
|
+
return script;
|
|
39778
40189
|
}
|
|
39779
40190
|
|
|
39780
|
-
const isOldIE = typeof navigator !== 'undefined' &&
|
|
39781
|
-
|
|
39782
|
-
function createInjector(context) {
|
|
39783
|
-
|
|
39784
|
-
}
|
|
39785
|
-
|
|
39786
|
-
|
|
39787
|
-
|
|
39788
|
-
|
|
39789
|
-
|
|
39790
|
-
|
|
39791
|
-
|
|
39792
|
-
|
|
39793
|
-
|
|
39794
|
-
|
|
39795
|
-
|
|
39796
|
-
|
|
39797
|
-
|
|
39798
|
-
|
|
39799
|
-
|
|
39800
|
-
|
|
39801
|
-
|
|
39802
|
-
|
|
39803
|
-
|
|
39804
|
-
|
|
39805
|
-
|
|
39806
|
-
|
|
39807
|
-
|
|
39808
|
-
|
|
39809
|
-
|
|
39810
|
-
|
|
39811
|
-
|
|
39812
|
-
|
|
39813
|
-
|
|
39814
|
-
|
|
39815
|
-
|
|
39816
|
-
|
|
39817
|
-
|
|
39818
|
-
|
|
39819
|
-
|
|
39820
|
-
|
|
39821
|
-
|
|
39822
|
-
|
|
39823
|
-
|
|
39824
|
-
|
|
39825
|
-
|
|
39826
|
-
|
|
39827
|
-
|
|
39828
|
-
|
|
39829
|
-
|
|
39830
|
-
|
|
40191
|
+
const isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
|
|
40192
|
+
|
|
40193
|
+
function createInjector(context) {
|
|
40194
|
+
return (id, style) => addStyle(id, style);
|
|
40195
|
+
}
|
|
40196
|
+
|
|
40197
|
+
let HEAD;
|
|
40198
|
+
const styles = {};
|
|
40199
|
+
|
|
40200
|
+
function addStyle(id, css) {
|
|
40201
|
+
const group = isOldIE ? css.media || 'default' : id;
|
|
40202
|
+
const style = styles[group] || (styles[group] = {
|
|
40203
|
+
ids: new Set(),
|
|
40204
|
+
styles: []
|
|
40205
|
+
});
|
|
40206
|
+
|
|
40207
|
+
if (!style.ids.has(id)) {
|
|
40208
|
+
style.ids.add(id);
|
|
40209
|
+
let code = css.source;
|
|
40210
|
+
|
|
40211
|
+
if (css.map) {
|
|
40212
|
+
// https://developer.chrome.com/devtools/docs/javascript-debugging
|
|
40213
|
+
// this makes source maps inside style tags work properly in Chrome
|
|
40214
|
+
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */'; // http://stackoverflow.com/a/26603875
|
|
40215
|
+
|
|
40216
|
+
code += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) + ' */';
|
|
40217
|
+
}
|
|
40218
|
+
|
|
40219
|
+
if (!style.element) {
|
|
40220
|
+
style.element = document.createElement('style');
|
|
40221
|
+
style.element.type = 'text/css';
|
|
40222
|
+
if (css.media) style.element.setAttribute('media', css.media);
|
|
40223
|
+
|
|
40224
|
+
if (HEAD === undefined) {
|
|
40225
|
+
HEAD = document.head || document.getElementsByTagName('head')[0];
|
|
40226
|
+
}
|
|
40227
|
+
|
|
40228
|
+
HEAD.appendChild(style.element);
|
|
40229
|
+
}
|
|
40230
|
+
|
|
40231
|
+
if ('styleSheet' in style.element) {
|
|
40232
|
+
style.styles.push(code);
|
|
40233
|
+
style.element.styleSheet.cssText = style.styles.filter(Boolean).join('\n');
|
|
40234
|
+
} else {
|
|
40235
|
+
const index = style.ids.size - 1;
|
|
40236
|
+
const textNode = document.createTextNode(code);
|
|
40237
|
+
const nodes = style.element.childNodes;
|
|
40238
|
+
if (nodes[index]) style.element.removeChild(nodes[index]);
|
|
40239
|
+
if (nodes.length) style.element.insertBefore(textNode, nodes[index]);else style.element.appendChild(textNode);
|
|
40240
|
+
}
|
|
40241
|
+
}
|
|
39831
40242
|
}
|
|
39832
40243
|
|
|
39833
40244
|
/* script */
|
|
@@ -39892,10 +40303,8 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
39892
40303
|
|
|
39893
40304
|
|
|
39894
40305
|
|
|
39895
|
-
|
|
39896
40306
|
var extend = util$2.extend;
|
|
39897
40307
|
var isArray = util$2.isArray;
|
|
39898
|
-
|
|
39899
40308
|
/*
|
|
39900
40309
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
39901
40310
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -39931,6 +40340,7 @@ var isArray = util$2.isArray;
|
|
|
39931
40340
|
* @param {Array.<string>} [nameList]
|
|
39932
40341
|
* @return {module:echarts/data/List}
|
|
39933
40342
|
*/
|
|
40343
|
+
|
|
39934
40344
|
function _default$7(seriesModel, opt, nameList) {
|
|
39935
40345
|
opt = isArray(opt) && {
|
|
39936
40346
|
coordDimensions: opt
|
|
@@ -39963,8 +40373,6 @@ var createListSimply = _default$7;
|
|
|
39963
40373
|
* under the License.
|
|
39964
40374
|
*/
|
|
39965
40375
|
|
|
39966
|
-
|
|
39967
|
-
|
|
39968
40376
|
/*
|
|
39969
40377
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
39970
40378
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -39989,6 +40397,8 @@ var createListSimply = _default$7;
|
|
|
39989
40397
|
* To eanble data select, option of series must have `selectedMode`.
|
|
39990
40398
|
* And each data item will use `selected` to toggle itself selected status
|
|
39991
40399
|
*/
|
|
40400
|
+
|
|
40401
|
+
|
|
39992
40402
|
var _default$6 = {
|
|
39993
40403
|
/**
|
|
39994
40404
|
* @param {Array.<Object>} targetList [{name, value, selected}, ...]
|
|
@@ -40171,7 +40581,6 @@ var LegendVisualProvider_1 = _default$5;
|
|
|
40171
40581
|
|
|
40172
40582
|
|
|
40173
40583
|
|
|
40174
|
-
|
|
40175
40584
|
var getPercentWithPrecision = number$1.getPercentWithPrecision;
|
|
40176
40585
|
|
|
40177
40586
|
|
|
@@ -40185,7 +40594,6 @@ var retrieveRawAttr = dataProvider.retrieveRawAttr;
|
|
|
40185
40594
|
var makeSeriesEncodeForNameBased = sourceHelper.makeSeriesEncodeForNameBased;
|
|
40186
40595
|
|
|
40187
40596
|
|
|
40188
|
-
|
|
40189
40597
|
/*
|
|
40190
40598
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
40191
40599
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -40204,6 +40612,8 @@ var makeSeriesEncodeForNameBased = sourceHelper.makeSeriesEncodeForNameBased;
|
|
|
40204
40612
|
* specific language governing permissions and limitations
|
|
40205
40613
|
* under the License.
|
|
40206
40614
|
*/
|
|
40615
|
+
|
|
40616
|
+
|
|
40207
40617
|
var PieSeries = echarts.extendSeriesModel({
|
|
40208
40618
|
type: 'series.pie',
|
|
40209
40619
|
// Overwrite
|
|
@@ -40368,8 +40778,6 @@ util$2.mixin(PieSeries, selectableMixin);
|
|
|
40368
40778
|
|
|
40369
40779
|
|
|
40370
40780
|
|
|
40371
|
-
|
|
40372
|
-
|
|
40373
40781
|
/*
|
|
40374
40782
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
40375
40783
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -40394,6 +40802,8 @@ util$2.mixin(PieSeries, selectableMixin);
|
|
|
40394
40802
|
* @param {boolean} hasAnimation
|
|
40395
40803
|
* @inner
|
|
40396
40804
|
*/
|
|
40805
|
+
|
|
40806
|
+
|
|
40397
40807
|
function updateDataSelected(uid, seriesModel, hasAnimation, api) {
|
|
40398
40808
|
var data = seriesModel.getData();
|
|
40399
40809
|
var dataIndex = this.dataIndex;
|
|
@@ -40476,13 +40886,13 @@ piePieceProto.updateData = function (data, idx, firstCreate) {
|
|
|
40476
40886
|
}, seriesModel, idx);
|
|
40477
40887
|
} // Expansion
|
|
40478
40888
|
else {
|
|
40479
|
-
|
|
40480
|
-
|
|
40481
|
-
|
|
40482
|
-
|
|
40483
|
-
|
|
40484
|
-
|
|
40485
|
-
|
|
40889
|
+
sector.shape.endAngle = layout.startAngle;
|
|
40890
|
+
graphic$1.updateProps(sector, {
|
|
40891
|
+
shape: {
|
|
40892
|
+
endAngle: layout.endAngle
|
|
40893
|
+
}
|
|
40894
|
+
}, seriesModel, idx);
|
|
40895
|
+
}
|
|
40486
40896
|
} else {
|
|
40487
40897
|
if (animationTypeUpdate === 'expansion') {
|
|
40488
40898
|
// Sectors are set to be target shape and an overlaying clipPath is used for animation
|
|
@@ -40754,8 +41164,6 @@ Chart_1.extend({
|
|
|
40754
41164
|
|
|
40755
41165
|
|
|
40756
41166
|
|
|
40757
|
-
|
|
40758
|
-
|
|
40759
41167
|
/*
|
|
40760
41168
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
40761
41169
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -40774,6 +41182,8 @@ Chart_1.extend({
|
|
|
40774
41182
|
* specific language governing permissions and limitations
|
|
40775
41183
|
* under the License.
|
|
40776
41184
|
*/
|
|
41185
|
+
|
|
41186
|
+
|
|
40777
41187
|
function _default$4(seriesType, actionInfos) {
|
|
40778
41188
|
util$2.each(actionInfos, function (actionInfo) {
|
|
40779
41189
|
actionInfo.update = 'updateView';
|
|
@@ -40832,9 +41242,7 @@ var createDataSelectAction = _default$4;
|
|
|
40832
41242
|
*/
|
|
40833
41243
|
|
|
40834
41244
|
|
|
40835
|
-
|
|
40836
41245
|
var createHashMap = util$2.createHashMap;
|
|
40837
|
-
|
|
40838
41246
|
/*
|
|
40839
41247
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
40840
41248
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -40856,6 +41264,7 @@ var createHashMap = util$2.createHashMap;
|
|
|
40856
41264
|
// Pick color from palette for each data item.
|
|
40857
41265
|
// Applicable for charts that require applying color palette
|
|
40858
41266
|
// in data level (like pie, funnel, chord).
|
|
41267
|
+
|
|
40859
41268
|
function _default$3(seriesType) {
|
|
40860
41269
|
return {
|
|
40861
41270
|
getTargetSeries: function (ecModel) {
|
|
@@ -40932,9 +41341,7 @@ var dataColor = _default$3;
|
|
|
40932
41341
|
|
|
40933
41342
|
|
|
40934
41343
|
|
|
40935
|
-
|
|
40936
41344
|
var parsePercent$1 = number$1.parsePercent;
|
|
40937
|
-
|
|
40938
41345
|
/*
|
|
40939
41346
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
40940
41347
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -40954,6 +41361,7 @@ var parsePercent$1 = number$1.parsePercent;
|
|
|
40954
41361
|
* under the License.
|
|
40955
41362
|
*/
|
|
40956
41363
|
// FIXME emphasis label position is not same with normal label position
|
|
41364
|
+
|
|
40957
41365
|
var RADIAN$1 = Math.PI / 180;
|
|
40958
41366
|
|
|
40959
41367
|
function adjustSingleSide(list, cx, cy, r, dir, viewWidth, viewHeight, viewLeft, viewTop, farthestX) {
|
|
@@ -41285,7 +41693,6 @@ var labelLayout = _default$2;
|
|
|
41285
41693
|
*/
|
|
41286
41694
|
|
|
41287
41695
|
|
|
41288
|
-
|
|
41289
41696
|
var parsePercent = number$1.parsePercent;
|
|
41290
41697
|
var linearMap = number$1.linearMap;
|
|
41291
41698
|
|
|
@@ -41294,7 +41701,6 @@ var linearMap = number$1.linearMap;
|
|
|
41294
41701
|
|
|
41295
41702
|
|
|
41296
41703
|
|
|
41297
|
-
|
|
41298
41704
|
/*
|
|
41299
41705
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
41300
41706
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -41313,6 +41719,8 @@ var linearMap = number$1.linearMap;
|
|
|
41313
41719
|
* specific language governing permissions and limitations
|
|
41314
41720
|
* under the License.
|
|
41315
41721
|
*/
|
|
41722
|
+
|
|
41723
|
+
|
|
41316
41724
|
var PI2 = Math.PI * 2;
|
|
41317
41725
|
var RADIAN = Math.PI / 180;
|
|
41318
41726
|
|
|
@@ -41548,8 +41956,6 @@ var dataFilter = _default;
|
|
|
41548
41956
|
|
|
41549
41957
|
|
|
41550
41958
|
|
|
41551
|
-
|
|
41552
|
-
|
|
41553
41959
|
/*
|
|
41554
41960
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
41555
41961
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -41568,6 +41974,8 @@ var dataFilter = _default;
|
|
|
41568
41974
|
* specific language governing permissions and limitations
|
|
41569
41975
|
* under the License.
|
|
41570
41976
|
*/
|
|
41977
|
+
|
|
41978
|
+
|
|
41571
41979
|
createDataSelectAction('pie', [{
|
|
41572
41980
|
type: 'pieToggleSelect',
|
|
41573
41981
|
event: 'pieselectchanged',
|