@webskill/sdk 0.10.0 → 0.12.0

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.
Files changed (35) hide show
  1. package/dist/agent.d.ts +3 -2
  2. package/dist/agent.js +3 -1102
  3. package/dist/browser.d.ts +258 -11
  4. package/dist/browser.js +763 -47
  5. package/dist/{catalogComponents-DTcYfpLQ-CcoOaz-Z.js → catalogComponents-BgAJN0p8-C3K8klJd.js} +508 -923
  6. package/dist/dist-DU9KDAuR.js +1468 -0
  7. package/dist/{dist-1OFC-zax.js → dist-DqcL6jKO.js} +668 -60
  8. package/dist/{dist-BViUeszk.js → dist-sdKFgERo.js} +956 -115
  9. package/dist/{echarts-DhNm2ene.js → echarts-De78wXqV.js} +599 -61
  10. package/dist/{eventTypes-s2uwAcLG-Go3l_dUe.js → eventTypes-FllCrX-Z-DNDeHWoG.js} +6 -2
  11. package/dist/governance.d.ts +7 -3
  12. package/dist/governance.js +1 -1
  13. package/dist/{index-B0QPLWPZ.d.ts → index-3fCHc1mQ.d.ts} +198 -11
  14. package/dist/{index-DtFdMKBX.d.ts → index-C9pzXLKy.d.ts} +366 -9
  15. package/dist/{index-BF4E1a9j.d.ts → index-DFhU1uks.d.ts} +286 -19
  16. package/dist/index.d.ts +4 -4
  17. package/dist/index.js +3 -3
  18. package/dist/mcp.d.ts +58 -7
  19. package/dist/mcp.js +124 -21
  20. package/dist/node.d.ts +3 -3
  21. package/dist/node.js +60 -4
  22. package/dist/{openUiLibrary-CIrV--Ad-B8zG_91e.js → openUiLibrary-BKXW7Iwx-DaymVubt.js} +3 -3
  23. package/dist/processSandboxEntry.js +8 -1
  24. package/dist/sandboxWorkerEntry.js +8 -1
  25. package/dist/{skillVersionStore-D-qHk9ZE-DBsYYCWn.d.ts → skillVersionStore-D-qHk9ZE-DheTIwAB.d.ts} +1 -1
  26. package/dist/testing.d.ts +1 -1
  27. package/dist/{types-CrRcT-LM-DZAp8sWv.d.ts → types-DLctJep_-B5G4uk2u.d.ts} +22 -5
  28. package/dist/ui-react.d.ts +13 -4
  29. package/dist/ui-react.js +93 -259
  30. package/dist/ui-vue.d.ts +1 -1
  31. package/dist/ui-vue.js +2 -2
  32. package/dist/ui.d.ts +4 -4
  33. package/dist/ui.js +3 -3
  34. package/dist/{webskillLitCatalog-BJrphK0y-SGmRXaaO.js → webskillLitCatalog-D_zCqeQF-C9lrvvMr.js} +135 -16
  35. package/package.json +1 -1
@@ -157,9 +157,66 @@ var platformApi = {
157
157
  return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
158
158
  }
159
159
  };
160
+ function setPlatformAPI(newPlatformApis) {
161
+ for (var key in platformApi) if (platformApi.hasOwnProperty(key) && newPlatformApis[key]) platformApi[key] = newPlatformApis[key];
162
+ }
160
163
 
161
164
  //#endregion
162
165
  //#region ../../node_modules/.pnpm/zrender@6.1.0/node_modules/zrender/lib/core/util.js
166
+ var util_exports$1 = /* @__PURE__ */ __exportAll({
167
+ EPSILON: () => EPSILON$5,
168
+ HashMap: () => HashMap,
169
+ RADIAN_TO_DEGREE: () => RADIAN_TO_DEGREE,
170
+ assert: () => assert,
171
+ assignProps: () => assignProps,
172
+ bind: () => bind$1,
173
+ clone: () => clone$4,
174
+ concatArray: () => concatArray,
175
+ createCanvas: () => createCanvas,
176
+ createHashMap: () => createHashMap,
177
+ createObject: () => createObject,
178
+ curry: () => curry$1,
179
+ defaults: () => defaults,
180
+ disableUserSelect: () => disableUserSelect,
181
+ each: () => each$12,
182
+ eqNaN: () => eqNaN,
183
+ extend: () => extend,
184
+ filter: () => filter,
185
+ find: () => find,
186
+ guid: () => guid,
187
+ hasOwn: () => hasOwn,
188
+ indexOf: () => indexOf,
189
+ inherits: () => inherits,
190
+ isArray: () => isArray$1,
191
+ isArrayLike: () => isArrayLike,
192
+ isBuiltInObject: () => isBuiltInObject,
193
+ isDom: () => isDom,
194
+ isFunction: () => isFunction,
195
+ isGradientObject: () => isGradientObject,
196
+ isImagePatternObject: () => isImagePatternObject,
197
+ isNumber: () => isNumber,
198
+ isObject: () => isObject$3,
199
+ isPrimitive: () => isPrimitive,
200
+ isRegExp: () => isRegExp,
201
+ isString: () => isString,
202
+ isStringSafe: () => isStringSafe,
203
+ isTypedArray: () => isTypedArray,
204
+ keys: () => keys,
205
+ logError: () => logError,
206
+ map: () => map$1,
207
+ merge: () => merge,
208
+ mergeAll: () => mergeAll,
209
+ mixin: () => mixin,
210
+ noop: () => noop,
211
+ normalizeCssArray: () => normalizeCssArray$1,
212
+ reduce: () => reduce,
213
+ retrieve: () => retrieve,
214
+ retrieve2: () => retrieve2,
215
+ retrieve3: () => retrieve3,
216
+ setAsPrimitive: () => setAsPrimitive,
217
+ slice: () => slice,
218
+ trim: () => trim$1
219
+ });
163
220
  var BUILTIN_OBJECT = reduce([
164
221
  "Function",
165
222
  "RegExp",
@@ -556,6 +613,33 @@ var EPSILON$5 = Number.EPSILON || Math.pow(2, -52);
556
613
 
557
614
  //#endregion
558
615
  //#region ../../node_modules/.pnpm/zrender@6.1.0/node_modules/zrender/lib/core/vector.js
616
+ var vector_exports = /* @__PURE__ */ __exportAll({
617
+ add: () => add,
618
+ applyTransform: () => applyTransform$1,
619
+ clone: () => clone$3,
620
+ copy: () => copy$1,
621
+ create: () => create$2,
622
+ dist: () => dist$1,
623
+ distSquare: () => distSquare,
624
+ distance: () => distance,
625
+ distanceSquare: () => distanceSquare,
626
+ div: () => div,
627
+ dot: () => dot,
628
+ len: () => len,
629
+ lenSquare: () => lenSquare,
630
+ length: () => length,
631
+ lengthSquare: () => lengthSquare,
632
+ lerp: () => lerp$1,
633
+ max: () => max$1,
634
+ min: () => min$1,
635
+ mul: () => mul$1,
636
+ negate: () => negate,
637
+ normalize: () => normalize$2,
638
+ scale: () => scale$1,
639
+ scaleAndAdd: () => scaleAndAdd$1,
640
+ set: () => set$1,
641
+ sub: () => sub
642
+ });
559
643
  function create$2(x, y) {
560
644
  if (x == null) x = 0;
561
645
  if (y == null) y = 0;
@@ -592,9 +676,24 @@ function sub(out, v1, v2) {
592
676
  function len(v) {
593
677
  return Math.sqrt(lenSquare(v));
594
678
  }
679
+ var length = len;
595
680
  function lenSquare(v) {
596
681
  return v[0] * v[0] + v[1] * v[1];
597
682
  }
683
+ var lengthSquare = lenSquare;
684
+ function mul$1(out, v1, v2) {
685
+ out[0] = v1[0] * v2[0];
686
+ out[1] = v1[1] * v2[1];
687
+ return out;
688
+ }
689
+ function div(out, v1, v2) {
690
+ out[0] = v1[0] / v2[0];
691
+ out[1] = v1[1] / v2[1];
692
+ return out;
693
+ }
694
+ function dot(v1, v2) {
695
+ return v1[0] * v2[0] + v1[1] * v2[1];
696
+ }
598
697
  function scale$1(out, v, s) {
599
698
  out[0] = v[0] * s;
600
699
  out[1] = v[1] * s;
@@ -619,6 +718,11 @@ function distanceSquare(v1, v2) {
619
718
  return (v1[0] - v2[0]) * (v1[0] - v2[0]) + (v1[1] - v2[1]) * (v1[1] - v2[1]);
620
719
  }
621
720
  var distSquare = distanceSquare;
721
+ function negate(out, v) {
722
+ out[0] = -v[0];
723
+ out[1] = -v[1];
724
+ return out;
725
+ }
622
726
  function lerp$1(out, v1, v2, t) {
623
727
  out[0] = v1[0] + t * (v2[0] - v1[0]);
624
728
  out[1] = v1[1] + t * (v2[1] - v1[1]);
@@ -1187,6 +1291,17 @@ var recognizers = { pinch: function(tracks, event) {
1187
1291
 
1188
1292
  //#endregion
1189
1293
  //#region ../../node_modules/.pnpm/zrender@6.1.0/node_modules/zrender/lib/core/matrix.js
1294
+ var matrix_exports = /* @__PURE__ */ __exportAll({
1295
+ clone: () => clone$2,
1296
+ copy: () => copy,
1297
+ create: () => create$1,
1298
+ identity: () => identity,
1299
+ invert: () => invert,
1300
+ mul: () => mul,
1301
+ rotate: () => rotate,
1302
+ scale: () => scale,
1303
+ translate: () => translate
1304
+ });
1190
1305
  function create$1() {
1191
1306
  return [
1192
1307
  1,
@@ -3076,6 +3191,23 @@ var LRU = function() {
3076
3191
 
3077
3192
  //#endregion
3078
3193
  //#region ../../node_modules/.pnpm/zrender@6.1.0/node_modules/zrender/lib/tool/color.js
3194
+ var color_exports = /* @__PURE__ */ __exportAll({
3195
+ fastLerp: () => fastLerp,
3196
+ fastMapToColor: () => fastMapToColor,
3197
+ lerp: () => lerp,
3198
+ lift: () => lift,
3199
+ liftColor: () => liftColor,
3200
+ lum: () => lum,
3201
+ mapToColor: () => mapToColor,
3202
+ modifyAlpha: () => modifyAlpha,
3203
+ modifyHSL: () => modifyHSL,
3204
+ parse: () => parse,
3205
+ parseCssFloat: () => parseCssFloat,
3206
+ parseCssInt: () => parseCssInt,
3207
+ random: () => random,
3208
+ stringify: () => stringify,
3209
+ toHex: () => toHex
3210
+ });
3079
3211
  var kCSSColorTable = {
3080
3212
  "transparent": [
3081
3213
  0,
@@ -4150,6 +4282,10 @@ function lift(color, level) {
4150
4282
  return stringify(colorArr, colorArr.length === 4 ? "rgba" : "rgb");
4151
4283
  }
4152
4284
  }
4285
+ function toHex(color) {
4286
+ var colorArr = parse(color);
4287
+ if (colorArr) return ((1 << 24) + (colorArr[0] << 16) + (colorArr[1] << 8) + +colorArr[2]).toString(16).slice(1);
4288
+ }
4153
4289
  function fastLerp(normalizedValue, colors, out) {
4154
4290
  if (!(colors && colors.length) || !(normalizedValue >= 0 && normalizedValue <= 1)) return;
4155
4291
  out = out || [];
@@ -4165,6 +4301,7 @@ function fastLerp(normalizedValue, colors, out) {
4165
4301
  out[3] = clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv));
4166
4302
  return out;
4167
4303
  }
4304
+ var fastMapToColor = fastLerp;
4168
4305
  function lerp(normalizedValue, colors, fullOutput) {
4169
4306
  if (!(colors && colors.length) || !(normalizedValue >= 0 && normalizedValue <= 1)) return;
4170
4307
  var value = normalizedValue * (colors.length - 1);
@@ -4186,6 +4323,7 @@ function lerp(normalizedValue, colors, fullOutput) {
4186
4323
  value
4187
4324
  } : color;
4188
4325
  }
4326
+ var mapToColor = lerp;
4189
4327
  function modifyHSL(color, h, s, l) {
4190
4328
  var colorArr = parse(color);
4191
4329
  if (color) {
@@ -4213,6 +4351,13 @@ function lum(color, backgroundLum) {
4213
4351
  var arr = parse(color);
4214
4352
  return arr ? (.299 * arr[0] + .587 * arr[1] + .114 * arr[2]) * arr[3] / 255 + (1 - arr[3]) * backgroundLum : 0;
4215
4353
  }
4354
+ function random() {
4355
+ return stringify([
4356
+ Math.round(Math.random() * 255),
4357
+ Math.round(Math.random() * 255),
4358
+ Math.round(Math.random() * 255)
4359
+ ], "rgb");
4360
+ }
4216
4361
  var liftedColorCache = new LRU(100);
4217
4362
  function liftColor(color) {
4218
4363
  if (isString(color)) {
@@ -6615,6 +6760,16 @@ Group$3.prototype.type = "group";
6615
6760
  * LICENSE
6616
6761
  * https://github.com/ecomfe/zrender/blob/master/LICENSE
6617
6762
  */
6763
+ var zrender_exports = /* @__PURE__ */ __exportAll({
6764
+ dispose: () => dispose$1,
6765
+ disposeAll: () => disposeAll,
6766
+ getElementSSRData: () => getElementSSRData,
6767
+ getInstance: () => getInstance,
6768
+ init: () => init$2,
6769
+ registerPainter: () => registerPainter,
6770
+ registerSSRDataGetter: () => registerSSRDataGetter,
6771
+ version: () => version$1
6772
+ });
6618
6773
  var painterCtors = {};
6619
6774
  var instances$1 = {};
6620
6775
  function delInstance(id) {
@@ -6830,6 +6985,16 @@ function init$2(dom, opts) {
6830
6985
  instances$1[zr.id] = zr;
6831
6986
  return zr;
6832
6987
  }
6988
+ function dispose$1(zr) {
6989
+ zr.dispose();
6990
+ }
6991
+ function disposeAll() {
6992
+ for (var key in instances$1) if (instances$1.hasOwnProperty(key)) instances$1[key].dispose();
6993
+ instances$1 = {};
6994
+ }
6995
+ function getInstance(id) {
6996
+ return instances$1[id];
6997
+ }
6833
6998
  function registerPainter(name, Ctor) {
6834
6999
  painterCtors[name] = Ctor;
6835
7000
  }
@@ -6840,6 +7005,7 @@ function getElementSSRData(el) {
6840
7005
  function registerSSRDataGetter(getter) {
6841
7006
  ssrDataGetter = getter;
6842
7007
  }
7008
+ var version$1 = "6.1.0";
6843
7009
 
6844
7010
  //#endregion
6845
7011
  //#region ../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/util/number.js
@@ -6944,6 +7110,10 @@ function round$3(x, precision, returnStr) {
6944
7110
  x = (+x).toFixed(precision);
6945
7111
  return returnStr ? x : +x;
6946
7112
  }
7113
+ function roundLegacy(x, precision, returnStr) {
7114
+ if (precision == null) precision = 10;
7115
+ return round$3(x, precision, returnStr);
7116
+ }
6947
7117
  /**
6948
7118
  * Inplacd asc sort arr.
6949
7119
  * The input arr will be modified.
@@ -6982,6 +7152,18 @@ function getPrecisionSafe(val) {
6982
7152
  return mathMax$9(0, (dotIndex < 0 ? 0 : significandPartLen - 1 - dotIndex) - exp);
6983
7153
  }
6984
7154
  /**
7155
+ * @deprecated Use `getAcceptableTickPrecision` instead. See bad case in `test/ut/spec/util/number.test.ts`
7156
+ * NOTE: originally introduced in commit `ff93e3e7f9ff24902e10d4469fd3187393b05feb`
7157
+ *
7158
+ * Minimal discernible data precision according to a single pixel.
7159
+ */
7160
+ function getPixelPrecision(dataExtent, pixelExtent) {
7161
+ var dataQuantity = mathFloor(mathLog(dataExtent[1] - dataExtent[0]) / mathLN10);
7162
+ var sizeQuantity = mathRound$1(mathLog(mathAbs$4(pixelExtent[1] - pixelExtent[0])) / mathLN10);
7163
+ var precision = mathMin$9(mathMax$9(-dataQuantity + sizeQuantity, 0), TO_FIXED_SUPPORTED_PRECISION_MAX);
7164
+ return !isFinite(precision) ? TO_FIXED_SUPPORTED_PRECISION_MAX : precision;
7165
+ }
7166
+ /**
6985
7167
  * This method chooses a reasonable "data" precision that can be used in `round` method.
6986
7168
  * A reasonable precision is suitable for display; it may cause cumulative error but acceptable.
6987
7169
  *
@@ -7012,6 +7194,21 @@ function getAcceptableTickPrecision(dataExtent, pxSpan, pxDiffAcceptable) {
7012
7194
  * https://en.wikipedia.org/wiki/Largest_remainder_method
7013
7195
  *
7014
7196
  * @param valueList a list of all data
7197
+ * @param idx index of the data to be processed in valueList
7198
+ * @param precision integer number showing digits of precision
7199
+ * @return percent ranging from 0 to 100
7200
+ */
7201
+ function getPercentWithPrecision(valueList, idx, precision) {
7202
+ if (!valueList[idx]) return 0;
7203
+ return getPercentSeats(valueList, precision)[idx] || 0;
7204
+ }
7205
+ /**
7206
+ * Get a data of given precision, assuring the sum of percentages
7207
+ * in valueList is 1.
7208
+ * The largest remainder method is used.
7209
+ * https://en.wikipedia.org/wiki/Largest_remainder_method
7210
+ *
7211
+ * @param valueList a list of all data
7015
7212
  * @param precision integer number showing digits of precision
7016
7213
  * @return {Array<number>}
7017
7214
  */
@@ -8413,6 +8610,11 @@ function isImageReady(image) {
8413
8610
  //#endregion
8414
8611
  //#region ../../node_modules/.pnpm/zrender@6.1.0/node_modules/zrender/lib/graphic/helper/parseText.js
8415
8612
  var STYLE_REG = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;
8613
+ function truncateText(text, containerWidth, font, ellipsis, options) {
8614
+ var out = {};
8615
+ truncateText2(out, text, containerWidth, font, ellipsis, options);
8616
+ return out.text;
8617
+ }
8416
8618
  function truncateText2(out, text, containerWidth, font, ellipsis, options) {
8417
8619
  if (!containerWidth) {
8418
8620
  out.text = "";
@@ -13286,7 +13488,7 @@ function getOldStyle(el) {
13286
13488
  /**
13287
13489
  * AUTO-GENERATED FILE. DO NOT MODIFY.
13288
13490
  */
13289
- var graphic_exports = /* @__PURE__ */ __exportAll({
13491
+ var graphic_exports$1 = /* @__PURE__ */ __exportAll({
13290
13492
  Arc: () => Arc,
13291
13493
  BezierCurve: () => BezierCurve,
13292
13494
  BoundingRect: () => BoundingRect,
@@ -13975,7 +14177,7 @@ function setLabelStyle(targetEl, labelStatesModels, opt, stateSpecified) {
13975
14177
  var labelStatesTexts = getLabelText(opt, labelStatesModels);
13976
14178
  var normalModel = labelStatesModels.normal;
13977
14179
  var showNormal = !!normalModel.getShallow("show");
13978
- var normalStyle = createTextStyle(normalModel, stateSpecified && stateSpecified.normal, opt, false, !isSetOnText);
14180
+ var normalStyle = createTextStyle$1(normalModel, stateSpecified && stateSpecified.normal, opt, false, !isSetOnText);
13979
14181
  normalStyle.text = labelStatesTexts.normal;
13980
14182
  if (!isSetOnText) targetEl.setTextConfig(createTextConfig(normalModel, opt, false));
13981
14183
  for (var i = 0; i < SPECIAL_STATES.length; i++) {
@@ -13985,7 +14187,7 @@ function setLabelStyle(targetEl, labelStatesModels, opt, stateSpecified) {
13985
14187
  var stateObj = textContent.ensureState(stateName);
13986
14188
  var stateShow = !!retrieve2(stateModel.getShallow("show"), showNormal);
13987
14189
  if (stateShow !== showNormal) stateObj.ignore = !stateShow;
13988
- stateObj.style = createTextStyle(stateModel, stateSpecified && stateSpecified[stateName], opt, true, !isSetOnText);
14190
+ stateObj.style = createTextStyle$1(stateModel, stateSpecified && stateSpecified[stateName], opt, true, !isSetOnText);
13989
14191
  stateObj.style.text = labelStatesTexts[stateName];
13990
14192
  if (!isSetOnText) {
13991
14193
  var targetElEmphasisState = targetEl.ensureState(stateName);
@@ -14018,7 +14220,7 @@ function getLabelStatesModels(itemModel, labelName) {
14018
14220
  /**
14019
14221
  * Set basic textStyle properties.
14020
14222
  */
14021
- function createTextStyle(textStyleModel, specifiedTextStyle, opt, isNotNormal, isAttached) {
14223
+ function createTextStyle$1(textStyleModel, specifiedTextStyle, opt, isNotNormal, isAttached) {
14022
14224
  var textStyle = {};
14023
14225
  setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached);
14024
14226
  specifiedTextStyle && extend(textStyle, specifiedTextStyle);
@@ -15240,6 +15442,24 @@ function millisecondsSetterName(isUTC) {
15240
15442
  return isUTC ? "setUTCMilliseconds" : "setMilliseconds";
15241
15443
  }
15242
15444
 
15445
+ //#endregion
15446
+ //#region ../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/legacy/getTextRect.js
15447
+ /**
15448
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
15449
+ */
15450
+ function getTextRect(text, font, align, verticalAlign, padding, rich, truncate, lineHeight) {
15451
+ return new ZRText({ style: {
15452
+ text,
15453
+ font,
15454
+ align,
15455
+ verticalAlign,
15456
+ padding,
15457
+ rich,
15458
+ overflow: truncate ? "truncate" : null,
15459
+ lineHeight
15460
+ } }).getBoundingRect();
15461
+ }
15462
+
15243
15463
  //#endregion
15244
15464
  //#region ../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/util/format.js
15245
15465
  /**
@@ -15355,6 +15575,39 @@ function getTooltipMarker(inOpt, extraCssText) {
15355
15575
  };
15356
15576
  }
15357
15577
  /**
15578
+ * @deprecated Use `time/format` instead.
15579
+ * ISO Date format
15580
+ * @param {string} tpl
15581
+ * @param {number} value
15582
+ * @param {boolean} [isUTC=false] Default in local time.
15583
+ * see `module:echarts/scale/Time`
15584
+ * and `module:echarts/util/number#parseDate`.
15585
+ * @inner
15586
+ */
15587
+ function formatTime(tpl, value, isUTC) {
15588
+ if (process.env.NODE_ENV !== "production") deprecateReplaceLog("echarts.format.formatTime", "echarts.time.format");
15589
+ if (tpl === "week" || tpl === "month" || tpl === "quarter" || tpl === "half-year" || tpl === "year") tpl = "MM-dd\nyyyy";
15590
+ var date = parseDate(value);
15591
+ var getUTC = isUTC ? "getUTC" : "get";
15592
+ var y = date[getUTC + "FullYear"]();
15593
+ var M = date[getUTC + "Month"]() + 1;
15594
+ var d = date[getUTC + "Date"]();
15595
+ var h = date[getUTC + "Hours"]();
15596
+ var m = date[getUTC + "Minutes"]();
15597
+ var s = date[getUTC + "Seconds"]();
15598
+ var S = date[getUTC + "Milliseconds"]();
15599
+ tpl = tpl.replace("MM", pad(M, 2)).replace("M", M).replace("yyyy", y).replace("yy", pad(y % 100 + "", 2)).replace("dd", pad(d, 2)).replace("d", d).replace("hh", pad(h, 2)).replace("h", h).replace("mm", pad(m, 2)).replace("m", m).replace("ss", pad(s, 2)).replace("s", s).replace("SSS", pad(S, 3));
15600
+ return tpl;
15601
+ }
15602
+ /**
15603
+ * Capital first
15604
+ * @param {string} str
15605
+ * @return {string}
15606
+ */
15607
+ function capitalFirst(str) {
15608
+ return str ? str.charAt(0).toUpperCase() + str.substr(1) : str;
15609
+ }
15610
+ /**
15358
15611
  * @return Never be null/undefined.
15359
15612
  */
15360
15613
  function convertToColorString(color, defaultColor) {
@@ -17908,8 +18161,8 @@ function globalBackwardCompat(option, isTheme) {
17908
18161
  /**
17909
18162
  * AUTO-GENERATED FILE. DO NOT MODIFY.
17910
18163
  */
17911
- var dataStackStageHandler = createSimpleOverallStageHandler2(dataStack);
17912
- function dataStack(ecModel) {
18164
+ var dataStackStageHandler = createSimpleOverallStageHandler2(dataStack$1);
18165
+ function dataStack$1(ecModel) {
17913
18166
  var stackInfoMap = createHashMap();
17914
18167
  ecModel.eachSeries(function(seriesModel) {
17915
18168
  var stack = seriesModel.get("stack");
@@ -22206,7 +22459,7 @@ function getImpl(name) {
22206
22459
  * AUTO-GENERATED FILE. DO NOT MODIFY.
22207
22460
  */
22208
22461
  var customRenderers = {};
22209
- function registerCustomSeries(type, renderItem) {
22462
+ function registerCustomSeries$1(type, renderItem) {
22210
22463
  customRenderers[type] = renderItem;
22211
22464
  }
22212
22465
  function getCustomSeries(type) {
@@ -23415,6 +23668,8 @@ function decalVisual(ecModel, api) {
23415
23668
  /**
23416
23669
  * AUTO-GENERATED FILE. DO NOT MODIFY.
23417
23670
  */
23671
+ var version = "6.1.0";
23672
+ var dependencies = { zrender: "6.1.0" };
23418
23673
  var TEST_FRAME_REMAIN_TIME = 1;
23419
23674
  var PRIORITY_PROCESSOR_SERIES_FILTER = 800;
23420
23675
  var PRIORITY_PROCESSOR_DATASTACK = 900;
@@ -24982,9 +25237,60 @@ function init(dom, theme, opts) {
24982
25237
  lifecycle.trigger("afterinit", chart);
24983
25238
  return chart;
24984
25239
  }
25240
+ /**
25241
+ * @usage
25242
+ * (A)
25243
+ * ```js
25244
+ * let chart1 = echarts.init(dom1);
25245
+ * let chart2 = echarts.init(dom2);
25246
+ * chart1.group = 'xxx';
25247
+ * chart2.group = 'xxx';
25248
+ * echarts.connect('xxx');
25249
+ * ```
25250
+ * (B)
25251
+ * ```js
25252
+ * let chart1 = echarts.init(dom1);
25253
+ * let chart2 = echarts.init(dom2);
25254
+ * echarts.connect('xxx', [chart1, chart2]);
25255
+ * ```
25256
+ */
25257
+ function connect(groupId) {
25258
+ if (isArray$1(groupId)) {
25259
+ var charts = groupId;
25260
+ groupId = null;
25261
+ each$12(charts, function(chart) {
25262
+ if (chart.group != null) groupId = chart.group;
25263
+ });
25264
+ groupId = groupId || "g_" + groupIdBase++;
25265
+ each$12(charts, function(chart) {
25266
+ chart.group = groupId;
25267
+ });
25268
+ }
25269
+ connectedGroups[groupId] = true;
25270
+ return groupId;
25271
+ }
25272
+ function disconnect(groupId) {
25273
+ connectedGroups[groupId] = false;
25274
+ }
25275
+ /**
25276
+ * Alias and backward compatibility
25277
+ * @deprecated
25278
+ */
25279
+ var disConnect = disconnect;
25280
+ /**
25281
+ * Dispose a chart instance
25282
+ */
25283
+ function dispose(chart) {
25284
+ if (isString(chart)) chart = instances[chart];
25285
+ else if (!(chart instanceof ECharts)) chart = getInstanceByDom(chart);
25286
+ if (chart instanceof ECharts && !chart.isDisposed()) chart.dispose();
25287
+ }
24985
25288
  function getInstanceByDom(dom) {
24986
25289
  return instances[getAttribute(dom, DOM_ATTRIBUTE_KEY)];
24987
25290
  }
25291
+ function getInstanceById(key) {
25292
+ return instances[key];
25293
+ }
24988
25294
  /**
24989
25295
  * Register theme
24990
25296
  */
@@ -25020,7 +25326,7 @@ function registerPostUpdate(postUpdateFunc) {
25020
25326
  function registerUpdateLifecycle(name, cb) {
25021
25327
  lifecycle.on(name, cb);
25022
25328
  }
25023
- function registerAction$1(arg0, arg1, action) {
25329
+ function registerAction(arg0, arg1, action) {
25024
25330
  var actionType;
25025
25331
  var publicEventType;
25026
25332
  var refineEvent;
@@ -25065,6 +25371,18 @@ function registerAction$1(arg0, arg1, action) {
25065
25371
  function registerCoordinateSystem(type, coordSysCreator) {
25066
25372
  CoordinateSystemManager.register(type, coordSysCreator);
25067
25373
  }
25374
+ /**
25375
+ * Get dimensions of specified coordinate system.
25376
+ * @param {string} type
25377
+ * @return {Array.<string|Object>}
25378
+ */
25379
+ function getCoordinateSystemDimensions(type) {
25380
+ var coordSysCreator = CoordinateSystemManager.get(type);
25381
+ if (coordSysCreator) return coordSysCreator.getDimensionsInfo ? coordSysCreator.getDimensionsInfo() : coordSysCreator.dimensions.slice();
25382
+ }
25383
+ function registerCustomSeries(seriesType, renderItem) {
25384
+ registerCustomSeries$1(seriesType, renderItem);
25385
+ }
25068
25386
  function registerLayout(priority, layoutTask) {
25069
25387
  normalizeRegister(visualFuncs, priority, layoutTask, PRIORITY_VISUAL_LAYOUT, "layout", true);
25070
25388
  }
@@ -25097,13 +25415,37 @@ function registerLoading(name, loadingFx) {
25097
25415
  loadingEffects[name] = loadingFx;
25098
25416
  }
25099
25417
  /**
25418
+ * ZRender need a canvas context to do measureText.
25419
+ * But in node environment canvas may be created by node-canvas.
25420
+ * So we need to specify how to create a canvas instead of using document.createElement('canvas')
25421
+ *
25422
+ *
25423
+ * @deprecated use setPlatformAPI({ createCanvas }) instead.
25424
+ *
25425
+ * @example
25426
+ * let Canvas = require('canvas');
25427
+ * let echarts = require('echarts');
25428
+ * echarts.setCanvasCreator(function () {
25429
+ * // Small size is enough.
25430
+ * return new Canvas(32, 32);
25431
+ * });
25432
+ */
25433
+ function setCanvasCreator(creator) {
25434
+ if (process.env.NODE_ENV !== "production") deprecateLog("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead.");
25435
+ setPlatformAPI({ createCanvas: creator });
25436
+ }
25437
+ /**
25100
25438
  * The parameters and usage: see `geoSourceManager.registerMap`.
25101
25439
  * Compatible with previous `echarts.registerMap`.
25102
25440
  */
25103
- function registerMap$1(mapName, geoJson, specialAreas) {
25441
+ function registerMap(mapName, geoJson, specialAreas) {
25104
25442
  var registerMap = getImpl("registerMap");
25105
25443
  registerMap && registerMap(mapName, geoJson, specialAreas);
25106
25444
  }
25445
+ function getMap(mapName) {
25446
+ var getMap = getImpl("getMap");
25447
+ return getMap && getMap(mapName);
25448
+ }
25107
25449
  var registerTransform = registerExternalTransform;
25108
25450
  /**
25109
25451
  * Global dispatchAction to a specified chart instance.
@@ -25117,17 +25459,17 @@ registerVisual(PRIORITY_VISUAL_DECAL, decalVisualStageHandler);
25117
25459
  registerPreprocessor(globalBackwardCompat);
25118
25460
  registerProcessor(PRIORITY_PROCESSOR_DATASTACK, dataStackStageHandler);
25119
25461
  registerLoading("default", defaultLoading);
25120
- registerAction$1({
25462
+ registerAction({
25121
25463
  type: HIGHLIGHT_ACTION_TYPE,
25122
25464
  event: HIGHLIGHT_ACTION_TYPE,
25123
25465
  update: HIGHLIGHT_ACTION_TYPE
25124
25466
  }, noop);
25125
- registerAction$1({
25467
+ registerAction({
25126
25468
  type: DOWNPLAY_ACTION_TYPE,
25127
25469
  event: DOWNPLAY_ACTION_TYPE,
25128
25470
  update: DOWNPLAY_ACTION_TYPE
25129
25471
  }, noop);
25130
- registerAction$1({
25472
+ registerAction({
25131
25473
  type: SELECT_ACTION_TYPE,
25132
25474
  event: SELECT_CHANGED_EVENT_TYPE,
25133
25475
  update: SELECT_ACTION_TYPE,
@@ -25135,7 +25477,7 @@ registerAction$1({
25135
25477
  refineEvent: makeSelectChangedEvent,
25136
25478
  publishNonRefinedEvent: true
25137
25479
  });
25138
- registerAction$1({
25480
+ registerAction({
25139
25481
  type: UNSELECT_ACTION_TYPE,
25140
25482
  event: SELECT_CHANGED_EVENT_TYPE,
25141
25483
  update: UNSELECT_ACTION_TYPE,
@@ -25143,7 +25485,7 @@ registerAction$1({
25143
25485
  refineEvent: makeSelectChangedEvent,
25144
25486
  publishNonRefinedEvent: true
25145
25487
  });
25146
- registerAction$1({
25488
+ registerAction({
25147
25489
  type: TOGGLE_SELECT_ACTION_TYPE,
25148
25490
  event: SELECT_CHANGED_EVENT_TYPE,
25149
25491
  update: TOGGLE_SELECT_ACTION_TYPE,
@@ -25159,6 +25501,7 @@ function makeSelectChangedEvent(actionResultBatch, payload, ecModel, api) {
25159
25501
  }
25160
25502
  registerTheme("default", {});
25161
25503
  registerTheme("dark", theme);
25504
+ var dataTool = {};
25162
25505
 
25163
25506
  //#endregion
25164
25507
  //#region ../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/extension.js
@@ -25172,13 +25515,13 @@ var extensionRegisters = {
25172
25515
  registerPostInit,
25173
25516
  registerPostUpdate,
25174
25517
  registerUpdateLifecycle,
25175
- registerAction: registerAction$1,
25518
+ registerAction,
25176
25519
  registerCoordinateSystem,
25177
25520
  registerLayout,
25178
25521
  registerVisual,
25179
25522
  registerTransform,
25180
25523
  registerLoading,
25181
- registerMap: registerMap$1,
25524
+ registerMap,
25182
25525
  registerImpl,
25183
25526
  PRIORITY,
25184
25527
  ComponentModel,
@@ -25198,7 +25541,7 @@ var extensionRegisters = {
25198
25541
  ChartView.registerClass(ChartViewClass);
25199
25542
  },
25200
25543
  registerCustomSeries: function(seriesType, renderItem) {
25201
- registerCustomSeries(seriesType, renderItem);
25544
+ registerCustomSeries$1(seriesType, renderItem);
25202
25545
  },
25203
25546
  registerSubTypeDefaulter: function(componentType, defaulter) {
25204
25547
  ComponentModel.registerSubTypeDefaulter(componentType, defaulter);
@@ -26443,6 +26786,12 @@ var SeriesData = function() {
26443
26786
  * AUTO-GENERATED FILE. DO NOT MODIFY.
26444
26787
  */
26445
26788
  /**
26789
+ * For outside usage compat (like echarts-gl are using it).
26790
+ */
26791
+ function createDimensions(source, opt) {
26792
+ return prepareSeriesDataSchema(source, opt).dimensions;
26793
+ }
26794
+ /**
26446
26795
  * This method builds the relationship between:
26447
26796
  * + "what the coord sys or series requires (see `coordDimensions`)",
26448
26797
  * + "what the user defines (in `encode` and `dimensions`, see `opt.dimensionsDefine` and `opt.encodeDefine`)"
@@ -28990,6 +29339,64 @@ var scaleCalcNiceMethods = {
28990
29339
  ordinal: noop
28991
29340
  };
28992
29341
 
29342
+ //#endregion
29343
+ //#region ../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api/helper.js
29344
+ /**
29345
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
29346
+ */
29347
+ /**
29348
+ * This module exposes helper functions for developing extensions.
29349
+ */
29350
+ var helper_exports = /* @__PURE__ */ __exportAll({
29351
+ createDimensions: () => createDimensions,
29352
+ createList: () => createList$2,
29353
+ createScale: () => createScale,
29354
+ createSymbol: () => createSymbol$1,
29355
+ createTextStyle: () => createTextStyle,
29356
+ dataStack: () => dataStack,
29357
+ enableHoverEmphasis: () => enableHoverEmphasis,
29358
+ getECData: () => getECData,
29359
+ getLayoutRect: () => getLayoutRect,
29360
+ mixinAxisModelCommonMethods: () => mixinAxisModelCommonMethods
29361
+ });
29362
+ /**
29363
+ * Create a multi dimension List structure from seriesModel.
29364
+ */
29365
+ function createList$2(seriesModel) {
29366
+ return createSeriesData(null, seriesModel);
29367
+ }
29368
+ var dataStack = {
29369
+ isDimensionStacked,
29370
+ enableDataStack,
29371
+ getStackedDimension
29372
+ };
29373
+ /**
29374
+ * Externally used by echarts-gl.
29375
+ * Create scale
29376
+ * @param dataExtent
29377
+ * @param option If `option.type`
29378
+ * is specified, it can only be `'value'` currently.
29379
+ */
29380
+ function createScale(dataExtent, option) {
29381
+ var axisModel = option;
29382
+ if (!(option instanceof Model)) axisModel = new Model(option);
29383
+ var axisType = determineAxisType(axisModel);
29384
+ var scale = createScaleByModel(axisModel, axisType, false);
29385
+ if (dataExtent[1] < dataExtent[0]) dataExtent = dataExtent.slice().reverse();
29386
+ scaleCalcNice2(scale, axisModel, null, null, dataExtent);
29387
+ return scale;
29388
+ }
29389
+ /**
29390
+ * Mixin common methods to axis model
29391
+ */
29392
+ function mixinAxisModelCommonMethods(Model) {
29393
+ mixin(Model, AxisModelCommonMixin);
29394
+ }
29395
+ function createTextStyle(textStyleModel, opts) {
29396
+ opts = opts || {};
29397
+ return createTextStyle$1(textStyleModel, null, null, opts.state !== "normal");
29398
+ }
29399
+
28993
29400
  //#endregion
28994
29401
  //#region ../../node_modules/.pnpm/zrender@6.1.0/node_modules/zrender/lib/contain/polygon.js
28995
29402
  var EPSILON = 1e-8;
@@ -29295,6 +29702,111 @@ function parseGeoJSON(geoJson, nameProperty) {
29295
29702
  });
29296
29703
  }
29297
29704
 
29705
+ //#endregion
29706
+ //#region ../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api/number.js
29707
+ var number_exports = /* @__PURE__ */ __exportAll({
29708
+ MAX_SAFE_INTEGER: () => MAX_SAFE_INTEGER,
29709
+ asc: () => asc$1,
29710
+ getPercentWithPrecision: () => getPercentWithPrecision,
29711
+ getPixelPrecision: () => getPixelPrecision,
29712
+ getPrecision: () => getPrecision,
29713
+ getPrecisionSafe: () => getPrecisionSafe,
29714
+ isNumeric: () => isNumeric,
29715
+ isRadianAroundZero: () => isRadianAroundZero,
29716
+ linearMap: () => linearMap$2,
29717
+ nice: () => nice,
29718
+ numericToNumber: () => numericToNumber,
29719
+ parseDate: () => parseDate,
29720
+ parsePercent: () => parsePercent,
29721
+ quantile: () => quantile,
29722
+ quantity: () => quantity,
29723
+ quantityExponent: () => quantityExponent,
29724
+ reformIntervals: () => reformIntervals,
29725
+ remRadian: () => remRadian,
29726
+ round: () => roundLegacy
29727
+ });
29728
+
29729
+ //#endregion
29730
+ //#region ../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api/time.js
29731
+ var time_exports = /* @__PURE__ */ __exportAll({
29732
+ format: () => format,
29733
+ parse: () => parseDate,
29734
+ roundTime: () => roundTime
29735
+ });
29736
+
29737
+ //#endregion
29738
+ //#region ../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api/graphic.js
29739
+ var graphic_exports = /* @__PURE__ */ __exportAll({
29740
+ Arc: () => Arc,
29741
+ BezierCurve: () => BezierCurve,
29742
+ BoundingRect: () => BoundingRect,
29743
+ Circle: () => Circle,
29744
+ CompoundPath: () => CompoundPath,
29745
+ Ellipse: () => Ellipse,
29746
+ Group: () => Group$3,
29747
+ Image: () => ZRImage,
29748
+ IncrementalDisplayable: () => IncrementalDisplayable,
29749
+ Line: () => Line$1,
29750
+ LinearGradient: () => LinearGradient,
29751
+ Polygon: () => Polygon,
29752
+ Polyline: () => Polyline$1,
29753
+ RadialGradient: () => RadialGradient,
29754
+ Rect: () => Rect$2,
29755
+ Ring: () => Ring,
29756
+ Sector: () => Sector,
29757
+ Text: () => ZRText,
29758
+ clipPointsByRect: () => clipPointsByRect,
29759
+ clipRectByRect: () => clipRectByRect,
29760
+ createIcon: () => createIcon,
29761
+ extendPath: () => extendPath,
29762
+ extendShape: () => extendShape,
29763
+ getShapeClass: () => getShapeClass,
29764
+ getTransform: () => getTransform$1,
29765
+ initProps: () => initProps,
29766
+ makeImage: () => makeImage,
29767
+ makePath: () => makePath,
29768
+ mergePath: () => mergePath,
29769
+ registerShape: () => registerShape,
29770
+ resizePath: () => resizePath,
29771
+ updateProps: () => updateProps$1
29772
+ });
29773
+
29774
+ //#endregion
29775
+ //#region ../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api/format.js
29776
+ var format_exports = /* @__PURE__ */ __exportAll({
29777
+ addCommas: () => addCommas,
29778
+ capitalFirst: () => capitalFirst,
29779
+ encodeHTML: () => encodeHTML,
29780
+ formatTime: () => formatTime,
29781
+ formatTpl: () => formatTpl,
29782
+ getTextRect: () => getTextRect,
29783
+ getTooltipMarker: () => getTooltipMarker,
29784
+ normalizeCssArray: () => normalizeCssArray,
29785
+ toCamelCase: () => toCamelCase,
29786
+ truncateText: () => truncateText
29787
+ });
29788
+
29789
+ //#endregion
29790
+ //#region ../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api/util.js
29791
+ var util_exports = /* @__PURE__ */ __exportAll({
29792
+ bind: () => bind$1,
29793
+ clone: () => clone$4,
29794
+ curry: () => curry$1,
29795
+ defaults: () => defaults,
29796
+ each: () => each$12,
29797
+ extend: () => extend,
29798
+ filter: () => filter,
29799
+ indexOf: () => indexOf,
29800
+ inherits: () => inherits,
29801
+ isArray: () => isArray$1,
29802
+ isFunction: () => isFunction,
29803
+ isObject: () => isObject$3,
29804
+ isString: () => isString,
29805
+ map: () => map$1,
29806
+ merge: () => merge,
29807
+ reduce: () => reduce
29808
+ });
29809
+
29298
29810
  //#endregion
29299
29811
  //#region ../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/coord/axisTickLabelBuilder.js
29300
29812
  /**
@@ -29817,6 +30329,32 @@ function fixOnBandTicksCoords(axis, preTicksCoords, alignWithLabel) {
29817
30329
  return true;
29818
30330
  }
29819
30331
 
30332
+ //#endregion
30333
+ //#region ../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api.js
30334
+ /**
30335
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
30336
+ */
30337
+ function extendComponentModel(proto) {
30338
+ var Model = ComponentModel.extend(proto);
30339
+ ComponentModel.registerClass(Model);
30340
+ return Model;
30341
+ }
30342
+ function extendComponentView(proto) {
30343
+ var View = ComponentView.extend(proto);
30344
+ ComponentView.registerClass(View);
30345
+ return View;
30346
+ }
30347
+ function extendSeriesModel(proto) {
30348
+ var Model = SeriesModel.extend(proto);
30349
+ SeriesModel.registerClass(Model);
30350
+ return Model;
30351
+ }
30352
+ function extendChartView(proto) {
30353
+ var View = ChartView.extend(proto);
30354
+ ChartView.registerClass(View);
30355
+ return View;
30356
+ }
30357
+
29820
30358
  //#endregion
29821
30359
  //#region ../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/label/labelGuideHelper.js
29822
30360
  /**
@@ -35355,7 +35893,7 @@ function refineAxisBreakChangeEvent(actionResultBatch, payload, ecModel, api) {
35355
35893
  });
35356
35894
  return { eventContent: { breaks } };
35357
35895
  }
35358
- function registerAction(registers) {
35896
+ function registerAction$1(registers) {
35359
35897
  registers.registerAction(expandAxisBreakActionInfo, actionHandler);
35360
35898
  registers.registerAction(collapseAxisBreakActionInfo, actionHandler);
35361
35899
  registers.registerAction(toggleAxisBreakActionInfo, actionHandler);
@@ -35823,7 +36361,7 @@ var builders = {
35823
36361
  y: pos.y,
35824
36362
  rotation: labelLayout.rotation,
35825
36363
  silent: AxisBuilder.isLabelSilent(axisModel),
35826
- style: createTextStyle(textStyleModel, {
36364
+ style: createTextStyle$1(textStyleModel, {
35827
36365
  text: name,
35828
36366
  font: textFont,
35829
36367
  overflow: "truncate",
@@ -36111,7 +36649,7 @@ function buildAxisLabel(cfg, local, group, kind, axisModel, api) {
36111
36649
  rotation: 0,
36112
36650
  silent: AxisBuilder.isLabelSilent(axisModel),
36113
36651
  z2,
36114
- style: createTextStyle(itemLabelModel, {
36652
+ style: createTextStyle$1(itemLabelModel, {
36115
36653
  text: formattedLabel,
36116
36654
  align: index === 0 ? alignMin : index === labels.length - 1 ? alignMax : align,
36117
36655
  verticalAlign: index === 0 ? verticalAlignMin : index === labels.length - 1 ? verticalAlignMax : verticalAlign,
@@ -41057,7 +41595,7 @@ var RadarView$1 = function(_super) {
41057
41595
  symbolPath.__dimIdx = i;
41058
41596
  if (oldPoints[i]) {
41059
41597
  symbolPath.setPosition(oldPoints[i]);
41060
- graphic_exports[isInit ? "initProps" : "updateProps"](symbolPath, {
41598
+ graphic_exports$1[isInit ? "initProps" : "updateProps"](symbolPath, {
41061
41599
  x: newPoints[i][0],
41062
41600
  y: newPoints[i][1]
41063
41601
  }, seriesModel, idx);
@@ -41645,7 +42183,7 @@ function isTaken(zr, resourceKey) {
41645
42183
  * If no userKey, release global cursor.
41646
42184
  * }
41647
42185
  */
41648
- registerAction$1({
42186
+ registerAction({
41649
42187
  type: "takeGlobalCursor",
41650
42188
  event: "globalCursorTaken",
41651
42189
  update: "update"
@@ -44784,14 +45322,14 @@ var GeoView = function(_super) {
44784
45322
  /**
44785
45323
  * AUTO-GENERATED FILE. DO NOT MODIFY.
44786
45324
  */
44787
- function registerMap(mapName, geoJson, specialAreas) {
45325
+ function registerMap$1(mapName, geoJson, specialAreas) {
44788
45326
  geoSourceManager_default.registerMap(mapName, geoJson, specialAreas);
44789
45327
  }
44790
45328
  function install$48(registers) {
44791
45329
  registers.registerCoordinateSystem("geo", geoCreator);
44792
45330
  registers.registerComponentModel(GeoModel);
44793
45331
  registers.registerComponentView(GeoView);
44794
- registers.registerImpl("registerMap", registerMap);
45332
+ registers.registerImpl("registerMap", registerMap$1);
44795
45333
  registers.registerImpl("getMap", function(mapName) {
44796
45334
  return geoSourceManager_default.getMapForUser(mapName);
44797
45335
  });
@@ -46682,13 +47220,13 @@ var Breadcrumb = function() {
46682
47220
  var el = new Polygon({
46683
47221
  shape: { points: makeItemPoints(lastX, 0, itemWidth, height, i === renderList.length - 1, i === 0) },
46684
47222
  style: defaults(normalStyleModel.getItemStyle(), { lineJoin: "bevel" }),
46685
- textContent: new ZRText({ style: createTextStyle(textStyleModel, { text }) }),
47223
+ textContent: new ZRText({ style: createTextStyle$1(textStyleModel, { text }) }),
46686
47224
  textConfig: { position: "inside" },
46687
47225
  z2: 10 * 1e4,
46688
47226
  onclick: curry$1(onSelect, itemNode)
46689
47227
  });
46690
47228
  el.disableLabelAnimation = true;
46691
- el.getTextContent().ensureState("emphasis").style = createTextStyle(emphasisTextStyleModel, { text });
47229
+ el.getTextContent().ensureState("emphasis").style = createTextStyle$1(emphasisTextStyleModel, { text });
46692
47230
  el.ensureState("emphasis").style = emphasisItemStyle;
46693
47231
  toggleHoverEmphasis(el, emphasisModel.get("focus"), emphasisModel.get("blurScope"), emphasisModel.get("disabled"));
46694
47232
  this.group.add(el);
@@ -51199,7 +51737,7 @@ var GaugeView = function(_super) {
51199
51737
  } else if (rotateType === "tangential") rotate = -angle - Math.PI / 2;
51200
51738
  else if (isNumber(rotateType)) rotate = rotateType * Math.PI / 180;
51201
51739
  if (rotate === 0) group.add(new ZRText({
51202
- style: createTextStyle(labelModel, {
51740
+ style: createTextStyle$1(labelModel, {
51203
51741
  text: label,
51204
51742
  x: textStyleX,
51205
51743
  y: textStyleY,
@@ -51209,7 +51747,7 @@ var GaugeView = function(_super) {
51209
51747
  silent: true
51210
51748
  }));
51211
51749
  else group.add(new ZRText({
51212
- style: createTextStyle(labelModel, {
51750
+ style: createTextStyle$1(labelModel, {
51213
51751
  text: label,
51214
51752
  x: textStyleX,
51215
51753
  y: textStyleY,
@@ -51426,7 +51964,7 @@ var GaugeView = function(_super) {
51426
51964
  var labelEl = newTitleEls[idx];
51427
51965
  labelEl.attr({
51428
51966
  z2: showPointerAbove ? 0 : 2,
51429
- style: createTextStyle(itemTitleModel, {
51967
+ style: createTextStyle$1(itemTitleModel, {
51430
51968
  x: titleX,
51431
51969
  y: titleY,
51432
51970
  text: data.getName(idx),
@@ -51448,7 +51986,7 @@ var GaugeView = function(_super) {
51448
51986
  var formatter_1 = itemDetailModel.get("formatter");
51449
51987
  labelEl.attr({
51450
51988
  z2: showPointerAbove ? 0 : 2,
51451
- style: createTextStyle(itemDetailModel, {
51989
+ style: createTextStyle$1(itemDetailModel, {
51452
51990
  x: detailX,
51453
51991
  y: detailY,
51454
51992
  text: formatLabel$1(value, formatter_1),
@@ -54925,7 +55463,7 @@ function createNormalBox$1(itemLayout, data, dataIndex, constDim, isInit) {
54925
55463
  }
54926
55464
  function updateNormalBoxData(itemLayout, el, data, dataIndex, isInit) {
54927
55465
  var seriesModel = data.hostModel;
54928
- var updateMethod = graphic_exports[isInit ? "initProps" : "updateProps"];
55466
+ var updateMethod = graphic_exports$1[isInit ? "initProps" : "updateProps"];
54929
55467
  updateMethod(el, { shape: { points: itemLayout.ends } }, seriesModel, dataIndex);
54930
55468
  el.useStyle(data.getItemVisual(dataIndex, "style"));
54931
55469
  el.style.strokeNoScale = true;
@@ -57592,7 +58130,7 @@ function createOrUpdateClip(bar, opt, symbolMeta, isUpdate) {
57592
58130
  bar.__pictorialClipPath = clipPath;
57593
58131
  var target = {};
57594
58132
  target[valueDim.wh] = symbolMeta.clipShape[valueDim.wh];
57595
- graphic_exports[isUpdate ? "updateProps" : "initProps"](clipPath, { shape: target }, animationModel, dataIndex);
58133
+ graphic_exports$1[isUpdate ? "updateProps" : "initProps"](clipPath, { shape: target }, animationModel, dataIndex);
57596
58134
  }
57597
58135
  }
57598
58136
  }
@@ -57673,7 +58211,7 @@ function eachPath(bar, cb, context) {
57673
58211
  function updateAttr(el, immediateAttrs, animationAttrs, symbolMeta, isUpdate, cb) {
57674
58212
  immediateAttrs && el.attr(immediateAttrs);
57675
58213
  if (symbolMeta.symbolClip && !isUpdate) animationAttrs && el.attr(animationAttrs);
57676
- else animationAttrs && graphic_exports[isUpdate ? "updateProps" : "initProps"](el, animationAttrs, symbolMeta.animationModel, symbolMeta.dataIndex, cb);
58214
+ else animationAttrs && graphic_exports$1[isUpdate ? "updateProps" : "initProps"](el, animationAttrs, symbolMeta.animationModel, symbolMeta.dataIndex, cb);
57677
58215
  }
57678
58216
  function updateCommon(bar, opt, symbolMeta) {
57679
58217
  var dataIndex = symbolMeta.dataIndex;
@@ -58300,7 +58838,7 @@ var SunburstPiece = function(_super) {
58300
58838
  var state = isNormal ? label : label.ensureState(stateName);
58301
58839
  var text = seriesModel.getFormattedLabel(dataIndex, stateName);
58302
58840
  if (isNormal) text = text || _this.node.name;
58303
- state.style = createTextStyle(labelStateModel, {}, null, stateName !== "normal", true);
58841
+ state.style = createTextStyle$1(labelStateModel, {}, null, stateName !== "normal", true);
58304
58842
  if (text) state.style.text = text;
58305
58843
  var isShown = labelStateModel.get("show");
58306
58844
  if (isShown != null && !isNormal) state.ignore = !isShown;
@@ -59897,7 +60435,7 @@ function makeRenderItem(customSeries, data, ecModel, api) {
59897
60435
  opacity != null && (itemStyle.opacity = opacity);
59898
60436
  var opt = { inheritColor: isString(visualColor) ? visualColor : tokens.color.neutral99 };
59899
60437
  var labelModel = getLabelModel(dataIndexInside, NORMAL);
59900
- var textStyle = createTextStyle(labelModel, null, opt, false, true);
60438
+ var textStyle = createTextStyle$1(labelModel, null, opt, false, true);
59901
60439
  textStyle.text = labelModel.getShallow("show") ? retrieve2(customSeries.getFormattedLabel(dataIndexInside, NORMAL), getDefaultLabel(data, dataIndexInside)) : null;
59902
60440
  var textConfig = createTextConfig(labelModel, opt, false);
59903
60441
  preFetchFromExtra(userProps, itemStyle);
@@ -59916,7 +60454,7 @@ function makeRenderItem(customSeries, data, ecModel, api) {
59916
60454
  dataIndexInside ??= currDataIndexInside;
59917
60455
  var itemStyle = getItemStyleModel(dataIndexInside, EMPHASIS).getItemStyle();
59918
60456
  var labelModel = getLabelModel(dataIndexInside, EMPHASIS);
59919
- var textStyle = createTextStyle(labelModel, null, null, true, true);
60457
+ var textStyle = createTextStyle$1(labelModel, null, null, true, true);
59920
60458
  textStyle.text = labelModel.getShallow("show") ? retrieve3(customSeries.getFormattedLabel(dataIndexInside, EMPHASIS), customSeries.getFormattedLabel(dataIndexInside, NORMAL), getDefaultLabel(data, dataIndexInside)) : null;
59921
60459
  var textConfig = createTextConfig(labelModel, null, true);
59922
60460
  preFetchFromExtra(userProps, itemStyle);
@@ -60286,7 +60824,7 @@ var BaseAxisPointer = function() {
60286
60824
  BaseAxisPointer.prototype.createPointerEl = function(group, elOption, axisModel, axisPointerModel) {
60287
60825
  var pointerOption = elOption.pointer;
60288
60826
  if (pointerOption) {
60289
- var pointerEl = inner$10(group).pointerEl = new graphic_exports[pointerOption.type](clone$1(elOption.pointer));
60827
+ var pointerEl = inner$10(group).pointerEl = new graphic_exports$1[pointerOption.type](clone$1(elOption.pointer));
60290
60828
  group.add(pointerEl);
60291
60829
  }
60292
60830
  };
@@ -60531,7 +61069,7 @@ function buildLabelElOption(elOption, axisModel, axisPointerModel, api, labelPos
60531
61069
  elOption.label = {
60532
61070
  x: position[0],
60533
61071
  y: position[1],
60534
- style: createTextStyle(labelModel, {
61072
+ style: createTextStyle$1(labelModel, {
60535
61073
  text,
60536
61074
  font,
60537
61075
  fill: labelModel.getTextColor(),
@@ -61810,7 +62348,7 @@ var angelAxisElementsBuilders = {
61810
62348
  var r0Id = rId ? 0 : 1;
61811
62349
  var shape;
61812
62350
  var shapeType = Math.abs(angleExtent[1] - angleExtent[0]) === 360 ? "Circle" : "Arc";
61813
- if (radiusExtent[r0Id] === 0) shape = new graphic_exports[shapeType]({
62351
+ if (radiusExtent[r0Id] === 0) shape = new graphic_exports$1[shapeType]({
61814
62352
  shape: {
61815
62353
  cx: polar.cx,
61816
62354
  cy: polar.cy,
@@ -61884,7 +62422,7 @@ var angelAxisElementsBuilders = {
61884
62422
  }
61885
62423
  var textEl = new ZRText({
61886
62424
  silent: AxisBuilder.isLabelSilent(angleAxisModel),
61887
- style: createTextStyle(labelModel, {
62425
+ style: createTextStyle$1(labelModel, {
61888
62426
  x: p[0],
61889
62427
  y: p[1],
61890
62428
  fill: labelModel.getTextColor() || angleAxisModel.get([
@@ -62039,7 +62577,7 @@ var axisElementBuilders$1 = {
62039
62577
  for (var i = 0; i < ticksCoords.length; i++) {
62040
62578
  var colorIndex = lineCount++ % lineColors.length;
62041
62579
  splitLines[colorIndex] = splitLines[colorIndex] || [];
62042
- splitLines[colorIndex].push(new graphic_exports[shapeType]({ shape: {
62580
+ splitLines[colorIndex].push(new graphic_exports$1[shapeType]({ shape: {
62043
62581
  cx: polar.cx,
62044
62582
  cy: polar.cy,
62045
62583
  r: Math.max(ticksCoords[i].coord, 0),
@@ -63052,7 +63590,7 @@ var CalendarView = function(_super) {
63052
63590
  var content = this._formatterLabel(formatter, params);
63053
63591
  var yearText = new ZRText({
63054
63592
  z2: 30,
63055
- style: createTextStyle(yearLabel, { text: content }),
63593
+ style: createTextStyle$1(yearLabel, { text: content }),
63056
63594
  silent: yearLabel.get("silent")
63057
63595
  });
63058
63596
  yearText.attr(this._yearTextPositionControl(yearText, posPoints[pos], orient, pos, margin));
@@ -63112,7 +63650,7 @@ var CalendarView = function(_super) {
63112
63650
  var content = this._formatterLabel(formatter, params);
63113
63651
  var monthText = new ZRText({
63114
63652
  z2: 30,
63115
- style: extend(createTextStyle(monthLabel, { text: content }), this._monthTextPositionControl(tmp, isCenter, orient, pos, margin)),
63653
+ style: extend(createTextStyle$1(monthLabel, { text: content }), this._monthTextPositionControl(tmp, isCenter, orient, pos, margin)),
63116
63654
  silent: labelSilent
63117
63655
  });
63118
63656
  group.add(monthText);
@@ -63167,7 +63705,7 @@ var CalendarView = function(_super) {
63167
63705
  day = Math.abs((i + firstDayOfWeek) % 7);
63168
63706
  var weekText = new ZRText({
63169
63707
  z2: 30,
63170
- style: extend(createTextStyle(dayLabel, { text: nameMap[day] }), this._weekTextPositionControl(point, orient, pos, margin, cellSize)),
63708
+ style: extend(createTextStyle$1(dayLabel, { text: nameMap[day] }), this._weekTextPositionControl(point, orient, pos, margin, cellSize)),
63171
63709
  silent: labelSilent
63172
63710
  });
63173
63711
  group.add(weekText);
@@ -66561,7 +67099,7 @@ var seriesOptGenreator = {
66561
67099
  }
66562
67100
  }
66563
67101
  };
66564
- registerAction$1({
67102
+ registerAction({
66565
67103
  type: "changeMagicType",
66566
67104
  event: "magicTypeChanged",
66567
67105
  update: "prepareAndUpdate"
@@ -66882,7 +67420,7 @@ function tryMergeDataOption(newData, originalData) {
66882
67420
  } else return newVal;
66883
67421
  });
66884
67422
  }
66885
- registerAction$1({
67423
+ registerAction({
66886
67424
  type: "changeDataView",
66887
67425
  event: "dataViewChanged",
66888
67426
  update: "prepareAndUpdate"
@@ -66998,7 +67536,7 @@ var RestoreOption = function(_super) {
66998
67536
  };
66999
67537
  return RestoreOption;
67000
67538
  }(ToolboxFeature);
67001
- registerAction$1({
67539
+ registerAction({
67002
67540
  type: "restore",
67003
67541
  event: "restore",
67004
67542
  update: "prepareAndUpdate"
@@ -69381,7 +69919,7 @@ var TitleView = function(_super) {
69381
69919
  var textAlign = titleModel.get("textAlign");
69382
69920
  var textVerticalAlign = retrieve2(titleModel.get("textBaseline"), titleModel.get("textVerticalAlign"));
69383
69921
  var textEl = new ZRText({
69384
- style: createTextStyle(textStyleModel, {
69922
+ style: createTextStyle$1(textStyleModel, {
69385
69923
  text: titleModel.get("text"),
69386
69924
  fill: textStyleModel.getTextColor()
69387
69925
  }, { disableBox: true }),
@@ -69390,7 +69928,7 @@ var TitleView = function(_super) {
69390
69928
  var textRect = textEl.getBoundingRect();
69391
69929
  var subText = titleModel.get("subtext");
69392
69930
  var subTextEl = new ZRText({
69393
- style: createTextStyle(subtextStyleModel, {
69931
+ style: createTextStyle$1(subtextStyleModel, {
69394
69932
  text: subText,
69395
69933
  fill: subtextStyleModel.getTextColor(),
69396
69934
  y: textRect.height + titleModel.get("itemGap"),
@@ -70022,14 +70560,14 @@ var SliderTimelineView = function(_super) {
70022
70560
  rotation: layoutInfo.labelRotation - layoutInfo.rotation,
70023
70561
  onclick: bind$1(_this._changeTimeline, _this, dataIndex),
70024
70562
  silent: false,
70025
- style: createTextStyle(normalLabelModel, {
70563
+ style: createTextStyle$1(normalLabelModel, {
70026
70564
  text: labelItem.formattedLabel,
70027
70565
  align: layoutInfo.labelAlign,
70028
70566
  verticalAlign: layoutInfo.labelBaseline
70029
70567
  })
70030
70568
  });
70031
- textEl.ensureState("emphasis").style = createTextStyle(hoverLabelModel);
70032
- textEl.ensureState("progress").style = createTextStyle(progressLabelModel);
70569
+ textEl.ensureState("emphasis").style = createTextStyle$1(hoverLabelModel);
70570
+ textEl.ensureState("progress").style = createTextStyle$1(progressLabelModel);
70033
70571
  group.add(textEl);
70034
70572
  enableHoverEmphasis(textEl);
70035
70573
  labelDataIndexStore(textEl).dataIndex = dataIndex;
@@ -71851,7 +72389,7 @@ var LegendView = function(_super) {
71851
72389
  if (isString(formatter) && formatter) content = formatter.replace("{name}", name != null ? name : "");
71852
72390
  else if (isFunction(formatter)) content = formatter(name);
71853
72391
  var textColor = isSelected ? textStyleModel.getTextColor() : legendItemModel.get("inactiveColor");
71854
- itemGroup.add(new ZRText({ style: createTextStyle(textStyleModel, {
72392
+ itemGroup.add(new ZRText({ style: createTextStyle$1(textStyleModel, {
71855
72393
  text: content,
71856
72394
  x: textX,
71857
72395
  y: itemHeight / 2,
@@ -73264,7 +73802,7 @@ var SliderZoomView = function(_super) {
73264
73802
  thisGroup.add(handleLabels[handleIndex] = new ZRText({
73265
73803
  silent: true,
73266
73804
  invisible: !handleLabelShow,
73267
- style: createTextStyle(textStyleModel, {
73805
+ style: createTextStyle$1(textStyleModel, {
73268
73806
  x: 0,
73269
73807
  y: 0,
73270
73808
  text: "",
@@ -74409,7 +74947,7 @@ var ContinuousView = function(_super) {
74409
74947
  var align = this._applyTransform(endsIndex === 0 ? "bottom" : "top", barGroup);
74410
74948
  var orient = this._orient;
74411
74949
  var textStyleModel = this.visualMapModel.textStyleModel;
74412
- this.group.add(new ZRText({ style: createTextStyle(textStyleModel, {
74950
+ this.group.add(new ZRText({ style: createTextStyle$1(textStyleModel, {
74413
74951
  x: position[0],
74414
74952
  y: position[1],
74415
74953
  verticalAlign: textStyleModel.get("verticalAlign") || (orient === "horizontal" ? "middle" : align),
@@ -74482,7 +75020,7 @@ var ContinuousView = function(_super) {
74482
75020
  stop(e.event);
74483
75021
  },
74484
75022
  ondragend: onDragEnd,
74485
- style: createTextStyle(textStyleModel, {
75023
+ style: createTextStyle$1(textStyleModel, {
74486
75024
  x: 0,
74487
75025
  y: 0,
74488
75026
  text: ""
@@ -74522,7 +75060,7 @@ var ContinuousView = function(_super) {
74522
75060
  var indicatorLabel = new ZRText({
74523
75061
  silent: true,
74524
75062
  invisible: true,
74525
- style: createTextStyle(textStyleModel, {
75063
+ style: createTextStyle$1(textStyleModel, {
74526
75064
  x: 0,
74527
75065
  y: 0,
74528
75066
  text: ""
@@ -75370,7 +75908,7 @@ var PiecewiseVisualMapView = function(_super) {
75370
75908
  var visualState = this.visualMapModel.getValueState(representValue);
75371
75909
  var align = textStyleModel.get("align") || itemAlign;
75372
75910
  itemGroup.add(new ZRText({
75373
- style: createTextStyle(textStyleModel, {
75911
+ style: createTextStyle$1(textStyleModel, {
75374
75912
  x: align === "right" ? -textGap : itemSize[0] + textGap,
75375
75913
  y: itemSize[1] / 2,
75376
75914
  text: piece.text,
@@ -75417,7 +75955,7 @@ var PiecewiseVisualMapView = function(_super) {
75417
75955
  if (!text) return;
75418
75956
  var itemGroup = new Group$3();
75419
75957
  var textStyleModel = this.visualMapModel.textStyleModel;
75420
- itemGroup.add(new ZRText({ style: createTextStyle(textStyleModel, {
75958
+ itemGroup.add(new ZRText({ style: createTextStyle$1(textStyleModel, {
75421
75959
  x: showLabel ? itemAlign === "right" ? itemSize[0] : 0 : itemSize[0] / 2,
75422
75960
  y: itemSize[1] / 2,
75423
75961
  verticalAlign: "middle",
@@ -78677,7 +79215,7 @@ function installAxisBreakHelper() {
78677
79215
  * AUTO-GENERATED FILE. DO NOT MODIFY.
78678
79216
  */
78679
79217
  function installAxisBreak(registers) {
78680
- registerAction(registers);
79218
+ registerAction$1(registers);
78681
79219
  installScaleBreakHelper();
78682
79220
  installAxisBreakHelper();
78683
79221
  }
@@ -78813,4 +79351,4 @@ use(installLegacyGridContainLabel);
78813
79351
  use(installScatterJitter);
78814
79352
 
78815
79353
  //#endregion
78816
- export { init };
79354
+ export { Axis, ChartView, ComponentModel, ComponentView, SeriesData as List, Model, PRIORITY, SeriesModel, color_exports as color, connect, dataTool, dependencies, disConnect, disconnect, dispose, env, extendChartView, extendComponentModel, extendComponentView, extendSeriesModel, format_exports as format, getCoordinateSystemDimensions, getInstanceByDom, getInstanceById, getMap, graphic_exports as graphic, helper_exports as helper, init, brushSingle as innerDrawElementOnCanvas, matrix_exports as matrix, number_exports as number, parseGeoJSON, parseGeoJSON as parseGeoJson, registerAction, registerCoordinateSystem, registerCustomSeries, registerLayout, registerLoading, registerLocale, registerMap, registerPostInit, registerPostUpdate, registerPreprocessor, registerProcessor, registerTheme, registerTransform, registerUpdateLifecycle, registerVisual, setCanvasCreator, setPlatformAPI, throttle, time_exports as time, use, util_exports as util, vector_exports as vector, version, util_exports$1 as zrUtil, zrender_exports as zrender };