@yuneta/gobj-ui 7.32.6 → 7.32.8
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 +23 -1
- package/dist/gobj-ui.cjs.js +144 -123
- package/dist/gobj-ui.es.js +144 -123
- 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 +111 -0
- package/src/tabulator_css.test.js +88 -32
- package/src/yui_toolbar.js +1 -33
- package/src/yui_toolbar_icon.js +63 -0
package/dist/gobj-ui.es.js
CHANGED
|
@@ -16552,7 +16552,24 @@ function create_gclass$15(gclass_name) {
|
|
|
16552
16552
|
function register_c_yui_uplot() {
|
|
16553
16553
|
return create_gclass$15(GCLASS_NAME$15);
|
|
16554
16554
|
}
|
|
16555
|
-
// src/
|
|
16555
|
+
// src/yui_toolbar_icon.js
|
|
16556
|
+
/***********************************************************************
|
|
16557
|
+
* yui_toolbar_icon.js
|
|
16558
|
+
*
|
|
16559
|
+
* The one size of the glyphs of a row of controls, and the
|
|
16560
|
+
* `<i>` that draws one at it.
|
|
16561
|
+
*
|
|
16562
|
+
* A module of its own, with no key and no CSS, so that a view
|
|
16563
|
+
* can take the size without taking the toolbar widget. In
|
|
16564
|
+
* 7.32.7 C_YUI_NAV imported it from yui_toolbar.js, and every
|
|
16565
|
+
* app that mounts a nav had to define the keys of the toolbar's
|
|
16566
|
+
* scroll arrows ("scroll left", "scroll right"), which
|
|
16567
|
+
* validate-locales reads in every module the app imports.
|
|
16568
|
+
* yui_toolbar.js exports the two names too, as before.
|
|
16569
|
+
*
|
|
16570
|
+
* Copyright (c) 2026, ArtGins.
|
|
16571
|
+
* All Rights Reserved.
|
|
16572
|
+
***********************************************************************/
|
|
16556
16573
|
/************************************************************
|
|
16557
16574
|
* ONE size for every glyph of a view's toolbar, in `rem`.
|
|
16558
16575
|
*
|
|
@@ -16574,14 +16591,24 @@ function register_c_yui_uplot() {
|
|
|
16574
16591
|
* glyph reads as a marker rather than as a second word. The
|
|
16575
16592
|
* app BAR is a different band and keeps its own, bigger size
|
|
16576
16593
|
* (`.yui-toolbar-item .icon`, 1.35rem on 44px items).
|
|
16594
|
+
*
|
|
16595
|
+
* It is also the size of the glyphs of the TABS and of the
|
|
16596
|
+
* MENU entries (C_YUI_NAV, the topic tabs of
|
|
16597
|
+
* C_YUI_TREEDB_TOPICS), and of the paginator of a table on a
|
|
16598
|
+
* phone (tabulator.css). Up to 7.32.6 a tab took the 16px of
|
|
16599
|
+
* its text, and right under a toolbar its icons read as
|
|
16600
|
+
* smaller than the toolbar's. The rows of a tab or a menu
|
|
16601
|
+
* entry are 24px of line, so the glyph changes no height.
|
|
16577
16602
|
************************************************************/
|
|
16578
16603
|
var YUI_TOOLBAR_ICON_SIZE = "1.25rem";
|
|
16579
16604
|
function yui_toolbar_icon(icon_class, extra_style) {
|
|
16580
16605
|
return ["i", {
|
|
16581
16606
|
class: icon_class,
|
|
16607
|
+
"aria-hidden": "true",
|
|
16582
16608
|
style: `font-size:${YUI_TOOLBAR_ICON_SIZE}; line-height:1; color:inherit;` + (extra_style || "")
|
|
16583
16609
|
}];
|
|
16584
16610
|
}
|
|
16611
|
+
// src/yui_toolbar.js
|
|
16585
16612
|
function yui_toolbar(attrs = {}, items = []) {
|
|
16586
16613
|
function arrow_button(side, icon, label) {
|
|
16587
16614
|
return [
|
|
@@ -17247,7 +17274,7 @@ async function yui_graph_center_on(graph, node_id) {
|
|
|
17247
17274
|
function yui_graph_refresh_item(gobj, wide) {
|
|
17248
17275
|
return camera_button(gobj, "yi-arrows-rotate", "EV_REFRESH", "refresh", wide);
|
|
17249
17276
|
}
|
|
17250
|
-
//
|
|
17277
|
+
// node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
17251
17278
|
function _typeof(o) {
|
|
17252
17279
|
"@babel/helpers - typeof";
|
|
17253
17280
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -17256,7 +17283,7 @@ function _typeof(o) {
|
|
|
17256
17283
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
17257
17284
|
}, _typeof(o);
|
|
17258
17285
|
}
|
|
17259
|
-
//
|
|
17286
|
+
// node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
17260
17287
|
function toPrimitive(t, e) {
|
|
17261
17288
|
if ("object" != _typeof(t) || !t) return t;
|
|
17262
17289
|
var r;
|
|
@@ -17267,12 +17294,12 @@ function toPrimitive(t, e) {
|
|
|
17267
17294
|
}
|
|
17268
17295
|
return ("string" === e ? String : Number)(t);
|
|
17269
17296
|
}
|
|
17270
|
-
//
|
|
17297
|
+
// node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
17271
17298
|
function toPropertyKey(t) {
|
|
17272
17299
|
var i = toPrimitive(t, "string");
|
|
17273
17300
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
17274
17301
|
}
|
|
17275
|
-
//
|
|
17302
|
+
// node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17276
17303
|
function _defineProperty(e, r, t) {
|
|
17277
17304
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
17278
17305
|
value: t,
|
|
@@ -17281,7 +17308,7 @@ function _defineProperty(e, r, t) {
|
|
|
17281
17308
|
writable: !0
|
|
17282
17309
|
}) : e[r] = t, e;
|
|
17283
17310
|
}
|
|
17284
|
-
//
|
|
17311
|
+
// node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
17285
17312
|
function ownKeys(e, r) {
|
|
17286
17313
|
var t = Object.keys(e);
|
|
17287
17314
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -17303,11 +17330,11 @@ function _objectSpread2(e) {
|
|
|
17303
17330
|
}
|
|
17304
17331
|
return e;
|
|
17305
17332
|
}
|
|
17306
|
-
//
|
|
17333
|
+
// node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
17307
17334
|
function _classCallCheck(a, n) {
|
|
17308
17335
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
17309
17336
|
}
|
|
17310
|
-
//
|
|
17337
|
+
// node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
17311
17338
|
function _defineProperties(e, r) {
|
|
17312
17339
|
for (var t = 0; t < r.length; t++) {
|
|
17313
17340
|
var o = r[t];
|
|
@@ -17317,21 +17344,21 @@ function _defineProperties(e, r) {
|
|
|
17317
17344
|
function _createClass(e, r, t) {
|
|
17318
17345
|
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
17319
17346
|
}
|
|
17320
|
-
//
|
|
17347
|
+
// node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
17321
17348
|
function _arrayLikeToArray(r, a) {
|
|
17322
17349
|
(null == a || a > r.length) && (a = r.length);
|
|
17323
17350
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
17324
17351
|
return n;
|
|
17325
17352
|
}
|
|
17326
|
-
//
|
|
17353
|
+
// node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
17327
17354
|
function _arrayWithoutHoles(r) {
|
|
17328
17355
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
17329
17356
|
}
|
|
17330
|
-
//
|
|
17357
|
+
// node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
17331
17358
|
function _iterableToArray(r) {
|
|
17332
17359
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
17333
17360
|
}
|
|
17334
|
-
//
|
|
17361
|
+
// node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
17335
17362
|
function _unsupportedIterableToArray(r, a) {
|
|
17336
17363
|
if (r) {
|
|
17337
17364
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -17339,21 +17366,21 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
17339
17366
|
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
17367
|
}
|
|
17341
17368
|
}
|
|
17342
|
-
//
|
|
17369
|
+
// node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
17343
17370
|
function _nonIterableSpread() {
|
|
17344
17371
|
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
17372
|
}
|
|
17346
|
-
//
|
|
17373
|
+
// node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
17347
17374
|
function _toConsumableArray(r) {
|
|
17348
17375
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
17349
17376
|
}
|
|
17350
|
-
//
|
|
17377
|
+
// node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
17351
17378
|
function _getPrototypeOf(t) {
|
|
17352
17379
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
17353
17380
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
17354
17381
|
}, _getPrototypeOf(t);
|
|
17355
17382
|
}
|
|
17356
|
-
//
|
|
17383
|
+
// node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
17357
17384
|
function _isNativeReflectConstruct() {
|
|
17358
17385
|
try {
|
|
17359
17386
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
@@ -17362,28 +17389,28 @@ function _isNativeReflectConstruct() {
|
|
|
17362
17389
|
return !!t;
|
|
17363
17390
|
})();
|
|
17364
17391
|
}
|
|
17365
|
-
//
|
|
17392
|
+
// node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
17366
17393
|
function _assertThisInitialized(e) {
|
|
17367
17394
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17368
17395
|
return e;
|
|
17369
17396
|
}
|
|
17370
|
-
//
|
|
17397
|
+
// node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
17371
17398
|
function _possibleConstructorReturn(t, e) {
|
|
17372
17399
|
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
17373
17400
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
17374
17401
|
return _assertThisInitialized(t);
|
|
17375
17402
|
}
|
|
17376
|
-
//
|
|
17403
|
+
// node_modules/@babel/runtime/helpers/esm/callSuper.js
|
|
17377
17404
|
function _callSuper(t, o, e) {
|
|
17378
17405
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
17379
17406
|
}
|
|
17380
|
-
//
|
|
17407
|
+
// node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
17381
17408
|
function _setPrototypeOf(t, e) {
|
|
17382
17409
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
17383
17410
|
return t.__proto__ = e, t;
|
|
17384
17411
|
}, _setPrototypeOf(t, e);
|
|
17385
17412
|
}
|
|
17386
|
-
//
|
|
17413
|
+
// node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
17387
17414
|
function _inherits(t, e) {
|
|
17388
17415
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
17389
17416
|
t.prototype = Object.create(e && e.prototype, { constructor: {
|
|
@@ -17392,11 +17419,11 @@ function _inherits(t, e) {
|
|
|
17392
17419
|
configurable: !0
|
|
17393
17420
|
} }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e);
|
|
17394
17421
|
}
|
|
17395
|
-
//
|
|
17422
|
+
// node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
17396
17423
|
function _arrayWithHoles(r) {
|
|
17397
17424
|
if (Array.isArray(r)) return r;
|
|
17398
17425
|
}
|
|
17399
|
-
//
|
|
17426
|
+
// node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
17400
17427
|
function _iterableToArrayLimit(r, l) {
|
|
17401
17428
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
17402
17429
|
if (null != t) {
|
|
@@ -17418,11 +17445,11 @@ function _iterableToArrayLimit(r, l) {
|
|
|
17418
17445
|
return a;
|
|
17419
17446
|
}
|
|
17420
17447
|
}
|
|
17421
|
-
//
|
|
17448
|
+
// node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
17422
17449
|
function _nonIterableRest() {
|
|
17423
17450
|
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
17451
|
}
|
|
17425
|
-
//
|
|
17452
|
+
// node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
17426
17453
|
function _slicedToArray(r, e) {
|
|
17427
17454
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
17428
17455
|
}
|
|
@@ -17661,7 +17688,7 @@ var eventemitter3_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJS
|
|
|
17661
17688
|
if ("undefined" !== typeof module) module.exports = EventEmitter;
|
|
17662
17689
|
})))(), 1)).default;
|
|
17663
17690
|
var ARRAY_TYPE = typeof Float32Array !== "undefined" ? Float32Array : Array;
|
|
17664
|
-
//
|
|
17691
|
+
// node_modules/gl-matrix/esm/mat3.js
|
|
17665
17692
|
/**
|
|
17666
17693
|
* 3x3 Matrix
|
|
17667
17694
|
* @module mat3
|
|
@@ -17732,7 +17759,7 @@ function fromValues$4(m00, m01, m02, m10, m11, m12, m20, m21, m22) {
|
|
|
17732
17759
|
out[8] = m22;
|
|
17733
17760
|
return out;
|
|
17734
17761
|
}
|
|
17735
|
-
//
|
|
17762
|
+
// node_modules/gl-matrix/esm/mat4.js
|
|
17736
17763
|
var mat4_exports = /* @__PURE__ */ __exportAll({
|
|
17737
17764
|
add: () => add$1,
|
|
17738
17765
|
adjoint: () => adjoint,
|
|
@@ -19539,7 +19566,7 @@ var mul$1 = multiply$2;
|
|
|
19539
19566
|
* @function
|
|
19540
19567
|
*/
|
|
19541
19568
|
var sub$1 = subtract$1;
|
|
19542
|
-
//
|
|
19569
|
+
// node_modules/gl-matrix/esm/vec3.js
|
|
19543
19570
|
/**
|
|
19544
19571
|
* 3 Dimensional Vector
|
|
19545
19572
|
* @module vec3
|
|
@@ -19888,7 +19915,7 @@ var len = length;
|
|
|
19888
19915
|
return a;
|
|
19889
19916
|
};
|
|
19890
19917
|
})();
|
|
19891
|
-
//
|
|
19918
|
+
// node_modules/gl-matrix/esm/vec4.js
|
|
19892
19919
|
/**
|
|
19893
19920
|
* 4 Dimensional Vector
|
|
19894
19921
|
* @module vec4
|
|
@@ -20014,7 +20041,7 @@ function transformMat4(out, a, m) {
|
|
|
20014
20041
|
return a;
|
|
20015
20042
|
};
|
|
20016
20043
|
})();
|
|
20017
|
-
//
|
|
20044
|
+
// node_modules/gl-matrix/esm/quat.js
|
|
20018
20045
|
/**
|
|
20019
20046
|
* Quaternion in the format XYZW
|
|
20020
20047
|
* @module quat
|
|
@@ -20320,7 +20347,7 @@ var normalize$1 = normalize$2;
|
|
|
20320
20347
|
return normalize$1(out, fromMat3(out, matr));
|
|
20321
20348
|
};
|
|
20322
20349
|
})();
|
|
20323
|
-
//
|
|
20350
|
+
// node_modules/gl-matrix/esm/vec2.js
|
|
20324
20351
|
/**
|
|
20325
20352
|
* 2 Dimensional Vector
|
|
20326
20353
|
* @module vec2
|
|
@@ -20381,7 +20408,7 @@ function set(out, x, y) {
|
|
|
20381
20408
|
return a;
|
|
20382
20409
|
};
|
|
20383
20410
|
})();
|
|
20384
|
-
//
|
|
20411
|
+
// node_modules/@antv/util/esm/lodash/is-function.js
|
|
20385
20412
|
/**
|
|
20386
20413
|
* 判断值是否为函数
|
|
20387
20414
|
* @return 是否为函数
|
|
@@ -20389,7 +20416,7 @@ function set(out, x, y) {
|
|
|
20389
20416
|
function isFunction(value) {
|
|
20390
20417
|
return typeof value === "function";
|
|
20391
20418
|
}
|
|
20392
|
-
//
|
|
20419
|
+
// node_modules/@antv/util/esm/lodash/is-nil.js
|
|
20393
20420
|
/**
|
|
20394
20421
|
* 判断值是否为 null 或 undefined
|
|
20395
20422
|
* @return 是否为 null 或 undefined
|
|
@@ -20397,7 +20424,7 @@ function isFunction(value) {
|
|
|
20397
20424
|
function isNil(value) {
|
|
20398
20425
|
return value === null || value === void 0;
|
|
20399
20426
|
}
|
|
20400
|
-
//
|
|
20427
|
+
// node_modules/@antv/util/esm/lodash/is-array.js
|
|
20401
20428
|
/**
|
|
20402
20429
|
* 判断值是否为数组
|
|
20403
20430
|
* @return 是否为数组
|
|
@@ -20405,7 +20432,7 @@ function isNil(value) {
|
|
|
20405
20432
|
function isArray(value) {
|
|
20406
20433
|
return Array.isArray(value);
|
|
20407
20434
|
}
|
|
20408
|
-
//
|
|
20435
|
+
// node_modules/@antv/util/esm/lodash/is-object.js
|
|
20409
20436
|
var is_object_default = (function(value) {
|
|
20410
20437
|
/**
|
|
20411
20438
|
* isObject({}) => true
|
|
@@ -20416,12 +20443,12 @@ var is_object_default = (function(value) {
|
|
|
20416
20443
|
var type = typeof value;
|
|
20417
20444
|
return value !== null && type === "object" || type === "function";
|
|
20418
20445
|
});
|
|
20419
|
-
//
|
|
20446
|
+
// node_modules/@antv/util/esm/lodash/is-type.js
|
|
20420
20447
|
var toString = {}.toString;
|
|
20421
20448
|
var isType = function(value, type) {
|
|
20422
20449
|
return toString.call(value) === "[object " + type + "]";
|
|
20423
20450
|
};
|
|
20424
|
-
//
|
|
20451
|
+
// node_modules/@antv/util/esm/lodash/max.js
|
|
20425
20452
|
/**
|
|
20426
20453
|
* 计算数组的最大值
|
|
20427
20454
|
* @param arr 数组
|
|
@@ -20435,7 +20462,7 @@ function max(arr) {
|
|
|
20435
20462
|
for (var i = 1; i < length; i++) max = Math.max(max, arr[i]);
|
|
20436
20463
|
return max;
|
|
20437
20464
|
}
|
|
20438
|
-
//
|
|
20465
|
+
// node_modules/@antv/util/esm/lodash/min.js
|
|
20439
20466
|
/**
|
|
20440
20467
|
* @param {Array} arr The array to iterate over.
|
|
20441
20468
|
* @return {*} Returns the minimum value.
|
|
@@ -20459,7 +20486,7 @@ var min_default = (function(arr) {
|
|
|
20459
20486
|
return Math.min(prev, curr);
|
|
20460
20487
|
}, arr[0]);
|
|
20461
20488
|
});
|
|
20462
|
-
//
|
|
20489
|
+
// node_modules/@antv/util/esm/lodash/is-string.js
|
|
20463
20490
|
/**
|
|
20464
20491
|
* 判断值是否为字符串
|
|
20465
20492
|
* @return 是否为字符串
|
|
@@ -20467,13 +20494,13 @@ var min_default = (function(arr) {
|
|
|
20467
20494
|
function isString(value) {
|
|
20468
20495
|
return typeof value === "string";
|
|
20469
20496
|
}
|
|
20470
|
-
//
|
|
20497
|
+
// node_modules/@antv/util/esm/lodash/clamp.js
|
|
20471
20498
|
var clamp = function(a, min, max) {
|
|
20472
20499
|
if (a < min) return min;
|
|
20473
20500
|
else if (a > max) return max;
|
|
20474
20501
|
return a;
|
|
20475
20502
|
};
|
|
20476
|
-
//
|
|
20503
|
+
// node_modules/@antv/util/esm/lodash/is-number.js
|
|
20477
20504
|
/**
|
|
20478
20505
|
* 判断值是否为数字
|
|
20479
20506
|
* @return 是否为数字
|
|
@@ -20481,7 +20508,7 @@ var clamp = function(a, min, max) {
|
|
|
20481
20508
|
function isNumber(value) {
|
|
20482
20509
|
return typeof value === "number";
|
|
20483
20510
|
}
|
|
20484
|
-
//
|
|
20511
|
+
// node_modules/@antv/util/esm/lodash/is-number-equal.js
|
|
20485
20512
|
var PRECISION = 1e-5;
|
|
20486
20513
|
/**
|
|
20487
20514
|
* 判断两个数是否相等
|
|
@@ -20491,11 +20518,11 @@ function isNumberEqual(a, b, precision) {
|
|
|
20491
20518
|
if (precision === void 0) precision = PRECISION;
|
|
20492
20519
|
return a === b || Math.abs(a - b) < precision;
|
|
20493
20520
|
}
|
|
20494
|
-
//
|
|
20521
|
+
// node_modules/@antv/util/esm/lodash/mod.js
|
|
20495
20522
|
var mod = function(n, m) {
|
|
20496
20523
|
return (n % m + m) % m;
|
|
20497
20524
|
};
|
|
20498
|
-
//
|
|
20525
|
+
// node_modules/@antv/util/esm/lodash/is-boolean.js
|
|
20499
20526
|
/**
|
|
20500
20527
|
* 是否是布尔类型
|
|
20501
20528
|
*
|
|
@@ -20505,11 +20532,11 @@ var mod = function(n, m) {
|
|
|
20505
20532
|
var isBoolean = function(value) {
|
|
20506
20533
|
return isType(value, "Boolean");
|
|
20507
20534
|
};
|
|
20508
|
-
//
|
|
20535
|
+
// node_modules/@antv/util/esm/lodash/is-undefined.js
|
|
20509
20536
|
var isUndefined = function(value) {
|
|
20510
20537
|
return value === void 0;
|
|
20511
20538
|
};
|
|
20512
|
-
//
|
|
20539
|
+
// node_modules/tslib/tslib.es6.mjs
|
|
20513
20540
|
var __assign = function() {
|
|
20514
20541
|
__assign = Object.assign || function __assign(t) {
|
|
20515
20542
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -20529,7 +20556,7 @@ function __spreadArray(to, from, pack) {
|
|
|
20529
20556
|
}
|
|
20530
20557
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20531
20558
|
}
|
|
20532
|
-
//
|
|
20559
|
+
// node_modules/@antv/util/esm/path/parser/params-parser.js
|
|
20533
20560
|
var paramsParser = {
|
|
20534
20561
|
x1: 0,
|
|
20535
20562
|
y1: 0,
|
|
@@ -20540,7 +20567,7 @@ var paramsParser = {
|
|
|
20540
20567
|
qx: null,
|
|
20541
20568
|
qy: null
|
|
20542
20569
|
};
|
|
20543
|
-
//
|
|
20570
|
+
// node_modules/@antv/util/esm/path/process/fix-arc.js
|
|
20544
20571
|
function fixArc(pathArray, allPathCommands, i) {
|
|
20545
20572
|
if (pathArray[i].length > 7) {
|
|
20546
20573
|
pathArray[i].shift();
|
|
@@ -20553,7 +20580,7 @@ function fixArc(pathArray, allPathCommands, i) {
|
|
|
20553
20580
|
pathArray.splice(i, 1);
|
|
20554
20581
|
}
|
|
20555
20582
|
}
|
|
20556
|
-
//
|
|
20583
|
+
// node_modules/@antv/util/esm/path/parser/params-count.js
|
|
20557
20584
|
var paramsCount = {
|
|
20558
20585
|
a: 7,
|
|
20559
20586
|
c: 6,
|
|
@@ -20567,7 +20594,7 @@ var paramsCount = {
|
|
|
20567
20594
|
v: 1,
|
|
20568
20595
|
z: 0
|
|
20569
20596
|
};
|
|
20570
|
-
//
|
|
20597
|
+
// node_modules/@antv/util/esm/path/util/is-path-array.js
|
|
20571
20598
|
/**
|
|
20572
20599
|
* Iterates an array to check if it's an actual `PathArray`.
|
|
20573
20600
|
*/
|
|
@@ -20577,7 +20604,7 @@ function isPathArray(path) {
|
|
|
20577
20604
|
return paramsCount[lk] === seg.length - 1 && "achlmqstvz".includes(lk);
|
|
20578
20605
|
});
|
|
20579
20606
|
}
|
|
20580
|
-
//
|
|
20607
|
+
// node_modules/@antv/util/esm/path/util/is-absolute-array.js
|
|
20581
20608
|
/**
|
|
20582
20609
|
* Iterates an array to check if it's a `PathArray`
|
|
20583
20610
|
* with all absolute values.
|
|
@@ -20588,7 +20615,7 @@ function isAbsoluteArray(path) {
|
|
|
20588
20615
|
return x === x.toUpperCase();
|
|
20589
20616
|
});
|
|
20590
20617
|
}
|
|
20591
|
-
//
|
|
20618
|
+
// node_modules/@antv/util/esm/path/util/is-normalized-array.js
|
|
20592
20619
|
/**
|
|
20593
20620
|
* Iterates an array to check if it's a `PathArray`
|
|
20594
20621
|
* with all segments are in non-shorthand notation
|
|
@@ -20600,7 +20627,7 @@ function isNormalizedArray(path) {
|
|
|
20600
20627
|
return "ACLMQZ".includes(pc);
|
|
20601
20628
|
});
|
|
20602
20629
|
}
|
|
20603
|
-
//
|
|
20630
|
+
// node_modules/@antv/util/esm/path/parser/finalize-segment.js
|
|
20604
20631
|
/**
|
|
20605
20632
|
* Breaks the parsing of a pathString once a segment is finalized.
|
|
20606
20633
|
*/
|
|
@@ -20617,7 +20644,7 @@ function finalizeSegment(path) {
|
|
|
20617
20644
|
if (!paramsCount[LK]) break;
|
|
20618
20645
|
}
|
|
20619
20646
|
}
|
|
20620
|
-
//
|
|
20647
|
+
// node_modules/@antv/util/esm/path/parser/scan-flag.js
|
|
20621
20648
|
/**
|
|
20622
20649
|
* Validates an A (arc-to) specific path command value.
|
|
20623
20650
|
* Usually a `large-arc-flag` or `sweep-flag`.
|
|
@@ -20637,7 +20664,7 @@ function scanFlag(path) {
|
|
|
20637
20664
|
}
|
|
20638
20665
|
path.err = "[path-util]: invalid Arc flag \"".concat(pathValue[index], "\", expecting 0 or 1 at index ").concat(index);
|
|
20639
20666
|
}
|
|
20640
|
-
//
|
|
20667
|
+
// node_modules/@antv/util/esm/path/parser/is-digit-start.js
|
|
20641
20668
|
/**
|
|
20642
20669
|
* Checks if the character is or belongs to a number.
|
|
20643
20670
|
* [0-9]|+|-|.
|
|
@@ -20648,7 +20675,7 @@ function isDigitStart(code) {
|
|
|
20648
20675
|
function isDigit(code) {
|
|
20649
20676
|
return code >= 48 && code <= 57;
|
|
20650
20677
|
}
|
|
20651
|
-
//
|
|
20678
|
+
// node_modules/@antv/util/esm/path/parser/scan-param.js
|
|
20652
20679
|
/**
|
|
20653
20680
|
* Validates every character of the path string,
|
|
20654
20681
|
* every path command, negative numbers or floating point numbers.
|
|
@@ -20716,7 +20743,7 @@ function scanParam(path) {
|
|
|
20716
20743
|
path.index = index;
|
|
20717
20744
|
path.param = +path.pathValue.slice(start, index);
|
|
20718
20745
|
}
|
|
20719
|
-
//
|
|
20746
|
+
// node_modules/@antv/util/esm/path/parser/is-space.js
|
|
20720
20747
|
/**
|
|
20721
20748
|
* Checks if the character is a space.
|
|
20722
20749
|
*/
|
|
@@ -20742,7 +20769,7 @@ function isSpace(ch) {
|
|
|
20742
20769
|
65279
|
|
20743
20770
|
].includes(ch);
|
|
20744
20771
|
}
|
|
20745
|
-
//
|
|
20772
|
+
// node_modules/@antv/util/esm/path/parser/skip-spaces.js
|
|
20746
20773
|
/**
|
|
20747
20774
|
* Points the parser to the next character in the
|
|
20748
20775
|
* path string every time it encounters any kind of
|
|
@@ -20752,7 +20779,7 @@ function skipSpaces(path) {
|
|
|
20752
20779
|
var pathValue = path.pathValue, max = path.max;
|
|
20753
20780
|
while (path.index < max && isSpace(pathValue.charCodeAt(path.index))) path.index += 1;
|
|
20754
20781
|
}
|
|
20755
|
-
//
|
|
20782
|
+
// node_modules/@antv/util/esm/path/parser/is-path-command.js
|
|
20756
20783
|
/**
|
|
20757
20784
|
* Checks if the character is a path command.
|
|
20758
20785
|
*/
|
|
@@ -20771,14 +20798,14 @@ function isPathCommand(code) {
|
|
|
20771
20798
|
default: return false;
|
|
20772
20799
|
}
|
|
20773
20800
|
}
|
|
20774
|
-
//
|
|
20801
|
+
// node_modules/@antv/util/esm/path/parser/is-arc-command.js
|
|
20775
20802
|
/**
|
|
20776
20803
|
* Checks if the character is an A (arc-to) path command.
|
|
20777
20804
|
*/
|
|
20778
20805
|
function isArcCommand(code) {
|
|
20779
20806
|
return (code | 32) === 97;
|
|
20780
20807
|
}
|
|
20781
|
-
//
|
|
20808
|
+
// node_modules/@antv/util/esm/path/parser/scan-segment.js
|
|
20782
20809
|
/**
|
|
20783
20810
|
* Scans every character in the path string to determine
|
|
20784
20811
|
* where a segment starts and where it ends.
|
|
@@ -20816,7 +20843,7 @@ function scanSegment(path) {
|
|
|
20816
20843
|
}
|
|
20817
20844
|
finalizeSegment(path);
|
|
20818
20845
|
}
|
|
20819
|
-
//
|
|
20846
|
+
// node_modules/@antv/util/esm/path/parser/path-parser.js
|
|
20820
20847
|
/**
|
|
20821
20848
|
* The `PathParser` is used by the `parsePathString` static method
|
|
20822
20849
|
* to generate a `pathArray`.
|
|
@@ -20834,7 +20861,7 @@ var PathParser = function() {
|
|
|
20834
20861
|
}
|
|
20835
20862
|
return PathParser;
|
|
20836
20863
|
}();
|
|
20837
|
-
//
|
|
20864
|
+
// node_modules/@antv/util/esm/path/parser/parse-path-string.js
|
|
20838
20865
|
/**
|
|
20839
20866
|
* Parses a path string value and returns an array
|
|
20840
20867
|
* of segments we like to call `pathArray`.
|
|
@@ -20846,7 +20873,7 @@ function parsePathString(pathInput) {
|
|
|
20846
20873
|
while (path.index < path.max && !path.err.length) scanSegment(path);
|
|
20847
20874
|
return path.err ? path.err : path.segments;
|
|
20848
20875
|
}
|
|
20849
|
-
//
|
|
20876
|
+
// node_modules/@antv/util/esm/path/convert/path-2-absolute.js
|
|
20850
20877
|
/**
|
|
20851
20878
|
* Converts a `PathArray` to an `AbsoluteArray`.
|
|
20852
20879
|
*/
|
|
@@ -20921,7 +20948,7 @@ function path2Absolute(pathInput) {
|
|
|
20921
20948
|
return absoluteSegment;
|
|
20922
20949
|
});
|
|
20923
20950
|
}
|
|
20924
|
-
//
|
|
20951
|
+
// node_modules/@antv/util/esm/path/process/normalize-segment.js
|
|
20925
20952
|
/**
|
|
20926
20953
|
* Normalizes a single segment of a `PathArray` object.
|
|
20927
20954
|
* eg. H/V -> L, T -> Q
|
|
@@ -20972,7 +20999,7 @@ function normalizeSegment(segment, params) {
|
|
|
20972
20999
|
}
|
|
20973
21000
|
return result;
|
|
20974
21001
|
}
|
|
20975
|
-
//
|
|
21002
|
+
// node_modules/@antv/util/esm/path/process/normalize-path.js
|
|
20976
21003
|
/**
|
|
20977
21004
|
* @example
|
|
20978
21005
|
* const path = 'M0 0 H50';
|
|
@@ -20994,7 +21021,7 @@ function normalizePath(pathInput) {
|
|
|
20994
21021
|
}
|
|
20995
21022
|
return path;
|
|
20996
21023
|
}
|
|
20997
|
-
//
|
|
21024
|
+
// node_modules/@antv/util/esm/path/util/is-curve-array.js
|
|
20998
21025
|
/**
|
|
20999
21026
|
* Iterates an array to check if it's a `PathArray`
|
|
21000
21027
|
* with all C (cubic bezier) segments.
|
|
@@ -21008,14 +21035,14 @@ function isCurveArray(path) {
|
|
|
21008
21035
|
return "MC".includes(pc);
|
|
21009
21036
|
});
|
|
21010
21037
|
}
|
|
21011
|
-
//
|
|
21038
|
+
// node_modules/@antv/util/esm/path/util/rotate-vector.js
|
|
21012
21039
|
function rotateVector(x, y, rad) {
|
|
21013
21040
|
return {
|
|
21014
21041
|
x: x * Math.cos(rad) - y * Math.sin(rad),
|
|
21015
21042
|
y: x * Math.sin(rad) + y * Math.cos(rad)
|
|
21016
21043
|
};
|
|
21017
21044
|
}
|
|
21018
|
-
//
|
|
21045
|
+
// node_modules/@antv/util/esm/path/process/arc-2-cubic.js
|
|
21019
21046
|
/**
|
|
21020
21047
|
* Converts A (arc-to) segments to C (cubic-bezier-to).
|
|
21021
21048
|
*
|
|
@@ -21102,7 +21129,7 @@ function arcToCubic(X1, Y1, RX, RY, angle, LAF, SF, X2, Y2, recursive) {
|
|
|
21102
21129
|
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
21130
|
return newres;
|
|
21104
21131
|
}
|
|
21105
|
-
//
|
|
21132
|
+
// node_modules/@antv/util/esm/path/process/quad-2-cubic.js
|
|
21106
21133
|
function quadToCubic(x1, y1, qx, qy, x2, y2) {
|
|
21107
21134
|
var r13 = 1 / 3;
|
|
21108
21135
|
var r23 = 2 / 3;
|
|
@@ -21115,7 +21142,7 @@ function quadToCubic(x1, y1, qx, qy, x2, y2) {
|
|
|
21115
21142
|
y2
|
|
21116
21143
|
];
|
|
21117
21144
|
}
|
|
21118
|
-
//
|
|
21145
|
+
// node_modules/@antv/util/esm/path/util/mid-point.js
|
|
21119
21146
|
function midPoint(a, b, t) {
|
|
21120
21147
|
var ax = a[0];
|
|
21121
21148
|
var ay = a[1];
|
|
@@ -21123,7 +21150,7 @@ function midPoint(a, b, t) {
|
|
|
21123
21150
|
var by = b[1];
|
|
21124
21151
|
return [ax + (bx - ax) * t, ay + (by - ay) * t];
|
|
21125
21152
|
}
|
|
21126
|
-
//
|
|
21153
|
+
// node_modules/@antv/util/esm/path/process/line-2-cubic.js
|
|
21127
21154
|
var lineToCubic = function(x1, y1, x2, y2) {
|
|
21128
21155
|
return __spreadArray(__spreadArray([], midPoint([x1, y1], [x2, y2], .5), true), [
|
|
21129
21156
|
x2,
|
|
@@ -21132,7 +21159,7 @@ var lineToCubic = function(x1, y1, x2, y2) {
|
|
|
21132
21159
|
y2
|
|
21133
21160
|
], false);
|
|
21134
21161
|
};
|
|
21135
|
-
//
|
|
21162
|
+
// node_modules/@antv/util/esm/path/process/segment-2-cubic.js
|
|
21136
21163
|
function segmentToCubic(segment, params) {
|
|
21137
21164
|
var pathCommand = segment[0];
|
|
21138
21165
|
var values = segment.slice(1).map(Number);
|
|
@@ -21171,7 +21198,7 @@ function segmentToCubic(segment, params) {
|
|
|
21171
21198
|
}
|
|
21172
21199
|
return segment;
|
|
21173
21200
|
}
|
|
21174
|
-
//
|
|
21201
|
+
// node_modules/@antv/util/esm/path/convert/path-2-curve.js
|
|
21175
21202
|
function path2Curve(pathInput, needZCommandIndexes) {
|
|
21176
21203
|
if (needZCommandIndexes === void 0) needZCommandIndexes = false;
|
|
21177
21204
|
if (isCurveArray(pathInput)) {
|
|
@@ -21205,13 +21232,13 @@ function path2Curve(pathInput, needZCommandIndexes) {
|
|
|
21205
21232
|
if (needZCommandIndexes) return [path, zCommandIndexes];
|
|
21206
21233
|
else return path;
|
|
21207
21234
|
}
|
|
21208
|
-
//
|
|
21235
|
+
// node_modules/@antv/util/esm/path/process/clone-path.js
|
|
21209
21236
|
function clonePath(path) {
|
|
21210
21237
|
return path.map(function(x) {
|
|
21211
21238
|
return Array.isArray(x) ? [].concat(x) : x;
|
|
21212
21239
|
});
|
|
21213
21240
|
}
|
|
21214
|
-
//
|
|
21241
|
+
// node_modules/@antv/util/esm/path/process/reverse-curve.js
|
|
21215
21242
|
function reverseCurve(pathArray) {
|
|
21216
21243
|
var rotatedCurve = pathArray.slice(1).map(function(x, i, curveOnly) {
|
|
21217
21244
|
return !i ? pathArray[0].slice(1).concat(x.slice(1)) : curveOnly[i - 1].slice(-2).concat(x.slice(1));
|
|
@@ -21224,11 +21251,11 @@ function reverseCurve(pathArray) {
|
|
|
21224
21251
|
return ["C"].concat(x.slice(2));
|
|
21225
21252
|
}));
|
|
21226
21253
|
}
|
|
21227
|
-
//
|
|
21254
|
+
// node_modules/@antv/util/esm/path/util/distance-square-root.js
|
|
21228
21255
|
function distanceSquareRoot(a, b) {
|
|
21229
21256
|
return Math.sqrt((a[0] - b[0]) * (a[0] - b[0]) + (a[1] - b[1]) * (a[1] - b[1]));
|
|
21230
21257
|
}
|
|
21231
|
-
//
|
|
21258
|
+
// node_modules/@antv/util/esm/path/util/segment-line-factory.js
|
|
21232
21259
|
/**
|
|
21233
21260
|
* Returns a {x,y} point at a given length, the total length and
|
|
21234
21261
|
* the minimum and maximum {x,y} coordinates of a line (L,V,H,Z) segment.
|
|
@@ -21269,7 +21296,7 @@ function segmentLineFactory(x1, y1, x2, y2, distance) {
|
|
|
21269
21296
|
}
|
|
21270
21297
|
};
|
|
21271
21298
|
}
|
|
21272
|
-
//
|
|
21299
|
+
// node_modules/@antv/util/esm/path/util/segment-arc-factory.js
|
|
21273
21300
|
function angleBetween$1(v0, v1) {
|
|
21274
21301
|
var v0x = v0.x, v0y = v0.y;
|
|
21275
21302
|
var v1x = v1.x, v1y = v1.y;
|
|
@@ -21416,7 +21443,7 @@ function segmentArcFactory(X1, Y1, RX, RY, angle, LAF, SF, X2, Y2, distance, opt
|
|
|
21416
21443
|
}
|
|
21417
21444
|
};
|
|
21418
21445
|
}
|
|
21419
|
-
//
|
|
21446
|
+
// node_modules/@antv/util/esm/path/util/segment-cubic-factory.js
|
|
21420
21447
|
/**
|
|
21421
21448
|
* Returns a {x,y} point at a given length, the total length and
|
|
21422
21449
|
* the minimum and maximum {x,y} coordinates of a C (cubic-bezier) segment.
|
|
@@ -21505,7 +21532,7 @@ function segmentCubicFactory(x1, y1, c1x, c1y, c2x, c2y, x2, y2, distance, optio
|
|
|
21505
21532
|
}
|
|
21506
21533
|
};
|
|
21507
21534
|
}
|
|
21508
|
-
//
|
|
21535
|
+
// node_modules/@antv/util/esm/path/util/segment-quad-factory.js
|
|
21509
21536
|
/**
|
|
21510
21537
|
* Returns the {x,y} coordinates of a point at a
|
|
21511
21538
|
* given length of a quadratic-bezier segment.
|
|
@@ -21597,7 +21624,7 @@ function segmentQuadFactory(x1, y1, qx, qy, x2, y2, distance, options) {
|
|
|
21597
21624
|
}
|
|
21598
21625
|
};
|
|
21599
21626
|
}
|
|
21600
|
-
//
|
|
21627
|
+
// node_modules/@antv/util/esm/path/util/path-length-factory.js
|
|
21601
21628
|
/**
|
|
21602
21629
|
* Returns a {x,y} point at a given length
|
|
21603
21630
|
* of a shape, the shape total length and
|
|
@@ -21685,7 +21712,7 @@ function pathLengthFactory(pathInput, distance, options) {
|
|
|
21685
21712
|
}
|
|
21686
21713
|
};
|
|
21687
21714
|
}
|
|
21688
|
-
//
|
|
21715
|
+
// node_modules/@antv/util/esm/path/util/get-total-length.js
|
|
21689
21716
|
/**
|
|
21690
21717
|
* Returns the shape total length, or the equivalent to `shape.getTotalLength()`.
|
|
21691
21718
|
*
|
|
@@ -21698,7 +21725,7 @@ function getTotalLength(pathInput, options) {
|
|
|
21698
21725
|
length: true
|
|
21699
21726
|
})).length;
|
|
21700
21727
|
}
|
|
21701
|
-
//
|
|
21728
|
+
// node_modules/@antv/util/esm/path/util/get-rotated-curve.js
|
|
21702
21729
|
function getRotations(a) {
|
|
21703
21730
|
var segCount = a.length;
|
|
21704
21731
|
var pointCount = segCount - 1;
|
|
@@ -21731,7 +21758,7 @@ function getRotatedCurve(a, b) {
|
|
|
21731
21758
|
computedIndex = lineLengths.indexOf(Math.min.apply(null, lineLengths));
|
|
21732
21759
|
return rotations[computedIndex];
|
|
21733
21760
|
}
|
|
21734
|
-
//
|
|
21761
|
+
// node_modules/@antv/util/esm/path/util/get-path-area.js
|
|
21735
21762
|
/**
|
|
21736
21763
|
* Returns the area of a single cubic-bezier segment.
|
|
21737
21764
|
*
|
|
@@ -21766,11 +21793,11 @@ function getPathArea(path) {
|
|
|
21766
21793
|
return a + b;
|
|
21767
21794
|
}, 0);
|
|
21768
21795
|
}
|
|
21769
|
-
//
|
|
21796
|
+
// node_modules/@antv/util/esm/path/util/get-draw-direction.js
|
|
21770
21797
|
function getDrawDirection(pathArray) {
|
|
21771
21798
|
return getPathArea(pathArray) >= 0;
|
|
21772
21799
|
}
|
|
21773
|
-
//
|
|
21800
|
+
// node_modules/@antv/util/esm/path/util/get-point-at-length.js
|
|
21774
21801
|
/**
|
|
21775
21802
|
* Returns [x,y] coordinates of a point at a given length of a shape.
|
|
21776
21803
|
*/
|
|
@@ -21780,7 +21807,7 @@ function getPointAtLength(pathInput, distance, options) {
|
|
|
21780
21807
|
length: true
|
|
21781
21808
|
})).point;
|
|
21782
21809
|
}
|
|
21783
|
-
//
|
|
21810
|
+
// node_modules/@antv/util/esm/path/util/equalize-segments.js
|
|
21784
21811
|
var MAX_RECURSION_DEPTH = 50;
|
|
21785
21812
|
function splitCubic(pts, t) {
|
|
21786
21813
|
if (t === void 0) t = .5;
|
|
@@ -21851,12 +21878,12 @@ function equalizeSegments(path1, path2, TL, depth) {
|
|
|
21851
21878
|
});
|
|
21852
21879
|
return result[0].length === result[1].length ? result : equalizeSegments(result[0], result[1], tl, depth + 1);
|
|
21853
21880
|
}
|
|
21854
|
-
//
|
|
21881
|
+
// node_modules/@babel/runtime/helpers/esm/superPropBase.js
|
|
21855
21882
|
function _superPropBase(t, o) {
|
|
21856
21883
|
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
|
|
21857
21884
|
return t;
|
|
21858
21885
|
}
|
|
21859
|
-
//
|
|
21886
|
+
// node_modules/@babel/runtime/helpers/esm/get.js
|
|
21860
21887
|
function _get() {
|
|
21861
21888
|
return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e, t, r) {
|
|
21862
21889
|
var p = _superPropBase(e, t);
|
|
@@ -21866,14 +21893,14 @@ function _get() {
|
|
|
21866
21893
|
}
|
|
21867
21894
|
}, _get.apply(null, arguments);
|
|
21868
21895
|
}
|
|
21869
|
-
//
|
|
21896
|
+
// node_modules/@babel/runtime/helpers/esm/superPropGet.js
|
|
21870
21897
|
function _superPropGet(t, o, e, r) {
|
|
21871
21898
|
var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
|
|
21872
21899
|
return 2 & r && "function" == typeof p ? function(t) {
|
|
21873
21900
|
return p.apply(e, t);
|
|
21874
21901
|
} : p;
|
|
21875
21902
|
}
|
|
21876
|
-
//
|
|
21903
|
+
// node_modules/@antv/g-math/dist/index.esm.js
|
|
21877
21904
|
/*!
|
|
21878
21905
|
* @antv/g-math
|
|
21879
21906
|
* @description Geometry util
|
|
@@ -22030,11 +22057,11 @@ function box(x1, y1, x2, y2, x3, y3) {
|
|
|
22030
22057
|
if (yExtrema !== void 0) yArr.push(quadraticAt(y1, y2, y3, yExtrema));
|
|
22031
22058
|
return getBBoxByArray(xArr, yArr);
|
|
22032
22059
|
}
|
|
22033
|
-
//
|
|
22060
|
+
// node_modules/@babel/runtime/helpers/esm/OverloadYield.js
|
|
22034
22061
|
function _OverloadYield(e, d) {
|
|
22035
22062
|
this.v = e, this.k = d;
|
|
22036
22063
|
}
|
|
22037
|
-
//
|
|
22064
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js
|
|
22038
22065
|
function _regeneratorDefine(e, r, n, t) {
|
|
22039
22066
|
var i = Object.defineProperty;
|
|
22040
22067
|
try {
|
|
@@ -22056,7 +22083,7 @@ function _regeneratorDefine(e, r, n, t) {
|
|
|
22056
22083
|
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
22057
22084
|
}, _regeneratorDefine(e, r, n, t);
|
|
22058
22085
|
}
|
|
22059
|
-
//
|
|
22086
|
+
// node_modules/@babel/runtime/helpers/esm/regenerator.js
|
|
22060
22087
|
function _regenerator() {
|
|
22061
22088
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
22062
22089
|
var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag";
|
|
@@ -22129,7 +22156,7 @@ function _regenerator() {
|
|
|
22129
22156
|
};
|
|
22130
22157
|
})();
|
|
22131
22158
|
}
|
|
22132
|
-
//
|
|
22159
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js
|
|
22133
22160
|
function AsyncIterator$1(t, e) {
|
|
22134
22161
|
function n(r, o, i, f) {
|
|
22135
22162
|
try {
|
|
@@ -22159,18 +22186,18 @@ function AsyncIterator$1(t, e) {
|
|
|
22159
22186
|
return r = r ? r.then(f, f) : f();
|
|
22160
22187
|
}, !0);
|
|
22161
22188
|
}
|
|
22162
|
-
//
|
|
22189
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js
|
|
22163
22190
|
function _regeneratorAsyncGen(r, e, t, o, n) {
|
|
22164
22191
|
return new AsyncIterator$1(_regenerator().w(r, e, t, o), n || Promise);
|
|
22165
22192
|
}
|
|
22166
|
-
//
|
|
22193
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js
|
|
22167
22194
|
function _regeneratorAsync(n, e, r, t, o) {
|
|
22168
22195
|
var a = _regeneratorAsyncGen(n, e, r, t, o);
|
|
22169
22196
|
return a.next().then(function(n) {
|
|
22170
22197
|
return n.done ? n.value : a.next();
|
|
22171
22198
|
});
|
|
22172
22199
|
}
|
|
22173
|
-
//
|
|
22200
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js
|
|
22174
22201
|
function _regeneratorKeys(e) {
|
|
22175
22202
|
var n = Object(e), r = [];
|
|
22176
22203
|
for (var t in n) r.unshift(t);
|
|
@@ -22179,7 +22206,7 @@ function _regeneratorKeys(e) {
|
|
|
22179
22206
|
return e.done = !0, e;
|
|
22180
22207
|
};
|
|
22181
22208
|
}
|
|
22182
|
-
//
|
|
22209
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorValues.js
|
|
22183
22210
|
function _regeneratorValues(e) {
|
|
22184
22211
|
if (null != e) {
|
|
22185
22212
|
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0;
|
|
@@ -22194,7 +22221,7 @@ function _regeneratorValues(e) {
|
|
|
22194
22221
|
}
|
|
22195
22222
|
throw new TypeError(_typeof(e) + " is not iterable");
|
|
22196
22223
|
}
|
|
22197
|
-
//
|
|
22224
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
22198
22225
|
function _regeneratorRuntime() {
|
|
22199
22226
|
"use strict";
|
|
22200
22227
|
var r = _regenerator(), e = r.m(_regeneratorRuntime), t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
|
|
@@ -22261,7 +22288,7 @@ function _regeneratorRuntime() {
|
|
|
22261
22288
|
};
|
|
22262
22289
|
})();
|
|
22263
22290
|
}
|
|
22264
|
-
//
|
|
22291
|
+
// node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
22265
22292
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
22266
22293
|
try {
|
|
22267
22294
|
var i = n[a](c), u = i.value;
|
|
@@ -22286,7 +22313,7 @@ function _asyncToGenerator(n) {
|
|
|
22286
22313
|
});
|
|
22287
22314
|
};
|
|
22288
22315
|
}
|
|
22289
|
-
//
|
|
22316
|
+
// node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
22290
22317
|
function _createForOfIteratorHelper(r, e) {
|
|
22291
22318
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
22292
22319
|
if (!t) {
|
|
@@ -22330,7 +22357,7 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
22330
22357
|
}
|
|
22331
22358
|
};
|
|
22332
22359
|
}
|
|
22333
|
-
//
|
|
22360
|
+
// node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
22334
22361
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
22335
22362
|
if (null == r) return {};
|
|
22336
22363
|
var t = {};
|
|
@@ -22340,7 +22367,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
22340
22367
|
}
|
|
22341
22368
|
return t;
|
|
22342
22369
|
}
|
|
22343
|
-
//
|
|
22370
|
+
// node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
22344
22371
|
function _objectWithoutProperties(e, t) {
|
|
22345
22372
|
if (null == e) return {};
|
|
22346
22373
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -22350,7 +22377,7 @@ function _objectWithoutProperties(e, t) {
|
|
|
22350
22377
|
}
|
|
22351
22378
|
return i;
|
|
22352
22379
|
}
|
|
22353
|
-
//
|
|
22380
|
+
// node_modules/@antv/g-lite/dist/index.esm.js
|
|
22354
22381
|
/*!
|
|
22355
22382
|
* @antv/g-lite
|
|
22356
22383
|
* @description A core module for rendering engine implements DOM API.
|
|
@@ -56317,7 +56344,7 @@ function render_tabs(gobj, items) {
|
|
|
56317
56344
|
let has_label = show_label && !empty_string(it.name);
|
|
56318
56345
|
let pinned = !empty_string(it.icon) && !has_label;
|
|
56319
56346
|
let badge_el = item_badge_node(gobj, it, pinned);
|
|
56320
|
-
if (!empty_string(it.icon)) children.push(icon_span(it.icon, "icon
|
|
56347
|
+
if (!empty_string(it.icon)) children.push(icon_span(it.icon, "icon", pinned ? badge_el : null, true));
|
|
56321
56348
|
if (has_label) children.push([
|
|
56322
56349
|
"span",
|
|
56323
56350
|
{ i18n: it.name },
|
|
@@ -56490,14 +56517,7 @@ function render_backbar(gobj) {
|
|
|
56490
56517
|
[
|
|
56491
56518
|
"a",
|
|
56492
56519
|
a_attrs,
|
|
56493
|
-
[[
|
|
56494
|
-
"span",
|
|
56495
|
-
{ class: "icon is-small" },
|
|
56496
|
-
["i", {
|
|
56497
|
-
class: "yi-arrow-left",
|
|
56498
|
-
"aria-hidden": "true"
|
|
56499
|
-
}]
|
|
56500
|
-
], [
|
|
56520
|
+
[icon_span("yi-arrow-left", "icon", null, true), [
|
|
56501
56521
|
"span",
|
|
56502
56522
|
label_attrs,
|
|
56503
56523
|
text_node(label)
|
|
@@ -56647,7 +56667,7 @@ function item_li(gobj, it, opts) {
|
|
|
56647
56667
|
] : null;
|
|
56648
56668
|
let pinned = !empty_string(it.icon) && (is_stacked || !label_el);
|
|
56649
56669
|
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;
|
|
56670
|
+
let icon_el = !empty_string(it.icon) ? icon_span(it.icon, "icon", pinned ? badge_el : null, true) : null;
|
|
56651
56671
|
let a_class = "yui-nav-item";
|
|
56652
56672
|
if (is_stacked) a_class += " yui-nav-stacked";
|
|
56653
56673
|
if (icon_pos === "right" || icon_pos === "bottom") {
|
|
@@ -56754,9 +56774,13 @@ function item_badge_node(gobj, it, pinned) {
|
|
|
56754
56774
|
}
|
|
56755
56775
|
/************************************************************
|
|
56756
56776
|
* An item's icon, with its badge on the corner when given one.
|
|
56777
|
+
* `row_glyph`: the glyph of a tab or a menu entry, at the one
|
|
56778
|
+
* size of the toolbars (yui_toolbar_icon). Without it the
|
|
56779
|
+
* glyph takes the size the layout gives it (the icon bar, the
|
|
56780
|
+
* cards).
|
|
56757
56781
|
************************************************************/
|
|
56758
|
-
function icon_span(icon, classes, badge_el) {
|
|
56759
|
-
let glyph = ["i", {
|
|
56782
|
+
function icon_span(icon, classes, badge_el, row_glyph) {
|
|
56783
|
+
let glyph = row_glyph ? yui_toolbar_icon(icon) : ["i", {
|
|
56760
56784
|
class: icon,
|
|
56761
56785
|
"aria-hidden": "true"
|
|
56762
56786
|
}];
|
|
@@ -58417,11 +58441,8 @@ function add_tab(gobj, gobj2, id, text, icon) {
|
|
|
58417
58441
|
let $a = $item.querySelector("a");
|
|
58418
58442
|
if (icon) $a.appendChild(createElement2([
|
|
58419
58443
|
"span",
|
|
58420
|
-
{ class: "icon is-
|
|
58421
|
-
[
|
|
58422
|
-
class: `${icon}`,
|
|
58423
|
-
"aria-hidden": "true"
|
|
58424
|
-
}]
|
|
58444
|
+
{ class: "icon is-hidden-mobile" },
|
|
58445
|
+
[yui_toolbar_icon(icon)]
|
|
58425
58446
|
]));
|
|
58426
58447
|
$a.appendChild(createElement2([
|
|
58427
58448
|
"span",
|