@yuneta/gobj-ui 7.32.6 → 7.32.7
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/README.md +16 -1
- package/dist/gobj-ui.cjs.js +125 -122
- package/dist/gobj-ui.es.js +125 -122
- package/package.json +1 -1
- package/src/c_yui_nav.js +12 -6
- package/src/c_yui_treedb_topics.js +1 -3
- package/src/nav_icon_size.wiring.test.js +94 -0
- package/src/tabulator_css.test.js +88 -32
- package/src/yui_toolbar.js +11 -1
package/dist/gobj-ui.es.js
CHANGED
|
@@ -16574,11 +16574,20 @@ function register_c_yui_uplot() {
|
|
|
16574
16574
|
* glyph reads as a marker rather than as a second word. The
|
|
16575
16575
|
* app BAR is a different band and keeps its own, bigger size
|
|
16576
16576
|
* (`.yui-toolbar-item .icon`, 1.35rem on 44px items).
|
|
16577
|
+
*
|
|
16578
|
+
* It is also the size of the glyphs of the TABS and of the
|
|
16579
|
+
* MENU entries (C_YUI_NAV, the topic tabs of
|
|
16580
|
+
* C_YUI_TREEDB_TOPICS), and of the paginator of a table on a
|
|
16581
|
+
* phone (tabulator.css). Up to 7.32.6 a tab took the 16px of
|
|
16582
|
+
* its text, and right under a toolbar its icons read as
|
|
16583
|
+
* smaller than the toolbar's. The rows of a tab or a menu
|
|
16584
|
+
* entry are 24px of line, so the glyph changes no height.
|
|
16577
16585
|
************************************************************/
|
|
16578
16586
|
var YUI_TOOLBAR_ICON_SIZE = "1.25rem";
|
|
16579
16587
|
function yui_toolbar_icon(icon_class, extra_style) {
|
|
16580
16588
|
return ["i", {
|
|
16581
16589
|
class: icon_class,
|
|
16590
|
+
"aria-hidden": "true",
|
|
16582
16591
|
style: `font-size:${YUI_TOOLBAR_ICON_SIZE}; line-height:1; color:inherit;` + (extra_style || "")
|
|
16583
16592
|
}];
|
|
16584
16593
|
}
|
|
@@ -17247,7 +17256,7 @@ async function yui_graph_center_on(graph, node_id) {
|
|
|
17247
17256
|
function yui_graph_refresh_item(gobj, wide) {
|
|
17248
17257
|
return camera_button(gobj, "yi-arrows-rotate", "EV_REFRESH", "refresh", wide);
|
|
17249
17258
|
}
|
|
17250
|
-
//
|
|
17259
|
+
// node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
17251
17260
|
function _typeof(o) {
|
|
17252
17261
|
"@babel/helpers - typeof";
|
|
17253
17262
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -17256,7 +17265,7 @@ function _typeof(o) {
|
|
|
17256
17265
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
17257
17266
|
}, _typeof(o);
|
|
17258
17267
|
}
|
|
17259
|
-
//
|
|
17268
|
+
// node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
17260
17269
|
function toPrimitive(t, e) {
|
|
17261
17270
|
if ("object" != _typeof(t) || !t) return t;
|
|
17262
17271
|
var r;
|
|
@@ -17267,12 +17276,12 @@ function toPrimitive(t, e) {
|
|
|
17267
17276
|
}
|
|
17268
17277
|
return ("string" === e ? String : Number)(t);
|
|
17269
17278
|
}
|
|
17270
|
-
//
|
|
17279
|
+
// node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
17271
17280
|
function toPropertyKey(t) {
|
|
17272
17281
|
var i = toPrimitive(t, "string");
|
|
17273
17282
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
17274
17283
|
}
|
|
17275
|
-
//
|
|
17284
|
+
// node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17276
17285
|
function _defineProperty(e, r, t) {
|
|
17277
17286
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
17278
17287
|
value: t,
|
|
@@ -17281,7 +17290,7 @@ function _defineProperty(e, r, t) {
|
|
|
17281
17290
|
writable: !0
|
|
17282
17291
|
}) : e[r] = t, e;
|
|
17283
17292
|
}
|
|
17284
|
-
//
|
|
17293
|
+
// node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
17285
17294
|
function ownKeys(e, r) {
|
|
17286
17295
|
var t = Object.keys(e);
|
|
17287
17296
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -17303,11 +17312,11 @@ function _objectSpread2(e) {
|
|
|
17303
17312
|
}
|
|
17304
17313
|
return e;
|
|
17305
17314
|
}
|
|
17306
|
-
//
|
|
17315
|
+
// node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
17307
17316
|
function _classCallCheck(a, n) {
|
|
17308
17317
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
17309
17318
|
}
|
|
17310
|
-
//
|
|
17319
|
+
// node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
17311
17320
|
function _defineProperties(e, r) {
|
|
17312
17321
|
for (var t = 0; t < r.length; t++) {
|
|
17313
17322
|
var o = r[t];
|
|
@@ -17317,21 +17326,21 @@ function _defineProperties(e, r) {
|
|
|
17317
17326
|
function _createClass(e, r, t) {
|
|
17318
17327
|
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
17319
17328
|
}
|
|
17320
|
-
//
|
|
17329
|
+
// node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
17321
17330
|
function _arrayLikeToArray(r, a) {
|
|
17322
17331
|
(null == a || a > r.length) && (a = r.length);
|
|
17323
17332
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
17324
17333
|
return n;
|
|
17325
17334
|
}
|
|
17326
|
-
//
|
|
17335
|
+
// node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
17327
17336
|
function _arrayWithoutHoles(r) {
|
|
17328
17337
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
17329
17338
|
}
|
|
17330
|
-
//
|
|
17339
|
+
// node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
17331
17340
|
function _iterableToArray(r) {
|
|
17332
17341
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
17333
17342
|
}
|
|
17334
|
-
//
|
|
17343
|
+
// node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
17335
17344
|
function _unsupportedIterableToArray(r, a) {
|
|
17336
17345
|
if (r) {
|
|
17337
17346
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -17339,21 +17348,21 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
17339
17348
|
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
17340
17349
|
}
|
|
17341
17350
|
}
|
|
17342
|
-
//
|
|
17351
|
+
// node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
17343
17352
|
function _nonIterableSpread() {
|
|
17344
17353
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17345
17354
|
}
|
|
17346
|
-
//
|
|
17355
|
+
// node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
17347
17356
|
function _toConsumableArray(r) {
|
|
17348
17357
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
17349
17358
|
}
|
|
17350
|
-
//
|
|
17359
|
+
// node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
17351
17360
|
function _getPrototypeOf(t) {
|
|
17352
17361
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
17353
17362
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
17354
17363
|
}, _getPrototypeOf(t);
|
|
17355
17364
|
}
|
|
17356
|
-
//
|
|
17365
|
+
// node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
17357
17366
|
function _isNativeReflectConstruct() {
|
|
17358
17367
|
try {
|
|
17359
17368
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
@@ -17362,28 +17371,28 @@ function _isNativeReflectConstruct() {
|
|
|
17362
17371
|
return !!t;
|
|
17363
17372
|
})();
|
|
17364
17373
|
}
|
|
17365
|
-
//
|
|
17374
|
+
// node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
17366
17375
|
function _assertThisInitialized(e) {
|
|
17367
17376
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17368
17377
|
return e;
|
|
17369
17378
|
}
|
|
17370
|
-
//
|
|
17379
|
+
// node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
17371
17380
|
function _possibleConstructorReturn(t, e) {
|
|
17372
17381
|
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
17373
17382
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
17374
17383
|
return _assertThisInitialized(t);
|
|
17375
17384
|
}
|
|
17376
|
-
//
|
|
17385
|
+
// node_modules/@babel/runtime/helpers/esm/callSuper.js
|
|
17377
17386
|
function _callSuper(t, o, e) {
|
|
17378
17387
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
17379
17388
|
}
|
|
17380
|
-
//
|
|
17389
|
+
// node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
17381
17390
|
function _setPrototypeOf(t, e) {
|
|
17382
17391
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
17383
17392
|
return t.__proto__ = e, t;
|
|
17384
17393
|
}, _setPrototypeOf(t, e);
|
|
17385
17394
|
}
|
|
17386
|
-
//
|
|
17395
|
+
// node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
17387
17396
|
function _inherits(t, e) {
|
|
17388
17397
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
17389
17398
|
t.prototype = Object.create(e && e.prototype, { constructor: {
|
|
@@ -17392,11 +17401,11 @@ function _inherits(t, e) {
|
|
|
17392
17401
|
configurable: !0
|
|
17393
17402
|
} }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e);
|
|
17394
17403
|
}
|
|
17395
|
-
//
|
|
17404
|
+
// node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
17396
17405
|
function _arrayWithHoles(r) {
|
|
17397
17406
|
if (Array.isArray(r)) return r;
|
|
17398
17407
|
}
|
|
17399
|
-
//
|
|
17408
|
+
// node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
17400
17409
|
function _iterableToArrayLimit(r, l) {
|
|
17401
17410
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
17402
17411
|
if (null != t) {
|
|
@@ -17418,11 +17427,11 @@ function _iterableToArrayLimit(r, l) {
|
|
|
17418
17427
|
return a;
|
|
17419
17428
|
}
|
|
17420
17429
|
}
|
|
17421
|
-
//
|
|
17430
|
+
// node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
17422
17431
|
function _nonIterableRest() {
|
|
17423
17432
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17424
17433
|
}
|
|
17425
|
-
//
|
|
17434
|
+
// node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
17426
17435
|
function _slicedToArray(r, e) {
|
|
17427
17436
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
17428
17437
|
}
|
|
@@ -17661,7 +17670,7 @@ var eventemitter3_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJS
|
|
|
17661
17670
|
if ("undefined" !== typeof module) module.exports = EventEmitter;
|
|
17662
17671
|
})))(), 1)).default;
|
|
17663
17672
|
var ARRAY_TYPE = typeof Float32Array !== "undefined" ? Float32Array : Array;
|
|
17664
|
-
//
|
|
17673
|
+
// node_modules/gl-matrix/esm/mat3.js
|
|
17665
17674
|
/**
|
|
17666
17675
|
* 3x3 Matrix
|
|
17667
17676
|
* @module mat3
|
|
@@ -17732,7 +17741,7 @@ function fromValues$4(m00, m01, m02, m10, m11, m12, m20, m21, m22) {
|
|
|
17732
17741
|
out[8] = m22;
|
|
17733
17742
|
return out;
|
|
17734
17743
|
}
|
|
17735
|
-
//
|
|
17744
|
+
// node_modules/gl-matrix/esm/mat4.js
|
|
17736
17745
|
var mat4_exports = /* @__PURE__ */ __exportAll({
|
|
17737
17746
|
add: () => add$1,
|
|
17738
17747
|
adjoint: () => adjoint,
|
|
@@ -19539,7 +19548,7 @@ var mul$1 = multiply$2;
|
|
|
19539
19548
|
* @function
|
|
19540
19549
|
*/
|
|
19541
19550
|
var sub$1 = subtract$1;
|
|
19542
|
-
//
|
|
19551
|
+
// node_modules/gl-matrix/esm/vec3.js
|
|
19543
19552
|
/**
|
|
19544
19553
|
* 3 Dimensional Vector
|
|
19545
19554
|
* @module vec3
|
|
@@ -19888,7 +19897,7 @@ var len = length;
|
|
|
19888
19897
|
return a;
|
|
19889
19898
|
};
|
|
19890
19899
|
})();
|
|
19891
|
-
//
|
|
19900
|
+
// node_modules/gl-matrix/esm/vec4.js
|
|
19892
19901
|
/**
|
|
19893
19902
|
* 4 Dimensional Vector
|
|
19894
19903
|
* @module vec4
|
|
@@ -20014,7 +20023,7 @@ function transformMat4(out, a, m) {
|
|
|
20014
20023
|
return a;
|
|
20015
20024
|
};
|
|
20016
20025
|
})();
|
|
20017
|
-
//
|
|
20026
|
+
// node_modules/gl-matrix/esm/quat.js
|
|
20018
20027
|
/**
|
|
20019
20028
|
* Quaternion in the format XYZW
|
|
20020
20029
|
* @module quat
|
|
@@ -20320,7 +20329,7 @@ var normalize$1 = normalize$2;
|
|
|
20320
20329
|
return normalize$1(out, fromMat3(out, matr));
|
|
20321
20330
|
};
|
|
20322
20331
|
})();
|
|
20323
|
-
//
|
|
20332
|
+
// node_modules/gl-matrix/esm/vec2.js
|
|
20324
20333
|
/**
|
|
20325
20334
|
* 2 Dimensional Vector
|
|
20326
20335
|
* @module vec2
|
|
@@ -20381,7 +20390,7 @@ function set(out, x, y) {
|
|
|
20381
20390
|
return a;
|
|
20382
20391
|
};
|
|
20383
20392
|
})();
|
|
20384
|
-
//
|
|
20393
|
+
// node_modules/@antv/util/esm/lodash/is-function.js
|
|
20385
20394
|
/**
|
|
20386
20395
|
* 判断值是否为函数
|
|
20387
20396
|
* @return 是否为函数
|
|
@@ -20389,7 +20398,7 @@ function set(out, x, y) {
|
|
|
20389
20398
|
function isFunction(value) {
|
|
20390
20399
|
return typeof value === "function";
|
|
20391
20400
|
}
|
|
20392
|
-
//
|
|
20401
|
+
// node_modules/@antv/util/esm/lodash/is-nil.js
|
|
20393
20402
|
/**
|
|
20394
20403
|
* 判断值是否为 null 或 undefined
|
|
20395
20404
|
* @return 是否为 null 或 undefined
|
|
@@ -20397,7 +20406,7 @@ function isFunction(value) {
|
|
|
20397
20406
|
function isNil(value) {
|
|
20398
20407
|
return value === null || value === void 0;
|
|
20399
20408
|
}
|
|
20400
|
-
//
|
|
20409
|
+
// node_modules/@antv/util/esm/lodash/is-array.js
|
|
20401
20410
|
/**
|
|
20402
20411
|
* 判断值是否为数组
|
|
20403
20412
|
* @return 是否为数组
|
|
@@ -20405,7 +20414,7 @@ function isNil(value) {
|
|
|
20405
20414
|
function isArray(value) {
|
|
20406
20415
|
return Array.isArray(value);
|
|
20407
20416
|
}
|
|
20408
|
-
//
|
|
20417
|
+
// node_modules/@antv/util/esm/lodash/is-object.js
|
|
20409
20418
|
var is_object_default = (function(value) {
|
|
20410
20419
|
/**
|
|
20411
20420
|
* isObject({}) => true
|
|
@@ -20416,12 +20425,12 @@ var is_object_default = (function(value) {
|
|
|
20416
20425
|
var type = typeof value;
|
|
20417
20426
|
return value !== null && type === "object" || type === "function";
|
|
20418
20427
|
});
|
|
20419
|
-
//
|
|
20428
|
+
// node_modules/@antv/util/esm/lodash/is-type.js
|
|
20420
20429
|
var toString = {}.toString;
|
|
20421
20430
|
var isType = function(value, type) {
|
|
20422
20431
|
return toString.call(value) === "[object " + type + "]";
|
|
20423
20432
|
};
|
|
20424
|
-
//
|
|
20433
|
+
// node_modules/@antv/util/esm/lodash/max.js
|
|
20425
20434
|
/**
|
|
20426
20435
|
* 计算数组的最大值
|
|
20427
20436
|
* @param arr 数组
|
|
@@ -20435,7 +20444,7 @@ function max(arr) {
|
|
|
20435
20444
|
for (var i = 1; i < length; i++) max = Math.max(max, arr[i]);
|
|
20436
20445
|
return max;
|
|
20437
20446
|
}
|
|
20438
|
-
//
|
|
20447
|
+
// node_modules/@antv/util/esm/lodash/min.js
|
|
20439
20448
|
/**
|
|
20440
20449
|
* @param {Array} arr The array to iterate over.
|
|
20441
20450
|
* @return {*} Returns the minimum value.
|
|
@@ -20459,7 +20468,7 @@ var min_default = (function(arr) {
|
|
|
20459
20468
|
return Math.min(prev, curr);
|
|
20460
20469
|
}, arr[0]);
|
|
20461
20470
|
});
|
|
20462
|
-
//
|
|
20471
|
+
// node_modules/@antv/util/esm/lodash/is-string.js
|
|
20463
20472
|
/**
|
|
20464
20473
|
* 判断值是否为字符串
|
|
20465
20474
|
* @return 是否为字符串
|
|
@@ -20467,13 +20476,13 @@ var min_default = (function(arr) {
|
|
|
20467
20476
|
function isString(value) {
|
|
20468
20477
|
return typeof value === "string";
|
|
20469
20478
|
}
|
|
20470
|
-
//
|
|
20479
|
+
// node_modules/@antv/util/esm/lodash/clamp.js
|
|
20471
20480
|
var clamp = function(a, min, max) {
|
|
20472
20481
|
if (a < min) return min;
|
|
20473
20482
|
else if (a > max) return max;
|
|
20474
20483
|
return a;
|
|
20475
20484
|
};
|
|
20476
|
-
//
|
|
20485
|
+
// node_modules/@antv/util/esm/lodash/is-number.js
|
|
20477
20486
|
/**
|
|
20478
20487
|
* 判断值是否为数字
|
|
20479
20488
|
* @return 是否为数字
|
|
@@ -20481,7 +20490,7 @@ var clamp = function(a, min, max) {
|
|
|
20481
20490
|
function isNumber(value) {
|
|
20482
20491
|
return typeof value === "number";
|
|
20483
20492
|
}
|
|
20484
|
-
//
|
|
20493
|
+
// node_modules/@antv/util/esm/lodash/is-number-equal.js
|
|
20485
20494
|
var PRECISION = 1e-5;
|
|
20486
20495
|
/**
|
|
20487
20496
|
* 判断两个数是否相等
|
|
@@ -20491,11 +20500,11 @@ function isNumberEqual(a, b, precision) {
|
|
|
20491
20500
|
if (precision === void 0) precision = PRECISION;
|
|
20492
20501
|
return a === b || Math.abs(a - b) < precision;
|
|
20493
20502
|
}
|
|
20494
|
-
//
|
|
20503
|
+
// node_modules/@antv/util/esm/lodash/mod.js
|
|
20495
20504
|
var mod = function(n, m) {
|
|
20496
20505
|
return (n % m + m) % m;
|
|
20497
20506
|
};
|
|
20498
|
-
//
|
|
20507
|
+
// node_modules/@antv/util/esm/lodash/is-boolean.js
|
|
20499
20508
|
/**
|
|
20500
20509
|
* 是否是布尔类型
|
|
20501
20510
|
*
|
|
@@ -20505,11 +20514,11 @@ var mod = function(n, m) {
|
|
|
20505
20514
|
var isBoolean = function(value) {
|
|
20506
20515
|
return isType(value, "Boolean");
|
|
20507
20516
|
};
|
|
20508
|
-
//
|
|
20517
|
+
// node_modules/@antv/util/esm/lodash/is-undefined.js
|
|
20509
20518
|
var isUndefined = function(value) {
|
|
20510
20519
|
return value === void 0;
|
|
20511
20520
|
};
|
|
20512
|
-
//
|
|
20521
|
+
// node_modules/tslib/tslib.es6.mjs
|
|
20513
20522
|
var __assign = function() {
|
|
20514
20523
|
__assign = Object.assign || function __assign(t) {
|
|
20515
20524
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -20529,7 +20538,7 @@ function __spreadArray(to, from, pack) {
|
|
|
20529
20538
|
}
|
|
20530
20539
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20531
20540
|
}
|
|
20532
|
-
//
|
|
20541
|
+
// node_modules/@antv/util/esm/path/parser/params-parser.js
|
|
20533
20542
|
var paramsParser = {
|
|
20534
20543
|
x1: 0,
|
|
20535
20544
|
y1: 0,
|
|
@@ -20540,7 +20549,7 @@ var paramsParser = {
|
|
|
20540
20549
|
qx: null,
|
|
20541
20550
|
qy: null
|
|
20542
20551
|
};
|
|
20543
|
-
//
|
|
20552
|
+
// node_modules/@antv/util/esm/path/process/fix-arc.js
|
|
20544
20553
|
function fixArc(pathArray, allPathCommands, i) {
|
|
20545
20554
|
if (pathArray[i].length > 7) {
|
|
20546
20555
|
pathArray[i].shift();
|
|
@@ -20553,7 +20562,7 @@ function fixArc(pathArray, allPathCommands, i) {
|
|
|
20553
20562
|
pathArray.splice(i, 1);
|
|
20554
20563
|
}
|
|
20555
20564
|
}
|
|
20556
|
-
//
|
|
20565
|
+
// node_modules/@antv/util/esm/path/parser/params-count.js
|
|
20557
20566
|
var paramsCount = {
|
|
20558
20567
|
a: 7,
|
|
20559
20568
|
c: 6,
|
|
@@ -20567,7 +20576,7 @@ var paramsCount = {
|
|
|
20567
20576
|
v: 1,
|
|
20568
20577
|
z: 0
|
|
20569
20578
|
};
|
|
20570
|
-
//
|
|
20579
|
+
// node_modules/@antv/util/esm/path/util/is-path-array.js
|
|
20571
20580
|
/**
|
|
20572
20581
|
* Iterates an array to check if it's an actual `PathArray`.
|
|
20573
20582
|
*/
|
|
@@ -20577,7 +20586,7 @@ function isPathArray(path) {
|
|
|
20577
20586
|
return paramsCount[lk] === seg.length - 1 && "achlmqstvz".includes(lk);
|
|
20578
20587
|
});
|
|
20579
20588
|
}
|
|
20580
|
-
//
|
|
20589
|
+
// node_modules/@antv/util/esm/path/util/is-absolute-array.js
|
|
20581
20590
|
/**
|
|
20582
20591
|
* Iterates an array to check if it's a `PathArray`
|
|
20583
20592
|
* with all absolute values.
|
|
@@ -20588,7 +20597,7 @@ function isAbsoluteArray(path) {
|
|
|
20588
20597
|
return x === x.toUpperCase();
|
|
20589
20598
|
});
|
|
20590
20599
|
}
|
|
20591
|
-
//
|
|
20600
|
+
// node_modules/@antv/util/esm/path/util/is-normalized-array.js
|
|
20592
20601
|
/**
|
|
20593
20602
|
* Iterates an array to check if it's a `PathArray`
|
|
20594
20603
|
* with all segments are in non-shorthand notation
|
|
@@ -20600,7 +20609,7 @@ function isNormalizedArray(path) {
|
|
|
20600
20609
|
return "ACLMQZ".includes(pc);
|
|
20601
20610
|
});
|
|
20602
20611
|
}
|
|
20603
|
-
//
|
|
20612
|
+
// node_modules/@antv/util/esm/path/parser/finalize-segment.js
|
|
20604
20613
|
/**
|
|
20605
20614
|
* Breaks the parsing of a pathString once a segment is finalized.
|
|
20606
20615
|
*/
|
|
@@ -20617,7 +20626,7 @@ function finalizeSegment(path) {
|
|
|
20617
20626
|
if (!paramsCount[LK]) break;
|
|
20618
20627
|
}
|
|
20619
20628
|
}
|
|
20620
|
-
//
|
|
20629
|
+
// node_modules/@antv/util/esm/path/parser/scan-flag.js
|
|
20621
20630
|
/**
|
|
20622
20631
|
* Validates an A (arc-to) specific path command value.
|
|
20623
20632
|
* Usually a `large-arc-flag` or `sweep-flag`.
|
|
@@ -20637,7 +20646,7 @@ function scanFlag(path) {
|
|
|
20637
20646
|
}
|
|
20638
20647
|
path.err = "[path-util]: invalid Arc flag \"".concat(pathValue[index], "\", expecting 0 or 1 at index ").concat(index);
|
|
20639
20648
|
}
|
|
20640
|
-
//
|
|
20649
|
+
// node_modules/@antv/util/esm/path/parser/is-digit-start.js
|
|
20641
20650
|
/**
|
|
20642
20651
|
* Checks if the character is or belongs to a number.
|
|
20643
20652
|
* [0-9]|+|-|.
|
|
@@ -20648,7 +20657,7 @@ function isDigitStart(code) {
|
|
|
20648
20657
|
function isDigit(code) {
|
|
20649
20658
|
return code >= 48 && code <= 57;
|
|
20650
20659
|
}
|
|
20651
|
-
//
|
|
20660
|
+
// node_modules/@antv/util/esm/path/parser/scan-param.js
|
|
20652
20661
|
/**
|
|
20653
20662
|
* Validates every character of the path string,
|
|
20654
20663
|
* every path command, negative numbers or floating point numbers.
|
|
@@ -20716,7 +20725,7 @@ function scanParam(path) {
|
|
|
20716
20725
|
path.index = index;
|
|
20717
20726
|
path.param = +path.pathValue.slice(start, index);
|
|
20718
20727
|
}
|
|
20719
|
-
//
|
|
20728
|
+
// node_modules/@antv/util/esm/path/parser/is-space.js
|
|
20720
20729
|
/**
|
|
20721
20730
|
* Checks if the character is a space.
|
|
20722
20731
|
*/
|
|
@@ -20742,7 +20751,7 @@ function isSpace(ch) {
|
|
|
20742
20751
|
65279
|
|
20743
20752
|
].includes(ch);
|
|
20744
20753
|
}
|
|
20745
|
-
//
|
|
20754
|
+
// node_modules/@antv/util/esm/path/parser/skip-spaces.js
|
|
20746
20755
|
/**
|
|
20747
20756
|
* Points the parser to the next character in the
|
|
20748
20757
|
* path string every time it encounters any kind of
|
|
@@ -20752,7 +20761,7 @@ function skipSpaces(path) {
|
|
|
20752
20761
|
var pathValue = path.pathValue, max = path.max;
|
|
20753
20762
|
while (path.index < max && isSpace(pathValue.charCodeAt(path.index))) path.index += 1;
|
|
20754
20763
|
}
|
|
20755
|
-
//
|
|
20764
|
+
// node_modules/@antv/util/esm/path/parser/is-path-command.js
|
|
20756
20765
|
/**
|
|
20757
20766
|
* Checks if the character is a path command.
|
|
20758
20767
|
*/
|
|
@@ -20771,14 +20780,14 @@ function isPathCommand(code) {
|
|
|
20771
20780
|
default: return false;
|
|
20772
20781
|
}
|
|
20773
20782
|
}
|
|
20774
|
-
//
|
|
20783
|
+
// node_modules/@antv/util/esm/path/parser/is-arc-command.js
|
|
20775
20784
|
/**
|
|
20776
20785
|
* Checks if the character is an A (arc-to) path command.
|
|
20777
20786
|
*/
|
|
20778
20787
|
function isArcCommand(code) {
|
|
20779
20788
|
return (code | 32) === 97;
|
|
20780
20789
|
}
|
|
20781
|
-
//
|
|
20790
|
+
// node_modules/@antv/util/esm/path/parser/scan-segment.js
|
|
20782
20791
|
/**
|
|
20783
20792
|
* Scans every character in the path string to determine
|
|
20784
20793
|
* where a segment starts and where it ends.
|
|
@@ -20816,7 +20825,7 @@ function scanSegment(path) {
|
|
|
20816
20825
|
}
|
|
20817
20826
|
finalizeSegment(path);
|
|
20818
20827
|
}
|
|
20819
|
-
//
|
|
20828
|
+
// node_modules/@antv/util/esm/path/parser/path-parser.js
|
|
20820
20829
|
/**
|
|
20821
20830
|
* The `PathParser` is used by the `parsePathString` static method
|
|
20822
20831
|
* to generate a `pathArray`.
|
|
@@ -20834,7 +20843,7 @@ var PathParser = function() {
|
|
|
20834
20843
|
}
|
|
20835
20844
|
return PathParser;
|
|
20836
20845
|
}();
|
|
20837
|
-
//
|
|
20846
|
+
// node_modules/@antv/util/esm/path/parser/parse-path-string.js
|
|
20838
20847
|
/**
|
|
20839
20848
|
* Parses a path string value and returns an array
|
|
20840
20849
|
* of segments we like to call `pathArray`.
|
|
@@ -20846,7 +20855,7 @@ function parsePathString(pathInput) {
|
|
|
20846
20855
|
while (path.index < path.max && !path.err.length) scanSegment(path);
|
|
20847
20856
|
return path.err ? path.err : path.segments;
|
|
20848
20857
|
}
|
|
20849
|
-
//
|
|
20858
|
+
// node_modules/@antv/util/esm/path/convert/path-2-absolute.js
|
|
20850
20859
|
/**
|
|
20851
20860
|
* Converts a `PathArray` to an `AbsoluteArray`.
|
|
20852
20861
|
*/
|
|
@@ -20921,7 +20930,7 @@ function path2Absolute(pathInput) {
|
|
|
20921
20930
|
return absoluteSegment;
|
|
20922
20931
|
});
|
|
20923
20932
|
}
|
|
20924
|
-
//
|
|
20933
|
+
// node_modules/@antv/util/esm/path/process/normalize-segment.js
|
|
20925
20934
|
/**
|
|
20926
20935
|
* Normalizes a single segment of a `PathArray` object.
|
|
20927
20936
|
* eg. H/V -> L, T -> Q
|
|
@@ -20972,7 +20981,7 @@ function normalizeSegment(segment, params) {
|
|
|
20972
20981
|
}
|
|
20973
20982
|
return result;
|
|
20974
20983
|
}
|
|
20975
|
-
//
|
|
20984
|
+
// node_modules/@antv/util/esm/path/process/normalize-path.js
|
|
20976
20985
|
/**
|
|
20977
20986
|
* @example
|
|
20978
20987
|
* const path = 'M0 0 H50';
|
|
@@ -20994,7 +21003,7 @@ function normalizePath(pathInput) {
|
|
|
20994
21003
|
}
|
|
20995
21004
|
return path;
|
|
20996
21005
|
}
|
|
20997
|
-
//
|
|
21006
|
+
// node_modules/@antv/util/esm/path/util/is-curve-array.js
|
|
20998
21007
|
/**
|
|
20999
21008
|
* Iterates an array to check if it's a `PathArray`
|
|
21000
21009
|
* with all C (cubic bezier) segments.
|
|
@@ -21008,14 +21017,14 @@ function isCurveArray(path) {
|
|
|
21008
21017
|
return "MC".includes(pc);
|
|
21009
21018
|
});
|
|
21010
21019
|
}
|
|
21011
|
-
//
|
|
21020
|
+
// node_modules/@antv/util/esm/path/util/rotate-vector.js
|
|
21012
21021
|
function rotateVector(x, y, rad) {
|
|
21013
21022
|
return {
|
|
21014
21023
|
x: x * Math.cos(rad) - y * Math.sin(rad),
|
|
21015
21024
|
y: x * Math.sin(rad) + y * Math.cos(rad)
|
|
21016
21025
|
};
|
|
21017
21026
|
}
|
|
21018
|
-
//
|
|
21027
|
+
// node_modules/@antv/util/esm/path/process/arc-2-cubic.js
|
|
21019
21028
|
/**
|
|
21020
21029
|
* Converts A (arc-to) segments to C (cubic-bezier-to).
|
|
21021
21030
|
*
|
|
@@ -21102,7 +21111,7 @@ function arcToCubic(X1, Y1, RX, RY, angle, LAF, SF, X2, Y2, recursive) {
|
|
|
21102
21111
|
for (var i = 0, ii = res.length; i < ii; i += 1) newres[i] = i % 2 ? rotateVector(res[i - 1], res[i], rad).y : rotateVector(res[i], res[i + 1], rad).x;
|
|
21103
21112
|
return newres;
|
|
21104
21113
|
}
|
|
21105
|
-
//
|
|
21114
|
+
// node_modules/@antv/util/esm/path/process/quad-2-cubic.js
|
|
21106
21115
|
function quadToCubic(x1, y1, qx, qy, x2, y2) {
|
|
21107
21116
|
var r13 = 1 / 3;
|
|
21108
21117
|
var r23 = 2 / 3;
|
|
@@ -21115,7 +21124,7 @@ function quadToCubic(x1, y1, qx, qy, x2, y2) {
|
|
|
21115
21124
|
y2
|
|
21116
21125
|
];
|
|
21117
21126
|
}
|
|
21118
|
-
//
|
|
21127
|
+
// node_modules/@antv/util/esm/path/util/mid-point.js
|
|
21119
21128
|
function midPoint(a, b, t) {
|
|
21120
21129
|
var ax = a[0];
|
|
21121
21130
|
var ay = a[1];
|
|
@@ -21123,7 +21132,7 @@ function midPoint(a, b, t) {
|
|
|
21123
21132
|
var by = b[1];
|
|
21124
21133
|
return [ax + (bx - ax) * t, ay + (by - ay) * t];
|
|
21125
21134
|
}
|
|
21126
|
-
//
|
|
21135
|
+
// node_modules/@antv/util/esm/path/process/line-2-cubic.js
|
|
21127
21136
|
var lineToCubic = function(x1, y1, x2, y2) {
|
|
21128
21137
|
return __spreadArray(__spreadArray([], midPoint([x1, y1], [x2, y2], .5), true), [
|
|
21129
21138
|
x2,
|
|
@@ -21132,7 +21141,7 @@ var lineToCubic = function(x1, y1, x2, y2) {
|
|
|
21132
21141
|
y2
|
|
21133
21142
|
], false);
|
|
21134
21143
|
};
|
|
21135
|
-
//
|
|
21144
|
+
// node_modules/@antv/util/esm/path/process/segment-2-cubic.js
|
|
21136
21145
|
function segmentToCubic(segment, params) {
|
|
21137
21146
|
var pathCommand = segment[0];
|
|
21138
21147
|
var values = segment.slice(1).map(Number);
|
|
@@ -21171,7 +21180,7 @@ function segmentToCubic(segment, params) {
|
|
|
21171
21180
|
}
|
|
21172
21181
|
return segment;
|
|
21173
21182
|
}
|
|
21174
|
-
//
|
|
21183
|
+
// node_modules/@antv/util/esm/path/convert/path-2-curve.js
|
|
21175
21184
|
function path2Curve(pathInput, needZCommandIndexes) {
|
|
21176
21185
|
if (needZCommandIndexes === void 0) needZCommandIndexes = false;
|
|
21177
21186
|
if (isCurveArray(pathInput)) {
|
|
@@ -21205,13 +21214,13 @@ function path2Curve(pathInput, needZCommandIndexes) {
|
|
|
21205
21214
|
if (needZCommandIndexes) return [path, zCommandIndexes];
|
|
21206
21215
|
else return path;
|
|
21207
21216
|
}
|
|
21208
|
-
//
|
|
21217
|
+
// node_modules/@antv/util/esm/path/process/clone-path.js
|
|
21209
21218
|
function clonePath(path) {
|
|
21210
21219
|
return path.map(function(x) {
|
|
21211
21220
|
return Array.isArray(x) ? [].concat(x) : x;
|
|
21212
21221
|
});
|
|
21213
21222
|
}
|
|
21214
|
-
//
|
|
21223
|
+
// node_modules/@antv/util/esm/path/process/reverse-curve.js
|
|
21215
21224
|
function reverseCurve(pathArray) {
|
|
21216
21225
|
var rotatedCurve = pathArray.slice(1).map(function(x, i, curveOnly) {
|
|
21217
21226
|
return !i ? pathArray[0].slice(1).concat(x.slice(1)) : curveOnly[i - 1].slice(-2).concat(x.slice(1));
|
|
@@ -21224,11 +21233,11 @@ function reverseCurve(pathArray) {
|
|
|
21224
21233
|
return ["C"].concat(x.slice(2));
|
|
21225
21234
|
}));
|
|
21226
21235
|
}
|
|
21227
|
-
//
|
|
21236
|
+
// node_modules/@antv/util/esm/path/util/distance-square-root.js
|
|
21228
21237
|
function distanceSquareRoot(a, b) {
|
|
21229
21238
|
return Math.sqrt((a[0] - b[0]) * (a[0] - b[0]) + (a[1] - b[1]) * (a[1] - b[1]));
|
|
21230
21239
|
}
|
|
21231
|
-
//
|
|
21240
|
+
// node_modules/@antv/util/esm/path/util/segment-line-factory.js
|
|
21232
21241
|
/**
|
|
21233
21242
|
* Returns a {x,y} point at a given length, the total length and
|
|
21234
21243
|
* the minimum and maximum {x,y} coordinates of a line (L,V,H,Z) segment.
|
|
@@ -21269,7 +21278,7 @@ function segmentLineFactory(x1, y1, x2, y2, distance) {
|
|
|
21269
21278
|
}
|
|
21270
21279
|
};
|
|
21271
21280
|
}
|
|
21272
|
-
//
|
|
21281
|
+
// node_modules/@antv/util/esm/path/util/segment-arc-factory.js
|
|
21273
21282
|
function angleBetween$1(v0, v1) {
|
|
21274
21283
|
var v0x = v0.x, v0y = v0.y;
|
|
21275
21284
|
var v1x = v1.x, v1y = v1.y;
|
|
@@ -21416,7 +21425,7 @@ function segmentArcFactory(X1, Y1, RX, RY, angle, LAF, SF, X2, Y2, distance, opt
|
|
|
21416
21425
|
}
|
|
21417
21426
|
};
|
|
21418
21427
|
}
|
|
21419
|
-
//
|
|
21428
|
+
// node_modules/@antv/util/esm/path/util/segment-cubic-factory.js
|
|
21420
21429
|
/**
|
|
21421
21430
|
* Returns a {x,y} point at a given length, the total length and
|
|
21422
21431
|
* the minimum and maximum {x,y} coordinates of a C (cubic-bezier) segment.
|
|
@@ -21505,7 +21514,7 @@ function segmentCubicFactory(x1, y1, c1x, c1y, c2x, c2y, x2, y2, distance, optio
|
|
|
21505
21514
|
}
|
|
21506
21515
|
};
|
|
21507
21516
|
}
|
|
21508
|
-
//
|
|
21517
|
+
// node_modules/@antv/util/esm/path/util/segment-quad-factory.js
|
|
21509
21518
|
/**
|
|
21510
21519
|
* Returns the {x,y} coordinates of a point at a
|
|
21511
21520
|
* given length of a quadratic-bezier segment.
|
|
@@ -21597,7 +21606,7 @@ function segmentQuadFactory(x1, y1, qx, qy, x2, y2, distance, options) {
|
|
|
21597
21606
|
}
|
|
21598
21607
|
};
|
|
21599
21608
|
}
|
|
21600
|
-
//
|
|
21609
|
+
// node_modules/@antv/util/esm/path/util/path-length-factory.js
|
|
21601
21610
|
/**
|
|
21602
21611
|
* Returns a {x,y} point at a given length
|
|
21603
21612
|
* of a shape, the shape total length and
|
|
@@ -21685,7 +21694,7 @@ function pathLengthFactory(pathInput, distance, options) {
|
|
|
21685
21694
|
}
|
|
21686
21695
|
};
|
|
21687
21696
|
}
|
|
21688
|
-
//
|
|
21697
|
+
// node_modules/@antv/util/esm/path/util/get-total-length.js
|
|
21689
21698
|
/**
|
|
21690
21699
|
* Returns the shape total length, or the equivalent to `shape.getTotalLength()`.
|
|
21691
21700
|
*
|
|
@@ -21698,7 +21707,7 @@ function getTotalLength(pathInput, options) {
|
|
|
21698
21707
|
length: true
|
|
21699
21708
|
})).length;
|
|
21700
21709
|
}
|
|
21701
|
-
//
|
|
21710
|
+
// node_modules/@antv/util/esm/path/util/get-rotated-curve.js
|
|
21702
21711
|
function getRotations(a) {
|
|
21703
21712
|
var segCount = a.length;
|
|
21704
21713
|
var pointCount = segCount - 1;
|
|
@@ -21731,7 +21740,7 @@ function getRotatedCurve(a, b) {
|
|
|
21731
21740
|
computedIndex = lineLengths.indexOf(Math.min.apply(null, lineLengths));
|
|
21732
21741
|
return rotations[computedIndex];
|
|
21733
21742
|
}
|
|
21734
|
-
//
|
|
21743
|
+
// node_modules/@antv/util/esm/path/util/get-path-area.js
|
|
21735
21744
|
/**
|
|
21736
21745
|
* Returns the area of a single cubic-bezier segment.
|
|
21737
21746
|
*
|
|
@@ -21766,11 +21775,11 @@ function getPathArea(path) {
|
|
|
21766
21775
|
return a + b;
|
|
21767
21776
|
}, 0);
|
|
21768
21777
|
}
|
|
21769
|
-
//
|
|
21778
|
+
// node_modules/@antv/util/esm/path/util/get-draw-direction.js
|
|
21770
21779
|
function getDrawDirection(pathArray) {
|
|
21771
21780
|
return getPathArea(pathArray) >= 0;
|
|
21772
21781
|
}
|
|
21773
|
-
//
|
|
21782
|
+
// node_modules/@antv/util/esm/path/util/get-point-at-length.js
|
|
21774
21783
|
/**
|
|
21775
21784
|
* Returns [x,y] coordinates of a point at a given length of a shape.
|
|
21776
21785
|
*/
|
|
@@ -21780,7 +21789,7 @@ function getPointAtLength(pathInput, distance, options) {
|
|
|
21780
21789
|
length: true
|
|
21781
21790
|
})).point;
|
|
21782
21791
|
}
|
|
21783
|
-
//
|
|
21792
|
+
// node_modules/@antv/util/esm/path/util/equalize-segments.js
|
|
21784
21793
|
var MAX_RECURSION_DEPTH = 50;
|
|
21785
21794
|
function splitCubic(pts, t) {
|
|
21786
21795
|
if (t === void 0) t = .5;
|
|
@@ -21851,12 +21860,12 @@ function equalizeSegments(path1, path2, TL, depth) {
|
|
|
21851
21860
|
});
|
|
21852
21861
|
return result[0].length === result[1].length ? result : equalizeSegments(result[0], result[1], tl, depth + 1);
|
|
21853
21862
|
}
|
|
21854
|
-
//
|
|
21863
|
+
// node_modules/@babel/runtime/helpers/esm/superPropBase.js
|
|
21855
21864
|
function _superPropBase(t, o) {
|
|
21856
21865
|
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
|
|
21857
21866
|
return t;
|
|
21858
21867
|
}
|
|
21859
|
-
//
|
|
21868
|
+
// node_modules/@babel/runtime/helpers/esm/get.js
|
|
21860
21869
|
function _get() {
|
|
21861
21870
|
return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e, t, r) {
|
|
21862
21871
|
var p = _superPropBase(e, t);
|
|
@@ -21866,14 +21875,14 @@ function _get() {
|
|
|
21866
21875
|
}
|
|
21867
21876
|
}, _get.apply(null, arguments);
|
|
21868
21877
|
}
|
|
21869
|
-
//
|
|
21878
|
+
// node_modules/@babel/runtime/helpers/esm/superPropGet.js
|
|
21870
21879
|
function _superPropGet(t, o, e, r) {
|
|
21871
21880
|
var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
|
|
21872
21881
|
return 2 & r && "function" == typeof p ? function(t) {
|
|
21873
21882
|
return p.apply(e, t);
|
|
21874
21883
|
} : p;
|
|
21875
21884
|
}
|
|
21876
|
-
//
|
|
21885
|
+
// node_modules/@antv/g-math/dist/index.esm.js
|
|
21877
21886
|
/*!
|
|
21878
21887
|
* @antv/g-math
|
|
21879
21888
|
* @description Geometry util
|
|
@@ -22030,11 +22039,11 @@ function box(x1, y1, x2, y2, x3, y3) {
|
|
|
22030
22039
|
if (yExtrema !== void 0) yArr.push(quadraticAt(y1, y2, y3, yExtrema));
|
|
22031
22040
|
return getBBoxByArray(xArr, yArr);
|
|
22032
22041
|
}
|
|
22033
|
-
//
|
|
22042
|
+
// node_modules/@babel/runtime/helpers/esm/OverloadYield.js
|
|
22034
22043
|
function _OverloadYield(e, d) {
|
|
22035
22044
|
this.v = e, this.k = d;
|
|
22036
22045
|
}
|
|
22037
|
-
//
|
|
22046
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js
|
|
22038
22047
|
function _regeneratorDefine(e, r, n, t) {
|
|
22039
22048
|
var i = Object.defineProperty;
|
|
22040
22049
|
try {
|
|
@@ -22056,7 +22065,7 @@ function _regeneratorDefine(e, r, n, t) {
|
|
|
22056
22065
|
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
22057
22066
|
}, _regeneratorDefine(e, r, n, t);
|
|
22058
22067
|
}
|
|
22059
|
-
//
|
|
22068
|
+
// node_modules/@babel/runtime/helpers/esm/regenerator.js
|
|
22060
22069
|
function _regenerator() {
|
|
22061
22070
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
22062
22071
|
var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag";
|
|
@@ -22129,7 +22138,7 @@ function _regenerator() {
|
|
|
22129
22138
|
};
|
|
22130
22139
|
})();
|
|
22131
22140
|
}
|
|
22132
|
-
//
|
|
22141
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js
|
|
22133
22142
|
function AsyncIterator$1(t, e) {
|
|
22134
22143
|
function n(r, o, i, f) {
|
|
22135
22144
|
try {
|
|
@@ -22159,18 +22168,18 @@ function AsyncIterator$1(t, e) {
|
|
|
22159
22168
|
return r = r ? r.then(f, f) : f();
|
|
22160
22169
|
}, !0);
|
|
22161
22170
|
}
|
|
22162
|
-
//
|
|
22171
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js
|
|
22163
22172
|
function _regeneratorAsyncGen(r, e, t, o, n) {
|
|
22164
22173
|
return new AsyncIterator$1(_regenerator().w(r, e, t, o), n || Promise);
|
|
22165
22174
|
}
|
|
22166
|
-
//
|
|
22175
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js
|
|
22167
22176
|
function _regeneratorAsync(n, e, r, t, o) {
|
|
22168
22177
|
var a = _regeneratorAsyncGen(n, e, r, t, o);
|
|
22169
22178
|
return a.next().then(function(n) {
|
|
22170
22179
|
return n.done ? n.value : a.next();
|
|
22171
22180
|
});
|
|
22172
22181
|
}
|
|
22173
|
-
//
|
|
22182
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js
|
|
22174
22183
|
function _regeneratorKeys(e) {
|
|
22175
22184
|
var n = Object(e), r = [];
|
|
22176
22185
|
for (var t in n) r.unshift(t);
|
|
@@ -22179,7 +22188,7 @@ function _regeneratorKeys(e) {
|
|
|
22179
22188
|
return e.done = !0, e;
|
|
22180
22189
|
};
|
|
22181
22190
|
}
|
|
22182
|
-
//
|
|
22191
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorValues.js
|
|
22183
22192
|
function _regeneratorValues(e) {
|
|
22184
22193
|
if (null != e) {
|
|
22185
22194
|
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0;
|
|
@@ -22194,7 +22203,7 @@ function _regeneratorValues(e) {
|
|
|
22194
22203
|
}
|
|
22195
22204
|
throw new TypeError(_typeof(e) + " is not iterable");
|
|
22196
22205
|
}
|
|
22197
|
-
//
|
|
22206
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
22198
22207
|
function _regeneratorRuntime() {
|
|
22199
22208
|
"use strict";
|
|
22200
22209
|
var r = _regenerator(), e = r.m(_regeneratorRuntime), t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
|
|
@@ -22261,7 +22270,7 @@ function _regeneratorRuntime() {
|
|
|
22261
22270
|
};
|
|
22262
22271
|
})();
|
|
22263
22272
|
}
|
|
22264
|
-
//
|
|
22273
|
+
// node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
22265
22274
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
22266
22275
|
try {
|
|
22267
22276
|
var i = n[a](c), u = i.value;
|
|
@@ -22286,7 +22295,7 @@ function _asyncToGenerator(n) {
|
|
|
22286
22295
|
});
|
|
22287
22296
|
};
|
|
22288
22297
|
}
|
|
22289
|
-
//
|
|
22298
|
+
// node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
22290
22299
|
function _createForOfIteratorHelper(r, e) {
|
|
22291
22300
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
22292
22301
|
if (!t) {
|
|
@@ -22330,7 +22339,7 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
22330
22339
|
}
|
|
22331
22340
|
};
|
|
22332
22341
|
}
|
|
22333
|
-
//
|
|
22342
|
+
// node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
22334
22343
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
22335
22344
|
if (null == r) return {};
|
|
22336
22345
|
var t = {};
|
|
@@ -22340,7 +22349,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
22340
22349
|
}
|
|
22341
22350
|
return t;
|
|
22342
22351
|
}
|
|
22343
|
-
//
|
|
22352
|
+
// node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
22344
22353
|
function _objectWithoutProperties(e, t) {
|
|
22345
22354
|
if (null == e) return {};
|
|
22346
22355
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -22350,7 +22359,7 @@ function _objectWithoutProperties(e, t) {
|
|
|
22350
22359
|
}
|
|
22351
22360
|
return i;
|
|
22352
22361
|
}
|
|
22353
|
-
//
|
|
22362
|
+
// node_modules/@antv/g-lite/dist/index.esm.js
|
|
22354
22363
|
/*!
|
|
22355
22364
|
* @antv/g-lite
|
|
22356
22365
|
* @description A core module for rendering engine implements DOM API.
|
|
@@ -56317,7 +56326,7 @@ function render_tabs(gobj, items) {
|
|
|
56317
56326
|
let has_label = show_label && !empty_string(it.name);
|
|
56318
56327
|
let pinned = !empty_string(it.icon) && !has_label;
|
|
56319
56328
|
let badge_el = item_badge_node(gobj, it, pinned);
|
|
56320
|
-
if (!empty_string(it.icon)) children.push(icon_span(it.icon, "icon
|
|
56329
|
+
if (!empty_string(it.icon)) children.push(icon_span(it.icon, "icon", pinned ? badge_el : null, true));
|
|
56321
56330
|
if (has_label) children.push([
|
|
56322
56331
|
"span",
|
|
56323
56332
|
{ i18n: it.name },
|
|
@@ -56490,14 +56499,7 @@ function render_backbar(gobj) {
|
|
|
56490
56499
|
[
|
|
56491
56500
|
"a",
|
|
56492
56501
|
a_attrs,
|
|
56493
|
-
[[
|
|
56494
|
-
"span",
|
|
56495
|
-
{ class: "icon is-small" },
|
|
56496
|
-
["i", {
|
|
56497
|
-
class: "yi-arrow-left",
|
|
56498
|
-
"aria-hidden": "true"
|
|
56499
|
-
}]
|
|
56500
|
-
], [
|
|
56502
|
+
[icon_span("yi-arrow-left", "icon", null, true), [
|
|
56501
56503
|
"span",
|
|
56502
56504
|
label_attrs,
|
|
56503
56505
|
text_node(label)
|
|
@@ -56647,7 +56649,7 @@ function item_li(gobj, it, opts) {
|
|
|
56647
56649
|
] : null;
|
|
56648
56650
|
let pinned = !empty_string(it.icon) && (is_stacked || !label_el);
|
|
56649
56651
|
let badge_el = item_badge_node(gobj, it, pinned);
|
|
56650
|
-
let icon_el = !empty_string(it.icon) ? icon_span(it.icon, "icon", pinned ? badge_el : null) : null;
|
|
56652
|
+
let icon_el = !empty_string(it.icon) ? icon_span(it.icon, "icon", pinned ? badge_el : null, true) : null;
|
|
56651
56653
|
let a_class = "yui-nav-item";
|
|
56652
56654
|
if (is_stacked) a_class += " yui-nav-stacked";
|
|
56653
56655
|
if (icon_pos === "right" || icon_pos === "bottom") {
|
|
@@ -56754,9 +56756,13 @@ function item_badge_node(gobj, it, pinned) {
|
|
|
56754
56756
|
}
|
|
56755
56757
|
/************************************************************
|
|
56756
56758
|
* An item's icon, with its badge on the corner when given one.
|
|
56759
|
+
* `row_glyph`: the glyph of a tab or a menu entry, at the one
|
|
56760
|
+
* size of the toolbars (yui_toolbar_icon). Without it the
|
|
56761
|
+
* glyph takes the size the layout gives it (the icon bar, the
|
|
56762
|
+
* cards).
|
|
56757
56763
|
************************************************************/
|
|
56758
|
-
function icon_span(icon, classes, badge_el) {
|
|
56759
|
-
let glyph = ["i", {
|
|
56764
|
+
function icon_span(icon, classes, badge_el, row_glyph) {
|
|
56765
|
+
let glyph = row_glyph ? yui_toolbar_icon(icon) : ["i", {
|
|
56760
56766
|
class: icon,
|
|
56761
56767
|
"aria-hidden": "true"
|
|
56762
56768
|
}];
|
|
@@ -58417,11 +58423,8 @@ function add_tab(gobj, gobj2, id, text, icon) {
|
|
|
58417
58423
|
let $a = $item.querySelector("a");
|
|
58418
58424
|
if (icon) $a.appendChild(createElement2([
|
|
58419
58425
|
"span",
|
|
58420
|
-
{ class: "icon is-
|
|
58421
|
-
[
|
|
58422
|
-
class: `${icon}`,
|
|
58423
|
-
"aria-hidden": "true"
|
|
58424
|
-
}]
|
|
58426
|
+
{ class: "icon is-hidden-mobile" },
|
|
58427
|
+
[yui_toolbar_icon(icon)]
|
|
58425
58428
|
]));
|
|
58426
58429
|
$a.appendChild(createElement2([
|
|
58427
58430
|
"span",
|