tvcharts 0.6.32 → 0.6.33
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 +133 -122
- package/dist/echarts.js.map +3 -3
- package/lib/component/dataZoom/DataZoomModel.js +16 -8
- package/lib/component/dataZoom/InsideZoomView.js +16 -11
- package/lib/component/dataZoom/dataZoomAction.js +4 -4
- package/lib/component/dataZoom/roams.js +11 -12
- package/package.json +1 -1
- package/types/src/component/dataZoom/DataZoomModel.d.ts +4 -1
- package/types/src/component/dataZoom/InsideZoomView.d.ts +1 -0
package/dist/echarts.js
CHANGED
|
@@ -80,7 +80,7 @@ __export(exports, {
|
|
|
80
80
|
zrender: () => zrender_exports
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
//
|
|
83
|
+
// node_modules/tvrender/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
|
+
// node_modules/tvrender/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
|
+
// node_modules/tvrender/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
|
+
// node_modules/tvrender/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,7 @@ function setPlatformAPI(newPlatformApis) {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
//
|
|
292
|
+
// node_modules/tvrender/src/core/LRU.ts
|
|
293
293
|
var Entry = class {
|
|
294
294
|
constructor(val) {
|
|
295
295
|
this.value = val;
|
|
@@ -392,7 +392,7 @@ var LRU = class {
|
|
|
392
392
|
};
|
|
393
393
|
var LRU_default = LRU;
|
|
394
394
|
|
|
395
|
-
//
|
|
395
|
+
// node_modules/tvrender/src/core/util.ts
|
|
396
396
|
var BUILTIN_OBJECT = reduce([
|
|
397
397
|
"Function",
|
|
398
398
|
"RegExp",
|
|
@@ -920,7 +920,7 @@ function colorToRgba(color2) {
|
|
|
920
920
|
return rgbaColor;
|
|
921
921
|
}
|
|
922
922
|
|
|
923
|
-
//
|
|
923
|
+
// node_modules/tvrender/src/core/vector.ts
|
|
924
924
|
var vector_exports = {};
|
|
925
925
|
__export(vector_exports, {
|
|
926
926
|
add: () => add,
|
|
@@ -1059,7 +1059,7 @@ function max(out2, v12, v22) {
|
|
|
1059
1059
|
return out2;
|
|
1060
1060
|
}
|
|
1061
1061
|
|
|
1062
|
-
//
|
|
1062
|
+
// node_modules/tvrender/src/mixin/Draggable.ts
|
|
1063
1063
|
var Param = class {
|
|
1064
1064
|
constructor(target, e2) {
|
|
1065
1065
|
this.target = target;
|
|
@@ -1125,7 +1125,7 @@ var Draggable = class {
|
|
|
1125
1125
|
};
|
|
1126
1126
|
var Draggable_default = Draggable;
|
|
1127
1127
|
|
|
1128
|
-
//
|
|
1128
|
+
// node_modules/tvrender/src/core/Eventful.ts
|
|
1129
1129
|
var Eventful = class {
|
|
1130
1130
|
constructor(eventProcessors) {
|
|
1131
1131
|
if (eventProcessors) {
|
|
@@ -1269,7 +1269,7 @@ var Eventful = class {
|
|
|
1269
1269
|
};
|
|
1270
1270
|
var Eventful_default = Eventful;
|
|
1271
1271
|
|
|
1272
|
-
//
|
|
1272
|
+
// node_modules/tvrender/src/core/fourPointsTransform.ts
|
|
1273
1273
|
var LN2 = Math.log(2);
|
|
1274
1274
|
function determinant(rows, rank, rowStart, rowMask, colMask, detCache) {
|
|
1275
1275
|
const cacheKey = rowMask + "-" + colMask;
|
|
@@ -1327,7 +1327,7 @@ function buildTransformer(src, dest) {
|
|
|
1327
1327
|
};
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
|
-
//
|
|
1330
|
+
// node_modules/tvrender/src/core/dom.ts
|
|
1331
1331
|
var EVENT_SAVED_PROP = "___zrEVENTSAVED";
|
|
1332
1332
|
var _calcOut = [];
|
|
1333
1333
|
function transformLocalCoord(out2, elFrom, elTarget, inX, inY) {
|
|
@@ -1413,7 +1413,7 @@ function encodeHTML(source) {
|
|
|
1413
1413
|
});
|
|
1414
1414
|
}
|
|
1415
1415
|
|
|
1416
|
-
//
|
|
1416
|
+
// node_modules/tvrender/src/core/event.ts
|
|
1417
1417
|
var MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/;
|
|
1418
1418
|
var _calcOut2 = [];
|
|
1419
1419
|
var firefoxNotSupportOffsetXY = env_default.browser.firefox && +env_default.browser.version.split(".")[0] < 39;
|
|
@@ -1504,7 +1504,7 @@ function isMiddleOrRightButtonOnMouseUpDown(e2) {
|
|
|
1504
1504
|
return e2.which === 2 || e2.which === 3;
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
|
-
//
|
|
1507
|
+
// node_modules/tvrender/src/core/GestureMgr.ts
|
|
1508
1508
|
var GestureMgr = class {
|
|
1509
1509
|
constructor() {
|
|
1510
1510
|
this._track = [];
|
|
@@ -1582,7 +1582,7 @@ var recognizers = {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
};
|
|
1584
1584
|
|
|
1585
|
-
//
|
|
1585
|
+
// node_modules/tvrender/src/core/matrix.ts
|
|
1586
1586
|
var matrix_exports = {};
|
|
1587
1587
|
__export(matrix_exports, {
|
|
1588
1588
|
clone: () => clone3,
|
|
@@ -1694,7 +1694,7 @@ function clone3(a) {
|
|
|
1694
1694
|
return b;
|
|
1695
1695
|
}
|
|
1696
1696
|
|
|
1697
|
-
//
|
|
1697
|
+
// node_modules/tvrender/src/core/Point.ts
|
|
1698
1698
|
var Point = class {
|
|
1699
1699
|
constructor(x, y) {
|
|
1700
1700
|
this.x = x || 0;
|
|
@@ -1824,7 +1824,7 @@ var Point = class {
|
|
|
1824
1824
|
};
|
|
1825
1825
|
var Point_default = Point;
|
|
1826
1826
|
|
|
1827
|
-
//
|
|
1827
|
+
// node_modules/tvrender/src/core/BoundingRect.ts
|
|
1828
1828
|
var mathMin = Math.min;
|
|
1829
1829
|
var mathMax = Math.max;
|
|
1830
1830
|
var lt = new Point_default();
|
|
@@ -2024,7 +2024,7 @@ var BoundingRect = class {
|
|
|
2024
2024
|
};
|
|
2025
2025
|
var BoundingRect_default = BoundingRect;
|
|
2026
2026
|
|
|
2027
|
-
//
|
|
2027
|
+
// node_modules/tvrender/src/Handler.ts
|
|
2028
2028
|
var SILENT = "silent";
|
|
2029
2029
|
function makeEventPacket(eveType, targetInfo, event) {
|
|
2030
2030
|
return {
|
|
@@ -2304,7 +2304,7 @@ function isOutsideBoundary(handlerInstance, x, y) {
|
|
|
2304
2304
|
}
|
|
2305
2305
|
var Handler_default = Handler;
|
|
2306
2306
|
|
|
2307
|
-
//
|
|
2307
|
+
// node_modules/tvrender/src/core/timsort.ts
|
|
2308
2308
|
var DEFAULT_MIN_MERGE = 32;
|
|
2309
2309
|
var DEFAULT_MIN_GALLOPING = 7;
|
|
2310
2310
|
function minRunLength(n) {
|
|
@@ -2813,12 +2813,12 @@ function sort(array, compare2, lo, hi) {
|
|
|
2813
2813
|
ts.forceMergeRuns();
|
|
2814
2814
|
}
|
|
2815
2815
|
|
|
2816
|
-
//
|
|
2816
|
+
// node_modules/tvrender/src/graphic/constants.ts
|
|
2817
2817
|
var REDRAW_BIT = 1;
|
|
2818
2818
|
var STYLE_CHANGED_BIT = 2;
|
|
2819
2819
|
var SHAPE_CHANGED_BIT = 4;
|
|
2820
2820
|
|
|
2821
|
-
//
|
|
2821
|
+
// node_modules/tvrender/src/Storage.ts
|
|
2822
2822
|
var invalidZErrorLogged = false;
|
|
2823
2823
|
function logInvalidZError() {
|
|
2824
2824
|
if (invalidZErrorLogged) {
|
|
@@ -2970,14 +2970,14 @@ var Storage = class {
|
|
|
2970
2970
|
};
|
|
2971
2971
|
var Storage_default = Storage;
|
|
2972
2972
|
|
|
2973
|
-
//
|
|
2973
|
+
// node_modules/tvrender/src/animation/requestAnimationFrame.ts
|
|
2974
2974
|
var requestAnimationFrame2;
|
|
2975
2975
|
requestAnimationFrame2 = env_default.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(func) {
|
|
2976
2976
|
return setTimeout(func, 16);
|
|
2977
2977
|
};
|
|
2978
2978
|
var requestAnimationFrame_default = requestAnimationFrame2;
|
|
2979
2979
|
|
|
2980
|
-
//
|
|
2980
|
+
// node_modules/tvrender/src/animation/easing.ts
|
|
2981
2981
|
var easingFuncs = {
|
|
2982
2982
|
linear(k) {
|
|
2983
2983
|
return k;
|
|
@@ -3164,7 +3164,7 @@ var easingFuncs = {
|
|
|
3164
3164
|
};
|
|
3165
3165
|
var easing_default = easingFuncs;
|
|
3166
3166
|
|
|
3167
|
-
//
|
|
3167
|
+
// node_modules/tvrender/src/core/curve.ts
|
|
3168
3168
|
var mathPow = Math.pow;
|
|
3169
3169
|
var mathSqrt = Math.sqrt;
|
|
3170
3170
|
var EPSILON = 1e-8;
|
|
@@ -3493,7 +3493,7 @@ function quadraticLength(x0, y0, x1, y1, x2, y2, iteration) {
|
|
|
3493
3493
|
return d;
|
|
3494
3494
|
}
|
|
3495
3495
|
|
|
3496
|
-
//
|
|
3496
|
+
// node_modules/tvrender/src/animation/cubicEasing.ts
|
|
3497
3497
|
var regexp = /cubic-bezier\(([0-9,\.e ]+)\)/;
|
|
3498
3498
|
function createCubicEasingFunc(cubicEasingStr) {
|
|
3499
3499
|
const cubic2 = cubicEasingStr && regexp.exec(cubicEasingStr);
|
|
@@ -3513,7 +3513,7 @@ function createCubicEasingFunc(cubicEasingStr) {
|
|
|
3513
3513
|
}
|
|
3514
3514
|
}
|
|
3515
3515
|
|
|
3516
|
-
//
|
|
3516
|
+
// node_modules/tvrender/src/animation/Clip.ts
|
|
3517
3517
|
var Clip = class {
|
|
3518
3518
|
constructor(opts) {
|
|
3519
3519
|
this._inited = false;
|
|
@@ -3572,7 +3572,7 @@ var Clip = class {
|
|
|
3572
3572
|
};
|
|
3573
3573
|
var Clip_default = Clip;
|
|
3574
3574
|
|
|
3575
|
-
//
|
|
3575
|
+
// node_modules/tvrender/src/tool/color.ts
|
|
3576
3576
|
var color_exports = {};
|
|
3577
3577
|
__export(color_exports, {
|
|
3578
3578
|
fastLerp: () => fastLerp,
|
|
@@ -4072,7 +4072,7 @@ function liftColor(color2) {
|
|
|
4072
4072
|
return color2;
|
|
4073
4073
|
}
|
|
4074
4074
|
|
|
4075
|
-
//
|
|
4075
|
+
// node_modules/tvrender/src/svg/helper.ts
|
|
4076
4076
|
var mathRound = Math.round;
|
|
4077
4077
|
function normalizeColor(color2) {
|
|
4078
4078
|
let opacity;
|
|
@@ -4200,7 +4200,7 @@ var encodeBase64 = function() {
|
|
|
4200
4200
|
};
|
|
4201
4201
|
}();
|
|
4202
4202
|
|
|
4203
|
-
//
|
|
4203
|
+
// node_modules/tvrender/src/animation/Animator.ts
|
|
4204
4204
|
var arraySlice = Array.prototype.slice;
|
|
4205
4205
|
function interpolateNumber(p0, p1, percent) {
|
|
4206
4206
|
return (p1 - p0) * percent + p0;
|
|
@@ -4887,7 +4887,7 @@ var Animator = class {
|
|
|
4887
4887
|
};
|
|
4888
4888
|
var Animator_default = Animator;
|
|
4889
4889
|
|
|
4890
|
-
//
|
|
4890
|
+
// node_modules/tvrender/src/animation/Animation.ts
|
|
4891
4891
|
function getTime() {
|
|
4892
4892
|
return new Date().getTime();
|
|
4893
4893
|
}
|
|
@@ -5025,7 +5025,7 @@ var Animation = class extends Eventful_default {
|
|
|
5025
5025
|
};
|
|
5026
5026
|
var Animation_default = Animation;
|
|
5027
5027
|
|
|
5028
|
-
//
|
|
5028
|
+
// node_modules/tvrender/src/dom/HandlerProxy.ts
|
|
5029
5029
|
var TOUCH_CLICK_DELAY = 300;
|
|
5030
5030
|
var globalEventSupported = env_default.domSupported;
|
|
5031
5031
|
var localNativeListenerNames = function() {
|
|
@@ -5315,7 +5315,7 @@ var HandlerDomProxy = class extends Eventful_default {
|
|
|
5315
5315
|
};
|
|
5316
5316
|
var HandlerProxy_default = HandlerDomProxy;
|
|
5317
5317
|
|
|
5318
|
-
//
|
|
5318
|
+
// node_modules/tvrender/src/config.ts
|
|
5319
5319
|
var dpr = 1;
|
|
5320
5320
|
if (env_default.hasGlobalWindow) {
|
|
5321
5321
|
dpr = Math.max(window.devicePixelRatio || window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI || 1, 1);
|
|
@@ -5326,7 +5326,7 @@ var DARK_LABEL_COLOR = "#333";
|
|
|
5326
5326
|
var LIGHT_LABEL_COLOR = "#ccc";
|
|
5327
5327
|
var LIGHTER_LABEL_COLOR = "#eee";
|
|
5328
5328
|
|
|
5329
|
-
//
|
|
5329
|
+
// node_modules/tvrender/src/core/Transformable.ts
|
|
5330
5330
|
var mIdentity = identity;
|
|
5331
5331
|
var EPSILON3 = 5e-5;
|
|
5332
5332
|
function isNotAroundZero2(val) {
|
|
@@ -5556,7 +5556,7 @@ function copyTransform(target, source) {
|
|
|
5556
5556
|
}
|
|
5557
5557
|
var Transformable_default = Transformable;
|
|
5558
5558
|
|
|
5559
|
-
//
|
|
5559
|
+
// node_modules/tvrender/src/contain/text.ts
|
|
5560
5560
|
var textWidthCache = {};
|
|
5561
5561
|
function getWidth(text, font) {
|
|
5562
5562
|
font = font || DEFAULT_FONT;
|
|
@@ -5718,7 +5718,7 @@ function calculateTextPosition(out2, opts, rect) {
|
|
|
5718
5718
|
return out2;
|
|
5719
5719
|
}
|
|
5720
5720
|
|
|
5721
|
-
//
|
|
5721
|
+
// node_modules/tvrender/src/Element.ts
|
|
5722
5722
|
var PRESERVED_NORMAL_STATE = "__zr_normal__";
|
|
5723
5723
|
var PRIMARY_STATES_KEYS = TRANSFORMABLE_PROPS.concat(["ignore"]);
|
|
5724
5724
|
var DEFAULT_ANIMATABLE_MAP = reduce(TRANSFORMABLE_PROPS, (obj, key) => {
|
|
@@ -6708,7 +6708,7 @@ function animateToShallow(animatable, topKey, animateObj, target, cfg, animation
|
|
|
6708
6708
|
}
|
|
6709
6709
|
var Element_default = Element;
|
|
6710
6710
|
|
|
6711
|
-
//
|
|
6711
|
+
// node_modules/tvrender/src/graphic/Group.ts
|
|
6712
6712
|
var Group = class extends Element_default {
|
|
6713
6713
|
constructor(opts) {
|
|
6714
6714
|
super();
|
|
@@ -6880,7 +6880,7 @@ var Group = class extends Element_default {
|
|
|
6880
6880
|
Group.prototype.type = "group";
|
|
6881
6881
|
var Group_default = Group;
|
|
6882
6882
|
|
|
6883
|
-
//
|
|
6883
|
+
// node_modules/tvrender/src/zrender.ts
|
|
6884
6884
|
/*!
|
|
6885
6885
|
* ZRender, a high performance 2d drawing library.
|
|
6886
6886
|
*
|
|
@@ -7185,7 +7185,7 @@ function getElementSSRData(el) {
|
|
|
7185
7185
|
function registerSSRDataGetter(getter) {
|
|
7186
7186
|
ssrDataGetter = getter;
|
|
7187
7187
|
}
|
|
7188
|
-
var version = "5.6.
|
|
7188
|
+
var version = "5.6.5";
|
|
7189
7189
|
|
|
7190
7190
|
// src/util/number.ts
|
|
7191
7191
|
var RADIAN_EPSILON = 1e-4;
|
|
@@ -8193,7 +8193,7 @@ var AreaStyleMixin = class {
|
|
|
8193
8193
|
}
|
|
8194
8194
|
};
|
|
8195
8195
|
|
|
8196
|
-
//
|
|
8196
|
+
// node_modules/tvrender/src/graphic/helper/image.ts
|
|
8197
8197
|
var globalImageCache = new LRU_default(50);
|
|
8198
8198
|
function findExistImage(newImageOrSrc) {
|
|
8199
8199
|
if (typeof newImageOrSrc === "string") {
|
|
@@ -8243,7 +8243,7 @@ function isImageReady(image) {
|
|
|
8243
8243
|
return image && image.width && image.height;
|
|
8244
8244
|
}
|
|
8245
8245
|
|
|
8246
|
-
//
|
|
8246
|
+
// node_modules/tvrender/src/graphic/helper/parseText.ts
|
|
8247
8247
|
var STYLE_REG = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;
|
|
8248
8248
|
function truncateText(text, containerWidth, font, ellipsis, options) {
|
|
8249
8249
|
if (!containerWidth) {
|
|
@@ -8677,7 +8677,7 @@ function wrapText(text, font, lineWidth, isBreakAll, lastAccumWidth) {
|
|
|
8677
8677
|
};
|
|
8678
8678
|
}
|
|
8679
8679
|
|
|
8680
|
-
//
|
|
8680
|
+
// node_modules/tvrender/src/graphic/Displayable.ts
|
|
8681
8681
|
var STYLE_MAGIC_KEY = "__zr_style_" + Math.round(Math.random() * 10);
|
|
8682
8682
|
var DEFAULT_COMMON_STYLE = {
|
|
8683
8683
|
shadowBlur: 0,
|
|
@@ -8983,7 +8983,7 @@ function isDisplayableCulled(el, width, height) {
|
|
|
8983
8983
|
}
|
|
8984
8984
|
var Displayable_default = Displayable;
|
|
8985
8985
|
|
|
8986
|
-
//
|
|
8986
|
+
// node_modules/tvrender/src/core/bbox.ts
|
|
8987
8987
|
var mathMin2 = Math.min;
|
|
8988
8988
|
var mathMax2 = Math.max;
|
|
8989
8989
|
var mathSin = Math.sin;
|
|
@@ -9106,7 +9106,7 @@ function fromArc(x, y, rx, ry, startAngle, endAngle, anticlockwise, min3, max3)
|
|
|
9106
9106
|
}
|
|
9107
9107
|
}
|
|
9108
9108
|
|
|
9109
|
-
//
|
|
9109
|
+
// node_modules/tvrender/src/core/PathProxy.ts
|
|
9110
9110
|
var CMD = {
|
|
9111
9111
|
M: 1,
|
|
9112
9112
|
L: 2,
|
|
@@ -9853,7 +9853,7 @@ PathProxy.initDefaultProps = function() {
|
|
|
9853
9853
|
}();
|
|
9854
9854
|
var PathProxy_default = PathProxy;
|
|
9855
9855
|
|
|
9856
|
-
//
|
|
9856
|
+
// node_modules/tvrender/src/contain/line.ts
|
|
9857
9857
|
function containStroke(x0, y0, x1, y1, lineWidth, x, y) {
|
|
9858
9858
|
if (lineWidth === 0) {
|
|
9859
9859
|
return false;
|
|
@@ -9875,7 +9875,7 @@ function containStroke(x0, y0, x1, y1, lineWidth, x, y) {
|
|
|
9875
9875
|
return _s <= _l / 2 * _l / 2;
|
|
9876
9876
|
}
|
|
9877
9877
|
|
|
9878
|
-
//
|
|
9878
|
+
// node_modules/tvrender/src/contain/cubic.ts
|
|
9879
9879
|
function containStroke2(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
|
|
9880
9880
|
if (lineWidth === 0) {
|
|
9881
9881
|
return false;
|
|
@@ -9888,7 +9888,7 @@ function containStroke2(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
|
|
|
9888
9888
|
return d <= _l / 2;
|
|
9889
9889
|
}
|
|
9890
9890
|
|
|
9891
|
-
//
|
|
9891
|
+
// node_modules/tvrender/src/contain/quadratic.ts
|
|
9892
9892
|
function containStroke3(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
|
|
9893
9893
|
if (lineWidth === 0) {
|
|
9894
9894
|
return false;
|
|
@@ -9901,7 +9901,7 @@ function containStroke3(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
|
|
|
9901
9901
|
return d <= _l / 2;
|
|
9902
9902
|
}
|
|
9903
9903
|
|
|
9904
|
-
//
|
|
9904
|
+
// node_modules/tvrender/src/contain/util.ts
|
|
9905
9905
|
var PI23 = Math.PI * 2;
|
|
9906
9906
|
function normalizeRadian(angle) {
|
|
9907
9907
|
angle %= PI23;
|
|
@@ -9911,7 +9911,7 @@ function normalizeRadian(angle) {
|
|
|
9911
9911
|
return angle;
|
|
9912
9912
|
}
|
|
9913
9913
|
|
|
9914
|
-
//
|
|
9914
|
+
// node_modules/tvrender/src/contain/arc.ts
|
|
9915
9915
|
var PI24 = Math.PI * 2;
|
|
9916
9916
|
function containStroke4(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidth, x, y) {
|
|
9917
9917
|
if (lineWidth === 0) {
|
|
@@ -9945,7 +9945,7 @@ function containStroke4(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidt
|
|
|
9945
9945
|
return angle >= startAngle && angle <= endAngle || angle + PI24 >= startAngle && angle + PI24 <= endAngle;
|
|
9946
9946
|
}
|
|
9947
9947
|
|
|
9948
|
-
//
|
|
9948
|
+
// node_modules/tvrender/src/contain/windingLine.ts
|
|
9949
9949
|
function windingLine(x0, y0, x1, y1, x, y) {
|
|
9950
9950
|
if (y > y0 && y > y1 || y < y0 && y < y1) {
|
|
9951
9951
|
return 0;
|
|
@@ -9962,7 +9962,7 @@ function windingLine(x0, y0, x1, y1, x, y) {
|
|
|
9962
9962
|
return x_ === x ? Infinity : x_ > x ? dir3 : 0;
|
|
9963
9963
|
}
|
|
9964
9964
|
|
|
9965
|
-
//
|
|
9965
|
+
// node_modules/tvrender/src/contain/path.ts
|
|
9966
9966
|
var CMD2 = PathProxy_default.CMD;
|
|
9967
9967
|
var PI25 = Math.PI * 2;
|
|
9968
9968
|
var EPSILON4 = 1e-4;
|
|
@@ -10245,7 +10245,7 @@ function containStroke5(pathProxy, lineWidth, x, y) {
|
|
|
10245
10245
|
return containPath(pathProxy, lineWidth, true, x, y);
|
|
10246
10246
|
}
|
|
10247
10247
|
|
|
10248
|
-
//
|
|
10248
|
+
// node_modules/tvrender/src/graphic/Path.ts
|
|
10249
10249
|
var DEFAULT_PATH_STYLE = defaults({
|
|
10250
10250
|
fill: "#000",
|
|
10251
10251
|
stroke: null,
|
|
@@ -10622,7 +10622,7 @@ Path.initDefaultProps = function() {
|
|
|
10622
10622
|
}();
|
|
10623
10623
|
var Path_default = Path;
|
|
10624
10624
|
|
|
10625
|
-
//
|
|
10625
|
+
// node_modules/tvrender/src/graphic/TSpan.ts
|
|
10626
10626
|
var DEFAULT_TSPAN_STYLE = defaults({
|
|
10627
10627
|
strokeFirst: true,
|
|
10628
10628
|
font: DEFAULT_FONT,
|
|
@@ -10677,7 +10677,7 @@ TSpan.initDefaultProps = function() {
|
|
|
10677
10677
|
TSpan.prototype.type = "tspan";
|
|
10678
10678
|
var TSpan_default = TSpan;
|
|
10679
10679
|
|
|
10680
|
-
//
|
|
10680
|
+
// node_modules/tvrender/src/graphic/Image.ts
|
|
10681
10681
|
var DEFAULT_IMAGE_STYLE = defaults({
|
|
10682
10682
|
x: 0,
|
|
10683
10683
|
y: 0
|
|
@@ -10739,7 +10739,7 @@ var ZRImage = class extends Displayable_default {
|
|
|
10739
10739
|
ZRImage.prototype.type = "image";
|
|
10740
10740
|
var Image_default = ZRImage;
|
|
10741
10741
|
|
|
10742
|
-
//
|
|
10742
|
+
// node_modules/tvrender/src/graphic/helper/roundRect.ts
|
|
10743
10743
|
function buildPath(ctx, shape) {
|
|
10744
10744
|
let x = shape.x;
|
|
10745
10745
|
let y = shape.y;
|
|
@@ -10811,7 +10811,7 @@ function buildPath(ctx, shape) {
|
|
|
10811
10811
|
r1 !== 0 && ctx.arc(x + r1, y + r1, r1, Math.PI, Math.PI * 1.5);
|
|
10812
10812
|
}
|
|
10813
10813
|
|
|
10814
|
-
//
|
|
10814
|
+
// node_modules/tvrender/src/graphic/helper/subPixelOptimize.ts
|
|
10815
10815
|
var round2 = Math.round;
|
|
10816
10816
|
function subPixelOptimizeLine(outputShape, inputShape, style) {
|
|
10817
10817
|
if (!inputShape) {
|
|
@@ -10867,7 +10867,7 @@ function subPixelOptimize(position2, lineWidth, positiveOrNegative) {
|
|
|
10867
10867
|
return (doubledPosition + round2(lineWidth)) % 2 === 0 ? doubledPosition / 2 : (doubledPosition + (positiveOrNegative ? 1 : -1)) / 2;
|
|
10868
10868
|
}
|
|
10869
10869
|
|
|
10870
|
-
//
|
|
10870
|
+
// node_modules/tvrender/src/graphic/shape/Rect.ts
|
|
10871
10871
|
var RectShape = class {
|
|
10872
10872
|
constructor() {
|
|
10873
10873
|
this.x = 0;
|
|
@@ -10916,7 +10916,7 @@ var Rect = class extends Path_default {
|
|
|
10916
10916
|
Rect.prototype.type = "rect";
|
|
10917
10917
|
var Rect_default = Rect;
|
|
10918
10918
|
|
|
10919
|
-
//
|
|
10919
|
+
// node_modules/tvrender/src/graphic/Text.ts
|
|
10920
10920
|
var DEFAULT_RICH_TEXT_COLOR = {
|
|
10921
10921
|
fill: "#000"
|
|
10922
10922
|
};
|
|
@@ -12121,7 +12121,7 @@ __export(graphic_exports, {
|
|
|
12121
12121
|
updateProps: () => updateProps
|
|
12122
12122
|
});
|
|
12123
12123
|
|
|
12124
|
-
//
|
|
12124
|
+
// node_modules/tvrender/src/tool/transformPath.ts
|
|
12125
12125
|
var CMD3 = PathProxy_default.CMD;
|
|
12126
12126
|
var points = [[], [], []];
|
|
12127
12127
|
var mathSqrt2 = Math.sqrt;
|
|
@@ -12212,7 +12212,7 @@ function transformPath(path, m2) {
|
|
|
12212
12212
|
path.increaseVersion();
|
|
12213
12213
|
}
|
|
12214
12214
|
|
|
12215
|
-
//
|
|
12215
|
+
// node_modules/tvrender/src/tool/path.ts
|
|
12216
12216
|
var mathSqrt3 = Math.sqrt;
|
|
12217
12217
|
var mathSin3 = Math.sin;
|
|
12218
12218
|
var mathCos3 = Math.cos;
|
|
@@ -12557,7 +12557,7 @@ function clonePath(sourcePath, opts) {
|
|
|
12557
12557
|
return path;
|
|
12558
12558
|
}
|
|
12559
12559
|
|
|
12560
|
-
//
|
|
12560
|
+
// node_modules/tvrender/src/graphic/shape/Circle.ts
|
|
12561
12561
|
var CircleShape = class {
|
|
12562
12562
|
constructor() {
|
|
12563
12563
|
this.cx = 0;
|
|
@@ -12580,7 +12580,7 @@ var Circle = class extends Path_default {
|
|
|
12580
12580
|
Circle.prototype.type = "circle";
|
|
12581
12581
|
var Circle_default = Circle;
|
|
12582
12582
|
|
|
12583
|
-
//
|
|
12583
|
+
// node_modules/tvrender/src/graphic/shape/Ellipse.ts
|
|
12584
12584
|
var EllipseShape = class {
|
|
12585
12585
|
constructor() {
|
|
12586
12586
|
this.cx = 0;
|
|
@@ -12615,7 +12615,7 @@ var Ellipse = class extends Path_default {
|
|
|
12615
12615
|
Ellipse.prototype.type = "ellipse";
|
|
12616
12616
|
var Ellipse_default = Ellipse;
|
|
12617
12617
|
|
|
12618
|
-
//
|
|
12618
|
+
// node_modules/tvrender/src/graphic/helper/roundSector.ts
|
|
12619
12619
|
var PI4 = Math.PI;
|
|
12620
12620
|
var PI26 = PI4 * 2;
|
|
12621
12621
|
var mathSin4 = Math.sin;
|
|
@@ -12830,7 +12830,7 @@ function buildPath2(ctx, shape) {
|
|
|
12830
12830
|
ctx.closePath();
|
|
12831
12831
|
}
|
|
12832
12832
|
|
|
12833
|
-
//
|
|
12833
|
+
// node_modules/tvrender/src/graphic/shape/Sector.ts
|
|
12834
12834
|
var SectorShape = class {
|
|
12835
12835
|
constructor() {
|
|
12836
12836
|
this.cx = 0;
|
|
@@ -12860,7 +12860,7 @@ var Sector = class extends Path_default {
|
|
|
12860
12860
|
Sector.prototype.type = "sector";
|
|
12861
12861
|
var Sector_default = Sector;
|
|
12862
12862
|
|
|
12863
|
-
//
|
|
12863
|
+
// node_modules/tvrender/src/graphic/shape/Ring.ts
|
|
12864
12864
|
var RingShape = class {
|
|
12865
12865
|
constructor() {
|
|
12866
12866
|
this.cx = 0;
|
|
@@ -12889,7 +12889,7 @@ var Ring = class extends Path_default {
|
|
|
12889
12889
|
Ring.prototype.type = "ring";
|
|
12890
12890
|
var Ring_default = Ring;
|
|
12891
12891
|
|
|
12892
|
-
//
|
|
12892
|
+
// node_modules/tvrender/src/graphic/helper/smoothBezier.ts
|
|
12893
12893
|
function smoothBezier(points4, smooth, isLoop, constraint) {
|
|
12894
12894
|
const cps = [];
|
|
12895
12895
|
const v = [];
|
|
@@ -12951,7 +12951,7 @@ function smoothBezier(points4, smooth, isLoop, constraint) {
|
|
|
12951
12951
|
return cps;
|
|
12952
12952
|
}
|
|
12953
12953
|
|
|
12954
|
-
//
|
|
12954
|
+
// node_modules/tvrender/src/graphic/helper/poly.ts
|
|
12955
12955
|
function buildPath3(ctx, shape, closePath) {
|
|
12956
12956
|
const smooth = shape.smooth;
|
|
12957
12957
|
let points4 = shape.points;
|
|
@@ -12976,7 +12976,7 @@ function buildPath3(ctx, shape, closePath) {
|
|
|
12976
12976
|
}
|
|
12977
12977
|
}
|
|
12978
12978
|
|
|
12979
|
-
//
|
|
12979
|
+
// node_modules/tvrender/src/graphic/shape/Polygon.ts
|
|
12980
12980
|
var PolygonShape = class {
|
|
12981
12981
|
constructor() {
|
|
12982
12982
|
this.points = null;
|
|
@@ -12998,7 +12998,7 @@ var Polygon = class extends Path_default {
|
|
|
12998
12998
|
Polygon.prototype.type = "polygon";
|
|
12999
12999
|
var Polygon_default = Polygon;
|
|
13000
13000
|
|
|
13001
|
-
//
|
|
13001
|
+
// node_modules/tvrender/src/graphic/shape/Polyline.ts
|
|
13002
13002
|
var PolylineShape = class {
|
|
13003
13003
|
constructor() {
|
|
13004
13004
|
this.points = null;
|
|
@@ -13027,7 +13027,7 @@ var Polyline = class extends Path_default {
|
|
|
13027
13027
|
Polyline.prototype.type = "polyline";
|
|
13028
13028
|
var Polyline_default = Polyline;
|
|
13029
13029
|
|
|
13030
|
-
//
|
|
13030
|
+
// node_modules/tvrender/src/graphic/shape/Line.ts
|
|
13031
13031
|
var subPixelOptimizeOutputShape2 = {};
|
|
13032
13032
|
var LineShape = class {
|
|
13033
13033
|
constructor() {
|
|
@@ -13090,7 +13090,7 @@ var Line = class extends Path_default {
|
|
|
13090
13090
|
Line.prototype.type = "line";
|
|
13091
13091
|
var Line_default = Line;
|
|
13092
13092
|
|
|
13093
|
-
//
|
|
13093
|
+
// node_modules/tvrender/src/graphic/shape/BezierCurve.ts
|
|
13094
13094
|
var out = [];
|
|
13095
13095
|
var BezierCurveShape = class {
|
|
13096
13096
|
constructor() {
|
|
@@ -13180,7 +13180,7 @@ var BezierCurve = class extends Path_default {
|
|
|
13180
13180
|
BezierCurve.prototype.type = "bezier-curve";
|
|
13181
13181
|
var BezierCurve_default = BezierCurve;
|
|
13182
13182
|
|
|
13183
|
-
//
|
|
13183
|
+
// node_modules/tvrender/src/graphic/shape/Arc.ts
|
|
13184
13184
|
var ArcShape = class {
|
|
13185
13185
|
constructor() {
|
|
13186
13186
|
this.cx = 0;
|
|
@@ -13220,7 +13220,7 @@ var Arc = class extends Path_default {
|
|
|
13220
13220
|
Arc.prototype.type = "arc";
|
|
13221
13221
|
var Arc_default = Arc;
|
|
13222
13222
|
|
|
13223
|
-
//
|
|
13223
|
+
// node_modules/tvrender/src/graphic/CompoundPath.ts
|
|
13224
13224
|
var CompoundPath = class extends Path_default {
|
|
13225
13225
|
constructor() {
|
|
13226
13226
|
super(...arguments);
|
|
@@ -13266,7 +13266,7 @@ var CompoundPath = class extends Path_default {
|
|
|
13266
13266
|
};
|
|
13267
13267
|
var CompoundPath_default = CompoundPath;
|
|
13268
13268
|
|
|
13269
|
-
//
|
|
13269
|
+
// node_modules/tvrender/src/graphic/Gradient.ts
|
|
13270
13270
|
var Gradient = class {
|
|
13271
13271
|
constructor(colorStops) {
|
|
13272
13272
|
this.colorStops = colorStops || [];
|
|
@@ -13280,7 +13280,7 @@ var Gradient = class {
|
|
|
13280
13280
|
};
|
|
13281
13281
|
var Gradient_default = Gradient;
|
|
13282
13282
|
|
|
13283
|
-
//
|
|
13283
|
+
// node_modules/tvrender/src/graphic/LinearGradient.ts
|
|
13284
13284
|
var LinearGradient = class extends Gradient_default {
|
|
13285
13285
|
constructor(x, y, x2, y2, colorStops, globalCoord) {
|
|
13286
13286
|
super(colorStops);
|
|
@@ -13294,7 +13294,7 @@ var LinearGradient = class extends Gradient_default {
|
|
|
13294
13294
|
};
|
|
13295
13295
|
var LinearGradient_default = LinearGradient;
|
|
13296
13296
|
|
|
13297
|
-
//
|
|
13297
|
+
// node_modules/tvrender/src/graphic/RadialGradient.ts
|
|
13298
13298
|
var RadialGradient = class extends Gradient_default {
|
|
13299
13299
|
constructor(x, y, r, colorStops, globalCoord) {
|
|
13300
13300
|
super(colorStops);
|
|
@@ -13307,7 +13307,7 @@ var RadialGradient = class extends Gradient_default {
|
|
|
13307
13307
|
};
|
|
13308
13308
|
var RadialGradient_default = RadialGradient;
|
|
13309
13309
|
|
|
13310
|
-
//
|
|
13310
|
+
// node_modules/tvrender/src/core/OrientedBoundingRect.ts
|
|
13311
13311
|
var extent = [0, 0];
|
|
13312
13312
|
var extent2 = [0, 0];
|
|
13313
13313
|
var minTv2 = new Point_default();
|
|
@@ -13424,7 +13424,7 @@ var OrientedBoundingRect = class {
|
|
|
13424
13424
|
};
|
|
13425
13425
|
var OrientedBoundingRect_default = OrientedBoundingRect;
|
|
13426
13426
|
|
|
13427
|
-
//
|
|
13427
|
+
// node_modules/tvrender/src/graphic/IncrementalDisplayable.ts
|
|
13428
13428
|
var m = [];
|
|
13429
13429
|
var IncrementalDisplayable = class extends Displayable_default {
|
|
13430
13430
|
constructor() {
|
|
@@ -21699,7 +21699,7 @@ function findEventDispatcher(target, det, returnFirstMatch) {
|
|
|
21699
21699
|
return found;
|
|
21700
21700
|
}
|
|
21701
21701
|
|
|
21702
|
-
//
|
|
21702
|
+
// node_modules/tvrender/src/core/WeakMap.ts
|
|
21703
21703
|
var wmUniqueIndex = Math.round(Math.random() * 9);
|
|
21704
21704
|
var supportDefineProperty = typeof Object.defineProperty === "function";
|
|
21705
21705
|
var WeakMap = class {
|
|
@@ -22587,7 +22587,7 @@ function normalizeSymbolOffset(symbolOffset, symbolSize) {
|
|
|
22587
22587
|
];
|
|
22588
22588
|
}
|
|
22589
22589
|
|
|
22590
|
-
//
|
|
22590
|
+
// node_modules/tvrender/src/canvas/helper.ts
|
|
22591
22591
|
function isSafeNum(num) {
|
|
22592
22592
|
return isFinite(num);
|
|
22593
22593
|
}
|
|
@@ -22664,7 +22664,7 @@ function getSize(root, whIdx, opts) {
|
|
|
22664
22664
|
return (root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh])) - (parseInt10(stl[plt]) || 0) - (parseInt10(stl[prb]) || 0) | 0;
|
|
22665
22665
|
}
|
|
22666
22666
|
|
|
22667
|
-
//
|
|
22667
|
+
// node_modules/tvrender/src/canvas/dashStyle.ts
|
|
22668
22668
|
function normalizeLineDash(lineType, lineWidth) {
|
|
22669
22669
|
if (!lineType || lineType === "solid" || !(lineWidth > 0)) {
|
|
22670
22670
|
return null;
|
|
@@ -22687,7 +22687,7 @@ function getLineDash(el) {
|
|
|
22687
22687
|
return [lineDash, lineDashOffset];
|
|
22688
22688
|
}
|
|
22689
22689
|
|
|
22690
|
-
//
|
|
22690
|
+
// node_modules/tvrender/src/canvas/graphic.ts
|
|
22691
22691
|
var pathProxyForDraw = new PathProxy_default(true);
|
|
22692
22692
|
function styleHasStroke(style) {
|
|
22693
22693
|
const stroke = style.stroke;
|
|
@@ -29073,7 +29073,7 @@ function createTextStyle2(textStyleModel, opts) {
|
|
|
29073
29073
|
return createTextStyle(textStyleModel, null, null, opts.state !== "normal");
|
|
29074
29074
|
}
|
|
29075
29075
|
|
|
29076
|
-
//
|
|
29076
|
+
// node_modules/tvrender/src/contain/polygon.ts
|
|
29077
29077
|
var EPSILON5 = 1e-8;
|
|
29078
29078
|
function isAroundEqual2(a, b) {
|
|
29079
29079
|
return Math.abs(a - b) < EPSILON5;
|
|
@@ -31037,7 +31037,7 @@ function installLabelLayout(registers) {
|
|
|
31037
31037
|
});
|
|
31038
31038
|
}
|
|
31039
31039
|
|
|
31040
|
-
//
|
|
31040
|
+
// node_modules/tvrender/src/svg/SVGPathRebuilder.ts
|
|
31041
31041
|
var mathSin5 = Math.sin;
|
|
31042
31042
|
var mathCos5 = Math.cos;
|
|
31043
31043
|
var PI6 = Math.PI;
|
|
@@ -31134,7 +31134,7 @@ var SVGPathRebuilder = class {
|
|
|
31134
31134
|
};
|
|
31135
31135
|
var SVGPathRebuilder_default = SVGPathRebuilder;
|
|
31136
31136
|
|
|
31137
|
-
//
|
|
31137
|
+
// node_modules/tvrender/src/svg/mapStyleToAttrs.ts
|
|
31138
31138
|
var NONE = "none";
|
|
31139
31139
|
var mathRound2 = Math.round;
|
|
31140
31140
|
function pathHasFill(style) {
|
|
@@ -31203,7 +31203,7 @@ function mapStyleToAttrs(updateAttr2, style, el, forceUpdate) {
|
|
|
31203
31203
|
}
|
|
31204
31204
|
}
|
|
31205
31205
|
|
|
31206
|
-
//
|
|
31206
|
+
// node_modules/tvrender/src/svg/core.ts
|
|
31207
31207
|
var SVGNS = "http://www.w3.org/2000/svg";
|
|
31208
31208
|
var XLINKNS = "http://www.w3.org/1999/xlink";
|
|
31209
31209
|
var XMLNS = "http://www.w3.org/2000/xmlns/";
|
|
@@ -31305,13 +31305,13 @@ function createSVGVNode(width, height, children, useViewBox) {
|
|
|
31305
31305
|
}, children);
|
|
31306
31306
|
}
|
|
31307
31307
|
|
|
31308
|
-
//
|
|
31308
|
+
// node_modules/tvrender/src/svg/cssClassId.ts
|
|
31309
31309
|
var cssClassIdx = 0;
|
|
31310
31310
|
function getClassId() {
|
|
31311
31311
|
return cssClassIdx++;
|
|
31312
31312
|
}
|
|
31313
31313
|
|
|
31314
|
-
//
|
|
31314
|
+
// node_modules/tvrender/src/svg/cssAnimation.ts
|
|
31315
31315
|
var EASING_MAP = {
|
|
31316
31316
|
cubicIn: "0.32,0,0.67,0",
|
|
31317
31317
|
cubicOut: "0.33,1,0.68,1",
|
|
@@ -31572,7 +31572,7 @@ function createCSSAnimation(el, attrs, scope, onlyShape) {
|
|
|
31572
31572
|
}
|
|
31573
31573
|
}
|
|
31574
31574
|
|
|
31575
|
-
//
|
|
31575
|
+
// node_modules/tvrender/src/svg/cssEmphasis.ts
|
|
31576
31576
|
function createCSSEmphasis(el, attrs, scope) {
|
|
31577
31577
|
if (!el.ignore) {
|
|
31578
31578
|
if (el.isSilent()) {
|
|
@@ -31623,7 +31623,7 @@ function setClassAttribute(style, attrs, scope, withHover) {
|
|
|
31623
31623
|
attrs.class = attrs.class ? attrs.class + " " + className : className;
|
|
31624
31624
|
}
|
|
31625
31625
|
|
|
31626
|
-
//
|
|
31626
|
+
// node_modules/tvrender/src/svg/graphic.ts
|
|
31627
31627
|
var round5 = Math.round;
|
|
31628
31628
|
function isImageLike2(val) {
|
|
31629
31629
|
return val && isString(val.src);
|
|
@@ -32057,7 +32057,7 @@ function setClipPath(clipPath, attrs, scope) {
|
|
|
32057
32057
|
attrs["clip-path"] = getIdURL(clipPathId);
|
|
32058
32058
|
}
|
|
32059
32059
|
|
|
32060
|
-
//
|
|
32060
|
+
// node_modules/tvrender/src/svg/domapi.ts
|
|
32061
32061
|
function createTextNode(text) {
|
|
32062
32062
|
return document.createTextNode(text);
|
|
32063
32063
|
}
|
|
@@ -32080,7 +32080,7 @@ function setTextContent(node, text) {
|
|
|
32080
32080
|
node.textContent = text;
|
|
32081
32081
|
}
|
|
32082
32082
|
|
|
32083
|
-
//
|
|
32083
|
+
// node_modules/tvrender/src/svg/patch.ts
|
|
32084
32084
|
var colonChar = 58;
|
|
32085
32085
|
var xChar = 120;
|
|
32086
32086
|
var emptyNode = createVNode("", "");
|
|
@@ -32306,7 +32306,7 @@ function patch(oldVnode, vnode) {
|
|
|
32306
32306
|
return vnode;
|
|
32307
32307
|
}
|
|
32308
32308
|
|
|
32309
|
-
//
|
|
32309
|
+
// node_modules/tvrender/src/svg/Painter.ts
|
|
32310
32310
|
var svgId = 0;
|
|
32311
32311
|
var SVGPainter = class {
|
|
32312
32312
|
constructor(root, storage2, opts) {
|
|
@@ -32549,7 +32549,7 @@ function install(registers) {
|
|
|
32549
32549
|
registers.registerPainter("svg", Painter_default);
|
|
32550
32550
|
}
|
|
32551
32551
|
|
|
32552
|
-
//
|
|
32552
|
+
// node_modules/tvrender/src/canvas/Layer.ts
|
|
32553
32553
|
function createDom(id, painter, dpr2) {
|
|
32554
32554
|
const newDom = platformApi.createCanvas();
|
|
32555
32555
|
const width = painter.getWidth();
|
|
@@ -32822,7 +32822,7 @@ var Layer = class extends Eventful_default {
|
|
|
32822
32822
|
};
|
|
32823
32823
|
var Layer_default = Layer;
|
|
32824
32824
|
|
|
32825
|
-
//
|
|
32825
|
+
// node_modules/tvrender/src/canvas/Painter.ts
|
|
32826
32826
|
var HOVER_LAYER_ZLEVEL = 1e5;
|
|
32827
32827
|
var CANVAS_ZLEVEL = 314159;
|
|
32828
32828
|
var EL_AFTER_INCREMENTAL_INC = 0.01;
|
|
@@ -40969,7 +40969,7 @@ function onIrrelevantElement(e2, api2, targetCoordSysModel) {
|
|
|
40969
40969
|
return model && model !== targetCoordSysModel && !IRRELEVANT_EXCLUDES.hasOwnProperty(model.mainType) && (coordSys && coordSys.model !== targetCoordSysModel);
|
|
40970
40970
|
}
|
|
40971
40971
|
|
|
40972
|
-
//
|
|
40972
|
+
// node_modules/tvrender/src/tool/parseXML.ts
|
|
40973
40973
|
function parseXML(svg) {
|
|
40974
40974
|
if (isString(svg)) {
|
|
40975
40975
|
const parser = new DOMParser();
|
|
@@ -40985,7 +40985,7 @@ function parseXML(svg) {
|
|
|
40985
40985
|
return svgNode;
|
|
40986
40986
|
}
|
|
40987
40987
|
|
|
40988
|
-
//
|
|
40988
|
+
// node_modules/tvrender/src/tool/parseSVG.ts
|
|
40989
40989
|
var nodeParsers;
|
|
40990
40990
|
var INHERITABLE_STYLE_ATTRIBUTES_MAP = {
|
|
40991
40991
|
fill: "fill",
|
|
@@ -63968,10 +63968,13 @@ var DataZoomAxisInfo = class {
|
|
|
63968
63968
|
}
|
|
63969
63969
|
}
|
|
63970
63970
|
};
|
|
63971
|
+
var DefaultBarSpace = 6;
|
|
63972
|
+
var DefaultOffsetRightDistance = 50;
|
|
63971
63973
|
var DataZoomModel2 = class extends Component_default {
|
|
63972
63974
|
constructor() {
|
|
63973
63975
|
super(...arguments);
|
|
63974
63976
|
this.type = DataZoomModel2.type;
|
|
63977
|
+
this._distanceRange = [DefaultBarSpace, DefaultOffsetRightDistance / DefaultBarSpace];
|
|
63975
63978
|
this._autoThrottle = true;
|
|
63976
63979
|
this._noTarget = true;
|
|
63977
63980
|
this._rangePropMode = ["percent", "percent"];
|
|
@@ -64151,7 +64154,7 @@ var DataZoomModel2 = class extends Component_default {
|
|
|
64151
64154
|
return this.ecModel.getComponent(getAxisMainType(axisDim), axisIndex);
|
|
64152
64155
|
}
|
|
64153
64156
|
}
|
|
64154
|
-
setRawRange(opt) {
|
|
64157
|
+
setRawRange(opt, isLocal) {
|
|
64155
64158
|
const thisOption = this.option;
|
|
64156
64159
|
const settledOption = this.settledOption;
|
|
64157
64160
|
each([["start", "startValue"], ["end", "endValue"]], function(names) {
|
|
@@ -64166,6 +64169,9 @@ var DataZoomModel2 = class extends Component_default {
|
|
|
64166
64169
|
if (opt.lastBarRightSideDiffBarCount) {
|
|
64167
64170
|
thisOption.lastBarRightSideDiffBarCount = opt.lastBarRightSideDiffBarCount;
|
|
64168
64171
|
}
|
|
64172
|
+
if (!isLocal && opt.barSpace && opt.lastBarRightSideDiffBarCount) {
|
|
64173
|
+
this._distanceRange = [opt.barSpace, opt.lastBarRightSideDiffBarCount];
|
|
64174
|
+
}
|
|
64169
64175
|
this._updateRangeUse(opt);
|
|
64170
64176
|
}
|
|
64171
64177
|
setCalculatedRange(opt) {
|
|
@@ -64196,6 +64202,12 @@ var DataZoomModel2 = class extends Component_default {
|
|
|
64196
64202
|
return this.getAxisProxy(axisDim, axisIndex).getDataValueWindow();
|
|
64197
64203
|
}
|
|
64198
64204
|
}
|
|
64205
|
+
getDistanceRange() {
|
|
64206
|
+
return this._distanceRange;
|
|
64207
|
+
}
|
|
64208
|
+
setDistanceRange(distanceRange) {
|
|
64209
|
+
this._distanceRange = distanceRange;
|
|
64210
|
+
}
|
|
64199
64211
|
findRepresentativeAxisProxy(axisModel) {
|
|
64200
64212
|
if (axisModel) {
|
|
64201
64213
|
return axisModel.__dzAxisProxy;
|
|
@@ -64243,9 +64255,9 @@ DataZoomModel.defaultOption = {
|
|
|
64243
64255
|
filterMode: "filter",
|
|
64244
64256
|
start: 0,
|
|
64245
64257
|
end: 100,
|
|
64246
|
-
barSpace:
|
|
64247
|
-
lastBarRightSideDiffBarCount:
|
|
64248
|
-
offsetRightDistance:
|
|
64258
|
+
barSpace: DefaultBarSpace,
|
|
64259
|
+
lastBarRightSideDiffBarCount: DefaultOffsetRightDistance / DefaultBarSpace,
|
|
64260
|
+
offsetRightDistance: DefaultOffsetRightDistance
|
|
64249
64261
|
};
|
|
64250
64262
|
function retrieveRawOption(option) {
|
|
64251
64263
|
const ret = {};
|
|
@@ -64656,9 +64668,6 @@ function installDataZoomAction(registers) {
|
|
|
64656
64668
|
});
|
|
64657
64669
|
});
|
|
64658
64670
|
}
|
|
64659
|
-
if (isLocalDataZoom) {
|
|
64660
|
-
return;
|
|
64661
|
-
}
|
|
64662
64671
|
dataZoomModel.setRawRange({
|
|
64663
64672
|
start: payload.start,
|
|
64664
64673
|
end: payload.end,
|
|
@@ -64666,7 +64675,7 @@ function installDataZoomAction(registers) {
|
|
|
64666
64675
|
endValue: payload.endValue,
|
|
64667
64676
|
lastBarRightSideDiffBarCount: payload.lastBarRightSideDiffBarCount,
|
|
64668
64677
|
barSpace: payload.barSpace
|
|
64669
|
-
});
|
|
64678
|
+
}, isLocalDataZoom);
|
|
64670
64679
|
});
|
|
64671
64680
|
});
|
|
64672
64681
|
}
|
|
@@ -71964,10 +71973,7 @@ function createCoordSysRecord(api2, coordSysModel) {
|
|
|
71964
71973
|
const useValueRange = dzInfo.model.get("useValueRange");
|
|
71965
71974
|
const isDistanceMode = axisModal.axis.getIsDistanceMode();
|
|
71966
71975
|
if (isDistanceMode) {
|
|
71967
|
-
dzInfo.model.
|
|
71968
|
-
barSpace: range[0],
|
|
71969
|
-
lastBarRightSideDiffBarCount: range[1]
|
|
71970
|
-
});
|
|
71976
|
+
dzInfo.model.setDistanceRange(range);
|
|
71971
71977
|
dzInfo.model.isDragging = controller.isDragging();
|
|
71972
71978
|
batch.push({
|
|
71973
71979
|
dataZoomId: dzInfo.model.id,
|
|
@@ -72086,7 +72092,7 @@ function installDataZoomRoamProcessor(registers) {
|
|
|
72086
72092
|
const controllerParams = mergeControllerParams(dataZoomInfoMap);
|
|
72087
72093
|
controller.enable(controllerParams.controlType, controllerParams.opt);
|
|
72088
72094
|
controller.setPointerChecker(coordSysRecord.containsPoint);
|
|
72089
|
-
createOrUpdate(coordSysRecord, "dispatchAction",
|
|
72095
|
+
createOrUpdate(coordSysRecord, "dispatchAction", 60, "fixRate");
|
|
72090
72096
|
});
|
|
72091
72097
|
});
|
|
72092
72098
|
}
|
|
@@ -72105,6 +72111,7 @@ var InsideZoomView = class extends DataZoomView_default {
|
|
|
72105
72111
|
}
|
|
72106
72112
|
this.range = dataZoomModel.getPercentRange();
|
|
72107
72113
|
this.valueRange = dataZoomModel.getValueRange(null, null);
|
|
72114
|
+
this.distanceRange = dataZoomModel.getDistanceRange();
|
|
72108
72115
|
setViewInfoToCoordSysRecord(api2, dataZoomModel, {
|
|
72109
72116
|
pan: bind(getRangeHandlers.pan, this),
|
|
72110
72117
|
zoom: bind(getRangeHandlers.zoom, this),
|
|
@@ -72135,11 +72142,13 @@ var getRangeHandlers = {
|
|
|
72135
72142
|
const scale4 = Math.max(1 / e2.scale, 0);
|
|
72136
72143
|
const isDistanceMode = axisModel.axis.getIsDistanceMode();
|
|
72137
72144
|
if (isDistanceMode) {
|
|
72145
|
+
const lastDistanceRange = this.distanceRange;
|
|
72146
|
+
const distanceRange = lastDistanceRange.slice();
|
|
72138
72147
|
const maxWidth = axisModel.ecModel.scheduler.api.getWidth() / 2;
|
|
72139
|
-
|
|
72140
|
-
this.
|
|
72141
|
-
if (
|
|
72142
|
-
return
|
|
72148
|
+
distanceRange[0] = barSpaceLimit(distanceRange[0] * e2.scale, maxWidth);
|
|
72149
|
+
this.distanceRange = distanceRange;
|
|
72150
|
+
if (lastDistanceRange[0] !== distanceRange[0] || lastDistanceRange[1] !== distanceRange[1]) {
|
|
72151
|
+
return distanceRange;
|
|
72143
72152
|
}
|
|
72144
72153
|
return;
|
|
72145
72154
|
}
|
|
@@ -72202,16 +72211,18 @@ function makeMover(getPercentDelta) {
|
|
|
72202
72211
|
const range = lastRange.slice();
|
|
72203
72212
|
const isDistanceMode = axisModel.axis.getIsDistanceMode();
|
|
72204
72213
|
if (isDistanceMode) {
|
|
72214
|
+
const lastDistanceRange = this.distanceRange;
|
|
72215
|
+
const distanceRange = lastDistanceRange.slice();
|
|
72205
72216
|
const distance2 = e2.dx ?? e2.scrollDelta;
|
|
72206
|
-
const barSpace =
|
|
72207
|
-
const startLastBarRightSideDiffBarCount =
|
|
72217
|
+
const barSpace = lastDistanceRange[0] ?? this.dataZoomModel.get("barSpace");
|
|
72218
|
+
const startLastBarRightSideDiffBarCount = lastDistanceRange[1] ?? this.dataZoomModel.get("lastBarRightSideDiffBarCount");
|
|
72208
72219
|
const distanceBarCount = distance2 / barSpace;
|
|
72209
72220
|
const lastBarRightSideDiffBarCount = startLastBarRightSideDiffBarCount - distanceBarCount;
|
|
72210
|
-
|
|
72211
|
-
|
|
72212
|
-
this.
|
|
72213
|
-
if (
|
|
72214
|
-
return
|
|
72221
|
+
distanceRange[0] = barSpace;
|
|
72222
|
+
distanceRange[1] = lastBarRightSideDiffBarCount;
|
|
72223
|
+
this.distanceRange = distanceRange;
|
|
72224
|
+
if (lastDistanceRange[0] !== distanceRange[0] || lastDistanceRange[1] !== distanceRange[1]) {
|
|
72225
|
+
return distanceRange;
|
|
72215
72226
|
}
|
|
72216
72227
|
return;
|
|
72217
72228
|
}
|
|
@@ -75341,7 +75352,7 @@ function install62(registers) {
|
|
|
75341
75352
|
registers.registerComponentView(DatasetView);
|
|
75342
75353
|
}
|
|
75343
75354
|
|
|
75344
|
-
//
|
|
75355
|
+
// node_modules/tvrender/src/tool/convertPath.ts
|
|
75345
75356
|
var CMD5 = PathProxy_default.CMD;
|
|
75346
75357
|
function aroundEqual(a, b) {
|
|
75347
75358
|
return Math.abs(a - b) < 1e-5;
|
|
@@ -75541,7 +75552,7 @@ function pathToPolygons(path, scale4) {
|
|
|
75541
75552
|
return polygons;
|
|
75542
75553
|
}
|
|
75543
75554
|
|
|
75544
|
-
//
|
|
75555
|
+
// node_modules/tvrender/src/tool/dividePath.ts
|
|
75545
75556
|
function getDividingGrids(dimSize, rowDim, count2) {
|
|
75546
75557
|
const rowSize = dimSize[rowDim];
|
|
75547
75558
|
const columnSize = dimSize[1 - rowDim];
|
|
@@ -75843,7 +75854,7 @@ function split(path, count2) {
|
|
|
75843
75854
|
return out2;
|
|
75844
75855
|
}
|
|
75845
75856
|
|
|
75846
|
-
//
|
|
75857
|
+
// node_modules/tvrender/src/tool/morphPath.ts
|
|
75847
75858
|
function alignSubpath(subpath1, subpath2) {
|
|
75848
75859
|
const len1 = subpath1.length;
|
|
75849
75860
|
const len2 = subpath2.length;
|