@visactor/vtable 0.9.2-alpha.2 → 0.9.2-alpha.3

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/vtable.js CHANGED
@@ -133,10 +133,10 @@
133
133
  }
134
134
  };
135
135
  const isIt$1 = (v, type) => judgeType$1(v) === type;
136
- const isObject$4 = (v) => isIt$1(v, 'object');
137
- const isFunction$3 = (v) => isIt$1(v, 'function');
138
- const isString$3 = (v) => isIt$1(v, 'string');
139
- const isNumber$3 = (v) => isIt$1(v, 'number');
136
+ const isObject$3 = (v) => isIt$1(v, 'object');
137
+ const isFunction$2 = (v) => isIt$1(v, 'function');
138
+ const isString$2 = (v) => isIt$1(v, 'string');
139
+ const isNumber$2 = (v) => isIt$1(v, 'number');
140
140
  const isUndefined$1 = (v) => isIt$1(v, 'undefined');
141
141
  const isNull = (v) => isIt$1(v, 'null');
142
142
  function ingoreNoneValueMerge(target, ...sources) {
@@ -144,13 +144,13 @@
144
144
  return target || {};
145
145
  }
146
146
  const source = sources.shift();
147
- if (isObject$4(target) && isObject$4(source)) {
147
+ if (isObject$3(target) && isObject$3(source)) {
148
148
  for (const key in source) {
149
- if (isObject$4(source[key])) {
149
+ if (isObject$3(source[key])) {
150
150
  if (!target[key]) {
151
151
  Object.assign(target, { [key]: {} });
152
152
  }
153
- if (!isObject$4(target[key])) {
153
+ if (!isObject$3(target[key])) {
154
154
  Object.assign(target, { [key]: source[key] });
155
155
  }
156
156
  ingoreNoneValueMerge(target[key], source[key]);
@@ -162,7 +162,7 @@
162
162
  }
163
163
  return ingoreNoneValueMerge(target, ...sources);
164
164
  }
165
- function cloneDeep$3(item) {
165
+ function cloneDeep$2(item) {
166
166
  if (!item) {
167
167
  return item;
168
168
  }
@@ -177,7 +177,7 @@
177
177
  if (Object.prototype.toString.call(item) === '[object Array]') {
178
178
  result = [];
179
179
  item.forEach(function (child, index) {
180
- result[index] = cloneDeep$3(child);
180
+ result[index] = cloneDeep$2(child);
181
181
  });
182
182
  }
183
183
  else if (typeof item === 'object') {
@@ -194,7 +194,7 @@
194
194
  else {
195
195
  result = {};
196
196
  for (const i in item) {
197
- result[i] = cloneDeep$3(item[i]);
197
+ result[i] = cloneDeep$2(item[i]);
198
198
  }
199
199
  }
200
200
  }
@@ -217,7 +217,7 @@
217
217
  if (typeof value === 'function') {
218
218
  value = value();
219
219
  }
220
- return isValid$3(value) ? `${value}` : '';
220
+ return isValid$2(value) ? `${value}` : '';
221
221
  }
222
222
  function transpose(matrix) {
223
223
  if (matrix?.length <= 0) {
@@ -280,7 +280,7 @@
280
280
  '(?:\\s*,\\s*' +
281
281
  '(0|1|0?\\.\\d+))?' +
282
282
  '\\s*\\)$', 'i'));
283
- const alpha = !!rgb && isValid$3(rgb[4]) ? rgb[4] : null;
283
+ const alpha = !!rgb && isValid$2(rgb[4]) ? rgb[4] : null;
284
284
  const decimal = rgb
285
285
  ? [rgb[1], rgb[2], rgb[3]]
286
286
  : color
@@ -298,7 +298,7 @@
298
298
  pad(Math[isDarker ? 'max' : 'min'](parseInt(decimal[2], 10) + difference, isDarker ? 0 : 255).toString(16), 2)
299
299
  ].join('');
300
300
  }
301
- function isValid$3(v) {
301
+ function isValid$2(v) {
302
302
  if (isUndefined$1(v) || isNull(v)) {
303
303
  return false;
304
304
  }
@@ -402,7 +402,7 @@
402
402
  if (!list) {
403
403
  return [];
404
404
  }
405
- return list.map(listener => listener.call(this, event)).filter(r => isValid$3(r));
405
+ return list.map(listener => listener.call(this, event)).filter(r => isValid$2(r));
406
406
  }
407
407
  dispose() {
408
408
  delete this.listenersData;
@@ -682,7 +682,7 @@
682
682
  if (!columnStyle) {
683
683
  columnStyle = {};
684
684
  }
685
- if (globalAutoWrapText && !isValid$3(columnStyle.autoWrapText)) {
685
+ if (globalAutoWrapText && !isValid$2(columnStyle.autoWrapText)) {
686
686
  columnStyle.autoWrapText = true;
687
687
  }
688
688
  return new StyleClassDef((columnStyle ?? {}), (bodyStyle ?? {}));
@@ -950,7 +950,7 @@
950
950
  if (!headerStyle) {
951
951
  headerStyle = {};
952
952
  }
953
- if (globalAutoWrapText && !isValid$3(headerStyle.autoWrapText)) {
953
+ if (globalAutoWrapText && !isValid$2(headerStyle.autoWrapText)) {
954
954
  headerStyle.autoWrapText = true;
955
955
  }
956
956
  return new StyleClass(headerStyle ?? {}, (defaultHeaderStyle ?? {}));
@@ -1095,7 +1095,7 @@
1095
1095
  };
1096
1096
  }
1097
1097
  const { IE, Chrome, Firefox, Edge: Edge$1, Safari } = analyzeUserAgent();
1098
- function isObject$3(obj) {
1098
+ function isObject$2(obj) {
1099
1099
  return obj === Object(obj);
1100
1100
  }
1101
1101
  function extend(...args) {
@@ -1232,7 +1232,7 @@
1232
1232
  heightLimit: Chrome ? 33554431 : Firefox ? 17895588 : 10737433
1233
1233
  };
1234
1234
  const obj = {
1235
- isObject: isObject$3
1235
+ isObject: isObject$2
1236
1236
  };
1237
1237
  const str = {
1238
1238
  endsWith
@@ -1313,7 +1313,7 @@
1313
1313
  }
1314
1314
  };
1315
1315
  const isIt = (v, type) => judgeType(v) === type;
1316
- const isObject$2 = (v) => isIt(v, 'object');
1316
+ const isObject$1 = (v) => isIt(v, 'object');
1317
1317
 
1318
1318
  function debounce(func, wait, options) {
1319
1319
  let lastArgs;
@@ -1331,7 +1331,7 @@
1331
1331
  throw new TypeError('Expected a function');
1332
1332
  }
1333
1333
  wait = +wait || 0;
1334
- if (isObject$2(options)) {
1334
+ if (isObject$1(options)) {
1335
1335
  leading = !!options.leading;
1336
1336
  maxing = 'maxWait' in options;
1337
1337
  if (maxing) {
@@ -1744,7 +1744,7 @@
1744
1744
  return this._vals[key];
1745
1745
  }
1746
1746
  has(key) {
1747
- return isValid$3(this._vals[key]);
1747
+ return isValid$2(this._vals[key]);
1748
1748
  }
1749
1749
  contain(value) {
1750
1750
  return Object.values(this._vals).indexOf(value) >= 0;
@@ -2135,50 +2135,50 @@
2135
2135
  var eventemitter3Exports = eventemitter3.exports;
2136
2136
  var EventEmitter = /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);
2137
2137
 
2138
- const isType$2 = (value, type) => toString.call(value) === `[object ${type}]`;
2138
+ const isType$1 = (value, type) => toString.call(value) === `[object ${type}]`;
2139
2139
 
2140
- const isBoolean$2 = function (value) {
2140
+ const isBoolean$1 = function (value) {
2141
2141
  let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
2142
- return fuzzy ? "boolean" == typeof value : !0 === value || !1 === value || isType$2(value, "Boolean");
2142
+ return fuzzy ? "boolean" == typeof value : !0 === value || !1 === value || isType$1(value, "Boolean");
2143
2143
  };
2144
2144
 
2145
- const isFunction$2 = value => "function" == typeof value;
2145
+ const isFunction$1 = value => "function" == typeof value;
2146
2146
 
2147
- const isNil$2 = value => null == value;
2147
+ const isNil$1 = value => null == value;
2148
2148
 
2149
- const isValid$2 = value => null != value;
2149
+ const isValid$1 = value => null != value;
2150
2150
 
2151
2151
  const isObjectLike$1 = value => "object" == typeof value && null !== value;
2152
2152
 
2153
2153
  const isPlainObject$1 = function (value) {
2154
- if (!isObjectLike$1(value) || !isType$2(value, "Object")) return !1;
2154
+ if (!isObjectLike$1(value) || !isType$1(value, "Object")) return !1;
2155
2155
  if (null === Object.getPrototypeOf(value)) return !0;
2156
2156
  let proto = value;
2157
2157
  for (; null !== Object.getPrototypeOf(proto);) proto = Object.getPrototypeOf(proto);
2158
2158
  return Object.getPrototypeOf(value) === proto;
2159
2159
  };
2160
2160
 
2161
- const isString$2 = function (value) {
2161
+ const isString$1 = function (value) {
2162
2162
  let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
2163
2163
  const type = typeof value;
2164
- return fuzzy ? "string" === type : "string" === type || isType$2(value, "String");
2164
+ return fuzzy ? "string" === type : "string" === type || isType$1(value, "String");
2165
2165
  };
2166
2166
 
2167
- const isArray$2 = value => Array.isArray ? Array.isArray(value) : isType$2(value, "Array");
2167
+ const isArray$1 = value => Array.isArray ? Array.isArray(value) : isType$1(value, "Array");
2168
2168
 
2169
2169
  const isArrayLike$1 = function (value) {
2170
2170
  return null !== value && "function" != typeof value && Number.isFinite(value.length);
2171
2171
  };
2172
2172
 
2173
- const isDate$2 = value => isType$2(value, "Date");
2173
+ const isDate$1 = value => isType$1(value, "Date");
2174
2174
 
2175
- const isNumber$2 = function (value) {
2175
+ const isNumber$1 = function (value) {
2176
2176
  let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
2177
2177
  const type = typeof value;
2178
- return fuzzy ? "number" === type : "number" === type || isType$2(value, "Number");
2178
+ return fuzzy ? "number" === type : "number" === type || isType$1(value, "Number");
2179
2179
  };
2180
2180
 
2181
- const isValidNumber$2 = value => isNumber$2(value) && Number.isFinite(value);
2181
+ const isValidNumber$1 = value => isNumber$1(value) && Number.isFinite(value);
2182
2182
 
2183
2183
  const getType$1 = value => ({}).toString.call(value).replace(/^\[object /, "").replace(/]$/, "");
2184
2184
 
@@ -2190,7 +2190,7 @@
2190
2190
 
2191
2191
  const hasOwnProperty$3 = Object.prototype.hasOwnProperty;
2192
2192
  function isEmpty$1(value) {
2193
- if (isNil$2(value)) return !0;
2193
+ if (isNil$1(value)) return !0;
2194
2194
  if (isArrayLike$1(value)) return !value.length;
2195
2195
  const type = getType$1(value);
2196
2196
  if ("Map" === type || "Set" === type) return !value.size;
@@ -2199,24 +2199,24 @@
2199
2199
  return !0;
2200
2200
  }
2201
2201
 
2202
- const get$5 = (obj, path, defaultValue) => {
2203
- const paths = isString$2(path) ? path.split(".") : path;
2202
+ const get$4 = (obj, path, defaultValue) => {
2203
+ const paths = isString$1(path) ? path.split(".") : path;
2204
2204
  for (let p = 0; p < paths.length; p++) obj = obj ? obj[paths[p]] : void 0;
2205
2205
  return void 0 === obj ? defaultValue : obj;
2206
2206
  };
2207
2207
 
2208
- function cloneDeep$2(value) {
2208
+ function cloneDeep$1(value) {
2209
2209
  let result;
2210
- if (!isValid$2(value) || "object" != typeof value) return value;
2211
- const isArr = isArray$2(value),
2210
+ if (!isValid$1(value) || "object" != typeof value) return value;
2211
+ const isArr = isArray$1(value),
2212
2212
  length = value.length;
2213
- result = isArr ? new Array(length) : "object" == typeof value ? {} : isBoolean$2(value) || isNumber$2(value) || isString$2(value) ? value : isDate$2(value) ? new Date(+value) : void 0;
2213
+ result = isArr ? new Array(length) : "object" == typeof value ? {} : isBoolean$1(value) || isNumber$1(value) || isString$1(value) ? value : isDate$1(value) ? new Date(+value) : void 0;
2214
2214
  const props = isArr ? void 0 : Object.keys(Object(value));
2215
2215
  let index = -1;
2216
2216
  if (result) for (; ++index < (props || value).length;) {
2217
2217
  const key = props ? props[index] : index,
2218
2218
  subValue = value[key];
2219
- result[key] = cloneDeep$2(subValue);
2219
+ result[key] = cloneDeep$1(subValue);
2220
2220
  }
2221
2221
  return result;
2222
2222
  }
@@ -2225,7 +2225,7 @@
2225
2225
  let shallowArray = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
2226
2226
  if (source) {
2227
2227
  if (target === source) return;
2228
- if (isValid$2(source) && "object" == typeof source) {
2228
+ if (isValid$1(source) && "object" == typeof source) {
2229
2229
  const iterable = Object(source),
2230
2230
  props = [];
2231
2231
  for (const key in iterable) props.push(key);
@@ -2235,7 +2235,7 @@
2235
2235
  propIndex = -1;
2236
2236
  for (; length--;) {
2237
2237
  const key = props[++propIndex];
2238
- isValid$2(iterable[key]) && "object" == typeof iterable[key] ? baseMergeDeep$1(target, source, key, shallowArray) : assignMergeValue$1(target, key, iterable[key]);
2238
+ isValid$1(iterable[key]) && "object" == typeof iterable[key] ? baseMergeDeep$1(target, source, key, shallowArray) : assignMergeValue$1(target, key, iterable[key]);
2239
2239
  }
2240
2240
  }
2241
2241
  }
@@ -2246,8 +2246,8 @@
2246
2246
  srcValue = source[key];
2247
2247
  let newValue = source[key],
2248
2248
  isCommon = !0;
2249
- if (isArray$2(srcValue)) {
2250
- if (shallowArray) newValue = [];else if (isArray$2(objValue)) newValue = objValue;else if (isArrayLike$1(objValue)) {
2249
+ if (isArray$1(srcValue)) {
2250
+ if (shallowArray) newValue = [];else if (isArray$1(objValue)) newValue = objValue;else if (isArrayLike$1(objValue)) {
2251
2251
  newValue = new Array(objValue.length);
2252
2252
  let index = -1;
2253
2253
  const length = objValue.length;
@@ -2283,9 +2283,9 @@
2283
2283
  if (null == a || null == b) return !1;
2284
2284
  if (Number.isNaN(a) && Number.isNaN(b)) return !0;
2285
2285
  if (objToString(a) !== objToString(b)) return !1;
2286
- if (isFunction$2(a)) return !1;
2286
+ if (isFunction$1(a)) return !1;
2287
2287
  if ("object" != typeof a) return !1;
2288
- if (isArray$2(a)) {
2288
+ if (isArray$1(a)) {
2289
2289
  if (a.length !== b.length) return !1;
2290
2290
  for (let i = a.length - 1; i >= 0; i--) if (!isEqual(a[i], b[i])) return !1;
2291
2291
  return !0;
@@ -2309,14 +2309,14 @@
2309
2309
  }
2310
2310
  }
2311
2311
  function maxInArray(arr) {
2312
- if (arr && isArray$2(arr)) return arr.reduce((prev, curr) => Math.max(prev, curr), -1 / 0);
2312
+ if (arr && isArray$1(arr)) return arr.reduce((prev, curr) => Math.max(prev, curr), -1 / 0);
2313
2313
  }
2314
2314
  function minInArray(arr) {
2315
- if (arr && isArray$2(arr)) return arr.reduce((prev, curr) => Math.min(prev, curr), 1 / 0);
2315
+ if (arr && isArray$1(arr)) return arr.reduce((prev, curr) => Math.min(prev, curr), 1 / 0);
2316
2316
  }
2317
2317
 
2318
2318
  function range(start, stop, step) {
2319
- isValid$2(stop) || (stop = start, start = 0), isValid$2(step) || (step = 1);
2319
+ isValid$1(stop) || (stop = start, start = 0), isValid$1(step) || (step = 1);
2320
2320
  let i = -1;
2321
2321
  const n = 0 | Math.max(0, Math.ceil((stop - start) / step)),
2322
2322
  range = new Array(n);
@@ -2335,7 +2335,7 @@
2335
2335
  function bisect$1(a, x) {
2336
2336
  let lo = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
2337
2337
  let hi = arguments.length > 3 ? arguments[3] : undefined;
2338
- for (isNil$2(hi) && (hi = a.length); lo < hi;) {
2338
+ for (isNil$1(hi) && (hi = a.length); lo < hi;) {
2339
2339
  const mid = lo + hi >>> 1;
2340
2340
  ascending(a[mid], x) > 0 ? hi = mid : lo = mid + 1;
2341
2341
  }
@@ -2367,13 +2367,13 @@
2367
2367
  return a > b && (t = a, a = b, b = t), x => Math.max(a, Math.min(b, x));
2368
2368
  }
2369
2369
 
2370
- let hasRaf$2 = !1;
2370
+ let hasRaf$1 = !1;
2371
2371
  try {
2372
- hasRaf$2 = "function" == typeof requestAnimationFrame && "function" == typeof cancelAnimationFrame;
2372
+ hasRaf$1 = "function" == typeof requestAnimationFrame && "function" == typeof cancelAnimationFrame;
2373
2373
  } catch (err) {
2374
- hasRaf$2 = !1;
2374
+ hasRaf$1 = !1;
2375
2375
  }
2376
- hasRaf$2 = !1;
2376
+ hasRaf$1 = !1;
2377
2377
 
2378
2378
  function interpolateNumber(a, b) {
2379
2379
  return t => a * (1 - t) + b * t;
@@ -2436,7 +2436,7 @@
2436
2436
  }
2437
2437
  expand() {
2438
2438
  let d = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
2439
- return isArray$2(d) ? (this.y1 -= d[0], this.x2 += d[1], this.y2 += d[2], this.x1 -= d[3]) : (this.x1 -= d, this.y1 -= d, this.x2 += d, this.y2 += d), this;
2439
+ return isArray$1(d) ? (this.y1 -= d[0], this.x2 += d[1], this.y2 += d[2], this.x1 -= d[3]) : (this.x1 -= d, this.y1 -= d, this.x2 += d, this.y2 += d), this;
2440
2440
  }
2441
2441
  round() {
2442
2442
  return this.x1 = Math.floor(this.x1), this.y1 = Math.floor(this.y1), this.x2 = Math.ceil(this.x2), this.y2 = Math.ceil(this.y2), this;
@@ -2727,10 +2727,10 @@
2727
2727
  return ((value = Math.max(0, Math.min(255, Math.round(value) || 0))) < 16 ? "0" : "") + value.toString(16);
2728
2728
  }
2729
2729
  function rgb(value) {
2730
- return isNumber$2(value) ? new RGB(value >> 16, value >> 8 & 255, 255 & value, 1) : isArray$2(value) ? new RGB(value[0], value[1], value[2]) : new RGB(255, 255, 255);
2730
+ return isNumber$1(value) ? new RGB(value >> 16, value >> 8 & 255, 255 & value, 1) : isArray$1(value) ? new RGB(value[0], value[1], value[2]) : new RGB(255, 255, 255);
2731
2731
  }
2732
2732
  function rgba(value) {
2733
- return isNumber$2(value) ? new RGB(value >>> 24, value >>> 16 & 255, value >>> 8 & 255, 255 & value) : isArray$2(value) ? new RGB(value[0], value[1], value[2], value[3]) : new RGB(255, 255, 255, 1);
2733
+ return isNumber$1(value) ? new RGB(value >>> 24, value >>> 16 & 255, value >>> 8 & 255, 255 & value) : isArray$1(value) ? new RGB(value[0], value[1], value[2], value[3]) : new RGB(255, 255, 255, 1);
2734
2734
  }
2735
2735
  class Color {
2736
2736
  static Brighter(source) {
@@ -2759,8 +2759,8 @@
2759
2759
  }
2760
2760
  }
2761
2761
  static parseColorString(value) {
2762
- if (isValid$2(DEFAULT_COLORS_OPACITY[value])) return rgba(DEFAULT_COLORS_OPACITY[value]);
2763
- if (isValid$2(DEFAULT_COLORS[value])) return rgb(DEFAULT_COLORS[value]);
2762
+ if (isValid$1(DEFAULT_COLORS_OPACITY[value])) return rgba(DEFAULT_COLORS_OPACITY[value]);
2763
+ if (isValid$1(DEFAULT_COLORS[value])) return rgb(DEFAULT_COLORS[value]);
2764
2764
  const formatValue = `${value}`.trim().toLowerCase(),
2765
2765
  isHex = REG_HEX.exec(formatValue);
2766
2766
  if (isHex) {
@@ -2815,7 +2815,7 @@
2815
2815
  setHsl(h, s, l) {
2816
2816
  const opacity = this.color.opacity,
2817
2817
  hsl = rgbToHsl(this.color.r, this.color.g, this.color.b),
2818
- rgb = hslToRgb(isNil$2(h) ? hsl.h : clamp$2(h, 0, 360), isNil$2(s) ? hsl.s : s >= 0 && s <= 1 ? 100 * s : s, isNil$2(l) ? hsl.l : l <= 1 && l >= 0 ? 100 * l : l);
2818
+ rgb = hslToRgb(isNil$1(h) ? hsl.h : clamp$2(h, 0, 360), isNil$1(s) ? hsl.s : s >= 0 && s <= 1 ? 100 * s : s, isNil$1(l) ? hsl.l : l <= 1 && l >= 0 ? 100 * l : l);
2819
2819
  return this.color = new RGB(rgb.r, rgb.g, rgb.b, opacity), this;
2820
2820
  }
2821
2821
  getLuminance() {
@@ -2830,7 +2830,7 @@
2830
2830
  }
2831
2831
  class RGB {
2832
2832
  constructor(r, g, b, opacity) {
2833
- this.r = isNaN(+r) ? 255 : Math.max(0, Math.min(255, +r)), this.g = isNaN(+g) ? 255 : Math.max(0, Math.min(255, +g)), this.b = isNaN(+b) ? 255 : Math.max(0, Math.min(255, +b)), isValid$2(opacity) ? this.opacity = isNaN(+opacity) ? 1 : Math.max(0, Math.min(1, +opacity)) : this.opacity = 1;
2833
+ this.r = isNaN(+r) ? 255 : Math.max(0, Math.min(255, +r)), this.g = isNaN(+g) ? 255 : Math.max(0, Math.min(255, +g)), this.b = isNaN(+b) ? 255 : Math.max(0, Math.min(255, +b)), isValid$1(opacity) ? this.opacity = isNaN(+opacity) ? 1 : Math.max(0, Math.min(1, +opacity)) : this.opacity = 1;
2834
2834
  }
2835
2835
  formatHex() {
2836
2836
  return `#${hex(this.r) + hex(this.g) + hex(this.b) + (1 === this.opacity ? "" : hex(255 * this.opacity))}`;
@@ -2895,10 +2895,10 @@
2895
2895
  rgbToHsl: rgbToHsl
2896
2896
  });
2897
2897
 
2898
- var InnerBBox$2;
2898
+ var InnerBBox$1;
2899
2899
  !function (InnerBBox) {
2900
2900
  InnerBBox[InnerBBox.NONE = 0] = "NONE", InnerBBox[InnerBBox.BBOX1 = 1] = "BBOX1", InnerBBox[InnerBBox.BBOX2 = 2] = "BBOX2";
2901
- }(InnerBBox$2 || (InnerBBox$2 = {}));
2901
+ }(InnerBBox$1 || (InnerBBox$1 = {}));
2902
2902
 
2903
2903
  const eastAsianCharacterInfo$1 = character => {
2904
2904
  let x = character.charCodeAt(0),
@@ -2921,15 +2921,15 @@
2921
2921
 
2922
2922
  let TextMeasure$1 = class TextMeasure {
2923
2923
  constructor(option, textSpec) {
2924
- this._numberCharSize = null, this._fullCharSize = null, this._letterCharSize = null, this._specialCharSizeMap = {}, this._canvas = null, this._context = null, this._contextSaved = !1, this._notSupportCanvas = !1, this._notSupportCanopus = !1, this._userSpec = {}, this.specialCharSet = "-/: .,@%'\"~", this._option = option, this._userSpec = null != textSpec ? textSpec : {}, this.textSpec = this._initSpec(), isValid$2(option.specialCharSet) && (this.specialCharSet = option.specialCharSet), this._standardMethod = isValid$2(option.getTextBounds) ? this.fullMeasure.bind(this) : this.measureWithNaiveCanvas.bind(this);
2924
+ this._numberCharSize = null, this._fullCharSize = null, this._letterCharSize = null, this._specialCharSizeMap = {}, this._canvas = null, this._context = null, this._contextSaved = !1, this._notSupportCanvas = !1, this._notSupportCanopus = !1, this._userSpec = {}, this.specialCharSet = "-/: .,@%'\"~", this._option = option, this._userSpec = null != textSpec ? textSpec : {}, this.textSpec = this._initSpec(), isValid$1(option.specialCharSet) && (this.specialCharSet = option.specialCharSet), this._standardMethod = isValid$1(option.getTextBounds) ? this.fullMeasure.bind(this) : this.measureWithNaiveCanvas.bind(this);
2925
2925
  }
2926
2926
  initContext() {
2927
2927
  if (this._notSupportCanvas) return !1;
2928
- if (isNil$2(this._canvas) && (isValid$2(this._option.getCanvasForMeasure) && (this._canvas = this._option.getCanvasForMeasure()), isNil$2(this._canvas) && isValid$2(globalThis.document) && (this._canvas = globalThis.document.createElement("canvas"))), isNil$2(this._context) && isValid$2(this._canvas)) {
2928
+ if (isNil$1(this._canvas) && (isValid$1(this._option.getCanvasForMeasure) && (this._canvas = this._option.getCanvasForMeasure()), isNil$1(this._canvas) && isValid$1(globalThis.document) && (this._canvas = globalThis.document.createElement("canvas"))), isNil$1(this._context) && isValid$1(this._canvas)) {
2929
2929
  const context = this._canvas.getContext("2d");
2930
- isValid$2(context) && (context.save(), context.font = getContextFont$2(this.textSpec), this._contextSaved = !0, this._context = context);
2930
+ isValid$1(context) && (context.save(), context.font = getContextFont$2(this.textSpec), this._contextSaved = !0, this._context = context);
2931
2931
  }
2932
- return !isNil$2(this._context) || (this._notSupportCanvas = !0, !1);
2932
+ return !isNil$1(this._context) || (this._notSupportCanvas = !0, !1);
2933
2933
  }
2934
2934
  _initSpec() {
2935
2935
  var _a, _b, _c;
@@ -2976,11 +2976,11 @@
2976
2976
  }
2977
2977
  }
2978
2978
  fullMeasure(text) {
2979
- if (isNil$2(text)) return {
2979
+ if (isNil$1(text)) return {
2980
2980
  width: 0,
2981
2981
  height: 0
2982
2982
  };
2983
- if (isNil$2(this._option.getTextBounds) || !this._notSupportCanopus) return this.measureWithNaiveCanvas(text);
2983
+ if (isNil$1(this._option.getTextBounds) || !this._notSupportCanopus) return this.measureWithNaiveCanvas(text);
2984
2984
  const {
2985
2985
  fontFamily: fontFamily,
2986
2986
  fontSize: fontSize,
@@ -3039,7 +3039,7 @@
3039
3039
  for (let i = 0; i < text.length; i++) {
3040
3040
  const char = text[i];
3041
3041
  let size = this._measureSpecialChar(char);
3042
- isNil$2(size) && TextMeasure.NUMBERS_CHAR_SET.includes(char) && (size = this._measureNumberChar()), isNil$2(size) && ["F", "W"].includes(eastAsianCharacterInfo$1(char)) && (size = this._measureFullSizeChar()), isNil$2(size) && (size = this._measureLetterChar()), totalSize.width += size.width, totalSize.height = Math.max(totalSize.height, size.height);
3042
+ isNil$1(size) && TextMeasure.NUMBERS_CHAR_SET.includes(char) && (size = this._measureNumberChar()), isNil$1(size) && ["F", "W"].includes(eastAsianCharacterInfo$1(char)) && (size = this._measureFullSizeChar()), isNil$1(size) && (size = this._measureLetterChar()), totalSize.width += size.width, totalSize.height = Math.max(totalSize.height, size.height);
3043
3043
  }
3044
3044
  return totalSize;
3045
3045
  }
@@ -3071,9 +3071,9 @@
3071
3071
  width: 0,
3072
3072
  height: 0
3073
3073
  };
3074
- if (isNil$2(text)) return defaultResult;
3075
- if (isArray$2(text)) {
3076
- const textArr = text.filter(isValid$2).map(s => s.toString());
3074
+ if (isNil$1(text)) return defaultResult;
3075
+ if (isArray$1(text)) {
3076
+ const textArr = text.filter(isValid$1).map(s => s.toString());
3077
3077
  return 0 === textArr.length ? defaultResult : 1 === textArr.length ? processor(textArr[0]) : {
3078
3078
  width: textArr.reduce((maxWidth, cur) => Math.max(maxWidth, processor(cur).width), 0),
3079
3079
  height: textArr.length * ((null != lineHeight ? lineHeight : fontSize) + 1) + 1
@@ -3082,7 +3082,7 @@
3082
3082
  return processor(text.toString());
3083
3083
  }
3084
3084
  _measureNumberChar() {
3085
- if (isNil$2(this._numberCharSize)) {
3085
+ if (isNil$1(this._numberCharSize)) {
3086
3086
  const numberBounds = this._standardMethod(TextMeasure.NUMBERS_CHAR_SET);
3087
3087
  this._numberCharSize = {
3088
3088
  width: numberBounds.width / TextMeasure.NUMBERS_CHAR_SET.length,
@@ -3092,10 +3092,10 @@
3092
3092
  return this._numberCharSize;
3093
3093
  }
3094
3094
  _measureFullSizeChar() {
3095
- return isNil$2(this._fullCharSize) && (this._fullCharSize = this._standardMethod(TextMeasure.FULL_SIZE_CHAR)), this._fullCharSize;
3095
+ return isNil$1(this._fullCharSize) && (this._fullCharSize = this._standardMethod(TextMeasure.FULL_SIZE_CHAR)), this._fullCharSize;
3096
3096
  }
3097
3097
  _measureLetterChar() {
3098
- if (isNil$2(this._letterCharSize)) {
3098
+ if (isNil$1(this._letterCharSize)) {
3099
3099
  const alphabetBounds = this._standardMethod(TextMeasure.ALPHABET_CHAR_SET);
3100
3100
  this._letterCharSize = {
3101
3101
  width: alphabetBounds.width / TextMeasure.ALPHABET_CHAR_SET.length,
@@ -3105,10 +3105,10 @@
3105
3105
  return this._letterCharSize;
3106
3106
  }
3107
3107
  _measureSpecialChar(char) {
3108
- return isValid$2(this._specialCharSizeMap[char]) ? this._specialCharSizeMap[char] : this.specialCharSet.includes(char) ? (this._specialCharSizeMap[char] = this._standardMethod(char), this._specialCharSizeMap[char]) : null;
3108
+ return isValid$1(this._specialCharSizeMap[char]) ? this._specialCharSizeMap[char] : this.specialCharSet.includes(char) ? (this._specialCharSizeMap[char] = this._standardMethod(char), this._specialCharSizeMap[char]) : null;
3109
3109
  }
3110
3110
  release() {
3111
- isValid$2(this._canvas) && (this._canvas = null), isValid$2(this._context) && (this._contextSaved && (this._context.restore(), this._contextSaved = !1), this._context = null);
3111
+ isValid$1(this._canvas) && (this._canvas = null), isValid$1(this._context) && (this._contextSaved && (this._context.restore(), this._contextSaved = !1), this._context = null);
3112
3112
  }
3113
3113
  };
3114
3114
  TextMeasure$1.ALPHABET_CHAR_SET = "abcdefghijklmnopqrstuvwxyz", TextMeasure$1.NUMBERS_CHAR_SET = "0123456789", TextMeasure$1.FULL_SIZE_CHAR = "字";
@@ -4125,7 +4125,7 @@
4125
4125
  return null;
4126
4126
  }
4127
4127
  if (typeof value === 'string') {
4128
- const t = getIgnoreCase(get$4(), value);
4128
+ const t = getIgnoreCase(get$3(), value);
4129
4129
  if (t) {
4130
4130
  if (t instanceof TableTheme) {
4131
4131
  return t;
@@ -4139,7 +4139,7 @@
4139
4139
  }
4140
4140
  return new TableTheme(value, value);
4141
4141
  }
4142
- function get$4() {
4142
+ function get$3() {
4143
4143
  return extend(builtin$1, themes$2);
4144
4144
  }
4145
4145
  var themes = {
@@ -4150,7 +4150,7 @@
4150
4150
  SIMPLIFY,
4151
4151
  theme: theme$1,
4152
4152
  of,
4153
- get: get$4
4153
+ get: get$3
4154
4154
  };
4155
4155
 
4156
4156
  var themes$1 = /*#__PURE__*/Object.freeze({
@@ -4161,7 +4161,7 @@
4161
4161
  DEFAULT: DEFAULT,
4162
4162
  SIMPLIFY: SIMPLIFY,
4163
4163
  default: themes,
4164
- get: get$4,
4164
+ get: get$3,
4165
4165
  of: of,
4166
4166
  theme: theme$1
4167
4167
  });
@@ -8443,58 +8443,91 @@
8443
8443
  };
8444
8444
  DefaultGlobal = __decorate$1F([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(EnvContribution)), __metadata$10("design:paramtypes", [Object])], DefaultGlobal);
8445
8445
 
8446
- const isType$1 = (value, type) => toString.call(value) === `[object ${type}]`;
8446
+ const isType = (value, type) => toString.call(value) === `[object ${type}]`;
8447
8447
 
8448
- const isBoolean$1 = function (value) {
8448
+ const isBoolean = function (value) {
8449
8449
  let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
8450
- return fuzzy ? "boolean" == typeof value : !0 === value || !1 === value || isType$1(value, "Boolean");
8450
+ return fuzzy ? "boolean" == typeof value : !0 === value || !1 === value || isType(value, "Boolean");
8451
8451
  };
8452
8452
 
8453
- const isFunction$1 = value => "function" == typeof value;
8453
+ const isFunction = value => "function" == typeof value;
8454
8454
 
8455
- const isNil$1 = value => null == value;
8455
+ const isNil = value => null == value;
8456
8456
 
8457
- const isValid$1 = value => null != value;
8457
+ const isValid = value => null != value;
8458
8458
 
8459
- const isObject$1 = value => {
8459
+ const isObject = value => {
8460
8460
  const type = typeof value;
8461
8461
  return null !== value && "object" === type || "function" === type;
8462
8462
  };
8463
8463
 
8464
+ const isObjectLike = value => "object" == typeof value && null !== value;
8465
+
8466
+ const isPlainObject = function (value) {
8467
+ if (!isObjectLike(value) || !isType(value, "Object")) return !1;
8468
+ if (null === Object.getPrototypeOf(value)) return !0;
8469
+ let proto = value;
8470
+ for (; null !== Object.getPrototypeOf(proto);) proto = Object.getPrototypeOf(proto);
8471
+ return Object.getPrototypeOf(value) === proto;
8472
+ };
8473
+
8464
8474
  const isUndefined = value => void 0 === value;
8465
8475
 
8466
- const isString$1 = function (value) {
8476
+ const isString = function (value) {
8467
8477
  let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
8468
8478
  const type = typeof value;
8469
- return fuzzy ? "string" === type : "string" === type || isType$1(value, "String");
8479
+ return fuzzy ? "string" === type : "string" === type || isType(value, "String");
8470
8480
  };
8471
8481
 
8472
- const isArray$1 = value => Array.isArray ? Array.isArray(value) : isType$1(value, "Array");
8482
+ const isArray = value => Array.isArray ? Array.isArray(value) : isType(value, "Array");
8473
8483
 
8474
- const isDate$1 = value => isType$1(value, "Date");
8484
+ const isArrayLike = function (value) {
8485
+ return null !== value && "function" != typeof value && Number.isFinite(value.length);
8486
+ };
8475
8487
 
8476
- const isNumber$1 = function (value) {
8488
+ const isDate = value => isType(value, "Date");
8489
+
8490
+ const isNumber = function (value) {
8477
8491
  let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
8478
8492
  const type = typeof value;
8479
- return fuzzy ? "number" === type : "number" === type || isType$1(value, "Number");
8493
+ return fuzzy ? "number" === type : "number" === type || isType(value, "Number");
8480
8494
  };
8481
8495
 
8482
- const isValidNumber$1 = value => isNumber$1(value) && Number.isFinite(value);
8496
+ const isValidNumber = value => isNumber(value) && Number.isFinite(value);
8483
8497
 
8484
8498
  const isValidUrl = value => new RegExp(/^(http(s)?:\/\/)\w+[^\s]+(\.[^\s]+){1,}$/).test(value);
8485
8499
 
8486
- const isRegExp = value => isType$1(value, "RegExp");
8500
+ const isRegExp = value => isType(value, "RegExp");
8487
8501
 
8488
8502
  const isBase64 = value => new RegExp(/^data:image\/(?:gif|png|jpeg|bmp|webp)(?:;charset=utf-8)?;base64,(?:[A-Za-z0-9]|[+/])+={0,2}/g).test(value);
8489
8503
 
8490
- const get$3 = (obj, path, defaultValue) => {
8491
- const paths = isString$1(path) ? path.split(".") : path;
8504
+ const getType = value => ({}).toString.call(value).replace(/^\[object /, "").replace(/]$/, "");
8505
+
8506
+ const objectProto = Object.prototype,
8507
+ isPrototype = function (value) {
8508
+ const Ctor = value && value.constructor;
8509
+ return value === ("function" == typeof Ctor && Ctor.prototype || objectProto);
8510
+ };
8511
+
8512
+ const hasOwnProperty$2 = Object.prototype.hasOwnProperty;
8513
+ function isEmpty(value) {
8514
+ if (isNil(value)) return !0;
8515
+ if (isArrayLike(value)) return !value.length;
8516
+ const type = getType(value);
8517
+ if ("Map" === type || "Set" === type) return !value.size;
8518
+ if (isPrototype(value)) return !Object.keys(value).length;
8519
+ for (const key in value) if (hasOwnProperty$2.call(value, key)) return !1;
8520
+ return !0;
8521
+ }
8522
+
8523
+ const get$2 = (obj, path, defaultValue) => {
8524
+ const paths = isString(path) ? path.split(".") : path;
8492
8525
  for (let p = 0; p < paths.length; p++) obj = obj ? obj[paths[p]] : void 0;
8493
8526
  return void 0 === obj ? defaultValue : obj;
8494
8527
  };
8495
8528
 
8496
- const hasOwnProperty$2 = Object.prototype.hasOwnProperty,
8497
- has = (object, key) => null != object && hasOwnProperty$2.call(object, key);
8529
+ const hasOwnProperty$1 = Object.prototype.hasOwnProperty,
8530
+ has = (object, key) => null != object && hasOwnProperty$1.call(object, key);
8498
8531
 
8499
8532
  function getRegExpFlags(re) {
8500
8533
  let flags = "";
@@ -8511,7 +8544,7 @@
8511
8544
  if (0 === depth) return parent;
8512
8545
  let child;
8513
8546
  if ("object" != typeof parent) return parent;
8514
- if (isArray$1(parent) ? child = [] : isRegExp(parent) ? (child = new RegExp(parent.source, getRegExpFlags(parent)), parent.lastIndex && (child.lastIndex = parent.lastIndex)) : child = isDate$1(parent) ? new Date(parent.getTime()) : void 0 === prototype ? Object.create(Object.getPrototypeOf(parent)) : Object.create(prototype), circular) {
8547
+ if (isArray(parent) ? child = [] : isRegExp(parent) ? (child = new RegExp(parent.source, getRegExpFlags(parent)), parent.lastIndex && (child.lastIndex = parent.lastIndex)) : child = isDate(parent) ? new Date(parent.getTime()) : void 0 === prototype ? Object.create(Object.getPrototypeOf(parent)) : Object.create(prototype), circular) {
8515
8548
  const index = allParents.indexOf(parent);
8516
8549
  if (-1 !== index) return allChildren[index];
8517
8550
  allParents.push(parent), allChildren.push(child);
@@ -8521,52 +8554,123 @@
8521
8554
  }(parent, depth);
8522
8555
  }
8523
8556
 
8524
- function cloneDeep$1(value) {
8557
+ function cloneDeep(value) {
8525
8558
  let result;
8526
- if (!isValid$1(value) || "object" != typeof value) return value;
8527
- const isArr = isArray$1(value),
8559
+ if (!isValid(value) || "object" != typeof value) return value;
8560
+ const isArr = isArray(value),
8528
8561
  length = value.length;
8529
- result = isArr ? new Array(length) : "object" == typeof value ? {} : isBoolean$1(value) || isNumber$1(value) || isString$1(value) ? value : isDate$1(value) ? new Date(+value) : void 0;
8562
+ result = isArr ? new Array(length) : "object" == typeof value ? {} : isBoolean(value) || isNumber(value) || isString(value) ? value : isDate(value) ? new Date(+value) : void 0;
8530
8563
  const props = isArr ? void 0 : Object.keys(Object(value));
8531
8564
  let index = -1;
8532
8565
  if (result) for (; ++index < (props || value).length;) {
8533
8566
  const key = props ? props[index] : index,
8534
8567
  subValue = value[key];
8535
- result[key] = cloneDeep$1(subValue);
8568
+ result[key] = cloneDeep(subValue);
8536
8569
  }
8537
8570
  return result;
8538
8571
  }
8539
8572
 
8573
+ function baseMerge(target, source) {
8574
+ let shallowArray = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
8575
+ if (source) {
8576
+ if (target === source) return;
8577
+ if (isValid(source) && "object" == typeof source) {
8578
+ const iterable = Object(source),
8579
+ props = [];
8580
+ for (const key in iterable) props.push(key);
8581
+ let {
8582
+ length: length
8583
+ } = props,
8584
+ propIndex = -1;
8585
+ for (; length--;) {
8586
+ const key = props[++propIndex];
8587
+ isValid(iterable[key]) && "object" == typeof iterable[key] ? baseMergeDeep(target, source, key, shallowArray) : assignMergeValue(target, key, iterable[key]);
8588
+ }
8589
+ }
8590
+ }
8591
+ }
8592
+ function baseMergeDeep(target, source, key) {
8593
+ let shallowArray = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
8594
+ const objValue = target[key],
8595
+ srcValue = source[key];
8596
+ let newValue = source[key],
8597
+ isCommon = !0;
8598
+ if (isArray(srcValue)) {
8599
+ if (shallowArray) newValue = [];else if (isArray(objValue)) newValue = objValue;else if (isArrayLike(objValue)) {
8600
+ newValue = new Array(objValue.length);
8601
+ let index = -1;
8602
+ const length = objValue.length;
8603
+ for (; ++index < length;) newValue[index] = objValue[index];
8604
+ }
8605
+ } else isPlainObject(srcValue) ? (newValue = objValue, "function" != typeof objValue && "object" == typeof objValue || (newValue = {})) : isCommon = !1;
8606
+ isCommon && baseMerge(newValue, srcValue, shallowArray), assignMergeValue(target, key, newValue);
8607
+ }
8608
+ function assignMergeValue(target, key, value) {
8609
+ (void 0 !== value && !eq(target[key], value) || void 0 === value && !(key in target)) && (target[key] = value);
8610
+ }
8611
+ function eq(value, other) {
8612
+ return value === other || Number.isNaN(value) && Number.isNaN(other);
8613
+ }
8614
+ function merge$2(target) {
8615
+ let sourceIndex = -1;
8616
+ const length = arguments.length <= 1 ? 0 : arguments.length - 1;
8617
+ for (; ++sourceIndex < length;) {
8618
+ baseMerge(target, sourceIndex + 1 < 1 || arguments.length <= sourceIndex + 1 ? undefined : arguments[sourceIndex + 1], !0);
8619
+ }
8620
+ return target;
8621
+ }
8622
+
8540
8623
  function arrayEqual(a, b) {
8541
- if (!isArray$1(a) || !isArray$1(b)) return !1;
8624
+ if (!isArray(a) || !isArray(b)) return !1;
8542
8625
  if (a.length !== b.length) return !1;
8543
8626
  for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return !1;
8544
8627
  return !0;
8545
8628
  }
8546
8629
 
8547
- let hasRaf$1 = !1;
8630
+ const DEFAULT_ABSOLUTE_TOLERATE = 1e-10,
8631
+ DEFAULT_RELATIVE_TOLERATE = 1e-10;
8632
+ function isNumberClose(a, b) {
8633
+ let relTol = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_RELATIVE_TOLERATE;
8634
+ let absTol = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_ABSOLUTE_TOLERATE;
8635
+ const abs = absTol,
8636
+ rel = relTol * Math.max(a, b);
8637
+ return Math.abs(a - b) <= Math.max(abs, rel);
8638
+ }
8639
+
8640
+ const clamp$1 = function (input, min, max) {
8641
+ return input < min ? min : input > max ? max : input;
8642
+ };
8643
+
8644
+ const clampRange = (range, min, max) => {
8645
+ let [lowValue, highValue] = range;
8646
+ highValue < lowValue && (lowValue = range[1], highValue = range[0]);
8647
+ const span = highValue - lowValue;
8648
+ return span >= max - min ? [min, max] : (lowValue = Math.min(Math.max(lowValue, min), max - span), [lowValue, lowValue + span]);
8649
+ };
8650
+
8651
+ let hasRaf = !1;
8548
8652
  try {
8549
- hasRaf$1 = "function" == typeof requestAnimationFrame && "function" == typeof cancelAnimationFrame;
8653
+ hasRaf = "function" == typeof requestAnimationFrame && "function" == typeof cancelAnimationFrame;
8550
8654
  } catch (err) {
8551
- hasRaf$1 = !1;
8655
+ hasRaf = !1;
8552
8656
  }
8553
- hasRaf$1 = !1;
8657
+ hasRaf = !1;
8554
8658
 
8555
8659
  const epsilon$1 = 1e-12;
8556
- const pi$2 = Math.PI;
8557
- const halfPi$2 = pi$2 / 2;
8558
- const tau$1 = 2 * pi$2;
8660
+ const pi$1 = Math.PI;
8661
+ const halfPi$2 = pi$1 / 2;
8662
+ const tau$1 = 2 * pi$1;
8559
8663
  const pi2 = 2 * Math.PI;
8560
- const abs$2 = Math.abs;
8664
+ const abs$1 = Math.abs;
8561
8665
  const atan2$1 = Math.atan2;
8562
8666
  const cos$1 = Math.cos;
8563
8667
  const max = Math.max;
8564
8668
  const min = Math.min;
8565
8669
  const sin$1 = Math.sin;
8566
- const sqrt$2 = Math.sqrt;
8567
- const pow$1 = Math.pow;
8670
+ const sqrt$1 = Math.sqrt;
8671
+ const pow = Math.pow;
8568
8672
  function acos$1(x) {
8569
- return x > 1 ? 0 : x < -1 ? pi$2 : Math.acos(x);
8673
+ return x > 1 ? 0 : x < -1 ? pi$1 : Math.acos(x);
8570
8674
  }
8571
8675
  function asin$1(x) {
8572
8676
  return x >= 1 ? halfPi$2 : x <= -1 ? -halfPi$2 : Math.asin(x);
@@ -8579,7 +8683,7 @@
8579
8683
  };
8580
8684
  }
8581
8685
 
8582
- let Point$1 = class Point {
8686
+ class Point {
8583
8687
  constructor() {
8584
8688
  let x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
8585
8689
  let y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
@@ -8597,10 +8701,10 @@
8597
8701
  return this.x = x, this.y = y, this;
8598
8702
  }
8599
8703
  add(point) {
8600
- return isNumber$1(point) ? (this.x += point, void (this.y += point)) : (this.x += point.x, this.y += point.y, this);
8704
+ return isNumber(point) ? (this.x += point, void (this.y += point)) : (this.x += point.x, this.y += point.y, this);
8601
8705
  }
8602
8706
  sub(point) {
8603
- return isNumber$1(point) ? (this.x -= point, void (this.y -= point)) : (this.x -= point.x, this.y -= point.y, this);
8707
+ return isNumber(point) ? (this.x -= point, void (this.y -= point)) : (this.x -= point.x, this.y -= point.y, this);
8604
8708
  }
8605
8709
  multi(point) {
8606
8710
  throw new Error("暂不支持");
@@ -8608,21 +8712,21 @@
8608
8712
  div(point) {
8609
8713
  throw new Error("暂不支持");
8610
8714
  }
8611
- };
8612
- let PointService$1 = class PointService {
8715
+ }
8716
+ class PointService {
8613
8717
  static distancePP(p1, p2) {
8614
- return sqrt$2(pow$1(p1.x - p2.x, 2) + pow$1(p1.y - p2.y, 2));
8718
+ return sqrt$1(pow(p1.x - p2.x, 2) + pow(p1.y - p2.y, 2));
8615
8719
  }
8616
8720
  static distanceNN(x, y, x1, y1) {
8617
- return sqrt$2(pow$1(x - x1, 2) + pow$1(y - y1, 2));
8721
+ return sqrt$1(pow(x - x1, 2) + pow(y - y1, 2));
8618
8722
  }
8619
8723
  static distancePN(point, x, y) {
8620
- return sqrt$2(pow$1(x - point.x, 2) + pow$1(y - point.y, 2));
8724
+ return sqrt$1(pow(x - point.x, 2) + pow(y - point.y, 2));
8621
8725
  }
8622
8726
  static pointAtPP(p1, p2, t) {
8623
- return new Point$1((p2.x - p1.x) * t + p1.x, (p2.y - p1.y) * t + p1.y);
8727
+ return new Point((p2.x - p1.x) * t + p1.x, (p2.y - p1.y) * t + p1.y);
8624
8728
  }
8625
- };
8729
+ }
8626
8730
 
8627
8731
  function transformBoundsWithMatrix(out, bounds, matrix) {
8628
8732
  const {
@@ -8670,7 +8774,7 @@
8670
8774
  }
8671
8775
  expand() {
8672
8776
  let d = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
8673
- return isArray$1(d) ? (this.y1 -= d[0], this.x2 += d[1], this.y2 += d[2], this.x1 -= d[3]) : (this.x1 -= d, this.y1 -= d, this.x2 += d, this.y2 += d), this;
8777
+ return isArray(d) ? (this.y1 -= d[0], this.x2 += d[1], this.y2 += d[2], this.x1 -= d[3]) : (this.x1 -= d, this.y1 -= d, this.x2 += d, this.y2 += d), this;
8674
8778
  }
8675
8779
  round() {
8676
8780
  return this.x1 = Math.floor(this.x1), this.y1 = Math.floor(this.y1), this.x2 = Math.ceil(this.x2), this.y2 = Math.ceil(this.y2), this;
@@ -8775,6 +8879,12 @@
8775
8879
  return angle;
8776
8880
  };
8777
8881
  const clampAngleByRadian = clampRadian;
8882
+ function polarToCartesian(center, radius, angleInRadian) {
8883
+ return {
8884
+ x: center.x + radius * Math.cos(angleInRadian),
8885
+ y: center.y + radius * Math.sin(angleInRadian)
8886
+ };
8887
+ }
8778
8888
 
8779
8889
  class Matrix {
8780
8890
  constructor() {
@@ -8959,10 +9069,10 @@
8959
9069
  y2: Math.min(y12, y22)
8960
9070
  });
8961
9071
  }
8962
- var InnerBBox$1;
9072
+ var InnerBBox;
8963
9073
  !function (InnerBBox) {
8964
9074
  InnerBBox[InnerBBox.NONE = 0] = "NONE", InnerBBox[InnerBBox.BBOX1 = 1] = "BBOX1", InnerBBox[InnerBBox.BBOX2 = 2] = "BBOX2";
8965
- }(InnerBBox$1 || (InnerBBox$1 = {}));
9075
+ }(InnerBBox || (InnerBBox = {}));
8966
9076
  function isRectIntersect(bbox1, bbox2, format) {
8967
9077
  return !bbox1 || !bbox2 || (format ? (x11 = bbox1.x1, x12 = bbox1.x2, y11 = bbox1.y1, y12 = bbox1.y2, x21 = bbox2.x1, x22 = bbox2.x2, y21 = bbox2.y1, y22 = bbox2.y2, x11 > x12 && ([x11, x12] = [x12, x11]), y11 > y12 && ([y11, y12] = [y12, y11]), x21 > x22 && ([x21, x22] = [x22, x21]), y21 > y22 && ([y21, y22] = [y22, y21]), !(x11 > x22 || x12 < x21 || y11 > y22 || y12 < y21)) : !(bbox1.x1 > bbox2.x2 || bbox1.x2 < bbox2.x1 || bbox1.y1 > bbox2.y2 || bbox1.y2 < bbox2.y1));
8968
9078
  }
@@ -8988,15 +9098,15 @@
8988
9098
 
8989
9099
  class TextMeasure {
8990
9100
  constructor(option, textSpec) {
8991
- this._numberCharSize = null, this._fullCharSize = null, this._letterCharSize = null, this._specialCharSizeMap = {}, this._canvas = null, this._context = null, this._contextSaved = !1, this._notSupportCanvas = !1, this._notSupportCanopus = !1, this._userSpec = {}, this.specialCharSet = "-/: .,@%'\"~", this._option = option, this._userSpec = null != textSpec ? textSpec : {}, this.textSpec = this._initSpec(), isValid$1(option.specialCharSet) && (this.specialCharSet = option.specialCharSet), this._standardMethod = isValid$1(option.getTextBounds) ? this.fullMeasure.bind(this) : this.measureWithNaiveCanvas.bind(this);
9101
+ this._numberCharSize = null, this._fullCharSize = null, this._letterCharSize = null, this._specialCharSizeMap = {}, this._canvas = null, this._context = null, this._contextSaved = !1, this._notSupportCanvas = !1, this._notSupportCanopus = !1, this._userSpec = {}, this.specialCharSet = "-/: .,@%'\"~", this._option = option, this._userSpec = null != textSpec ? textSpec : {}, this.textSpec = this._initSpec(), isValid(option.specialCharSet) && (this.specialCharSet = option.specialCharSet), this._standardMethod = isValid(option.getTextBounds) ? this.fullMeasure.bind(this) : this.measureWithNaiveCanvas.bind(this);
8992
9102
  }
8993
9103
  initContext() {
8994
9104
  if (this._notSupportCanvas) return !1;
8995
- if (isNil$1(this._canvas) && (isValid$1(this._option.getCanvasForMeasure) && (this._canvas = this._option.getCanvasForMeasure()), isNil$1(this._canvas) && isValid$1(globalThis.document) && (this._canvas = globalThis.document.createElement("canvas"))), isNil$1(this._context) && isValid$1(this._canvas)) {
9105
+ if (isNil(this._canvas) && (isValid(this._option.getCanvasForMeasure) && (this._canvas = this._option.getCanvasForMeasure()), isNil(this._canvas) && isValid(globalThis.document) && (this._canvas = globalThis.document.createElement("canvas"))), isNil(this._context) && isValid(this._canvas)) {
8996
9106
  const context = this._canvas.getContext("2d");
8997
- isValid$1(context) && (context.save(), context.font = getContextFont$1(this.textSpec), this._contextSaved = !0, this._context = context);
9107
+ isValid(context) && (context.save(), context.font = getContextFont$1(this.textSpec), this._contextSaved = !0, this._context = context);
8998
9108
  }
8999
- return !isNil$1(this._context) || (this._notSupportCanvas = !0, !1);
9109
+ return !isNil(this._context) || (this._notSupportCanvas = !0, !1);
9000
9110
  }
9001
9111
  _initSpec() {
9002
9112
  var _a, _b, _c;
@@ -9043,11 +9153,11 @@
9043
9153
  }
9044
9154
  }
9045
9155
  fullMeasure(text) {
9046
- if (isNil$1(text)) return {
9156
+ if (isNil(text)) return {
9047
9157
  width: 0,
9048
9158
  height: 0
9049
9159
  };
9050
- if (isNil$1(this._option.getTextBounds) || !this._notSupportCanopus) return this.measureWithNaiveCanvas(text);
9160
+ if (isNil(this._option.getTextBounds) || !this._notSupportCanopus) return this.measureWithNaiveCanvas(text);
9051
9161
  const {
9052
9162
  fontFamily: fontFamily,
9053
9163
  fontSize: fontSize,
@@ -9106,7 +9216,7 @@
9106
9216
  for (let i = 0; i < text.length; i++) {
9107
9217
  const char = text[i];
9108
9218
  let size = this._measureSpecialChar(char);
9109
- isNil$1(size) && TextMeasure.NUMBERS_CHAR_SET.includes(char) && (size = this._measureNumberChar()), isNil$1(size) && ["F", "W"].includes(eastAsianCharacterInfo(char)) && (size = this._measureFullSizeChar()), isNil$1(size) && (size = this._measureLetterChar()), totalSize.width += size.width, totalSize.height = Math.max(totalSize.height, size.height);
9219
+ isNil(size) && TextMeasure.NUMBERS_CHAR_SET.includes(char) && (size = this._measureNumberChar()), isNil(size) && ["F", "W"].includes(eastAsianCharacterInfo(char)) && (size = this._measureFullSizeChar()), isNil(size) && (size = this._measureLetterChar()), totalSize.width += size.width, totalSize.height = Math.max(totalSize.height, size.height);
9110
9220
  }
9111
9221
  return totalSize;
9112
9222
  }
@@ -9138,9 +9248,9 @@
9138
9248
  width: 0,
9139
9249
  height: 0
9140
9250
  };
9141
- if (isNil$1(text)) return defaultResult;
9142
- if (isArray$1(text)) {
9143
- const textArr = text.filter(isValid$1).map(s => s.toString());
9251
+ if (isNil(text)) return defaultResult;
9252
+ if (isArray(text)) {
9253
+ const textArr = text.filter(isValid).map(s => s.toString());
9144
9254
  return 0 === textArr.length ? defaultResult : 1 === textArr.length ? processor(textArr[0]) : {
9145
9255
  width: textArr.reduce((maxWidth, cur) => Math.max(maxWidth, processor(cur).width), 0),
9146
9256
  height: textArr.length * ((null != lineHeight ? lineHeight : fontSize) + 1) + 1
@@ -9149,7 +9259,7 @@
9149
9259
  return processor(text.toString());
9150
9260
  }
9151
9261
  _measureNumberChar() {
9152
- if (isNil$1(this._numberCharSize)) {
9262
+ if (isNil(this._numberCharSize)) {
9153
9263
  const numberBounds = this._standardMethod(TextMeasure.NUMBERS_CHAR_SET);
9154
9264
  this._numberCharSize = {
9155
9265
  width: numberBounds.width / TextMeasure.NUMBERS_CHAR_SET.length,
@@ -9159,10 +9269,10 @@
9159
9269
  return this._numberCharSize;
9160
9270
  }
9161
9271
  _measureFullSizeChar() {
9162
- return isNil$1(this._fullCharSize) && (this._fullCharSize = this._standardMethod(TextMeasure.FULL_SIZE_CHAR)), this._fullCharSize;
9272
+ return isNil(this._fullCharSize) && (this._fullCharSize = this._standardMethod(TextMeasure.FULL_SIZE_CHAR)), this._fullCharSize;
9163
9273
  }
9164
9274
  _measureLetterChar() {
9165
- if (isNil$1(this._letterCharSize)) {
9275
+ if (isNil(this._letterCharSize)) {
9166
9276
  const alphabetBounds = this._standardMethod(TextMeasure.ALPHABET_CHAR_SET);
9167
9277
  this._letterCharSize = {
9168
9278
  width: alphabetBounds.width / TextMeasure.ALPHABET_CHAR_SET.length,
@@ -9172,14 +9282,44 @@
9172
9282
  return this._letterCharSize;
9173
9283
  }
9174
9284
  _measureSpecialChar(char) {
9175
- return isValid$1(this._specialCharSizeMap[char]) ? this._specialCharSizeMap[char] : this.specialCharSet.includes(char) ? (this._specialCharSizeMap[char] = this._standardMethod(char), this._specialCharSizeMap[char]) : null;
9285
+ return isValid(this._specialCharSizeMap[char]) ? this._specialCharSizeMap[char] : this.specialCharSet.includes(char) ? (this._specialCharSizeMap[char] = this._standardMethod(char), this._specialCharSizeMap[char]) : null;
9176
9286
  }
9177
9287
  release() {
9178
- isValid$1(this._canvas) && (this._canvas = null), isValid$1(this._context) && (this._contextSaved && (this._context.restore(), this._contextSaved = !1), this._context = null);
9288
+ isValid(this._canvas) && (this._canvas = null), isValid(this._context) && (this._contextSaved && (this._context.restore(), this._contextSaved = !1), this._context = null);
9179
9289
  }
9180
9290
  }
9181
9291
  TextMeasure.ALPHABET_CHAR_SET = "abcdefghijklmnopqrstuvwxyz", TextMeasure.NUMBERS_CHAR_SET = "0123456789", TextMeasure.FULL_SIZE_CHAR = "字";
9182
9292
 
9293
+ function normalizePadding(padding) {
9294
+ if (isValidNumber(padding)) return [padding, padding, padding, padding];
9295
+ if (isArray(padding)) {
9296
+ const length = padding.length;
9297
+ if (1 === length) {
9298
+ const paddingValue = padding[0];
9299
+ return [paddingValue, paddingValue, paddingValue, paddingValue];
9300
+ }
9301
+ if (2 === length) {
9302
+ const [vertical, horizontal] = padding;
9303
+ return [vertical, horizontal, vertical, horizontal];
9304
+ }
9305
+ if (3 === length) {
9306
+ const [top, horizontal, bottom] = padding;
9307
+ return [top, horizontal, bottom, horizontal];
9308
+ }
9309
+ if (4 === length) return padding;
9310
+ }
9311
+ if (isObject(padding)) {
9312
+ const {
9313
+ top = 0,
9314
+ right = 0,
9315
+ bottom = 0,
9316
+ left = 0
9317
+ } = padding;
9318
+ return [top, right, bottom, left];
9319
+ }
9320
+ return [0, 0, 0, 0];
9321
+ }
9322
+
9183
9323
  const circleThreshold = tau$1 - 1e-8;
9184
9324
  class BoundsContext {
9185
9325
  constructor(bounds) {
@@ -9456,7 +9596,7 @@
9456
9596
  y = yArr[i],
9457
9597
  nextX = xArr[(i + 1) % count],
9458
9598
  nextY = yArr[(i + 1) % count];
9459
- totalLength += PointService$1.distanceNN(x, y, nextX, nextY);
9599
+ totalLength += PointService.distanceNN(x, y, nextX, nextY);
9460
9600
  }
9461
9601
  return totalLength / 2;
9462
9602
  }
@@ -9470,7 +9610,7 @@
9470
9610
  function cubicPointAt(p0, p1, p2, p3, t) {
9471
9611
  const x = cubicCalc(p0.x, p1.x, p2.x, p3.x, t),
9472
9612
  y = cubicCalc(p0.y, p1.y, p2.y, p3.y, t);
9473
- return new Point$1(x, y);
9613
+ return new Point(x, y);
9474
9614
  }
9475
9615
 
9476
9616
  function divideCubic(curve, t) {
@@ -9481,11 +9621,11 @@
9481
9621
  p3: p3
9482
9622
  } = curve,
9483
9623
  pt = cubicPointAt(p0, p1, p2, p3, t),
9484
- c1 = PointService$1.pointAtPP(p0, p1, t),
9485
- c2 = PointService$1.pointAtPP(p1, p2, t),
9486
- c3 = PointService$1.pointAtPP(p2, p3, t),
9487
- c12 = PointService$1.pointAtPP(c1, c2, t),
9488
- c23 = PointService$1.pointAtPP(c2, c3, t);
9624
+ c1 = PointService.pointAtPP(p0, p1, t),
9625
+ c2 = PointService.pointAtPP(p1, p2, t),
9626
+ c3 = PointService.pointAtPP(p2, p3, t),
9627
+ c12 = PointService.pointAtPP(c1, c2, t),
9628
+ c23 = PointService.pointAtPP(c2, c3, t);
9489
9629
  return [new CubicBezierCurve(p0, c1, c12, pt), new CubicBezierCurve(pt, c23, c3, p3)];
9490
9630
  }
9491
9631
  class CubicBezierCurve extends Curve {
@@ -9503,7 +9643,7 @@
9503
9643
  return this._validPoint() ? cubicLength(this.p0, this.p1, this.p2, this.p3) : 60;
9504
9644
  }
9505
9645
  calcProjLength(direction) {
9506
- return direction === Direction$1.ROW ? abs$2(this.p0.x - this.p3.x) : direction === Direction$1.COLUMN ? abs$2(this.p0.y - this.p3.y) : 0;
9646
+ return direction === Direction$1.ROW ? abs$1(this.p0.x - this.p3.x) : direction === Direction$1.COLUMN ? abs$1(this.p0.y - this.p3.y) : 0;
9507
9647
  }
9508
9648
  getAngleAt(t) {
9509
9649
  const minT = max(t - .01, 0),
@@ -9519,7 +9659,7 @@
9519
9659
  p0: p0,
9520
9660
  p1: p1
9521
9661
  } = curve,
9522
- c1 = PointService$1.pointAtPP(p0, p1, t);
9662
+ c1 = PointService.pointAtPP(p0, p1, t);
9523
9663
  return [new LineCurve(p0, c1), new LineCurve(c1, p1)];
9524
9664
  }
9525
9665
  class LineCurve extends Curve {
@@ -9527,7 +9667,7 @@
9527
9667
  super(), this.type = CurveTypeEnum.LineCurve, this.p0 = p0, this.p1 = p1;
9528
9668
  }
9529
9669
  getPointAt(t) {
9530
- if (!1 !== this.defined) return PointService$1.pointAtPP(this.p0, this.p1, t);
9670
+ if (!1 !== this.defined) return PointService.pointAtPP(this.p0, this.p1, t);
9531
9671
  throw new Error("defined为false的点不能getPointAt");
9532
9672
  }
9533
9673
  getAngleAt(t) {
@@ -9537,10 +9677,10 @@
9537
9677
  return Number.isFinite(this.p0.x + this.p0.y + this.p1.x + this.p1.y);
9538
9678
  }
9539
9679
  calcLength() {
9540
- return this._validPoint() ? PointService$1.distancePP(this.p0, this.p1) : 60;
9680
+ return this._validPoint() ? PointService.distancePP(this.p0, this.p1) : 60;
9541
9681
  }
9542
9682
  calcProjLength(direction) {
9543
- return direction === Direction$1.ROW ? abs$2(this.p0.x - this.p1.x) : direction === Direction$1.COLUMN ? abs$2(this.p0.y - this.p1.y) : 0;
9683
+ return direction === Direction$1.ROW ? abs$1(this.p0.x - this.p1.x) : direction === Direction$1.COLUMN ? abs$1(this.p0.y - this.p1.y) : 0;
9544
9684
  }
9545
9685
  }
9546
9686
 
@@ -9558,7 +9698,7 @@
9558
9698
  this._lastX = this._lastY = this._startX = this._startY = 0, this.curveType = curveType, this.direction = direction, this.curves = [];
9559
9699
  }
9560
9700
  bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y, defined) {
9561
- const curve = new CubicBezierCurve(new Point$1(this._lastX, this._lastY), new Point$1(cp1x, cp1y), new Point$1(cp2x, cp2y), new Point$1(x, y));
9701
+ const curve = new CubicBezierCurve(new Point(this._lastX, this._lastY), new Point(cp1x, cp1y), new Point(cp2x, cp2y), new Point(x, y));
9562
9702
  curve.defined = defined, this.curves.push(curve), this._lastX = x, this._lastY = y;
9563
9703
  }
9564
9704
  closePath() {
@@ -9586,7 +9726,7 @@
9586
9726
  return this.getLength(direction);
9587
9727
  }
9588
9728
  addLinearCurve(x, y, defined) {
9589
- const curve = new LineCurve(new Point$1(this._lastX, this._lastY), new Point$1(x, y));
9729
+ const curve = new LineCurve(new Point(this._lastX, this._lastY), new Point(x, y));
9590
9730
  return curve.defined = defined, curve;
9591
9731
  }
9592
9732
  getPointAt(t) {
@@ -9600,13 +9740,13 @@
9600
9740
  if (!this.curves.length) return 0;
9601
9741
  const sc = this.curves[0],
9602
9742
  ec = this.curves[this.curves.length - 1];
9603
- return abs$2(sc.p0.y - ec.p1.y);
9743
+ return abs$1(sc.p0.y - ec.p1.y);
9604
9744
  }
9605
9745
  if (direction === Direction$1.ROW) {
9606
9746
  if (!this.curves.length) return 0;
9607
9747
  const sc = this.curves[0],
9608
9748
  ec = this.curves[this.curves.length - 1];
9609
- return abs$2(sc.p0.x - ec.p1.x);
9749
+ return abs$1(sc.p0.x - ec.p1.x);
9610
9750
  }
9611
9751
  return Number.isFinite(this.length) || (this.length = this.curves.reduce((l, c) => l + c.getLength(), 0)), this.length;
9612
9752
  }
@@ -9672,7 +9812,7 @@
9672
9812
  startPoint: startPoint
9673
9813
  } = params;
9674
9814
  if (points.length < 2 - Number(!!startPoint)) return null;
9675
- const segContext = new SegContext("linear", null != direction ? direction : abs$2(points[points.length - 1].x - points[0].x) > abs$2(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
9815
+ const segContext = new SegContext("linear", null != direction ? direction : abs$1(points[points.length - 1].x - points[0].x) > abs$1(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
9676
9816
  return genLinearTypeSegments(new Linear(segContext, startPoint), points), segContext;
9677
9817
  }
9678
9818
  function genLinearTypeSegments(path, points) {
@@ -9729,7 +9869,7 @@
9729
9869
  } = params;
9730
9870
  if (points.length < 2 - Number(!!startPoint)) return null;
9731
9871
  if (points.length < 3 - Number(!!startPoint)) return genLinearSegments(points, params);
9732
- const segContext = new SegContext("basis", null != direction ? direction : abs$2(points[points.length - 1].x - points[0].x) > abs$2(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
9872
+ const segContext = new SegContext("basis", null != direction ? direction : abs$1(points[points.length - 1].x - points[0].x) > abs$1(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
9733
9873
  return genBasisTypeSegments(new Basis(segContext, startPoint), points), segContext;
9734
9874
  }
9735
9875
 
@@ -9827,7 +9967,7 @@
9827
9967
  } = params;
9828
9968
  if (points.length < 2 - Number(!!startPoint)) return null;
9829
9969
  if (points.length < 3 - Number(!!startPoint)) return genLinearSegments(points, params);
9830
- const segContext = new SegContext("monotoneX", null != direction ? direction : abs$2(points[points.length - 1].x - points[0].x) > abs$2(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
9970
+ const segContext = new SegContext("monotoneX", null != direction ? direction : abs$1(points[points.length - 1].x - points[0].x) > abs$1(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
9831
9971
  return genMonotpneXTypeSegments(new MonotoneX(segContext, startPoint), points), segContext;
9832
9972
  }
9833
9973
  function genMonotpneYTypeSegments(path, points) {
@@ -9841,7 +9981,7 @@
9841
9981
  } = params;
9842
9982
  if (points.length < 2 - Number(!!startPoint)) return null;
9843
9983
  if (points.length < 3 - Number(!!startPoint)) return genLinearSegments(points, params);
9844
- const segContext = new ReflectSegContext("monotoneY", null != direction ? direction : abs$2(points[points.length - 1].x - points[0].x) > abs$2(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
9984
+ const segContext = new ReflectSegContext("monotoneY", null != direction ? direction : abs$1(points[points.length - 1].x - points[0].x) > abs$1(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
9845
9985
  return genMonotpneYTypeSegments(new MonotoneY(segContext, startPoint), points), segContext;
9846
9986
  }
9847
9987
 
@@ -9891,7 +10031,7 @@
9891
10031
  startPoint: startPoint
9892
10032
  } = params;
9893
10033
  if (points.length < 2 - Number(!!startPoint)) return null;
9894
- const segContext = new SegContext("step", null != direction ? direction : abs$2(points[points.length - 1].x - points[0].x) > abs$2(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
10034
+ const segContext = new SegContext("step", null != direction ? direction : abs$1(points[points.length - 1].x - points[0].x) > abs$1(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
9895
10035
  return genStepTypeSegments(new Step$1(segContext, t, startPoint), points), segContext;
9896
10036
  }
9897
10037
  function genStepTypeSegments(path, points) {
@@ -9939,7 +10079,7 @@
9939
10079
  startPoint: startPoint
9940
10080
  } = params;
9941
10081
  if (points.length < 2 - Number(!!startPoint)) return null;
9942
- const segContext = new SegContext("linear", null != direction ? direction : abs$2(points[points.length - 1].x - points[0].x) > abs$2(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
10082
+ const segContext = new SegContext("linear", null != direction ? direction : abs$1(points[points.length - 1].x - points[0].x) > abs$1(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
9943
10083
  return genLinearClosedTypeSegments(new LinearClosed(segContext, startPoint), points), segContext;
9944
10084
  }
9945
10085
  function genLinearClosedTypeSegments(path, points) {
@@ -10204,13 +10344,13 @@
10204
10344
  if (!this.curves.length) return 0;
10205
10345
  const sc = this.curves[0],
10206
10346
  ec = this.curves[this.curves.length - 1];
10207
- return abs$2(sc.p0.y - ec.p1.y);
10347
+ return abs$1(sc.p0.y - ec.p1.y);
10208
10348
  }
10209
10349
  if (this.direction === Direction$1.ROW) {
10210
10350
  if (!this.curves.length) return 0;
10211
10351
  const sc = this.curves[0],
10212
10352
  ec = this.curves[this.curves.length - 1];
10213
- return abs$2(sc.p0.x - ec.p1.x);
10353
+ return abs$1(sc.p0.x - ec.p1.x);
10214
10354
  }
10215
10355
  return this.curves.reduce((l, c) => l + c.getLength(), 0);
10216
10356
  }
@@ -10849,13 +10989,13 @@
10849
10989
  if (x_ + cx > x) {
10850
10990
  let angle = Math.atan2(y, x_),
10851
10991
  dir = anticlockwise ? 1 : -1;
10852
- angle < 0 && (angle = pi2 + angle), (angle >= startAngle && angle <= endAngle || angle + pi2 >= startAngle && angle + pi2 <= endAngle) && (angle > pi$2 / 2 && angle < 1.5 * pi$2 && (dir = -dir), w += dir);
10992
+ angle < 0 && (angle = pi2 + angle), (angle >= startAngle && angle <= endAngle || angle + pi2 >= startAngle && angle + pi2 <= endAngle) && (angle > pi$1 / 2 && angle < 1.5 * pi$1 && (dir = -dir), w += dir);
10853
10993
  }
10854
10994
  }
10855
10995
  return w;
10856
10996
  }
10857
10997
  function modpi2(radian) {
10858
- return Math.round(radian / pi$2 * 1e8) / 1e8 % 2 * pi$2;
10998
+ return Math.round(radian / pi$1 * 1e8) / 1e8 % 2 * pi$1;
10859
10999
  }
10860
11000
  function normalizeArcAngles(angles, anticlockwise) {
10861
11001
  let newStartAngle = modpi2(angles[0]);
@@ -11468,26 +11608,26 @@
11468
11608
  return this.removeChild(child);
11469
11609
  }
11470
11610
  addEventListener(type, listener, options) {
11471
- const capture = isBoolean$1(options, !0) && options || isObject$1(options) && options.capture,
11472
- once = isObject$1(options) && options.once,
11473
- context = isFunction$1(listener) ? void 0 : listener;
11474
- return type = capture ? `${type}capture` : type, listener = isFunction$1(listener) ? listener : listener.handleEvent, once ? super.once(type, listener, context) : super.on(type, listener, context), this;
11611
+ const capture = isBoolean(options, !0) && options || isObject(options) && options.capture,
11612
+ once = isObject(options) && options.once,
11613
+ context = isFunction(listener) ? void 0 : listener;
11614
+ return type = capture ? `${type}capture` : type, listener = isFunction(listener) ? listener : listener.handleEvent, once ? super.once(type, listener, context) : super.on(type, listener, context), this;
11475
11615
  }
11476
11616
  on(type, listener, options) {
11477
11617
  return this.addEventListener(type, listener, options);
11478
11618
  }
11479
11619
  removeEventListener(type, listener, options) {
11480
- const capture = isBoolean$1(options, !0) && options || isObject$1(options) && options.capture,
11481
- context = isFunction$1(listener) ? void 0 : listener;
11482
- type = capture ? `${type}capture` : type, listener = isFunction$1(listener) ? listener : listener.handleEvent;
11483
- const once = isObject$1(options) && options.once;
11620
+ const capture = isBoolean(options, !0) && options || isObject(options) && options.capture,
11621
+ context = isFunction(listener) ? void 0 : listener;
11622
+ type = capture ? `${type}capture` : type, listener = isFunction(listener) ? listener : listener.handleEvent;
11623
+ const once = isObject(options) && options.once;
11484
11624
  return super.off(type, listener, context, once), this;
11485
11625
  }
11486
11626
  off(type, listener, options) {
11487
11627
  return this.removeEventListener(type, listener, options);
11488
11628
  }
11489
11629
  once(type, listener, options) {
11490
- return isObject$1(options) ? (options.once = !0, this.addEventListener(type, listener, options)) : this.addEventListener(type, listener, {
11630
+ return isObject(options) ? (options.once = !0, this.addEventListener(type, listener, options)) : this.addEventListener(type, listener, {
11491
11631
  once: !0
11492
11632
  });
11493
11633
  }
@@ -11543,7 +11683,7 @@
11543
11683
  return this.viewport.y;
11544
11684
  }
11545
11685
  constructor(manager) {
11546
- this.bubbles = !0, this.cancelBubble = !0, this.cancelable = !1, this.composed = !1, this.defaultPrevented = !1, this.eventPhase = FederatedEvent.prototype.NONE, this.propagationStopped = !1, this.propagationImmediatelyStopped = !1, this.layer = new Point$1(), this.page = new Point$1(), this.canvas = new Point$1(), this.viewport = new Point$1(), this.NONE = 0, this.CAPTURING_PHASE = 1, this.AT_TARGET = 2, this.BUBBLING_PHASE = 3, this.manager = manager;
11686
+ this.bubbles = !0, this.cancelBubble = !0, this.cancelable = !1, this.composed = !1, this.defaultPrevented = !1, this.eventPhase = FederatedEvent.prototype.NONE, this.propagationStopped = !1, this.propagationImmediatelyStopped = !1, this.layer = new Point(), this.page = new Point(), this.canvas = new Point(), this.viewport = new Point(), this.NONE = 0, this.CAPTURING_PHASE = 1, this.AT_TARGET = 2, this.BUBBLING_PHASE = 3, this.manager = manager;
11547
11687
  }
11548
11688
  composedPath() {
11549
11689
  return !this.manager || this.path && this.path[this.path.length - 1] === this.target || (this.path = this.target ? this.manager.propagationPath(this.target) : []), this.path;
@@ -11566,7 +11706,7 @@
11566
11706
 
11567
11707
  class FederatedMouseEvent extends FederatedEvent {
11568
11708
  constructor() {
11569
- super(...arguments), this.client = new Point$1(), this.movement = new Point$1(), this.offset = new Point$1(), this.global = new Point$1(), this.screen = new Point$1();
11709
+ super(...arguments), this.client = new Point(), this.movement = new Point(), this.offset = new Point(), this.global = new Point(), this.screen = new Point();
11570
11710
  }
11571
11711
  get clientX() {
11572
11712
  return this.client.x;
@@ -11872,7 +12012,7 @@
11872
12012
  pickTarget(x, y) {
11873
12013
  let target;
11874
12014
  const pickResult = this.rootTarget.pick(x, y);
11875
- return target = pickResult && pickResult.graphic ? pickResult.graphic : pickResult && pickResult.group ? pickResult.group : x >= 0 && x <= get$3(this.rootTarget, "width") && y >= 0 && y <= get$3(this.rootTarget, "height") ? this.rootTarget : null, target;
12015
+ return target = pickResult && pickResult.graphic ? pickResult.graphic : pickResult && pickResult.group ? pickResult.group : x >= 0 && x <= get$2(this.rootTarget, "width") && y >= 0 && y <= get$2(this.rootTarget, "height") ? this.rootTarget : null, target;
11876
12016
  }
11877
12017
  }
11878
12018
 
@@ -11965,7 +12105,7 @@
11965
12105
  if (this.currentCursor === mode) return;
11966
12106
  this.currentCursor = mode;
11967
12107
  const style = this.cursorStyles[mode];
11968
- style ? "string" == typeof style && applyStyles ? domElement.style.cursor = style : "function" == typeof style ? style(mode) : "object" == typeof style && applyStyles && Object.assign(domElement.style, style) : applyStyles && isString$1(mode) && !has(this.cursorStyles, mode) && (domElement.style.cursor = mode);
12108
+ style ? "string" == typeof style && applyStyles ? domElement.style.cursor = style : "function" == typeof style ? style(mode) : "object" == typeof style && applyStyles && Object.assign(domElement.style, style) : applyStyles && isString(mode) && !has(this.cursorStyles, mode) && (domElement.style.cursor = mode);
11969
12109
  }
11970
12110
  setTargetElement(element) {
11971
12111
  this.removeEvents(), this.domElement = element, this.addEvents();
@@ -12754,7 +12894,7 @@
12754
12894
  const parseStroke = stroke => {
12755
12895
  var _a;
12756
12896
  let isFullStroke = !0;
12757
- if (isBoolean$1(stroke, !0)) {
12897
+ if (isBoolean(stroke, !0)) {
12758
12898
  for (let i = 0; i < 4; i++) _strokeVec4[i] = stroke, isFullStroke && (isFullStroke = !(null !== (_a = _strokeVec4[i]) && void 0 !== _a && !_a));
12759
12899
  isFullStroke = stroke;
12760
12900
  } else if (Array.isArray(stroke)) for (let i = 0; i < 4; i++) _strokeVec4[i] = !!stroke[i], isFullStroke && (isFullStroke = !!_strokeVec4[i]);else _strokeVec4[0] = !1, _strokeVec4[1] = !1, _strokeVec4[2] = !1, _strokeVec4[3] = !1;
@@ -12764,7 +12904,7 @@
12764
12904
  };
12765
12905
  };
12766
12906
  const _paddingVec4 = [0, 0, 0, 0];
12767
- const parsePadding = padding => padding ? isArray$1(padding) ? 0 === padding.length ? 0 : 1 === padding.length ? padding[0] : 2 === padding.length ? (_paddingVec4[0] = padding[0], _paddingVec4[2] = padding[0], _paddingVec4[1] = padding[1], _paddingVec4[3] = padding[1], _paddingVec4) : padding : padding : 0;
12907
+ const parsePadding = padding => padding ? isArray(padding) ? 0 === padding.length ? 0 : 1 === padding.length ? padding[0] : 2 === padding.length ? (_paddingVec4[0] = padding[0], _paddingVec4[2] = padding[0], _paddingVec4[1] = padding[1], _paddingVec4[3] = padding[1], _paddingVec4) : padding : padding : 0;
12768
12908
  const _coords = [{
12769
12909
  x: 0,
12770
12910
  y: 0
@@ -12786,7 +12926,7 @@
12786
12926
  _coords[0].x = radius, _coords[1].y = radius, _coords[2].x = -radius, _coords[3].y = -radius;
12787
12927
  const startIdx = Math.ceil(startAngle / halfPi$2) % 4,
12788
12928
  endIdx = Math.ceil(endAngle / halfPi$2) % 4;
12789
- if (bounds.add(cos$1(startAngle) * radius, sin$1(startAngle) * radius), bounds.add(cos$1(endAngle) * radius, sin$1(endAngle) * radius), startIdx !== endIdx || endAngle - startAngle > pi$2) {
12929
+ if (bounds.add(cos$1(startAngle) * radius, sin$1(startAngle) * radius), bounds.add(cos$1(endAngle) * radius, sin$1(endAngle) * radius), startIdx !== endIdx || endAngle - startAngle > pi$1) {
12790
12930
  let match = !1;
12791
12931
  for (let i = 0; i < indexList.length; i++) if (match || startIdx !== indexList[i]) {
12792
12932
  if (match && endIdx === indexList[i]) break;
@@ -12810,7 +12950,7 @@
12810
12950
  x: x1,
12811
12951
  y: y1
12812
12952
  } = pointAt(pointA.x1, pointA.y1, pointB.x1, pointB.y1, ratio),
12813
- point = new Point$1(x, y, x1, y1);
12953
+ point = new Point(x, y, x1, y1);
12814
12954
  return point.defined = pointB.defined, point;
12815
12955
  }
12816
12956
  function pointsInterpolation(pointsA, pointsB, ratio) {
@@ -12819,13 +12959,13 @@
12819
12959
  let points = [];
12820
12960
  if (pointsA.length > pointsB.length) {
12821
12961
  points = pointsB.map(point => {
12822
- const p = new Point$1(point.x, point.y, point.x1, point.y1);
12962
+ const p = new Point(point.x, point.y, point.x1, point.y1);
12823
12963
  return p.defined = point.defined, p;
12824
12964
  });
12825
12965
  for (let i = 0; i < pointsB.length; i++) points[i] = pointInterpolation(pointsA[i], pointsB[i], ratio);
12826
12966
  } else {
12827
12967
  points = pointsB.map(point => {
12828
- const p = new Point$1(point.x, point.y, point.x1, point.y1);
12968
+ const p = new Point(point.x, point.y, point.x1, point.y1);
12829
12969
  return p.defined = point.defined, p;
12830
12970
  });
12831
12971
  for (let i = 0; i < pointsA.length; i++) points[i] = pointInterpolation(pointsA[i], pointsB[i], ratio);
@@ -12833,7 +12973,7 @@
12833
12973
  return points;
12834
12974
  }
12835
12975
  function getAttributeFromDefaultAttrList(attr, key) {
12836
- if (isArray$1(attr)) {
12976
+ if (isArray(attr)) {
12837
12977
  let val;
12838
12978
  for (let i = 0; i < attr.length && void 0 === val; i++) val = attr[i][key];
12839
12979
  return val;
@@ -13003,7 +13143,7 @@
13003
13143
  to: {},
13004
13144
  get: {}
13005
13145
  };
13006
- function clamp$1(num, min, max) {
13146
+ function clamp(num, min, max) {
13007
13147
  return Math.min(Math.max(min, num), max);
13008
13148
  }
13009
13149
  function hexDouble(num) {
@@ -13056,15 +13196,15 @@
13056
13196
  for (i = 0; i < 3; i++) rgb[i] = Math.round(2.55 * parseFloat(match[i + 1]));
13057
13197
  match[4] && (rgb[3] = parseFloat(match[4]));
13058
13198
  }
13059
- for (i = 0; i < 3; i++) rgb[i] = clamp$1(rgb[i], 0, 255);
13060
- return rgb[3] = clamp$1(rgb[3], 0, 1), rgb;
13199
+ for (i = 0; i < 3; i++) rgb[i] = clamp(rgb[i], 0, 255);
13200
+ return rgb[3] = clamp(rgb[3], 0, 1), rgb;
13061
13201
  }, cs.get.hsl = function (str) {
13062
13202
  let arr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [0, 0, 0, 1];
13063
13203
  if (!str) return null;
13064
13204
  const match = str.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?[\d.]+)\s*)?\)$/);
13065
13205
  if (match) {
13066
13206
  const alpha = parseFloat(match[4]);
13067
- return arr[0] = (parseFloat(match[1]) + 360) % 360, arr[1] = clamp$1(parseFloat(match[2]), 0, 100), arr[2] = clamp$1(parseFloat(match[3]), 0, 100), arr[3] = clamp$1(isNaN(alpha) ? 1 : alpha, 0, 1), arr;
13207
+ return arr[0] = (parseFloat(match[1]) + 360) % 360, arr[1] = clamp(parseFloat(match[2]), 0, 100), arr[2] = clamp(parseFloat(match[3]), 0, 100), arr[3] = clamp(isNaN(alpha) ? 1 : alpha, 0, 1), arr;
13068
13208
  }
13069
13209
  return null;
13070
13210
  }, cs.get.hwb = function (str) {
@@ -13073,7 +13213,7 @@
13073
13213
  const match = str.match(/^hwb\(\s*([+-]?\d*[.]?\d+)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?[\d.]+)\s*)?\)$/);
13074
13214
  if (match) {
13075
13215
  const alpha = parseFloat(match[4]);
13076
- return arr[0] = (parseFloat(match[1]) % 360 + 360) % 360, arr[1] = clamp$1(parseFloat(match[2]), 0, 100), arr[2] = clamp$1(parseFloat(match[3]), 0, 100), arr[3] = clamp$1(isNaN(alpha) ? 1 : alpha, 0, 1), arr;
13216
+ return arr[0] = (parseFloat(match[1]) % 360 + 360) % 360, arr[1] = clamp(parseFloat(match[2]), 0, 100), arr[2] = clamp(parseFloat(match[3]), 0, 100), arr[3] = clamp(isNaN(alpha) ? 1 : alpha, 0, 1), arr;
13077
13217
  }
13078
13218
  return null;
13079
13219
  }, cs.to.hex = function () {
@@ -13294,7 +13434,7 @@
13294
13434
  const tempConstantXYKey = ["x", "y"],
13295
13435
  tempConstantScaleXYKey = ["scaleX", "scaleY"],
13296
13436
  tempConstantAngleKey = ["angle"],
13297
- point = new Point$1();
13437
+ point = new Point();
13298
13438
  class Graphic extends Node {
13299
13439
  static mixin(source) {
13300
13440
  const keys = Object.keys(source);
@@ -13405,7 +13545,7 @@
13405
13545
  containsPoint(x, y, mode, picker) {
13406
13546
  if (!picker) return !1;
13407
13547
  if (mode === IContainPointMode.GLOBAL) {
13408
- const point = new Point$1(x, y);
13548
+ const point = new Point(x, y);
13409
13549
  this.parent && this.parent.globalTransMatrix.transformPoint(point, point), x = point.x, y = point.y;
13410
13550
  }
13411
13551
  return picker.containsPoint(this, {
@@ -13433,7 +13573,7 @@
13433
13573
  const params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate({
13434
13574
  [key]: value
13435
13575
  }, this.attribute, key, context);
13436
- params ? this._setAttributes(params, forceUpdateTag, context) : isNil$1(null === (_a = this.normalAttrs) || void 0 === _a ? void 0 : _a[key]) ? (this.attribute[key] = value, this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTag(key) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(), this.onAttributeUpdate(context)) : this.normalAttrs[key] = value, "background" === key && this.loadImage(value, !0);
13576
+ params ? this._setAttributes(params, forceUpdateTag, context) : isNil(null === (_a = this.normalAttrs) || void 0 === _a ? void 0 : _a[key]) ? (this.attribute[key] = value, this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTag(key) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(), this.onAttributeUpdate(context)) : this.normalAttrs[key] = value, "background" === key && this.loadImage(value, !0);
13437
13577
  }
13438
13578
  needUpdateTags(keys) {
13439
13579
  for (let i = 0; i < GRAPHIC_UPDATE_TAG_KEY.length; i++) {
@@ -13560,7 +13700,7 @@
13560
13700
  d ? (d.bounds && this.tryUpdateAABBBounds("imprecise" === this.attribute.boundsMode), d.trans && this.tryUpdateLocalTransMatrix()) : (this.tryUpdateAABBBounds("imprecise" === this.attribute.boundsMode), this.tryUpdateLocalTransMatrix());
13561
13701
  }
13562
13702
  hasState(stateName) {
13563
- return !(!this.currentStates || !this.currentStates.length) && (!!isNil$1(stateName) || this.currentStates.includes(stateName));
13703
+ return !(!this.currentStates || !this.currentStates.length) && (!!isNil(stateName) || this.currentStates.includes(stateName));
13564
13704
  }
13565
13705
  getState(stateName) {
13566
13706
  var _a;
@@ -13796,7 +13936,7 @@
13796
13936
  };
13797
13937
  }
13798
13938
  createPathProxy(path) {
13799
- return isString$1(path, !0) ? this.pathProxy = new CustomPath2D().fromString(path) : this.pathProxy = new CustomPath2D(), this.pathProxy;
13939
+ return isString(path, !0) ? this.pathProxy = new CustomPath2D().fromString(path) : this.pathProxy = new CustomPath2D(), this.pathProxy;
13800
13940
  }
13801
13941
  loadImage(image) {
13802
13942
  let background = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
@@ -13923,7 +14063,7 @@
13923
14063
  }
13924
14064
  containsPoint(x, y, mode) {
13925
14065
  if (mode === IContainPointMode.GLOBAL) {
13926
- const point = new Point$1(x, y);
14066
+ const point = new Point(x, y);
13927
14067
  return this.parent && this.parent.globalTransMatrix.transformPoint(point, point), this.AABBBounds.contains(point.x, point.y);
13928
14068
  }
13929
14069
  return this.AABBBounds.contains(x, y);
@@ -14320,7 +14460,7 @@
14320
14460
  }
14321
14461
  function runStroke(stroke, lineWidth) {
14322
14462
  let s;
14323
- return s = isArray$1(stroke) ? stroke.some(item => item || void 0 === item) : !!stroke, s && lineWidth > 0;
14463
+ return s = isArray(stroke) ? stroke.some(item => item || void 0 === item) : !!stroke, s && lineWidth > 0;
14324
14464
  }
14325
14465
  function fillVisible(opacity, fillOpacity) {
14326
14466
  return opacity * fillOpacity > 0;
@@ -14405,7 +14545,7 @@
14405
14545
  startAngle: startAngle,
14406
14546
  endAngle: endAngle
14407
14547
  } = arc.getParsedAngle(),
14408
- deltaAngle = abs$2(endAngle - startAngle),
14548
+ deltaAngle = abs$1(endAngle - startAngle),
14409
14549
  clockwise = endAngle > startAngle;
14410
14550
  let collapsedToLine = !1;
14411
14551
  if (outerRadius < innerRadius) {
@@ -14435,15 +14575,15 @@
14435
14575
  xire = innerRadius * cos$1(innerEndAngle),
14436
14576
  yire = innerRadius * sin$1(innerEndAngle);
14437
14577
  let xore, yore, xirs, yirs;
14438
- if ((maxInnerCornerRadius > epsilon$1 || maxOuterCornerRadius > epsilon$1) && (xore = outerRadius * cos$1(outerEndAngle), yore = outerRadius * sin$1(outerEndAngle), xirs = innerRadius * cos$1(innerStartAngle), yirs = innerRadius * sin$1(innerStartAngle), deltaAngle < pi$2)) {
14578
+ if ((maxInnerCornerRadius > epsilon$1 || maxOuterCornerRadius > epsilon$1) && (xore = outerRadius * cos$1(outerEndAngle), yore = outerRadius * sin$1(outerEndAngle), xirs = innerRadius * cos$1(innerStartAngle), yirs = innerRadius * sin$1(innerStartAngle), deltaAngle < pi$1)) {
14439
14579
  const oc = intersect$1(xors, yors, xirs, yirs, xore, yore, xire, yire);
14440
14580
  if (oc) {
14441
14581
  const ax = xors - oc[0],
14442
14582
  ay = yors - oc[1],
14443
14583
  bx = xore - oc[0],
14444
14584
  by = yore - oc[1],
14445
- kc = 1 / sin$1(acos$1((ax * bx + ay * by) / (sqrt$2(ax * ax + ay * ay) * sqrt$2(bx * bx + by * by))) / 2),
14446
- lc = sqrt$2(oc[0] * oc[0] + oc[1] * oc[1]);
14585
+ kc = 1 / sin$1(acos$1((ax * bx + ay * by) / (sqrt$1(ax * ax + ay * ay) * sqrt$1(bx * bx + by * by))) / 2),
14586
+ lc = sqrt$1(oc[0] * oc[0] + oc[1] * oc[1]);
14447
14587
  limitedIcr = min(maxInnerCornerRadius, (innerRadius - lc) / (kc - 1)), limitedOcr = min(maxOuterCornerRadius, (outerRadius - lc) / (kc + 1));
14448
14588
  }
14449
14589
  }
@@ -14603,7 +14743,7 @@
14603
14743
  function createColor(context, c, params, offsetX, offsetY) {
14604
14744
  if (!c || !0 === c) return "black";
14605
14745
  let result, color;
14606
- if (isArray$1(c)) for (let i = 0; i < c.length && (color = c[i], !color); i++);else color = c;
14746
+ if (isArray(c)) for (let i = 0; i < c.length && (color = c[i], !color); i++);else color = c;
14607
14747
  return "string" == typeof color ? color : ("linear" === color.gradient ? result = createLinearGradient(context, color, params, offsetX, offsetY) : "conical" === color.gradient ? result = createConicGradient(context, color, params, offsetX, offsetY) : "radial" === color.gradient && (result = createRadialGradient(context, color, params, offsetX, offsetY)), result || "orange");
14608
14748
  }
14609
14749
  function createLinearGradient(context, color, params) {
@@ -15148,7 +15288,7 @@
15148
15288
  }
15149
15289
  var star$1 = new StarSymbol();
15150
15290
 
15151
- const sqrt3$1 = sqrt$2(3);
15291
+ const sqrt3$1 = sqrt$1(3);
15152
15292
  function arrow(ctx, r, transX, transY) {
15153
15293
  const triangleH = r,
15154
15294
  trangleBottomSide = triangleH / sqrt3$1,
@@ -15215,8 +15355,8 @@
15215
15355
  var stroke$1 = new StrokeSymbol();
15216
15356
 
15217
15357
  const c = -.5,
15218
- s = sqrt$2(3) / 2,
15219
- k = 1 / sqrt$2(12);
15358
+ s = sqrt$1(3) / 2,
15359
+ k = 1 / sqrt$1(12);
15220
15360
  function wye(ctx, r, transX, transY) {
15221
15361
  const x0 = r / 2,
15222
15362
  y0 = r * k,
@@ -15312,7 +15452,7 @@
15312
15452
  }
15313
15453
  var triangleDown = new TriangleDownSymbol();
15314
15454
 
15315
- const sqrt3 = sqrt$2(3);
15455
+ const sqrt3 = sqrt$1(3);
15316
15456
  function thinTriangle(ctx, r, x, y) {
15317
15457
  const h = r * sqrt3;
15318
15458
  return ctx.moveTo(x, y + -h / 3 * 2), ctx.lineTo(r + x, y + h), ctx.lineTo(x - r, y + h), ctx.closePath(), !0;
@@ -15384,13 +15524,13 @@
15384
15524
  this.type = "rect", this.pathStr = "M-0.5,-0.5h1v1h-1Z";
15385
15525
  }
15386
15526
  draw(ctx, size, x, y) {
15387
- return rect(ctx, isNumber$1(size) ? [size, size] : size, x, y);
15527
+ return rect(ctx, isNumber(size) ? [size, size] : size, x, y);
15388
15528
  }
15389
15529
  drawOffset(ctx, size, x, y, offset) {
15390
- return rect(ctx, isNumber$1(size) ? [size + 2 * offset, size + 2 * offset] : [size[0] + 2 * offset, size[1] + 2 * offset], x, y);
15530
+ return rect(ctx, isNumber(size) ? [size + 2 * offset, size + 2 * offset] : [size[0] + 2 * offset, size[1] + 2 * offset], x, y);
15391
15531
  }
15392
15532
  bounds(size, bounds) {
15393
- const rectSize = isNumber$1(size) ? [size, size] : size;
15533
+ const rectSize = isNumber(size) ? [size, size] : size;
15394
15534
  bounds.x1 = -rectSize[0] / 2, bounds.x2 = rectSize[0] / 2, bounds.y1 = -rectSize[1] / 2, bounds.y2 = rectSize[1] / 2;
15395
15535
  }
15396
15536
  }
@@ -15435,7 +15575,7 @@
15435
15575
  const {
15436
15576
  size: size
15437
15577
  } = this.attribute;
15438
- return isArray$1(size) ? 2 === size.length && size.every(this._validNumber) : this._validNumber(size);
15578
+ return isArray(size) ? 2 === size.length && size.every(this._validNumber) : this._validNumber(size);
15439
15579
  }
15440
15580
  doUpdateParsedPath() {
15441
15581
  const symbolTheme = getTheme(this).symbol,
@@ -15484,7 +15624,7 @@
15484
15624
  toCustomPath() {
15485
15625
  const symbolInstance = this.getParsedPath(),
15486
15626
  size = this.attribute.size,
15487
- formattedSize = isArray$1(size) ? size : [size, size];
15627
+ formattedSize = isArray(size) ? size : [size, size];
15488
15628
  return symbolInstance.path ? new CustomPath2D().fromCustomPath2D(symbolInstance.path, 0, 0, formattedSize[0], formattedSize[1]) : new CustomPath2D().fromString(symbolInstance.pathStr, 0, 0, formattedSize[0], formattedSize[1]);
15489
15629
  }
15490
15630
  clone() {
@@ -16085,7 +16225,7 @@
16085
16225
  this._marginArray = "number" == typeof marginArray ? [marginArray, marginArray, marginArray, marginArray] : marginArray;
16086
16226
  }
16087
16227
  this.onBeforeAttributeUpdate = (val, attributes, key) => {
16088
- if (isArray$1(key) && -1 !== key.indexOf("margin") || "margin" === key) if (attributes.margin) {
16228
+ if (isArray(key) && -1 !== key.indexOf("margin") || "margin" === key) if (attributes.margin) {
16089
16229
  const marginArray = parsePadding(attributes.margin);
16090
16230
  this._marginArray = "number" == typeof marginArray ? [marginArray, marginArray, marginArray, marginArray] : marginArray;
16091
16231
  } else this._marginArray = [0, 0, 0, 0];
@@ -16439,7 +16579,7 @@
16439
16579
  const pathTheme = getTheme(this).path;
16440
16580
  if (!this.valid) return pathTheme.path;
16441
16581
  const attribute = this.attribute;
16442
- return attribute.path instanceof CustomPath2D ? attribute.path : (isNil$1(this.cache) && this.doUpdatePathShape(), this.cache instanceof CustomPath2D ? this.cache : pathTheme.path);
16582
+ return attribute.path instanceof CustomPath2D ? attribute.path : (isNil(this.cache) && this.doUpdatePathShape(), this.cache instanceof CustomPath2D ? this.cache : pathTheme.path);
16443
16583
  }
16444
16584
  doUpdateAABBBounds() {
16445
16585
  const pathTheme = getTheme(this).path;
@@ -16454,7 +16594,7 @@
16454
16594
  }
16455
16595
  doUpdatePathShape() {
16456
16596
  const attribute = this.attribute;
16457
- isString$1(attribute.path, !0) ? this.cache = new CustomPath2D().fromString(attribute.path) : attribute.customPath && (this.cache = new CustomPath2D(), attribute.customPath(this.cache, this));
16597
+ isString(attribute.path, !0) ? this.cache = new CustomPath2D().fromString(attribute.path) : attribute.customPath && (this.cache = new CustomPath2D(), attribute.customPath(this.cache, this));
16458
16598
  }
16459
16599
  tryUpdateOBBBounds() {
16460
16600
  throw new Error("暂不支持");
@@ -16586,7 +16726,7 @@
16586
16726
  } = this.attribute;
16587
16727
  if (0 === cornerRadius || "0%" === cornerRadius) return 0;
16588
16728
  const deltaRadius = Math.abs(outerRadius - innerRadius);
16589
- return Math.min(isNumber$1(cornerRadius, !0) ? cornerRadius : deltaRadius * parseFloat(cornerRadius) / 100, deltaRadius / 2);
16729
+ return Math.min(isNumber(cornerRadius, !0) ? cornerRadius : deltaRadius * parseFloat(cornerRadius) / 100, deltaRadius / 2);
16590
16730
  }
16591
16731
  getParsedAngle() {
16592
16732
  const arcTheme = getTheme(this).arc;
@@ -16599,7 +16739,7 @@
16599
16739
  } = this.attribute,
16600
16740
  sign = endAngle - startAngle >= 0 ? 1 : -1,
16601
16741
  deltaAngle = endAngle - startAngle;
16602
- if (startAngle = clampAngleByRadian(startAngle), endAngle = startAngle + deltaAngle, cap && abs$2(deltaAngle) < pi2 - epsilon$1) {
16742
+ if (startAngle = clampAngleByRadian(startAngle), endAngle = startAngle + deltaAngle, cap && abs$1(deltaAngle) < pi2 - epsilon$1) {
16603
16743
  let startCap = 1,
16604
16744
  endCap = 1;
16605
16745
  cap.length && (startCap = Number(cap[0]), endCap = Number(cap[1]));
@@ -16627,9 +16767,9 @@
16627
16767
  padAngle = arcTheme.padAngle
16628
16768
  } = this.attribute,
16629
16769
  {
16630
- padRadius = sqrt$2(outerRadius * outerRadius + innerRadius * innerRadius)
16770
+ padRadius = sqrt$1(outerRadius * outerRadius + innerRadius * innerRadius)
16631
16771
  } = this.attribute,
16632
- deltaAngle = abs$2(endAngle - startAngle);
16772
+ deltaAngle = abs$1(endAngle - startAngle);
16633
16773
  let outerStartAngle = startAngle,
16634
16774
  outerEndAngle = endAngle,
16635
16775
  innerStartAngle = startAngle,
@@ -16697,7 +16837,7 @@
16697
16837
  } = this.getParsedAngle();
16698
16838
  let innerRadius = attribute.innerRadius,
16699
16839
  outerRadius = attribute.outerRadius;
16700
- const deltaAngle = abs$2(endAngle - startAngle),
16840
+ const deltaAngle = abs$1(endAngle - startAngle),
16701
16841
  clockwise = endAngle > startAngle;
16702
16842
  if (outerRadius < innerRadius) {
16703
16843
  const temp = outerRadius;
@@ -17412,7 +17552,7 @@
17412
17552
  const {
17413
17553
  size = symbolTheme.size
17414
17554
  } = attribute;
17415
- if (isArray$1(size)) aabbBounds.set(-size[0] / 2, -size[1] / 2, size[0] / 2, size[1] / 2);else {
17555
+ if (isArray(size)) aabbBounds.set(-size[0] / 2, -size[1] / 2, size[0] / 2, size[1] / 2);else {
17416
17556
  const halfWH = size / 2;
17417
17557
  aabbBounds.set(-halfWH, -halfWH, halfWH, halfWH);
17418
17558
  }
@@ -17505,7 +17645,7 @@
17505
17645
  const {
17506
17646
  text: text
17507
17647
  } = this.attribute;
17508
- return isArray$1(text) ? !text.every(t => null == t || "" === t) : null != text && "" !== text;
17648
+ return isArray(text) ? !text.every(t => null == t || "" === t) : null != text && "" !== text;
17509
17649
  }
17510
17650
  updateMultilineAABBBounds(text) {
17511
17651
  var _a;
@@ -17961,7 +18101,7 @@
17961
18101
  startAngle = data.startAngle;
17962
18102
  let endAngle = data.endAngle;
17963
18103
  endAngle = _ea;
17964
- const deltaAngle = abs$2(endAngle - startAngle),
18104
+ const deltaAngle = abs$1(endAngle - startAngle),
17965
18105
  clockwise = endAngle > startAngle;
17966
18106
  let collapsedToLine = !1;
17967
18107
  if (outerRadius < innerRadius) {
@@ -17990,15 +18130,15 @@
17990
18130
  xire = innerRadius * cos$1(innerEndAngle),
17991
18131
  yire = innerRadius * sin$1(innerEndAngle);
17992
18132
  let xore, yore, xirs, yirs;
17993
- if ((maxInnerCornerRadius > epsilon$1 || maxOuterCornerRadius > epsilon$1) && (xore = outerRadius * cos$1(outerEndAngle), yore = outerRadius * sin$1(outerEndAngle), xirs = innerRadius * cos$1(innerStartAngle), yirs = innerRadius * sin$1(innerStartAngle), deltaAngle < pi$2)) {
18133
+ if ((maxInnerCornerRadius > epsilon$1 || maxOuterCornerRadius > epsilon$1) && (xore = outerRadius * cos$1(outerEndAngle), yore = outerRadius * sin$1(outerEndAngle), xirs = innerRadius * cos$1(innerStartAngle), yirs = innerRadius * sin$1(innerStartAngle), deltaAngle < pi$1)) {
17994
18134
  const oc = intersect$1(xors, yors, xirs, yirs, xore, yore, xire, yire);
17995
18135
  if (oc) {
17996
18136
  const ax = xors - oc[0],
17997
18137
  ay = yors - oc[1],
17998
18138
  bx = xore - oc[0],
17999
18139
  by = yore - oc[1],
18000
- kc = 1 / sin$1(acos$1((ax * bx + ay * by) / (sqrt$2(ax * ax + ay * ay) * sqrt$2(bx * bx + by * by))) / 2),
18001
- lc = sqrt$2(oc[0] * oc[0] + oc[1] * oc[1]);
18140
+ kc = 1 / sin$1(acos$1((ax * bx + ay * by) / (sqrt$1(ax * ax + ay * ay) * sqrt$1(bx * bx + by * by))) / 2),
18141
+ lc = sqrt$1(oc[0] * oc[0] + oc[1] * oc[1]);
18002
18142
  limitedIcr = min(maxInnerCornerRadius, (innerRadius - lc) / (kc - 1)), limitedOcr = min(maxOuterCornerRadius, (outerRadius - lc) / (kc + 1));
18003
18143
  }
18004
18144
  }
@@ -18073,7 +18213,7 @@
18073
18213
  startAngle: sa,
18074
18214
  endAngle: ea
18075
18215
  } = arc.getParsedAngle();
18076
- if (abs$2(ea - sa) >= pi2 - epsilon$1) {
18216
+ if (abs$1(ea - sa) >= pi2 - epsilon$1) {
18077
18217
  context.beginPath();
18078
18218
  const capAngle = Math.abs(outerRadius - innerRadius) / 2 / outerRadius,
18079
18219
  {
@@ -18433,7 +18573,7 @@
18433
18573
  offsetX: offsetX,
18434
18574
  offsetY: offsetY,
18435
18575
  offsetZ: z
18436
- }), line.cache && !isArray$1(line.cache) && line.attribute.curveType && line.attribute.curveType.includes("Closed") && context.closePath(), context.setShadowStyle && context.setShadowStyle(line, attribute, defaultAttribute);
18576
+ }), line.cache && !isArray(line.cache) && line.attribute.curveType && line.attribute.curveType.includes("Closed") && context.closePath(), context.setShadowStyle && context.setShadowStyle(line, attribute, defaultAttribute);
18437
18577
  const {
18438
18578
  x: originX = 0,
18439
18579
  x: originY = 0
@@ -18593,8 +18733,8 @@
18593
18733
  curves: topCurves
18594
18734
  } = top,
18595
18735
  endP = null !== (_a = topCurves[topCurves.length - 1].p3) && void 0 !== _a ? _a : topCurves[topCurves.length - 1].p1,
18596
- xTotalLength = abs$2(endP.x - topCurves[0].p0.x),
18597
- yTotalLength = abs$2(endP.y - topCurves[0].p0.y);
18736
+ xTotalLength = abs$1(endP.x - topCurves[0].p0.x),
18737
+ yTotalLength = abs$1(endP.y - topCurves[0].p0.y);
18598
18738
  direction = null != direction ? direction : xTotalLength > yTotalLength ? Direction$1.ROW : Direction$1.COLUMN, Number.isFinite(xTotalLength) || (direction = Direction$1.COLUMN), Number.isFinite(yTotalLength) || (direction = Direction$1.ROW);
18599
18739
  const totalDrawLength = percent * (direction === Direction$1.ROW ? xTotalLength : yTotalLength);
18600
18740
  let drawedLengthUntilLast = 0,
@@ -18913,10 +19053,10 @@
18913
19053
  };
18914
19054
  DefaultCanvasPathRender = __decorate$1i([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(PathRenderContribution)), __metadata$U("design:paramtypes", [Object])], DefaultCanvasPathRender);
18915
19055
 
18916
- const halfPi$1 = pi$2 / 2;
19056
+ const halfPi$1 = pi$1 / 2;
18917
19057
  function createRectPath(path, x, y, width, height, rectCornerRadius) {
18918
19058
  let cornerRadius;
18919
- if (isNumber$1(rectCornerRadius, !0)) cornerRadius = [rectCornerRadius, rectCornerRadius, rectCornerRadius, rectCornerRadius];else if (Array.isArray(rectCornerRadius)) {
19059
+ if (isNumber(rectCornerRadius, !0)) cornerRadius = [rectCornerRadius, rectCornerRadius, rectCornerRadius, rectCornerRadius];else if (Array.isArray(rectCornerRadius)) {
18920
19060
  const cornerRadiusArr = rectCornerRadius;
18921
19061
  switch (cornerRadiusArr.length) {
18922
19062
  case 0:
@@ -18958,12 +19098,12 @@
18958
19098
  if (path.lineTo(leftBottomPoint1[0], leftBottomPoint1[1]), !arrayEqual(leftBottomPoint1, leftBottomPoint2)) {
18959
19099
  const centerX = leftBottomPoint1[0],
18960
19100
  centerY = leftBottomPoint1[1] - _cornerRadius[3];
18961
- path.arc(centerX, centerY, _cornerRadius[3], halfPi$1, pi$2, !1);
19101
+ path.arc(centerX, centerY, _cornerRadius[3], halfPi$1, pi$1, !1);
18962
19102
  }
18963
19103
  if (path.lineTo(leftTopPoint2[0], leftTopPoint2[1]), !arrayEqual(leftTopPoint1, leftTopPoint2)) {
18964
19104
  const centerX = leftTopPoint1[0],
18965
19105
  centerY = leftTopPoint1[1] + _cornerRadius[0];
18966
- path.arc(centerX, centerY, _cornerRadius[0], pi$2, pi$2 + halfPi$1, !1);
19106
+ path.arc(centerX, centerY, _cornerRadius[0], pi$1, pi$1 + halfPi$1, !1);
18967
19107
  }
18968
19108
  return path.closePath(), path;
18969
19109
  }
@@ -18997,7 +19137,7 @@
18997
19137
  nextX = x - d,
18998
19138
  nextY = y - d,
18999
19139
  dw = 2 * d;
19000
- if (0 === cornerRadius || isArray$1(cornerRadius) && cornerRadius.every(num => 0 === num) ? (context.beginPath(), context.rect(nextX, nextY, width + dw, height + dw)) : (context.beginPath(), createRectPath(context, nextX, nextY, width + dw, height + dw, cornerRadius)), context.setShadowStyle && context.setShadowStyle(rect, rect.attribute, rectAttribute), strokeCb) strokeCb(context, outerBorder, rectAttribute.outerBorder);else if (sVisible) {
19140
+ if (0 === cornerRadius || isArray(cornerRadius) && cornerRadius.every(num => 0 === num) ? (context.beginPath(), context.rect(nextX, nextY, width + dw, height + dw)) : (context.beginPath(), createRectPath(context, nextX, nextY, width + dw, height + dw, cornerRadius)), context.setShadowStyle && context.setShadowStyle(rect, rect.attribute, rectAttribute), strokeCb) strokeCb(context, outerBorder, rectAttribute.outerBorder);else if (sVisible) {
19001
19141
  const lastOpacity = rectAttribute.outerBorder.opacity;
19002
19142
  rectAttribute.outerBorder.opacity = opacity, context.setStrokeStyle(rect, outerBorder, x, y, rectAttribute.outerBorder), rectAttribute.outerBorder.opacity = lastOpacity, context.stroke();
19003
19143
  }
@@ -19010,7 +19150,7 @@
19010
19150
  nextX = x + d,
19011
19151
  nextY = y + d,
19012
19152
  dw = 2 * d;
19013
- if (0 === cornerRadius || isArray$1(cornerRadius) && cornerRadius.every(num => 0 === num) ? (context.beginPath(), context.rect(nextX, nextY, width - dw, height - dw)) : (context.beginPath(), createRectPath(context, nextX, nextY, width - dw, height - dw, cornerRadius)), context.setShadowStyle && context.setShadowStyle(rect, rect.attribute, rectAttribute), strokeCb) strokeCb(context, innerBorder, rectAttribute.innerBorder);else if (sVisible) {
19153
+ if (0 === cornerRadius || isArray(cornerRadius) && cornerRadius.every(num => 0 === num) ? (context.beginPath(), context.rect(nextX, nextY, width - dw, height - dw)) : (context.beginPath(), createRectPath(context, nextX, nextY, width - dw, height - dw, cornerRadius)), context.setShadowStyle && context.setShadowStyle(rect, rect.attribute, rectAttribute), strokeCb) strokeCb(context, innerBorder, rectAttribute.innerBorder);else if (sVisible) {
19014
19154
  const lastOpacity = rectAttribute.innerBorder.opacity;
19015
19155
  rectAttribute.innerBorder.opacity = opacity, context.setStrokeStyle(rect, innerBorder, x, y, rectAttribute.innerBorder), rectAttribute.innerBorder.opacity = lastOpacity, context.stroke();
19016
19156
  }
@@ -19106,7 +19246,7 @@
19106
19246
  if (!rect.valid || !visible) return;
19107
19247
  if (!(doFill || doStroke || background)) return;
19108
19248
  if (!(fVisible || sVisible || fillCb || strokeCb || background)) return;
19109
- 0 === cornerRadius || isArray$1(cornerRadius) && cornerRadius.every(num => 0 === num) ? (context.beginPath(), context.rect(x, y, width, height)) : (context.beginPath(), createRectPath(context, x, y, width, height, cornerRadius)), this._rectRenderContribitions || (this._rectRenderContribitions = this.rectRenderContribitions.getContributions() || [], this._rectRenderContribitions.sort((a, b) => b.order - a.order));
19249
+ 0 === cornerRadius || isArray(cornerRadius) && cornerRadius.every(num => 0 === num) ? (context.beginPath(), context.rect(x, y, width, height)) : (context.beginPath(), createRectPath(context, x, y, width, height, cornerRadius)), this._rectRenderContribitions || (this._rectRenderContribitions = this.rectRenderContribitions.getContributions() || [], this._rectRenderContribitions.sort((a, b) => b.order - a.order));
19110
19250
  const doFillOrStroke = {
19111
19251
  doFill: doFill,
19112
19252
  doStroke: doStroke
@@ -19533,7 +19673,7 @@
19533
19673
  sVisible = strokeVisible(opacity, strokeOpacity),
19534
19674
  doFill = runFill(fill),
19535
19675
  doStroke = runStroke(stroke, lineWidth);
19536
- polygon.valid && visible && (doFill || doStroke || background) && (fVisible || sVisible || fillCb || strokeCb || background) && (context.beginPath(), cornerRadius <= 0 || isArray$1(cornerRadius) && cornerRadius.every(num => 0 === num) ? drawPolygon(context.camera ? context : context.nativeContext, points, x, y) : drawRoundedPolygon(context.camera ? context : context.nativeContext, points, x, y, cornerRadius), context.closePath(), this._polygonRenderContribitions || (this._polygonRenderContribitions = this.polygonRenderContribitions.getContributions() || [], this._polygonRenderContribitions.sort((a, b) => b.order - a.order)), this._polygonRenderContribitions.forEach(c => {
19676
+ polygon.valid && visible && (doFill || doStroke || background) && (fVisible || sVisible || fillCb || strokeCb || background) && (context.beginPath(), cornerRadius <= 0 || isArray(cornerRadius) && cornerRadius.every(num => 0 === num) ? drawPolygon(context.camera ? context : context.nativeContext, points, x, y) : drawRoundedPolygon(context.camera ? context : context.nativeContext, points, x, y, cornerRadius), context.closePath(), this._polygonRenderContribitions || (this._polygonRenderContribitions = this.polygonRenderContribitions.getContributions() || [], this._polygonRenderContribitions.sort((a, b) => b.order - a.order)), this._polygonRenderContribitions.forEach(c => {
19537
19677
  c.time === BaseRenderContributionTime.beforeFillStroke && c.drawShape(polygon, context, x, y, doFill, doStroke, fVisible, sVisible, polygonAttribute, fillCb, strokeCb);
19538
19678
  }), context.setShadowStyle && context.setShadowStyle(polygon, polygon.attribute, polygonAttribute), doFill && (fillCb ? fillCb(context, polygon.attribute, polygonAttribute) : fillOpacity && (context.setCommonStyle(polygon, polygon.attribute, originX - x, originY - y, polygonAttribute), context.fill())), doStroke && (strokeCb ? strokeCb(context, polygon.attribute, polygonAttribute) : strokeOpacity && (context.setStrokeStyle(polygon, polygon.attribute, originX - x, originY - y, polygonAttribute), context.stroke())), this._polygonRenderContribitions.forEach(c => {
19539
19679
  c.time === BaseRenderContributionTime.afterFillStroke && c.drawShape(polygon, context, x, y, doFill, doStroke, fVisible, sVisible, polygonAttribute, fillCb, strokeCb);
@@ -20025,14 +20165,14 @@
20025
20165
  }
20026
20166
  const transMatrix = group.transMatrix,
20027
20167
  currentGroupMatrix = matrixAllocate.allocateByObj(parentMatrix),
20028
- newPoint = new Point$1(point.x, point.y);
20168
+ newPoint = new Point(point.x, point.y);
20029
20169
  currentGroupMatrix.transformPoint(newPoint, newPoint);
20030
20170
  const insideGroup = group.AABBBounds.containsPoint(newPoint);
20031
20171
  if (!insideGroup && !group.stage.camera) return result;
20032
20172
  const groupPicked = !1 !== group.attribute.pickable && insideGroup;
20033
20173
  return currentGroupMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f), !1 !== group.attribute.childrenPickable && foreach(group, DefaultAttribute.zIndex, graphic => {
20034
20174
  if (graphic.isContainer) {
20035
- const newPoint = new Point$1(point.x, point.y),
20175
+ const newPoint = new Point(point.x, point.y),
20036
20176
  theme = getTheme(group).group,
20037
20177
  {
20038
20178
  scrollX = theme.scrollX,
@@ -20040,7 +20180,7 @@
20040
20180
  } = group.attribute;
20041
20181
  newPoint.x -= scrollX, newPoint.y -= scrollY, result = this.pickGroup(graphic, newPoint, currentGroupMatrix, params);
20042
20182
  } else {
20043
- const newPoint = new Point$1(point.x, point.y);
20183
+ const newPoint = new Point(point.x, point.y);
20044
20184
  currentGroupMatrix.transformPoint(newPoint, newPoint);
20045
20185
  const theme = getTheme(group).group,
20046
20186
  {
@@ -20104,14 +20244,14 @@
20104
20244
  };
20105
20245
  if (!1 === group.attribute.visibleAll) return result;
20106
20246
  const transMatrix = group.transMatrix,
20107
- newPoint = new Point$1(point.x, point.y);
20247
+ newPoint = new Point(point.x, point.y);
20108
20248
  parentMatrix.transformPoint(newPoint, newPoint);
20109
20249
  const insideGroup = group.AABBBounds.containsPoint(newPoint);
20110
20250
  if (!insideGroup) return result;
20111
20251
  const groupPicked = !1 !== group.attribute.pickable && insideGroup;
20112
20252
  return parentMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f), !1 !== group.attribute.childrenPickable && group.forEachChildren(graphic => {
20113
20253
  if (graphic.isContainer) result = this.pickGroup(graphic, point, parentMatrix, params);else {
20114
- const newPoint = new Point$1(point.x, point.y);
20254
+ const newPoint = new Point(point.x, point.y);
20115
20255
  parentMatrix.transformPoint(newPoint, newPoint), result.graphic = this.pickItem(graphic, newPoint, params);
20116
20256
  }
20117
20257
  return !!result.graphic || !!result.group;
@@ -20252,7 +20392,7 @@
20252
20392
  initMatrix$1 = new Matrix(1, 0, 0, 1, 0, 0),
20253
20393
  addArcToBezierPath = (bezierPath, startAngle, endAngle, cx, cy, rx, ry, clockwise) => {
20254
20394
  if (clockwise) for (; endAngle > startAngle;) endAngle -= pi2;else for (; endAngle < startAngle;) endAngle += pi2;
20255
- const step = pi$2 / 3 * (endAngle > startAngle ? 1 : -1);
20395
+ const step = pi$1 / 3 * (endAngle > startAngle ? 1 : -1);
20256
20396
  let sa = startAngle,
20257
20397
  ea = sa;
20258
20398
  for (; ea !== endAngle;) {
@@ -21368,8 +21508,8 @@
21368
21508
  nativeCanvas = null === (_a = domElement.getNativeHandler) || void 0 === _a ? void 0 : _a.call(domElement).nativeCanvas;
21369
21509
  let scaleX, scaleY;
21370
21510
  return nativeCanvas && (scaleX = rect.width / nativeCanvas.offsetWidth, scaleY = rect.height / nativeCanvas.offsetHeight), {
21371
- x: (x - rect.left) / (isValidNumber$1(scaleX) ? scaleX : 1),
21372
- y: (y - rect.top) / (isValidNumber$1(scaleY) ? scaleX : 1)
21511
+ x: (x - rect.left) / (isValidNumber(scaleX) ? scaleX : 1),
21512
+ y: (y - rect.top) / (isValidNumber(scaleY) ? scaleX : 1)
21373
21513
  };
21374
21514
  }
21375
21515
  return {
@@ -23049,7 +23189,7 @@
23049
23189
  throw new Error("暂未实现");
23050
23190
  }
23051
23191
  release() {
23052
- this._nativeCanvas.release && isFunction$1(this._nativeCanvas.release) && this._nativeCanvas.release();
23192
+ this._nativeCanvas.release && isFunction(this._nativeCanvas.release) && this._nativeCanvas.release();
23053
23193
  }
23054
23194
  };
23055
23195
  NodeCanvas.env = "node", NodeCanvas = __decorate$G([injectable(), __metadata$t("design:paramtypes", [Object])], NodeCanvas);
@@ -23662,7 +23802,7 @@
23662
23802
  context.disableFill = !0, context.disableStroke = !0, context.disableBeginPath = !0, path.forEach(g => {
23663
23803
  drawContext.drawContribution.getRenderContribution(g).draw(g, drawContext.renderService, drawContext, params);
23664
23804
  }), context.disableFill = disableFill, context.disableStroke = disableStroke, context.disableBeginPath = disableBeginPath;
23665
- } else 0 === cornerRadius || isArray$1(cornerRadius) && cornerRadius.every(num => 0 === num) ? (context.beginPath(), context.rect(x, y, width, height)) : (context.beginPath(), createRectPath(context, x, y, width, height, cornerRadius));
23805
+ } else 0 === cornerRadius || isArray(cornerRadius) && cornerRadius.every(num => 0 === num) ? (context.beginPath(), context.rect(x, y, width, height)) : (context.beginPath(), createRectPath(context, x, y, width, height, cornerRadius));
23666
23806
  this._groupRenderContribitions || (this._groupRenderContribitions = this.groupRenderContribitions.getContributions() || []);
23667
23807
  const doFillOrStroke = {
23668
23808
  doFill: doFill,
@@ -24199,7 +24339,7 @@
24199
24339
  startAngle: startAngle,
24200
24340
  endAngle: endAngle
24201
24341
  } = arc.getParsedAngle(),
24202
- deltaAngle = abs$2(endAngle - startAngle),
24342
+ deltaAngle = abs$1(endAngle - startAngle),
24203
24343
  clockwise = endAngle > startAngle;
24204
24344
  let collapsedToLine = !1;
24205
24345
  if (outerRadius < innerRadius) {
@@ -24228,7 +24368,7 @@
24228
24368
  startAngle: startAngle,
24229
24369
  endAngle: endAngle
24230
24370
  } = arc.getParsedAngle(),
24231
- deltaAngle = abs$2(endAngle - startAngle),
24371
+ deltaAngle = abs$1(endAngle - startAngle),
24232
24372
  clockwise = endAngle > startAngle;
24233
24373
  let collapsedToLine = !1;
24234
24374
  if (radius <= epsilon$1) context.moveTo(cx, cy, z1);else if (deltaAngle >= pi2 - epsilon$1) context.moveTo(cx + radius * cos$1(startAngle), cy + radius * sin$1(startAngle), z1), context.arc(cx, cy, radius, startAngle, endAngle, !clockwise, z1), context.lineTo(cx + radius * cos$1(endAngle), cy + radius * sin$1(endAngle), z2), context.arc(cx, cy, radius, endAngle, startAngle, clockwise, z2);else {
@@ -24558,7 +24698,7 @@
24558
24698
  x += point.x, y += point.y, pickContext.setTransformForCurrent();
24559
24699
  } else x = 0, y = 0, onlyTranslate = !1, pickContext.transformFromMatrix(rect.transMatrix, !0);
24560
24700
  let picked = !0;
24561
- if (!onlyTranslate || isNumber$1(cornerRadius, !0) && 0 !== cornerRadius || isArray$1(cornerRadius) && cornerRadius.some(num => 0 !== num)) picked = !1, this.canvasRenderer.drawShape(rect, pickContext, x, y, {}, null, (context, rectAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(point.x, point.y), picked), (context, rectAttribute, themeAttribute) => {
24701
+ if (!onlyTranslate || isNumber(cornerRadius, !0) && 0 !== cornerRadius || isArray(cornerRadius) && cornerRadius.some(num => 0 !== num)) picked = !1, this.canvasRenderer.drawShape(rect, pickContext, x, y, {}, null, (context, rectAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(point.x, point.y), picked), (context, rectAttribute, themeAttribute) => {
24562
24702
  if (picked) return !0;
24563
24703
  const lineWidth = rectAttribute.lineWidth || themeAttribute.lineWidth;
24564
24704
  return pickContext.lineWidth = getScaledStroke(pickContext, lineWidth, pickContext.dpr), picked = context.isPointInStroke(point.x, point.y), picked;
@@ -25303,7 +25443,7 @@
25303
25443
  x += point.x, y += point.y, pickContext.setTransformForCurrent();
25304
25444
  } else x = 0, y = 0, onlyTranslate = !1, pickContext.transformFromMatrix(rect.transMatrix, !0);
25305
25445
  let picked = !0;
25306
- if (!onlyTranslate || isNumber$1(cornerRadius, !0) && 0 !== cornerRadius || isArray$1(cornerRadius) && cornerRadius.some(num => 0 !== num)) picked = !1, this.canvasRenderer.drawShape(rect, pickContext, x, y, {}, null, (context, rectAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(point.x, point.y), picked), (context, rectAttribute, themeAttribute) => {
25446
+ if (!onlyTranslate || isNumber(cornerRadius, !0) && 0 !== cornerRadius || isArray(cornerRadius) && cornerRadius.some(num => 0 !== num)) picked = !1, this.canvasRenderer.drawShape(rect, pickContext, x, y, {}, null, (context, rectAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(point.x, point.y), picked), (context, rectAttribute, themeAttribute) => {
25307
25447
  if (picked) return !0;
25308
25448
  const lineWidth = rectAttribute.lineWidth || themeAttribute.lineWidth;
25309
25449
  return pickContext.lineWidth = lineWidth, picked = context.isPointInStroke(point.x, point.y), picked;
@@ -25762,14 +25902,14 @@
25762
25902
  constructor(dir, color) {
25763
25903
  let ambient = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : .8;
25764
25904
  this.dir = dir, this.color = color, this.colorRgb = colorString.get(color).value, this.colorRgb[0] /= 255, this.colorRgb[1] /= 255, this.colorRgb[2] /= 255, this.ambient = ambient;
25765
- const length = sqrt$2(dir[0] * dir[0] + dir[1] * dir[1] + dir[2] * dir[2]);
25905
+ const length = sqrt$1(dir[0] * dir[0] + dir[1] * dir[1] + dir[2] * dir[2]);
25766
25906
  this.formatedDir = [dir[0] / length, dir[1] / length, dir[2] / length];
25767
25907
  }
25768
25908
  computeColor(normal, color) {
25769
25909
  const lightDir = this.formatedDir,
25770
25910
  brightness = min(max((normal[0] * lightDir[0] + normal[1] * lightDir[1] + normal[2] * lightDir[2]) * (1 - this.ambient / 2), 0) + this.ambient, 1);
25771
25911
  let colorArray;
25772
- if (isString$1(color)) {
25912
+ if (isString(color)) {
25773
25913
  colorArray = colorString.get(color).value;
25774
25914
  } else colorArray = color;
25775
25915
  const lightColorArray = this.colorRgb;
@@ -26098,7 +26238,7 @@
26098
26238
  throw new Error("暂不支持");
26099
26239
  }
26100
26240
  pick(x, y) {
26101
- const result = this.pickerService.pick(this.children, new Point$1(x, y), {
26241
+ const result = this.pickerService.pick(this.children, new Point(x, y), {
26102
26242
  bounds: this.AABBBounds
26103
26243
  });
26104
26244
  return !(!(null == result ? void 0 : result.graphic) && !(null == result ? void 0 : result.group)) && result;
@@ -26418,7 +26558,7 @@
26418
26558
  function isFieldAssessor(field) {
26419
26559
  if (obj.isObject(field)) {
26420
26560
  const a = field;
26421
- if (isValid$3(a.get) && isValid$3(a.set)) {
26561
+ if (isValid$2(a.get) && isValid$2(a.set)) {
26422
26562
  return true;
26423
26563
  }
26424
26564
  }
@@ -26473,7 +26613,7 @@
26473
26613
  return index;
26474
26614
  }
26475
26615
  const mapIndex = sortedIndexMap[index];
26476
- return isValid$3(mapIndex) ? mapIndex : index;
26616
+ return isValid$2(mapIndex) ? mapIndex : index;
26477
26617
  }
26478
26618
  class DataSource extends EventTarget$2 {
26479
26619
  _get;
@@ -26644,7 +26784,7 @@
26644
26784
  this.lastOrder &&
26645
26785
  this.lastOrder !== 'normal' &&
26646
26786
  this.lastOrderField &&
26647
- sort(index => isValid$3(subNodeSortedIndexArray[index])
26787
+ sort(index => isValid$2(subNodeSortedIndexArray[index])
26648
26788
  ? subNodeSortedIndexArray[index]
26649
26789
  : (subNodeSortedIndexArray[index] = index), (index, rel) => {
26650
26790
  subNodeSortedIndexArray[index] = rel;
@@ -26700,7 +26840,7 @@
26700
26840
  }
26701
26841
  }
26702
26842
  else {
26703
- sort(index => (isValid$3(sortedIndexArray[index]) ? sortedIndexArray[index] : (sortedIndexArray[index] = index)), (index, rel) => {
26843
+ sort(index => (isValid$2(sortedIndexArray[index]) ? sortedIndexArray[index] : (sortedIndexArray[index] = index)), (index, rel) => {
26704
26844
  sortedIndexArray[index] = rel;
26705
26845
  }, this._sourceLength, orderFn, order, index => this.getOriginalField(index, field));
26706
26846
  }
@@ -27293,16 +27433,16 @@
27293
27433
  return value - 0;
27294
27434
  }
27295
27435
  function couldBeValidNumber(v) {
27296
- if (isNil$2(v)) {
27436
+ if (isNil$1(v)) {
27297
27437
  return false;
27298
27438
  }
27299
- if (isNumber$2(v)) {
27439
+ if (isNumber$1(v)) {
27300
27440
  return true;
27301
27441
  }
27302
27442
  return +v === +v;
27303
27443
  }
27304
27444
  function isPercent(v) {
27305
- if (!isString$2(v)) {
27445
+ if (!isString$1(v)) {
27306
27446
  return false;
27307
27447
  }
27308
27448
  if (!v.endsWith('%')) {
@@ -27808,7 +27948,7 @@
27808
27948
  };
27809
27949
  }
27810
27950
  };
27811
- function get$2() {
27951
+ function get$1() {
27812
27952
  return extend(builtins, icons);
27813
27953
  }
27814
27954
 
@@ -27850,7 +27990,7 @@
27850
27990
  }
27851
27991
 
27852
27992
  function getProp(name, cellStyle, col, row, _table) {
27853
- const prop = cellStyle && isValid$3(cellStyle[name]) ? cellStyle[name] : null;
27993
+ const prop = cellStyle && isValid$2(cellStyle[name]) ? cellStyle[name] : null;
27854
27994
  if (typeof prop === 'function') {
27855
27995
  const arg = {
27856
27996
  col,
@@ -27865,7 +28005,7 @@
27865
28005
  return prop;
27866
28006
  }
27867
28007
  function getFunctionalProp(name, cellStyle, col, row, _table) {
27868
- const prop = cellStyle && isValid$3(cellStyle[name]) ? cellStyle[name] : null;
28008
+ const prop = cellStyle && isValid$2(cellStyle[name]) ? cellStyle[name] : null;
27869
28009
  if (typeof prop === 'function') {
27870
28010
  const arg = {
27871
28011
  col,
@@ -27880,11 +28020,11 @@
27880
28020
  return undefined;
27881
28021
  }
27882
28022
 
27883
- const regedIcons$2 = get$2();
28023
+ const regedIcons$2 = get$1();
27884
28024
  function createImageCellGroup(columnGroup, xOrigin, yOrigin, col, row, width, height, keepAspectRatio, imageAutoSizing, padding, textAlign, textBaseline, table, cellTheme) {
27885
28025
  const headerStyle = table._getCellStyle(col, row);
27886
28026
  const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
27887
- if (isValid$3(functionalPadding)) {
28027
+ if (isValid$2(functionalPadding)) {
27888
28028
  padding = functionalPadding;
27889
28029
  }
27890
28030
  if (cellTheme?.text?.textAlign) {
@@ -27947,7 +28087,7 @@
27947
28087
  };
27948
28088
  }
27949
28089
  image.failCallback = () => {
27950
- const regedIcons = get$2();
28090
+ const regedIcons = get$1();
27951
28091
  image.image = regedIcons.damage_pic.svg;
27952
28092
  };
27953
28093
  cellGroup.appendChild(image);
@@ -28723,7 +28863,7 @@
28723
28863
  function interpolate(a, b) {
28724
28864
  const t = typeof b;
28725
28865
  let c;
28726
- if (isNil$2(b) || "boolean" === t) return () => b;
28866
+ if (isNil$1(b) || "boolean" === t) return () => b;
28727
28867
  if ("number" === t) return interpolateNumber(a, b);
28728
28868
  if ("string" === t) {
28729
28869
  if (c = Color.parseColorString(b)) {
@@ -29023,13 +29163,13 @@
29023
29163
  for (let j = 0; j < values.length; j++) {
29024
29164
  if (domain[i] == values[j]) {
29025
29165
  const data = dataValue[j];
29026
- if (!isValid$3(data[xField]) || !isValid$3(data[yField])) {
29166
+ if (!isValid$2(data[xField]) || !isValid$2(data[yField])) {
29027
29167
  break;
29028
29168
  }
29029
29169
  items.push({
29030
29170
  x: left + xScale.scale(data[xField]),
29031
29171
  y: bottom - yScale.scale(data[yField]),
29032
- defined: isValid$3(data[yField])
29172
+ defined: isValid$2(data[yField])
29033
29173
  });
29034
29174
  dataItems.push(data);
29035
29175
  valid = true;
@@ -29052,7 +29192,7 @@
29052
29192
  items.push({
29053
29193
  x: left + xScale.scale(xField ? data[xField] : i),
29054
29194
  y: bottom - yScale.scale(yField ? data[yField] : data),
29055
- defined: isValid$3(yField ? data[yField] : data),
29195
+ defined: isValid$2(yField ? data[yField] : data),
29056
29196
  rawData: data
29057
29197
  });
29058
29198
  dataItems.push(data);
@@ -29882,8 +30022,8 @@
29882
30022
  iconAttribute.visibleTime = icon.visibleTime ?? 'always';
29883
30023
  iconAttribute.funcType = icon.funcType;
29884
30024
  let hierarchyOffset = 0;
29885
- if (isNumber$2(col) &&
29886
- isNumber$2(row) &&
30025
+ if (isNumber$1(col) &&
30026
+ isNumber$1(row) &&
29887
30027
  table &&
29888
30028
  (icon.funcType === IconFuncTypeEnum.collapse || icon.funcType === IconFuncTypeEnum.expand)) {
29889
30029
  hierarchyOffset = getHierarchyOffset(col, row, table);
@@ -30308,45 +30448,45 @@
30308
30448
  const originalElement = originalElements[i];
30309
30449
  const element = Object.assign({}, originalElement);
30310
30450
  for (const name in element) {
30311
- if (element.hasOwnProperty(name) && isFunction$3(element[name])) {
30451
+ if (element.hasOwnProperty(name) && isFunction$2(element[name])) {
30312
30452
  element[name] = element[name](value);
30313
30453
  }
30314
30454
  }
30315
30455
  const rect = element;
30316
- if (isValid$3(rect.x)) {
30317
- rect.x = isString$3(rect.x)
30456
+ if (isValid$2(rect.x)) {
30457
+ rect.x = isString$2(rect.x)
30318
30458
  ? transformString(rect.x, width - borderLineWidths[1])
30319
30459
  : Number(rect.x);
30320
- rect.y = isString$3(rect.y)
30460
+ rect.y = isString$2(rect.y)
30321
30461
  ? transformString(rect.y, height - borderLineWidths[2])
30322
30462
  : Number(rect.y);
30323
30463
  }
30324
30464
  if ('width' in element) {
30325
- element.width = isString$3(element.width)
30465
+ element.width = isString$2(element.width)
30326
30466
  ? transformString(element.width, width - borderLineWidths[1])
30327
30467
  : Number(element.width);
30328
30468
  }
30329
30469
  if ('height' in element) {
30330
- element.height = isString$3(element.height)
30470
+ element.height = isString$2(element.height)
30331
30471
  ? transformString(element.height, height - borderLineWidths[2])
30332
30472
  : Number(element.height);
30333
30473
  }
30334
30474
  if ('radius' in element) {
30335
- element.radius = isString$3(element.radius)
30475
+ element.radius = isString$2(element.radius)
30336
30476
  ? transformString(element.radius, Math.min(width - borderLineWidths[1], height - borderLineWidths[2]))
30337
30477
  : Number(element.radius);
30338
30478
  }
30339
30479
  if ('hover' in element) {
30340
- element.hover.x = isString$3(element.hover.x)
30480
+ element.hover.x = isString$2(element.hover.x)
30341
30481
  ? transformString(element.hover.x, width - borderLineWidths[1])
30342
30482
  : Number(element.hover.x);
30343
- element.hover.y = isString$3(element.hover.y)
30483
+ element.hover.y = isString$2(element.hover.y)
30344
30484
  ? transformString(element.hover.y, height - borderLineWidths[2])
30345
30485
  : Number(element.hover.y);
30346
- element.hover.width = isString$3(element.hover.width)
30486
+ element.hover.width = isString$2(element.hover.width)
30347
30487
  ? transformString(element.hover.width, width - borderLineWidths[1])
30348
30488
  : Number(element.hover.width);
30349
- element.hover.height = isString$3(element.hover.height)
30489
+ element.hover.height = isString$2(element.hover.height)
30350
30490
  ? transformString(element.hover.height, height - borderLineWidths[2])
30351
30491
  : Number(element.hover.height);
30352
30492
  element.hover.x += left;
@@ -30685,268 +30825,6 @@
30685
30825
  return maxHeight + padding[0] + padding[2];
30686
30826
  }
30687
30827
 
30688
- const isType = (value, type) => toString.call(value) === `[object ${type}]`;
30689
-
30690
- const isBoolean = function (value) {
30691
- let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
30692
- return fuzzy ? "boolean" == typeof value : !0 === value || !1 === value || isType(value, "Boolean");
30693
- };
30694
-
30695
- const isFunction = value => "function" == typeof value;
30696
-
30697
- const isNil = value => null == value;
30698
-
30699
- const isValid = value => null != value;
30700
-
30701
- const isObject = value => {
30702
- const type = typeof value;
30703
- return null !== value && "object" === type || "function" === type;
30704
- };
30705
-
30706
- const isObjectLike = value => "object" == typeof value && null !== value;
30707
-
30708
- const isPlainObject = function (value) {
30709
- if (!isObjectLike(value) || !isType(value, "Object")) return !1;
30710
- if (null === Object.getPrototypeOf(value)) return !0;
30711
- let proto = value;
30712
- for (; null !== Object.getPrototypeOf(proto);) proto = Object.getPrototypeOf(proto);
30713
- return Object.getPrototypeOf(value) === proto;
30714
- };
30715
-
30716
- const isString = function (value) {
30717
- let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
30718
- const type = typeof value;
30719
- return fuzzy ? "string" === type : "string" === type || isType(value, "String");
30720
- };
30721
-
30722
- const isArray = value => Array.isArray ? Array.isArray(value) : isType(value, "Array");
30723
-
30724
- const isArrayLike = function (value) {
30725
- return null !== value && "function" != typeof value && Number.isFinite(value.length);
30726
- };
30727
-
30728
- const isDate = value => isType(value, "Date");
30729
-
30730
- const isNumber = function (value) {
30731
- let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
30732
- const type = typeof value;
30733
- return fuzzy ? "number" === type : "number" === type || isType(value, "Number");
30734
- };
30735
-
30736
- const isValidNumber = value => isNumber(value) && Number.isFinite(value);
30737
-
30738
- const getType = value => ({}).toString.call(value).replace(/^\[object /, "").replace(/]$/, "");
30739
-
30740
- const objectProto = Object.prototype,
30741
- isPrototype = function (value) {
30742
- const Ctor = value && value.constructor;
30743
- return value === ("function" == typeof Ctor && Ctor.prototype || objectProto);
30744
- };
30745
-
30746
- const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
30747
- function isEmpty(value) {
30748
- if (isNil(value)) return !0;
30749
- if (isArrayLike(value)) return !value.length;
30750
- const type = getType(value);
30751
- if ("Map" === type || "Set" === type) return !value.size;
30752
- if (isPrototype(value)) return !Object.keys(value).length;
30753
- for (const key in value) if (hasOwnProperty$1.call(value, key)) return !1;
30754
- return !0;
30755
- }
30756
-
30757
- const get$1 = (obj, path, defaultValue) => {
30758
- const paths = isString(path) ? path.split(".") : path;
30759
- for (let p = 0; p < paths.length; p++) obj = obj ? obj[paths[p]] : void 0;
30760
- return void 0 === obj ? defaultValue : obj;
30761
- };
30762
-
30763
- function cloneDeep(value) {
30764
- let result;
30765
- if (!isValid(value) || "object" != typeof value) return value;
30766
- const isArr = isArray(value),
30767
- length = value.length;
30768
- result = isArr ? new Array(length) : "object" == typeof value ? {} : isBoolean(value) || isNumber(value) || isString(value) ? value : isDate(value) ? new Date(+value) : void 0;
30769
- const props = isArr ? void 0 : Object.keys(Object(value));
30770
- let index = -1;
30771
- if (result) for (; ++index < (props || value).length;) {
30772
- const key = props ? props[index] : index,
30773
- subValue = value[key];
30774
- result[key] = cloneDeep(subValue);
30775
- }
30776
- return result;
30777
- }
30778
-
30779
- function baseMerge(target, source) {
30780
- let shallowArray = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
30781
- if (source) {
30782
- if (target === source) return;
30783
- if (isValid(source) && "object" == typeof source) {
30784
- const iterable = Object(source),
30785
- props = [];
30786
- for (const key in iterable) props.push(key);
30787
- let {
30788
- length: length
30789
- } = props,
30790
- propIndex = -1;
30791
- for (; length--;) {
30792
- const key = props[++propIndex];
30793
- isValid(iterable[key]) && "object" == typeof iterable[key] ? baseMergeDeep(target, source, key, shallowArray) : assignMergeValue(target, key, iterable[key]);
30794
- }
30795
- }
30796
- }
30797
- }
30798
- function baseMergeDeep(target, source, key) {
30799
- let shallowArray = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
30800
- const objValue = target[key],
30801
- srcValue = source[key];
30802
- let newValue = source[key],
30803
- isCommon = !0;
30804
- if (isArray(srcValue)) {
30805
- if (shallowArray) newValue = [];else if (isArray(objValue)) newValue = objValue;else if (isArrayLike(objValue)) {
30806
- newValue = new Array(objValue.length);
30807
- let index = -1;
30808
- const length = objValue.length;
30809
- for (; ++index < length;) newValue[index] = objValue[index];
30810
- }
30811
- } else isPlainObject(srcValue) ? (newValue = objValue, "function" != typeof objValue && "object" == typeof objValue || (newValue = {})) : isCommon = !1;
30812
- isCommon && baseMerge(newValue, srcValue, shallowArray), assignMergeValue(target, key, newValue);
30813
- }
30814
- function assignMergeValue(target, key, value) {
30815
- (void 0 !== value && !eq(target[key], value) || void 0 === value && !(key in target)) && (target[key] = value);
30816
- }
30817
- function eq(value, other) {
30818
- return value === other || Number.isNaN(value) && Number.isNaN(other);
30819
- }
30820
- function merge$2(target) {
30821
- let sourceIndex = -1;
30822
- const length = arguments.length <= 1 ? 0 : arguments.length - 1;
30823
- for (; ++sourceIndex < length;) {
30824
- baseMerge(target, sourceIndex + 1 < 1 || arguments.length <= sourceIndex + 1 ? undefined : arguments[sourceIndex + 1], !0);
30825
- }
30826
- return target;
30827
- }
30828
-
30829
- const DEFAULT_ABSOLUTE_TOLERATE = 1e-10,
30830
- DEFAULT_RELATIVE_TOLERATE = 1e-10;
30831
- function isNumberClose(a, b) {
30832
- let relTol = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_RELATIVE_TOLERATE;
30833
- let absTol = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_ABSOLUTE_TOLERATE;
30834
- const abs = absTol,
30835
- rel = relTol * Math.max(a, b);
30836
- return Math.abs(a - b) <= Math.max(abs, rel);
30837
- }
30838
-
30839
- const clamp = function (input, min, max) {
30840
- return input < min ? min : input > max ? max : input;
30841
- };
30842
-
30843
- const clampRange = (range, min, max) => {
30844
- let [lowValue, highValue] = range;
30845
- highValue < lowValue && (lowValue = range[1], highValue = range[0]);
30846
- const span = highValue - lowValue;
30847
- return span >= max - min ? [min, max] : (lowValue = Math.min(Math.max(lowValue, min), max - span), [lowValue, lowValue + span]);
30848
- };
30849
-
30850
- let hasRaf = !1;
30851
- try {
30852
- hasRaf = "function" == typeof requestAnimationFrame && "function" == typeof cancelAnimationFrame;
30853
- } catch (err) {
30854
- hasRaf = !1;
30855
- }
30856
- hasRaf = !1;
30857
-
30858
- const pi$1 = Math.PI;
30859
- const abs$1 = Math.abs;
30860
- const sqrt$1 = Math.sqrt;
30861
- const pow = Math.pow;
30862
-
30863
- class Point {
30864
- constructor() {
30865
- let x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
30866
- let y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
30867
- let x1 = arguments.length > 2 ? arguments[2] : undefined;
30868
- let y1 = arguments.length > 3 ? arguments[3] : undefined;
30869
- this.x = 0, this.y = 0, this.x = x, this.y = y, this.x1 = x1, this.y1 = y1;
30870
- }
30871
- clone() {
30872
- return new Point(this.x, this.y);
30873
- }
30874
- copyFrom(p) {
30875
- return this.x = p.x, this.y = p.y, this.x1 = p.x1, this.y1 = p.y1, this.defined = p.defined, this.context = p.context, this;
30876
- }
30877
- set(x, y) {
30878
- return this.x = x, this.y = y, this;
30879
- }
30880
- add(point) {
30881
- return isNumber(point) ? (this.x += point, void (this.y += point)) : (this.x += point.x, this.y += point.y, this);
30882
- }
30883
- sub(point) {
30884
- return isNumber(point) ? (this.x -= point, void (this.y -= point)) : (this.x -= point.x, this.y -= point.y, this);
30885
- }
30886
- multi(point) {
30887
- throw new Error("暂不支持");
30888
- }
30889
- div(point) {
30890
- throw new Error("暂不支持");
30891
- }
30892
- }
30893
- class PointService {
30894
- static distancePP(p1, p2) {
30895
- return sqrt$1(pow(p1.x - p2.x, 2) + pow(p1.y - p2.y, 2));
30896
- }
30897
- static distanceNN(x, y, x1, y1) {
30898
- return sqrt$1(pow(x - x1, 2) + pow(y - y1, 2));
30899
- }
30900
- static distancePN(point, x, y) {
30901
- return sqrt$1(pow(x - point.x, 2) + pow(y - point.y, 2));
30902
- }
30903
- static pointAtPP(p1, p2, t) {
30904
- return new Point((p2.x - p1.x) * t + p1.x, (p2.y - p1.y) * t + p1.y);
30905
- }
30906
- }
30907
-
30908
- function polarToCartesian(center, radius, angleInRadian) {
30909
- return {
30910
- x: center.x + radius * Math.cos(angleInRadian),
30911
- y: center.y + radius * Math.sin(angleInRadian)
30912
- };
30913
- }
30914
-
30915
- var InnerBBox;
30916
- !function (InnerBBox) {
30917
- InnerBBox[InnerBBox.NONE = 0] = "NONE", InnerBBox[InnerBBox.BBOX1 = 1] = "BBOX1", InnerBBox[InnerBBox.BBOX2 = 2] = "BBOX2";
30918
- }(InnerBBox || (InnerBBox = {}));
30919
-
30920
- function normalizePadding(padding) {
30921
- if (isValidNumber(padding)) return [padding, padding, padding, padding];
30922
- if (isArray(padding)) {
30923
- const length = padding.length;
30924
- if (1 === length) {
30925
- const paddingValue = padding[0];
30926
- return [paddingValue, paddingValue, paddingValue, paddingValue];
30927
- }
30928
- if (2 === length) {
30929
- const [vertical, horizontal] = padding;
30930
- return [vertical, horizontal, vertical, horizontal];
30931
- }
30932
- if (3 === length) {
30933
- const [top, horizontal, bottom] = padding;
30934
- return [top, horizontal, bottom, horizontal];
30935
- }
30936
- if (4 === length) return padding;
30937
- }
30938
- if (isObject(padding)) {
30939
- const {
30940
- top = 0,
30941
- right = 0,
30942
- bottom = 0,
30943
- left = 0
30944
- } = padding;
30945
- return [top, right, bottom, left];
30946
- }
30947
- return [0, 0, 0, 0];
30948
- }
30949
-
30950
30828
  const GROUP_ATTRIBUTES = ["x", "y", "dx", "dy", "scaleX", "scaleY", "angle", "anchor", "postMatrix", "visible", "clip", "pickable", "childrenPickable", "zIndex"];
30951
30829
  class AbstractComponent extends Group$1 {
30952
30830
  constructor(attributes) {
@@ -30998,11 +30876,11 @@
30998
30876
  let currentScrollValue;
30999
30877
  if ("vertical" === direction) {
31000
30878
  const relativeY = viewY - this._viewPosition.y,
31001
- currentYPos = clamp(relativeY - sliderSize / 2, min, max);
30879
+ currentYPos = clamp$1(relativeY - sliderSize / 2, min, max);
31002
30880
  currentScrollValue = relativeY / height, this._slider.setAttribute("y", currentYPos, !0);
31003
30881
  } else {
31004
30882
  const relativeX = viewX - this._viewPosition.x,
31005
- currentXPos = clamp(relativeX - sliderSize / 2, min, max);
30883
+ currentXPos = clamp$1(relativeX - sliderSize / 2, min, max);
31006
30884
  currentScrollValue = relativeX / width, this._slider.setAttribute("x", currentXPos, !0);
31007
30885
  }
31008
30886
  this.setScrollRange([currentScrollValue - (range[1] - range[0]) / 2, currentScrollValue + (range[1] - range[0]) / 2], !1), (null === (_a = this.stage) || void 0 === _a ? void 0 : _a.autoRender) || null === (_b = this.stage) || void 0 === _b || _b.renderNextFrame();
@@ -31192,131 +31070,21 @@
31192
31070
  });
31193
31071
  }
31194
31072
 
31195
- /**
31196
- * Common utilities
31197
- * @module glMatrix
31198
- */
31199
- var ARRAY_TYPE = typeof Float32Array !== 'undefined' ? Float32Array : Array;
31200
- if (!Math.hypot) Math.hypot = function () {
31201
- var y = 0,
31202
- i = arguments.length;
31203
- while (i--) {
31204
- y += arguments[i] * arguments[i];
31205
- }
31206
- return Math.sqrt(y);
31207
- };
31208
-
31209
- /**
31210
- * 2 Dimensional Vector
31211
- * @module vec2
31212
- */
31213
-
31214
- /**
31215
- * Creates a new, empty vec2
31216
- *
31217
- * @returns {vec2} a new 2D vector
31218
- */
31219
-
31220
- function create() {
31221
- var out = new ARRAY_TYPE(2);
31222
- if (ARRAY_TYPE != Float32Array) {
31223
- out[0] = 0;
31224
- out[1] = 0;
31225
- }
31226
- return out;
31227
- }
31228
- /**
31229
- * Scales a vec2 by a scalar number
31230
- *
31231
- * @param {vec2} out the receiving vector
31232
- * @param {ReadonlyVec2} a the vector to scale
31233
- * @param {Number} b amount to scale the vector by
31234
- * @returns {vec2} out
31235
- */
31236
-
31237
- function scale(out, a, b) {
31238
- out[0] = a[0] * b;
31239
- out[1] = a[1] * b;
31240
- return out;
31241
- }
31242
- /**
31243
- * Normalize a vec2
31244
- *
31245
- * @param {vec2} out the receiving vector
31246
- * @param {ReadonlyVec2} a vector to normalize
31247
- * @returns {vec2} out
31248
- */
31249
-
31250
- function normalize(out, a) {
31251
- var x = a[0],
31252
- y = a[1];
31253
- var len = x * x + y * y;
31254
- if (len > 0) {
31255
- //TODO: evaluate use of glm_invsqrt here?
31256
- len = 1 / Math.sqrt(len);
31257
- }
31258
- out[0] = a[0] * len;
31259
- out[1] = a[1] * len;
31260
- return out;
31261
- }
31262
- /**
31263
- * Get the angle between two 2D vectors
31264
- * @param {ReadonlyVec2} a The first operand
31265
- * @param {ReadonlyVec2} b The second operand
31266
- * @returns {Number} The angle in radians
31267
- */
31268
-
31269
- function angle(a, b) {
31270
- var x1 = a[0],
31271
- y1 = a[1],
31272
- x2 = b[0],
31273
- y2 = b[1],
31274
- // mag is the product of the magnitudes of a and b
31275
- mag = Math.sqrt(x1 * x1 + y1 * y1) * Math.sqrt(x2 * x2 + y2 * y2),
31276
- // mag &&.. short circuits if mag == 0
31277
- cosine = mag && (x1 * x2 + y1 * y2) / mag; // Math.min(Math.max(cosine, -1), 1) clamps the cosine between -1 and 1
31278
-
31073
+ function scale(vector, scale) {
31074
+ return [vector[0] * scale, vector[1] * scale];
31075
+ }
31076
+ function normalize(vector) {
31077
+ const [x, y] = vector;
31078
+ let len = x * x + y * y;
31079
+ return len > 0 && (len = 1 / Math.sqrt(len)), [vector[0] * len, vector[1] * len];
31080
+ }
31081
+ function angle(vector1, vector2) {
31082
+ const [x1, y1] = vector1,
31083
+ [x2, y2] = vector2,
31084
+ mag = Math.sqrt((x1 * x1 + y1 * y1) * (x2 * x2 + y2 * y2)),
31085
+ cosine = mag && (x1 * x2 + y1 * y2) / mag;
31279
31086
  return Math.acos(Math.min(Math.max(cosine, -1), 1));
31280
31087
  }
31281
- /**
31282
- * Perform some operation over an array of vec2s.
31283
- *
31284
- * @param {Array} a the array of vectors to iterate over
31285
- * @param {Number} stride Number of elements between the start of each vec2. If 0 assumes tightly packed
31286
- * @param {Number} offset Number of elements to skip at the beginning of the array
31287
- * @param {Number} count Number of vec2s to iterate over. If 0 iterates over entire array
31288
- * @param {Function} fn Function to call for each vector in the array
31289
- * @param {Object} [arg] additional argument to pass to fn
31290
- * @returns {Array} a
31291
- * @function
31292
- */
31293
-
31294
- (function () {
31295
- var vec = create();
31296
- return function (a, stride, offset, count, fn, arg) {
31297
- var i, l;
31298
- if (!stride) {
31299
- stride = 2;
31300
- }
31301
- if (!offset) {
31302
- offset = 0;
31303
- }
31304
- if (count) {
31305
- l = Math.min(count * stride + offset, a.length);
31306
- } else {
31307
- l = a.length;
31308
- }
31309
- for (i = offset; i < l; i += stride) {
31310
- vec[0] = a[i];
31311
- vec[1] = a[i + 1];
31312
- fn(vec, vec, arg);
31313
- a[i] = vec[0];
31314
- a[i + 1] = vec[1];
31315
- }
31316
- return a;
31317
- };
31318
- })();
31319
-
31320
31088
  function direction(v1, v2) {
31321
31089
  return v1[0] * v2[1] - v2[0] * v1[1];
31322
31090
  }
@@ -31973,11 +31741,10 @@
31973
31741
  axisTitle.name = AXIS_ELEMENT_NAME.title, axisTitle.id = this._getNodeId("title"), container.add(axisTitle);
31974
31742
  }
31975
31743
  renderGrid(container) {
31976
- this._renderGridByType("grid", container);
31977
31744
  const {
31978
31745
  visible: visible
31979
31746
  } = this.attribute.subGrid || {};
31980
- visible && this._renderGridByType("subGrid", container);
31747
+ visible && this._renderGridByType("subGrid", container), this._renderGridByType("grid", container);
31981
31748
  }
31982
31749
  getVerticalCoord(point, offset, inside) {
31983
31750
  const vector = this.getVerticalVector(offset, inside, point);
@@ -32063,9 +31830,9 @@
32063
31830
  return subTickLineItems;
32064
31831
  }
32065
31832
  _getTickLineAttribute(type, tickItem, index, tickItems) {
32066
- let style = get$1(this.attribute, `${type}.style`);
31833
+ let style = get$2(this.attribute, `${type}.style`);
32067
31834
  const data = this.data[index];
32068
- style = isFunction(style) ? merge$2({}, get$1(DEFAULT_AXIS_THEME, `${type}.style`), "tick" === type ? style(data.rawValue, index, data, this.data) : style(tickItem.value, index, tickItem, tickItems)) : style;
31835
+ style = isFunction(style) ? merge$2({}, get$2(DEFAULT_AXIS_THEME, `${type}.style`), "tick" === type ? style(data.rawValue, index, data, this.data) : style(tickItem.value, index, tickItem, tickItems)) : style;
32069
31836
  const {
32070
31837
  start: start,
32071
31838
  end: end,
@@ -32093,7 +31860,7 @@
32093
31860
  tickLength = 0;
32094
31861
  (null === (_a = this.attribute.tick) || void 0 === _a ? void 0 : _a.visible) && (null === (_b = this.attribute.tick) || void 0 === _b ? void 0 : _b.inside) === inside && (tickLength = (null === (_c = this.attribute.tick) || void 0 === _c ? void 0 : _c.length) || 4), (null === (_d = this.attribute.subTick) || void 0 === _d ? void 0 : _d.visible) && (null === (_e = this.attribute.subTick) || void 0 === _e ? void 0 : _e.inside) === inside && (tickLength = Math.max(tickLength, (null === (_f = this.attribute.subTick) || void 0 === _f ? void 0 : _f.length) || 2)), offset += tickLength;
32095
31862
  const axisVector = this.getRelativeVector(tickDatum.point);
32096
- layer > 0 && (0 === axisVector[1] ? offset += (this.axisLabelLayerSize[layer - 1].height + get$1(this.attribute, "label.space", 4)) * layer : offset += (this.axisLabelLayerSize[layer - 1].width + get$1(this.attribute, "label.space", 4)) * layer);
31863
+ layer > 0 && (0 === axisVector[1] ? offset += (this.axisLabelLayerSize[layer - 1].height + get$2(this.attribute, "label.space", 4)) * layer : offset += (this.axisLabelLayerSize[layer - 1].width + get$2(this.attribute, "label.space", 4)) * layer);
32097
31864
  const point = this.getVerticalCoord(tickDatum.point, offset, inside),
32098
31865
  vector = this.getVerticalVector(offset, inside, point),
32099
31866
  text = formatMethod ? formatMethod(tickDatum.label, tickDatum, index, tickData, layer) : tickDatum.label;
@@ -32212,9 +31979,9 @@
32212
31979
  verticalFactor = 1
32213
31980
  } = this.attribute,
32214
31981
  axisVector = this.getRelativeVector(),
32215
- normalize$1 = normalize([0, 0], axisVector),
32216
- verticalVector = [normalize$1[1], -1 * normalize$1[0]];
32217
- return scale([0, 0], verticalVector, offset * (inside ? 1 : -1) * verticalFactor);
31982
+ normalizedAxisVector = normalize(axisVector),
31983
+ verticalVector = [normalizedAxisVector[1], -1 * normalizedAxisVector[0]];
31984
+ return scale(verticalVector, offset * (inside ? 1 : -1) * verticalFactor);
32218
31985
  }
32219
31986
  getTitleAttribute() {
32220
31987
  var _a, _b, _c, _d, _e, _f, _g, _h;
@@ -32239,7 +32006,7 @@
32239
32006
  axisVector = this.getRelativeVector();
32240
32007
  let labelLength = 0;
32241
32008
  if ((null === (_a = this.attribute.label) || void 0 === _a ? void 0 : _a.visible) && !1 === (null === (_b = this.attribute.label) || void 0 === _b ? void 0 : _b.inside)) {
32242
- const space = +get$1(this.attribute, "label.space", 4);
32009
+ const space = +get$2(this.attribute, "label.space", 4);
32243
32010
  if (labelLength += space, 0 === axisVector[1]) Object.keys(this.axisLabelLayerSize).forEach((layer, index) => {
32244
32011
  labelLength += this.axisLabelLayerSize[layer].height + (index > 0 ? space : 0);
32245
32012
  });else {
@@ -32472,7 +32239,8 @@
32472
32239
  } = handler;
32473
32240
  preShape || (preShape = isHorizontal ? "triangleLeft" : "triangleUp"), nextShape || (nextShape = isHorizontal ? "triangleRight" : "triangleDown");
32474
32241
  const preHandler = createSymbol(Object.assign(Object.assign({
32475
- strokeBoundsBuffer: 0
32242
+ strokeBoundsBuffer: 0,
32243
+ pickMode: "imprecise"
32476
32244
  }, handlerStyle), {
32477
32245
  x: 0,
32478
32246
  y: 0,
@@ -32499,7 +32267,8 @@
32499
32267
  }, textStyle));
32500
32268
  this.text = text, container.add(text);
32501
32269
  const nextHandler = createSymbol(Object.assign(Object.assign({
32502
- strokeBoundsBuffer: 0
32270
+ strokeBoundsBuffer: 0,
32271
+ pickMode: "imprecise"
32503
32272
  }, handlerStyle), {
32504
32273
  x: isHorizontal ? handlerSizeX + 2 * handlerSpace + maxTextWidth : 0,
32505
32274
  y: isHorizontal ? 0 : handlerSizeY + 2 * handlerSpace + maxTextHeight,
@@ -32729,14 +32498,16 @@
32729
32498
  const itemGroup = this._renderEachItem(item, !!isEmpty(defaultSelected) || (null == defaultSelected ? void 0 : defaultSelected.includes(item.label)), index),
32730
32499
  itemWidth = itemGroup.attribute.width,
32731
32500
  itemHeight = itemGroup.attribute.height;
32732
- this._itemHeight = Math.max(this._itemHeight, itemHeight), maxWidthInCol = Math.max(itemWidth, maxWidthInCol), this._itemMaxWidth = Math.max(itemWidth, this._itemMaxWidth), isHorizontal ? (maxPages = maxRow, isValid(maxWidth) && maxWidth < startX + itemWidth && (doWrap = !0, startX = 0, startY += itemHeight + spaceRow, pages += 1), index > 0 && itemGroup.setAttributes({
32501
+ this._itemHeight = Math.max(this._itemHeight, itemHeight), maxWidthInCol = Math.max(itemWidth, maxWidthInCol), this._itemMaxWidth = Math.max(itemWidth, this._itemMaxWidth), isHorizontal ? (maxPages = maxRow, isValid(maxWidth) && (itemWidth >= maxWidth ? (doWrap = !0, index > 0 && (startX = 0, startY += itemHeight + spaceRow, pages += 1)) : maxWidth < startX + itemWidth && (doWrap = !0, startX = 0, startY += itemHeight + spaceRow, pages += 1)), index > 0 && itemGroup.setAttributes({
32733
32502
  x: startX,
32734
32503
  y: startY
32735
32504
  }), startX += spaceCol + itemWidth) : (maxPages = maxCol, isValid(maxHeight) && maxHeight < startY + itemHeight && (doWrap = !0, startY = 0, startX += maxWidthInCol + spaceCol, maxWidthInCol = 0, pages += 1), index > 0 && itemGroup.setAttributes({
32736
32505
  x: startX,
32737
32506
  y: startY
32738
32507
  }), startY += spaceRow + itemHeight), itemsContainer.add(itemGroup);
32739
- }), doWrap && autoPage && pages > maxPages ? this._renderPager(isHorizontal) : (itemsContainer.setAttribute("y", this._title ? this._title.AABBBounds.height() + get$1(this.attribute, "title.space", 8) : 0), this._innerView.add(itemsContainer));
32508
+ });
32509
+ let pagerRendered = !1;
32510
+ doWrap && autoPage && pages > maxPages && (pagerRendered = this._renderPager(isHorizontal)), pagerRendered || (itemsContainer.setAttribute("y", this._title ? this._title.AABBBounds.height() + get$2(this.attribute, "title.space", 8) : 0), this._innerView.add(itemsContainer));
32740
32511
  }
32741
32512
  _bindEvents() {
32742
32513
  if (!this._itemsContainer) return;
@@ -32779,8 +32550,8 @@
32779
32550
  });
32780
32551
  itemGroup.add(innerGroup);
32781
32552
  let focusStartX = 0;
32782
- const shapeSize = get$1(shapeAttr, "style.size", DEFAULT_SHAPE_SIZE),
32783
- shapeSpace = get$1(shapeAttr, "space", DEFAULT_SHAPE_SPACE),
32553
+ const shapeSize = get$2(shapeAttr, "style.size", DEFAULT_SHAPE_SIZE),
32554
+ shapeSpace = get$2(shapeAttr, "space", DEFAULT_SHAPE_SPACE),
32784
32555
  itemShape = createSymbol(Object.assign(Object.assign({
32785
32556
  x: 0,
32786
32557
  y: 0,
@@ -32794,7 +32565,7 @@
32794
32565
  }), this._appendDataToShape(itemShape, LEGEND_ELEMENT_NAME.itemShape, item, itemGroup, null == shapeAttr ? void 0 : shapeAttr.state), itemShape.addState(isSelected ? LegendStateValue.selected : LegendStateValue.unSelected), innerGroup.add(itemShape);
32795
32566
  let focusSpace = 0;
32796
32567
  if (focus) {
32797
- const focusSize = get$1(focusIconStyle, "size", DEFAULT_SHAPE_SIZE);
32568
+ const focusSize = get$2(focusIconStyle, "size", DEFAULT_SHAPE_SIZE);
32798
32569
  focusShape = createSymbol(Object.assign(Object.assign({
32799
32570
  x: 0,
32800
32571
  y: -focusSize / 2 - 1,
@@ -32815,9 +32586,9 @@
32815
32586
  text: labelAttr.formatMethod ? labelAttr.formatMethod(label, item, index) : label
32816
32587
  }));
32817
32588
  this._appendDataToShape(labelShape, LEGEND_ELEMENT_NAME.itemLabel, item, itemGroup, null == labelAttr ? void 0 : labelAttr.state), labelShape.addState(isSelected ? LegendStateValue.selected : LegendStateValue.unSelected), innerGroup.add(labelShape);
32818
- const labelSpace = get$1(labelAttr, "space", DEFAULT_LABEL_SPACE);
32589
+ const labelSpace = get$2(labelAttr, "space", DEFAULT_LABEL_SPACE);
32819
32590
  if (focusStartX += shapeSize / 2 + shapeSpace + labelShape.AABBBounds.width() + labelSpace, isValid(value)) {
32820
- const valueSpace = get$1(valueAttr, "space", focus ? DEFAULT_VALUE_SPACE : 0),
32591
+ const valueSpace = get$2(valueAttr, "space", focus ? DEFAULT_VALUE_SPACE : 0),
32821
32592
  valueShape = createText(Object.assign(Object.assign({
32822
32593
  x: focusStartX + labelSpace,
32823
32594
  y: 0,
@@ -32841,7 +32612,7 @@
32841
32612
  return itemGroup.attribute.width = itemGroupWidth, itemGroup.attribute.height = itemGroupHeight, innerGroup.translateTo(-innerGroupBounds.x1 + parsedPadding[3], -innerGroupBounds.y1 + parsedPadding[0]), itemGroup;
32842
32613
  }
32843
32614
  _renderPager(isHorizontal) {
32844
- const renderStartY = this._title ? this._title.AABBBounds.height() + get$1(this.attribute, "title.space", 8) : 0,
32615
+ const renderStartY = this._title ? this._title.AABBBounds.height() + get$2(this.attribute, "title.space", 8) : 0,
32845
32616
  {
32846
32617
  maxWidth: maxWidth,
32847
32618
  maxHeight: maxHeight,
@@ -32868,43 +32639,50 @@
32868
32639
  startX = 0,
32869
32640
  startY = 0,
32870
32641
  pages = 1;
32871
- isHorizontal ? (pagerComp = new Pager(Object.assign({
32872
- layout: 1 === maxRow ? "horizontal" : "vertical",
32873
- total: 99
32874
- }, merge$2({
32875
- handler: {
32876
- preShape: "triangleUp",
32877
- nextShape: "triangleDown"
32878
- }
32879
- }, pageStyle))), this._pager = pagerComp, this._innerView.add(pagerComp), pageHeight = (maxRow - 1) * spaceRow + this._itemHeight * maxRow, pageWidth = maxWidth - pagerComp.AABBBounds.width() - pagerSpace, itemsContainer.getChildren().forEach((item, index) => {
32880
- const {
32881
- width: width,
32882
- height: height
32883
- } = item.attribute;
32884
- pageWidth < startX + width && (startX = 0, startY += height + spaceRow, pages += 1), index > 0 && item.setAttributes({
32885
- x: startX,
32886
- y: startY
32887
- }), startX += spaceCol + width;
32888
- }), pagerComp.setAttributes({
32889
- total: Math.ceil(pages / maxRow),
32890
- x: pageWidth,
32891
- y: renderStartY + pageHeight / 2 - pagerComp.AABBBounds.height() / 2
32892
- })) : (pagerComp = new Pager(Object.assign({
32893
- layout: "horizontal",
32894
- total: 99
32895
- }, pageStyle)), this._pager = pagerComp, this._innerView.add(pagerComp), pageWidth = this._itemMaxWidth * maxCol + (maxCol - 1) * spaceCol, pageHeight = maxHeight - pagerComp.AABBBounds.height() - pagerSpace - renderStartY, itemsContainer.getChildren().forEach((item, index) => {
32896
- const {
32897
- height: height
32898
- } = item.attribute;
32899
- pageHeight < startY + height && (startY = 0, startX += this._itemMaxWidth + spaceCol, pages += 1), index > 0 && item.setAttributes({
32900
- x: startX,
32901
- y: startY
32902
- }), startY += spaceRow + height;
32903
- }), pagerComp.setAttributes({
32904
- total: Math.ceil(pages / maxCol),
32905
- x: (pageWidth - pagerComp.AABBBounds.width()) / 2,
32906
- y: maxHeight - pagerComp.AABBBounds.height()
32907
- })), pager.defaultCurrent > 1 && (isHorizontal ? itemsContainer.setAttribute("y", -(pager.defaultCurrent - 1) * (pageHeight + spaceRow)) : itemsContainer.setAttribute("x", -(pager.defaultCurrent - 1) * (pageWidth + spaceCol)));
32642
+ if (isHorizontal) {
32643
+ if (pagerComp = new Pager(Object.assign({
32644
+ layout: 1 === maxRow ? "horizontal" : "vertical",
32645
+ total: 99
32646
+ }, merge$2({
32647
+ handler: {
32648
+ preShape: "triangleUp",
32649
+ nextShape: "triangleDown"
32650
+ }
32651
+ }, pageStyle))), this._pager = pagerComp, this._innerView.add(pagerComp), pageHeight = (maxRow - 1) * spaceRow + this._itemHeight * maxRow, pageWidth = maxWidth - pagerComp.AABBBounds.width() - pagerSpace, pageWidth <= 0) return this._innerView.removeChild(pagerComp), !1;
32652
+ itemsContainer.getChildren().forEach((item, index) => {
32653
+ const {
32654
+ width: width,
32655
+ height: height
32656
+ } = item.attribute;
32657
+ pageWidth < startX + width && (startX = 0, startY += height + spaceRow, pages += 1), index > 0 && item.setAttributes({
32658
+ x: startX,
32659
+ y: startY
32660
+ }), startX += spaceCol + width;
32661
+ }), pagerComp.setAttributes({
32662
+ total: Math.ceil(pages / maxRow),
32663
+ x: pageWidth,
32664
+ y: renderStartY + pageHeight / 2 - pagerComp.AABBBounds.height() / 2
32665
+ });
32666
+ } else {
32667
+ if (pagerComp = new Pager(Object.assign({
32668
+ layout: "horizontal",
32669
+ total: 99
32670
+ }, pageStyle)), this._pager = pagerComp, this._innerView.add(pagerComp), pageWidth = this._itemMaxWidth * maxCol + (maxCol - 1) * spaceCol, pageHeight = maxHeight - pagerComp.AABBBounds.height() - pagerSpace - renderStartY, pageHeight <= 0) return this._innerView.removeChild(pagerComp), !1;
32671
+ itemsContainer.getChildren().forEach((item, index) => {
32672
+ const {
32673
+ height: height
32674
+ } = item.attribute;
32675
+ pageHeight < startY + height && (startY = 0, startX += this._itemMaxWidth + spaceCol, pages += 1), index > 0 && item.setAttributes({
32676
+ x: startX,
32677
+ y: startY
32678
+ }), startY += spaceRow + height;
32679
+ }), pagerComp.setAttributes({
32680
+ total: Math.ceil(pages / maxCol),
32681
+ x: (pageWidth - pagerComp.AABBBounds.width()) / 2,
32682
+ y: maxHeight - pagerComp.AABBBounds.height()
32683
+ });
32684
+ }
32685
+ pager.defaultCurrent > 1 && (isHorizontal ? itemsContainer.setAttribute("y", -(pager.defaultCurrent - 1) * (pageHeight + spaceRow)) : itemsContainer.setAttribute("x", -(pager.defaultCurrent - 1) * (pageWidth + spaceCol)));
32908
32686
  const clipGroup = createGroup({
32909
32687
  x: 0,
32910
32688
  y: renderStartY,
@@ -32924,7 +32702,7 @@
32924
32702
  x: -(current - 1) * (pageWidth + spaceCol)
32925
32703
  }, animationDuration, animationEasing) : isHorizontal ? itemsContainer.setAttribute("y", -(current - 1) * (pageHeight + spaceRow)) : itemsContainer.setAttribute("x", -(current - 1) * (pageWidth + spaceCol));
32926
32704
  };
32927
- this._pager.addEventListener("toPrev", onPaging), this._pager.addEventListener("toNext", onPaging);
32705
+ return this._pager.addEventListener("toPrev", onPaging), this._pager.addEventListener("toNext", onPaging), !0;
32928
32706
  }
32929
32707
  _setLegendItemState(legendItem, stateName) {
32930
32708
  let keepCurrentStates = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
@@ -33454,7 +33232,7 @@
33454
33232
  }
33455
33233
  };
33456
33234
 
33457
- const regedIcons$1 = get$2();
33235
+ const regedIcons$1 = get$1();
33458
33236
  class DrillIcon {
33459
33237
  icon;
33460
33238
  constructor() {
@@ -34099,7 +33877,7 @@
34099
33877
  }
34100
33878
  function getStroke(borderColor, strokeArray) {
34101
33879
  let stroke = true;
34102
- if (strokeArray && !isArray$2(borderColor)) {
33880
+ if (strokeArray && !isArray$1(borderColor)) {
34103
33881
  stroke = strokeArray.map(stroke => {
34104
33882
  if (stroke) {
34105
33883
  return borderColor;
@@ -34110,10 +33888,10 @@
34110
33888
  else if (strokeArray) {
34111
33889
  stroke = strokeArray;
34112
33890
  }
34113
- else if (!strokeArray && !isArray$2(borderColor)) {
33891
+ else if (!strokeArray && !isArray$1(borderColor)) {
34114
33892
  stroke = borderColor;
34115
33893
  }
34116
- else if (isArray$2(borderColor)) {
33894
+ else if (isArray$1(borderColor)) {
34117
33895
  stroke = true;
34118
33896
  }
34119
33897
  return stroke;
@@ -35400,7 +35178,7 @@
35400
35178
  const ClassType = registerCharts[chartType];
35401
35179
  const headerStyle = table._getCellStyle(col, row);
35402
35180
  const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
35403
- if (isValid$3(functionalPadding)) {
35181
+ if (isValid$2(functionalPadding)) {
35404
35182
  padding = functionalPadding;
35405
35183
  }
35406
35184
  if (!cellGroup) {
@@ -35453,7 +35231,7 @@
35453
35231
  function createCellGroup(table, columnGroup, xOrigin, yOrigin, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme) {
35454
35232
  const headerStyle = table._getCellStyle(col, row);
35455
35233
  const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
35456
- if (isValid$3(functionalPadding)) {
35234
+ if (isValid$2(functionalPadding)) {
35457
35235
  padding = functionalPadding;
35458
35236
  }
35459
35237
  if (cellTheme?.text?.textAlign) {
@@ -35516,11 +35294,11 @@
35516
35294
  return cellGroup;
35517
35295
  }
35518
35296
 
35519
- const regedIcons = get$2();
35297
+ const regedIcons = get$1();
35520
35298
  function createVideoCellGroup(columnGroup, xOrigin, yOrigin, col, row, width, height, keepAspectRatio, imageAutoSizing, padding, textAlign, textBaseline, table, cellTheme) {
35521
35299
  const headerStyle = table._getCellStyle(col, row);
35522
35300
  const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
35523
- if (isValid$3(functionalPadding)) {
35301
+ if (isValid$2(functionalPadding)) {
35524
35302
  padding = functionalPadding;
35525
35303
  }
35526
35304
  if (cellTheme?.text?.textAlign) {
@@ -35768,7 +35546,7 @@
35768
35546
  let titleAngle = spec.title?.angle ?? 0;
35769
35547
  let titleTextStyle;
35770
35548
  if (spec.orient === 'left' || spec.orient === 'right') {
35771
- if (spec.title?.autoRotate && isNil$2(spec.title.angle)) {
35549
+ if (spec.title?.autoRotate && isNil$1(spec.title.angle)) {
35772
35550
  titleAngle = spec.orient === 'left' ? -90 : 90;
35773
35551
  titleTextStyle = DEFAULT_TITLE_STYLE[spec.orient];
35774
35552
  }
@@ -35887,9 +35665,9 @@
35887
35665
  }
35888
35666
  calcScales(defalutBandInnerPadding, defalutBandOuterPadding) {
35889
35667
  const { bandPadding, paddingInner, paddingOuter } = this;
35890
- const isBandPaddingArray = isArray$2(bandPadding);
35891
- const isPaddingInnerArray = isArray$2(paddingInner);
35892
- const isPaddingOuterArray = isArray$2(paddingOuter);
35668
+ const isBandPaddingArray = isArray$1(bandPadding);
35669
+ const isPaddingInnerArray = isArray$1(paddingInner);
35670
+ const isPaddingOuterArray = isArray$1(paddingOuter);
35893
35671
  for (let i = 0; i < this._scales.length; i++) {
35894
35672
  const _padding = isBandPaddingArray ? bandPadding[i] : bandPadding;
35895
35673
  const _paddingInner = isPaddingInnerArray ? paddingInner[i] : paddingInner;
@@ -40101,7 +39879,7 @@
40101
39879
  this.isRunning = !0, emit && this.target.emit("beforeParse", []);
40102
39880
  const cloneData = this.cloneParseData(data, options);
40103
39881
  if (options) {
40104
- this.parseOption = options, options = cloneDeep$1(options);
39882
+ this.parseOption = options, options = cloneDeep(options);
40105
39883
  const parserData = this.dataSet.getParser(options.type || "bytejson")(cloneData, options.options, this);
40106
39884
  this.rawData = cloneData, this.parserData = parserData, this.history && this.historyData.push(cloneData, parserData), this.latestData = parserData;
40107
39885
  } else this.parserData = cloneData, this.rawData = cloneData, this.history && this.historyData.push(cloneData), this.latestData = cloneData;
@@ -40117,7 +39895,7 @@
40117
39895
  }
40118
39896
  if (this.transformsArr.push(options), execute) {
40119
39897
  const lastTag = this.isLastTransform(options);
40120
- options = cloneDeep$1(options), this.executeTransform(options), lastTag && this.diffLastData();
39898
+ options = cloneDeep(options), this.executeTransform(options), lastTag && this.diffLastData();
40121
39899
  }
40122
39900
  }
40123
39901
  return this.sortTransform(), this.isRunning = !1, this;
@@ -40183,7 +39961,7 @@
40183
39961
  }
40184
39962
  cloneParseData(data, options) {
40185
39963
  let clone = !0;
40186
- return (data instanceof DataView || !1 === (null == options ? void 0 : options.clone)) && (clone = !1), clone ? data : cloneDeep$1(data);
39964
+ return (data instanceof DataView || !1 === (null == options ? void 0 : options.clone)) && (clone = !1), clone ? data : cloneDeep(data);
40187
39965
  }
40188
39966
  parseNewData(data, options) {
40189
39967
  this.parse(data, options || this.parseOption), this.reRunAllTransform();
@@ -40217,7 +39995,7 @@
40217
39995
  }, textSpec);
40218
39996
  };
40219
39997
  const radians = (angle) => {
40220
- if (!isValidNumber$2(angle)) {
39998
+ if (!isValidNumber$1(angle)) {
40221
39999
  return null;
40222
40000
  }
40223
40001
  return degreeToRadian$1(angle);
@@ -40354,11 +40132,11 @@
40354
40132
  };
40355
40133
  function getAxisLabelOffset(axisSpec) {
40356
40134
  let labelOffset = 0;
40357
- if (get$5(axisSpec, 'tick.visible')) {
40358
- labelOffset += get$5(axisSpec, 'tick.tickSize');
40135
+ if (get$4(axisSpec, 'tick.visible')) {
40136
+ labelOffset += get$4(axisSpec, 'tick.tickSize');
40359
40137
  }
40360
- if (get$5(axisSpec, 'label.visible')) {
40361
- labelOffset += get$5(axisSpec, 'label.space');
40138
+ if (get$4(axisSpec, 'label.visible')) {
40139
+ labelOffset += get$4(axisSpec, 'label.space');
40362
40140
  }
40363
40141
  return labelOffset;
40364
40142
  }
@@ -40402,10 +40180,10 @@
40402
40180
  }
40403
40181
  const { tickCount, forceTickCount, tickStep } = op;
40404
40182
  let scaleTicks;
40405
- if (isValid$2(tickStep)) {
40183
+ if (isValid$1(tickStep)) {
40406
40184
  scaleTicks = scale.stepTicks(tickStep);
40407
40185
  }
40408
- else if (isValid$2(forceTickCount)) {
40186
+ else if (isValid$1(forceTickCount)) {
40409
40187
  scaleTicks = scale.forceTicks(forceTickCount);
40410
40188
  }
40411
40189
  else {
@@ -40453,13 +40231,13 @@
40453
40231
  const { tickCount, forceTickCount, tickStep, labelGap = 4, axisOrientType } = op;
40454
40232
  const isHorizontal = ['bottom', 'top'].includes(axisOrientType);
40455
40233
  let scaleTicks;
40456
- if (isValid$2(tickStep)) {
40234
+ if (isValid$1(tickStep)) {
40457
40235
  scaleTicks = scale.stepTicks(tickStep);
40458
40236
  }
40459
- else if (isValid$2(forceTickCount)) {
40237
+ else if (isValid$1(forceTickCount)) {
40460
40238
  scaleTicks = scale.forceTicks(forceTickCount);
40461
40239
  }
40462
- else if (isValid$2(tickCount)) {
40240
+ else if (isValid$1(tickCount)) {
40463
40241
  scaleTicks = scale.ticks(tickCount);
40464
40242
  }
40465
40243
  else {
@@ -40556,13 +40334,13 @@
40556
40334
  return convertDomainToTickData(scale.domain(), op);
40557
40335
  }
40558
40336
  let scaleTicks;
40559
- if (isValid$2(tickStep)) {
40337
+ if (isValid$1(tickStep)) {
40560
40338
  scaleTicks = scale.stepTicks(tickStep);
40561
40339
  }
40562
- else if (isValid$2(forceTickCount)) {
40340
+ else if (isValid$1(forceTickCount)) {
40563
40341
  scaleTicks = scale.forceTicks(forceTickCount);
40564
40342
  }
40565
- else if (isValid$2(tickCount)) {
40343
+ else if (isValid$1(tickCount)) {
40566
40344
  scaleTicks = scale.ticks(tickCount);
40567
40345
  }
40568
40346
  else {
@@ -40664,13 +40442,13 @@
40664
40442
  if (this.niceType === 'accurateFirst') {
40665
40443
  tickCount = Math.max(10, tickCount);
40666
40444
  }
40667
- if (isNil$2(this.domain?.min) && isNil$2(this.domain?.max)) {
40445
+ if (isNil$1(this.domain?.min) && isNil$1(this.domain?.max)) {
40668
40446
  this.nice && this._scale.nice(tickCount);
40669
40447
  }
40670
- else if (isValid$2(this.domain?.min) && isNil$2(this.domain?.max)) {
40448
+ else if (isValid$1(this.domain?.min) && isNil$1(this.domain?.max)) {
40671
40449
  this.nice && this._scale.niceMax(tickCount);
40672
40450
  }
40673
- else if (isNil$2(this.domain?.min) && isValid$2(this.domain?.max)) {
40451
+ else if (isNil$1(this.domain?.min) && isValid$1(this.domain?.max)) {
40674
40452
  this.nice && this._scale.niceMin(tickCount);
40675
40453
  }
40676
40454
  }
@@ -40698,10 +40476,10 @@
40698
40476
  }
40699
40477
  const domainMin = domain[0];
40700
40478
  const domainMax = domain[domain.length - 1];
40701
- if (isValid$2(this.expand.min)) {
40479
+ if (isValid$1(this.expand.min)) {
40702
40480
  domain[0] = domainMin - (domainMax - domainMin) * this.expand.min;
40703
40481
  }
40704
- if (isValid$2(this.expand.max)) {
40482
+ if (isValid$1(this.expand.max)) {
40705
40483
  domain[domain.length - 1] = domainMax + (domainMax - domainMin) * this.expand.max;
40706
40484
  }
40707
40485
  }
@@ -40736,13 +40514,13 @@
40736
40514
  if (this.niceType === 'accurateFirst') {
40737
40515
  tickCount = Math.max(10, tickCount);
40738
40516
  }
40739
- if (isNil$2(this.domain?.min) && isNil$2(this.domain?.max)) {
40517
+ if (isNil$1(this.domain?.min) && isNil$1(this.domain?.max)) {
40740
40518
  this._scale.nice(tickCount);
40741
40519
  }
40742
- else if (isValid$2(this.domain?.min) && isNil$2(this.domain?.max)) {
40520
+ else if (isValid$1(this.domain?.min) && isNil$1(this.domain?.max)) {
40743
40521
  this._scale.niceMax(tickCount);
40744
40522
  }
40745
- else if (isNil$2(this.domain?.min) && isValid$2(this.domain?.max)) {
40523
+ else if (isNil$1(this.domain?.min) && isValid$1(this.domain?.max)) {
40746
40524
  this._scale.niceMin(tickCount);
40747
40525
  }
40748
40526
  }
@@ -40784,8 +40562,8 @@
40784
40562
  return;
40785
40563
  }
40786
40564
  const { min, max } = this.domain;
40787
- isValid$2(min) && (domain[0] = min);
40788
- isValid$2(max) && (domain[1] = max);
40565
+ isValid$1(min) && (domain[0] = min);
40566
+ isValid$1(max) && (domain[1] = max);
40789
40567
  }
40790
40568
  setZero(zero) {
40791
40569
  if (this.zero !== zero) {
@@ -41028,12 +40806,12 @@
41028
40806
  const { width, height } = this.getLayoutRect();
41029
40807
  let newRange = [0, 0];
41030
40808
  if (isXAxis(this.orient)) {
41031
- if (isValidNumber$2(width)) {
40809
+ if (isValidNumber$1(width)) {
41032
40810
  newRange = [0, width];
41033
40811
  }
41034
40812
  }
41035
40813
  else {
41036
- if (isValidNumber$2(height)) {
40814
+ if (isValidNumber$1(height)) {
41037
40815
  newRange = [height, 0];
41038
40816
  }
41039
40817
  }
@@ -41041,16 +40819,16 @@
41041
40819
  }
41042
40820
  setLayoutStartPosition(pos) {
41043
40821
  let { x, y } = pos;
41044
- if (isValidNumber$2(x)) {
40822
+ if (isValidNumber$1(x)) {
41045
40823
  x += Number(this.orient === 'left') * this.getLayoutRect().width;
41046
40824
  }
41047
- if (isValidNumber$2(y)) {
40825
+ if (isValidNumber$1(y)) {
41048
40826
  y += Number(this.orient === 'top') * this.getLayoutRect().height;
41049
40827
  }
41050
40828
  return { x, y };
41051
40829
  }
41052
40830
  _getTitleLimit(isX) {
41053
- if (this.option.title.visible && isNil$2(this.option.title.style?.maxLineWidth)) {
40831
+ if (this.option.title.visible && isNil$1(this.option.title.style?.maxLineWidth)) {
41054
40832
  const angle = this.option.title.style?.angle || 0;
41055
40833
  if (isX) {
41056
40834
  const width = this.getLayoutRect().width;
@@ -43900,11 +43678,11 @@
43900
43678
  const cellGroup = this.getCell(col, row);
43901
43679
  const text = cellGroup.getChildByName('text', true);
43902
43680
  if (text) {
43903
- const textAttributeStr = isArray$2(text.attribute.text)
43681
+ const textAttributeStr = isArray$1(text.attribute.text)
43904
43682
  ? text.attribute.text.join('')
43905
43683
  : text.attribute.text;
43906
43684
  let cacheStr = '';
43907
- if (isString$2(text.cache.clipedText)) {
43685
+ if (isString$1(text.cache.clipedText)) {
43908
43686
  cacheStr = text.cache.clipedText;
43909
43687
  }
43910
43688
  else {
@@ -45219,16 +44997,16 @@
45219
44997
  row = cellAddress.row;
45220
44998
  }
45221
44999
  }
45222
- if (isValid$3(col) && isValid$3(row) && this.table.isCellRangeEqual(colNow, rowNow, col, row)) {
45000
+ if (isValid$2(col) && isValid$2(row) && this.table.isCellRangeEqual(colNow, rowNow, col, row)) {
45223
45001
  const headerC = this.table._getHeaderLayoutMap(col ?? colNow, row ?? rowNow);
45224
45002
  const dropDownMenu = headerC.dropDownMenu || this.table.globalDropDownMenu;
45225
45003
  if (dropDownMenu) {
45226
45004
  for (let i = 0; i < dropDownMenu.length; i++) {
45227
45005
  const item = dropDownMenu[i];
45228
- if (isObject$4(item) && (item.menuKey || item.text) === (menuKey || '') && i === index) {
45006
+ if (isObject$3(item) && (item.menuKey || item.text) === (menuKey || '') && i === index) {
45229
45007
  return true;
45230
45008
  }
45231
- else if (isString$3(item) && item === menuKey && i === index) {
45009
+ else if (isString$2(item) && item === menuKey && i === index) {
45232
45010
  return true;
45233
45011
  }
45234
45012
  }
@@ -45544,8 +45322,8 @@
45544
45322
  if (table.hasListeners(TABLE_EVENT_TYPE.MOUSEENTER_CELL)) {
45545
45323
  const cellGoup = eventArgsSet?.eventArgs?.target;
45546
45324
  if (cellGoup?.role === 'cell' &&
45547
- isValid$2(cellGoup.col) &&
45548
- isValid$2(cellGoup.row) &&
45325
+ isValid$1(cellGoup.col) &&
45326
+ isValid$1(cellGoup.row) &&
45549
45327
  (cellGoup.col !== table.stateManeger.hover.cellPos.col || cellGoup.row !== table.stateManeger.hover.cellPos.row)) {
45550
45328
  table.fireListeners(TABLE_EVENT_TYPE.MOUSEENTER_CELL, {
45551
45329
  col: cellGoup.col,
@@ -46034,7 +45812,7 @@
46034
45812
  handler.on(table.getElement(), 'copy', (e) => {
46035
45813
  if (table.keyboardOptions?.copySelected) {
46036
45814
  const data = table.getCopyValue();
46037
- if (isValid$2(data)) {
45815
+ if (isValid$1(data)) {
46038
45816
  e.preventDefault();
46039
45817
  if (browser.IE) {
46040
45818
  window.clipboardData.setData('Text', data);
@@ -46579,7 +46357,7 @@
46579
46357
  _table;
46580
46358
  constructor(_table) {
46581
46359
  this._table = _table;
46582
- const regedIcons = get$2();
46360
+ const regedIcons = get$1();
46583
46361
  this.expandIcon = regedIcons[InternalIconName.expandIconName];
46584
46362
  this.collapseIcon = regedIcons[InternalIconName.collapseIconName];
46585
46363
  }
@@ -46601,7 +46379,7 @@
46601
46379
  else {
46602
46380
  iconResults = iconDefine;
46603
46381
  }
46604
- const regedIcons = get$2();
46382
+ const regedIcons = get$1();
46605
46383
  const addIcon = (columnIcon) => {
46606
46384
  let icon;
46607
46385
  if (typeof columnIcon === 'string') {
@@ -46831,7 +46609,7 @@
46831
46609
  row = cellAddress.row;
46832
46610
  }
46833
46611
  }
46834
- if (isValid$3(col) && isValid$3(row) && cellInRange(cellRange, col, row)) {
46612
+ if (isValid$2(col) && isValid$2(row) && cellInRange(cellRange, col, row)) {
46835
46613
  if (menuKeyCurrent === menuKey) {
46836
46614
  return true;
46837
46615
  }
@@ -47317,7 +47095,7 @@
47317
47095
  _table;
47318
47096
  constructor(_table) {
47319
47097
  this._table = _table;
47320
- const regedIcons = get$2();
47098
+ const regedIcons = get$1();
47321
47099
  this.freezeIcon = regedIcons[InternalIconName.freezeIconName];
47322
47100
  this.frozenIcon = regedIcons[InternalIconName.frozenIconName];
47323
47101
  this.frozenCurrentIcon = regedIcons[InternalIconName.frozenCurrentIconName];
@@ -47403,7 +47181,7 @@
47403
47181
  else {
47404
47182
  headerIconStrs = headerIcon;
47405
47183
  }
47406
- const regedIcons = get$2();
47184
+ const regedIcons = get$1();
47407
47185
  const addIcon = (headerIcon) => {
47408
47186
  let icon;
47409
47187
  if (typeof headerIcon === 'string') {
@@ -48696,7 +48474,7 @@
48696
48474
  attrs.pager = pager;
48697
48475
  if (background.visible && !isEmpty$1(background.style)) {
48698
48476
  merge$3(attrs, background.style);
48699
- if (isValid$2(background.padding)) {
48477
+ if (isValid$1(background.padding)) {
48700
48478
  attrs.padding = background.padding;
48701
48479
  }
48702
48480
  }
@@ -48713,7 +48491,7 @@
48713
48491
  legendComponent;
48714
48492
  constructor(option, table) {
48715
48493
  this.table = table;
48716
- this.option = cloneDeep$2(option);
48494
+ this.option = cloneDeep$1(option);
48717
48495
  this.orient = option.orient ?? 'left';
48718
48496
  this.visible = option.visible ?? true;
48719
48497
  this.position = option.position ?? 'middle';
@@ -48823,17 +48601,17 @@
48823
48601
  initEvent() {
48824
48602
  if (this.legendComponent) {
48825
48603
  this.legendComponent.addEventListener(LegendEvent.legendItemClick, (e) => {
48826
- const selectedData = get$5(e, 'detail.currentSelected');
48604
+ const selectedData = get$4(e, 'detail.currentSelected');
48827
48605
  this.table.scenegraph.updateNextFrame();
48828
48606
  this.table.fireListeners(TABLE_EVENT_TYPE.LEGEND_ITEM_CLICK, { model: this, value: selectedData, event: e });
48829
48607
  });
48830
48608
  this.legendComponent.addEventListener(LegendEvent.legendItemHover, (e) => {
48831
- const detail = get$5(e, 'detail');
48609
+ const detail = get$4(e, 'detail');
48832
48610
  this.table.scenegraph.updateNextFrame();
48833
48611
  this.table.fireListeners(TABLE_EVENT_TYPE.LEGEND_ITEM_HOVER, { model: this, value: detail, event: e });
48834
48612
  });
48835
48613
  this.legendComponent.addEventListener(LegendEvent.legendItemUnHover, (e) => {
48836
- const detail = get$5(e, 'detail');
48614
+ const detail = get$4(e, 'detail');
48837
48615
  this.table.scenegraph.updateNextFrame();
48838
48616
  this.table.fireListeners(TABLE_EVENT_TYPE.LEGEND_ITEM_UNHOVER, { model: this, value: detail, event: e });
48839
48617
  });
@@ -48987,7 +48765,7 @@
48987
48765
  return TABLE_EVENT_TYPE;
48988
48766
  }
48989
48767
  options;
48990
- version = "0.9.2-alpha.2";
48768
+ version = "0.9.2-alpha.3";
48991
48769
  pagerConf;
48992
48770
  id = `VTable${Date.now()}`;
48993
48771
  headerStyleCache;
@@ -50712,10 +50490,10 @@
50712
50490
  return {
50713
50491
  textAlign: theme.text.textAlign,
50714
50492
  textBaseline: theme.text.textBaseline,
50715
- bgColor: isBoolean$2(theme.group.fill)
50493
+ bgColor: isBoolean$1(theme.group.fill)
50716
50494
  ? getProp('bgColor', actStyle, col, row, this)
50717
50495
  : theme.group.fill,
50718
- color: isBoolean$2(theme.text.fill) ? getProp('color', actStyle, col, row, this) : theme.text.fill,
50496
+ color: isBoolean$1(theme.text.fill) ? getProp('color', actStyle, col, row, this) : theme.text.fill,
50719
50497
  fontFamily: theme.text.fontFamily,
50720
50498
  fontSize: theme.text.fontSize,
50721
50499
  fontWeight: theme.text.fontWeight,
@@ -50725,7 +50503,7 @@
50725
50503
  autoWrapText: autoWrapText ?? false,
50726
50504
  lineClamp: lineClamp ?? 'auto',
50727
50505
  textOverflow,
50728
- borderColor: isBoolean$2(theme.group.stroke)
50506
+ borderColor: isBoolean$1(theme.group.stroke)
50729
50507
  ? getProp('borderColor', actStyle, col, row, this)
50730
50508
  : theme.group.stroke,
50731
50509
  borderLineWidth: theme.group.lineWidth,
@@ -50775,12 +50553,12 @@
50775
50553
  }
50776
50554
  scrollToCell(cellAddr) {
50777
50555
  const drawRange = this.getDrawRange();
50778
- if (isValid$3(cellAddr.col) && cellAddr.col >= this.frozenColCount) {
50556
+ if (isValid$2(cellAddr.col) && cellAddr.col >= this.frozenColCount) {
50779
50557
  const frozenWidth = this.getFrozenColsWidth();
50780
50558
  const left = this.getColsWidth(0, cellAddr.col - 1);
50781
50559
  this.scrollLeft = Math.min(left - frozenWidth, this.getAllColsWidth() - drawRange.width);
50782
50560
  }
50783
- if (isValid$3(cellAddr.row) && cellAddr.row >= this.frozenRowCount) {
50561
+ if (isValid$2(cellAddr.row) && cellAddr.row >= this.frozenRowCount) {
50784
50562
  const frozenHeight = this.getFrozenRowsHeight();
50785
50563
  const top = this.getRowsHeight(0, cellAddr.row - 1);
50786
50564
  this.scrollTop = Math.min(top - frozenHeight, this.getAllRowsHeight() - drawRange.height);
@@ -51749,9 +51527,9 @@
51749
51527
  this.pagerConf = options.pagerConf;
51750
51528
  internalProps.sortState = options.sortState;
51751
51529
  internalProps.columns = options.columns
51752
- ? cloneDeep$3(options.columns)
51530
+ ? cloneDeep$2(options.columns)
51753
51531
  : options.header
51754
- ? cloneDeep$3(options.header)
51532
+ ? cloneDeep$2(options.header)
51755
51533
  : [];
51756
51534
  this.showHeader = options.showHeader ?? true;
51757
51535
  this.transpose = options.transpose ?? false;
@@ -51867,9 +51645,9 @@
51867
51645
  this.pagerConf = options.pagerConf;
51868
51646
  this.showHeader = options.showHeader ?? true;
51869
51647
  internalProps.columns = options.columns
51870
- ? cloneDeep$3(options.columns)
51648
+ ? cloneDeep$2(options.columns)
51871
51649
  : options.header
51872
- ? cloneDeep$3(options.header)
51650
+ ? cloneDeep$2(options.header)
51873
51651
  : [];
51874
51652
  this.transpose = options.transpose ?? false;
51875
51653
  this.refreshHeader();
@@ -52007,7 +51785,7 @@
52007
51785
  targetRecordIndex = i;
52008
51786
  }
52009
51787
  }
52010
- if (isValid$3(targetRecordIndex)) {
51788
+ if (isValid$2(targetRecordIndex)) {
52011
51789
  break;
52012
51790
  }
52013
51791
  }
@@ -52023,29 +51801,29 @@
52023
51801
  if (colObj) {
52024
51802
  const layoutRange = layoutMap.getBodyLayoutRangeById(colObj.id);
52025
51803
  let startRow;
52026
- if (isValid$3(index)) {
51804
+ if (isValid$2(index)) {
52027
51805
  startRow = layoutMap.getRecordStartRowByRecordIndex(index);
52028
51806
  }
52029
51807
  if (this.transpose) {
52030
51808
  return {
52031
51809
  start: {
52032
51810
  row: layoutRange.start.row,
52033
- col: isValid$3(startRow) ? startRow + layoutRange.start.col : undefined
51811
+ col: isValid$2(startRow) ? startRow + layoutRange.start.col : undefined
52034
51812
  },
52035
51813
  end: {
52036
51814
  row: layoutRange.end.row,
52037
- col: isValid$3(startRow) ? startRow + layoutRange.end.col : undefined
51815
+ col: isValid$2(startRow) ? startRow + layoutRange.end.col : undefined
52038
51816
  }
52039
51817
  };
52040
51818
  }
52041
51819
  return {
52042
51820
  start: {
52043
51821
  col: layoutRange.start.col,
52044
- row: isValid$3(startRow) ? startRow + layoutRange.start.row : undefined
51822
+ row: isValid$2(startRow) ? startRow + layoutRange.start.row : undefined
52045
51823
  },
52046
51824
  end: {
52047
51825
  col: layoutRange.end.col,
52048
- row: isValid$3(startRow) ? startRow + layoutRange.end.row : undefined
51826
+ row: isValid$2(startRow) ? startRow + layoutRange.end.row : undefined
52049
51827
  }
52050
51828
  };
52051
51829
  }
@@ -52440,7 +52218,7 @@
52440
52218
  this._headerObjects[id] = cell;
52441
52219
  }
52442
52220
  colIndex = 0;
52443
- this.indicatorsAsCol = !isValid$3(this.rowDimensionKeys.find(key => key === this.indicatorDimensionKey));
52221
+ this.indicatorsAsCol = !isValid$2(this.rowDimensionKeys.find(key => key === this.indicatorDimensionKey));
52444
52222
  this._rowHeaderCellIds = transpose(this._rowHeaderCellIds);
52445
52223
  this._headerObjectMap = this._headerObjects.reduce((o, e) => {
52446
52224
  o[e.id] = e;
@@ -52513,7 +52291,7 @@
52513
52291
  if (indicatorInfo.customRender) {
52514
52292
  hd.customRender = indicatorInfo.customRender;
52515
52293
  }
52516
- if (!isValid$3(this._indicators.find(indicator => indicator.indicatorKey === indicatorInfo.indicatorKey))) {
52294
+ if (!isValid$2(this._indicators.find(indicator => indicator.indicatorKey === indicatorInfo.indicatorKey))) {
52517
52295
  this._indicators.push({
52518
52296
  id: ++seqId,
52519
52297
  indicatorKey: indicatorInfo.indicatorKey,
@@ -52536,7 +52314,7 @@
52536
52314
  }
52537
52315
  }
52538
52316
  else if (hd.indicatorKey) {
52539
- if (!isValid$3(this._indicators.find(indicator => indicator.indicatorKey === hd.indicatorKey))) {
52317
+ if (!isValid$2(this._indicators.find(indicator => indicator.indicatorKey === hd.indicatorKey))) {
52540
52318
  this._indicators.push({
52541
52319
  id: ++seqId,
52542
52320
  indicatorKey: hd.indicatorKey,
@@ -53302,8 +53080,8 @@
53302
53080
  let isCol = false;
53303
53081
  for (let j = 0; j < colArr.length; j++) {
53304
53082
  const dimension = colArr[j];
53305
- if (((isValid$3(highlightDimension.dimensionKey) && dimension.dimensionKey === highlightDimension.dimensionKey) ||
53306
- (isValid$3(highlightDimension.indicatorKey) && dimension.indicatorKey === highlightDimension.indicatorKey)) &&
53083
+ if (((isValid$2(highlightDimension.dimensionKey) && dimension.dimensionKey === highlightDimension.dimensionKey) ||
53084
+ (isValid$2(highlightDimension.indicatorKey) && dimension.indicatorKey === highlightDimension.indicatorKey)) &&
53307
53085
  dimension.value === highlightDimension.value) {
53308
53086
  colArr = dimension.children;
53309
53087
  colDimension = dimension;
@@ -53316,8 +53094,8 @@
53316
53094
  }
53317
53095
  for (let k = 0; k < rowArr.length; k++) {
53318
53096
  const dimension = rowArr[k];
53319
- if (((isValid$3(highlightDimension.dimensionKey) && dimension.dimensionKey === highlightDimension.dimensionKey) ||
53320
- (isValid$3(highlightDimension.indicatorKey) && dimension.indicatorKey === highlightDimension.indicatorKey)) &&
53097
+ if (((isValid$2(highlightDimension.dimensionKey) && dimension.dimensionKey === highlightDimension.dimensionKey) ||
53098
+ (isValid$2(highlightDimension.indicatorKey) && dimension.indicatorKey === highlightDimension.indicatorKey)) &&
53321
53099
  dimension.value === highlightDimension.value) {
53322
53100
  rowArr = dimension.children;
53323
53101
  rowDimension = dimension;
@@ -53411,8 +53189,8 @@
53411
53189
  }
53412
53190
  else if (this.isRowHeader(source.col, source.row)) {
53413
53191
  if (this.rowHierarchyType === 'tree') {
53414
- const sourceRowHeaderPaths = cloneDeep$3(this.getCellHeaderPathsWidthTreeNode(source.col, source.row).rowHeaderPaths);
53415
- const targetRowHeaderPaths = cloneDeep$3(this.getCellHeaderPathsWidthTreeNode(target.col, target.row).rowHeaderPaths);
53192
+ const sourceRowHeaderPaths = cloneDeep$2(this.getCellHeaderPathsWidthTreeNode(source.col, source.row).rowHeaderPaths);
53193
+ const targetRowHeaderPaths = cloneDeep$2(this.getCellHeaderPathsWidthTreeNode(target.col, target.row).rowHeaderPaths);
53416
53194
  sourceRowHeaderPaths.pop();
53417
53195
  targetRowHeaderPaths.pop();
53418
53196
  if (sourceRowHeaderPaths.length <= targetRowHeaderPaths.length) {
@@ -53542,10 +53320,10 @@
53542
53320
  const colDimension = colHeaderPaths[i];
53543
53321
  for (let j = 0; j < colArr.length; j++) {
53544
53322
  const dimension = colArr[j];
53545
- if ((!isValid$3(colDimension.indicatorKey) &&
53323
+ if ((!isValid$2(colDimension.indicatorKey) &&
53546
53324
  dimension.dimensionKey === colDimension.dimensionKey &&
53547
53325
  dimension.value === colDimension.value) ||
53548
- (isValid$3(colDimension.indicatorKey) && dimension.indicatorKey === colDimension.indicatorKey)) {
53326
+ (isValid$2(colDimension.indicatorKey) && dimension.indicatorKey === colDimension.indicatorKey)) {
53549
53327
  colArr = dimension.children;
53550
53328
  if (needLowestLevel && !colArr) {
53551
53329
  colDimensionFinded = dimension;
@@ -53563,10 +53341,10 @@
53563
53341
  const rowDimension = rowHeaderPaths[i];
53564
53342
  for (let j = 0; j < rowArr.length; j++) {
53565
53343
  const dimension = rowArr[j];
53566
- if (((!isValid$3(rowDimension.indicatorKey) &&
53344
+ if (((!isValid$2(rowDimension.indicatorKey) &&
53567
53345
  dimension.dimensionKey === rowDimension.dimensionKey &&
53568
53346
  dimension.value === rowDimension.value) ||
53569
- (isValid$3(rowDimension.indicatorKey) && dimension.indicatorKey === rowDimension.indicatorKey)) &&
53347
+ (isValid$2(rowDimension.indicatorKey) && dimension.indicatorKey === rowDimension.indicatorKey)) &&
53570
53348
  dimension.value === rowDimension.value) {
53571
53349
  rowArr = dimension.children;
53572
53350
  if (needLowestLevel && !rowArr) {
@@ -53602,7 +53380,7 @@
53602
53380
  col += startInTotal;
53603
53381
  defaultRow = this.columnHeaderTitle ? level + 1 : level;
53604
53382
  }
53605
- if (isValid$3(col) || isValid$3(row)) {
53383
+ if (isValid$2(col) || isValid$2(row)) {
53606
53384
  return { col: col ?? defaultCol, row: row ?? defaultRow };
53607
53385
  }
53608
53386
  return undefined;
@@ -53861,7 +53639,7 @@
53861
53639
  function getChartSpec(col, row, layout) {
53862
53640
  let chartSpec = layout.getRawChartSpec(col, row);
53863
53641
  if (chartSpec) {
53864
- chartSpec = cloneDeep$2(chartSpec);
53642
+ chartSpec = cloneDeep$1(chartSpec);
53865
53643
  chartSpec.axes = layout.getChartAxes(col, row);
53866
53644
  chartSpec.padding = 0;
53867
53645
  return chartSpec;
@@ -54862,7 +54640,7 @@
54862
54640
  }
54863
54641
  for (let j = 0; j < columnTree.length; j++) {
54864
54642
  const dimension = columnTree[j];
54865
- if (!isValid$3(colDimension.indicatorKey) &&
54643
+ if (!isValid$2(colDimension.indicatorKey) &&
54866
54644
  dimension.dimensionKey === colDimension.dimensionKey &&
54867
54645
  dimension.value === colDimension.value) {
54868
54646
  columnTree = dimension.children;
@@ -54884,7 +54662,7 @@
54884
54662
  }
54885
54663
  for (let j = 0; j < rowTree.length; j++) {
54886
54664
  const dimension = rowTree[j];
54887
- if (!isValid$3(rowDimension.indicatorKey) &&
54665
+ if (!isValid$2(rowDimension.indicatorKey) &&
54888
54666
  dimension.dimensionKey === rowDimension.dimensionKey &&
54889
54667
  dimension.value === rowDimension.value) {
54890
54668
  rowTree = dimension.children;
@@ -54903,7 +54681,7 @@
54903
54681
  row =
54904
54682
  (!this.indicatorsAsCol ? row * this.indicatorKeys.length + this.indicatorKeys.indexOf(toFindIndicator) : row) +
54905
54683
  this.columnHeaderLevelCount;
54906
- if (isValid$3(col) || isValid$3(row)) {
54684
+ if (isValid$2(col) || isValid$2(row)) {
54907
54685
  return { col: col ?? defaultCol, row: row ?? defaultRow };
54908
54686
  }
54909
54687
  return undefined;
@@ -55561,7 +55339,7 @@
55561
55339
  }
55562
55340
 
55563
55341
  function isValidAlignDomain(domain) {
55564
- return domain.length === 2 && isValidNumber$2(domain[0]) && isValidNumber$2(domain[1]) && domain[1] >= domain[0];
55342
+ return domain.length === 2 && isValidNumber$1(domain[0]) && isValidNumber$1(domain[1]) && domain[1] >= domain[0];
55565
55343
  }
55566
55344
  function getScaleInfo(domain) {
55567
55345
  const total = domain[1] - domain[0];
@@ -56001,7 +55779,7 @@
56001
55779
  }
56002
55780
  if (aggRule?.field) {
56003
55781
  if (typeof aggRule?.field === 'string') {
56004
- isValid$3(record[aggRule?.field]) && this.tree[flatRowKey]?.[flatColKey]?.[i].push(record);
55782
+ isValid$2(record[aggRule?.field]) && this.tree[flatRowKey]?.[flatColKey]?.[i].push(record);
56005
55783
  }
56006
55784
  else {
56007
55785
  const isPush = aggRule?.field.find((field) => {
@@ -56011,7 +55789,7 @@
56011
55789
  }
56012
55790
  }
56013
55791
  else {
56014
- isValid$3(record[this.indicatorKeys[i]]) && this.tree[flatRowKey]?.[flatColKey]?.[i].push(record);
55792
+ isValid$2(record[this.indicatorKeys[i]]) && this.tree[flatRowKey]?.[flatColKey]?.[i].push(record);
56015
55793
  }
56016
55794
  }
56017
55795
  }
@@ -56414,7 +56192,7 @@
56414
56192
  const indicatorsToAlign = [];
56415
56193
  for (let i = 0; i < this.aggregationRules.length; i++) {
56416
56194
  const rule = this.aggregationRules[i];
56417
- if (isArray$2(rule.field) && rule.field.length === 2) {
56195
+ if (isArray$1(rule.field) && rule.field.length === 2) {
56418
56196
  indicatorsToAlign.push(rule.field);
56419
56197
  }
56420
56198
  }
@@ -56903,7 +56681,7 @@
56903
56681
  this.setCustomStateNameToSpec();
56904
56682
  this.internalProps.dataConfig = { isPivotChart: true };
56905
56683
  this.internalProps.enableDataAnalysis = true;
56906
- this._axes = isArray$2(options.axes) ? options.axes : [];
56684
+ this._axes = isArray$1(options.axes) ? options.axes : [];
56907
56685
  if (this.internalProps.enableDataAnalysis && (options.rows || options.columns)) {
56908
56686
  const rowKeys = options.rows.reduce((keys, rowObj) => {
56909
56687
  if (typeof rowObj === 'string') {
@@ -57759,14 +57537,14 @@
57759
57537
  this.justifyContent = options.justifyContent || 'start';
57760
57538
  this.alignItems = options.alignItems || 'start';
57761
57539
  this.alignContent = options.alignContent || 'start';
57762
- if (isNumber$3(options.width)) {
57540
+ if (isNumber$2(options.width)) {
57763
57541
  this.width = options.width;
57764
57542
  }
57765
57543
  else {
57766
57544
  this._widthObj = options.width;
57767
57545
  this.needCalcSize = true;
57768
57546
  }
57769
- if (isNumber$3(options.height)) {
57547
+ if (isNumber$2(options.height)) {
57770
57548
  this.height = options.height;
57771
57549
  }
57772
57550
  else {
@@ -57983,8 +57761,8 @@
57983
57761
  constructor(options) {
57984
57762
  super(options);
57985
57763
  this.iconName = options.iconName;
57986
- if (isString$3(this.iconName)) {
57987
- const regedIcons = get$2();
57764
+ if (isString$2(this.iconName)) {
57765
+ const regedIcons = get$1();
57988
57766
  const cache = regedIcons[this.iconName];
57989
57767
  if (cache) {
57990
57768
  this.cache = cache;
@@ -58093,9 +57871,9 @@
58093
57871
  percentCalc: percentCalc
58094
57872
  });
58095
57873
 
58096
- const version = "0.9.2-alpha.2";
57874
+ const version = "0.9.2-alpha.3";
58097
57875
  function getIcons() {
58098
- return get$2();
57876
+ return get$1();
58099
57877
  }
58100
57878
  function clearGlobal() {
58101
57879
  clearAll();