@pyreon/charts 0.10.0 → 0.11.1
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/lib/analysis/index.js.html +1 -1
- package/lib/analysis/manual.js.html +1 -1
- package/lib/{charts-Ckh2qxB5.js → charts-lo2KeDld.js} +164 -164
- package/lib/charts-lo2KeDld.js.map +1 -0
- package/lib/{components-BcPePBeS.js → components-ClWy1Ztp.js} +128 -128
- package/lib/components-ClWy1Ztp.js.map +1 -0
- package/lib/{core-9w0g6EOI.js → core-BiuQ3y-t.js} +11 -11
- package/lib/core-BiuQ3y-t.js.map +1 -0
- package/lib/{createSeriesData-DOHScdgk.js → createSeriesData-BGy-6PqI.js} +6 -6
- package/lib/createSeriesData-BGy-6PqI.js.map +1 -0
- package/lib/{customGraphicKeyframeAnimation-CvkEkSt_.js → customGraphicKeyframeAnimation-BIbJI8ew.js} +61 -61
- package/lib/customGraphicKeyframeAnimation-BIbJI8ew.js.map +1 -0
- package/lib/{graphic-CPJ2K90a.js → graphic-Bt7SEwll.js} +59 -59
- package/lib/graphic-Bt7SEwll.js.map +1 -0
- package/lib/index.js +60 -52
- package/lib/index.js.map +1 -1
- package/lib/manual.js +60 -52
- package/lib/manual.js.map +1 -1
- package/lib/{parseGeoJson-BlBe5Vig.js → parseGeoJson-NjUY1feF.js} +115 -115
- package/lib/parseGeoJson-NjUY1feF.js.map +1 -0
- package/lib/{renderers-Dytryvoy.js → renderers-BnAAXHfG.js} +16 -16
- package/lib/renderers-BnAAXHfG.js.map +1 -0
- package/lib/types/index.d.ts +3 -3
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/manual.d.ts +3 -3
- package/lib/types/manual.d.ts.map +1 -1
- package/package.json +14 -7
- package/src/chart-component.tsx +18 -10
- package/src/index.ts +3 -3
- package/src/loader.ts +70 -73
- package/src/manual.ts +4 -4
- package/src/tests/charts.test.tsx +431 -126
- package/src/types.ts +8 -9
- package/src/use-chart.ts +8 -8
- package/lib/charts-Ckh2qxB5.js.map +0 -1
- package/lib/components-BcPePBeS.js.map +0 -1
- package/lib/core-9w0g6EOI.js.map +0 -1
- package/lib/createSeriesData-DOHScdgk.js.map +0 -1
- package/lib/customGraphicKeyframeAnimation-CvkEkSt_.js.map +0 -1
- package/lib/graphic-CPJ2K90a.js.map +0 -1
- package/lib/parseGeoJson-BlBe5Vig.js.map +0 -1
- package/lib/renderers-Dytryvoy.js.map +0 -1
|
@@ -39,7 +39,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
39
39
|
}) : target, mod));
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
|
-
//#region
|
|
42
|
+
//#region ../../../node_modules/.bun/tslib@2.3.0/node_modules/tslib/tslib.js
|
|
43
43
|
var require_tslib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
44
44
|
/*! *****************************************************************************
|
|
45
45
|
Copyright (c) Microsoft Corporation.
|
|
@@ -454,12 +454,12 @@ var require_tslib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
454
454
|
}));
|
|
455
455
|
|
|
456
456
|
//#endregion
|
|
457
|
-
//#region
|
|
457
|
+
//#region ../../../node_modules/.bun/tslib@2.3.0/node_modules/tslib/modules/index.js
|
|
458
458
|
var import_tslib = /* @__PURE__ */ __toESM(require_tslib(), 1);
|
|
459
459
|
const { __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __createBinding, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet } = import_tslib.default;
|
|
460
460
|
|
|
461
461
|
//#endregion
|
|
462
|
-
//#region
|
|
462
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/platform.js
|
|
463
463
|
var DEFAULT_FONT_SIZE = 12;
|
|
464
464
|
var DEFAULT_FONT_FAMILY = "sans-serif";
|
|
465
465
|
var DEFAULT_FONT = 12 + "px " + DEFAULT_FONT_FAMILY;
|
|
@@ -519,7 +519,7 @@ function setPlatformAPI(newPlatformApis) {
|
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
//#endregion
|
|
522
|
-
//#region
|
|
522
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/util.js
|
|
523
523
|
var util_exports = /* @__PURE__ */ __exportAll({
|
|
524
524
|
EPSILON: () => EPSILON$4,
|
|
525
525
|
HashMap: () => HashMap,
|
|
@@ -958,7 +958,7 @@ var RADIAN_TO_DEGREE = 180 / Math.PI;
|
|
|
958
958
|
var EPSILON$4 = Number.EPSILON || Math.pow(2, -52);
|
|
959
959
|
|
|
960
960
|
//#endregion
|
|
961
|
-
//#region
|
|
961
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/env.js
|
|
962
962
|
var Browser = function() {
|
|
963
963
|
function Browser() {
|
|
964
964
|
this.firefox = false;
|
|
@@ -1024,7 +1024,7 @@ function detect(ua, env) {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
1026
|
//#endregion
|
|
1027
|
-
//#region
|
|
1027
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/LRU.js
|
|
1028
1028
|
var Entry = function() {
|
|
1029
1029
|
function Entry(val) {
|
|
1030
1030
|
this.value = val;
|
|
@@ -1120,7 +1120,7 @@ var LRU = function() {
|
|
|
1120
1120
|
}();
|
|
1121
1121
|
|
|
1122
1122
|
//#endregion
|
|
1123
|
-
//#region
|
|
1123
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/graphic/helper/image.js
|
|
1124
1124
|
var globalImageCache = new LRU(50);
|
|
1125
1125
|
function findExistImage(newImageOrSrc) {
|
|
1126
1126
|
if (typeof newImageOrSrc === "string") {
|
|
@@ -1168,7 +1168,7 @@ function isImageReady(image) {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
|
|
1170
1170
|
//#endregion
|
|
1171
|
-
//#region
|
|
1171
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/matrix.js
|
|
1172
1172
|
var matrix_exports = /* @__PURE__ */ __exportAll({
|
|
1173
1173
|
clone: () => clone$1,
|
|
1174
1174
|
copy: () => copy$1,
|
|
@@ -1286,7 +1286,7 @@ function clone$1(a) {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
|
|
1288
1288
|
//#endregion
|
|
1289
|
-
//#region
|
|
1289
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/Point.js
|
|
1290
1290
|
var Point = function() {
|
|
1291
1291
|
function Point(x, y) {
|
|
1292
1292
|
this.x = x || 0;
|
|
@@ -1415,7 +1415,7 @@ var Point = function() {
|
|
|
1415
1415
|
}();
|
|
1416
1416
|
|
|
1417
1417
|
//#endregion
|
|
1418
|
-
//#region
|
|
1418
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/BoundingRect.js
|
|
1419
1419
|
var mathMin$2 = Math.min;
|
|
1420
1420
|
var mathMax$2 = Math.max;
|
|
1421
1421
|
var mathAbs$1 = Math.abs;
|
|
@@ -1681,7 +1681,7 @@ function createIntersectContext() {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
|
|
1683
1683
|
//#endregion
|
|
1684
|
-
//#region
|
|
1684
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/contain/text.js
|
|
1685
1685
|
function ensureFontMeasureInfo(font) {
|
|
1686
1686
|
if (!_fontMeasureInfoCache) _fontMeasureInfoCache = new LRU(100);
|
|
1687
1687
|
font = font || "12px sans-serif";
|
|
@@ -1862,7 +1862,7 @@ function calculateTextPosition(out, opts, rect) {
|
|
|
1862
1862
|
}
|
|
1863
1863
|
|
|
1864
1864
|
//#endregion
|
|
1865
|
-
//#region
|
|
1865
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/graphic/helper/parseText.js
|
|
1866
1866
|
var STYLE_REG = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;
|
|
1867
1867
|
function truncateText(text, containerWidth, font, ellipsis, options) {
|
|
1868
1868
|
var out = {};
|
|
@@ -2330,7 +2330,7 @@ function tSpanHasStroke(style) {
|
|
|
2330
2330
|
}
|
|
2331
2331
|
|
|
2332
2332
|
//#endregion
|
|
2333
|
-
//#region
|
|
2333
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/vector.js
|
|
2334
2334
|
var vector_exports = /* @__PURE__ */ __exportAll({
|
|
2335
2335
|
add: () => add,
|
|
2336
2336
|
applyTransform: () => applyTransform,
|
|
@@ -2465,7 +2465,7 @@ function max$1(out, v1, v2) {
|
|
|
2465
2465
|
}
|
|
2466
2466
|
|
|
2467
2467
|
//#endregion
|
|
2468
|
-
//#region
|
|
2468
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/Transformable.js
|
|
2469
2469
|
var mIdentity = identity;
|
|
2470
2470
|
var EPSILON$3 = 5e-5;
|
|
2471
2471
|
function isNotAroundZero$1(val) {
|
|
@@ -2672,7 +2672,7 @@ function copyTransform(target, source) {
|
|
|
2672
2672
|
}
|
|
2673
2673
|
|
|
2674
2674
|
//#endregion
|
|
2675
|
-
//#region
|
|
2675
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/animation/easing.js
|
|
2676
2676
|
var easingFuncs = {
|
|
2677
2677
|
linear: function(k) {
|
|
2678
2678
|
return k;
|
|
@@ -2814,7 +2814,7 @@ var easingFuncs = {
|
|
|
2814
2814
|
};
|
|
2815
2815
|
|
|
2816
2816
|
//#endregion
|
|
2817
|
-
//#region
|
|
2817
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/curve.js
|
|
2818
2818
|
var mathPow = Math.pow;
|
|
2819
2819
|
var mathSqrt = Math.sqrt;
|
|
2820
2820
|
var EPSILON$2 = 1e-8;
|
|
@@ -3096,7 +3096,7 @@ function quadraticLength(x0, y0, x1, y1, x2, y2, iteration) {
|
|
|
3096
3096
|
}
|
|
3097
3097
|
|
|
3098
3098
|
//#endregion
|
|
3099
|
-
//#region
|
|
3099
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/animation/cubicEasing.js
|
|
3100
3100
|
var regexp = /cubic-bezier\(([0-9,\.e ]+)\)/;
|
|
3101
3101
|
function createCubicEasingFunc(cubicEasingStr) {
|
|
3102
3102
|
var cubic = cubicEasingStr && regexp.exec(cubicEasingStr);
|
|
@@ -3115,7 +3115,7 @@ function createCubicEasingFunc(cubicEasingStr) {
|
|
|
3115
3115
|
}
|
|
3116
3116
|
|
|
3117
3117
|
//#endregion
|
|
3118
|
-
//#region
|
|
3118
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/animation/Clip.js
|
|
3119
3119
|
var Clip = function() {
|
|
3120
3120
|
function Clip(opts) {
|
|
3121
3121
|
this._inited = false;
|
|
@@ -3168,7 +3168,7 @@ var Clip = function() {
|
|
|
3168
3168
|
}();
|
|
3169
3169
|
|
|
3170
3170
|
//#endregion
|
|
3171
|
-
//#region
|
|
3171
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/tool/color.js
|
|
3172
3172
|
var color_exports = /* @__PURE__ */ __exportAll({
|
|
3173
3173
|
fastLerp: () => fastLerp,
|
|
3174
3174
|
fastMapToColor: () => fastMapToColor,
|
|
@@ -4359,7 +4359,7 @@ function liftColor(color) {
|
|
|
4359
4359
|
}
|
|
4360
4360
|
|
|
4361
4361
|
//#endregion
|
|
4362
|
-
//#region
|
|
4362
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/svg/helper.js
|
|
4363
4363
|
var mathRound = Math.round;
|
|
4364
4364
|
function normalizeColor(color) {
|
|
4365
4365
|
var opacity;
|
|
@@ -4470,7 +4470,7 @@ var encodeBase64 = (function() {
|
|
|
4470
4470
|
})();
|
|
4471
4471
|
|
|
4472
4472
|
//#endregion
|
|
4473
|
-
//#region
|
|
4473
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/animation/Animator.js
|
|
4474
4474
|
var arraySlice = Array.prototype.slice;
|
|
4475
4475
|
function interpolateNumber(p0, p1, percent) {
|
|
4476
4476
|
return (p1 - p0) * percent + p0;
|
|
@@ -5006,7 +5006,7 @@ var Animator = function() {
|
|
|
5006
5006
|
}();
|
|
5007
5007
|
|
|
5008
5008
|
//#endregion
|
|
5009
|
-
//#region
|
|
5009
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/Eventful.js
|
|
5010
5010
|
var Eventful = function() {
|
|
5011
5011
|
function Eventful(eventProcessors) {
|
|
5012
5012
|
if (eventProcessors) this._$eventProcessor = eventProcessors;
|
|
@@ -5123,7 +5123,7 @@ var Eventful = function() {
|
|
|
5123
5123
|
}();
|
|
5124
5124
|
|
|
5125
5125
|
//#endregion
|
|
5126
|
-
//#region
|
|
5126
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/config.js
|
|
5127
5127
|
var dpr = 1;
|
|
5128
5128
|
if (env.hasGlobalWindow) dpr = Math.max(window.devicePixelRatio || window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI || 1, 1);
|
|
5129
5129
|
var devicePixelRatio = dpr;
|
|
@@ -5133,7 +5133,7 @@ var LIGHT_LABEL_COLOR = "#ccc";
|
|
|
5133
5133
|
var LIGHTER_LABEL_COLOR = "#eee";
|
|
5134
5134
|
|
|
5135
5135
|
//#endregion
|
|
5136
|
-
//#region
|
|
5136
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/Element.js
|
|
5137
5137
|
var PRESERVED_NORMAL_STATE = "__zr_normal__";
|
|
5138
5138
|
var PRIMARY_STATES_KEYS$1 = TRANSFORMABLE_PROPS.concat(["ignore"]);
|
|
5139
5139
|
var DEFAULT_ANIMATABLE_MAP = reduce(TRANSFORMABLE_PROPS, function(obj, key) {
|
|
@@ -5918,7 +5918,7 @@ function animateToShallow(animatable, topKey, animateObj, target, cfg, animation
|
|
|
5918
5918
|
}
|
|
5919
5919
|
|
|
5920
5920
|
//#endregion
|
|
5921
|
-
//#region
|
|
5921
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/graphic/Displayable.js
|
|
5922
5922
|
var STYLE_MAGIC_KEY = "__zr_style_" + Math.round(Math.random() * 10);
|
|
5923
5923
|
var DEFAULT_COMMON_STYLE = {
|
|
5924
5924
|
shadowBlur: 0,
|
|
@@ -6163,7 +6163,7 @@ function isDisplayableCulled(el, width, height) {
|
|
|
6163
6163
|
}
|
|
6164
6164
|
|
|
6165
6165
|
//#endregion
|
|
6166
|
-
//#region
|
|
6166
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/bbox.js
|
|
6167
6167
|
var mathMin$1 = Math.min;
|
|
6168
6168
|
var mathMax$1 = Math.max;
|
|
6169
6169
|
var mathSin$1 = Math.sin;
|
|
@@ -6276,7 +6276,7 @@ function fromArc(x, y, rx, ry, startAngle, endAngle, anticlockwise, min, max) {
|
|
|
6276
6276
|
}
|
|
6277
6277
|
|
|
6278
6278
|
//#endregion
|
|
6279
|
-
//#region
|
|
6279
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/PathProxy.js
|
|
6280
6280
|
var CMD$1 = {
|
|
6281
6281
|
M: 1,
|
|
6282
6282
|
L: 2,
|
|
@@ -6899,7 +6899,7 @@ var PathProxy = function() {
|
|
|
6899
6899
|
}();
|
|
6900
6900
|
|
|
6901
6901
|
//#endregion
|
|
6902
|
-
//#region
|
|
6902
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/contain/line.js
|
|
6903
6903
|
function containStroke$4(x0, y0, x1, y1, lineWidth, x, y) {
|
|
6904
6904
|
if (lineWidth === 0) return false;
|
|
6905
6905
|
var _l = lineWidth;
|
|
@@ -6915,7 +6915,7 @@ function containStroke$4(x0, y0, x1, y1, lineWidth, x, y) {
|
|
|
6915
6915
|
}
|
|
6916
6916
|
|
|
6917
6917
|
//#endregion
|
|
6918
|
-
//#region
|
|
6918
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/contain/cubic.js
|
|
6919
6919
|
function containStroke$3(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
|
|
6920
6920
|
if (lineWidth === 0) return false;
|
|
6921
6921
|
var _l = lineWidth;
|
|
@@ -6924,7 +6924,7 @@ function containStroke$3(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
|
|
|
6924
6924
|
}
|
|
6925
6925
|
|
|
6926
6926
|
//#endregion
|
|
6927
|
-
//#region
|
|
6927
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/contain/quadratic.js
|
|
6928
6928
|
function containStroke$2(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
|
|
6929
6929
|
if (lineWidth === 0) return false;
|
|
6930
6930
|
var _l = lineWidth;
|
|
@@ -6933,7 +6933,7 @@ function containStroke$2(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
|
|
|
6933
6933
|
}
|
|
6934
6934
|
|
|
6935
6935
|
//#endregion
|
|
6936
|
-
//#region
|
|
6936
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/contain/util.js
|
|
6937
6937
|
var PI2$2 = Math.PI * 2;
|
|
6938
6938
|
function normalizeRadian(angle) {
|
|
6939
6939
|
angle %= PI2$2;
|
|
@@ -6942,7 +6942,7 @@ function normalizeRadian(angle) {
|
|
|
6942
6942
|
}
|
|
6943
6943
|
|
|
6944
6944
|
//#endregion
|
|
6945
|
-
//#region
|
|
6945
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/contain/arc.js
|
|
6946
6946
|
var PI2$1 = Math.PI * 2;
|
|
6947
6947
|
function containStroke$1(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidth, x, y) {
|
|
6948
6948
|
if (lineWidth === 0) return false;
|
|
@@ -6967,7 +6967,7 @@ function containStroke$1(cx, cy, r, startAngle, endAngle, anticlockwise, lineWid
|
|
|
6967
6967
|
}
|
|
6968
6968
|
|
|
6969
6969
|
//#endregion
|
|
6970
|
-
//#region
|
|
6970
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/contain/windingLine.js
|
|
6971
6971
|
function windingLine(x0, y0, x1, y1, x, y) {
|
|
6972
6972
|
if (y > y0 && y > y1 || y < y0 && y < y1) return 0;
|
|
6973
6973
|
if (y1 === y0) return 0;
|
|
@@ -6979,7 +6979,7 @@ function windingLine(x0, y0, x1, y1, x, y) {
|
|
|
6979
6979
|
}
|
|
6980
6980
|
|
|
6981
6981
|
//#endregion
|
|
6982
|
-
//#region
|
|
6982
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/contain/path.js
|
|
6983
6983
|
var CMD = PathProxy.CMD;
|
|
6984
6984
|
var PI2 = Math.PI * 2;
|
|
6985
6985
|
var EPSILON = 1e-4;
|
|
@@ -7196,7 +7196,7 @@ function containStroke(pathProxy, lineWidth, x, y) {
|
|
|
7196
7196
|
}
|
|
7197
7197
|
|
|
7198
7198
|
//#endregion
|
|
7199
|
-
//#region
|
|
7199
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/graphic/Path.js
|
|
7200
7200
|
var DEFAULT_PATH_STYLE = defaults({
|
|
7201
7201
|
fill: "#000",
|
|
7202
7202
|
stroke: null,
|
|
@@ -7502,7 +7502,7 @@ var Path = function(_super) {
|
|
|
7502
7502
|
}(Displayable);
|
|
7503
7503
|
|
|
7504
7504
|
//#endregion
|
|
7505
|
-
//#region
|
|
7505
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/graphic/TSpan.js
|
|
7506
7506
|
var DEFAULT_TSPAN_STYLE = defaults({
|
|
7507
7507
|
strokeFirst: true,
|
|
7508
7508
|
font: DEFAULT_FONT,
|
|
@@ -7543,7 +7543,7 @@ var TSpan = function(_super) {
|
|
|
7543
7543
|
TSpan.prototype.type = "tspan";
|
|
7544
7544
|
|
|
7545
7545
|
//#endregion
|
|
7546
|
-
//#region
|
|
7546
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/graphic/Image.js
|
|
7547
7547
|
var DEFAULT_IMAGE_STYLE = defaults({
|
|
7548
7548
|
x: 0,
|
|
7549
7549
|
y: 0
|
|
@@ -7599,7 +7599,7 @@ var ZRImage = function(_super) {
|
|
|
7599
7599
|
ZRImage.prototype.type = "image";
|
|
7600
7600
|
|
|
7601
7601
|
//#endregion
|
|
7602
|
-
//#region
|
|
7602
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/graphic/helper/roundRect.js
|
|
7603
7603
|
function buildPath(ctx, shape) {
|
|
7604
7604
|
var x = shape.x;
|
|
7605
7605
|
var y = shape.y;
|
|
@@ -7667,7 +7667,7 @@ function buildPath(ctx, shape) {
|
|
|
7667
7667
|
}
|
|
7668
7668
|
|
|
7669
7669
|
//#endregion
|
|
7670
|
-
//#region
|
|
7670
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js
|
|
7671
7671
|
var round = Math.round;
|
|
7672
7672
|
function subPixelOptimizeLine(outputShape, inputShape, style) {
|
|
7673
7673
|
if (!inputShape) return;
|
|
@@ -7710,7 +7710,7 @@ function subPixelOptimize(position, lineWidth, positiveOrNegative) {
|
|
|
7710
7710
|
}
|
|
7711
7711
|
|
|
7712
7712
|
//#endregion
|
|
7713
|
-
//#region
|
|
7713
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/graphic/shape/Rect.js
|
|
7714
7714
|
var RectShape = function() {
|
|
7715
7715
|
function RectShape() {
|
|
7716
7716
|
this.x = 0;
|
|
@@ -7759,7 +7759,7 @@ var Rect = function(_super) {
|
|
|
7759
7759
|
Rect.prototype.type = "rect";
|
|
7760
7760
|
|
|
7761
7761
|
//#endregion
|
|
7762
|
-
//#region
|
|
7762
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/graphic/Text.js
|
|
7763
7763
|
var DEFAULT_RICH_TEXT_COLOR = { fill: "#000" };
|
|
7764
7764
|
var DEFAULT_STROKE_LINE_WIDTH = 2;
|
|
7765
7765
|
var tmpCITOverflowAreaOut = {};
|
|
@@ -8216,7 +8216,7 @@ function needDrawBackground(style) {
|
|
|
8216
8216
|
}
|
|
8217
8217
|
|
|
8218
8218
|
//#endregion
|
|
8219
|
-
//#region
|
|
8219
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/graphic/Group.js
|
|
8220
8220
|
var Group = function(_super) {
|
|
8221
8221
|
__extends(Group, _super);
|
|
8222
8222
|
function Group(opts) {
|
|
@@ -8361,7 +8361,7 @@ var Group = function(_super) {
|
|
|
8361
8361
|
Group.prototype.type = "group";
|
|
8362
8362
|
|
|
8363
8363
|
//#endregion
|
|
8364
|
-
//#region
|
|
8364
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/graphic/CompoundPath.js
|
|
8365
8365
|
var CompoundPath = function(_super) {
|
|
8366
8366
|
__extends(CompoundPath, _super);
|
|
8367
8367
|
function CompoundPath() {
|
|
@@ -8400,7 +8400,7 @@ var CompoundPath = function(_super) {
|
|
|
8400
8400
|
}(Path);
|
|
8401
8401
|
|
|
8402
8402
|
//#endregion
|
|
8403
|
-
//#region
|
|
8403
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/fourPointsTransform.js
|
|
8404
8404
|
var LN2 = Math.log(2);
|
|
8405
8405
|
function determinant(rows, rank, rowStart, rowMask, colMask, detCache) {
|
|
8406
8406
|
var cacheKey = rowMask + "-" + colMask;
|
|
@@ -8523,7 +8523,7 @@ function buildTransformer(src, dest) {
|
|
|
8523
8523
|
}
|
|
8524
8524
|
|
|
8525
8525
|
//#endregion
|
|
8526
|
-
//#region
|
|
8526
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/dom.js
|
|
8527
8527
|
var EVENT_SAVED_PROP = "___zrEVENTSAVED";
|
|
8528
8528
|
var _calcOut$1 = [];
|
|
8529
8529
|
function transformLocalCoord(out, elFrom, elTarget, inX, inY) {
|
|
@@ -8623,7 +8623,7 @@ function encodeHTML(source) {
|
|
|
8623
8623
|
}
|
|
8624
8624
|
|
|
8625
8625
|
//#endregion
|
|
8626
|
-
//#region
|
|
8626
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/mixin/Draggable.js
|
|
8627
8627
|
var Param = function() {
|
|
8628
8628
|
function Param(target, e) {
|
|
8629
8629
|
this.target = target;
|
|
@@ -8681,7 +8681,7 @@ var Draggable = function() {
|
|
|
8681
8681
|
}();
|
|
8682
8682
|
|
|
8683
8683
|
//#endregion
|
|
8684
|
-
//#region
|
|
8684
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/event.js
|
|
8685
8685
|
var MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/;
|
|
8686
8686
|
var _calcOut = [];
|
|
8687
8687
|
var firefoxNotSupportOffsetXY = env.browser.firefox && +env.browser.version.split(".")[0] < 39;
|
|
@@ -8759,7 +8759,7 @@ function isMiddleOrRightButtonOnMouseUpDown(e) {
|
|
|
8759
8759
|
}
|
|
8760
8760
|
|
|
8761
8761
|
//#endregion
|
|
8762
|
-
//#region
|
|
8762
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/GestureMgr.js
|
|
8763
8763
|
var GestureMgr = function() {
|
|
8764
8764
|
function GestureMgr() {
|
|
8765
8765
|
this._track = [];
|
|
@@ -8826,7 +8826,7 @@ var recognizers = { pinch: function(tracks, event) {
|
|
|
8826
8826
|
} };
|
|
8827
8827
|
|
|
8828
8828
|
//#endregion
|
|
8829
|
-
//#region
|
|
8829
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/Handler.js
|
|
8830
8830
|
var SILENT = "silent";
|
|
8831
8831
|
function makeEventPacket(eveType, targetInfo, event) {
|
|
8832
8832
|
return {
|
|
@@ -9080,7 +9080,7 @@ function isOutsideBoundary(handlerInstance, x, y) {
|
|
|
9080
9080
|
}
|
|
9081
9081
|
|
|
9082
9082
|
//#endregion
|
|
9083
|
-
//#region
|
|
9083
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/core/timsort.js
|
|
9084
9084
|
var DEFAULT_MIN_MERGE = 32;
|
|
9085
9085
|
var DEFAULT_MIN_GALLOPING = 7;
|
|
9086
9086
|
function minRunLength(n) {
|
|
@@ -9485,7 +9485,7 @@ function sort(array, compare, lo, hi) {
|
|
|
9485
9485
|
}
|
|
9486
9486
|
|
|
9487
9487
|
//#endregion
|
|
9488
|
-
//#region
|
|
9488
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/Storage.js
|
|
9489
9489
|
var invalidZErrorLogged = false;
|
|
9490
9490
|
function logInvalidZError() {
|
|
9491
9491
|
if (invalidZErrorLogged) return;
|
|
@@ -9605,13 +9605,13 @@ var Storage = function() {
|
|
|
9605
9605
|
}();
|
|
9606
9606
|
|
|
9607
9607
|
//#endregion
|
|
9608
|
-
//#region
|
|
9608
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/animation/requestAnimationFrame.js
|
|
9609
9609
|
var requestAnimationFrame = env.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(func) {
|
|
9610
9610
|
return setTimeout(func, 16);
|
|
9611
9611
|
};
|
|
9612
9612
|
|
|
9613
9613
|
//#endregion
|
|
9614
|
-
//#region
|
|
9614
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/animation/Animation.js
|
|
9615
9615
|
function getTime() {
|
|
9616
9616
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
9617
9617
|
}
|
|
@@ -9732,7 +9732,7 @@ var Animation = function(_super) {
|
|
|
9732
9732
|
}(Eventful);
|
|
9733
9733
|
|
|
9734
9734
|
//#endregion
|
|
9735
|
-
//#region
|
|
9735
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/dom/HandlerProxy.js
|
|
9736
9736
|
var TOUCH_CLICK_DELAY = 300;
|
|
9737
9737
|
var globalEventSupported = env.domSupported;
|
|
9738
9738
|
var localNativeListenerNames = (function() {
|
|
@@ -9998,7 +9998,7 @@ var HandlerDomProxy = function(_super) {
|
|
|
9998
9998
|
}(Eventful);
|
|
9999
9999
|
|
|
10000
10000
|
//#endregion
|
|
10001
|
-
//#region
|
|
10001
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/zrender.js
|
|
10002
10002
|
/*!
|
|
10003
10003
|
* ZRender, a high performance 2d drawing library.
|
|
10004
10004
|
*
|
|
@@ -10241,7 +10241,7 @@ function registerSSRDataGetter(getter) {
|
|
|
10241
10241
|
var version = "6.0.0";
|
|
10242
10242
|
|
|
10243
10243
|
//#endregion
|
|
10244
|
-
//#region
|
|
10244
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/canvas/helper.js
|
|
10245
10245
|
function isSafeNum(num) {
|
|
10246
10246
|
return isFinite(num);
|
|
10247
10247
|
}
|
|
@@ -10305,7 +10305,7 @@ function getSize(root, whIdx, opts) {
|
|
|
10305
10305
|
}
|
|
10306
10306
|
|
|
10307
10307
|
//#endregion
|
|
10308
|
-
//#region
|
|
10308
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/canvas/dashStyle.js
|
|
10309
10309
|
function normalizeLineDash(lineType, lineWidth) {
|
|
10310
10310
|
if (!lineType || lineType === "solid" || !(lineWidth > 0)) return null;
|
|
10311
10311
|
return lineType === "dashed" ? [4 * lineWidth, 2 * lineWidth] : lineType === "dotted" ? [lineWidth] : isNumber(lineType) ? [lineType] : isArray(lineType) ? lineType : null;
|
|
@@ -10327,7 +10327,7 @@ function getLineDash(el) {
|
|
|
10327
10327
|
}
|
|
10328
10328
|
|
|
10329
10329
|
//#endregion
|
|
10330
|
-
//#region
|
|
10330
|
+
//#region ../../../node_modules/.bun/zrender@6.0.0/node_modules/zrender/lib/canvas/graphic.js
|
|
10331
10331
|
var pathProxyForDraw = new PathProxy(true);
|
|
10332
10332
|
function styleHasStroke(style) {
|
|
10333
10333
|
var stroke = style.stroke;
|
|
@@ -10768,4 +10768,4 @@ function brushIncremental(ctx, el, scope) {
|
|
|
10768
10768
|
|
|
10769
10769
|
//#endregion
|
|
10770
10770
|
export { hasShadow as $, retrieve3 as $n, createIntersectContext as $t, ZRImage as A, isArray as An, applyTransform as At, fromPoints as B, isStringSafe as Bn, min$1 as Bt, ZRText as C, eqNaN as Cn, quadraticAt as Ct, subPixelOptimize as D, hasOwn as Dn, Transformable as Dt, Rect as E, find as En, TRANSFORMABLE_PROPS as Et, normalizeRadian as F, isImagePatternObject as Fn, distSquare as Ft, TEXT_ALIGN_TO_ANCHOR as G, merge as Gn, sub as Gt, devicePixelRatio as H, keys as Hn, scale as Ht, containStroke$2 as I, isNumber as In, distance as It, getIdURL as J, noop as Jn, calculateTextPosition as Jt, adjustTextY as K, mergeAll as Kn, vector_exports as Kt, containStroke$4 as L, isObject as Ln, len as Lt, DEFAULT_PATH_STYLE as M, isDom as Mn, copy as Mt, Path as N, isFunction as Nn, create as Nt, subPixelOptimizeLine as O, indexOf as On, copyTransform as Ot, windingLine as P, isGradientObject as Pn, dist$1 as Pt, getShadowKey as Q, retrieve2 as Qn, BoundingRect as Qt, PathProxy as R, isRegExp as Rn, lerp$1 as Rt, Group as S, each as Sn, cubicSubdivide as St, parseFontSize as T, filter as Tn, quadraticSubdivide as Tt, Eventful as U, logError as Un, scaleAndAdd as Ut, Displayable as V, isTypedArray as Vn, normalize as Vt, cloneValue as W, map as Wn, set as Wt, getPathPrecision as X, reduce as Xn, getLineHeight as Xt, getMatrixStr as Y, normalizeCssArray as Yn, getBoundingRect as Yt, getSRTTransformString as Z, retrieve as Zn, parsePercent as Zt, stop as _, concatArray as _n, stringify as _t, getCanvasGradient as a, invert as an, DEFAULT_FONT_FAMILY as ar, isRadialGradient as at, transformLocalCoordClear as b, defaults as bn, cubicDerivativeAt as bt, init as c, rotate as cn, __extends as cr, color_exports as ct, zrender_exports as d, createOrUpdateImage as dn, lift as dt, Point as en, setAsPrimitive as er, isAroundZero as et, requestAnimationFrame as f, LRU as fn, liftColor as ft, normalizeEvent as g, clone$2 as gn, parseCssFloat as gt, isMiddleOrRightButtonOnMouseUpDown as h, bind as hn, parse as ht, getLineDash as i, identity as in, DEFAULT_FONT as ir, isPattern as it, TSpan as j, isArrayLike as jn, clone as jt, subPixelOptimizeRect as k, inherits as kn, add as kt, registerPainter as l, scale$1 as ln, __exportAll as lr, fastLerp as lt, addEventListener as m, assert as mn, modifyHSL as mt, brushSingle as n, copy$1 as nn, trim as nr, isImagePattern as nt, getSize as o, matrix_exports as on, platformApi as or, normalizeColor as ot, sort as p, env as pn, modifyAlpha as pt, encodeBase64 as q, mixin as qn, truncateText as qt, createCanvasPattern as r, create$1 as rn, util_exports as rr, isLinearGradient as rt, getElementSSRData as s, mul$1 as sn, setPlatformAPI as sr, round4 as st, brush as t, clone$1 as tn, slice as tr, isGradient as tt, registerSSRDataGetter as u, translate as un, lerp as ut, encodeHTML as v, createHashMap as vn, createCubicEasingFunc as vt, hasSeparateFont as w, extend as wn, quadraticDerivativeAt as wt, CompoundPath as x, disableUserSelect as xn, cubicRootAt as xt, transformLocalCoord as y, curry as yn, cubicAt as yt, normalizeArcAngles as z, isString as zn, max$1 as zt };
|
|
10771
|
-
//# sourceMappingURL=graphic-
|
|
10771
|
+
//# sourceMappingURL=graphic-Bt7SEwll.js.map
|