@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.cjs.js
CHANGED
|
@@ -16579,11 +16579,20 @@ function register_c_yui_uplot() {
|
|
|
16579
16579
|
* glyph reads as a marker rather than as a second word. The
|
|
16580
16580
|
* app BAR is a different band and keeps its own, bigger size
|
|
16581
16581
|
* (`.yui-toolbar-item .icon`, 1.35rem on 44px items).
|
|
16582
|
+
*
|
|
16583
|
+
* It is also the size of the glyphs of the TABS and of the
|
|
16584
|
+
* MENU entries (C_YUI_NAV, the topic tabs of
|
|
16585
|
+
* C_YUI_TREEDB_TOPICS), and of the paginator of a table on a
|
|
16586
|
+
* phone (tabulator.css). Up to 7.32.6 a tab took the 16px of
|
|
16587
|
+
* its text, and right under a toolbar its icons read as
|
|
16588
|
+
* smaller than the toolbar's. The rows of a tab or a menu
|
|
16589
|
+
* entry are 24px of line, so the glyph changes no height.
|
|
16582
16590
|
************************************************************/
|
|
16583
16591
|
var YUI_TOOLBAR_ICON_SIZE = "1.25rem";
|
|
16584
16592
|
function yui_toolbar_icon(icon_class, extra_style) {
|
|
16585
16593
|
return ["i", {
|
|
16586
16594
|
class: icon_class,
|
|
16595
|
+
"aria-hidden": "true",
|
|
16587
16596
|
style: `font-size:${YUI_TOOLBAR_ICON_SIZE}; line-height:1; color:inherit;` + (extra_style || "")
|
|
16588
16597
|
}];
|
|
16589
16598
|
}
|
|
@@ -17252,7 +17261,7 @@ async function yui_graph_center_on(graph, node_id) {
|
|
|
17252
17261
|
function yui_graph_refresh_item(gobj, wide) {
|
|
17253
17262
|
return camera_button(gobj, "yi-arrows-rotate", "EV_REFRESH", "refresh", wide);
|
|
17254
17263
|
}
|
|
17255
|
-
//
|
|
17264
|
+
// node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
17256
17265
|
function _typeof(o) {
|
|
17257
17266
|
"@babel/helpers - typeof";
|
|
17258
17267
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -17261,7 +17270,7 @@ function _typeof(o) {
|
|
|
17261
17270
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
17262
17271
|
}, _typeof(o);
|
|
17263
17272
|
}
|
|
17264
|
-
//
|
|
17273
|
+
// node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
17265
17274
|
function toPrimitive(t, e) {
|
|
17266
17275
|
if ("object" != _typeof(t) || !t) return t;
|
|
17267
17276
|
var r;
|
|
@@ -17272,12 +17281,12 @@ function toPrimitive(t, e) {
|
|
|
17272
17281
|
}
|
|
17273
17282
|
return ("string" === e ? String : Number)(t);
|
|
17274
17283
|
}
|
|
17275
|
-
//
|
|
17284
|
+
// node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
17276
17285
|
function toPropertyKey(t) {
|
|
17277
17286
|
var i = toPrimitive(t, "string");
|
|
17278
17287
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
17279
17288
|
}
|
|
17280
|
-
//
|
|
17289
|
+
// node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17281
17290
|
function _defineProperty(e, r, t) {
|
|
17282
17291
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
17283
17292
|
value: t,
|
|
@@ -17286,7 +17295,7 @@ function _defineProperty(e, r, t) {
|
|
|
17286
17295
|
writable: !0
|
|
17287
17296
|
}) : e[r] = t, e;
|
|
17288
17297
|
}
|
|
17289
|
-
//
|
|
17298
|
+
// node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
17290
17299
|
function ownKeys(e, r) {
|
|
17291
17300
|
var t = Object.keys(e);
|
|
17292
17301
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -17308,11 +17317,11 @@ function _objectSpread2(e) {
|
|
|
17308
17317
|
}
|
|
17309
17318
|
return e;
|
|
17310
17319
|
}
|
|
17311
|
-
//
|
|
17320
|
+
// node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
17312
17321
|
function _classCallCheck(a, n) {
|
|
17313
17322
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
17314
17323
|
}
|
|
17315
|
-
//
|
|
17324
|
+
// node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
17316
17325
|
function _defineProperties(e, r) {
|
|
17317
17326
|
for (var t = 0; t < r.length; t++) {
|
|
17318
17327
|
var o = r[t];
|
|
@@ -17322,21 +17331,21 @@ function _defineProperties(e, r) {
|
|
|
17322
17331
|
function _createClass(e, r, t) {
|
|
17323
17332
|
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
17324
17333
|
}
|
|
17325
|
-
//
|
|
17334
|
+
// node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
17326
17335
|
function _arrayLikeToArray(r, a) {
|
|
17327
17336
|
(null == a || a > r.length) && (a = r.length);
|
|
17328
17337
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
17329
17338
|
return n;
|
|
17330
17339
|
}
|
|
17331
|
-
//
|
|
17340
|
+
// node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
17332
17341
|
function _arrayWithoutHoles(r) {
|
|
17333
17342
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
17334
17343
|
}
|
|
17335
|
-
//
|
|
17344
|
+
// node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
17336
17345
|
function _iterableToArray(r) {
|
|
17337
17346
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
17338
17347
|
}
|
|
17339
|
-
//
|
|
17348
|
+
// node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
17340
17349
|
function _unsupportedIterableToArray(r, a) {
|
|
17341
17350
|
if (r) {
|
|
17342
17351
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -17344,21 +17353,21 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
17344
17353
|
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;
|
|
17345
17354
|
}
|
|
17346
17355
|
}
|
|
17347
|
-
//
|
|
17356
|
+
// node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
17348
17357
|
function _nonIterableSpread() {
|
|
17349
17358
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17350
17359
|
}
|
|
17351
|
-
//
|
|
17360
|
+
// node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
17352
17361
|
function _toConsumableArray(r) {
|
|
17353
17362
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
17354
17363
|
}
|
|
17355
|
-
//
|
|
17364
|
+
// node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
17356
17365
|
function _getPrototypeOf(t) {
|
|
17357
17366
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
17358
17367
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
17359
17368
|
}, _getPrototypeOf(t);
|
|
17360
17369
|
}
|
|
17361
|
-
//
|
|
17370
|
+
// node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
17362
17371
|
function _isNativeReflectConstruct() {
|
|
17363
17372
|
try {
|
|
17364
17373
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
@@ -17367,28 +17376,28 @@ function _isNativeReflectConstruct() {
|
|
|
17367
17376
|
return !!t;
|
|
17368
17377
|
})();
|
|
17369
17378
|
}
|
|
17370
|
-
//
|
|
17379
|
+
// node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
17371
17380
|
function _assertThisInitialized(e) {
|
|
17372
17381
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17373
17382
|
return e;
|
|
17374
17383
|
}
|
|
17375
|
-
//
|
|
17384
|
+
// node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
17376
17385
|
function _possibleConstructorReturn(t, e) {
|
|
17377
17386
|
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
17378
17387
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
17379
17388
|
return _assertThisInitialized(t);
|
|
17380
17389
|
}
|
|
17381
|
-
//
|
|
17390
|
+
// node_modules/@babel/runtime/helpers/esm/callSuper.js
|
|
17382
17391
|
function _callSuper(t, o, e) {
|
|
17383
17392
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
17384
17393
|
}
|
|
17385
|
-
//
|
|
17394
|
+
// node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
17386
17395
|
function _setPrototypeOf(t, e) {
|
|
17387
17396
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
17388
17397
|
return t.__proto__ = e, t;
|
|
17389
17398
|
}, _setPrototypeOf(t, e);
|
|
17390
17399
|
}
|
|
17391
|
-
//
|
|
17400
|
+
// node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
17392
17401
|
function _inherits(t, e) {
|
|
17393
17402
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
17394
17403
|
t.prototype = Object.create(e && e.prototype, { constructor: {
|
|
@@ -17397,11 +17406,11 @@ function _inherits(t, e) {
|
|
|
17397
17406
|
configurable: !0
|
|
17398
17407
|
} }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e);
|
|
17399
17408
|
}
|
|
17400
|
-
//
|
|
17409
|
+
// node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
17401
17410
|
function _arrayWithHoles(r) {
|
|
17402
17411
|
if (Array.isArray(r)) return r;
|
|
17403
17412
|
}
|
|
17404
|
-
//
|
|
17413
|
+
// node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
17405
17414
|
function _iterableToArrayLimit(r, l) {
|
|
17406
17415
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
17407
17416
|
if (null != t) {
|
|
@@ -17423,11 +17432,11 @@ function _iterableToArrayLimit(r, l) {
|
|
|
17423
17432
|
return a;
|
|
17424
17433
|
}
|
|
17425
17434
|
}
|
|
17426
|
-
//
|
|
17435
|
+
// node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
17427
17436
|
function _nonIterableRest() {
|
|
17428
17437
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17429
17438
|
}
|
|
17430
|
-
//
|
|
17439
|
+
// node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
17431
17440
|
function _slicedToArray(r, e) {
|
|
17432
17441
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
17433
17442
|
}
|
|
@@ -17666,7 +17675,7 @@ var eventemitter3_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJS
|
|
|
17666
17675
|
if ("undefined" !== typeof module) module.exports = EventEmitter;
|
|
17667
17676
|
})))(), 1)).default;
|
|
17668
17677
|
var ARRAY_TYPE = typeof Float32Array !== "undefined" ? Float32Array : Array;
|
|
17669
|
-
//
|
|
17678
|
+
// node_modules/gl-matrix/esm/mat3.js
|
|
17670
17679
|
/**
|
|
17671
17680
|
* 3x3 Matrix
|
|
17672
17681
|
* @module mat3
|
|
@@ -17737,7 +17746,7 @@ function fromValues$4(m00, m01, m02, m10, m11, m12, m20, m21, m22) {
|
|
|
17737
17746
|
out[8] = m22;
|
|
17738
17747
|
return out;
|
|
17739
17748
|
}
|
|
17740
|
-
//
|
|
17749
|
+
// node_modules/gl-matrix/esm/mat4.js
|
|
17741
17750
|
var mat4_exports = /* @__PURE__ */ __exportAll({
|
|
17742
17751
|
add: () => add$1,
|
|
17743
17752
|
adjoint: () => adjoint,
|
|
@@ -19544,7 +19553,7 @@ var mul$1 = multiply$2;
|
|
|
19544
19553
|
* @function
|
|
19545
19554
|
*/
|
|
19546
19555
|
var sub$1 = subtract$1;
|
|
19547
|
-
//
|
|
19556
|
+
// node_modules/gl-matrix/esm/vec3.js
|
|
19548
19557
|
/**
|
|
19549
19558
|
* 3 Dimensional Vector
|
|
19550
19559
|
* @module vec3
|
|
@@ -19893,7 +19902,7 @@ var len = length;
|
|
|
19893
19902
|
return a;
|
|
19894
19903
|
};
|
|
19895
19904
|
})();
|
|
19896
|
-
//
|
|
19905
|
+
// node_modules/gl-matrix/esm/vec4.js
|
|
19897
19906
|
/**
|
|
19898
19907
|
* 4 Dimensional Vector
|
|
19899
19908
|
* @module vec4
|
|
@@ -20019,7 +20028,7 @@ function transformMat4(out, a, m) {
|
|
|
20019
20028
|
return a;
|
|
20020
20029
|
};
|
|
20021
20030
|
})();
|
|
20022
|
-
//
|
|
20031
|
+
// node_modules/gl-matrix/esm/quat.js
|
|
20023
20032
|
/**
|
|
20024
20033
|
* Quaternion in the format XYZW
|
|
20025
20034
|
* @module quat
|
|
@@ -20325,7 +20334,7 @@ var normalize$1 = normalize$2;
|
|
|
20325
20334
|
return normalize$1(out, fromMat3(out, matr));
|
|
20326
20335
|
};
|
|
20327
20336
|
})();
|
|
20328
|
-
//
|
|
20337
|
+
// node_modules/gl-matrix/esm/vec2.js
|
|
20329
20338
|
/**
|
|
20330
20339
|
* 2 Dimensional Vector
|
|
20331
20340
|
* @module vec2
|
|
@@ -20386,7 +20395,7 @@ function set(out, x, y) {
|
|
|
20386
20395
|
return a;
|
|
20387
20396
|
};
|
|
20388
20397
|
})();
|
|
20389
|
-
//
|
|
20398
|
+
// node_modules/@antv/util/esm/lodash/is-function.js
|
|
20390
20399
|
/**
|
|
20391
20400
|
* 判断值是否为函数
|
|
20392
20401
|
* @return 是否为函数
|
|
@@ -20394,7 +20403,7 @@ function set(out, x, y) {
|
|
|
20394
20403
|
function isFunction(value) {
|
|
20395
20404
|
return typeof value === "function";
|
|
20396
20405
|
}
|
|
20397
|
-
//
|
|
20406
|
+
// node_modules/@antv/util/esm/lodash/is-nil.js
|
|
20398
20407
|
/**
|
|
20399
20408
|
* 判断值是否为 null 或 undefined
|
|
20400
20409
|
* @return 是否为 null 或 undefined
|
|
@@ -20402,7 +20411,7 @@ function isFunction(value) {
|
|
|
20402
20411
|
function isNil(value) {
|
|
20403
20412
|
return value === null || value === void 0;
|
|
20404
20413
|
}
|
|
20405
|
-
//
|
|
20414
|
+
// node_modules/@antv/util/esm/lodash/is-array.js
|
|
20406
20415
|
/**
|
|
20407
20416
|
* 判断值是否为数组
|
|
20408
20417
|
* @return 是否为数组
|
|
@@ -20410,7 +20419,7 @@ function isNil(value) {
|
|
|
20410
20419
|
function isArray(value) {
|
|
20411
20420
|
return Array.isArray(value);
|
|
20412
20421
|
}
|
|
20413
|
-
//
|
|
20422
|
+
// node_modules/@antv/util/esm/lodash/is-object.js
|
|
20414
20423
|
var is_object_default = (function(value) {
|
|
20415
20424
|
/**
|
|
20416
20425
|
* isObject({}) => true
|
|
@@ -20421,12 +20430,12 @@ var is_object_default = (function(value) {
|
|
|
20421
20430
|
var type = typeof value;
|
|
20422
20431
|
return value !== null && type === "object" || type === "function";
|
|
20423
20432
|
});
|
|
20424
|
-
//
|
|
20433
|
+
// node_modules/@antv/util/esm/lodash/is-type.js
|
|
20425
20434
|
var toString = {}.toString;
|
|
20426
20435
|
var isType = function(value, type) {
|
|
20427
20436
|
return toString.call(value) === "[object " + type + "]";
|
|
20428
20437
|
};
|
|
20429
|
-
//
|
|
20438
|
+
// node_modules/@antv/util/esm/lodash/max.js
|
|
20430
20439
|
/**
|
|
20431
20440
|
* 计算数组的最大值
|
|
20432
20441
|
* @param arr 数组
|
|
@@ -20440,7 +20449,7 @@ function max(arr) {
|
|
|
20440
20449
|
for (var i = 1; i < length; i++) max = Math.max(max, arr[i]);
|
|
20441
20450
|
return max;
|
|
20442
20451
|
}
|
|
20443
|
-
//
|
|
20452
|
+
// node_modules/@antv/util/esm/lodash/min.js
|
|
20444
20453
|
/**
|
|
20445
20454
|
* @param {Array} arr The array to iterate over.
|
|
20446
20455
|
* @return {*} Returns the minimum value.
|
|
@@ -20464,7 +20473,7 @@ var min_default = (function(arr) {
|
|
|
20464
20473
|
return Math.min(prev, curr);
|
|
20465
20474
|
}, arr[0]);
|
|
20466
20475
|
});
|
|
20467
|
-
//
|
|
20476
|
+
// node_modules/@antv/util/esm/lodash/is-string.js
|
|
20468
20477
|
/**
|
|
20469
20478
|
* 判断值是否为字符串
|
|
20470
20479
|
* @return 是否为字符串
|
|
@@ -20472,13 +20481,13 @@ var min_default = (function(arr) {
|
|
|
20472
20481
|
function isString(value) {
|
|
20473
20482
|
return typeof value === "string";
|
|
20474
20483
|
}
|
|
20475
|
-
//
|
|
20484
|
+
// node_modules/@antv/util/esm/lodash/clamp.js
|
|
20476
20485
|
var clamp = function(a, min, max) {
|
|
20477
20486
|
if (a < min) return min;
|
|
20478
20487
|
else if (a > max) return max;
|
|
20479
20488
|
return a;
|
|
20480
20489
|
};
|
|
20481
|
-
//
|
|
20490
|
+
// node_modules/@antv/util/esm/lodash/is-number.js
|
|
20482
20491
|
/**
|
|
20483
20492
|
* 判断值是否为数字
|
|
20484
20493
|
* @return 是否为数字
|
|
@@ -20486,7 +20495,7 @@ var clamp = function(a, min, max) {
|
|
|
20486
20495
|
function isNumber(value) {
|
|
20487
20496
|
return typeof value === "number";
|
|
20488
20497
|
}
|
|
20489
|
-
//
|
|
20498
|
+
// node_modules/@antv/util/esm/lodash/is-number-equal.js
|
|
20490
20499
|
var PRECISION = 1e-5;
|
|
20491
20500
|
/**
|
|
20492
20501
|
* 判断两个数是否相等
|
|
@@ -20496,11 +20505,11 @@ function isNumberEqual(a, b, precision) {
|
|
|
20496
20505
|
if (precision === void 0) precision = PRECISION;
|
|
20497
20506
|
return a === b || Math.abs(a - b) < precision;
|
|
20498
20507
|
}
|
|
20499
|
-
//
|
|
20508
|
+
// node_modules/@antv/util/esm/lodash/mod.js
|
|
20500
20509
|
var mod = function(n, m) {
|
|
20501
20510
|
return (n % m + m) % m;
|
|
20502
20511
|
};
|
|
20503
|
-
//
|
|
20512
|
+
// node_modules/@antv/util/esm/lodash/is-boolean.js
|
|
20504
20513
|
/**
|
|
20505
20514
|
* 是否是布尔类型
|
|
20506
20515
|
*
|
|
@@ -20510,11 +20519,11 @@ var mod = function(n, m) {
|
|
|
20510
20519
|
var isBoolean = function(value) {
|
|
20511
20520
|
return isType(value, "Boolean");
|
|
20512
20521
|
};
|
|
20513
|
-
//
|
|
20522
|
+
// node_modules/@antv/util/esm/lodash/is-undefined.js
|
|
20514
20523
|
var isUndefined = function(value) {
|
|
20515
20524
|
return value === void 0;
|
|
20516
20525
|
};
|
|
20517
|
-
//
|
|
20526
|
+
// node_modules/tslib/tslib.es6.mjs
|
|
20518
20527
|
var __assign = function() {
|
|
20519
20528
|
__assign = Object.assign || function __assign(t) {
|
|
20520
20529
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -20534,7 +20543,7 @@ function __spreadArray(to, from, pack) {
|
|
|
20534
20543
|
}
|
|
20535
20544
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20536
20545
|
}
|
|
20537
|
-
//
|
|
20546
|
+
// node_modules/@antv/util/esm/path/parser/params-parser.js
|
|
20538
20547
|
var paramsParser = {
|
|
20539
20548
|
x1: 0,
|
|
20540
20549
|
y1: 0,
|
|
@@ -20545,7 +20554,7 @@ var paramsParser = {
|
|
|
20545
20554
|
qx: null,
|
|
20546
20555
|
qy: null
|
|
20547
20556
|
};
|
|
20548
|
-
//
|
|
20557
|
+
// node_modules/@antv/util/esm/path/process/fix-arc.js
|
|
20549
20558
|
function fixArc(pathArray, allPathCommands, i) {
|
|
20550
20559
|
if (pathArray[i].length > 7) {
|
|
20551
20560
|
pathArray[i].shift();
|
|
@@ -20558,7 +20567,7 @@ function fixArc(pathArray, allPathCommands, i) {
|
|
|
20558
20567
|
pathArray.splice(i, 1);
|
|
20559
20568
|
}
|
|
20560
20569
|
}
|
|
20561
|
-
//
|
|
20570
|
+
// node_modules/@antv/util/esm/path/parser/params-count.js
|
|
20562
20571
|
var paramsCount = {
|
|
20563
20572
|
a: 7,
|
|
20564
20573
|
c: 6,
|
|
@@ -20572,7 +20581,7 @@ var paramsCount = {
|
|
|
20572
20581
|
v: 1,
|
|
20573
20582
|
z: 0
|
|
20574
20583
|
};
|
|
20575
|
-
//
|
|
20584
|
+
// node_modules/@antv/util/esm/path/util/is-path-array.js
|
|
20576
20585
|
/**
|
|
20577
20586
|
* Iterates an array to check if it's an actual `PathArray`.
|
|
20578
20587
|
*/
|
|
@@ -20582,7 +20591,7 @@ function isPathArray(path) {
|
|
|
20582
20591
|
return paramsCount[lk] === seg.length - 1 && "achlmqstvz".includes(lk);
|
|
20583
20592
|
});
|
|
20584
20593
|
}
|
|
20585
|
-
//
|
|
20594
|
+
// node_modules/@antv/util/esm/path/util/is-absolute-array.js
|
|
20586
20595
|
/**
|
|
20587
20596
|
* Iterates an array to check if it's a `PathArray`
|
|
20588
20597
|
* with all absolute values.
|
|
@@ -20593,7 +20602,7 @@ function isAbsoluteArray(path) {
|
|
|
20593
20602
|
return x === x.toUpperCase();
|
|
20594
20603
|
});
|
|
20595
20604
|
}
|
|
20596
|
-
//
|
|
20605
|
+
// node_modules/@antv/util/esm/path/util/is-normalized-array.js
|
|
20597
20606
|
/**
|
|
20598
20607
|
* Iterates an array to check if it's a `PathArray`
|
|
20599
20608
|
* with all segments are in non-shorthand notation
|
|
@@ -20605,7 +20614,7 @@ function isNormalizedArray(path) {
|
|
|
20605
20614
|
return "ACLMQZ".includes(pc);
|
|
20606
20615
|
});
|
|
20607
20616
|
}
|
|
20608
|
-
//
|
|
20617
|
+
// node_modules/@antv/util/esm/path/parser/finalize-segment.js
|
|
20609
20618
|
/**
|
|
20610
20619
|
* Breaks the parsing of a pathString once a segment is finalized.
|
|
20611
20620
|
*/
|
|
@@ -20622,7 +20631,7 @@ function finalizeSegment(path) {
|
|
|
20622
20631
|
if (!paramsCount[LK]) break;
|
|
20623
20632
|
}
|
|
20624
20633
|
}
|
|
20625
|
-
//
|
|
20634
|
+
// node_modules/@antv/util/esm/path/parser/scan-flag.js
|
|
20626
20635
|
/**
|
|
20627
20636
|
* Validates an A (arc-to) specific path command value.
|
|
20628
20637
|
* Usually a `large-arc-flag` or `sweep-flag`.
|
|
@@ -20642,7 +20651,7 @@ function scanFlag(path) {
|
|
|
20642
20651
|
}
|
|
20643
20652
|
path.err = "[path-util]: invalid Arc flag \"".concat(pathValue[index], "\", expecting 0 or 1 at index ").concat(index);
|
|
20644
20653
|
}
|
|
20645
|
-
//
|
|
20654
|
+
// node_modules/@antv/util/esm/path/parser/is-digit-start.js
|
|
20646
20655
|
/**
|
|
20647
20656
|
* Checks if the character is or belongs to a number.
|
|
20648
20657
|
* [0-9]|+|-|.
|
|
@@ -20653,7 +20662,7 @@ function isDigitStart(code) {
|
|
|
20653
20662
|
function isDigit(code) {
|
|
20654
20663
|
return code >= 48 && code <= 57;
|
|
20655
20664
|
}
|
|
20656
|
-
//
|
|
20665
|
+
// node_modules/@antv/util/esm/path/parser/scan-param.js
|
|
20657
20666
|
/**
|
|
20658
20667
|
* Validates every character of the path string,
|
|
20659
20668
|
* every path command, negative numbers or floating point numbers.
|
|
@@ -20721,7 +20730,7 @@ function scanParam(path) {
|
|
|
20721
20730
|
path.index = index;
|
|
20722
20731
|
path.param = +path.pathValue.slice(start, index);
|
|
20723
20732
|
}
|
|
20724
|
-
//
|
|
20733
|
+
// node_modules/@antv/util/esm/path/parser/is-space.js
|
|
20725
20734
|
/**
|
|
20726
20735
|
* Checks if the character is a space.
|
|
20727
20736
|
*/
|
|
@@ -20747,7 +20756,7 @@ function isSpace(ch) {
|
|
|
20747
20756
|
65279
|
|
20748
20757
|
].includes(ch);
|
|
20749
20758
|
}
|
|
20750
|
-
//
|
|
20759
|
+
// node_modules/@antv/util/esm/path/parser/skip-spaces.js
|
|
20751
20760
|
/**
|
|
20752
20761
|
* Points the parser to the next character in the
|
|
20753
20762
|
* path string every time it encounters any kind of
|
|
@@ -20757,7 +20766,7 @@ function skipSpaces(path) {
|
|
|
20757
20766
|
var pathValue = path.pathValue, max = path.max;
|
|
20758
20767
|
while (path.index < max && isSpace(pathValue.charCodeAt(path.index))) path.index += 1;
|
|
20759
20768
|
}
|
|
20760
|
-
//
|
|
20769
|
+
// node_modules/@antv/util/esm/path/parser/is-path-command.js
|
|
20761
20770
|
/**
|
|
20762
20771
|
* Checks if the character is a path command.
|
|
20763
20772
|
*/
|
|
@@ -20776,14 +20785,14 @@ function isPathCommand(code) {
|
|
|
20776
20785
|
default: return false;
|
|
20777
20786
|
}
|
|
20778
20787
|
}
|
|
20779
|
-
//
|
|
20788
|
+
// node_modules/@antv/util/esm/path/parser/is-arc-command.js
|
|
20780
20789
|
/**
|
|
20781
20790
|
* Checks if the character is an A (arc-to) path command.
|
|
20782
20791
|
*/
|
|
20783
20792
|
function isArcCommand(code) {
|
|
20784
20793
|
return (code | 32) === 97;
|
|
20785
20794
|
}
|
|
20786
|
-
//
|
|
20795
|
+
// node_modules/@antv/util/esm/path/parser/scan-segment.js
|
|
20787
20796
|
/**
|
|
20788
20797
|
* Scans every character in the path string to determine
|
|
20789
20798
|
* where a segment starts and where it ends.
|
|
@@ -20821,7 +20830,7 @@ function scanSegment(path) {
|
|
|
20821
20830
|
}
|
|
20822
20831
|
finalizeSegment(path);
|
|
20823
20832
|
}
|
|
20824
|
-
//
|
|
20833
|
+
// node_modules/@antv/util/esm/path/parser/path-parser.js
|
|
20825
20834
|
/**
|
|
20826
20835
|
* The `PathParser` is used by the `parsePathString` static method
|
|
20827
20836
|
* to generate a `pathArray`.
|
|
@@ -20839,7 +20848,7 @@ var PathParser = function() {
|
|
|
20839
20848
|
}
|
|
20840
20849
|
return PathParser;
|
|
20841
20850
|
}();
|
|
20842
|
-
//
|
|
20851
|
+
// node_modules/@antv/util/esm/path/parser/parse-path-string.js
|
|
20843
20852
|
/**
|
|
20844
20853
|
* Parses a path string value and returns an array
|
|
20845
20854
|
* of segments we like to call `pathArray`.
|
|
@@ -20851,7 +20860,7 @@ function parsePathString(pathInput) {
|
|
|
20851
20860
|
while (path.index < path.max && !path.err.length) scanSegment(path);
|
|
20852
20861
|
return path.err ? path.err : path.segments;
|
|
20853
20862
|
}
|
|
20854
|
-
//
|
|
20863
|
+
// node_modules/@antv/util/esm/path/convert/path-2-absolute.js
|
|
20855
20864
|
/**
|
|
20856
20865
|
* Converts a `PathArray` to an `AbsoluteArray`.
|
|
20857
20866
|
*/
|
|
@@ -20926,7 +20935,7 @@ function path2Absolute(pathInput) {
|
|
|
20926
20935
|
return absoluteSegment;
|
|
20927
20936
|
});
|
|
20928
20937
|
}
|
|
20929
|
-
//
|
|
20938
|
+
// node_modules/@antv/util/esm/path/process/normalize-segment.js
|
|
20930
20939
|
/**
|
|
20931
20940
|
* Normalizes a single segment of a `PathArray` object.
|
|
20932
20941
|
* eg. H/V -> L, T -> Q
|
|
@@ -20977,7 +20986,7 @@ function normalizeSegment(segment, params) {
|
|
|
20977
20986
|
}
|
|
20978
20987
|
return result;
|
|
20979
20988
|
}
|
|
20980
|
-
//
|
|
20989
|
+
// node_modules/@antv/util/esm/path/process/normalize-path.js
|
|
20981
20990
|
/**
|
|
20982
20991
|
* @example
|
|
20983
20992
|
* const path = 'M0 0 H50';
|
|
@@ -20999,7 +21008,7 @@ function normalizePath(pathInput) {
|
|
|
20999
21008
|
}
|
|
21000
21009
|
return path;
|
|
21001
21010
|
}
|
|
21002
|
-
//
|
|
21011
|
+
// node_modules/@antv/util/esm/path/util/is-curve-array.js
|
|
21003
21012
|
/**
|
|
21004
21013
|
* Iterates an array to check if it's a `PathArray`
|
|
21005
21014
|
* with all C (cubic bezier) segments.
|
|
@@ -21013,14 +21022,14 @@ function isCurveArray(path) {
|
|
|
21013
21022
|
return "MC".includes(pc);
|
|
21014
21023
|
});
|
|
21015
21024
|
}
|
|
21016
|
-
//
|
|
21025
|
+
// node_modules/@antv/util/esm/path/util/rotate-vector.js
|
|
21017
21026
|
function rotateVector(x, y, rad) {
|
|
21018
21027
|
return {
|
|
21019
21028
|
x: x * Math.cos(rad) - y * Math.sin(rad),
|
|
21020
21029
|
y: x * Math.sin(rad) + y * Math.cos(rad)
|
|
21021
21030
|
};
|
|
21022
21031
|
}
|
|
21023
|
-
//
|
|
21032
|
+
// node_modules/@antv/util/esm/path/process/arc-2-cubic.js
|
|
21024
21033
|
/**
|
|
21025
21034
|
* Converts A (arc-to) segments to C (cubic-bezier-to).
|
|
21026
21035
|
*
|
|
@@ -21107,7 +21116,7 @@ function arcToCubic(X1, Y1, RX, RY, angle, LAF, SF, X2, Y2, recursive) {
|
|
|
21107
21116
|
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;
|
|
21108
21117
|
return newres;
|
|
21109
21118
|
}
|
|
21110
|
-
//
|
|
21119
|
+
// node_modules/@antv/util/esm/path/process/quad-2-cubic.js
|
|
21111
21120
|
function quadToCubic(x1, y1, qx, qy, x2, y2) {
|
|
21112
21121
|
var r13 = 1 / 3;
|
|
21113
21122
|
var r23 = 2 / 3;
|
|
@@ -21120,7 +21129,7 @@ function quadToCubic(x1, y1, qx, qy, x2, y2) {
|
|
|
21120
21129
|
y2
|
|
21121
21130
|
];
|
|
21122
21131
|
}
|
|
21123
|
-
//
|
|
21132
|
+
// node_modules/@antv/util/esm/path/util/mid-point.js
|
|
21124
21133
|
function midPoint(a, b, t) {
|
|
21125
21134
|
var ax = a[0];
|
|
21126
21135
|
var ay = a[1];
|
|
@@ -21128,7 +21137,7 @@ function midPoint(a, b, t) {
|
|
|
21128
21137
|
var by = b[1];
|
|
21129
21138
|
return [ax + (bx - ax) * t, ay + (by - ay) * t];
|
|
21130
21139
|
}
|
|
21131
|
-
//
|
|
21140
|
+
// node_modules/@antv/util/esm/path/process/line-2-cubic.js
|
|
21132
21141
|
var lineToCubic = function(x1, y1, x2, y2) {
|
|
21133
21142
|
return __spreadArray(__spreadArray([], midPoint([x1, y1], [x2, y2], .5), true), [
|
|
21134
21143
|
x2,
|
|
@@ -21137,7 +21146,7 @@ var lineToCubic = function(x1, y1, x2, y2) {
|
|
|
21137
21146
|
y2
|
|
21138
21147
|
], false);
|
|
21139
21148
|
};
|
|
21140
|
-
//
|
|
21149
|
+
// node_modules/@antv/util/esm/path/process/segment-2-cubic.js
|
|
21141
21150
|
function segmentToCubic(segment, params) {
|
|
21142
21151
|
var pathCommand = segment[0];
|
|
21143
21152
|
var values = segment.slice(1).map(Number);
|
|
@@ -21176,7 +21185,7 @@ function segmentToCubic(segment, params) {
|
|
|
21176
21185
|
}
|
|
21177
21186
|
return segment;
|
|
21178
21187
|
}
|
|
21179
|
-
//
|
|
21188
|
+
// node_modules/@antv/util/esm/path/convert/path-2-curve.js
|
|
21180
21189
|
function path2Curve(pathInput, needZCommandIndexes) {
|
|
21181
21190
|
if (needZCommandIndexes === void 0) needZCommandIndexes = false;
|
|
21182
21191
|
if (isCurveArray(pathInput)) {
|
|
@@ -21210,13 +21219,13 @@ function path2Curve(pathInput, needZCommandIndexes) {
|
|
|
21210
21219
|
if (needZCommandIndexes) return [path, zCommandIndexes];
|
|
21211
21220
|
else return path;
|
|
21212
21221
|
}
|
|
21213
|
-
//
|
|
21222
|
+
// node_modules/@antv/util/esm/path/process/clone-path.js
|
|
21214
21223
|
function clonePath(path) {
|
|
21215
21224
|
return path.map(function(x) {
|
|
21216
21225
|
return Array.isArray(x) ? [].concat(x) : x;
|
|
21217
21226
|
});
|
|
21218
21227
|
}
|
|
21219
|
-
//
|
|
21228
|
+
// node_modules/@antv/util/esm/path/process/reverse-curve.js
|
|
21220
21229
|
function reverseCurve(pathArray) {
|
|
21221
21230
|
var rotatedCurve = pathArray.slice(1).map(function(x, i, curveOnly) {
|
|
21222
21231
|
return !i ? pathArray[0].slice(1).concat(x.slice(1)) : curveOnly[i - 1].slice(-2).concat(x.slice(1));
|
|
@@ -21229,11 +21238,11 @@ function reverseCurve(pathArray) {
|
|
|
21229
21238
|
return ["C"].concat(x.slice(2));
|
|
21230
21239
|
}));
|
|
21231
21240
|
}
|
|
21232
|
-
//
|
|
21241
|
+
// node_modules/@antv/util/esm/path/util/distance-square-root.js
|
|
21233
21242
|
function distanceSquareRoot(a, b) {
|
|
21234
21243
|
return Math.sqrt((a[0] - b[0]) * (a[0] - b[0]) + (a[1] - b[1]) * (a[1] - b[1]));
|
|
21235
21244
|
}
|
|
21236
|
-
//
|
|
21245
|
+
// node_modules/@antv/util/esm/path/util/segment-line-factory.js
|
|
21237
21246
|
/**
|
|
21238
21247
|
* Returns a {x,y} point at a given length, the total length and
|
|
21239
21248
|
* the minimum and maximum {x,y} coordinates of a line (L,V,H,Z) segment.
|
|
@@ -21274,7 +21283,7 @@ function segmentLineFactory(x1, y1, x2, y2, distance) {
|
|
|
21274
21283
|
}
|
|
21275
21284
|
};
|
|
21276
21285
|
}
|
|
21277
|
-
//
|
|
21286
|
+
// node_modules/@antv/util/esm/path/util/segment-arc-factory.js
|
|
21278
21287
|
function angleBetween$1(v0, v1) {
|
|
21279
21288
|
var v0x = v0.x, v0y = v0.y;
|
|
21280
21289
|
var v1x = v1.x, v1y = v1.y;
|
|
@@ -21421,7 +21430,7 @@ function segmentArcFactory(X1, Y1, RX, RY, angle, LAF, SF, X2, Y2, distance, opt
|
|
|
21421
21430
|
}
|
|
21422
21431
|
};
|
|
21423
21432
|
}
|
|
21424
|
-
//
|
|
21433
|
+
// node_modules/@antv/util/esm/path/util/segment-cubic-factory.js
|
|
21425
21434
|
/**
|
|
21426
21435
|
* Returns a {x,y} point at a given length, the total length and
|
|
21427
21436
|
* the minimum and maximum {x,y} coordinates of a C (cubic-bezier) segment.
|
|
@@ -21510,7 +21519,7 @@ function segmentCubicFactory(x1, y1, c1x, c1y, c2x, c2y, x2, y2, distance, optio
|
|
|
21510
21519
|
}
|
|
21511
21520
|
};
|
|
21512
21521
|
}
|
|
21513
|
-
//
|
|
21522
|
+
// node_modules/@antv/util/esm/path/util/segment-quad-factory.js
|
|
21514
21523
|
/**
|
|
21515
21524
|
* Returns the {x,y} coordinates of a point at a
|
|
21516
21525
|
* given length of a quadratic-bezier segment.
|
|
@@ -21602,7 +21611,7 @@ function segmentQuadFactory(x1, y1, qx, qy, x2, y2, distance, options) {
|
|
|
21602
21611
|
}
|
|
21603
21612
|
};
|
|
21604
21613
|
}
|
|
21605
|
-
//
|
|
21614
|
+
// node_modules/@antv/util/esm/path/util/path-length-factory.js
|
|
21606
21615
|
/**
|
|
21607
21616
|
* Returns a {x,y} point at a given length
|
|
21608
21617
|
* of a shape, the shape total length and
|
|
@@ -21690,7 +21699,7 @@ function pathLengthFactory(pathInput, distance, options) {
|
|
|
21690
21699
|
}
|
|
21691
21700
|
};
|
|
21692
21701
|
}
|
|
21693
|
-
//
|
|
21702
|
+
// node_modules/@antv/util/esm/path/util/get-total-length.js
|
|
21694
21703
|
/**
|
|
21695
21704
|
* Returns the shape total length, or the equivalent to `shape.getTotalLength()`.
|
|
21696
21705
|
*
|
|
@@ -21703,7 +21712,7 @@ function getTotalLength(pathInput, options) {
|
|
|
21703
21712
|
length: true
|
|
21704
21713
|
})).length;
|
|
21705
21714
|
}
|
|
21706
|
-
//
|
|
21715
|
+
// node_modules/@antv/util/esm/path/util/get-rotated-curve.js
|
|
21707
21716
|
function getRotations(a) {
|
|
21708
21717
|
var segCount = a.length;
|
|
21709
21718
|
var pointCount = segCount - 1;
|
|
@@ -21736,7 +21745,7 @@ function getRotatedCurve(a, b) {
|
|
|
21736
21745
|
computedIndex = lineLengths.indexOf(Math.min.apply(null, lineLengths));
|
|
21737
21746
|
return rotations[computedIndex];
|
|
21738
21747
|
}
|
|
21739
|
-
//
|
|
21748
|
+
// node_modules/@antv/util/esm/path/util/get-path-area.js
|
|
21740
21749
|
/**
|
|
21741
21750
|
* Returns the area of a single cubic-bezier segment.
|
|
21742
21751
|
*
|
|
@@ -21771,11 +21780,11 @@ function getPathArea(path) {
|
|
|
21771
21780
|
return a + b;
|
|
21772
21781
|
}, 0);
|
|
21773
21782
|
}
|
|
21774
|
-
//
|
|
21783
|
+
// node_modules/@antv/util/esm/path/util/get-draw-direction.js
|
|
21775
21784
|
function getDrawDirection(pathArray) {
|
|
21776
21785
|
return getPathArea(pathArray) >= 0;
|
|
21777
21786
|
}
|
|
21778
|
-
//
|
|
21787
|
+
// node_modules/@antv/util/esm/path/util/get-point-at-length.js
|
|
21779
21788
|
/**
|
|
21780
21789
|
* Returns [x,y] coordinates of a point at a given length of a shape.
|
|
21781
21790
|
*/
|
|
@@ -21785,7 +21794,7 @@ function getPointAtLength(pathInput, distance, options) {
|
|
|
21785
21794
|
length: true
|
|
21786
21795
|
})).point;
|
|
21787
21796
|
}
|
|
21788
|
-
//
|
|
21797
|
+
// node_modules/@antv/util/esm/path/util/equalize-segments.js
|
|
21789
21798
|
var MAX_RECURSION_DEPTH = 50;
|
|
21790
21799
|
function splitCubic(pts, t) {
|
|
21791
21800
|
if (t === void 0) t = .5;
|
|
@@ -21856,12 +21865,12 @@ function equalizeSegments(path1, path2, TL, depth) {
|
|
|
21856
21865
|
});
|
|
21857
21866
|
return result[0].length === result[1].length ? result : equalizeSegments(result[0], result[1], tl, depth + 1);
|
|
21858
21867
|
}
|
|
21859
|
-
//
|
|
21868
|
+
// node_modules/@babel/runtime/helpers/esm/superPropBase.js
|
|
21860
21869
|
function _superPropBase(t, o) {
|
|
21861
21870
|
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
|
|
21862
21871
|
return t;
|
|
21863
21872
|
}
|
|
21864
|
-
//
|
|
21873
|
+
// node_modules/@babel/runtime/helpers/esm/get.js
|
|
21865
21874
|
function _get() {
|
|
21866
21875
|
return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e, t, r) {
|
|
21867
21876
|
var p = _superPropBase(e, t);
|
|
@@ -21871,14 +21880,14 @@ function _get() {
|
|
|
21871
21880
|
}
|
|
21872
21881
|
}, _get.apply(null, arguments);
|
|
21873
21882
|
}
|
|
21874
|
-
//
|
|
21883
|
+
// node_modules/@babel/runtime/helpers/esm/superPropGet.js
|
|
21875
21884
|
function _superPropGet(t, o, e, r) {
|
|
21876
21885
|
var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
|
|
21877
21886
|
return 2 & r && "function" == typeof p ? function(t) {
|
|
21878
21887
|
return p.apply(e, t);
|
|
21879
21888
|
} : p;
|
|
21880
21889
|
}
|
|
21881
|
-
//
|
|
21890
|
+
// node_modules/@antv/g-math/dist/index.esm.js
|
|
21882
21891
|
/*!
|
|
21883
21892
|
* @antv/g-math
|
|
21884
21893
|
* @description Geometry util
|
|
@@ -22035,11 +22044,11 @@ function box(x1, y1, x2, y2, x3, y3) {
|
|
|
22035
22044
|
if (yExtrema !== void 0) yArr.push(quadraticAt(y1, y2, y3, yExtrema));
|
|
22036
22045
|
return getBBoxByArray(xArr, yArr);
|
|
22037
22046
|
}
|
|
22038
|
-
//
|
|
22047
|
+
// node_modules/@babel/runtime/helpers/esm/OverloadYield.js
|
|
22039
22048
|
function _OverloadYield(e, d) {
|
|
22040
22049
|
this.v = e, this.k = d;
|
|
22041
22050
|
}
|
|
22042
|
-
//
|
|
22051
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js
|
|
22043
22052
|
function _regeneratorDefine(e, r, n, t) {
|
|
22044
22053
|
var i = Object.defineProperty;
|
|
22045
22054
|
try {
|
|
@@ -22061,7 +22070,7 @@ function _regeneratorDefine(e, r, n, t) {
|
|
|
22061
22070
|
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
22062
22071
|
}, _regeneratorDefine(e, r, n, t);
|
|
22063
22072
|
}
|
|
22064
|
-
//
|
|
22073
|
+
// node_modules/@babel/runtime/helpers/esm/regenerator.js
|
|
22065
22074
|
function _regenerator() {
|
|
22066
22075
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
22067
22076
|
var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag";
|
|
@@ -22134,7 +22143,7 @@ function _regenerator() {
|
|
|
22134
22143
|
};
|
|
22135
22144
|
})();
|
|
22136
22145
|
}
|
|
22137
|
-
//
|
|
22146
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js
|
|
22138
22147
|
function AsyncIterator$1(t, e) {
|
|
22139
22148
|
function n(r, o, i, f) {
|
|
22140
22149
|
try {
|
|
@@ -22164,18 +22173,18 @@ function AsyncIterator$1(t, e) {
|
|
|
22164
22173
|
return r = r ? r.then(f, f) : f();
|
|
22165
22174
|
}, !0);
|
|
22166
22175
|
}
|
|
22167
|
-
//
|
|
22176
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js
|
|
22168
22177
|
function _regeneratorAsyncGen(r, e, t, o, n) {
|
|
22169
22178
|
return new AsyncIterator$1(_regenerator().w(r, e, t, o), n || Promise);
|
|
22170
22179
|
}
|
|
22171
|
-
//
|
|
22180
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js
|
|
22172
22181
|
function _regeneratorAsync(n, e, r, t, o) {
|
|
22173
22182
|
var a = _regeneratorAsyncGen(n, e, r, t, o);
|
|
22174
22183
|
return a.next().then(function(n) {
|
|
22175
22184
|
return n.done ? n.value : a.next();
|
|
22176
22185
|
});
|
|
22177
22186
|
}
|
|
22178
|
-
//
|
|
22187
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js
|
|
22179
22188
|
function _regeneratorKeys(e) {
|
|
22180
22189
|
var n = Object(e), r = [];
|
|
22181
22190
|
for (var t in n) r.unshift(t);
|
|
@@ -22184,7 +22193,7 @@ function _regeneratorKeys(e) {
|
|
|
22184
22193
|
return e.done = !0, e;
|
|
22185
22194
|
};
|
|
22186
22195
|
}
|
|
22187
|
-
//
|
|
22196
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorValues.js
|
|
22188
22197
|
function _regeneratorValues(e) {
|
|
22189
22198
|
if (null != e) {
|
|
22190
22199
|
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0;
|
|
@@ -22199,7 +22208,7 @@ function _regeneratorValues(e) {
|
|
|
22199
22208
|
}
|
|
22200
22209
|
throw new TypeError(_typeof(e) + " is not iterable");
|
|
22201
22210
|
}
|
|
22202
|
-
//
|
|
22211
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
22203
22212
|
function _regeneratorRuntime() {
|
|
22204
22213
|
"use strict";
|
|
22205
22214
|
var r = _regenerator(), e = r.m(_regeneratorRuntime), t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
|
|
@@ -22266,7 +22275,7 @@ function _regeneratorRuntime() {
|
|
|
22266
22275
|
};
|
|
22267
22276
|
})();
|
|
22268
22277
|
}
|
|
22269
|
-
//
|
|
22278
|
+
// node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
22270
22279
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
22271
22280
|
try {
|
|
22272
22281
|
var i = n[a](c), u = i.value;
|
|
@@ -22291,7 +22300,7 @@ function _asyncToGenerator(n) {
|
|
|
22291
22300
|
});
|
|
22292
22301
|
};
|
|
22293
22302
|
}
|
|
22294
|
-
//
|
|
22303
|
+
// node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
22295
22304
|
function _createForOfIteratorHelper(r, e) {
|
|
22296
22305
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
22297
22306
|
if (!t) {
|
|
@@ -22335,7 +22344,7 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
22335
22344
|
}
|
|
22336
22345
|
};
|
|
22337
22346
|
}
|
|
22338
|
-
//
|
|
22347
|
+
// node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
22339
22348
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
22340
22349
|
if (null == r) return {};
|
|
22341
22350
|
var t = {};
|
|
@@ -22345,7 +22354,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
22345
22354
|
}
|
|
22346
22355
|
return t;
|
|
22347
22356
|
}
|
|
22348
|
-
//
|
|
22357
|
+
// node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
22349
22358
|
function _objectWithoutProperties(e, t) {
|
|
22350
22359
|
if (null == e) return {};
|
|
22351
22360
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -22355,7 +22364,7 @@ function _objectWithoutProperties(e, t) {
|
|
|
22355
22364
|
}
|
|
22356
22365
|
return i;
|
|
22357
22366
|
}
|
|
22358
|
-
//
|
|
22367
|
+
// node_modules/@antv/g-lite/dist/index.esm.js
|
|
22359
22368
|
/*!
|
|
22360
22369
|
* @antv/g-lite
|
|
22361
22370
|
* @description A core module for rendering engine implements DOM API.
|
|
@@ -56322,7 +56331,7 @@ function render_tabs(gobj, items) {
|
|
|
56322
56331
|
let has_label = show_label && !(0, _yuneta_gobj_js.empty_string)(it.name);
|
|
56323
56332
|
let pinned = !(0, _yuneta_gobj_js.empty_string)(it.icon) && !has_label;
|
|
56324
56333
|
let badge_el = item_badge_node(gobj, it, pinned);
|
|
56325
|
-
if (!(0, _yuneta_gobj_js.empty_string)(it.icon)) children.push(icon_span(it.icon, "icon
|
|
56334
|
+
if (!(0, _yuneta_gobj_js.empty_string)(it.icon)) children.push(icon_span(it.icon, "icon", pinned ? badge_el : null, true));
|
|
56326
56335
|
if (has_label) children.push([
|
|
56327
56336
|
"span",
|
|
56328
56337
|
{ i18n: it.name },
|
|
@@ -56495,14 +56504,7 @@ function render_backbar(gobj) {
|
|
|
56495
56504
|
[
|
|
56496
56505
|
"a",
|
|
56497
56506
|
a_attrs,
|
|
56498
|
-
[[
|
|
56499
|
-
"span",
|
|
56500
|
-
{ class: "icon is-small" },
|
|
56501
|
-
["i", {
|
|
56502
|
-
class: "yi-arrow-left",
|
|
56503
|
-
"aria-hidden": "true"
|
|
56504
|
-
}]
|
|
56505
|
-
], [
|
|
56507
|
+
[icon_span("yi-arrow-left", "icon", null, true), [
|
|
56506
56508
|
"span",
|
|
56507
56509
|
label_attrs,
|
|
56508
56510
|
text_node(label)
|
|
@@ -56652,7 +56654,7 @@ function item_li(gobj, it, opts) {
|
|
|
56652
56654
|
] : null;
|
|
56653
56655
|
let pinned = !(0, _yuneta_gobj_js.empty_string)(it.icon) && (is_stacked || !label_el);
|
|
56654
56656
|
let badge_el = item_badge_node(gobj, it, pinned);
|
|
56655
|
-
let icon_el = !(0, _yuneta_gobj_js.empty_string)(it.icon) ? icon_span(it.icon, "icon", pinned ? badge_el : null) : null;
|
|
56657
|
+
let icon_el = !(0, _yuneta_gobj_js.empty_string)(it.icon) ? icon_span(it.icon, "icon", pinned ? badge_el : null, true) : null;
|
|
56656
56658
|
let a_class = "yui-nav-item";
|
|
56657
56659
|
if (is_stacked) a_class += " yui-nav-stacked";
|
|
56658
56660
|
if (icon_pos === "right" || icon_pos === "bottom") {
|
|
@@ -56759,9 +56761,13 @@ function item_badge_node(gobj, it, pinned) {
|
|
|
56759
56761
|
}
|
|
56760
56762
|
/************************************************************
|
|
56761
56763
|
* An item's icon, with its badge on the corner when given one.
|
|
56764
|
+
* `row_glyph`: the glyph of a tab or a menu entry, at the one
|
|
56765
|
+
* size of the toolbars (yui_toolbar_icon). Without it the
|
|
56766
|
+
* glyph takes the size the layout gives it (the icon bar, the
|
|
56767
|
+
* cards).
|
|
56762
56768
|
************************************************************/
|
|
56763
|
-
function icon_span(icon, classes, badge_el) {
|
|
56764
|
-
let glyph = ["i", {
|
|
56769
|
+
function icon_span(icon, classes, badge_el, row_glyph) {
|
|
56770
|
+
let glyph = row_glyph ? yui_toolbar_icon(icon) : ["i", {
|
|
56765
56771
|
class: icon,
|
|
56766
56772
|
"aria-hidden": "true"
|
|
56767
56773
|
}];
|
|
@@ -58422,11 +58428,8 @@ function add_tab(gobj, gobj2, id, text, icon) {
|
|
|
58422
58428
|
let $a = $item.querySelector("a");
|
|
58423
58429
|
if (icon) $a.appendChild((0, _yuneta_gobj_js.createElement2)([
|
|
58424
58430
|
"span",
|
|
58425
|
-
{ class: "icon is-
|
|
58426
|
-
[
|
|
58427
|
-
class: `${icon}`,
|
|
58428
|
-
"aria-hidden": "true"
|
|
58429
|
-
}]
|
|
58431
|
+
{ class: "icon is-hidden-mobile" },
|
|
58432
|
+
[yui_toolbar_icon(icon)]
|
|
58430
58433
|
]));
|
|
58431
58434
|
$a.appendChild((0, _yuneta_gobj_js.createElement2)([
|
|
58432
58435
|
"span",
|