tvcharts 0.8.64 → 0.8.66
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 +552 -139
- package/dist/echarts.js.map +3 -3
- package/index.js +2 -1
- package/lib/chart/fills/fillsLayout.js +1 -1
- package/lib/component/alarm/AlarmView.js +2 -0
- package/lib/component/axisPointer/AxisPointerView.js +2 -1
- package/lib/component/dataZoom/AxisProxy.js +9 -1
- package/lib/component/playback/PlaybackOrderModel.js +53 -0
- package/lib/component/playback/PlaybackOrderView.js +209 -0
- package/lib/component/playback/PlaybackSelectModel.js +55 -0
- package/lib/component/playback/PlaybackSelectView.js +201 -0
- package/lib/component/playback/install.js +46 -0
- package/lib/core/echarts.js +1 -1
- package/lib/export/components.js +1 -0
- package/lib/model/Global.js +2 -0
- package/package.json +1 -1
- package/types/dist/components.d.ts +1 -1
- package/types/dist/renderers.d.ts +1 -1
- package/types/dist/shared.d.ts +3 -1
- package/types/src/component/playback/PlaybackOrderModel.d.ts +28 -0
- package/types/src/component/playback/PlaybackOrderView.d.ts +32 -0
- package/types/src/component/playback/PlaybackSelectModel.d.ts +26 -0
- package/types/src/component/playback/PlaybackSelectView.d.ts +23 -0
- package/types/src/component/playback/install.d.ts +2 -0
- package/types/src/export/components.d.ts +1 -0
package/dist/echarts.js
CHANGED
|
@@ -83,7 +83,7 @@ __export(exports, {
|
|
|
83
83
|
zrender: () => zrender_exports
|
|
84
84
|
});
|
|
85
85
|
|
|
86
|
-
//
|
|
86
|
+
// node_modules/tvrender/src/zrender.ts
|
|
87
87
|
var zrender_exports = {};
|
|
88
88
|
__export(zrender_exports, {
|
|
89
89
|
dispose: () => dispose,
|
|
@@ -96,7 +96,7 @@ __export(zrender_exports, {
|
|
|
96
96
|
version: () => version
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
-
//
|
|
99
|
+
// node_modules/tvrender/src/core/env.ts
|
|
100
100
|
var Browser = class {
|
|
101
101
|
constructor() {
|
|
102
102
|
this.firefox = false;
|
|
@@ -165,7 +165,7 @@ function detect(ua, env2) {
|
|
|
165
165
|
}
|
|
166
166
|
var env_default = env;
|
|
167
167
|
|
|
168
|
-
//
|
|
168
|
+
// node_modules/tvrender/src/core/util.ts
|
|
169
169
|
var util_exports = {};
|
|
170
170
|
__export(util_exports, {
|
|
171
171
|
HashMap: () => HashMap,
|
|
@@ -222,7 +222,7 @@ __export(util_exports, {
|
|
|
222
222
|
trim: () => trim
|
|
223
223
|
});
|
|
224
224
|
|
|
225
|
-
//
|
|
225
|
+
// node_modules/tvrender/src/core/platform.ts
|
|
226
226
|
var DEFAULT_FONT_SIZE = 12;
|
|
227
227
|
var DEFAULT_FONT_FAMILY = `-apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif`;
|
|
228
228
|
var DEFAULT_FONT = `${DEFAULT_FONT_SIZE}px ${DEFAULT_FONT_FAMILY}`;
|
|
@@ -293,7 +293,7 @@ function setPlatformAPI(newPlatformApis) {
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
//
|
|
296
|
+
// node_modules/tvrender/src/core/util.ts
|
|
297
297
|
var BUILTIN_OBJECT = reduce([
|
|
298
298
|
"Function",
|
|
299
299
|
"RegExp",
|
|
@@ -833,7 +833,7 @@ function colorToRgba(color2 = "") {
|
|
|
833
833
|
return rgbaColor;
|
|
834
834
|
}
|
|
835
835
|
|
|
836
|
-
//
|
|
836
|
+
// node_modules/tvrender/src/core/vector.ts
|
|
837
837
|
var vector_exports = {};
|
|
838
838
|
__export(vector_exports, {
|
|
839
839
|
add: () => add,
|
|
@@ -972,7 +972,7 @@ function max(out2, v12, v22) {
|
|
|
972
972
|
return out2;
|
|
973
973
|
}
|
|
974
974
|
|
|
975
|
-
//
|
|
975
|
+
// node_modules/tvrender/src/mixin/Draggable.ts
|
|
976
976
|
var Param = class {
|
|
977
977
|
constructor(target, e2) {
|
|
978
978
|
this.target = target;
|
|
@@ -1038,7 +1038,7 @@ var Draggable = class {
|
|
|
1038
1038
|
};
|
|
1039
1039
|
var Draggable_default = Draggable;
|
|
1040
1040
|
|
|
1041
|
-
//
|
|
1041
|
+
// node_modules/tvrender/src/core/Eventful.ts
|
|
1042
1042
|
var Eventful = class {
|
|
1043
1043
|
constructor(eventProcessors) {
|
|
1044
1044
|
if (eventProcessors) {
|
|
@@ -1182,7 +1182,7 @@ var Eventful = class {
|
|
|
1182
1182
|
};
|
|
1183
1183
|
var Eventful_default = Eventful;
|
|
1184
1184
|
|
|
1185
|
-
//
|
|
1185
|
+
// node_modules/tvrender/src/core/fourPointsTransform.ts
|
|
1186
1186
|
var LN2 = Math.log(2);
|
|
1187
1187
|
function determinant(rows, rank, rowStart, rowMask, colMask, detCache) {
|
|
1188
1188
|
const cacheKey = rowMask + "-" + colMask;
|
|
@@ -1240,7 +1240,7 @@ function buildTransformer(src, dest) {
|
|
|
1240
1240
|
};
|
|
1241
1241
|
}
|
|
1242
1242
|
|
|
1243
|
-
//
|
|
1243
|
+
// node_modules/tvrender/src/core/dom.ts
|
|
1244
1244
|
var EVENT_SAVED_PROP = "___zrEVENTSAVED";
|
|
1245
1245
|
var _calcOut = [];
|
|
1246
1246
|
function transformLocalCoord(out2, elFrom, elTarget, inX, inY) {
|
|
@@ -1326,7 +1326,7 @@ function encodeHTML(source) {
|
|
|
1326
1326
|
});
|
|
1327
1327
|
}
|
|
1328
1328
|
|
|
1329
|
-
//
|
|
1329
|
+
// node_modules/tvrender/src/core/event.ts
|
|
1330
1330
|
var MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/;
|
|
1331
1331
|
var _calcOut2 = [];
|
|
1332
1332
|
var firefoxNotSupportOffsetXY = env_default.browser.firefox && +env_default.browser.version.split(".")[0] < 39;
|
|
@@ -1417,7 +1417,7 @@ function isMiddleOrRightButtonOnMouseUpDown(e2) {
|
|
|
1417
1417
|
return e2.which === 2 || e2.which === 3;
|
|
1418
1418
|
}
|
|
1419
1419
|
|
|
1420
|
-
//
|
|
1420
|
+
// node_modules/tvrender/src/core/GestureMgr.ts
|
|
1421
1421
|
var GestureMgr = class {
|
|
1422
1422
|
constructor() {
|
|
1423
1423
|
this._track = [];
|
|
@@ -1495,7 +1495,7 @@ var recognizers = {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
};
|
|
1497
1497
|
|
|
1498
|
-
//
|
|
1498
|
+
// node_modules/tvrender/src/core/matrix.ts
|
|
1499
1499
|
var matrix_exports = {};
|
|
1500
1500
|
__export(matrix_exports, {
|
|
1501
1501
|
clone: () => clone3,
|
|
@@ -1607,7 +1607,7 @@ function clone3(a) {
|
|
|
1607
1607
|
return b;
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
|
-
//
|
|
1610
|
+
// node_modules/tvrender/src/core/Point.ts
|
|
1611
1611
|
var Point = class {
|
|
1612
1612
|
constructor(x, y) {
|
|
1613
1613
|
this.x = x || 0;
|
|
@@ -1737,7 +1737,7 @@ var Point = class {
|
|
|
1737
1737
|
};
|
|
1738
1738
|
var Point_default = Point;
|
|
1739
1739
|
|
|
1740
|
-
//
|
|
1740
|
+
// node_modules/tvrender/src/core/BoundingRect.ts
|
|
1741
1741
|
var mathMin = Math.min;
|
|
1742
1742
|
var mathMax = Math.max;
|
|
1743
1743
|
var lt = new Point_default();
|
|
@@ -1937,7 +1937,7 @@ var BoundingRect = class {
|
|
|
1937
1937
|
};
|
|
1938
1938
|
var BoundingRect_default = BoundingRect;
|
|
1939
1939
|
|
|
1940
|
-
//
|
|
1940
|
+
// node_modules/tvrender/src/Handler.ts
|
|
1941
1941
|
var SILENT = "silent";
|
|
1942
1942
|
function makeEventPacket(eveType, targetInfo, event) {
|
|
1943
1943
|
return {
|
|
@@ -2223,7 +2223,7 @@ function isOutsideBoundary(handlerInstance, x, y) {
|
|
|
2223
2223
|
}
|
|
2224
2224
|
var Handler_default = Handler;
|
|
2225
2225
|
|
|
2226
|
-
//
|
|
2226
|
+
// node_modules/tvrender/src/core/timsort.ts
|
|
2227
2227
|
var DEFAULT_MIN_MERGE = 32;
|
|
2228
2228
|
var DEFAULT_MIN_GALLOPING = 7;
|
|
2229
2229
|
function minRunLength(n) {
|
|
@@ -2732,12 +2732,12 @@ function sort(array, compare2, lo, hi) {
|
|
|
2732
2732
|
ts.forceMergeRuns();
|
|
2733
2733
|
}
|
|
2734
2734
|
|
|
2735
|
-
//
|
|
2735
|
+
// node_modules/tvrender/src/graphic/constants.ts
|
|
2736
2736
|
var REDRAW_BIT = 1;
|
|
2737
2737
|
var STYLE_CHANGED_BIT = 2;
|
|
2738
2738
|
var SHAPE_CHANGED_BIT = 4;
|
|
2739
2739
|
|
|
2740
|
-
//
|
|
2740
|
+
// node_modules/tvrender/src/Storage.ts
|
|
2741
2741
|
var invalidZErrorLogged = false;
|
|
2742
2742
|
function logInvalidZError() {
|
|
2743
2743
|
if (invalidZErrorLogged) {
|
|
@@ -2912,14 +2912,14 @@ var Storage = class {
|
|
|
2912
2912
|
};
|
|
2913
2913
|
var Storage_default = Storage;
|
|
2914
2914
|
|
|
2915
|
-
//
|
|
2915
|
+
// node_modules/tvrender/src/animation/requestAnimationFrame.ts
|
|
2916
2916
|
var requestAnimationFrame2;
|
|
2917
2917
|
requestAnimationFrame2 = env_default.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(func) {
|
|
2918
2918
|
return setTimeout(func, 16);
|
|
2919
2919
|
};
|
|
2920
2920
|
var requestAnimationFrame_default = requestAnimationFrame2;
|
|
2921
2921
|
|
|
2922
|
-
//
|
|
2922
|
+
// node_modules/tvrender/src/animation/easing.ts
|
|
2923
2923
|
var easingFuncs = {
|
|
2924
2924
|
linear(k) {
|
|
2925
2925
|
return k;
|
|
@@ -3106,7 +3106,7 @@ var easingFuncs = {
|
|
|
3106
3106
|
};
|
|
3107
3107
|
var easing_default = easingFuncs;
|
|
3108
3108
|
|
|
3109
|
-
//
|
|
3109
|
+
// node_modules/tvrender/src/core/curve.ts
|
|
3110
3110
|
var mathPow = Math.pow;
|
|
3111
3111
|
var mathSqrt = Math.sqrt;
|
|
3112
3112
|
var EPSILON = 1e-8;
|
|
@@ -3435,7 +3435,7 @@ function quadraticLength(x0, y0, x1, y1, x2, y2, iteration) {
|
|
|
3435
3435
|
return d;
|
|
3436
3436
|
}
|
|
3437
3437
|
|
|
3438
|
-
//
|
|
3438
|
+
// node_modules/tvrender/src/animation/cubicEasing.ts
|
|
3439
3439
|
var regexp = /cubic-bezier\(([0-9,\.e ]+)\)/;
|
|
3440
3440
|
function createCubicEasingFunc(cubicEasingStr) {
|
|
3441
3441
|
const cubic2 = cubicEasingStr && regexp.exec(cubicEasingStr);
|
|
@@ -3455,7 +3455,7 @@ function createCubicEasingFunc(cubicEasingStr) {
|
|
|
3455
3455
|
}
|
|
3456
3456
|
}
|
|
3457
3457
|
|
|
3458
|
-
//
|
|
3458
|
+
// node_modules/tvrender/src/animation/Clip.ts
|
|
3459
3459
|
var Clip = class {
|
|
3460
3460
|
constructor(opts) {
|
|
3461
3461
|
this._inited = false;
|
|
@@ -3514,7 +3514,7 @@ var Clip = class {
|
|
|
3514
3514
|
};
|
|
3515
3515
|
var Clip_default = Clip;
|
|
3516
3516
|
|
|
3517
|
-
//
|
|
3517
|
+
// node_modules/tvrender/src/tool/color.ts
|
|
3518
3518
|
var color_exports = {};
|
|
3519
3519
|
__export(color_exports, {
|
|
3520
3520
|
fastLerp: () => fastLerp,
|
|
@@ -3532,7 +3532,7 @@ __export(color_exports, {
|
|
|
3532
3532
|
toHex: () => toHex
|
|
3533
3533
|
});
|
|
3534
3534
|
|
|
3535
|
-
//
|
|
3535
|
+
// node_modules/tvrender/src/core/LRU.ts
|
|
3536
3536
|
var Entry = class {
|
|
3537
3537
|
constructor(val) {
|
|
3538
3538
|
this.value = val;
|
|
@@ -3635,7 +3635,7 @@ var LRU = class {
|
|
|
3635
3635
|
};
|
|
3636
3636
|
var LRU_default = LRU;
|
|
3637
3637
|
|
|
3638
|
-
//
|
|
3638
|
+
// node_modules/tvrender/src/tool/color.ts
|
|
3639
3639
|
var kCSSColorTable = {
|
|
3640
3640
|
transparent: [0, 0, 0, 0],
|
|
3641
3641
|
aliceblue: [240, 248, 255, 1],
|
|
@@ -4119,7 +4119,7 @@ function liftColor(color2) {
|
|
|
4119
4119
|
return color2;
|
|
4120
4120
|
}
|
|
4121
4121
|
|
|
4122
|
-
//
|
|
4122
|
+
// node_modules/tvrender/src/svg/helper.ts
|
|
4123
4123
|
var mathRound = Math.round;
|
|
4124
4124
|
function normalizeColor(color2) {
|
|
4125
4125
|
let opacity;
|
|
@@ -4247,7 +4247,7 @@ var encodeBase64 = function() {
|
|
|
4247
4247
|
};
|
|
4248
4248
|
}();
|
|
4249
4249
|
|
|
4250
|
-
//
|
|
4250
|
+
// node_modules/tvrender/src/animation/Animator.ts
|
|
4251
4251
|
var arraySlice = Array.prototype.slice;
|
|
4252
4252
|
function interpolateNumber(p0, p1, percent) {
|
|
4253
4253
|
return (p1 - p0) * percent + p0;
|
|
@@ -4934,7 +4934,7 @@ var Animator = class {
|
|
|
4934
4934
|
};
|
|
4935
4935
|
var Animator_default = Animator;
|
|
4936
4936
|
|
|
4937
|
-
//
|
|
4937
|
+
// node_modules/tvrender/src/animation/Animation.ts
|
|
4938
4938
|
function getTime() {
|
|
4939
4939
|
return new Date().getTime();
|
|
4940
4940
|
}
|
|
@@ -5072,7 +5072,7 @@ var Animation = class extends Eventful_default {
|
|
|
5072
5072
|
};
|
|
5073
5073
|
var Animation_default = Animation;
|
|
5074
5074
|
|
|
5075
|
-
//
|
|
5075
|
+
// node_modules/tvrender/src/dom/HandlerProxy.ts
|
|
5076
5076
|
var TOUCH_CLICK_DELAY = 300;
|
|
5077
5077
|
var globalEventSupported = env_default.domSupported;
|
|
5078
5078
|
var localNativeListenerNames = function() {
|
|
@@ -5362,7 +5362,7 @@ var HandlerDomProxy = class extends Eventful_default {
|
|
|
5362
5362
|
};
|
|
5363
5363
|
var HandlerProxy_default = HandlerDomProxy;
|
|
5364
5364
|
|
|
5365
|
-
//
|
|
5365
|
+
// node_modules/tvrender/src/config.ts
|
|
5366
5366
|
var dpr = 1;
|
|
5367
5367
|
if (env_default.hasGlobalWindow) {
|
|
5368
5368
|
dpr = Math.max(window.devicePixelRatio || window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI || 1, 1);
|
|
@@ -5373,7 +5373,7 @@ var DARK_LABEL_COLOR = "#333";
|
|
|
5373
5373
|
var LIGHT_LABEL_COLOR = "#ccc";
|
|
5374
5374
|
var LIGHTER_LABEL_COLOR = "#eee";
|
|
5375
5375
|
|
|
5376
|
-
//
|
|
5376
|
+
// node_modules/tvrender/src/core/Transformable.ts
|
|
5377
5377
|
var mIdentity = identity;
|
|
5378
5378
|
var EPSILON3 = 5e-5;
|
|
5379
5379
|
function isNotAroundZero2(val) {
|
|
@@ -5603,7 +5603,7 @@ function copyTransform(target, source) {
|
|
|
5603
5603
|
}
|
|
5604
5604
|
var Transformable_default = Transformable;
|
|
5605
5605
|
|
|
5606
|
-
//
|
|
5606
|
+
// node_modules/tvrender/src/contain/text.ts
|
|
5607
5607
|
var textWidthCache = {};
|
|
5608
5608
|
function getWidth(text, font) {
|
|
5609
5609
|
font = font || DEFAULT_FONT;
|
|
@@ -5765,7 +5765,7 @@ function calculateTextPosition(out2, opts, rect) {
|
|
|
5765
5765
|
return out2;
|
|
5766
5766
|
}
|
|
5767
5767
|
|
|
5768
|
-
//
|
|
5768
|
+
// node_modules/tvrender/src/Element.ts
|
|
5769
5769
|
var PRESERVED_NORMAL_STATE = "__zr_normal__";
|
|
5770
5770
|
var PRIMARY_STATES_KEYS = TRANSFORMABLE_PROPS.concat(["ignore"]);
|
|
5771
5771
|
var DEFAULT_ANIMATABLE_MAP = reduce(TRANSFORMABLE_PROPS, (obj, key) => {
|
|
@@ -6755,7 +6755,7 @@ function animateToShallow(animatable, topKey, animateObj, target, cfg, animation
|
|
|
6755
6755
|
}
|
|
6756
6756
|
var Element_default = Element;
|
|
6757
6757
|
|
|
6758
|
-
//
|
|
6758
|
+
// node_modules/tvrender/src/graphic/Group.ts
|
|
6759
6759
|
var Group = class extends Element_default {
|
|
6760
6760
|
constructor(opts) {
|
|
6761
6761
|
super();
|
|
@@ -6927,7 +6927,7 @@ var Group = class extends Element_default {
|
|
|
6927
6927
|
Group.prototype.type = "group";
|
|
6928
6928
|
var Group_default = Group;
|
|
6929
6929
|
|
|
6930
|
-
//
|
|
6930
|
+
// node_modules/tvrender/src/zrender.ts
|
|
6931
6931
|
/*!
|
|
6932
6932
|
* ZRender, a high performance 2d drawing library.
|
|
6933
6933
|
*
|
|
@@ -7244,7 +7244,7 @@ function getElementSSRData(el) {
|
|
|
7244
7244
|
function registerSSRDataGetter(getter) {
|
|
7245
7245
|
ssrDataGetter = getter;
|
|
7246
7246
|
}
|
|
7247
|
-
var version = "5.6.
|
|
7247
|
+
var version = "5.6.93";
|
|
7248
7248
|
|
|
7249
7249
|
// src/util/number.ts
|
|
7250
7250
|
var RADIAN_EPSILON = 1e-4;
|
|
@@ -8252,7 +8252,7 @@ var AreaStyleMixin = class {
|
|
|
8252
8252
|
}
|
|
8253
8253
|
};
|
|
8254
8254
|
|
|
8255
|
-
//
|
|
8255
|
+
// node_modules/tvrender/src/graphic/helper/image.ts
|
|
8256
8256
|
var globalImageCache = new LRU_default(50);
|
|
8257
8257
|
function findExistImage(newImageOrSrc) {
|
|
8258
8258
|
if (typeof newImageOrSrc === "string") {
|
|
@@ -8302,7 +8302,7 @@ function isImageReady(image) {
|
|
|
8302
8302
|
return image && image.width && image.height;
|
|
8303
8303
|
}
|
|
8304
8304
|
|
|
8305
|
-
//
|
|
8305
|
+
// node_modules/tvrender/src/graphic/helper/parseText.ts
|
|
8306
8306
|
var STYLE_REG = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;
|
|
8307
8307
|
function truncateText(text, containerWidth, font, ellipsis, options) {
|
|
8308
8308
|
if (!containerWidth) {
|
|
@@ -8736,7 +8736,7 @@ function wrapText(text, font, lineWidth, isBreakAll, lastAccumWidth) {
|
|
|
8736
8736
|
};
|
|
8737
8737
|
}
|
|
8738
8738
|
|
|
8739
|
-
//
|
|
8739
|
+
// node_modules/tvrender/src/graphic/Displayable.ts
|
|
8740
8740
|
var STYLE_MAGIC_KEY = "__zr_style_" + Math.round(Math.random() * 10);
|
|
8741
8741
|
var DEFAULT_COMMON_STYLE = {
|
|
8742
8742
|
shadowBlur: 0,
|
|
@@ -9042,7 +9042,7 @@ function isDisplayableCulled(el, width, height) {
|
|
|
9042
9042
|
}
|
|
9043
9043
|
var Displayable_default = Displayable;
|
|
9044
9044
|
|
|
9045
|
-
//
|
|
9045
|
+
// node_modules/tvrender/src/core/bbox.ts
|
|
9046
9046
|
var mathMin2 = Math.min;
|
|
9047
9047
|
var mathMax2 = Math.max;
|
|
9048
9048
|
var mathSin = Math.sin;
|
|
@@ -9165,7 +9165,7 @@ function fromArc(x, y, rx, ry, startAngle, endAngle, anticlockwise, min3, max3)
|
|
|
9165
9165
|
}
|
|
9166
9166
|
}
|
|
9167
9167
|
|
|
9168
|
-
//
|
|
9168
|
+
// node_modules/tvrender/src/core/PathProxy.ts
|
|
9169
9169
|
var CMD = {
|
|
9170
9170
|
M: 1,
|
|
9171
9171
|
L: 2,
|
|
@@ -9918,7 +9918,7 @@ PathProxy.initDefaultProps = function() {
|
|
|
9918
9918
|
}();
|
|
9919
9919
|
var PathProxy_default = PathProxy;
|
|
9920
9920
|
|
|
9921
|
-
//
|
|
9921
|
+
// node_modules/tvrender/src/contain/line.ts
|
|
9922
9922
|
function containStroke(x0, y0, x1, y1, lineWidth, x, y) {
|
|
9923
9923
|
if (lineWidth === 0) {
|
|
9924
9924
|
return false;
|
|
@@ -9940,7 +9940,7 @@ function containStroke(x0, y0, x1, y1, lineWidth, x, y) {
|
|
|
9940
9940
|
return _s <= _l / 2 * _l / 2;
|
|
9941
9941
|
}
|
|
9942
9942
|
|
|
9943
|
-
//
|
|
9943
|
+
// node_modules/tvrender/src/contain/cubic.ts
|
|
9944
9944
|
function containStroke2(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
|
|
9945
9945
|
if (lineWidth === 0) {
|
|
9946
9946
|
return false;
|
|
@@ -9953,7 +9953,7 @@ function containStroke2(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
|
|
|
9953
9953
|
return d <= _l / 2;
|
|
9954
9954
|
}
|
|
9955
9955
|
|
|
9956
|
-
//
|
|
9956
|
+
// node_modules/tvrender/src/contain/quadratic.ts
|
|
9957
9957
|
function containStroke3(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
|
|
9958
9958
|
if (lineWidth === 0) {
|
|
9959
9959
|
return false;
|
|
@@ -9966,7 +9966,7 @@ function containStroke3(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
|
|
|
9966
9966
|
return d <= _l / 2;
|
|
9967
9967
|
}
|
|
9968
9968
|
|
|
9969
|
-
//
|
|
9969
|
+
// node_modules/tvrender/src/contain/util.ts
|
|
9970
9970
|
var PI23 = Math.PI * 2;
|
|
9971
9971
|
function normalizeRadian(angle) {
|
|
9972
9972
|
angle %= PI23;
|
|
@@ -9976,7 +9976,7 @@ function normalizeRadian(angle) {
|
|
|
9976
9976
|
return angle;
|
|
9977
9977
|
}
|
|
9978
9978
|
|
|
9979
|
-
//
|
|
9979
|
+
// node_modules/tvrender/src/contain/arc.ts
|
|
9980
9980
|
var PI24 = Math.PI * 2;
|
|
9981
9981
|
function containStroke4(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidth, x, y) {
|
|
9982
9982
|
if (lineWidth === 0) {
|
|
@@ -10010,7 +10010,7 @@ function containStroke4(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidt
|
|
|
10010
10010
|
return angle >= startAngle && angle <= endAngle || angle + PI24 >= startAngle && angle + PI24 <= endAngle;
|
|
10011
10011
|
}
|
|
10012
10012
|
|
|
10013
|
-
//
|
|
10013
|
+
// node_modules/tvrender/src/contain/windingLine.ts
|
|
10014
10014
|
function windingLine(x0, y0, x1, y1, x, y) {
|
|
10015
10015
|
if (y > y0 && y > y1 || y < y0 && y < y1) {
|
|
10016
10016
|
return 0;
|
|
@@ -10027,7 +10027,7 @@ function windingLine(x0, y0, x1, y1, x, y) {
|
|
|
10027
10027
|
return x_ === x ? Infinity : x_ > x ? dir3 : 0;
|
|
10028
10028
|
}
|
|
10029
10029
|
|
|
10030
|
-
//
|
|
10030
|
+
// node_modules/tvrender/src/contain/path.ts
|
|
10031
10031
|
var CMD2 = PathProxy_default.CMD;
|
|
10032
10032
|
var PI25 = Math.PI * 2;
|
|
10033
10033
|
var EPSILON4 = 1e-4;
|
|
@@ -10313,7 +10313,7 @@ function containStroke5(pathProxy, lineWidth, x, y) {
|
|
|
10313
10313
|
return containPath(pathProxy, lineWidth, true, x, y);
|
|
10314
10314
|
}
|
|
10315
10315
|
|
|
10316
|
-
//
|
|
10316
|
+
// node_modules/tvrender/src/graphic/Path.ts
|
|
10317
10317
|
var DEFAULT_PATH_STYLE = defaults({
|
|
10318
10318
|
fill: "#000",
|
|
10319
10319
|
stroke: null,
|
|
@@ -10690,7 +10690,7 @@ Path.initDefaultProps = function() {
|
|
|
10690
10690
|
}();
|
|
10691
10691
|
var Path_default = Path;
|
|
10692
10692
|
|
|
10693
|
-
//
|
|
10693
|
+
// node_modules/tvrender/src/graphic/TSpan.ts
|
|
10694
10694
|
var DEFAULT_TSPAN_STYLE = defaults({
|
|
10695
10695
|
strokeFirst: true,
|
|
10696
10696
|
font: DEFAULT_FONT,
|
|
@@ -10745,7 +10745,7 @@ TSpan.initDefaultProps = function() {
|
|
|
10745
10745
|
TSpan.prototype.type = "tspan";
|
|
10746
10746
|
var TSpan_default = TSpan;
|
|
10747
10747
|
|
|
10748
|
-
//
|
|
10748
|
+
// node_modules/tvrender/src/graphic/Image.ts
|
|
10749
10749
|
var DEFAULT_IMAGE_STYLE = defaults({
|
|
10750
10750
|
x: 0,
|
|
10751
10751
|
y: 0
|
|
@@ -10807,7 +10807,7 @@ var ZRImage = class extends Displayable_default {
|
|
|
10807
10807
|
ZRImage.prototype.type = "image";
|
|
10808
10808
|
var Image_default = ZRImage;
|
|
10809
10809
|
|
|
10810
|
-
//
|
|
10810
|
+
// node_modules/tvrender/src/graphic/helper/roundRect.ts
|
|
10811
10811
|
function buildPath(ctx2, shape) {
|
|
10812
10812
|
let x = shape.x;
|
|
10813
10813
|
let y = shape.y;
|
|
@@ -10879,7 +10879,7 @@ function buildPath(ctx2, shape) {
|
|
|
10879
10879
|
r1 !== 0 && ctx2.arc(x + r1, y + r1, r1, Math.PI, Math.PI * 1.5);
|
|
10880
10880
|
}
|
|
10881
10881
|
|
|
10882
|
-
//
|
|
10882
|
+
// node_modules/tvrender/src/graphic/helper/subPixelOptimize.ts
|
|
10883
10883
|
var round2 = Math.round;
|
|
10884
10884
|
function subPixelOptimizeLine(outputShape, inputShape, style) {
|
|
10885
10885
|
if (!inputShape) {
|
|
@@ -10935,7 +10935,7 @@ function subPixelOptimize(position2, lineWidth, positiveOrNegative) {
|
|
|
10935
10935
|
return (doubledPosition + round2(lineWidth)) % 2 === 0 ? doubledPosition / 2 : (doubledPosition + (positiveOrNegative ? 1 : -1)) / 2;
|
|
10936
10936
|
}
|
|
10937
10937
|
|
|
10938
|
-
//
|
|
10938
|
+
// node_modules/tvrender/src/graphic/shape/Rect.ts
|
|
10939
10939
|
var RectShape = class {
|
|
10940
10940
|
constructor() {
|
|
10941
10941
|
this.x = 0;
|
|
@@ -10984,7 +10984,7 @@ var Rect = class extends Path_default {
|
|
|
10984
10984
|
Rect.prototype.type = "rect";
|
|
10985
10985
|
var Rect_default = Rect;
|
|
10986
10986
|
|
|
10987
|
-
//
|
|
10987
|
+
// node_modules/tvrender/src/graphic/Text.ts
|
|
10988
10988
|
var DEFAULT_RICH_TEXT_COLOR = {
|
|
10989
10989
|
fill: "#000"
|
|
10990
10990
|
};
|
|
@@ -12253,7 +12253,7 @@ __export(graphic_exports, {
|
|
|
12253
12253
|
updateProps: () => updateProps
|
|
12254
12254
|
});
|
|
12255
12255
|
|
|
12256
|
-
//
|
|
12256
|
+
// node_modules/tvrender/src/tool/transformPath.ts
|
|
12257
12257
|
var CMD3 = PathProxy_default.CMD;
|
|
12258
12258
|
var points = [[], [], []];
|
|
12259
12259
|
var mathSqrt2 = Math.sqrt;
|
|
@@ -12344,7 +12344,7 @@ function transformPath(path, m2) {
|
|
|
12344
12344
|
path.increaseVersion();
|
|
12345
12345
|
}
|
|
12346
12346
|
|
|
12347
|
-
//
|
|
12347
|
+
// node_modules/tvrender/src/tool/path.ts
|
|
12348
12348
|
var mathSqrt3 = Math.sqrt;
|
|
12349
12349
|
var mathSin3 = Math.sin;
|
|
12350
12350
|
var mathCos3 = Math.cos;
|
|
@@ -12689,7 +12689,7 @@ function clonePath(sourcePath, opts) {
|
|
|
12689
12689
|
return path;
|
|
12690
12690
|
}
|
|
12691
12691
|
|
|
12692
|
-
//
|
|
12692
|
+
// node_modules/tvrender/src/graphic/shape/Circle.ts
|
|
12693
12693
|
var CircleShape = class {
|
|
12694
12694
|
constructor() {
|
|
12695
12695
|
this.cx = 0;
|
|
@@ -12712,7 +12712,7 @@ var Circle = class extends Path_default {
|
|
|
12712
12712
|
Circle.prototype.type = "circle";
|
|
12713
12713
|
var Circle_default = Circle;
|
|
12714
12714
|
|
|
12715
|
-
//
|
|
12715
|
+
// node_modules/tvrender/src/graphic/shape/Ellipse.ts
|
|
12716
12716
|
var EllipseShape = class {
|
|
12717
12717
|
constructor() {
|
|
12718
12718
|
this.cx = 0;
|
|
@@ -12747,7 +12747,7 @@ var Ellipse = class extends Path_default {
|
|
|
12747
12747
|
Ellipse.prototype.type = "ellipse";
|
|
12748
12748
|
var Ellipse_default = Ellipse;
|
|
12749
12749
|
|
|
12750
|
-
//
|
|
12750
|
+
// node_modules/tvrender/src/graphic/helper/roundSector.ts
|
|
12751
12751
|
var PI4 = Math.PI;
|
|
12752
12752
|
var PI26 = PI4 * 2;
|
|
12753
12753
|
var mathSin4 = Math.sin;
|
|
@@ -12962,7 +12962,7 @@ function buildPath2(ctx2, shape) {
|
|
|
12962
12962
|
ctx2.closePath();
|
|
12963
12963
|
}
|
|
12964
12964
|
|
|
12965
|
-
//
|
|
12965
|
+
// node_modules/tvrender/src/graphic/shape/Sector.ts
|
|
12966
12966
|
var SectorShape = class {
|
|
12967
12967
|
constructor() {
|
|
12968
12968
|
this.cx = 0;
|
|
@@ -12992,7 +12992,7 @@ var Sector = class extends Path_default {
|
|
|
12992
12992
|
Sector.prototype.type = "sector";
|
|
12993
12993
|
var Sector_default = Sector;
|
|
12994
12994
|
|
|
12995
|
-
//
|
|
12995
|
+
// node_modules/tvrender/src/graphic/shape/Ring.ts
|
|
12996
12996
|
var RingShape = class {
|
|
12997
12997
|
constructor() {
|
|
12998
12998
|
this.cx = 0;
|
|
@@ -13021,7 +13021,7 @@ var Ring = class extends Path_default {
|
|
|
13021
13021
|
Ring.prototype.type = "ring";
|
|
13022
13022
|
var Ring_default = Ring;
|
|
13023
13023
|
|
|
13024
|
-
//
|
|
13024
|
+
// node_modules/tvrender/src/graphic/helper/smoothBezier.ts
|
|
13025
13025
|
function smoothBezier(points4, smooth, isLoop, constraint) {
|
|
13026
13026
|
const cps = [];
|
|
13027
13027
|
const v = [];
|
|
@@ -13083,7 +13083,7 @@ function smoothBezier(points4, smooth, isLoop, constraint) {
|
|
|
13083
13083
|
return cps;
|
|
13084
13084
|
}
|
|
13085
13085
|
|
|
13086
|
-
//
|
|
13086
|
+
// node_modules/tvrender/src/graphic/helper/poly.ts
|
|
13087
13087
|
function buildPath3(ctx2, shape, closePath) {
|
|
13088
13088
|
const smooth = shape.smooth;
|
|
13089
13089
|
let points4 = shape.points;
|
|
@@ -13108,7 +13108,7 @@ function buildPath3(ctx2, shape, closePath) {
|
|
|
13108
13108
|
}
|
|
13109
13109
|
}
|
|
13110
13110
|
|
|
13111
|
-
//
|
|
13111
|
+
// node_modules/tvrender/src/graphic/shape/Polygon.ts
|
|
13112
13112
|
var PolygonShape = class {
|
|
13113
13113
|
constructor() {
|
|
13114
13114
|
this.points = null;
|
|
@@ -13130,7 +13130,7 @@ var Polygon = class extends Path_default {
|
|
|
13130
13130
|
Polygon.prototype.type = "polygon";
|
|
13131
13131
|
var Polygon_default = Polygon;
|
|
13132
13132
|
|
|
13133
|
-
//
|
|
13133
|
+
// node_modules/tvrender/src/graphic/shape/Polyline.ts
|
|
13134
13134
|
var PolylineShape = class {
|
|
13135
13135
|
constructor() {
|
|
13136
13136
|
this.points = null;
|
|
@@ -13159,7 +13159,7 @@ var Polyline = class extends Path_default {
|
|
|
13159
13159
|
Polyline.prototype.type = "polyline";
|
|
13160
13160
|
var Polyline_default = Polyline;
|
|
13161
13161
|
|
|
13162
|
-
//
|
|
13162
|
+
// node_modules/tvrender/src/graphic/shape/Line.ts
|
|
13163
13163
|
var subPixelOptimizeOutputShape2 = {};
|
|
13164
13164
|
var LineShape = class {
|
|
13165
13165
|
constructor() {
|
|
@@ -13222,7 +13222,7 @@ var Line = class extends Path_default {
|
|
|
13222
13222
|
Line.prototype.type = "line";
|
|
13223
13223
|
var Line_default = Line;
|
|
13224
13224
|
|
|
13225
|
-
//
|
|
13225
|
+
// node_modules/tvrender/src/graphic/shape/BezierCurve.ts
|
|
13226
13226
|
var out = [];
|
|
13227
13227
|
var BezierCurveShape = class {
|
|
13228
13228
|
constructor() {
|
|
@@ -13312,7 +13312,7 @@ var BezierCurve = class extends Path_default {
|
|
|
13312
13312
|
BezierCurve.prototype.type = "bezier-curve";
|
|
13313
13313
|
var BezierCurve_default = BezierCurve;
|
|
13314
13314
|
|
|
13315
|
-
//
|
|
13315
|
+
// node_modules/tvrender/src/graphic/shape/Arc.ts
|
|
13316
13316
|
var ArcShape = class {
|
|
13317
13317
|
constructor() {
|
|
13318
13318
|
this.cx = 0;
|
|
@@ -13352,7 +13352,7 @@ var Arc = class extends Path_default {
|
|
|
13352
13352
|
Arc.prototype.type = "arc";
|
|
13353
13353
|
var Arc_default = Arc;
|
|
13354
13354
|
|
|
13355
|
-
//
|
|
13355
|
+
// node_modules/tvrender/src/graphic/CompoundPath.ts
|
|
13356
13356
|
var CompoundPath = class extends Path_default {
|
|
13357
13357
|
constructor() {
|
|
13358
13358
|
super(...arguments);
|
|
@@ -13398,7 +13398,7 @@ var CompoundPath = class extends Path_default {
|
|
|
13398
13398
|
};
|
|
13399
13399
|
var CompoundPath_default = CompoundPath;
|
|
13400
13400
|
|
|
13401
|
-
//
|
|
13401
|
+
// node_modules/tvrender/src/graphic/Gradient.ts
|
|
13402
13402
|
var Gradient = class {
|
|
13403
13403
|
constructor(colorStops) {
|
|
13404
13404
|
this.colorStops = colorStops || [];
|
|
@@ -13412,7 +13412,7 @@ var Gradient = class {
|
|
|
13412
13412
|
};
|
|
13413
13413
|
var Gradient_default = Gradient;
|
|
13414
13414
|
|
|
13415
|
-
//
|
|
13415
|
+
// node_modules/tvrender/src/graphic/LinearGradient.ts
|
|
13416
13416
|
var LinearGradient = class extends Gradient_default {
|
|
13417
13417
|
constructor(x, y, x2, y2, colorStops, globalCoord) {
|
|
13418
13418
|
super(colorStops);
|
|
@@ -13426,7 +13426,7 @@ var LinearGradient = class extends Gradient_default {
|
|
|
13426
13426
|
};
|
|
13427
13427
|
var LinearGradient_default = LinearGradient;
|
|
13428
13428
|
|
|
13429
|
-
//
|
|
13429
|
+
// node_modules/tvrender/src/graphic/RadialGradient.ts
|
|
13430
13430
|
var RadialGradient = class extends Gradient_default {
|
|
13431
13431
|
constructor(x, y, r, colorStops, globalCoord) {
|
|
13432
13432
|
super(colorStops);
|
|
@@ -13439,7 +13439,7 @@ var RadialGradient = class extends Gradient_default {
|
|
|
13439
13439
|
};
|
|
13440
13440
|
var RadialGradient_default = RadialGradient;
|
|
13441
13441
|
|
|
13442
|
-
//
|
|
13442
|
+
// node_modules/tvrender/src/core/OrientedBoundingRect.ts
|
|
13443
13443
|
var extent = [0, 0];
|
|
13444
13444
|
var extent2 = [0, 0];
|
|
13445
13445
|
var minTv2 = new Point_default();
|
|
@@ -13556,7 +13556,7 @@ var OrientedBoundingRect = class {
|
|
|
13556
13556
|
};
|
|
13557
13557
|
var OrientedBoundingRect_default = OrientedBoundingRect;
|
|
13558
13558
|
|
|
13559
|
-
//
|
|
13559
|
+
// node_modules/tvrender/src/graphic/IncrementalDisplayable.ts
|
|
13560
13560
|
var m = [];
|
|
13561
13561
|
var IncrementalDisplayable = class extends Displayable_default {
|
|
13562
13562
|
constructor() {
|
|
@@ -16372,6 +16372,8 @@ var BUITIN_COMPONENTS_MAP = {
|
|
|
16372
16372
|
table: "TableComponent",
|
|
16373
16373
|
alarm: "AlarmComponent",
|
|
16374
16374
|
bgRect: "BgRectComponent",
|
|
16375
|
+
playbackSelect: "PlaybackComponent",
|
|
16376
|
+
playbackOrder: "PlaybackComponent",
|
|
16375
16377
|
logoComponent: "LogoComponent",
|
|
16376
16378
|
timeline: "TimelineComponent",
|
|
16377
16379
|
markPoint: "MarkPointComponent",
|
|
@@ -21996,7 +21998,7 @@ function findEventDispatcher(target, det, returnFirstMatch) {
|
|
|
21996
21998
|
return found;
|
|
21997
21999
|
}
|
|
21998
22000
|
|
|
21999
|
-
//
|
|
22001
|
+
// node_modules/tvrender/src/core/WeakMap.ts
|
|
22000
22002
|
var wmUniqueIndex = Math.round(Math.random() * 9);
|
|
22001
22003
|
var supportDefineProperty = typeof Object.defineProperty === "function";
|
|
22002
22004
|
var WeakMap = class {
|
|
@@ -23012,7 +23014,7 @@ function normalizeSymbolOffset(symbolOffset, symbolSize) {
|
|
|
23012
23014
|
];
|
|
23013
23015
|
}
|
|
23014
23016
|
|
|
23015
|
-
//
|
|
23017
|
+
// node_modules/tvrender/src/canvas/helper.ts
|
|
23016
23018
|
function isSafeNum(num) {
|
|
23017
23019
|
return isFinite(num);
|
|
23018
23020
|
}
|
|
@@ -23089,7 +23091,7 @@ function getSize(root, whIdx, opts) {
|
|
|
23089
23091
|
return (root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh])) - (parseInt10(stl[plt]) || 0) - (parseInt10(stl[prb]) || 0) | 0;
|
|
23090
23092
|
}
|
|
23091
23093
|
|
|
23092
|
-
//
|
|
23094
|
+
// node_modules/tvrender/src/canvas/dashStyle.ts
|
|
23093
23095
|
function normalizeLineDash(lineType, lineWidth) {
|
|
23094
23096
|
if (!lineType || lineType === "solid" || !(lineWidth > 0)) {
|
|
23095
23097
|
return null;
|
|
@@ -23112,7 +23114,7 @@ function getLineDash(el) {
|
|
|
23112
23114
|
return [lineDash, lineDashOffset];
|
|
23113
23115
|
}
|
|
23114
23116
|
|
|
23115
|
-
//
|
|
23117
|
+
// node_modules/tvrender/src/canvas/graphic.ts
|
|
23116
23118
|
var pathProxyForDraw = new PathProxy_default(true);
|
|
23117
23119
|
function styleHasStroke(style) {
|
|
23118
23120
|
const stroke = style.stroke;
|
|
@@ -24727,7 +24729,9 @@ var ECharts = class extends Eventful_default {
|
|
|
24727
24729
|
"dataappend",
|
|
24728
24730
|
"alarmchanged",
|
|
24729
24731
|
"alarmdelete",
|
|
24730
|
-
"selectidchanged"
|
|
24732
|
+
"selectidchanged",
|
|
24733
|
+
"playbackselected",
|
|
24734
|
+
"snapshotzoom"
|
|
24731
24735
|
], (eventType) => {
|
|
24732
24736
|
this._messageCenter.on(eventType, function(event) {
|
|
24733
24737
|
this.trigger(eventType, event);
|
|
@@ -24861,19 +24865,15 @@ var ECharts = class extends Eventful_default {
|
|
|
24861
24865
|
const [startIndex, endIndex] = getIndexRange(categories, fromTime, toTime);
|
|
24862
24866
|
const axisLength = xAxisModal.axis.getExtent()[1];
|
|
24863
24867
|
const width = axisLength - offsetRightDistance - offsetLeftDistance;
|
|
24864
|
-
let barCount = endIndex - startIndex;
|
|
24868
|
+
let barCount = Math.max(endIndex - startIndex, 2);
|
|
24865
24869
|
let barSpace = Math.max(1, width / barCount);
|
|
24866
24870
|
let lastBarRightSideDiffBarCount = endIndex - dataCount + 0.5 + offsetRightDistance / barSpace;
|
|
24867
24871
|
if (endIndex < 0) {
|
|
24868
24872
|
barCount = dataCount;
|
|
24869
24873
|
barSpace = Math.max(1, axisLength / barCount);
|
|
24870
24874
|
lastBarRightSideDiffBarCount = endIndex - dataCount + 0.5;
|
|
24871
|
-
} else if (barCount < 2) {
|
|
24872
|
-
barCount = 2;
|
|
24873
|
-
barSpace = Math.max(1, axisLength / barCount);
|
|
24874
|
-
lastBarRightSideDiffBarCount = endIndex - dataCount + 0.5;
|
|
24875
24875
|
}
|
|
24876
|
-
const maxRightOffsetBarCount =
|
|
24876
|
+
const maxRightOffsetBarCount = axisLength / barSpace - Math.min(2, dataCount);
|
|
24877
24877
|
if (lastBarRightSideDiffBarCount > maxRightOffsetBarCount) {
|
|
24878
24878
|
lastBarRightSideDiffBarCount = maxRightOffsetBarCount;
|
|
24879
24879
|
}
|
|
@@ -30062,7 +30062,7 @@ function createTextStyle2(textStyleModel, opts) {
|
|
|
30062
30062
|
return createTextStyle(textStyleModel, null, null, opts.state !== "normal");
|
|
30063
30063
|
}
|
|
30064
30064
|
|
|
30065
|
-
//
|
|
30065
|
+
// node_modules/tvrender/src/contain/polygon.ts
|
|
30066
30066
|
var EPSILON5 = 1e-8;
|
|
30067
30067
|
function isAroundEqual2(a, b) {
|
|
30068
30068
|
return Math.abs(a - b) < EPSILON5;
|
|
@@ -32072,7 +32072,7 @@ function installLabelLayout(registers) {
|
|
|
32072
32072
|
});
|
|
32073
32073
|
}
|
|
32074
32074
|
|
|
32075
|
-
//
|
|
32075
|
+
// node_modules/tvrender/src/svg/SVGPathRebuilder.ts
|
|
32076
32076
|
var mathSin5 = Math.sin;
|
|
32077
32077
|
var mathCos5 = Math.cos;
|
|
32078
32078
|
var PI6 = Math.PI;
|
|
@@ -32169,7 +32169,7 @@ var SVGPathRebuilder = class {
|
|
|
32169
32169
|
};
|
|
32170
32170
|
var SVGPathRebuilder_default = SVGPathRebuilder;
|
|
32171
32171
|
|
|
32172
|
-
//
|
|
32172
|
+
// node_modules/tvrender/src/svg/mapStyleToAttrs.ts
|
|
32173
32173
|
var NONE = "none";
|
|
32174
32174
|
var mathRound2 = Math.round;
|
|
32175
32175
|
function pathHasFill(style) {
|
|
@@ -32238,7 +32238,7 @@ function mapStyleToAttrs(updateAttr2, style, el, forceUpdate) {
|
|
|
32238
32238
|
}
|
|
32239
32239
|
}
|
|
32240
32240
|
|
|
32241
|
-
//
|
|
32241
|
+
// node_modules/tvrender/src/svg/core.ts
|
|
32242
32242
|
var SVGNS = "http://www.w3.org/2000/svg";
|
|
32243
32243
|
var XLINKNS = "http://www.w3.org/1999/xlink";
|
|
32244
32244
|
var XMLNS = "http://www.w3.org/2000/xmlns/";
|
|
@@ -32340,13 +32340,13 @@ function createSVGVNode(width, height, children, useViewBox) {
|
|
|
32340
32340
|
}, children);
|
|
32341
32341
|
}
|
|
32342
32342
|
|
|
32343
|
-
//
|
|
32343
|
+
// node_modules/tvrender/src/svg/cssClassId.ts
|
|
32344
32344
|
var cssClassIdx = 0;
|
|
32345
32345
|
function getClassId() {
|
|
32346
32346
|
return cssClassIdx++;
|
|
32347
32347
|
}
|
|
32348
32348
|
|
|
32349
|
-
//
|
|
32349
|
+
// node_modules/tvrender/src/svg/cssAnimation.ts
|
|
32350
32350
|
var EASING_MAP = {
|
|
32351
32351
|
cubicIn: "0.32,0,0.67,0",
|
|
32352
32352
|
cubicOut: "0.33,1,0.68,1",
|
|
@@ -32607,7 +32607,7 @@ function createCSSAnimation(el, attrs, scope, onlyShape) {
|
|
|
32607
32607
|
}
|
|
32608
32608
|
}
|
|
32609
32609
|
|
|
32610
|
-
//
|
|
32610
|
+
// node_modules/tvrender/src/svg/cssEmphasis.ts
|
|
32611
32611
|
function createCSSEmphasis(el, attrs, scope) {
|
|
32612
32612
|
if (!el.ignore) {
|
|
32613
32613
|
if (el.isSilent()) {
|
|
@@ -32658,7 +32658,7 @@ function setClassAttribute(style, attrs, scope, withHover) {
|
|
|
32658
32658
|
attrs.class = attrs.class ? attrs.class + " " + className : className;
|
|
32659
32659
|
}
|
|
32660
32660
|
|
|
32661
|
-
//
|
|
32661
|
+
// node_modules/tvrender/src/svg/graphic.ts
|
|
32662
32662
|
var round5 = Math.round;
|
|
32663
32663
|
function isImageLike2(val) {
|
|
32664
32664
|
return val && isString(val.src);
|
|
@@ -33092,7 +33092,7 @@ function setClipPath(clipPath, attrs, scope) {
|
|
|
33092
33092
|
attrs["clip-path"] = getIdURL(clipPathId);
|
|
33093
33093
|
}
|
|
33094
33094
|
|
|
33095
|
-
//
|
|
33095
|
+
// node_modules/tvrender/src/svg/domapi.ts
|
|
33096
33096
|
function createTextNode(text) {
|
|
33097
33097
|
return document.createTextNode(text);
|
|
33098
33098
|
}
|
|
@@ -33115,7 +33115,7 @@ function setTextContent(node, text) {
|
|
|
33115
33115
|
node.textContent = text;
|
|
33116
33116
|
}
|
|
33117
33117
|
|
|
33118
|
-
//
|
|
33118
|
+
// node_modules/tvrender/src/svg/patch.ts
|
|
33119
33119
|
var colonChar = 58;
|
|
33120
33120
|
var xChar = 120;
|
|
33121
33121
|
var emptyNode = createVNode("", "");
|
|
@@ -33341,7 +33341,7 @@ function patch(oldVnode, vnode) {
|
|
|
33341
33341
|
return vnode;
|
|
33342
33342
|
}
|
|
33343
33343
|
|
|
33344
|
-
//
|
|
33344
|
+
// node_modules/tvrender/src/svg/Painter.ts
|
|
33345
33345
|
var svgId = 0;
|
|
33346
33346
|
var SVGPainter = class {
|
|
33347
33347
|
constructor(root, storage2, opts) {
|
|
@@ -33584,7 +33584,7 @@ function install(registers) {
|
|
|
33584
33584
|
registers.registerPainter("svg", Painter_default);
|
|
33585
33585
|
}
|
|
33586
33586
|
|
|
33587
|
-
//
|
|
33587
|
+
// node_modules/tvrender/src/canvas/Layer.ts
|
|
33588
33588
|
function createDom(id, painter, horizontalPixelRatio, verticalPixelRatio) {
|
|
33589
33589
|
const newDom = platformApi.createCanvas();
|
|
33590
33590
|
const width = painter.getWidth();
|
|
@@ -33883,7 +33883,7 @@ var Layer = class extends Eventful_default {
|
|
|
33883
33883
|
};
|
|
33884
33884
|
var Layer_default = Layer;
|
|
33885
33885
|
|
|
33886
|
-
//
|
|
33886
|
+
// node_modules/tvrender/src/canvas/Painter.ts
|
|
33887
33887
|
var HOVER_LAYER_ZLEVEL = 1e5;
|
|
33888
33888
|
var CANVAS_ZLEVEL = 314159;
|
|
33889
33889
|
var EL_AFTER_INCREMENTAL_INC = 0.01;
|
|
@@ -42115,7 +42115,7 @@ function onIrrelevantElement(e2, api2, targetCoordSysModel) {
|
|
|
42115
42115
|
return model && model !== targetCoordSysModel && !IRRELEVANT_EXCLUDES.hasOwnProperty(model.mainType) && (coordSys && coordSys.model !== targetCoordSysModel);
|
|
42116
42116
|
}
|
|
42117
42117
|
|
|
42118
|
-
//
|
|
42118
|
+
// node_modules/tvrender/src/tool/parseXML.ts
|
|
42119
42119
|
function parseXML(svg) {
|
|
42120
42120
|
if (isString(svg)) {
|
|
42121
42121
|
const parser = new DOMParser();
|
|
@@ -42131,7 +42131,7 @@ function parseXML(svg) {
|
|
|
42131
42131
|
return svgNode;
|
|
42132
42132
|
}
|
|
42133
42133
|
|
|
42134
|
-
//
|
|
42134
|
+
// node_modules/tvrender/src/tool/parseSVG.ts
|
|
42135
42135
|
var nodeParsers;
|
|
42136
42136
|
var INHERITABLE_STYLE_ATTRIBUTES_MAP = {
|
|
42137
42137
|
fill: "fill",
|
|
@@ -56804,7 +56804,7 @@ var linesPlotLayout = {
|
|
|
56804
56804
|
if (isLarge && isGradient3 && formatColor && rgbas) {
|
|
56805
56805
|
if (prevIndex > -1 && i - prevIndex <= indexDistance) {
|
|
56806
56806
|
const lastPointInfo = pointInfos[prevIndex];
|
|
56807
|
-
const isNearlyColor = isColorSimilarManhattan(lastPointInfo.rgbas, rgbas);
|
|
56807
|
+
const isNearlyColor = lastPointInfo ? isColorSimilarManhattan(lastPointInfo.rgbas, rgbas) : false;
|
|
56808
56808
|
if (isNearlyColor) {
|
|
56809
56809
|
formatColor = lastPointInfo.color;
|
|
56810
56810
|
} else {
|
|
@@ -60710,7 +60710,7 @@ var FillsView_default = FillsView;
|
|
|
60710
60710
|
function getKey(itemModel) {
|
|
60711
60711
|
let key = itemModel.option?.color;
|
|
60712
60712
|
if (itemModel.get("topValue", true) !== void 0) {
|
|
60713
|
-
key = `${itemModel.get("topColor", true) || "rgba(
|
|
60713
|
+
key = `${itemModel.get("topColor", true) || "rgba(0,0,0,0)"}:${itemModel.get("topValue", true)}:${itemModel.get("bottomColor", true) || "rgba(0,0,0,0)"}:${itemModel.get("bottomValue", true)}`;
|
|
60714
60714
|
}
|
|
60715
60715
|
return key || "transparent";
|
|
60716
60716
|
}
|
|
@@ -65428,6 +65428,7 @@ var AxisPointerView2 = class extends Component_default2 {
|
|
|
65428
65428
|
const yAxisModel = ecModel.getComponent("yAxis");
|
|
65429
65429
|
const globalTooltipModel = ecModel.getComponent("tooltip");
|
|
65430
65430
|
const triggerOn = globalAxisPointerModel.get("triggerOn") || (globalTooltipModel && globalTooltipModel.get("triggerOn") || "mousemove|click|mousewheel");
|
|
65431
|
+
const playbackSelectModel = ecModel.getComponent("playbackSelect");
|
|
65431
65432
|
const payload = ecModel.getUpdatePayload();
|
|
65432
65433
|
const isDataZoom = payload?.type === "dataZoom";
|
|
65433
65434
|
const handleAxisPointer = (currTrigger, e2, dispatchAction3) => {
|
|
@@ -65438,7 +65439,7 @@ var AxisPointerView2 = class extends Component_default2 {
|
|
|
65438
65439
|
this.xLock = false;
|
|
65439
65440
|
}
|
|
65440
65441
|
const updatePointDisable = globalTooltipModel && globalTooltipModel.option.updatePointDisable;
|
|
65441
|
-
if (updatePointDisable) {
|
|
65442
|
+
if (updatePointDisable || playbackSelectModel.option.show) {
|
|
65442
65443
|
return;
|
|
65443
65444
|
}
|
|
65444
65445
|
if (triggerOn !== "none" && (currTrigger === "leave" || triggerOn.indexOf(currTrigger) >= 0)) {
|
|
@@ -69103,7 +69104,8 @@ var AxisProxy = class {
|
|
|
69103
69104
|
const width = axisModel.axis.getExtent()[1];
|
|
69104
69105
|
const dataCount = scale4.getAxisDataLen();
|
|
69105
69106
|
const count2 = this._valueWindow ? this._valueWindow[1] - this._valueWindow[0] - 1 : showBarCount;
|
|
69106
|
-
|
|
69107
|
+
const isComputedByCount = showBarCount && (isResize || !this._valueWindow);
|
|
69108
|
+
if (isComputedByCount) {
|
|
69107
69109
|
barSpace = Math.max(width / count2, 1);
|
|
69108
69110
|
}
|
|
69109
69111
|
const barCount = width / barSpace;
|
|
@@ -69128,6 +69130,13 @@ var AxisProxy = class {
|
|
|
69128
69130
|
rawExtentInfo.setDeterminedMinMax("min", from);
|
|
69129
69131
|
rawExtentInfo.freeze();
|
|
69130
69132
|
dataZoomModel.option.lastBarRightSideDiffBarCount = lastBarRightSideDiffBarCount;
|
|
69133
|
+
if (isComputedByCount) {
|
|
69134
|
+
api2.trigger("snapshotzoom", {
|
|
69135
|
+
lastBarRightSideDiffBarCount,
|
|
69136
|
+
barSpace
|
|
69137
|
+
});
|
|
69138
|
+
return;
|
|
69139
|
+
}
|
|
69131
69140
|
if (from < 0 && !dataZoomModel.isDragging) {
|
|
69132
69141
|
api2.trigger("loadmore", [from, to]);
|
|
69133
69142
|
}
|
|
@@ -73624,6 +73633,8 @@ var AlarmView2 = class extends Component_default2 {
|
|
|
73624
73633
|
zr.off("mouseup", this._onMouseUp);
|
|
73625
73634
|
zr.off("click", this._onMouseUp);
|
|
73626
73635
|
zr.off("mousedown", this._onMouseDown);
|
|
73636
|
+
this.ecModel = null;
|
|
73637
|
+
this.api = null;
|
|
73627
73638
|
this.group.removeAll();
|
|
73628
73639
|
}
|
|
73629
73640
|
_reCreate(id) {
|
|
@@ -73892,6 +73903,407 @@ function install57(registers) {
|
|
|
73892
73903
|
registers.registerComponentView(BgRectView);
|
|
73893
73904
|
}
|
|
73894
73905
|
|
|
73906
|
+
// src/component/playback/PlaybackSelectModel.ts
|
|
73907
|
+
var PlaybackSelectModel2 = class extends Component_default {
|
|
73908
|
+
constructor() {
|
|
73909
|
+
super(...arguments);
|
|
73910
|
+
this.type = PlaybackSelectModel2.type;
|
|
73911
|
+
this.layoutMode = {type: "box", ignoreSize: true};
|
|
73912
|
+
}
|
|
73913
|
+
setPlaybackSelect(payload) {
|
|
73914
|
+
this.option.startIndex = payload.startIndex;
|
|
73915
|
+
this.option.yData = payload.uid === this.uid ? payload.yData : void 0;
|
|
73916
|
+
}
|
|
73917
|
+
};
|
|
73918
|
+
var PlaybackSelectModel = PlaybackSelectModel2;
|
|
73919
|
+
PlaybackSelectModel.type = "playbackSelect";
|
|
73920
|
+
PlaybackSelectModel.defaultOption = {
|
|
73921
|
+
zlevel: 1,
|
|
73922
|
+
z: 2,
|
|
73923
|
+
show: true,
|
|
73924
|
+
color: "rgb(41,98,255)",
|
|
73925
|
+
bgColor: "rgb(255,255,255,0.5)",
|
|
73926
|
+
startIndex: 10,
|
|
73927
|
+
icon: "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAD/UlEQVRYhb1ZjXWbMBCWO0BNJ7A7QRiBDcoIjMAIZANvUHsDugHZAG/ACHiBXN+HOeU4nQQkfb337gUL6fTp/kUcEW3hgohaetKViM4b1zFnYv1ARPU8Zs1dcDBg8Pn9/f1BIZU7AHbBaqJxC8hgwOCGJdZ1TX3f79qAiCpe0DTNJENQbczfDXA6fdd15JyjPM/lBq0xX/Mg14PFIS/G/AV/cxup7/tpIv6+vr7yol/OuTIhoXHOnaaHpvGDbdvyYx6s0GShtjR4vV69BpQWYqbO5nfUtu1iLWTN1BnrPueDACQ32WDqC788n8+LtTA3u6WxbjfAkqVlWbbYCE4vSEa1R3+5XBZrnkbzVBn77QaYeWlVFWwWMfWkonEcg0OVZSkBrubTYCDCrWXmiKmr1IGE/w2RvT4F0B+7KIpgU2XqUacVZmgTWt3qf3sAmvksYuqJoNmVg2wql8FAgr3pLC1KUwOIfo9IFtq7Jvb5NECvxWEYAudnDVl+CkYuBM11fXOzEQyscOFVoBK39DM9trf+fgWgkwnYynEp02+pHP8CoBO9nZlKIlEbK4lJTr5MMDbyYWuBBDgV2XlCXpQ3dzOKRufcwEPDMAQTsixzLy8v/PMNjVAwaQvFkK+w93orpUTy3p4O/Es+6L0+lrQjCfy/+GDN9xOrEUDEatBGFO8CGQxEOJcXH4DTpQxgkcAtsytT93M+je21C2Am8x6bVTegqgmdSM9RIFmbq0CDAeVrA0uDdqx0Etk8MDX3gqxlBTRa+oKBmSt5FwYAq4RxEyColRFuzQfjoBLovJfZXQcDMkrha1bnEqmzHKV+fexQcq2oNGSBtHxuZJNavpYwr+yQJ1o7HEe5ApmnAPoaq6MUm1kawbiMDalB64CQoYErkF0MoHcmqD5mBquDEVTIlkzPE/eRyUIIGumX6qABQH/vYO2pboT0+zWAUuNK0x5kRI4vi7JZmD5DPB4P/5mjLEt3PB75/Q/n3B0PVVUtmgJFnReYf3zZqOuaH//MstzpdHJFUfg59/t9gQUUdDMCkOu6Tr6CfX468Z2GDyFo0bFI8OM48iMQXfiH7IRE9/NBwsTeBtKEukLA5JFmQH7+mPxCXgtUTaaV94Xlg/4Lgg4EODAuPQgY6VdKqMxhPhrkYfEMUJClqxL2FJRZAJ2su2s5THXMo5JzZi1ajcVKqmpiaYa1OLBgmQYS4CjSjPqskAKp0liv5Rye6WpBsNvb4XD4zpGFD44cGIg6RLEIphsCO3DuJ2H8t594u01yEDCIcMgSgfGYA2h5NTBOziayPnx7mgv8ljsuNBkm0yUhwMxGdk04HF8DhRngq3v+FYHNcRjIYrCQA2DxuwqR+wu+HnkxU9Zp7AAAAABJRU5ErkJggg=="
|
|
73928
|
+
};
|
|
73929
|
+
|
|
73930
|
+
// src/component/playback/PlaybackSelectView.ts
|
|
73931
|
+
var iconWidth = 20;
|
|
73932
|
+
var iconHeight = 20;
|
|
73933
|
+
var PlaybackSelectView2 = class extends Component_default2 {
|
|
73934
|
+
constructor() {
|
|
73935
|
+
super(...arguments);
|
|
73936
|
+
this.type = PlaybackSelectView2.type;
|
|
73937
|
+
this.isMountEvent = false;
|
|
73938
|
+
}
|
|
73939
|
+
init(ecModel, api2) {
|
|
73940
|
+
this.ecModel = ecModel;
|
|
73941
|
+
this.api = api2;
|
|
73942
|
+
}
|
|
73943
|
+
render(playbackSelectModel, ecModel, api2) {
|
|
73944
|
+
if (!playbackSelectModel.get("show")) {
|
|
73945
|
+
this.group.removeAll();
|
|
73946
|
+
this.unmountEvent();
|
|
73947
|
+
return;
|
|
73948
|
+
}
|
|
73949
|
+
if (!this.playbackSelectModel) {
|
|
73950
|
+
this.playbackSelectModel = playbackSelectModel;
|
|
73951
|
+
}
|
|
73952
|
+
this.mountEvent();
|
|
73953
|
+
const group = this.group;
|
|
73954
|
+
const grid = ecModel.getComponent("grid", 0);
|
|
73955
|
+
const rect = grid.coordinateSystem.getRect();
|
|
73956
|
+
const startIndex = playbackSelectModel.get("startIndex");
|
|
73957
|
+
if (startIndex === null) {
|
|
73958
|
+
this.group.removeAll();
|
|
73959
|
+
return;
|
|
73960
|
+
}
|
|
73961
|
+
const bgColor = playbackSelectModel.get("bgColor");
|
|
73962
|
+
const color2 = playbackSelectModel.get("color");
|
|
73963
|
+
const icon = playbackSelectModel.get("icon");
|
|
73964
|
+
const yData = playbackSelectModel.get("yData");
|
|
73965
|
+
const xAxis = ecModel.getComponent("xAxis", 0);
|
|
73966
|
+
const xAxis2D = xAxis.axis;
|
|
73967
|
+
const x = Math.floor(xAxis2D.toGlobalCoord(xAxis2D.dataToCoord(startIndex))) + 0.5;
|
|
73968
|
+
const lineStyle = {
|
|
73969
|
+
lineWidth: 2,
|
|
73970
|
+
stroke: color2
|
|
73971
|
+
};
|
|
73972
|
+
const lineShape = {
|
|
73973
|
+
x1: x,
|
|
73974
|
+
y1: rect.y,
|
|
73975
|
+
x2: x,
|
|
73976
|
+
y2: rect.height
|
|
73977
|
+
};
|
|
73978
|
+
if (!this.lineEl) {
|
|
73979
|
+
const lineEl = new Line_default({
|
|
73980
|
+
shape: lineShape,
|
|
73981
|
+
style: lineStyle
|
|
73982
|
+
});
|
|
73983
|
+
this.lineEl = lineEl;
|
|
73984
|
+
group.add(lineEl);
|
|
73985
|
+
} else {
|
|
73986
|
+
this.lineEl.attr({
|
|
73987
|
+
shape: lineShape,
|
|
73988
|
+
style: lineStyle
|
|
73989
|
+
});
|
|
73990
|
+
}
|
|
73991
|
+
const rectShape = {
|
|
73992
|
+
x: Math.max(rect.x, x),
|
|
73993
|
+
y: rect.y,
|
|
73994
|
+
height: rect.height,
|
|
73995
|
+
width: rect.width + rect.x - x
|
|
73996
|
+
};
|
|
73997
|
+
const rectStyle = {
|
|
73998
|
+
fill: bgColor
|
|
73999
|
+
};
|
|
74000
|
+
if (!this.rectEl) {
|
|
74001
|
+
const rectEl = new Rect_default({
|
|
74002
|
+
shape: rectShape,
|
|
74003
|
+
style: rectStyle
|
|
74004
|
+
});
|
|
74005
|
+
group.add(rectEl);
|
|
74006
|
+
this.rectEl = rectEl;
|
|
74007
|
+
} else {
|
|
74008
|
+
this.rectEl.attr({
|
|
74009
|
+
shape: rectShape,
|
|
74010
|
+
style: rectStyle
|
|
74011
|
+
});
|
|
74012
|
+
}
|
|
74013
|
+
if (yData) {
|
|
74014
|
+
if (!this.imgEl) {
|
|
74015
|
+
this.imgEl = createSymbol(icon, x - iconWidth / 2, yData, iconWidth, iconHeight);
|
|
74016
|
+
group.add(this.imgEl);
|
|
74017
|
+
} else {
|
|
74018
|
+
this.imgEl.attr({
|
|
74019
|
+
style: {
|
|
74020
|
+
x: x - iconWidth / 2,
|
|
74021
|
+
y: yData
|
|
74022
|
+
}
|
|
74023
|
+
});
|
|
74024
|
+
}
|
|
74025
|
+
} else if (this.imgEl) {
|
|
74026
|
+
group.remove(this.imgEl);
|
|
74027
|
+
this.imgEl = null;
|
|
74028
|
+
}
|
|
74029
|
+
}
|
|
74030
|
+
_onMouseMove(e2) {
|
|
74031
|
+
const offsetX = e2.offsetX;
|
|
74032
|
+
const offsetY = e2.offsetY;
|
|
74033
|
+
const ecModel = this.ecModel;
|
|
74034
|
+
const xAxis = ecModel.getComponent("xAxis", 0);
|
|
74035
|
+
const xAxis2D = xAxis.axis;
|
|
74036
|
+
const index = xAxis2D.coordToData(xAxis2D.toLocalCoord(offsetX));
|
|
74037
|
+
const list = xAxis2D.scale.getOrdinalMeta().getCategories();
|
|
74038
|
+
const selectedIndex = Math.max(Math.min(index, list.length - 1), 0);
|
|
74039
|
+
this.api.dispatchAction({
|
|
74040
|
+
type: "playbackSelect",
|
|
74041
|
+
playbackSelect: {
|
|
74042
|
+
startIndex: selectedIndex,
|
|
74043
|
+
uid: this.playbackSelectModel.uid,
|
|
74044
|
+
yData: offsetY
|
|
74045
|
+
}
|
|
74046
|
+
});
|
|
74047
|
+
}
|
|
74048
|
+
_onClick(e2) {
|
|
74049
|
+
const offsetX = e2.offsetX;
|
|
74050
|
+
const ecModel = this.ecModel;
|
|
74051
|
+
const xAxis = ecModel.getComponent("xAxis", 0);
|
|
74052
|
+
const xAxis2D = xAxis.axis;
|
|
74053
|
+
const index = xAxis2D.coordToData(xAxis2D.toLocalCoord(offsetX));
|
|
74054
|
+
const list = xAxis2D.scale.getOrdinalMeta().getCategories();
|
|
74055
|
+
const selectedIndex = Math.max(Math.min(index, list.length - 1), 0);
|
|
74056
|
+
this.api.trigger("playbackselected", {
|
|
74057
|
+
startIndex: selectedIndex
|
|
74058
|
+
});
|
|
74059
|
+
}
|
|
74060
|
+
_globalout() {
|
|
74061
|
+
this.api.dispatchAction({
|
|
74062
|
+
type: "playbackSelect",
|
|
74063
|
+
playbackSelect: {
|
|
74064
|
+
startIndex: null
|
|
74065
|
+
}
|
|
74066
|
+
});
|
|
74067
|
+
}
|
|
74068
|
+
mountEvent() {
|
|
74069
|
+
if (this.isMountEvent) {
|
|
74070
|
+
return;
|
|
74071
|
+
}
|
|
74072
|
+
const zr = this.api.getZr();
|
|
74073
|
+
zr.on("mousemove", this._onMouseMove, this);
|
|
74074
|
+
zr.on("click", this._onClick, this);
|
|
74075
|
+
zr.on("globalout", this._globalout, this);
|
|
74076
|
+
}
|
|
74077
|
+
unmountEvent() {
|
|
74078
|
+
if (!this.isMountEvent) {
|
|
74079
|
+
return;
|
|
74080
|
+
}
|
|
74081
|
+
const zr = this.api.getZr();
|
|
74082
|
+
zr.off("mousemove", this._onMouseMove);
|
|
74083
|
+
zr.off("click", this._onClick);
|
|
74084
|
+
zr.off("globalout", this._globalout);
|
|
74085
|
+
}
|
|
74086
|
+
dispose(ecModel, api2) {
|
|
74087
|
+
if (this.rectEl) {
|
|
74088
|
+
this.group.removeAll();
|
|
74089
|
+
this.lineEl = null;
|
|
74090
|
+
this.rectEl = null;
|
|
74091
|
+
this.imgEl = null;
|
|
74092
|
+
}
|
|
74093
|
+
this.unmountEvent();
|
|
74094
|
+
}
|
|
74095
|
+
};
|
|
74096
|
+
var PlaybackSelectView = PlaybackSelectView2;
|
|
74097
|
+
PlaybackSelectView.type = "playbackSelect";
|
|
74098
|
+
|
|
74099
|
+
// src/component/playback/PlaybackOrderModel.ts
|
|
74100
|
+
var PlaybackOrderModel2 = class extends Component_default {
|
|
74101
|
+
constructor() {
|
|
74102
|
+
super(...arguments);
|
|
74103
|
+
this.type = PlaybackOrderModel2.type;
|
|
74104
|
+
this.layoutMode = {type: "box", ignoreSize: true};
|
|
74105
|
+
}
|
|
74106
|
+
};
|
|
74107
|
+
var PlaybackOrderModel = PlaybackOrderModel2;
|
|
74108
|
+
PlaybackOrderModel.type = "playbackOrder";
|
|
74109
|
+
PlaybackOrderModel.defaultOption = {
|
|
74110
|
+
zlevel: 1,
|
|
74111
|
+
z: 2,
|
|
74112
|
+
order: {
|
|
74113
|
+
price: 20,
|
|
74114
|
+
direction: "long",
|
|
74115
|
+
size: 1e4,
|
|
74116
|
+
precision: 2,
|
|
74117
|
+
profit: "201.01 USD"
|
|
74118
|
+
}
|
|
74119
|
+
};
|
|
74120
|
+
|
|
74121
|
+
// src/component/playback/PlaybackOrderView.ts
|
|
74122
|
+
var labelRectWidth = 38;
|
|
74123
|
+
var orderTpLMargin = 11;
|
|
74124
|
+
var longColor = "rgba(41, 107, 239, 1)";
|
|
74125
|
+
var shortColor = "rgba(242, 54, 70, 1)";
|
|
74126
|
+
var shopProfit = "rgba(4, 154, 129, 1)";
|
|
74127
|
+
var shopLoss = "rgba(255, 152, 0, 1)";
|
|
74128
|
+
var closePIcon = "path://M428.8 192c-12.8-6.4-32 0-38.4 6.4L179.2 409.6c-12.8 12.8-12.8 32 0 44.8 6.4 6.4 12.8 6.4 25.6 6.4s19.2 0 25.6-6.4L384 294.4v505.6c0 19.2 12.8 32 32 32s32-12.8 32-32v-576c0-12.8-6.4-25.6-19.2-32zM838.4 569.6c-12.8-12.8-32-12.8-44.8 0L640 723.2V224c0-19.2-12.8-32-32-32s-32 12.8-32 32v582.4c0 6.4 6.4 12.8 6.4 12.8 6.4 12.8 19.2 12.8 25.6 12.8s19.2 0 25.6-6.4l211.2-211.2c6.4-12.8 6.4-32-6.4-44.8z";
|
|
74129
|
+
var PlaybackOrderView2 = class extends Component_default2 {
|
|
74130
|
+
constructor() {
|
|
74131
|
+
super(...arguments);
|
|
74132
|
+
this.type = PlaybackOrderView2.type;
|
|
74133
|
+
}
|
|
74134
|
+
init(ecModel, api2) {
|
|
74135
|
+
this.ecModel = ecModel;
|
|
74136
|
+
this.api = api2;
|
|
74137
|
+
}
|
|
74138
|
+
render(playbackOrderModel, ecModel, api2) {
|
|
74139
|
+
if (!playbackOrderModel.get("order")) {
|
|
74140
|
+
return;
|
|
74141
|
+
}
|
|
74142
|
+
if (!this.playbackOrderModel) {
|
|
74143
|
+
this.playbackOrderModel = playbackOrderModel;
|
|
74144
|
+
}
|
|
74145
|
+
this.renderOrder();
|
|
74146
|
+
}
|
|
74147
|
+
renderOrder() {
|
|
74148
|
+
const ecModel = this.ecModel;
|
|
74149
|
+
const playbackOrderModel = this.playbackOrderModel;
|
|
74150
|
+
const group = this.group;
|
|
74151
|
+
const grid = ecModel.getComponent("grid", 0);
|
|
74152
|
+
const order = playbackOrderModel.get("order");
|
|
74153
|
+
const rect = grid.coordinateSystem.getRect();
|
|
74154
|
+
const yAxis = ecModel.getComponent("yAxis", 0);
|
|
74155
|
+
const yAxis2D = yAxis.axis;
|
|
74156
|
+
const y = Math.floor(yAxis2D.toGlobalCoord(yAxis2D.dataToCoord(order.price)));
|
|
74157
|
+
let backgroundColor2 = ecModel.get("backgroundColor") || "#fff";
|
|
74158
|
+
if (backgroundColor2 && isGradientObject(backgroundColor2) && !backgroundColor2.global && backgroundColor2.type === "linear") {
|
|
74159
|
+
backgroundColor2 = {
|
|
74160
|
+
...backgroundColor2,
|
|
74161
|
+
global: true,
|
|
74162
|
+
y2: rect.height
|
|
74163
|
+
};
|
|
74164
|
+
}
|
|
74165
|
+
this.backgroundColor = backgroundColor2;
|
|
74166
|
+
if (!this.orderGroup) {
|
|
74167
|
+
this.orderGroup = new Group_default();
|
|
74168
|
+
group.add(this.orderGroup);
|
|
74169
|
+
}
|
|
74170
|
+
this.orderGroup.y = y;
|
|
74171
|
+
this.rect = rect;
|
|
74172
|
+
this.renderOrderGroup();
|
|
74173
|
+
}
|
|
74174
|
+
renderOrderGroup() {
|
|
74175
|
+
const orderGroup = this.orderGroup;
|
|
74176
|
+
const rect = this.rect;
|
|
74177
|
+
const playbackOrderModel = this.playbackOrderModel;
|
|
74178
|
+
const order = playbackOrderModel.get("order");
|
|
74179
|
+
const color2 = order.direction === "long" ? longColor : shortColor;
|
|
74180
|
+
if (!this.orderGroupEls) {
|
|
74181
|
+
const orderLineEl2 = new Line_default();
|
|
74182
|
+
const orderClosePositionEl2 = new Group_default();
|
|
74183
|
+
const closePositionRect = new Rect_default({
|
|
74184
|
+
shape: {
|
|
74185
|
+
y: -9,
|
|
74186
|
+
width: labelRectWidth,
|
|
74187
|
+
height: 18,
|
|
74188
|
+
r: 10
|
|
74189
|
+
},
|
|
74190
|
+
style: {
|
|
74191
|
+
fill: this.backgroundColor,
|
|
74192
|
+
stroke: color2
|
|
74193
|
+
}
|
|
74194
|
+
});
|
|
74195
|
+
const closePositionIcon = createSymbol(closePIcon, 13, -6, 12, 12, color2);
|
|
74196
|
+
orderClosePositionEl2.add(closePositionRect);
|
|
74197
|
+
orderClosePositionEl2.add(closePositionIcon);
|
|
74198
|
+
const orderTpEl2 = new Group_default();
|
|
74199
|
+
const orderTpRect = new Rect_default();
|
|
74200
|
+
const orderTpText = new Text_default();
|
|
74201
|
+
orderTpEl2.add(orderTpRect);
|
|
74202
|
+
orderTpEl2.add(orderTpText);
|
|
74203
|
+
const orderSlEl2 = new Group_default();
|
|
74204
|
+
const orderSlRect = new Rect_default();
|
|
74205
|
+
const orderSlText = new Text_default();
|
|
74206
|
+
orderSlEl2.add(orderSlRect);
|
|
74207
|
+
orderSlEl2.add(orderSlText);
|
|
74208
|
+
const orderDescEl = new Group_default();
|
|
74209
|
+
const orderDescRect = new Rect_default();
|
|
74210
|
+
const orderSizeRect = new Rect_default();
|
|
74211
|
+
orderGroup.add(orderLineEl2);
|
|
74212
|
+
orderGroup.add(orderClosePositionEl2);
|
|
74213
|
+
orderGroup.add(orderTpEl2);
|
|
74214
|
+
orderGroup.add(orderSlEl2);
|
|
74215
|
+
this.orderGroupEls = {
|
|
74216
|
+
orderLineEl: orderLineEl2,
|
|
74217
|
+
orderClosePositionEl: orderClosePositionEl2,
|
|
74218
|
+
orderTpEl: orderTpEl2,
|
|
74219
|
+
orderSlEl: orderSlEl2,
|
|
74220
|
+
orderDescEl
|
|
74221
|
+
};
|
|
74222
|
+
}
|
|
74223
|
+
const {orderLineEl, orderClosePositionEl, orderTpEl, orderSlEl} = this.orderGroupEls;
|
|
74224
|
+
orderLineEl.attr({
|
|
74225
|
+
shape: {
|
|
74226
|
+
x1: rect.x,
|
|
74227
|
+
y1: 0,
|
|
74228
|
+
x2: rect.x + rect.width,
|
|
74229
|
+
y2: 0
|
|
74230
|
+
},
|
|
74231
|
+
style: {
|
|
74232
|
+
lineWidth: 1,
|
|
74233
|
+
stroke: color2
|
|
74234
|
+
}
|
|
74235
|
+
});
|
|
74236
|
+
orderClosePositionEl.attr("x", 300);
|
|
74237
|
+
orderTpEl.attr("x", 300 + labelRectWidth + orderTpLMargin);
|
|
74238
|
+
orderSlEl.attr("x", 300 + labelRectWidth * 2 + orderTpLMargin + 1);
|
|
74239
|
+
orderTpEl.childAt(0).attr({
|
|
74240
|
+
shape: {
|
|
74241
|
+
y: -9,
|
|
74242
|
+
width: labelRectWidth,
|
|
74243
|
+
height: 18,
|
|
74244
|
+
r: 10
|
|
74245
|
+
},
|
|
74246
|
+
style: {
|
|
74247
|
+
fill: this.backgroundColor,
|
|
74248
|
+
stroke: shopProfit
|
|
74249
|
+
}
|
|
74250
|
+
});
|
|
74251
|
+
orderTpEl.childAt(1).attr({
|
|
74252
|
+
style: {
|
|
74253
|
+
text: "TP",
|
|
74254
|
+
fill: shopProfit,
|
|
74255
|
+
fontSize: 14
|
|
74256
|
+
},
|
|
74257
|
+
x: 11,
|
|
74258
|
+
y: -6
|
|
74259
|
+
});
|
|
74260
|
+
orderSlEl.childAt(0).attr({
|
|
74261
|
+
shape: {
|
|
74262
|
+
y: -9,
|
|
74263
|
+
width: labelRectWidth,
|
|
74264
|
+
height: 18,
|
|
74265
|
+
r: 10
|
|
74266
|
+
},
|
|
74267
|
+
style: {
|
|
74268
|
+
fill: this.backgroundColor,
|
|
74269
|
+
stroke: shopLoss
|
|
74270
|
+
}
|
|
74271
|
+
});
|
|
74272
|
+
orderSlEl.childAt(1).attr({
|
|
74273
|
+
style: {
|
|
74274
|
+
text: "SL",
|
|
74275
|
+
fill: shopLoss,
|
|
74276
|
+
fontSize: 14
|
|
74277
|
+
},
|
|
74278
|
+
x: 11,
|
|
74279
|
+
y: -6
|
|
74280
|
+
});
|
|
74281
|
+
}
|
|
74282
|
+
clear() {
|
|
74283
|
+
this.group.removeAll();
|
|
74284
|
+
this.orderGroup = null;
|
|
74285
|
+
this.shopLossGroup = null;
|
|
74286
|
+
this.showProfitGroup = null;
|
|
74287
|
+
}
|
|
74288
|
+
dispose(ecModel, api2) {
|
|
74289
|
+
}
|
|
74290
|
+
};
|
|
74291
|
+
var PlaybackOrderView = PlaybackOrderView2;
|
|
74292
|
+
PlaybackOrderView.type = "playbackOrder";
|
|
74293
|
+
|
|
74294
|
+
// src/component/playback/install.ts
|
|
74295
|
+
function install58(registers) {
|
|
74296
|
+
registers.registerComponentModel(PlaybackSelectModel);
|
|
74297
|
+
registers.registerComponentView(PlaybackSelectView);
|
|
74298
|
+
registers.registerComponentModel(PlaybackOrderModel);
|
|
74299
|
+
registers.registerComponentView(PlaybackOrderView);
|
|
74300
|
+
registers.registerAction({type: "playbackSelect", event: "playbackSelect"}, function(payload, ecModel) {
|
|
74301
|
+
ecModel.eachComponent({mainType: "playbackSelect", query: payload}, function(playbackSelectModal) {
|
|
74302
|
+
playbackSelectModal.setPlaybackSelect(payload.playbackSelect);
|
|
74303
|
+
});
|
|
74304
|
+
});
|
|
74305
|
+
}
|
|
74306
|
+
|
|
73895
74307
|
// src/component/logo/install.ts
|
|
73896
74308
|
var LogoModel2 = class extends Component_default {
|
|
73897
74309
|
constructor() {
|
|
@@ -73948,7 +74360,7 @@ var LogoView2 = class extends Component_default2 {
|
|
|
73948
74360
|
};
|
|
73949
74361
|
var LogoView = LogoView2;
|
|
73950
74362
|
LogoView.type = "logo";
|
|
73951
|
-
function
|
|
74363
|
+
function install59(registers) {
|
|
73952
74364
|
registers.registerComponentModel(LogoModel);
|
|
73953
74365
|
registers.registerComponentView(LogoView);
|
|
73954
74366
|
}
|
|
@@ -74802,7 +75214,7 @@ function has(obj, attr) {
|
|
|
74802
75214
|
}
|
|
74803
75215
|
|
|
74804
75216
|
// src/component/timeline/install.ts
|
|
74805
|
-
function
|
|
75217
|
+
function install60(registers) {
|
|
74806
75218
|
registers.registerComponentModel(SliderTimelineModel_default);
|
|
74807
75219
|
registers.registerComponentView(SliderTimelineView_default);
|
|
74808
75220
|
registers.registerSubTypeDefaulter("timeline", function() {
|
|
@@ -75243,7 +75655,7 @@ function createData(coordSys, seriesModel, mpModel) {
|
|
|
75243
75655
|
var MarkPointView_default = MarkPointView;
|
|
75244
75656
|
|
|
75245
75657
|
// src/component/marker/installMarkPoint.ts
|
|
75246
|
-
function
|
|
75658
|
+
function install61(registers) {
|
|
75247
75659
|
registers.registerComponentModel(MarkPointModel_default);
|
|
75248
75660
|
registers.registerComponentView(MarkPointView_default);
|
|
75249
75661
|
registers.registerPreprocessor(function(opt) {
|
|
@@ -75561,7 +75973,7 @@ function createList2(coordSys, seriesModel, mlModel) {
|
|
|
75561
75973
|
var MarkLineView_default = MarkLineView;
|
|
75562
75974
|
|
|
75563
75975
|
// src/component/marker/installMarkLine.ts
|
|
75564
|
-
function
|
|
75976
|
+
function install62(registers) {
|
|
75565
75977
|
registers.registerComponentModel(MarkLineModel_default);
|
|
75566
75978
|
registers.registerComponentView(MarkLineView_default);
|
|
75567
75979
|
registers.registerPreprocessor(function(opt) {
|
|
@@ -75875,7 +76287,7 @@ function createList3(coordSys, seriesModel, maModel) {
|
|
|
75875
76287
|
var MarkAreaView_default = MarkAreaView;
|
|
75876
76288
|
|
|
75877
76289
|
// src/component/marker/installMarkArea.ts
|
|
75878
|
-
function
|
|
76290
|
+
function install63(registers) {
|
|
75879
76291
|
registers.registerComponentModel(MarkAreaModel_default);
|
|
75880
76292
|
registers.registerComponentView(MarkAreaView_default);
|
|
75881
76293
|
registers.registerPreprocessor(function(opt) {
|
|
@@ -76614,7 +77026,7 @@ function updateLabel({x, y, labelData, markerModel, gridRect, position: position
|
|
|
76614
77026
|
var MarkLabelView_default = MarkLabelView;
|
|
76615
77027
|
|
|
76616
77028
|
// src/component/marker/installMarkLabel.ts
|
|
76617
|
-
function
|
|
77029
|
+
function install64(registers) {
|
|
76618
77030
|
registers.registerComponentModel(MarkLabelModal_default);
|
|
76619
77031
|
registers.registerComponentView(MarkLabelView_default);
|
|
76620
77032
|
registers.registerPreprocessor(function(opt) {
|
|
@@ -76680,7 +77092,7 @@ var LimitTipView2 = class extends Component_default2 {
|
|
|
76680
77092
|
};
|
|
76681
77093
|
var LimitTipView = LimitTipView2;
|
|
76682
77094
|
LimitTipView.type = "limitTip";
|
|
76683
|
-
function
|
|
77095
|
+
function install65(registers) {
|
|
76684
77096
|
registers.registerComponentModel(LimitTipModel);
|
|
76685
77097
|
registers.registerComponentView(LimitTipView);
|
|
76686
77098
|
}
|
|
@@ -77357,7 +77769,7 @@ function installLegendAction(registers) {
|
|
|
77357
77769
|
}
|
|
77358
77770
|
|
|
77359
77771
|
// src/component/legend/installLegendPlain.ts
|
|
77360
|
-
function
|
|
77772
|
+
function install66(registers) {
|
|
77361
77773
|
registers.registerComponentModel(LegendModel_default);
|
|
77362
77774
|
registers.registerComponentView(LegendView_default);
|
|
77363
77775
|
registers.registerProcessor(registers.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter);
|
|
@@ -77687,17 +78099,17 @@ function installScrollableLegendAction(registers) {
|
|
|
77687
78099
|
}
|
|
77688
78100
|
|
|
77689
78101
|
// src/component/legend/installLegendScroll.ts
|
|
77690
|
-
function
|
|
77691
|
-
use(
|
|
78102
|
+
function install67(registers) {
|
|
78103
|
+
use(install66);
|
|
77692
78104
|
registers.registerComponentModel(ScrollableLegendModel_default);
|
|
77693
78105
|
registers.registerComponentView(ScrollableLegendView_default);
|
|
77694
78106
|
installScrollableLegendAction(registers);
|
|
77695
78107
|
}
|
|
77696
78108
|
|
|
77697
78109
|
// src/component/legend/install.ts
|
|
77698
|
-
function
|
|
77699
|
-
use(install65);
|
|
78110
|
+
function install68(registers) {
|
|
77700
78111
|
use(install66);
|
|
78112
|
+
use(install67);
|
|
77701
78113
|
}
|
|
77702
78114
|
|
|
77703
78115
|
// src/component/dataZoom/InsideZoomModel.ts
|
|
@@ -78283,7 +78695,7 @@ var getDirectionInfo = {
|
|
|
78283
78695
|
var InsideZoomView_default = InsideZoomView;
|
|
78284
78696
|
|
|
78285
78697
|
// src/component/dataZoom/installDataZoomInside.ts
|
|
78286
|
-
function
|
|
78698
|
+
function install69(registers) {
|
|
78287
78699
|
installCommon(registers);
|
|
78288
78700
|
registers.registerComponentModel(InsideZoomModel_default);
|
|
78289
78701
|
registers.registerComponentView(InsideZoomView_default);
|
|
@@ -79039,16 +79451,16 @@ function getCursor(orient) {
|
|
|
79039
79451
|
var SliderZoomView_default = SliderZoomView;
|
|
79040
79452
|
|
|
79041
79453
|
// src/component/dataZoom/installDataZoomSlider.ts
|
|
79042
|
-
function
|
|
79454
|
+
function install70(registers) {
|
|
79043
79455
|
registers.registerComponentModel(SliderZoomModel_default);
|
|
79044
79456
|
registers.registerComponentView(SliderZoomView_default);
|
|
79045
79457
|
installCommon(registers);
|
|
79046
79458
|
}
|
|
79047
79459
|
|
|
79048
79460
|
// src/component/dataZoom/install.ts
|
|
79049
|
-
function
|
|
79050
|
-
use(install68);
|
|
79461
|
+
function install71(registers) {
|
|
79051
79462
|
use(install69);
|
|
79463
|
+
use(install70);
|
|
79052
79464
|
}
|
|
79053
79465
|
|
|
79054
79466
|
// src/visual/visualDefault.ts
|
|
@@ -80313,7 +80725,7 @@ function installCommon2(registers) {
|
|
|
80313
80725
|
}
|
|
80314
80726
|
|
|
80315
80727
|
// src/component/visualMap/installVisualMapContinuous.ts
|
|
80316
|
-
function
|
|
80728
|
+
function install72(registers) {
|
|
80317
80729
|
registers.registerComponentModel(ContinuousModel_default);
|
|
80318
80730
|
registers.registerComponentView(ContinuousView_default);
|
|
80319
80731
|
installCommon2(registers);
|
|
@@ -80753,16 +81165,16 @@ PiecewiseVisualMapView.type = "visualMap.piecewise";
|
|
|
80753
81165
|
var PiecewiseView_default = PiecewiseVisualMapView;
|
|
80754
81166
|
|
|
80755
81167
|
// src/component/visualMap/installVisualMapPiecewise.ts
|
|
80756
|
-
function
|
|
81168
|
+
function install73(registers) {
|
|
80757
81169
|
registers.registerComponentModel(PiecewiseModel_default);
|
|
80758
81170
|
registers.registerComponentView(PiecewiseView_default);
|
|
80759
81171
|
installCommon2(registers);
|
|
80760
81172
|
}
|
|
80761
81173
|
|
|
80762
81174
|
// src/component/visualMap/install.ts
|
|
80763
|
-
function
|
|
80764
|
-
use(install71);
|
|
81175
|
+
function install74(registers) {
|
|
80765
81176
|
use(install72);
|
|
81177
|
+
use(install73);
|
|
80766
81178
|
}
|
|
80767
81179
|
|
|
80768
81180
|
// src/visual/aria.ts
|
|
@@ -80958,7 +81370,7 @@ function ariaPreprocessor(option) {
|
|
|
80958
81370
|
}
|
|
80959
81371
|
|
|
80960
81372
|
// src/component/aria/install.ts
|
|
80961
|
-
function
|
|
81373
|
+
function install75(registers) {
|
|
80962
81374
|
registers.registerPreprocessor(ariaPreprocessor);
|
|
80963
81375
|
registers.registerVisual(registers.PRIORITY.VISUAL.ARIA, ariaVisual);
|
|
80964
81376
|
}
|
|
@@ -81296,7 +81708,7 @@ var sortTransform = {
|
|
|
81296
81708
|
};
|
|
81297
81709
|
|
|
81298
81710
|
// src/component/transform/install.ts
|
|
81299
|
-
function
|
|
81711
|
+
function install76(registers) {
|
|
81300
81712
|
registers.registerTransform(filterTransform);
|
|
81301
81713
|
registers.registerTransform(sortTransform);
|
|
81302
81714
|
}
|
|
@@ -81334,12 +81746,12 @@ var DatasetView = class extends Component_default2 {
|
|
|
81334
81746
|
}
|
|
81335
81747
|
};
|
|
81336
81748
|
DatasetView.type = "dataset";
|
|
81337
|
-
function
|
|
81749
|
+
function install77(registers) {
|
|
81338
81750
|
registers.registerComponentModel(DatasetModel);
|
|
81339
81751
|
registers.registerComponentView(DatasetView);
|
|
81340
81752
|
}
|
|
81341
81753
|
|
|
81342
|
-
//
|
|
81754
|
+
// node_modules/tvrender/src/tool/convertPath.ts
|
|
81343
81755
|
var CMD5 = PathProxy_default.CMD;
|
|
81344
81756
|
function aroundEqual(a, b) {
|
|
81345
81757
|
return Math.abs(a - b) < 1e-5;
|
|
@@ -81539,7 +81951,7 @@ function pathToPolygons(path, scale4) {
|
|
|
81539
81951
|
return polygons;
|
|
81540
81952
|
}
|
|
81541
81953
|
|
|
81542
|
-
//
|
|
81954
|
+
// node_modules/tvrender/src/tool/dividePath.ts
|
|
81543
81955
|
function getDividingGrids(dimSize, rowDim, count2) {
|
|
81544
81956
|
const rowSize = dimSize[rowDim];
|
|
81545
81957
|
const columnSize = dimSize[1 - rowDim];
|
|
@@ -81841,7 +82253,7 @@ function split(path, count2) {
|
|
|
81841
82253
|
return out2;
|
|
81842
82254
|
}
|
|
81843
82255
|
|
|
81844
|
-
//
|
|
82256
|
+
// node_modules/tvrender/src/tool/morphPath.ts
|
|
81845
82257
|
function alignSubpath(subpath1, subpath2) {
|
|
81846
82258
|
const len1 = subpath1.length;
|
|
81847
82259
|
const len2 = subpath2.length;
|
|
@@ -83087,7 +83499,7 @@ use(install51);
|
|
|
83087
83499
|
use(install43);
|
|
83088
83500
|
use(install52);
|
|
83089
83501
|
use(install53);
|
|
83090
|
-
use(
|
|
83502
|
+
use(install65);
|
|
83091
83503
|
use(install54);
|
|
83092
83504
|
use(install55);
|
|
83093
83505
|
use(install56);
|
|
@@ -83098,16 +83510,17 @@ use(install60);
|
|
|
83098
83510
|
use(install61);
|
|
83099
83511
|
use(install62);
|
|
83100
83512
|
use(install63);
|
|
83101
|
-
use(
|
|
83102
|
-
use(install70);
|
|
83513
|
+
use(install64);
|
|
83103
83514
|
use(install68);
|
|
83104
|
-
use(install69);
|
|
83105
|
-
use(install73);
|
|
83106
83515
|
use(install71);
|
|
83107
|
-
use(
|
|
83516
|
+
use(install69);
|
|
83517
|
+
use(install70);
|
|
83108
83518
|
use(install74);
|
|
83519
|
+
use(install72);
|
|
83520
|
+
use(install73);
|
|
83109
83521
|
use(install75);
|
|
83110
83522
|
use(install76);
|
|
83523
|
+
use(install77);
|
|
83111
83524
|
use(installUniversalTransition);
|
|
83112
83525
|
use(installLabelLayout);
|
|
83113
83526
|
|