tvcharts 0.6.30 → 0.6.31
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/echarts.js +317 -255
- package/dist/echarts.js.map +3 -3
- package/lib/chart/fills/FillsView.js +46 -34
- package/lib/chart/fills/LargeFillPolyPath.js +107 -0
- package/lib/chart/labels/labelsLayout.js +1 -1
- package/lib/component/dataZoom/roams.js +1 -1
- package/lib/coord/cartesian/Cartesian2D.js +2 -2
- package/lib/util/symbol.js +1 -1
- package/package.json +1 -1
- package/types/src/chart/fills/LargeFillPolyPath.d.ts +23 -0
package/dist/echarts.js
CHANGED
|
@@ -80,7 +80,7 @@ __export(exports, {
|
|
|
80
80
|
zrender: () => zrender_exports
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
//
|
|
83
|
+
// ../zrender/src/zrender.ts
|
|
84
84
|
var zrender_exports = {};
|
|
85
85
|
__export(zrender_exports, {
|
|
86
86
|
dispose: () => dispose,
|
|
@@ -93,7 +93,7 @@ __export(zrender_exports, {
|
|
|
93
93
|
version: () => version
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
//
|
|
96
|
+
// ../zrender/src/core/env.ts
|
|
97
97
|
var Browser = class {
|
|
98
98
|
constructor() {
|
|
99
99
|
this.firefox = false;
|
|
@@ -162,7 +162,7 @@ function detect(ua, env2) {
|
|
|
162
162
|
}
|
|
163
163
|
var env_default = env;
|
|
164
164
|
|
|
165
|
-
//
|
|
165
|
+
// ../zrender/src/core/util.ts
|
|
166
166
|
var util_exports = {};
|
|
167
167
|
__export(util_exports, {
|
|
168
168
|
HashMap: () => HashMap,
|
|
@@ -218,7 +218,7 @@ __export(util_exports, {
|
|
|
218
218
|
trim: () => trim
|
|
219
219
|
});
|
|
220
220
|
|
|
221
|
-
//
|
|
221
|
+
// ../zrender/src/core/platform.ts
|
|
222
222
|
var DEFAULT_FONT_SIZE = 12;
|
|
223
223
|
var DEFAULT_FONT_FAMILY = "sans-serif";
|
|
224
224
|
var DEFAULT_FONT = `${DEFAULT_FONT_SIZE}px ${DEFAULT_FONT_FAMILY}`;
|
|
@@ -289,7 +289,110 @@ function setPlatformAPI(newPlatformApis) {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
//
|
|
292
|
+
// ../zrender/src/core/LRU.ts
|
|
293
|
+
var Entry = class {
|
|
294
|
+
constructor(val) {
|
|
295
|
+
this.value = val;
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
var LinkedList = class {
|
|
299
|
+
constructor() {
|
|
300
|
+
this._len = 0;
|
|
301
|
+
}
|
|
302
|
+
insert(val) {
|
|
303
|
+
const entry = new Entry(val);
|
|
304
|
+
this.insertEntry(entry);
|
|
305
|
+
return entry;
|
|
306
|
+
}
|
|
307
|
+
insertEntry(entry) {
|
|
308
|
+
if (!this.head) {
|
|
309
|
+
this.head = this.tail = entry;
|
|
310
|
+
} else {
|
|
311
|
+
this.tail.next = entry;
|
|
312
|
+
entry.prev = this.tail;
|
|
313
|
+
entry.next = null;
|
|
314
|
+
this.tail = entry;
|
|
315
|
+
}
|
|
316
|
+
this._len++;
|
|
317
|
+
}
|
|
318
|
+
remove(entry) {
|
|
319
|
+
const prev = entry.prev;
|
|
320
|
+
const next = entry.next;
|
|
321
|
+
if (prev) {
|
|
322
|
+
prev.next = next;
|
|
323
|
+
} else {
|
|
324
|
+
this.head = next;
|
|
325
|
+
}
|
|
326
|
+
if (next) {
|
|
327
|
+
next.prev = prev;
|
|
328
|
+
} else {
|
|
329
|
+
this.tail = prev;
|
|
330
|
+
}
|
|
331
|
+
entry.next = entry.prev = null;
|
|
332
|
+
this._len--;
|
|
333
|
+
}
|
|
334
|
+
len() {
|
|
335
|
+
return this._len;
|
|
336
|
+
}
|
|
337
|
+
clear() {
|
|
338
|
+
this.head = this.tail = null;
|
|
339
|
+
this._len = 0;
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
var LRU = class {
|
|
343
|
+
constructor(maxSize) {
|
|
344
|
+
this._list = new LinkedList();
|
|
345
|
+
this._maxSize = 10;
|
|
346
|
+
this._map = {};
|
|
347
|
+
this._maxSize = maxSize;
|
|
348
|
+
}
|
|
349
|
+
put(key, value) {
|
|
350
|
+
const list = this._list;
|
|
351
|
+
const map4 = this._map;
|
|
352
|
+
let removed = null;
|
|
353
|
+
if (map4[key] == null) {
|
|
354
|
+
const len2 = list.len();
|
|
355
|
+
let entry = this._lastRemovedEntry;
|
|
356
|
+
if (len2 >= this._maxSize && len2 > 0) {
|
|
357
|
+
const leastUsedEntry = list.head;
|
|
358
|
+
list.remove(leastUsedEntry);
|
|
359
|
+
delete map4[leastUsedEntry.key];
|
|
360
|
+
removed = leastUsedEntry.value;
|
|
361
|
+
this._lastRemovedEntry = leastUsedEntry;
|
|
362
|
+
}
|
|
363
|
+
if (entry) {
|
|
364
|
+
entry.value = value;
|
|
365
|
+
} else {
|
|
366
|
+
entry = new Entry(value);
|
|
367
|
+
}
|
|
368
|
+
entry.key = key;
|
|
369
|
+
list.insertEntry(entry);
|
|
370
|
+
map4[key] = entry;
|
|
371
|
+
}
|
|
372
|
+
return removed;
|
|
373
|
+
}
|
|
374
|
+
get(key) {
|
|
375
|
+
const entry = this._map[key];
|
|
376
|
+
const list = this._list;
|
|
377
|
+
if (entry != null) {
|
|
378
|
+
if (entry !== list.tail) {
|
|
379
|
+
list.remove(entry);
|
|
380
|
+
list.insertEntry(entry);
|
|
381
|
+
}
|
|
382
|
+
return entry.value;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
clear() {
|
|
386
|
+
this._list.clear();
|
|
387
|
+
this._map = {};
|
|
388
|
+
}
|
|
389
|
+
len() {
|
|
390
|
+
return this._list.len();
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
var LRU_default = LRU;
|
|
394
|
+
|
|
395
|
+
// ../zrender/src/core/util.ts
|
|
293
396
|
var BUILTIN_OBJECT = reduce([
|
|
294
397
|
"Function",
|
|
295
398
|
"RegExp",
|
|
@@ -774,41 +877,50 @@ function hasOwn(own, prop) {
|
|
|
774
877
|
function noop() {
|
|
775
878
|
}
|
|
776
879
|
var RADIAN_TO_DEGREE = 180 / Math.PI;
|
|
880
|
+
var colorCache = new LRU_default(1e3);
|
|
777
881
|
function hexToRgba(hex) {
|
|
778
882
|
hex = hex.replace(/^#/, "");
|
|
779
|
-
if (hex.length === 3
|
|
780
|
-
hex = hex.split("").map((x) => x
|
|
883
|
+
if (hex.length === 3) {
|
|
884
|
+
hex = hex.split("").map((x) => x.repeat(2)).join("");
|
|
781
885
|
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
886
|
+
const a = hex.length === 8 ? parseInt(hex.slice(6, 8), 16) : 255;
|
|
887
|
+
return {
|
|
888
|
+
r: parseInt(hex.slice(0, 2), 16),
|
|
889
|
+
g: parseInt(hex.slice(2, 4), 16),
|
|
890
|
+
b: parseInt(hex.slice(4, 6), 16),
|
|
891
|
+
a: a / 255
|
|
892
|
+
};
|
|
787
893
|
}
|
|
788
894
|
function parseRgbaString(rgba) {
|
|
789
|
-
const match = rgba.match(/rgba?\(\s*(\d
|
|
895
|
+
const match = rgba.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*([\d.]+)\s*)?\)/);
|
|
790
896
|
if (!match) {
|
|
791
897
|
throw new Error("Invalid RGBA string format.");
|
|
792
898
|
}
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
899
|
+
const a = match[5] !== void 0 ? parseFloat(match[5]) : 1;
|
|
900
|
+
return {
|
|
901
|
+
r: parseInt(match[1], 10),
|
|
902
|
+
g: parseInt(match[2], 10),
|
|
903
|
+
b: parseInt(match[3], 10),
|
|
904
|
+
a
|
|
905
|
+
};
|
|
798
906
|
}
|
|
799
907
|
function colorToRgba(color2) {
|
|
908
|
+
if (colorCache.get(color2)) {
|
|
909
|
+
return colorCache.get(color2);
|
|
910
|
+
}
|
|
800
911
|
let rgbaColor;
|
|
801
|
-
if (
|
|
912
|
+
if (color2.startsWith("#")) {
|
|
802
913
|
rgbaColor = hexToRgba(color2);
|
|
803
|
-
} else if (
|
|
914
|
+
} else if (color2.startsWith("rgb")) {
|
|
804
915
|
rgbaColor = parseRgbaString(color2);
|
|
805
916
|
} else {
|
|
806
917
|
throw new Error("Unsupported color format.");
|
|
807
918
|
}
|
|
919
|
+
colorCache.put(color2, rgbaColor);
|
|
808
920
|
return rgbaColor;
|
|
809
921
|
}
|
|
810
922
|
|
|
811
|
-
//
|
|
923
|
+
// ../zrender/src/core/vector.ts
|
|
812
924
|
var vector_exports = {};
|
|
813
925
|
__export(vector_exports, {
|
|
814
926
|
add: () => add,
|
|
@@ -947,7 +1059,7 @@ function max(out2, v12, v22) {
|
|
|
947
1059
|
return out2;
|
|
948
1060
|
}
|
|
949
1061
|
|
|
950
|
-
//
|
|
1062
|
+
// ../zrender/src/mixin/Draggable.ts
|
|
951
1063
|
var Param = class {
|
|
952
1064
|
constructor(target, e2) {
|
|
953
1065
|
this.target = target;
|
|
@@ -1013,7 +1125,7 @@ var Draggable = class {
|
|
|
1013
1125
|
};
|
|
1014
1126
|
var Draggable_default = Draggable;
|
|
1015
1127
|
|
|
1016
|
-
//
|
|
1128
|
+
// ../zrender/src/core/Eventful.ts
|
|
1017
1129
|
var Eventful = class {
|
|
1018
1130
|
constructor(eventProcessors) {
|
|
1019
1131
|
if (eventProcessors) {
|
|
@@ -1157,7 +1269,7 @@ var Eventful = class {
|
|
|
1157
1269
|
};
|
|
1158
1270
|
var Eventful_default = Eventful;
|
|
1159
1271
|
|
|
1160
|
-
//
|
|
1272
|
+
// ../zrender/src/core/fourPointsTransform.ts
|
|
1161
1273
|
var LN2 = Math.log(2);
|
|
1162
1274
|
function determinant(rows, rank, rowStart, rowMask, colMask, detCache) {
|
|
1163
1275
|
const cacheKey = rowMask + "-" + colMask;
|
|
@@ -1215,7 +1327,7 @@ function buildTransformer(src, dest) {
|
|
|
1215
1327
|
};
|
|
1216
1328
|
}
|
|
1217
1329
|
|
|
1218
|
-
//
|
|
1330
|
+
// ../zrender/src/core/dom.ts
|
|
1219
1331
|
var EVENT_SAVED_PROP = "___zrEVENTSAVED";
|
|
1220
1332
|
var _calcOut = [];
|
|
1221
1333
|
function transformLocalCoord(out2, elFrom, elTarget, inX, inY) {
|
|
@@ -1301,7 +1413,7 @@ function encodeHTML(source) {
|
|
|
1301
1413
|
});
|
|
1302
1414
|
}
|
|
1303
1415
|
|
|
1304
|
-
//
|
|
1416
|
+
// ../zrender/src/core/event.ts
|
|
1305
1417
|
var MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/;
|
|
1306
1418
|
var _calcOut2 = [];
|
|
1307
1419
|
var firefoxNotSupportOffsetXY = env_default.browser.firefox && +env_default.browser.version.split(".")[0] < 39;
|
|
@@ -1392,7 +1504,7 @@ function isMiddleOrRightButtonOnMouseUpDown(e2) {
|
|
|
1392
1504
|
return e2.which === 2 || e2.which === 3;
|
|
1393
1505
|
}
|
|
1394
1506
|
|
|
1395
|
-
//
|
|
1507
|
+
// ../zrender/src/core/GestureMgr.ts
|
|
1396
1508
|
var GestureMgr = class {
|
|
1397
1509
|
constructor() {
|
|
1398
1510
|
this._track = [];
|
|
@@ -1470,7 +1582,7 @@ var recognizers = {
|
|
|
1470
1582
|
}
|
|
1471
1583
|
};
|
|
1472
1584
|
|
|
1473
|
-
//
|
|
1585
|
+
// ../zrender/src/core/matrix.ts
|
|
1474
1586
|
var matrix_exports = {};
|
|
1475
1587
|
__export(matrix_exports, {
|
|
1476
1588
|
clone: () => clone3,
|
|
@@ -1582,7 +1694,7 @@ function clone3(a) {
|
|
|
1582
1694
|
return b;
|
|
1583
1695
|
}
|
|
1584
1696
|
|
|
1585
|
-
//
|
|
1697
|
+
// ../zrender/src/core/Point.ts
|
|
1586
1698
|
var Point = class {
|
|
1587
1699
|
constructor(x, y) {
|
|
1588
1700
|
this.x = x || 0;
|
|
@@ -1712,7 +1824,7 @@ var Point = class {
|
|
|
1712
1824
|
};
|
|
1713
1825
|
var Point_default = Point;
|
|
1714
1826
|
|
|
1715
|
-
//
|
|
1827
|
+
// ../zrender/src/core/BoundingRect.ts
|
|
1716
1828
|
var mathMin = Math.min;
|
|
1717
1829
|
var mathMax = Math.max;
|
|
1718
1830
|
var lt = new Point_default();
|
|
@@ -1912,7 +2024,7 @@ var BoundingRect = class {
|
|
|
1912
2024
|
};
|
|
1913
2025
|
var BoundingRect_default = BoundingRect;
|
|
1914
2026
|
|
|
1915
|
-
//
|
|
2027
|
+
// ../zrender/src/Handler.ts
|
|
1916
2028
|
var SILENT = "silent";
|
|
1917
2029
|
function makeEventPacket(eveType, targetInfo, event) {
|
|
1918
2030
|
return {
|
|
@@ -2192,7 +2304,7 @@ function isOutsideBoundary(handlerInstance, x, y) {
|
|
|
2192
2304
|
}
|
|
2193
2305
|
var Handler_default = Handler;
|
|
2194
2306
|
|
|
2195
|
-
//
|
|
2307
|
+
// ../zrender/src/core/timsort.ts
|
|
2196
2308
|
var DEFAULT_MIN_MERGE = 32;
|
|
2197
2309
|
var DEFAULT_MIN_GALLOPING = 7;
|
|
2198
2310
|
function minRunLength(n) {
|
|
@@ -2701,12 +2813,12 @@ function sort(array, compare2, lo, hi) {
|
|
|
2701
2813
|
ts.forceMergeRuns();
|
|
2702
2814
|
}
|
|
2703
2815
|
|
|
2704
|
-
//
|
|
2816
|
+
// ../zrender/src/graphic/constants.ts
|
|
2705
2817
|
var REDRAW_BIT = 1;
|
|
2706
2818
|
var STYLE_CHANGED_BIT = 2;
|
|
2707
2819
|
var SHAPE_CHANGED_BIT = 4;
|
|
2708
2820
|
|
|
2709
|
-
//
|
|
2821
|
+
// ../zrender/src/Storage.ts
|
|
2710
2822
|
var invalidZErrorLogged = false;
|
|
2711
2823
|
function logInvalidZError() {
|
|
2712
2824
|
if (invalidZErrorLogged) {
|
|
@@ -2858,14 +2970,14 @@ var Storage = class {
|
|
|
2858
2970
|
};
|
|
2859
2971
|
var Storage_default = Storage;
|
|
2860
2972
|
|
|
2861
|
-
//
|
|
2973
|
+
// ../zrender/src/animation/requestAnimationFrame.ts
|
|
2862
2974
|
var requestAnimationFrame2;
|
|
2863
2975
|
requestAnimationFrame2 = env_default.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(func) {
|
|
2864
2976
|
return setTimeout(func, 16);
|
|
2865
2977
|
};
|
|
2866
2978
|
var requestAnimationFrame_default = requestAnimationFrame2;
|
|
2867
2979
|
|
|
2868
|
-
//
|
|
2980
|
+
// ../zrender/src/animation/easing.ts
|
|
2869
2981
|
var easingFuncs = {
|
|
2870
2982
|
linear(k) {
|
|
2871
2983
|
return k;
|
|
@@ -3052,7 +3164,7 @@ var easingFuncs = {
|
|
|
3052
3164
|
};
|
|
3053
3165
|
var easing_default = easingFuncs;
|
|
3054
3166
|
|
|
3055
|
-
//
|
|
3167
|
+
// ../zrender/src/core/curve.ts
|
|
3056
3168
|
var mathPow = Math.pow;
|
|
3057
3169
|
var mathSqrt = Math.sqrt;
|
|
3058
3170
|
var EPSILON = 1e-8;
|
|
@@ -3381,7 +3493,7 @@ function quadraticLength(x0, y0, x1, y1, x2, y2, iteration) {
|
|
|
3381
3493
|
return d;
|
|
3382
3494
|
}
|
|
3383
3495
|
|
|
3384
|
-
//
|
|
3496
|
+
// ../zrender/src/animation/cubicEasing.ts
|
|
3385
3497
|
var regexp = /cubic-bezier\(([0-9,\.e ]+)\)/;
|
|
3386
3498
|
function createCubicEasingFunc(cubicEasingStr) {
|
|
3387
3499
|
const cubic2 = cubicEasingStr && regexp.exec(cubicEasingStr);
|
|
@@ -3401,7 +3513,7 @@ function createCubicEasingFunc(cubicEasingStr) {
|
|
|
3401
3513
|
}
|
|
3402
3514
|
}
|
|
3403
3515
|
|
|
3404
|
-
//
|
|
3516
|
+
// ../zrender/src/animation/Clip.ts
|
|
3405
3517
|
var Clip = class {
|
|
3406
3518
|
constructor(opts) {
|
|
3407
3519
|
this._inited = false;
|
|
@@ -3460,7 +3572,7 @@ var Clip = class {
|
|
|
3460
3572
|
};
|
|
3461
3573
|
var Clip_default = Clip;
|
|
3462
3574
|
|
|
3463
|
-
//
|
|
3575
|
+
// ../zrender/src/tool/color.ts
|
|
3464
3576
|
var color_exports = {};
|
|
3465
3577
|
__export(color_exports, {
|
|
3466
3578
|
fastLerp: () => fastLerp,
|
|
@@ -3477,111 +3589,6 @@ __export(color_exports, {
|
|
|
3477
3589
|
stringify: () => stringify,
|
|
3478
3590
|
toHex: () => toHex
|
|
3479
3591
|
});
|
|
3480
|
-
|
|
3481
|
-
// node_modules/tvrender/src/core/LRU.ts
|
|
3482
|
-
var Entry = class {
|
|
3483
|
-
constructor(val) {
|
|
3484
|
-
this.value = val;
|
|
3485
|
-
}
|
|
3486
|
-
};
|
|
3487
|
-
var LinkedList = class {
|
|
3488
|
-
constructor() {
|
|
3489
|
-
this._len = 0;
|
|
3490
|
-
}
|
|
3491
|
-
insert(val) {
|
|
3492
|
-
const entry = new Entry(val);
|
|
3493
|
-
this.insertEntry(entry);
|
|
3494
|
-
return entry;
|
|
3495
|
-
}
|
|
3496
|
-
insertEntry(entry) {
|
|
3497
|
-
if (!this.head) {
|
|
3498
|
-
this.head = this.tail = entry;
|
|
3499
|
-
} else {
|
|
3500
|
-
this.tail.next = entry;
|
|
3501
|
-
entry.prev = this.tail;
|
|
3502
|
-
entry.next = null;
|
|
3503
|
-
this.tail = entry;
|
|
3504
|
-
}
|
|
3505
|
-
this._len++;
|
|
3506
|
-
}
|
|
3507
|
-
remove(entry) {
|
|
3508
|
-
const prev = entry.prev;
|
|
3509
|
-
const next = entry.next;
|
|
3510
|
-
if (prev) {
|
|
3511
|
-
prev.next = next;
|
|
3512
|
-
} else {
|
|
3513
|
-
this.head = next;
|
|
3514
|
-
}
|
|
3515
|
-
if (next) {
|
|
3516
|
-
next.prev = prev;
|
|
3517
|
-
} else {
|
|
3518
|
-
this.tail = prev;
|
|
3519
|
-
}
|
|
3520
|
-
entry.next = entry.prev = null;
|
|
3521
|
-
this._len--;
|
|
3522
|
-
}
|
|
3523
|
-
len() {
|
|
3524
|
-
return this._len;
|
|
3525
|
-
}
|
|
3526
|
-
clear() {
|
|
3527
|
-
this.head = this.tail = null;
|
|
3528
|
-
this._len = 0;
|
|
3529
|
-
}
|
|
3530
|
-
};
|
|
3531
|
-
var LRU = class {
|
|
3532
|
-
constructor(maxSize) {
|
|
3533
|
-
this._list = new LinkedList();
|
|
3534
|
-
this._maxSize = 10;
|
|
3535
|
-
this._map = {};
|
|
3536
|
-
this._maxSize = maxSize;
|
|
3537
|
-
}
|
|
3538
|
-
put(key, value) {
|
|
3539
|
-
const list = this._list;
|
|
3540
|
-
const map4 = this._map;
|
|
3541
|
-
let removed = null;
|
|
3542
|
-
if (map4[key] == null) {
|
|
3543
|
-
const len2 = list.len();
|
|
3544
|
-
let entry = this._lastRemovedEntry;
|
|
3545
|
-
if (len2 >= this._maxSize && len2 > 0) {
|
|
3546
|
-
const leastUsedEntry = list.head;
|
|
3547
|
-
list.remove(leastUsedEntry);
|
|
3548
|
-
delete map4[leastUsedEntry.key];
|
|
3549
|
-
removed = leastUsedEntry.value;
|
|
3550
|
-
this._lastRemovedEntry = leastUsedEntry;
|
|
3551
|
-
}
|
|
3552
|
-
if (entry) {
|
|
3553
|
-
entry.value = value;
|
|
3554
|
-
} else {
|
|
3555
|
-
entry = new Entry(value);
|
|
3556
|
-
}
|
|
3557
|
-
entry.key = key;
|
|
3558
|
-
list.insertEntry(entry);
|
|
3559
|
-
map4[key] = entry;
|
|
3560
|
-
}
|
|
3561
|
-
return removed;
|
|
3562
|
-
}
|
|
3563
|
-
get(key) {
|
|
3564
|
-
const entry = this._map[key];
|
|
3565
|
-
const list = this._list;
|
|
3566
|
-
if (entry != null) {
|
|
3567
|
-
if (entry !== list.tail) {
|
|
3568
|
-
list.remove(entry);
|
|
3569
|
-
list.insertEntry(entry);
|
|
3570
|
-
}
|
|
3571
|
-
return entry.value;
|
|
3572
|
-
}
|
|
3573
|
-
}
|
|
3574
|
-
clear() {
|
|
3575
|
-
this._list.clear();
|
|
3576
|
-
this._map = {};
|
|
3577
|
-
}
|
|
3578
|
-
len() {
|
|
3579
|
-
return this._list.len();
|
|
3580
|
-
}
|
|
3581
|
-
};
|
|
3582
|
-
var LRU_default = LRU;
|
|
3583
|
-
|
|
3584
|
-
// node_modules/tvrender/src/tool/color.ts
|
|
3585
3592
|
var kCSSColorTable = {
|
|
3586
3593
|
transparent: [0, 0, 0, 0],
|
|
3587
3594
|
aliceblue: [240, 248, 255, 1],
|
|
@@ -3791,20 +3798,20 @@ function copyRgba(out2, a) {
|
|
|
3791
3798
|
out2[3] = a[3];
|
|
3792
3799
|
return out2;
|
|
3793
3800
|
}
|
|
3794
|
-
var
|
|
3801
|
+
var colorCache2 = new LRU_default(20);
|
|
3795
3802
|
var lastRemovedArr = null;
|
|
3796
3803
|
function putToCache(colorStr, rgbaArr) {
|
|
3797
3804
|
if (lastRemovedArr) {
|
|
3798
3805
|
copyRgba(lastRemovedArr, rgbaArr);
|
|
3799
3806
|
}
|
|
3800
|
-
lastRemovedArr =
|
|
3807
|
+
lastRemovedArr = colorCache2.put(colorStr, lastRemovedArr || rgbaArr.slice());
|
|
3801
3808
|
}
|
|
3802
3809
|
function parse(colorStr, rgbaArr) {
|
|
3803
3810
|
if (!colorStr) {
|
|
3804
3811
|
return;
|
|
3805
3812
|
}
|
|
3806
3813
|
rgbaArr = rgbaArr || [];
|
|
3807
|
-
let cached =
|
|
3814
|
+
let cached = colorCache2.get(colorStr);
|
|
3808
3815
|
if (cached) {
|
|
3809
3816
|
return copyRgba(rgbaArr, cached);
|
|
3810
3817
|
}
|
|
@@ -4065,7 +4072,7 @@ function liftColor(color2) {
|
|
|
4065
4072
|
return color2;
|
|
4066
4073
|
}
|
|
4067
4074
|
|
|
4068
|
-
//
|
|
4075
|
+
// ../zrender/src/svg/helper.ts
|
|
4069
4076
|
var mathRound = Math.round;
|
|
4070
4077
|
function normalizeColor(color2) {
|
|
4071
4078
|
let opacity;
|
|
@@ -4193,7 +4200,7 @@ var encodeBase64 = function() {
|
|
|
4193
4200
|
};
|
|
4194
4201
|
}();
|
|
4195
4202
|
|
|
4196
|
-
//
|
|
4203
|
+
// ../zrender/src/animation/Animator.ts
|
|
4197
4204
|
var arraySlice = Array.prototype.slice;
|
|
4198
4205
|
function interpolateNumber(p0, p1, percent) {
|
|
4199
4206
|
return (p1 - p0) * percent + p0;
|
|
@@ -4880,7 +4887,7 @@ var Animator = class {
|
|
|
4880
4887
|
};
|
|
4881
4888
|
var Animator_default = Animator;
|
|
4882
4889
|
|
|
4883
|
-
//
|
|
4890
|
+
// ../zrender/src/animation/Animation.ts
|
|
4884
4891
|
function getTime() {
|
|
4885
4892
|
return new Date().getTime();
|
|
4886
4893
|
}
|
|
@@ -5018,7 +5025,7 @@ var Animation = class extends Eventful_default {
|
|
|
5018
5025
|
};
|
|
5019
5026
|
var Animation_default = Animation;
|
|
5020
5027
|
|
|
5021
|
-
//
|
|
5028
|
+
// ../zrender/src/dom/HandlerProxy.ts
|
|
5022
5029
|
var TOUCH_CLICK_DELAY = 300;
|
|
5023
5030
|
var globalEventSupported = env_default.domSupported;
|
|
5024
5031
|
var localNativeListenerNames = function() {
|
|
@@ -5308,7 +5315,7 @@ var HandlerDomProxy = class extends Eventful_default {
|
|
|
5308
5315
|
};
|
|
5309
5316
|
var HandlerProxy_default = HandlerDomProxy;
|
|
5310
5317
|
|
|
5311
|
-
//
|
|
5318
|
+
// ../zrender/src/config.ts
|
|
5312
5319
|
var dpr = 1;
|
|
5313
5320
|
if (env_default.hasGlobalWindow) {
|
|
5314
5321
|
dpr = Math.max(window.devicePixelRatio || window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI || 1, 1);
|
|
@@ -5319,7 +5326,7 @@ var DARK_LABEL_COLOR = "#333";
|
|
|
5319
5326
|
var LIGHT_LABEL_COLOR = "#ccc";
|
|
5320
5327
|
var LIGHTER_LABEL_COLOR = "#eee";
|
|
5321
5328
|
|
|
5322
|
-
//
|
|
5329
|
+
// ../zrender/src/core/Transformable.ts
|
|
5323
5330
|
var mIdentity = identity;
|
|
5324
5331
|
var EPSILON3 = 5e-5;
|
|
5325
5332
|
function isNotAroundZero2(val) {
|
|
@@ -5549,7 +5556,7 @@ function copyTransform(target, source) {
|
|
|
5549
5556
|
}
|
|
5550
5557
|
var Transformable_default = Transformable;
|
|
5551
5558
|
|
|
5552
|
-
//
|
|
5559
|
+
// ../zrender/src/contain/text.ts
|
|
5553
5560
|
var textWidthCache = {};
|
|
5554
5561
|
function getWidth(text, font) {
|
|
5555
5562
|
font = font || DEFAULT_FONT;
|
|
@@ -5711,7 +5718,7 @@ function calculateTextPosition(out2, opts, rect) {
|
|
|
5711
5718
|
return out2;
|
|
5712
5719
|
}
|
|
5713
5720
|
|
|
5714
|
-
//
|
|
5721
|
+
// ../zrender/src/Element.ts
|
|
5715
5722
|
var PRESERVED_NORMAL_STATE = "__zr_normal__";
|
|
5716
5723
|
var PRIMARY_STATES_KEYS = TRANSFORMABLE_PROPS.concat(["ignore"]);
|
|
5717
5724
|
var DEFAULT_ANIMATABLE_MAP = reduce(TRANSFORMABLE_PROPS, (obj, key) => {
|
|
@@ -6701,7 +6708,7 @@ function animateToShallow(animatable, topKey, animateObj, target, cfg, animation
|
|
|
6701
6708
|
}
|
|
6702
6709
|
var Element_default = Element;
|
|
6703
6710
|
|
|
6704
|
-
//
|
|
6711
|
+
// ../zrender/src/graphic/Group.ts
|
|
6705
6712
|
var Group = class extends Element_default {
|
|
6706
6713
|
constructor(opts) {
|
|
6707
6714
|
super();
|
|
@@ -6873,7 +6880,7 @@ var Group = class extends Element_default {
|
|
|
6873
6880
|
Group.prototype.type = "group";
|
|
6874
6881
|
var Group_default = Group;
|
|
6875
6882
|
|
|
6876
|
-
//
|
|
6883
|
+
// ../zrender/src/zrender.ts
|
|
6877
6884
|
/*!
|
|
6878
6885
|
* ZRender, a high performance 2d drawing library.
|
|
6879
6886
|
*
|
|
@@ -8186,7 +8193,7 @@ var AreaStyleMixin = class {
|
|
|
8186
8193
|
}
|
|
8187
8194
|
};
|
|
8188
8195
|
|
|
8189
|
-
//
|
|
8196
|
+
// ../zrender/src/graphic/helper/image.ts
|
|
8190
8197
|
var globalImageCache = new LRU_default(50);
|
|
8191
8198
|
function findExistImage(newImageOrSrc) {
|
|
8192
8199
|
if (typeof newImageOrSrc === "string") {
|
|
@@ -8236,7 +8243,7 @@ function isImageReady(image) {
|
|
|
8236
8243
|
return image && image.width && image.height;
|
|
8237
8244
|
}
|
|
8238
8245
|
|
|
8239
|
-
//
|
|
8246
|
+
// ../zrender/src/graphic/helper/parseText.ts
|
|
8240
8247
|
var STYLE_REG = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;
|
|
8241
8248
|
function truncateText(text, containerWidth, font, ellipsis, options) {
|
|
8242
8249
|
if (!containerWidth) {
|
|
@@ -8670,7 +8677,7 @@ function wrapText(text, font, lineWidth, isBreakAll, lastAccumWidth) {
|
|
|
8670
8677
|
};
|
|
8671
8678
|
}
|
|
8672
8679
|
|
|
8673
|
-
//
|
|
8680
|
+
// ../zrender/src/graphic/Displayable.ts
|
|
8674
8681
|
var STYLE_MAGIC_KEY = "__zr_style_" + Math.round(Math.random() * 10);
|
|
8675
8682
|
var DEFAULT_COMMON_STYLE = {
|
|
8676
8683
|
shadowBlur: 0,
|
|
@@ -8976,7 +8983,7 @@ function isDisplayableCulled(el, width, height) {
|
|
|
8976
8983
|
}
|
|
8977
8984
|
var Displayable_default = Displayable;
|
|
8978
8985
|
|
|
8979
|
-
//
|
|
8986
|
+
// ../zrender/src/core/bbox.ts
|
|
8980
8987
|
var mathMin2 = Math.min;
|
|
8981
8988
|
var mathMax2 = Math.max;
|
|
8982
8989
|
var mathSin = Math.sin;
|
|
@@ -9099,7 +9106,7 @@ function fromArc(x, y, rx, ry, startAngle, endAngle, anticlockwise, min3, max3)
|
|
|
9099
9106
|
}
|
|
9100
9107
|
}
|
|
9101
9108
|
|
|
9102
|
-
//
|
|
9109
|
+
// ../zrender/src/core/PathProxy.ts
|
|
9103
9110
|
var CMD = {
|
|
9104
9111
|
M: 1,
|
|
9105
9112
|
L: 2,
|
|
@@ -9846,7 +9853,7 @@ PathProxy.initDefaultProps = function() {
|
|
|
9846
9853
|
}();
|
|
9847
9854
|
var PathProxy_default = PathProxy;
|
|
9848
9855
|
|
|
9849
|
-
//
|
|
9856
|
+
// ../zrender/src/contain/line.ts
|
|
9850
9857
|
function containStroke(x0, y0, x1, y1, lineWidth, x, y) {
|
|
9851
9858
|
if (lineWidth === 0) {
|
|
9852
9859
|
return false;
|
|
@@ -9868,7 +9875,7 @@ function containStroke(x0, y0, x1, y1, lineWidth, x, y) {
|
|
|
9868
9875
|
return _s <= _l / 2 * _l / 2;
|
|
9869
9876
|
}
|
|
9870
9877
|
|
|
9871
|
-
//
|
|
9878
|
+
// ../zrender/src/contain/cubic.ts
|
|
9872
9879
|
function containStroke2(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
|
|
9873
9880
|
if (lineWidth === 0) {
|
|
9874
9881
|
return false;
|
|
@@ -9881,7 +9888,7 @@ function containStroke2(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
|
|
|
9881
9888
|
return d <= _l / 2;
|
|
9882
9889
|
}
|
|
9883
9890
|
|
|
9884
|
-
//
|
|
9891
|
+
// ../zrender/src/contain/quadratic.ts
|
|
9885
9892
|
function containStroke3(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
|
|
9886
9893
|
if (lineWidth === 0) {
|
|
9887
9894
|
return false;
|
|
@@ -9894,7 +9901,7 @@ function containStroke3(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
|
|
|
9894
9901
|
return d <= _l / 2;
|
|
9895
9902
|
}
|
|
9896
9903
|
|
|
9897
|
-
//
|
|
9904
|
+
// ../zrender/src/contain/util.ts
|
|
9898
9905
|
var PI23 = Math.PI * 2;
|
|
9899
9906
|
function normalizeRadian(angle) {
|
|
9900
9907
|
angle %= PI23;
|
|
@@ -9904,7 +9911,7 @@ function normalizeRadian(angle) {
|
|
|
9904
9911
|
return angle;
|
|
9905
9912
|
}
|
|
9906
9913
|
|
|
9907
|
-
//
|
|
9914
|
+
// ../zrender/src/contain/arc.ts
|
|
9908
9915
|
var PI24 = Math.PI * 2;
|
|
9909
9916
|
function containStroke4(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidth, x, y) {
|
|
9910
9917
|
if (lineWidth === 0) {
|
|
@@ -9938,7 +9945,7 @@ function containStroke4(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidt
|
|
|
9938
9945
|
return angle >= startAngle && angle <= endAngle || angle + PI24 >= startAngle && angle + PI24 <= endAngle;
|
|
9939
9946
|
}
|
|
9940
9947
|
|
|
9941
|
-
//
|
|
9948
|
+
// ../zrender/src/contain/windingLine.ts
|
|
9942
9949
|
function windingLine(x0, y0, x1, y1, x, y) {
|
|
9943
9950
|
if (y > y0 && y > y1 || y < y0 && y < y1) {
|
|
9944
9951
|
return 0;
|
|
@@ -9955,7 +9962,7 @@ function windingLine(x0, y0, x1, y1, x, y) {
|
|
|
9955
9962
|
return x_ === x ? Infinity : x_ > x ? dir3 : 0;
|
|
9956
9963
|
}
|
|
9957
9964
|
|
|
9958
|
-
//
|
|
9965
|
+
// ../zrender/src/contain/path.ts
|
|
9959
9966
|
var CMD2 = PathProxy_default.CMD;
|
|
9960
9967
|
var PI25 = Math.PI * 2;
|
|
9961
9968
|
var EPSILON4 = 1e-4;
|
|
@@ -10238,7 +10245,7 @@ function containStroke5(pathProxy, lineWidth, x, y) {
|
|
|
10238
10245
|
return containPath(pathProxy, lineWidth, true, x, y);
|
|
10239
10246
|
}
|
|
10240
10247
|
|
|
10241
|
-
//
|
|
10248
|
+
// ../zrender/src/graphic/Path.ts
|
|
10242
10249
|
var DEFAULT_PATH_STYLE = defaults({
|
|
10243
10250
|
fill: "#000",
|
|
10244
10251
|
stroke: null,
|
|
@@ -10615,7 +10622,7 @@ Path.initDefaultProps = function() {
|
|
|
10615
10622
|
}();
|
|
10616
10623
|
var Path_default = Path;
|
|
10617
10624
|
|
|
10618
|
-
//
|
|
10625
|
+
// ../zrender/src/graphic/TSpan.ts
|
|
10619
10626
|
var DEFAULT_TSPAN_STYLE = defaults({
|
|
10620
10627
|
strokeFirst: true,
|
|
10621
10628
|
font: DEFAULT_FONT,
|
|
@@ -10670,7 +10677,7 @@ TSpan.initDefaultProps = function() {
|
|
|
10670
10677
|
TSpan.prototype.type = "tspan";
|
|
10671
10678
|
var TSpan_default = TSpan;
|
|
10672
10679
|
|
|
10673
|
-
//
|
|
10680
|
+
// ../zrender/src/graphic/Image.ts
|
|
10674
10681
|
var DEFAULT_IMAGE_STYLE = defaults({
|
|
10675
10682
|
x: 0,
|
|
10676
10683
|
y: 0
|
|
@@ -10732,7 +10739,7 @@ var ZRImage = class extends Displayable_default {
|
|
|
10732
10739
|
ZRImage.prototype.type = "image";
|
|
10733
10740
|
var Image_default = ZRImage;
|
|
10734
10741
|
|
|
10735
|
-
//
|
|
10742
|
+
// ../zrender/src/graphic/helper/roundRect.ts
|
|
10736
10743
|
function buildPath(ctx, shape) {
|
|
10737
10744
|
let x = shape.x;
|
|
10738
10745
|
let y = shape.y;
|
|
@@ -10804,7 +10811,7 @@ function buildPath(ctx, shape) {
|
|
|
10804
10811
|
r1 !== 0 && ctx.arc(x + r1, y + r1, r1, Math.PI, Math.PI * 1.5);
|
|
10805
10812
|
}
|
|
10806
10813
|
|
|
10807
|
-
//
|
|
10814
|
+
// ../zrender/src/graphic/helper/subPixelOptimize.ts
|
|
10808
10815
|
var round2 = Math.round;
|
|
10809
10816
|
function subPixelOptimizeLine(outputShape, inputShape, style) {
|
|
10810
10817
|
if (!inputShape) {
|
|
@@ -10860,7 +10867,7 @@ function subPixelOptimize(position2, lineWidth, positiveOrNegative) {
|
|
|
10860
10867
|
return (doubledPosition + round2(lineWidth)) % 2 === 0 ? doubledPosition / 2 : (doubledPosition + (positiveOrNegative ? 1 : -1)) / 2;
|
|
10861
10868
|
}
|
|
10862
10869
|
|
|
10863
|
-
//
|
|
10870
|
+
// ../zrender/src/graphic/shape/Rect.ts
|
|
10864
10871
|
var RectShape = class {
|
|
10865
10872
|
constructor() {
|
|
10866
10873
|
this.x = 0;
|
|
@@ -10909,7 +10916,7 @@ var Rect = class extends Path_default {
|
|
|
10909
10916
|
Rect.prototype.type = "rect";
|
|
10910
10917
|
var Rect_default = Rect;
|
|
10911
10918
|
|
|
10912
|
-
//
|
|
10919
|
+
// ../zrender/src/graphic/Text.ts
|
|
10913
10920
|
var DEFAULT_RICH_TEXT_COLOR = {
|
|
10914
10921
|
fill: "#000"
|
|
10915
10922
|
};
|
|
@@ -12114,7 +12121,7 @@ __export(graphic_exports, {
|
|
|
12114
12121
|
updateProps: () => updateProps
|
|
12115
12122
|
});
|
|
12116
12123
|
|
|
12117
|
-
//
|
|
12124
|
+
// ../zrender/src/tool/transformPath.ts
|
|
12118
12125
|
var CMD3 = PathProxy_default.CMD;
|
|
12119
12126
|
var points = [[], [], []];
|
|
12120
12127
|
var mathSqrt2 = Math.sqrt;
|
|
@@ -12205,7 +12212,7 @@ function transformPath(path, m2) {
|
|
|
12205
12212
|
path.increaseVersion();
|
|
12206
12213
|
}
|
|
12207
12214
|
|
|
12208
|
-
//
|
|
12215
|
+
// ../zrender/src/tool/path.ts
|
|
12209
12216
|
var mathSqrt3 = Math.sqrt;
|
|
12210
12217
|
var mathSin3 = Math.sin;
|
|
12211
12218
|
var mathCos3 = Math.cos;
|
|
@@ -12550,7 +12557,7 @@ function clonePath(sourcePath, opts) {
|
|
|
12550
12557
|
return path;
|
|
12551
12558
|
}
|
|
12552
12559
|
|
|
12553
|
-
//
|
|
12560
|
+
// ../zrender/src/graphic/shape/Circle.ts
|
|
12554
12561
|
var CircleShape = class {
|
|
12555
12562
|
constructor() {
|
|
12556
12563
|
this.cx = 0;
|
|
@@ -12573,7 +12580,7 @@ var Circle = class extends Path_default {
|
|
|
12573
12580
|
Circle.prototype.type = "circle";
|
|
12574
12581
|
var Circle_default = Circle;
|
|
12575
12582
|
|
|
12576
|
-
//
|
|
12583
|
+
// ../zrender/src/graphic/shape/Ellipse.ts
|
|
12577
12584
|
var EllipseShape = class {
|
|
12578
12585
|
constructor() {
|
|
12579
12586
|
this.cx = 0;
|
|
@@ -12608,7 +12615,7 @@ var Ellipse = class extends Path_default {
|
|
|
12608
12615
|
Ellipse.prototype.type = "ellipse";
|
|
12609
12616
|
var Ellipse_default = Ellipse;
|
|
12610
12617
|
|
|
12611
|
-
//
|
|
12618
|
+
// ../zrender/src/graphic/helper/roundSector.ts
|
|
12612
12619
|
var PI4 = Math.PI;
|
|
12613
12620
|
var PI26 = PI4 * 2;
|
|
12614
12621
|
var mathSin4 = Math.sin;
|
|
@@ -12823,7 +12830,7 @@ function buildPath2(ctx, shape) {
|
|
|
12823
12830
|
ctx.closePath();
|
|
12824
12831
|
}
|
|
12825
12832
|
|
|
12826
|
-
//
|
|
12833
|
+
// ../zrender/src/graphic/shape/Sector.ts
|
|
12827
12834
|
var SectorShape = class {
|
|
12828
12835
|
constructor() {
|
|
12829
12836
|
this.cx = 0;
|
|
@@ -12853,7 +12860,7 @@ var Sector = class extends Path_default {
|
|
|
12853
12860
|
Sector.prototype.type = "sector";
|
|
12854
12861
|
var Sector_default = Sector;
|
|
12855
12862
|
|
|
12856
|
-
//
|
|
12863
|
+
// ../zrender/src/graphic/shape/Ring.ts
|
|
12857
12864
|
var RingShape = class {
|
|
12858
12865
|
constructor() {
|
|
12859
12866
|
this.cx = 0;
|
|
@@ -12882,7 +12889,7 @@ var Ring = class extends Path_default {
|
|
|
12882
12889
|
Ring.prototype.type = "ring";
|
|
12883
12890
|
var Ring_default = Ring;
|
|
12884
12891
|
|
|
12885
|
-
//
|
|
12892
|
+
// ../zrender/src/graphic/helper/smoothBezier.ts
|
|
12886
12893
|
function smoothBezier(points4, smooth, isLoop, constraint) {
|
|
12887
12894
|
const cps = [];
|
|
12888
12895
|
const v = [];
|
|
@@ -12944,7 +12951,7 @@ function smoothBezier(points4, smooth, isLoop, constraint) {
|
|
|
12944
12951
|
return cps;
|
|
12945
12952
|
}
|
|
12946
12953
|
|
|
12947
|
-
//
|
|
12954
|
+
// ../zrender/src/graphic/helper/poly.ts
|
|
12948
12955
|
function buildPath3(ctx, shape, closePath) {
|
|
12949
12956
|
const smooth = shape.smooth;
|
|
12950
12957
|
let points4 = shape.points;
|
|
@@ -12969,7 +12976,7 @@ function buildPath3(ctx, shape, closePath) {
|
|
|
12969
12976
|
}
|
|
12970
12977
|
}
|
|
12971
12978
|
|
|
12972
|
-
//
|
|
12979
|
+
// ../zrender/src/graphic/shape/Polygon.ts
|
|
12973
12980
|
var PolygonShape = class {
|
|
12974
12981
|
constructor() {
|
|
12975
12982
|
this.points = null;
|
|
@@ -12991,7 +12998,7 @@ var Polygon = class extends Path_default {
|
|
|
12991
12998
|
Polygon.prototype.type = "polygon";
|
|
12992
12999
|
var Polygon_default = Polygon;
|
|
12993
13000
|
|
|
12994
|
-
//
|
|
13001
|
+
// ../zrender/src/graphic/shape/Polyline.ts
|
|
12995
13002
|
var PolylineShape = class {
|
|
12996
13003
|
constructor() {
|
|
12997
13004
|
this.points = null;
|
|
@@ -13020,7 +13027,7 @@ var Polyline = class extends Path_default {
|
|
|
13020
13027
|
Polyline.prototype.type = "polyline";
|
|
13021
13028
|
var Polyline_default = Polyline;
|
|
13022
13029
|
|
|
13023
|
-
//
|
|
13030
|
+
// ../zrender/src/graphic/shape/Line.ts
|
|
13024
13031
|
var subPixelOptimizeOutputShape2 = {};
|
|
13025
13032
|
var LineShape = class {
|
|
13026
13033
|
constructor() {
|
|
@@ -13083,7 +13090,7 @@ var Line = class extends Path_default {
|
|
|
13083
13090
|
Line.prototype.type = "line";
|
|
13084
13091
|
var Line_default = Line;
|
|
13085
13092
|
|
|
13086
|
-
//
|
|
13093
|
+
// ../zrender/src/graphic/shape/BezierCurve.ts
|
|
13087
13094
|
var out = [];
|
|
13088
13095
|
var BezierCurveShape = class {
|
|
13089
13096
|
constructor() {
|
|
@@ -13173,7 +13180,7 @@ var BezierCurve = class extends Path_default {
|
|
|
13173
13180
|
BezierCurve.prototype.type = "bezier-curve";
|
|
13174
13181
|
var BezierCurve_default = BezierCurve;
|
|
13175
13182
|
|
|
13176
|
-
//
|
|
13183
|
+
// ../zrender/src/graphic/shape/Arc.ts
|
|
13177
13184
|
var ArcShape = class {
|
|
13178
13185
|
constructor() {
|
|
13179
13186
|
this.cx = 0;
|
|
@@ -13213,7 +13220,7 @@ var Arc = class extends Path_default {
|
|
|
13213
13220
|
Arc.prototype.type = "arc";
|
|
13214
13221
|
var Arc_default = Arc;
|
|
13215
13222
|
|
|
13216
|
-
//
|
|
13223
|
+
// ../zrender/src/graphic/CompoundPath.ts
|
|
13217
13224
|
var CompoundPath = class extends Path_default {
|
|
13218
13225
|
constructor() {
|
|
13219
13226
|
super(...arguments);
|
|
@@ -13259,7 +13266,7 @@ var CompoundPath = class extends Path_default {
|
|
|
13259
13266
|
};
|
|
13260
13267
|
var CompoundPath_default = CompoundPath;
|
|
13261
13268
|
|
|
13262
|
-
//
|
|
13269
|
+
// ../zrender/src/graphic/Gradient.ts
|
|
13263
13270
|
var Gradient = class {
|
|
13264
13271
|
constructor(colorStops) {
|
|
13265
13272
|
this.colorStops = colorStops || [];
|
|
@@ -13273,7 +13280,7 @@ var Gradient = class {
|
|
|
13273
13280
|
};
|
|
13274
13281
|
var Gradient_default = Gradient;
|
|
13275
13282
|
|
|
13276
|
-
//
|
|
13283
|
+
// ../zrender/src/graphic/LinearGradient.ts
|
|
13277
13284
|
var LinearGradient = class extends Gradient_default {
|
|
13278
13285
|
constructor(x, y, x2, y2, colorStops, globalCoord) {
|
|
13279
13286
|
super(colorStops);
|
|
@@ -13287,7 +13294,7 @@ var LinearGradient = class extends Gradient_default {
|
|
|
13287
13294
|
};
|
|
13288
13295
|
var LinearGradient_default = LinearGradient;
|
|
13289
13296
|
|
|
13290
|
-
//
|
|
13297
|
+
// ../zrender/src/graphic/RadialGradient.ts
|
|
13291
13298
|
var RadialGradient = class extends Gradient_default {
|
|
13292
13299
|
constructor(x, y, r, colorStops, globalCoord) {
|
|
13293
13300
|
super(colorStops);
|
|
@@ -13300,7 +13307,7 @@ var RadialGradient = class extends Gradient_default {
|
|
|
13300
13307
|
};
|
|
13301
13308
|
var RadialGradient_default = RadialGradient;
|
|
13302
13309
|
|
|
13303
|
-
//
|
|
13310
|
+
// ../zrender/src/core/OrientedBoundingRect.ts
|
|
13304
13311
|
var extent = [0, 0];
|
|
13305
13312
|
var extent2 = [0, 0];
|
|
13306
13313
|
var minTv2 = new Point_default();
|
|
@@ -13417,7 +13424,7 @@ var OrientedBoundingRect = class {
|
|
|
13417
13424
|
};
|
|
13418
13425
|
var OrientedBoundingRect_default = OrientedBoundingRect;
|
|
13419
13426
|
|
|
13420
|
-
//
|
|
13427
|
+
// ../zrender/src/graphic/IncrementalDisplayable.ts
|
|
13421
13428
|
var m = [];
|
|
13422
13429
|
var IncrementalDisplayable = class extends Displayable_default {
|
|
13423
13430
|
constructor() {
|
|
@@ -21692,7 +21699,7 @@ function findEventDispatcher(target, det, returnFirstMatch) {
|
|
|
21692
21699
|
return found;
|
|
21693
21700
|
}
|
|
21694
21701
|
|
|
21695
|
-
//
|
|
21702
|
+
// ../zrender/src/core/WeakMap.ts
|
|
21696
21703
|
var wmUniqueIndex = Math.round(Math.random() * 9);
|
|
21697
21704
|
var supportDefineProperty = typeof Object.defineProperty === "function";
|
|
21698
21705
|
var WeakMap = class {
|
|
@@ -22410,7 +22417,7 @@ var symbolShapeMakers = {
|
|
|
22410
22417
|
const offsetY = parentShape.offsetY;
|
|
22411
22418
|
const offsetX = parentShape.offsetX;
|
|
22412
22419
|
const offsetWidth = parentShape.offsetWidth;
|
|
22413
|
-
shape.x = x - w -
|
|
22420
|
+
shape.x = x - w - offsetX;
|
|
22414
22421
|
shape.y = y - h - offsetY;
|
|
22415
22422
|
shape.width = w;
|
|
22416
22423
|
shape.height = h;
|
|
@@ -22580,7 +22587,7 @@ function normalizeSymbolOffset(symbolOffset, symbolSize) {
|
|
|
22580
22587
|
];
|
|
22581
22588
|
}
|
|
22582
22589
|
|
|
22583
|
-
//
|
|
22590
|
+
// ../zrender/src/canvas/helper.ts
|
|
22584
22591
|
function isSafeNum(num) {
|
|
22585
22592
|
return isFinite(num);
|
|
22586
22593
|
}
|
|
@@ -22657,7 +22664,7 @@ function getSize(root, whIdx, opts) {
|
|
|
22657
22664
|
return (root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh])) - (parseInt10(stl[plt]) || 0) - (parseInt10(stl[prb]) || 0) | 0;
|
|
22658
22665
|
}
|
|
22659
22666
|
|
|
22660
|
-
//
|
|
22667
|
+
// ../zrender/src/canvas/dashStyle.ts
|
|
22661
22668
|
function normalizeLineDash(lineType, lineWidth) {
|
|
22662
22669
|
if (!lineType || lineType === "solid" || !(lineWidth > 0)) {
|
|
22663
22670
|
return null;
|
|
@@ -22680,7 +22687,7 @@ function getLineDash(el) {
|
|
|
22680
22687
|
return [lineDash, lineDashOffset];
|
|
22681
22688
|
}
|
|
22682
22689
|
|
|
22683
|
-
//
|
|
22690
|
+
// ../zrender/src/canvas/graphic.ts
|
|
22684
22691
|
var pathProxyForDraw = new PathProxy_default(true);
|
|
22685
22692
|
function styleHasStroke(style) {
|
|
22686
22693
|
const stroke = style.stroke;
|
|
@@ -29066,7 +29073,7 @@ function createTextStyle2(textStyleModel, opts) {
|
|
|
29066
29073
|
return createTextStyle(textStyleModel, null, null, opts.state !== "normal");
|
|
29067
29074
|
}
|
|
29068
29075
|
|
|
29069
|
-
//
|
|
29076
|
+
// ../zrender/src/contain/polygon.ts
|
|
29070
29077
|
var EPSILON5 = 1e-8;
|
|
29071
29078
|
function isAroundEqual2(a, b) {
|
|
29072
29079
|
return Math.abs(a - b) < EPSILON5;
|
|
@@ -31030,7 +31037,7 @@ function installLabelLayout(registers) {
|
|
|
31030
31037
|
});
|
|
31031
31038
|
}
|
|
31032
31039
|
|
|
31033
|
-
//
|
|
31040
|
+
// ../zrender/src/svg/SVGPathRebuilder.ts
|
|
31034
31041
|
var mathSin5 = Math.sin;
|
|
31035
31042
|
var mathCos5 = Math.cos;
|
|
31036
31043
|
var PI6 = Math.PI;
|
|
@@ -31127,7 +31134,7 @@ var SVGPathRebuilder = class {
|
|
|
31127
31134
|
};
|
|
31128
31135
|
var SVGPathRebuilder_default = SVGPathRebuilder;
|
|
31129
31136
|
|
|
31130
|
-
//
|
|
31137
|
+
// ../zrender/src/svg/mapStyleToAttrs.ts
|
|
31131
31138
|
var NONE = "none";
|
|
31132
31139
|
var mathRound2 = Math.round;
|
|
31133
31140
|
function pathHasFill(style) {
|
|
@@ -31196,7 +31203,7 @@ function mapStyleToAttrs(updateAttr2, style, el, forceUpdate) {
|
|
|
31196
31203
|
}
|
|
31197
31204
|
}
|
|
31198
31205
|
|
|
31199
|
-
//
|
|
31206
|
+
// ../zrender/src/svg/core.ts
|
|
31200
31207
|
var SVGNS = "http://www.w3.org/2000/svg";
|
|
31201
31208
|
var XLINKNS = "http://www.w3.org/1999/xlink";
|
|
31202
31209
|
var XMLNS = "http://www.w3.org/2000/xmlns/";
|
|
@@ -31298,13 +31305,13 @@ function createSVGVNode(width, height, children, useViewBox) {
|
|
|
31298
31305
|
}, children);
|
|
31299
31306
|
}
|
|
31300
31307
|
|
|
31301
|
-
//
|
|
31308
|
+
// ../zrender/src/svg/cssClassId.ts
|
|
31302
31309
|
var cssClassIdx = 0;
|
|
31303
31310
|
function getClassId() {
|
|
31304
31311
|
return cssClassIdx++;
|
|
31305
31312
|
}
|
|
31306
31313
|
|
|
31307
|
-
//
|
|
31314
|
+
// ../zrender/src/svg/cssAnimation.ts
|
|
31308
31315
|
var EASING_MAP = {
|
|
31309
31316
|
cubicIn: "0.32,0,0.67,0",
|
|
31310
31317
|
cubicOut: "0.33,1,0.68,1",
|
|
@@ -31565,7 +31572,7 @@ function createCSSAnimation(el, attrs, scope, onlyShape) {
|
|
|
31565
31572
|
}
|
|
31566
31573
|
}
|
|
31567
31574
|
|
|
31568
|
-
//
|
|
31575
|
+
// ../zrender/src/svg/cssEmphasis.ts
|
|
31569
31576
|
function createCSSEmphasis(el, attrs, scope) {
|
|
31570
31577
|
if (!el.ignore) {
|
|
31571
31578
|
if (el.isSilent()) {
|
|
@@ -31616,7 +31623,7 @@ function setClassAttribute(style, attrs, scope, withHover) {
|
|
|
31616
31623
|
attrs.class = attrs.class ? attrs.class + " " + className : className;
|
|
31617
31624
|
}
|
|
31618
31625
|
|
|
31619
|
-
//
|
|
31626
|
+
// ../zrender/src/svg/graphic.ts
|
|
31620
31627
|
var round5 = Math.round;
|
|
31621
31628
|
function isImageLike2(val) {
|
|
31622
31629
|
return val && isString(val.src);
|
|
@@ -32050,7 +32057,7 @@ function setClipPath(clipPath, attrs, scope) {
|
|
|
32050
32057
|
attrs["clip-path"] = getIdURL(clipPathId);
|
|
32051
32058
|
}
|
|
32052
32059
|
|
|
32053
|
-
//
|
|
32060
|
+
// ../zrender/src/svg/domapi.ts
|
|
32054
32061
|
function createTextNode(text) {
|
|
32055
32062
|
return document.createTextNode(text);
|
|
32056
32063
|
}
|
|
@@ -32073,7 +32080,7 @@ function setTextContent(node, text) {
|
|
|
32073
32080
|
node.textContent = text;
|
|
32074
32081
|
}
|
|
32075
32082
|
|
|
32076
|
-
//
|
|
32083
|
+
// ../zrender/src/svg/patch.ts
|
|
32077
32084
|
var colonChar = 58;
|
|
32078
32085
|
var xChar = 120;
|
|
32079
32086
|
var emptyNode = createVNode("", "");
|
|
@@ -32299,7 +32306,7 @@ function patch(oldVnode, vnode) {
|
|
|
32299
32306
|
return vnode;
|
|
32300
32307
|
}
|
|
32301
32308
|
|
|
32302
|
-
//
|
|
32309
|
+
// ../zrender/src/svg/Painter.ts
|
|
32303
32310
|
var svgId = 0;
|
|
32304
32311
|
var SVGPainter = class {
|
|
32305
32312
|
constructor(root, storage2, opts) {
|
|
@@ -32542,7 +32549,7 @@ function install(registers) {
|
|
|
32542
32549
|
registers.registerPainter("svg", Painter_default);
|
|
32543
32550
|
}
|
|
32544
32551
|
|
|
32545
|
-
//
|
|
32552
|
+
// ../zrender/src/canvas/Layer.ts
|
|
32546
32553
|
function createDom(id, painter, dpr2) {
|
|
32547
32554
|
const newDom = platformApi.createCanvas();
|
|
32548
32555
|
const width = painter.getWidth();
|
|
@@ -32815,7 +32822,7 @@ var Layer = class extends Eventful_default {
|
|
|
32815
32822
|
};
|
|
32816
32823
|
var Layer_default = Layer;
|
|
32817
32824
|
|
|
32818
|
-
//
|
|
32825
|
+
// ../zrender/src/canvas/Painter.ts
|
|
32819
32826
|
var HOVER_LAYER_ZLEVEL = 1e5;
|
|
32820
32827
|
var CANVAS_ZLEVEL = 314159;
|
|
32821
32828
|
var EL_AFTER_INCREMENTAL_INC = 0.01;
|
|
@@ -38371,7 +38378,7 @@ var Cartesian2D = class extends Cartesian_default {
|
|
|
38371
38378
|
return new BoundingRect_default(x, y, width, height);
|
|
38372
38379
|
}
|
|
38373
38380
|
getBaseValue() {
|
|
38374
|
-
let baseValue
|
|
38381
|
+
let baseValue;
|
|
38375
38382
|
const seriesModal = this.seriesModal;
|
|
38376
38383
|
if (seriesModal) {
|
|
38377
38384
|
const seriesData = seriesModal.getData();
|
|
@@ -40962,7 +40969,7 @@ function onIrrelevantElement(e2, api2, targetCoordSysModel) {
|
|
|
40962
40969
|
return model && model !== targetCoordSysModel && !IRRELEVANT_EXCLUDES.hasOwnProperty(model.mainType) && (coordSys && coordSys.model !== targetCoordSysModel);
|
|
40963
40970
|
}
|
|
40964
40971
|
|
|
40965
|
-
//
|
|
40972
|
+
// ../zrender/src/tool/parseXML.ts
|
|
40966
40973
|
function parseXML(svg) {
|
|
40967
40974
|
if (isString(svg)) {
|
|
40968
40975
|
const parser = new DOMParser();
|
|
@@ -40978,7 +40985,7 @@ function parseXML(svg) {
|
|
|
40978
40985
|
return svgNode;
|
|
40979
40986
|
}
|
|
40980
40987
|
|
|
40981
|
-
//
|
|
40988
|
+
// ../zrender/src/tool/parseSVG.ts
|
|
40982
40989
|
var nodeParsers;
|
|
40983
40990
|
var INHERITABLE_STYLE_ATTRIBUTES_MAP = {
|
|
40984
40991
|
fill: "fill",
|
|
@@ -55238,14 +55245,13 @@ var linesPlotLayout = {
|
|
|
55238
55245
|
const linePointsByKey = {};
|
|
55239
55246
|
const symbolPointsByColor = {};
|
|
55240
55247
|
let lastKey = "";
|
|
55241
|
-
const
|
|
55242
|
-
const defaultColor = Array.isArray(stroke) ? stroke[0] : stroke;
|
|
55248
|
+
const defaultColor = "transparent";
|
|
55243
55249
|
function setSymbolPoint(point, index) {
|
|
55244
55250
|
if (!symbolVisible) {
|
|
55245
55251
|
return;
|
|
55246
55252
|
}
|
|
55247
55253
|
const dataModal = lineData.getItemModel(index);
|
|
55248
|
-
const symbolColor = dataModal.get("itemStyle")?.color;
|
|
55254
|
+
const symbolColor = dataModal.get("itemStyle")?.color || defaultColor;
|
|
55249
55255
|
const symbol = dataModal.get("symbol");
|
|
55250
55256
|
const symbolKey = `${symbol}`;
|
|
55251
55257
|
const symbolData = symbolPointsByColor[symbolKey] || [];
|
|
@@ -55298,11 +55304,11 @@ var linesPlotLayout = {
|
|
|
55298
55304
|
}
|
|
55299
55305
|
const itemModel = lineData.getItemModel(isSingle ? i : i + 1);
|
|
55300
55306
|
const {
|
|
55301
|
-
color: color2
|
|
55307
|
+
color: color2,
|
|
55302
55308
|
type = "solid",
|
|
55303
55309
|
width = "1"
|
|
55304
55310
|
} = itemModel.get("lineStyle");
|
|
55305
|
-
const key = `${color2}:${type}:${width}`;
|
|
55311
|
+
const key = `${color2 || defaultColor}:${type}:${width}`;
|
|
55306
55312
|
const points4 = linePointsByKey[key] || [];
|
|
55307
55313
|
if (!isSingle && lastKey !== key) {
|
|
55308
55314
|
if (lastKey) {
|
|
@@ -55710,7 +55716,7 @@ function changeLabelOffsetBySymbol(symbol, symbolRect, shape, oldOffset) {
|
|
|
55710
55716
|
case "labelLowerLeft":
|
|
55711
55717
|
return [offsetX + shape.offsetX / 2 + symbolRect[0] / 2, offsetY - shape.offsetY];
|
|
55712
55718
|
case "labelLowerRight":
|
|
55713
|
-
return [offsetX - shape.offsetX
|
|
55719
|
+
return [offsetX - shape.offsetX - symbolRect[0] / 2, offsetY - shape.offsetY];
|
|
55714
55720
|
case "labelUpperLeft":
|
|
55715
55721
|
return [offsetX + shape.offsetX + symbolRect[0] / 2, offsetY + shape.offsetWidth - symbolRect[1] / 2];
|
|
55716
55722
|
case "labelUpperRight":
|
|
@@ -56074,6 +56080,48 @@ var FillPolyPath = class extends Path_default {
|
|
|
56074
56080
|
};
|
|
56075
56081
|
var FillPolyPath_default = FillPolyPath;
|
|
56076
56082
|
|
|
56083
|
+
// src/chart/fills/LargeFillPolyPath.ts
|
|
56084
|
+
var LargeFillPolyShape = class {
|
|
56085
|
+
constructor() {
|
|
56086
|
+
this.pointsByColor = {};
|
|
56087
|
+
}
|
|
56088
|
+
};
|
|
56089
|
+
var LargeFillPolyPath = class extends Path_default {
|
|
56090
|
+
constructor(opts) {
|
|
56091
|
+
super(opts);
|
|
56092
|
+
this.type = "largeFillPoly";
|
|
56093
|
+
}
|
|
56094
|
+
getDefaultStyle() {
|
|
56095
|
+
return {
|
|
56096
|
+
stroke: "transparent"
|
|
56097
|
+
};
|
|
56098
|
+
}
|
|
56099
|
+
getDefaultShape() {
|
|
56100
|
+
return new LargeFillPolyShape();
|
|
56101
|
+
}
|
|
56102
|
+
buildPath(ctx, shape) {
|
|
56103
|
+
const {pointsByColor} = shape;
|
|
56104
|
+
each(pointsByColor, function(points4, color2) {
|
|
56105
|
+
ctx.beginPathFill();
|
|
56106
|
+
for (let index = 0; index < points4.length; index++) {
|
|
56107
|
+
const polyPoints = points4[index];
|
|
56108
|
+
for (let i = 0; i < polyPoints.length; i++) {
|
|
56109
|
+
if (i === 0) {
|
|
56110
|
+
ctx.moveTo(polyPoints[i][0], polyPoints[i][1]);
|
|
56111
|
+
continue;
|
|
56112
|
+
}
|
|
56113
|
+
ctx.lineTo(polyPoints[i][0], polyPoints[i][1]);
|
|
56114
|
+
if (i + 1 === polyPoints.length) {
|
|
56115
|
+
ctx.closePath();
|
|
56116
|
+
}
|
|
56117
|
+
}
|
|
56118
|
+
}
|
|
56119
|
+
ctx.fillStyle(color2);
|
|
56120
|
+
});
|
|
56121
|
+
}
|
|
56122
|
+
};
|
|
56123
|
+
var LargeFillPolyPath_default = LargeFillPolyPath;
|
|
56124
|
+
|
|
56077
56125
|
// src/chart/fills/FillsView.ts
|
|
56078
56126
|
var FillsView2 = class extends Chart_default {
|
|
56079
56127
|
constructor() {
|
|
@@ -56094,40 +56142,54 @@ var FillsView2 = class extends Chart_default {
|
|
|
56094
56142
|
const z2 = seriesModel.get("z2");
|
|
56095
56143
|
const polygonGroup = this._polygonGroup;
|
|
56096
56144
|
const coordSys = seriesModel.coordinateSystem;
|
|
56097
|
-
|
|
56098
|
-
|
|
56099
|
-
|
|
56100
|
-
let isDefaultFill = false;
|
|
56101
|
-
if (colors.length > 1) {
|
|
56102
|
-
const [topColor, topValue, bottomColor, bottomValue] = colors;
|
|
56103
|
-
const tValue = coordSys.dataToPoint([0, topValue])[1];
|
|
56104
|
-
const bValue = coordSys.dataToPoint([0, bottomValue])[1];
|
|
56105
|
-
fill = new LinearGradient_default(0, tValue, 0, bValue, [
|
|
56106
|
-
{
|
|
56107
|
-
offset: 0,
|
|
56108
|
-
color: topColor
|
|
56109
|
-
},
|
|
56110
|
-
{
|
|
56111
|
-
offset: 1,
|
|
56112
|
-
color: bottomColor
|
|
56113
|
-
}
|
|
56114
|
-
], true);
|
|
56115
|
-
} else {
|
|
56116
|
-
const {color: color2, isDefaultColor} = getFormatColor(fill);
|
|
56117
|
-
fill = color2;
|
|
56118
|
-
isDefaultFill = isDefaultColor;
|
|
56119
|
-
}
|
|
56120
|
-
const el = new FillPolyPath_default({
|
|
56145
|
+
const fillLength = Object.keys(pointsByColor).length;
|
|
56146
|
+
if (fillLength >= 8) {
|
|
56147
|
+
const el = new LargeFillPolyPath_default({
|
|
56121
56148
|
shape: {
|
|
56122
|
-
|
|
56149
|
+
pointsByColor
|
|
56123
56150
|
},
|
|
56124
56151
|
style: {
|
|
56125
|
-
fill
|
|
56152
|
+
fill: "none"
|
|
56126
56153
|
},
|
|
56127
|
-
z2
|
|
56154
|
+
z2
|
|
56128
56155
|
});
|
|
56129
56156
|
polygonGroup.add(el);
|
|
56130
|
-
}
|
|
56157
|
+
} else {
|
|
56158
|
+
each(pointsByColor, function(points4, key) {
|
|
56159
|
+
const colors = key.split(":");
|
|
56160
|
+
let fill = key;
|
|
56161
|
+
let isDefaultFill = false;
|
|
56162
|
+
if (colors.length > 1) {
|
|
56163
|
+
const [topColor, topValue, bottomColor, bottomValue] = colors;
|
|
56164
|
+
const tValue = coordSys.dataToPoint([0, topValue])[1];
|
|
56165
|
+
const bValue = coordSys.dataToPoint([0, bottomValue])[1];
|
|
56166
|
+
fill = new LinearGradient_default(0, tValue, 0, bValue, [
|
|
56167
|
+
{
|
|
56168
|
+
offset: 0,
|
|
56169
|
+
color: topColor
|
|
56170
|
+
},
|
|
56171
|
+
{
|
|
56172
|
+
offset: 1,
|
|
56173
|
+
color: bottomColor
|
|
56174
|
+
}
|
|
56175
|
+
], true);
|
|
56176
|
+
} else {
|
|
56177
|
+
const {color: color2, isDefaultColor} = getFormatColor(fill);
|
|
56178
|
+
fill = color2;
|
|
56179
|
+
isDefaultFill = isDefaultColor;
|
|
56180
|
+
}
|
|
56181
|
+
const el = new FillPolyPath_default({
|
|
56182
|
+
shape: {
|
|
56183
|
+
points: points4
|
|
56184
|
+
},
|
|
56185
|
+
style: {
|
|
56186
|
+
fill
|
|
56187
|
+
},
|
|
56188
|
+
z2: isDefaultFill ? -1 : z2
|
|
56189
|
+
});
|
|
56190
|
+
polygonGroup.add(el);
|
|
56191
|
+
});
|
|
56192
|
+
}
|
|
56131
56193
|
const clipPath = seriesModel.get("clip", true) && createClipPath(seriesModel.coordinateSystem, false, seriesModel);
|
|
56132
56194
|
if (clipPath) {
|
|
56133
56195
|
this.group.setClipPath(clipPath);
|
|
@@ -75280,7 +75342,7 @@ function install62(registers) {
|
|
|
75280
75342
|
registers.registerComponentView(DatasetView);
|
|
75281
75343
|
}
|
|
75282
75344
|
|
|
75283
|
-
//
|
|
75345
|
+
// ../zrender/src/tool/convertPath.ts
|
|
75284
75346
|
var CMD5 = PathProxy_default.CMD;
|
|
75285
75347
|
function aroundEqual(a, b) {
|
|
75286
75348
|
return Math.abs(a - b) < 1e-5;
|
|
@@ -75480,7 +75542,7 @@ function pathToPolygons(path, scale4) {
|
|
|
75480
75542
|
return polygons;
|
|
75481
75543
|
}
|
|
75482
75544
|
|
|
75483
|
-
//
|
|
75545
|
+
// ../zrender/src/tool/dividePath.ts
|
|
75484
75546
|
function getDividingGrids(dimSize, rowDim, count2) {
|
|
75485
75547
|
const rowSize = dimSize[rowDim];
|
|
75486
75548
|
const columnSize = dimSize[1 - rowDim];
|
|
@@ -75782,7 +75844,7 @@ function split(path, count2) {
|
|
|
75782
75844
|
return out2;
|
|
75783
75845
|
}
|
|
75784
75846
|
|
|
75785
|
-
//
|
|
75847
|
+
// ../zrender/src/tool/morphPath.ts
|
|
75786
75848
|
function alignSubpath(subpath1, subpath2) {
|
|
75787
75849
|
const len1 = subpath1.length;
|
|
75788
75850
|
const len2 = subpath2.length;
|