@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.cjs.js
CHANGED
|
@@ -16557,7 +16557,24 @@ function create_gclass$15(gclass_name) {
|
|
|
16557
16557
|
function register_c_yui_uplot() {
|
|
16558
16558
|
return create_gclass$15(GCLASS_NAME$15);
|
|
16559
16559
|
}
|
|
16560
|
-
// src/
|
|
16560
|
+
// src/yui_toolbar_icon.js
|
|
16561
|
+
/***********************************************************************
|
|
16562
|
+
* yui_toolbar_icon.js
|
|
16563
|
+
*
|
|
16564
|
+
* The one size of the glyphs of a row of controls, and the
|
|
16565
|
+
* `<i>` that draws one at it.
|
|
16566
|
+
*
|
|
16567
|
+
* A module of its own, with no key and no CSS, so that a view
|
|
16568
|
+
* can take the size without taking the toolbar widget. In
|
|
16569
|
+
* 7.32.7 C_YUI_NAV imported it from yui_toolbar.js, and every
|
|
16570
|
+
* app that mounts a nav had to define the keys of the toolbar's
|
|
16571
|
+
* scroll arrows ("scroll left", "scroll right"), which
|
|
16572
|
+
* validate-locales reads in every module the app imports.
|
|
16573
|
+
* yui_toolbar.js exports the two names too, as before.
|
|
16574
|
+
*
|
|
16575
|
+
* Copyright (c) 2026, ArtGins.
|
|
16576
|
+
* All Rights Reserved.
|
|
16577
|
+
***********************************************************************/
|
|
16561
16578
|
/************************************************************
|
|
16562
16579
|
* ONE size for every glyph of a view's toolbar, in `rem`.
|
|
16563
16580
|
*
|
|
@@ -16579,14 +16596,24 @@ function register_c_yui_uplot() {
|
|
|
16579
16596
|
* glyph reads as a marker rather than as a second word. The
|
|
16580
16597
|
* app BAR is a different band and keeps its own, bigger size
|
|
16581
16598
|
* (`.yui-toolbar-item .icon`, 1.35rem on 44px items).
|
|
16599
|
+
*
|
|
16600
|
+
* It is also the size of the glyphs of the TABS and of the
|
|
16601
|
+
* MENU entries (C_YUI_NAV, the topic tabs of
|
|
16602
|
+
* C_YUI_TREEDB_TOPICS), and of the paginator of a table on a
|
|
16603
|
+
* phone (tabulator.css). Up to 7.32.6 a tab took the 16px of
|
|
16604
|
+
* its text, and right under a toolbar its icons read as
|
|
16605
|
+
* smaller than the toolbar's. The rows of a tab or a menu
|
|
16606
|
+
* entry are 24px of line, so the glyph changes no height.
|
|
16582
16607
|
************************************************************/
|
|
16583
16608
|
var YUI_TOOLBAR_ICON_SIZE = "1.25rem";
|
|
16584
16609
|
function yui_toolbar_icon(icon_class, extra_style) {
|
|
16585
16610
|
return ["i", {
|
|
16586
16611
|
class: icon_class,
|
|
16612
|
+
"aria-hidden": "true",
|
|
16587
16613
|
style: `font-size:${YUI_TOOLBAR_ICON_SIZE}; line-height:1; color:inherit;` + (extra_style || "")
|
|
16588
16614
|
}];
|
|
16589
16615
|
}
|
|
16616
|
+
// src/yui_toolbar.js
|
|
16590
16617
|
function yui_toolbar(attrs = {}, items = []) {
|
|
16591
16618
|
function arrow_button(side, icon, label) {
|
|
16592
16619
|
return [
|
|
@@ -17252,7 +17279,7 @@ async function yui_graph_center_on(graph, node_id) {
|
|
|
17252
17279
|
function yui_graph_refresh_item(gobj, wide) {
|
|
17253
17280
|
return camera_button(gobj, "yi-arrows-rotate", "EV_REFRESH", "refresh", wide);
|
|
17254
17281
|
}
|
|
17255
|
-
//
|
|
17282
|
+
// node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
17256
17283
|
function _typeof(o) {
|
|
17257
17284
|
"@babel/helpers - typeof";
|
|
17258
17285
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -17261,7 +17288,7 @@ function _typeof(o) {
|
|
|
17261
17288
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
17262
17289
|
}, _typeof(o);
|
|
17263
17290
|
}
|
|
17264
|
-
//
|
|
17291
|
+
// node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
17265
17292
|
function toPrimitive(t, e) {
|
|
17266
17293
|
if ("object" != _typeof(t) || !t) return t;
|
|
17267
17294
|
var r;
|
|
@@ -17272,12 +17299,12 @@ function toPrimitive(t, e) {
|
|
|
17272
17299
|
}
|
|
17273
17300
|
return ("string" === e ? String : Number)(t);
|
|
17274
17301
|
}
|
|
17275
|
-
//
|
|
17302
|
+
// node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
17276
17303
|
function toPropertyKey(t) {
|
|
17277
17304
|
var i = toPrimitive(t, "string");
|
|
17278
17305
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
17279
17306
|
}
|
|
17280
|
-
//
|
|
17307
|
+
// node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17281
17308
|
function _defineProperty(e, r, t) {
|
|
17282
17309
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
17283
17310
|
value: t,
|
|
@@ -17286,7 +17313,7 @@ function _defineProperty(e, r, t) {
|
|
|
17286
17313
|
writable: !0
|
|
17287
17314
|
}) : e[r] = t, e;
|
|
17288
17315
|
}
|
|
17289
|
-
//
|
|
17316
|
+
// node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
17290
17317
|
function ownKeys(e, r) {
|
|
17291
17318
|
var t = Object.keys(e);
|
|
17292
17319
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -17308,11 +17335,11 @@ function _objectSpread2(e) {
|
|
|
17308
17335
|
}
|
|
17309
17336
|
return e;
|
|
17310
17337
|
}
|
|
17311
|
-
//
|
|
17338
|
+
// node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
17312
17339
|
function _classCallCheck(a, n) {
|
|
17313
17340
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
17314
17341
|
}
|
|
17315
|
-
//
|
|
17342
|
+
// node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
17316
17343
|
function _defineProperties(e, r) {
|
|
17317
17344
|
for (var t = 0; t < r.length; t++) {
|
|
17318
17345
|
var o = r[t];
|
|
@@ -17322,21 +17349,21 @@ function _defineProperties(e, r) {
|
|
|
17322
17349
|
function _createClass(e, r, t) {
|
|
17323
17350
|
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
17324
17351
|
}
|
|
17325
|
-
//
|
|
17352
|
+
// node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
17326
17353
|
function _arrayLikeToArray(r, a) {
|
|
17327
17354
|
(null == a || a > r.length) && (a = r.length);
|
|
17328
17355
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
17329
17356
|
return n;
|
|
17330
17357
|
}
|
|
17331
|
-
//
|
|
17358
|
+
// node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
17332
17359
|
function _arrayWithoutHoles(r) {
|
|
17333
17360
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
17334
17361
|
}
|
|
17335
|
-
//
|
|
17362
|
+
// node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
17336
17363
|
function _iterableToArray(r) {
|
|
17337
17364
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
17338
17365
|
}
|
|
17339
|
-
//
|
|
17366
|
+
// node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
17340
17367
|
function _unsupportedIterableToArray(r, a) {
|
|
17341
17368
|
if (r) {
|
|
17342
17369
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -17344,21 +17371,21 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
17344
17371
|
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
17372
|
}
|
|
17346
17373
|
}
|
|
17347
|
-
//
|
|
17374
|
+
// node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
17348
17375
|
function _nonIterableSpread() {
|
|
17349
17376
|
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
17377
|
}
|
|
17351
|
-
//
|
|
17378
|
+
// node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
17352
17379
|
function _toConsumableArray(r) {
|
|
17353
17380
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
17354
17381
|
}
|
|
17355
|
-
//
|
|
17382
|
+
// node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
17356
17383
|
function _getPrototypeOf(t) {
|
|
17357
17384
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
17358
17385
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
17359
17386
|
}, _getPrototypeOf(t);
|
|
17360
17387
|
}
|
|
17361
|
-
//
|
|
17388
|
+
// node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
17362
17389
|
function _isNativeReflectConstruct() {
|
|
17363
17390
|
try {
|
|
17364
17391
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
@@ -17367,28 +17394,28 @@ function _isNativeReflectConstruct() {
|
|
|
17367
17394
|
return !!t;
|
|
17368
17395
|
})();
|
|
17369
17396
|
}
|
|
17370
|
-
//
|
|
17397
|
+
// node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
17371
17398
|
function _assertThisInitialized(e) {
|
|
17372
17399
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17373
17400
|
return e;
|
|
17374
17401
|
}
|
|
17375
|
-
//
|
|
17402
|
+
// node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
17376
17403
|
function _possibleConstructorReturn(t, e) {
|
|
17377
17404
|
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
17378
17405
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
17379
17406
|
return _assertThisInitialized(t);
|
|
17380
17407
|
}
|
|
17381
|
-
//
|
|
17408
|
+
// node_modules/@babel/runtime/helpers/esm/callSuper.js
|
|
17382
17409
|
function _callSuper(t, o, e) {
|
|
17383
17410
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
17384
17411
|
}
|
|
17385
|
-
//
|
|
17412
|
+
// node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
17386
17413
|
function _setPrototypeOf(t, e) {
|
|
17387
17414
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
17388
17415
|
return t.__proto__ = e, t;
|
|
17389
17416
|
}, _setPrototypeOf(t, e);
|
|
17390
17417
|
}
|
|
17391
|
-
//
|
|
17418
|
+
// node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
17392
17419
|
function _inherits(t, e) {
|
|
17393
17420
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
17394
17421
|
t.prototype = Object.create(e && e.prototype, { constructor: {
|
|
@@ -17397,11 +17424,11 @@ function _inherits(t, e) {
|
|
|
17397
17424
|
configurable: !0
|
|
17398
17425
|
} }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e);
|
|
17399
17426
|
}
|
|
17400
|
-
//
|
|
17427
|
+
// node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
17401
17428
|
function _arrayWithHoles(r) {
|
|
17402
17429
|
if (Array.isArray(r)) return r;
|
|
17403
17430
|
}
|
|
17404
|
-
//
|
|
17431
|
+
// node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
17405
17432
|
function _iterableToArrayLimit(r, l) {
|
|
17406
17433
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
17407
17434
|
if (null != t) {
|
|
@@ -17423,11 +17450,11 @@ function _iterableToArrayLimit(r, l) {
|
|
|
17423
17450
|
return a;
|
|
17424
17451
|
}
|
|
17425
17452
|
}
|
|
17426
|
-
//
|
|
17453
|
+
// node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
17427
17454
|
function _nonIterableRest() {
|
|
17428
17455
|
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
17456
|
}
|
|
17430
|
-
//
|
|
17457
|
+
// node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
17431
17458
|
function _slicedToArray(r, e) {
|
|
17432
17459
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
17433
17460
|
}
|
|
@@ -17666,7 +17693,7 @@ var eventemitter3_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJS
|
|
|
17666
17693
|
if ("undefined" !== typeof module) module.exports = EventEmitter;
|
|
17667
17694
|
})))(), 1)).default;
|
|
17668
17695
|
var ARRAY_TYPE = typeof Float32Array !== "undefined" ? Float32Array : Array;
|
|
17669
|
-
//
|
|
17696
|
+
// node_modules/gl-matrix/esm/mat3.js
|
|
17670
17697
|
/**
|
|
17671
17698
|
* 3x3 Matrix
|
|
17672
17699
|
* @module mat3
|
|
@@ -17737,7 +17764,7 @@ function fromValues$4(m00, m01, m02, m10, m11, m12, m20, m21, m22) {
|
|
|
17737
17764
|
out[8] = m22;
|
|
17738
17765
|
return out;
|
|
17739
17766
|
}
|
|
17740
|
-
//
|
|
17767
|
+
// node_modules/gl-matrix/esm/mat4.js
|
|
17741
17768
|
var mat4_exports = /* @__PURE__ */ __exportAll({
|
|
17742
17769
|
add: () => add$1,
|
|
17743
17770
|
adjoint: () => adjoint,
|
|
@@ -19544,7 +19571,7 @@ var mul$1 = multiply$2;
|
|
|
19544
19571
|
* @function
|
|
19545
19572
|
*/
|
|
19546
19573
|
var sub$1 = subtract$1;
|
|
19547
|
-
//
|
|
19574
|
+
// node_modules/gl-matrix/esm/vec3.js
|
|
19548
19575
|
/**
|
|
19549
19576
|
* 3 Dimensional Vector
|
|
19550
19577
|
* @module vec3
|
|
@@ -19893,7 +19920,7 @@ var len = length;
|
|
|
19893
19920
|
return a;
|
|
19894
19921
|
};
|
|
19895
19922
|
})();
|
|
19896
|
-
//
|
|
19923
|
+
// node_modules/gl-matrix/esm/vec4.js
|
|
19897
19924
|
/**
|
|
19898
19925
|
* 4 Dimensional Vector
|
|
19899
19926
|
* @module vec4
|
|
@@ -20019,7 +20046,7 @@ function transformMat4(out, a, m) {
|
|
|
20019
20046
|
return a;
|
|
20020
20047
|
};
|
|
20021
20048
|
})();
|
|
20022
|
-
//
|
|
20049
|
+
// node_modules/gl-matrix/esm/quat.js
|
|
20023
20050
|
/**
|
|
20024
20051
|
* Quaternion in the format XYZW
|
|
20025
20052
|
* @module quat
|
|
@@ -20325,7 +20352,7 @@ var normalize$1 = normalize$2;
|
|
|
20325
20352
|
return normalize$1(out, fromMat3(out, matr));
|
|
20326
20353
|
};
|
|
20327
20354
|
})();
|
|
20328
|
-
//
|
|
20355
|
+
// node_modules/gl-matrix/esm/vec2.js
|
|
20329
20356
|
/**
|
|
20330
20357
|
* 2 Dimensional Vector
|
|
20331
20358
|
* @module vec2
|
|
@@ -20386,7 +20413,7 @@ function set(out, x, y) {
|
|
|
20386
20413
|
return a;
|
|
20387
20414
|
};
|
|
20388
20415
|
})();
|
|
20389
|
-
//
|
|
20416
|
+
// node_modules/@antv/util/esm/lodash/is-function.js
|
|
20390
20417
|
/**
|
|
20391
20418
|
* 判断值是否为函数
|
|
20392
20419
|
* @return 是否为函数
|
|
@@ -20394,7 +20421,7 @@ function set(out, x, y) {
|
|
|
20394
20421
|
function isFunction(value) {
|
|
20395
20422
|
return typeof value === "function";
|
|
20396
20423
|
}
|
|
20397
|
-
//
|
|
20424
|
+
// node_modules/@antv/util/esm/lodash/is-nil.js
|
|
20398
20425
|
/**
|
|
20399
20426
|
* 判断值是否为 null 或 undefined
|
|
20400
20427
|
* @return 是否为 null 或 undefined
|
|
@@ -20402,7 +20429,7 @@ function isFunction(value) {
|
|
|
20402
20429
|
function isNil(value) {
|
|
20403
20430
|
return value === null || value === void 0;
|
|
20404
20431
|
}
|
|
20405
|
-
//
|
|
20432
|
+
// node_modules/@antv/util/esm/lodash/is-array.js
|
|
20406
20433
|
/**
|
|
20407
20434
|
* 判断值是否为数组
|
|
20408
20435
|
* @return 是否为数组
|
|
@@ -20410,7 +20437,7 @@ function isNil(value) {
|
|
|
20410
20437
|
function isArray(value) {
|
|
20411
20438
|
return Array.isArray(value);
|
|
20412
20439
|
}
|
|
20413
|
-
//
|
|
20440
|
+
// node_modules/@antv/util/esm/lodash/is-object.js
|
|
20414
20441
|
var is_object_default = (function(value) {
|
|
20415
20442
|
/**
|
|
20416
20443
|
* isObject({}) => true
|
|
@@ -20421,12 +20448,12 @@ var is_object_default = (function(value) {
|
|
|
20421
20448
|
var type = typeof value;
|
|
20422
20449
|
return value !== null && type === "object" || type === "function";
|
|
20423
20450
|
});
|
|
20424
|
-
//
|
|
20451
|
+
// node_modules/@antv/util/esm/lodash/is-type.js
|
|
20425
20452
|
var toString = {}.toString;
|
|
20426
20453
|
var isType = function(value, type) {
|
|
20427
20454
|
return toString.call(value) === "[object " + type + "]";
|
|
20428
20455
|
};
|
|
20429
|
-
//
|
|
20456
|
+
// node_modules/@antv/util/esm/lodash/max.js
|
|
20430
20457
|
/**
|
|
20431
20458
|
* 计算数组的最大值
|
|
20432
20459
|
* @param arr 数组
|
|
@@ -20440,7 +20467,7 @@ function max(arr) {
|
|
|
20440
20467
|
for (var i = 1; i < length; i++) max = Math.max(max, arr[i]);
|
|
20441
20468
|
return max;
|
|
20442
20469
|
}
|
|
20443
|
-
//
|
|
20470
|
+
// node_modules/@antv/util/esm/lodash/min.js
|
|
20444
20471
|
/**
|
|
20445
20472
|
* @param {Array} arr The array to iterate over.
|
|
20446
20473
|
* @return {*} Returns the minimum value.
|
|
@@ -20464,7 +20491,7 @@ var min_default = (function(arr) {
|
|
|
20464
20491
|
return Math.min(prev, curr);
|
|
20465
20492
|
}, arr[0]);
|
|
20466
20493
|
});
|
|
20467
|
-
//
|
|
20494
|
+
// node_modules/@antv/util/esm/lodash/is-string.js
|
|
20468
20495
|
/**
|
|
20469
20496
|
* 判断值是否为字符串
|
|
20470
20497
|
* @return 是否为字符串
|
|
@@ -20472,13 +20499,13 @@ var min_default = (function(arr) {
|
|
|
20472
20499
|
function isString(value) {
|
|
20473
20500
|
return typeof value === "string";
|
|
20474
20501
|
}
|
|
20475
|
-
//
|
|
20502
|
+
// node_modules/@antv/util/esm/lodash/clamp.js
|
|
20476
20503
|
var clamp = function(a, min, max) {
|
|
20477
20504
|
if (a < min) return min;
|
|
20478
20505
|
else if (a > max) return max;
|
|
20479
20506
|
return a;
|
|
20480
20507
|
};
|
|
20481
|
-
//
|
|
20508
|
+
// node_modules/@antv/util/esm/lodash/is-number.js
|
|
20482
20509
|
/**
|
|
20483
20510
|
* 判断值是否为数字
|
|
20484
20511
|
* @return 是否为数字
|
|
@@ -20486,7 +20513,7 @@ var clamp = function(a, min, max) {
|
|
|
20486
20513
|
function isNumber(value) {
|
|
20487
20514
|
return typeof value === "number";
|
|
20488
20515
|
}
|
|
20489
|
-
//
|
|
20516
|
+
// node_modules/@antv/util/esm/lodash/is-number-equal.js
|
|
20490
20517
|
var PRECISION = 1e-5;
|
|
20491
20518
|
/**
|
|
20492
20519
|
* 判断两个数是否相等
|
|
@@ -20496,11 +20523,11 @@ function isNumberEqual(a, b, precision) {
|
|
|
20496
20523
|
if (precision === void 0) precision = PRECISION;
|
|
20497
20524
|
return a === b || Math.abs(a - b) < precision;
|
|
20498
20525
|
}
|
|
20499
|
-
//
|
|
20526
|
+
// node_modules/@antv/util/esm/lodash/mod.js
|
|
20500
20527
|
var mod = function(n, m) {
|
|
20501
20528
|
return (n % m + m) % m;
|
|
20502
20529
|
};
|
|
20503
|
-
//
|
|
20530
|
+
// node_modules/@antv/util/esm/lodash/is-boolean.js
|
|
20504
20531
|
/**
|
|
20505
20532
|
* 是否是布尔类型
|
|
20506
20533
|
*
|
|
@@ -20510,11 +20537,11 @@ var mod = function(n, m) {
|
|
|
20510
20537
|
var isBoolean = function(value) {
|
|
20511
20538
|
return isType(value, "Boolean");
|
|
20512
20539
|
};
|
|
20513
|
-
//
|
|
20540
|
+
// node_modules/@antv/util/esm/lodash/is-undefined.js
|
|
20514
20541
|
var isUndefined = function(value) {
|
|
20515
20542
|
return value === void 0;
|
|
20516
20543
|
};
|
|
20517
|
-
//
|
|
20544
|
+
// node_modules/tslib/tslib.es6.mjs
|
|
20518
20545
|
var __assign = function() {
|
|
20519
20546
|
__assign = Object.assign || function __assign(t) {
|
|
20520
20547
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -20534,7 +20561,7 @@ function __spreadArray(to, from, pack) {
|
|
|
20534
20561
|
}
|
|
20535
20562
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20536
20563
|
}
|
|
20537
|
-
//
|
|
20564
|
+
// node_modules/@antv/util/esm/path/parser/params-parser.js
|
|
20538
20565
|
var paramsParser = {
|
|
20539
20566
|
x1: 0,
|
|
20540
20567
|
y1: 0,
|
|
@@ -20545,7 +20572,7 @@ var paramsParser = {
|
|
|
20545
20572
|
qx: null,
|
|
20546
20573
|
qy: null
|
|
20547
20574
|
};
|
|
20548
|
-
//
|
|
20575
|
+
// node_modules/@antv/util/esm/path/process/fix-arc.js
|
|
20549
20576
|
function fixArc(pathArray, allPathCommands, i) {
|
|
20550
20577
|
if (pathArray[i].length > 7) {
|
|
20551
20578
|
pathArray[i].shift();
|
|
@@ -20558,7 +20585,7 @@ function fixArc(pathArray, allPathCommands, i) {
|
|
|
20558
20585
|
pathArray.splice(i, 1);
|
|
20559
20586
|
}
|
|
20560
20587
|
}
|
|
20561
|
-
//
|
|
20588
|
+
// node_modules/@antv/util/esm/path/parser/params-count.js
|
|
20562
20589
|
var paramsCount = {
|
|
20563
20590
|
a: 7,
|
|
20564
20591
|
c: 6,
|
|
@@ -20572,7 +20599,7 @@ var paramsCount = {
|
|
|
20572
20599
|
v: 1,
|
|
20573
20600
|
z: 0
|
|
20574
20601
|
};
|
|
20575
|
-
//
|
|
20602
|
+
// node_modules/@antv/util/esm/path/util/is-path-array.js
|
|
20576
20603
|
/**
|
|
20577
20604
|
* Iterates an array to check if it's an actual `PathArray`.
|
|
20578
20605
|
*/
|
|
@@ -20582,7 +20609,7 @@ function isPathArray(path) {
|
|
|
20582
20609
|
return paramsCount[lk] === seg.length - 1 && "achlmqstvz".includes(lk);
|
|
20583
20610
|
});
|
|
20584
20611
|
}
|
|
20585
|
-
//
|
|
20612
|
+
// node_modules/@antv/util/esm/path/util/is-absolute-array.js
|
|
20586
20613
|
/**
|
|
20587
20614
|
* Iterates an array to check if it's a `PathArray`
|
|
20588
20615
|
* with all absolute values.
|
|
@@ -20593,7 +20620,7 @@ function isAbsoluteArray(path) {
|
|
|
20593
20620
|
return x === x.toUpperCase();
|
|
20594
20621
|
});
|
|
20595
20622
|
}
|
|
20596
|
-
//
|
|
20623
|
+
// node_modules/@antv/util/esm/path/util/is-normalized-array.js
|
|
20597
20624
|
/**
|
|
20598
20625
|
* Iterates an array to check if it's a `PathArray`
|
|
20599
20626
|
* with all segments are in non-shorthand notation
|
|
@@ -20605,7 +20632,7 @@ function isNormalizedArray(path) {
|
|
|
20605
20632
|
return "ACLMQZ".includes(pc);
|
|
20606
20633
|
});
|
|
20607
20634
|
}
|
|
20608
|
-
//
|
|
20635
|
+
// node_modules/@antv/util/esm/path/parser/finalize-segment.js
|
|
20609
20636
|
/**
|
|
20610
20637
|
* Breaks the parsing of a pathString once a segment is finalized.
|
|
20611
20638
|
*/
|
|
@@ -20622,7 +20649,7 @@ function finalizeSegment(path) {
|
|
|
20622
20649
|
if (!paramsCount[LK]) break;
|
|
20623
20650
|
}
|
|
20624
20651
|
}
|
|
20625
|
-
//
|
|
20652
|
+
// node_modules/@antv/util/esm/path/parser/scan-flag.js
|
|
20626
20653
|
/**
|
|
20627
20654
|
* Validates an A (arc-to) specific path command value.
|
|
20628
20655
|
* Usually a `large-arc-flag` or `sweep-flag`.
|
|
@@ -20642,7 +20669,7 @@ function scanFlag(path) {
|
|
|
20642
20669
|
}
|
|
20643
20670
|
path.err = "[path-util]: invalid Arc flag \"".concat(pathValue[index], "\", expecting 0 or 1 at index ").concat(index);
|
|
20644
20671
|
}
|
|
20645
|
-
//
|
|
20672
|
+
// node_modules/@antv/util/esm/path/parser/is-digit-start.js
|
|
20646
20673
|
/**
|
|
20647
20674
|
* Checks if the character is or belongs to a number.
|
|
20648
20675
|
* [0-9]|+|-|.
|
|
@@ -20653,7 +20680,7 @@ function isDigitStart(code) {
|
|
|
20653
20680
|
function isDigit(code) {
|
|
20654
20681
|
return code >= 48 && code <= 57;
|
|
20655
20682
|
}
|
|
20656
|
-
//
|
|
20683
|
+
// node_modules/@antv/util/esm/path/parser/scan-param.js
|
|
20657
20684
|
/**
|
|
20658
20685
|
* Validates every character of the path string,
|
|
20659
20686
|
* every path command, negative numbers or floating point numbers.
|
|
@@ -20721,7 +20748,7 @@ function scanParam(path) {
|
|
|
20721
20748
|
path.index = index;
|
|
20722
20749
|
path.param = +path.pathValue.slice(start, index);
|
|
20723
20750
|
}
|
|
20724
|
-
//
|
|
20751
|
+
// node_modules/@antv/util/esm/path/parser/is-space.js
|
|
20725
20752
|
/**
|
|
20726
20753
|
* Checks if the character is a space.
|
|
20727
20754
|
*/
|
|
@@ -20747,7 +20774,7 @@ function isSpace(ch) {
|
|
|
20747
20774
|
65279
|
|
20748
20775
|
].includes(ch);
|
|
20749
20776
|
}
|
|
20750
|
-
//
|
|
20777
|
+
// node_modules/@antv/util/esm/path/parser/skip-spaces.js
|
|
20751
20778
|
/**
|
|
20752
20779
|
* Points the parser to the next character in the
|
|
20753
20780
|
* path string every time it encounters any kind of
|
|
@@ -20757,7 +20784,7 @@ function skipSpaces(path) {
|
|
|
20757
20784
|
var pathValue = path.pathValue, max = path.max;
|
|
20758
20785
|
while (path.index < max && isSpace(pathValue.charCodeAt(path.index))) path.index += 1;
|
|
20759
20786
|
}
|
|
20760
|
-
//
|
|
20787
|
+
// node_modules/@antv/util/esm/path/parser/is-path-command.js
|
|
20761
20788
|
/**
|
|
20762
20789
|
* Checks if the character is a path command.
|
|
20763
20790
|
*/
|
|
@@ -20776,14 +20803,14 @@ function isPathCommand(code) {
|
|
|
20776
20803
|
default: return false;
|
|
20777
20804
|
}
|
|
20778
20805
|
}
|
|
20779
|
-
//
|
|
20806
|
+
// node_modules/@antv/util/esm/path/parser/is-arc-command.js
|
|
20780
20807
|
/**
|
|
20781
20808
|
* Checks if the character is an A (arc-to) path command.
|
|
20782
20809
|
*/
|
|
20783
20810
|
function isArcCommand(code) {
|
|
20784
20811
|
return (code | 32) === 97;
|
|
20785
20812
|
}
|
|
20786
|
-
//
|
|
20813
|
+
// node_modules/@antv/util/esm/path/parser/scan-segment.js
|
|
20787
20814
|
/**
|
|
20788
20815
|
* Scans every character in the path string to determine
|
|
20789
20816
|
* where a segment starts and where it ends.
|
|
@@ -20821,7 +20848,7 @@ function scanSegment(path) {
|
|
|
20821
20848
|
}
|
|
20822
20849
|
finalizeSegment(path);
|
|
20823
20850
|
}
|
|
20824
|
-
//
|
|
20851
|
+
// node_modules/@antv/util/esm/path/parser/path-parser.js
|
|
20825
20852
|
/**
|
|
20826
20853
|
* The `PathParser` is used by the `parsePathString` static method
|
|
20827
20854
|
* to generate a `pathArray`.
|
|
@@ -20839,7 +20866,7 @@ var PathParser = function() {
|
|
|
20839
20866
|
}
|
|
20840
20867
|
return PathParser;
|
|
20841
20868
|
}();
|
|
20842
|
-
//
|
|
20869
|
+
// node_modules/@antv/util/esm/path/parser/parse-path-string.js
|
|
20843
20870
|
/**
|
|
20844
20871
|
* Parses a path string value and returns an array
|
|
20845
20872
|
* of segments we like to call `pathArray`.
|
|
@@ -20851,7 +20878,7 @@ function parsePathString(pathInput) {
|
|
|
20851
20878
|
while (path.index < path.max && !path.err.length) scanSegment(path);
|
|
20852
20879
|
return path.err ? path.err : path.segments;
|
|
20853
20880
|
}
|
|
20854
|
-
//
|
|
20881
|
+
// node_modules/@antv/util/esm/path/convert/path-2-absolute.js
|
|
20855
20882
|
/**
|
|
20856
20883
|
* Converts a `PathArray` to an `AbsoluteArray`.
|
|
20857
20884
|
*/
|
|
@@ -20926,7 +20953,7 @@ function path2Absolute(pathInput) {
|
|
|
20926
20953
|
return absoluteSegment;
|
|
20927
20954
|
});
|
|
20928
20955
|
}
|
|
20929
|
-
//
|
|
20956
|
+
// node_modules/@antv/util/esm/path/process/normalize-segment.js
|
|
20930
20957
|
/**
|
|
20931
20958
|
* Normalizes a single segment of a `PathArray` object.
|
|
20932
20959
|
* eg. H/V -> L, T -> Q
|
|
@@ -20977,7 +21004,7 @@ function normalizeSegment(segment, params) {
|
|
|
20977
21004
|
}
|
|
20978
21005
|
return result;
|
|
20979
21006
|
}
|
|
20980
|
-
//
|
|
21007
|
+
// node_modules/@antv/util/esm/path/process/normalize-path.js
|
|
20981
21008
|
/**
|
|
20982
21009
|
* @example
|
|
20983
21010
|
* const path = 'M0 0 H50';
|
|
@@ -20999,7 +21026,7 @@ function normalizePath(pathInput) {
|
|
|
20999
21026
|
}
|
|
21000
21027
|
return path;
|
|
21001
21028
|
}
|
|
21002
|
-
//
|
|
21029
|
+
// node_modules/@antv/util/esm/path/util/is-curve-array.js
|
|
21003
21030
|
/**
|
|
21004
21031
|
* Iterates an array to check if it's a `PathArray`
|
|
21005
21032
|
* with all C (cubic bezier) segments.
|
|
@@ -21013,14 +21040,14 @@ function isCurveArray(path) {
|
|
|
21013
21040
|
return "MC".includes(pc);
|
|
21014
21041
|
});
|
|
21015
21042
|
}
|
|
21016
|
-
//
|
|
21043
|
+
// node_modules/@antv/util/esm/path/util/rotate-vector.js
|
|
21017
21044
|
function rotateVector(x, y, rad) {
|
|
21018
21045
|
return {
|
|
21019
21046
|
x: x * Math.cos(rad) - y * Math.sin(rad),
|
|
21020
21047
|
y: x * Math.sin(rad) + y * Math.cos(rad)
|
|
21021
21048
|
};
|
|
21022
21049
|
}
|
|
21023
|
-
//
|
|
21050
|
+
// node_modules/@antv/util/esm/path/process/arc-2-cubic.js
|
|
21024
21051
|
/**
|
|
21025
21052
|
* Converts A (arc-to) segments to C (cubic-bezier-to).
|
|
21026
21053
|
*
|
|
@@ -21107,7 +21134,7 @@ function arcToCubic(X1, Y1, RX, RY, angle, LAF, SF, X2, Y2, recursive) {
|
|
|
21107
21134
|
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
21135
|
return newres;
|
|
21109
21136
|
}
|
|
21110
|
-
//
|
|
21137
|
+
// node_modules/@antv/util/esm/path/process/quad-2-cubic.js
|
|
21111
21138
|
function quadToCubic(x1, y1, qx, qy, x2, y2) {
|
|
21112
21139
|
var r13 = 1 / 3;
|
|
21113
21140
|
var r23 = 2 / 3;
|
|
@@ -21120,7 +21147,7 @@ function quadToCubic(x1, y1, qx, qy, x2, y2) {
|
|
|
21120
21147
|
y2
|
|
21121
21148
|
];
|
|
21122
21149
|
}
|
|
21123
|
-
//
|
|
21150
|
+
// node_modules/@antv/util/esm/path/util/mid-point.js
|
|
21124
21151
|
function midPoint(a, b, t) {
|
|
21125
21152
|
var ax = a[0];
|
|
21126
21153
|
var ay = a[1];
|
|
@@ -21128,7 +21155,7 @@ function midPoint(a, b, t) {
|
|
|
21128
21155
|
var by = b[1];
|
|
21129
21156
|
return [ax + (bx - ax) * t, ay + (by - ay) * t];
|
|
21130
21157
|
}
|
|
21131
|
-
//
|
|
21158
|
+
// node_modules/@antv/util/esm/path/process/line-2-cubic.js
|
|
21132
21159
|
var lineToCubic = function(x1, y1, x2, y2) {
|
|
21133
21160
|
return __spreadArray(__spreadArray([], midPoint([x1, y1], [x2, y2], .5), true), [
|
|
21134
21161
|
x2,
|
|
@@ -21137,7 +21164,7 @@ var lineToCubic = function(x1, y1, x2, y2) {
|
|
|
21137
21164
|
y2
|
|
21138
21165
|
], false);
|
|
21139
21166
|
};
|
|
21140
|
-
//
|
|
21167
|
+
// node_modules/@antv/util/esm/path/process/segment-2-cubic.js
|
|
21141
21168
|
function segmentToCubic(segment, params) {
|
|
21142
21169
|
var pathCommand = segment[0];
|
|
21143
21170
|
var values = segment.slice(1).map(Number);
|
|
@@ -21176,7 +21203,7 @@ function segmentToCubic(segment, params) {
|
|
|
21176
21203
|
}
|
|
21177
21204
|
return segment;
|
|
21178
21205
|
}
|
|
21179
|
-
//
|
|
21206
|
+
// node_modules/@antv/util/esm/path/convert/path-2-curve.js
|
|
21180
21207
|
function path2Curve(pathInput, needZCommandIndexes) {
|
|
21181
21208
|
if (needZCommandIndexes === void 0) needZCommandIndexes = false;
|
|
21182
21209
|
if (isCurveArray(pathInput)) {
|
|
@@ -21210,13 +21237,13 @@ function path2Curve(pathInput, needZCommandIndexes) {
|
|
|
21210
21237
|
if (needZCommandIndexes) return [path, zCommandIndexes];
|
|
21211
21238
|
else return path;
|
|
21212
21239
|
}
|
|
21213
|
-
//
|
|
21240
|
+
// node_modules/@antv/util/esm/path/process/clone-path.js
|
|
21214
21241
|
function clonePath(path) {
|
|
21215
21242
|
return path.map(function(x) {
|
|
21216
21243
|
return Array.isArray(x) ? [].concat(x) : x;
|
|
21217
21244
|
});
|
|
21218
21245
|
}
|
|
21219
|
-
//
|
|
21246
|
+
// node_modules/@antv/util/esm/path/process/reverse-curve.js
|
|
21220
21247
|
function reverseCurve(pathArray) {
|
|
21221
21248
|
var rotatedCurve = pathArray.slice(1).map(function(x, i, curveOnly) {
|
|
21222
21249
|
return !i ? pathArray[0].slice(1).concat(x.slice(1)) : curveOnly[i - 1].slice(-2).concat(x.slice(1));
|
|
@@ -21229,11 +21256,11 @@ function reverseCurve(pathArray) {
|
|
|
21229
21256
|
return ["C"].concat(x.slice(2));
|
|
21230
21257
|
}));
|
|
21231
21258
|
}
|
|
21232
|
-
//
|
|
21259
|
+
// node_modules/@antv/util/esm/path/util/distance-square-root.js
|
|
21233
21260
|
function distanceSquareRoot(a, b) {
|
|
21234
21261
|
return Math.sqrt((a[0] - b[0]) * (a[0] - b[0]) + (a[1] - b[1]) * (a[1] - b[1]));
|
|
21235
21262
|
}
|
|
21236
|
-
//
|
|
21263
|
+
// node_modules/@antv/util/esm/path/util/segment-line-factory.js
|
|
21237
21264
|
/**
|
|
21238
21265
|
* Returns a {x,y} point at a given length, the total length and
|
|
21239
21266
|
* the minimum and maximum {x,y} coordinates of a line (L,V,H,Z) segment.
|
|
@@ -21274,7 +21301,7 @@ function segmentLineFactory(x1, y1, x2, y2, distance) {
|
|
|
21274
21301
|
}
|
|
21275
21302
|
};
|
|
21276
21303
|
}
|
|
21277
|
-
//
|
|
21304
|
+
// node_modules/@antv/util/esm/path/util/segment-arc-factory.js
|
|
21278
21305
|
function angleBetween$1(v0, v1) {
|
|
21279
21306
|
var v0x = v0.x, v0y = v0.y;
|
|
21280
21307
|
var v1x = v1.x, v1y = v1.y;
|
|
@@ -21421,7 +21448,7 @@ function segmentArcFactory(X1, Y1, RX, RY, angle, LAF, SF, X2, Y2, distance, opt
|
|
|
21421
21448
|
}
|
|
21422
21449
|
};
|
|
21423
21450
|
}
|
|
21424
|
-
//
|
|
21451
|
+
// node_modules/@antv/util/esm/path/util/segment-cubic-factory.js
|
|
21425
21452
|
/**
|
|
21426
21453
|
* Returns a {x,y} point at a given length, the total length and
|
|
21427
21454
|
* the minimum and maximum {x,y} coordinates of a C (cubic-bezier) segment.
|
|
@@ -21510,7 +21537,7 @@ function segmentCubicFactory(x1, y1, c1x, c1y, c2x, c2y, x2, y2, distance, optio
|
|
|
21510
21537
|
}
|
|
21511
21538
|
};
|
|
21512
21539
|
}
|
|
21513
|
-
//
|
|
21540
|
+
// node_modules/@antv/util/esm/path/util/segment-quad-factory.js
|
|
21514
21541
|
/**
|
|
21515
21542
|
* Returns the {x,y} coordinates of a point at a
|
|
21516
21543
|
* given length of a quadratic-bezier segment.
|
|
@@ -21602,7 +21629,7 @@ function segmentQuadFactory(x1, y1, qx, qy, x2, y2, distance, options) {
|
|
|
21602
21629
|
}
|
|
21603
21630
|
};
|
|
21604
21631
|
}
|
|
21605
|
-
//
|
|
21632
|
+
// node_modules/@antv/util/esm/path/util/path-length-factory.js
|
|
21606
21633
|
/**
|
|
21607
21634
|
* Returns a {x,y} point at a given length
|
|
21608
21635
|
* of a shape, the shape total length and
|
|
@@ -21690,7 +21717,7 @@ function pathLengthFactory(pathInput, distance, options) {
|
|
|
21690
21717
|
}
|
|
21691
21718
|
};
|
|
21692
21719
|
}
|
|
21693
|
-
//
|
|
21720
|
+
// node_modules/@antv/util/esm/path/util/get-total-length.js
|
|
21694
21721
|
/**
|
|
21695
21722
|
* Returns the shape total length, or the equivalent to `shape.getTotalLength()`.
|
|
21696
21723
|
*
|
|
@@ -21703,7 +21730,7 @@ function getTotalLength(pathInput, options) {
|
|
|
21703
21730
|
length: true
|
|
21704
21731
|
})).length;
|
|
21705
21732
|
}
|
|
21706
|
-
//
|
|
21733
|
+
// node_modules/@antv/util/esm/path/util/get-rotated-curve.js
|
|
21707
21734
|
function getRotations(a) {
|
|
21708
21735
|
var segCount = a.length;
|
|
21709
21736
|
var pointCount = segCount - 1;
|
|
@@ -21736,7 +21763,7 @@ function getRotatedCurve(a, b) {
|
|
|
21736
21763
|
computedIndex = lineLengths.indexOf(Math.min.apply(null, lineLengths));
|
|
21737
21764
|
return rotations[computedIndex];
|
|
21738
21765
|
}
|
|
21739
|
-
//
|
|
21766
|
+
// node_modules/@antv/util/esm/path/util/get-path-area.js
|
|
21740
21767
|
/**
|
|
21741
21768
|
* Returns the area of a single cubic-bezier segment.
|
|
21742
21769
|
*
|
|
@@ -21771,11 +21798,11 @@ function getPathArea(path) {
|
|
|
21771
21798
|
return a + b;
|
|
21772
21799
|
}, 0);
|
|
21773
21800
|
}
|
|
21774
|
-
//
|
|
21801
|
+
// node_modules/@antv/util/esm/path/util/get-draw-direction.js
|
|
21775
21802
|
function getDrawDirection(pathArray) {
|
|
21776
21803
|
return getPathArea(pathArray) >= 0;
|
|
21777
21804
|
}
|
|
21778
|
-
//
|
|
21805
|
+
// node_modules/@antv/util/esm/path/util/get-point-at-length.js
|
|
21779
21806
|
/**
|
|
21780
21807
|
* Returns [x,y] coordinates of a point at a given length of a shape.
|
|
21781
21808
|
*/
|
|
@@ -21785,7 +21812,7 @@ function getPointAtLength(pathInput, distance, options) {
|
|
|
21785
21812
|
length: true
|
|
21786
21813
|
})).point;
|
|
21787
21814
|
}
|
|
21788
|
-
//
|
|
21815
|
+
// node_modules/@antv/util/esm/path/util/equalize-segments.js
|
|
21789
21816
|
var MAX_RECURSION_DEPTH = 50;
|
|
21790
21817
|
function splitCubic(pts, t) {
|
|
21791
21818
|
if (t === void 0) t = .5;
|
|
@@ -21856,12 +21883,12 @@ function equalizeSegments(path1, path2, TL, depth) {
|
|
|
21856
21883
|
});
|
|
21857
21884
|
return result[0].length === result[1].length ? result : equalizeSegments(result[0], result[1], tl, depth + 1);
|
|
21858
21885
|
}
|
|
21859
|
-
//
|
|
21886
|
+
// node_modules/@babel/runtime/helpers/esm/superPropBase.js
|
|
21860
21887
|
function _superPropBase(t, o) {
|
|
21861
21888
|
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
|
|
21862
21889
|
return t;
|
|
21863
21890
|
}
|
|
21864
|
-
//
|
|
21891
|
+
// node_modules/@babel/runtime/helpers/esm/get.js
|
|
21865
21892
|
function _get() {
|
|
21866
21893
|
return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e, t, r) {
|
|
21867
21894
|
var p = _superPropBase(e, t);
|
|
@@ -21871,14 +21898,14 @@ function _get() {
|
|
|
21871
21898
|
}
|
|
21872
21899
|
}, _get.apply(null, arguments);
|
|
21873
21900
|
}
|
|
21874
|
-
//
|
|
21901
|
+
// node_modules/@babel/runtime/helpers/esm/superPropGet.js
|
|
21875
21902
|
function _superPropGet(t, o, e, r) {
|
|
21876
21903
|
var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
|
|
21877
21904
|
return 2 & r && "function" == typeof p ? function(t) {
|
|
21878
21905
|
return p.apply(e, t);
|
|
21879
21906
|
} : p;
|
|
21880
21907
|
}
|
|
21881
|
-
//
|
|
21908
|
+
// node_modules/@antv/g-math/dist/index.esm.js
|
|
21882
21909
|
/*!
|
|
21883
21910
|
* @antv/g-math
|
|
21884
21911
|
* @description Geometry util
|
|
@@ -22035,11 +22062,11 @@ function box(x1, y1, x2, y2, x3, y3) {
|
|
|
22035
22062
|
if (yExtrema !== void 0) yArr.push(quadraticAt(y1, y2, y3, yExtrema));
|
|
22036
22063
|
return getBBoxByArray(xArr, yArr);
|
|
22037
22064
|
}
|
|
22038
|
-
//
|
|
22065
|
+
// node_modules/@babel/runtime/helpers/esm/OverloadYield.js
|
|
22039
22066
|
function _OverloadYield(e, d) {
|
|
22040
22067
|
this.v = e, this.k = d;
|
|
22041
22068
|
}
|
|
22042
|
-
//
|
|
22069
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js
|
|
22043
22070
|
function _regeneratorDefine(e, r, n, t) {
|
|
22044
22071
|
var i = Object.defineProperty;
|
|
22045
22072
|
try {
|
|
@@ -22061,7 +22088,7 @@ function _regeneratorDefine(e, r, n, t) {
|
|
|
22061
22088
|
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
22062
22089
|
}, _regeneratorDefine(e, r, n, t);
|
|
22063
22090
|
}
|
|
22064
|
-
//
|
|
22091
|
+
// node_modules/@babel/runtime/helpers/esm/regenerator.js
|
|
22065
22092
|
function _regenerator() {
|
|
22066
22093
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
22067
22094
|
var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag";
|
|
@@ -22134,7 +22161,7 @@ function _regenerator() {
|
|
|
22134
22161
|
};
|
|
22135
22162
|
})();
|
|
22136
22163
|
}
|
|
22137
|
-
//
|
|
22164
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js
|
|
22138
22165
|
function AsyncIterator$1(t, e) {
|
|
22139
22166
|
function n(r, o, i, f) {
|
|
22140
22167
|
try {
|
|
@@ -22164,18 +22191,18 @@ function AsyncIterator$1(t, e) {
|
|
|
22164
22191
|
return r = r ? r.then(f, f) : f();
|
|
22165
22192
|
}, !0);
|
|
22166
22193
|
}
|
|
22167
|
-
//
|
|
22194
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js
|
|
22168
22195
|
function _regeneratorAsyncGen(r, e, t, o, n) {
|
|
22169
22196
|
return new AsyncIterator$1(_regenerator().w(r, e, t, o), n || Promise);
|
|
22170
22197
|
}
|
|
22171
|
-
//
|
|
22198
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js
|
|
22172
22199
|
function _regeneratorAsync(n, e, r, t, o) {
|
|
22173
22200
|
var a = _regeneratorAsyncGen(n, e, r, t, o);
|
|
22174
22201
|
return a.next().then(function(n) {
|
|
22175
22202
|
return n.done ? n.value : a.next();
|
|
22176
22203
|
});
|
|
22177
22204
|
}
|
|
22178
|
-
//
|
|
22205
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js
|
|
22179
22206
|
function _regeneratorKeys(e) {
|
|
22180
22207
|
var n = Object(e), r = [];
|
|
22181
22208
|
for (var t in n) r.unshift(t);
|
|
@@ -22184,7 +22211,7 @@ function _regeneratorKeys(e) {
|
|
|
22184
22211
|
return e.done = !0, e;
|
|
22185
22212
|
};
|
|
22186
22213
|
}
|
|
22187
|
-
//
|
|
22214
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorValues.js
|
|
22188
22215
|
function _regeneratorValues(e) {
|
|
22189
22216
|
if (null != e) {
|
|
22190
22217
|
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0;
|
|
@@ -22199,7 +22226,7 @@ function _regeneratorValues(e) {
|
|
|
22199
22226
|
}
|
|
22200
22227
|
throw new TypeError(_typeof(e) + " is not iterable");
|
|
22201
22228
|
}
|
|
22202
|
-
//
|
|
22229
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
22203
22230
|
function _regeneratorRuntime() {
|
|
22204
22231
|
"use strict";
|
|
22205
22232
|
var r = _regenerator(), e = r.m(_regeneratorRuntime), t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
|
|
@@ -22266,7 +22293,7 @@ function _regeneratorRuntime() {
|
|
|
22266
22293
|
};
|
|
22267
22294
|
})();
|
|
22268
22295
|
}
|
|
22269
|
-
//
|
|
22296
|
+
// node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
22270
22297
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
22271
22298
|
try {
|
|
22272
22299
|
var i = n[a](c), u = i.value;
|
|
@@ -22291,7 +22318,7 @@ function _asyncToGenerator(n) {
|
|
|
22291
22318
|
});
|
|
22292
22319
|
};
|
|
22293
22320
|
}
|
|
22294
|
-
//
|
|
22321
|
+
// node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
22295
22322
|
function _createForOfIteratorHelper(r, e) {
|
|
22296
22323
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
22297
22324
|
if (!t) {
|
|
@@ -22335,7 +22362,7 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
22335
22362
|
}
|
|
22336
22363
|
};
|
|
22337
22364
|
}
|
|
22338
|
-
//
|
|
22365
|
+
// node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
22339
22366
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
22340
22367
|
if (null == r) return {};
|
|
22341
22368
|
var t = {};
|
|
@@ -22345,7 +22372,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
22345
22372
|
}
|
|
22346
22373
|
return t;
|
|
22347
22374
|
}
|
|
22348
|
-
//
|
|
22375
|
+
// node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
22349
22376
|
function _objectWithoutProperties(e, t) {
|
|
22350
22377
|
if (null == e) return {};
|
|
22351
22378
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -22355,7 +22382,7 @@ function _objectWithoutProperties(e, t) {
|
|
|
22355
22382
|
}
|
|
22356
22383
|
return i;
|
|
22357
22384
|
}
|
|
22358
|
-
//
|
|
22385
|
+
// node_modules/@antv/g-lite/dist/index.esm.js
|
|
22359
22386
|
/*!
|
|
22360
22387
|
* @antv/g-lite
|
|
22361
22388
|
* @description A core module for rendering engine implements DOM API.
|
|
@@ -56322,7 +56349,7 @@ function render_tabs(gobj, items) {
|
|
|
56322
56349
|
let has_label = show_label && !(0, _yuneta_gobj_js.empty_string)(it.name);
|
|
56323
56350
|
let pinned = !(0, _yuneta_gobj_js.empty_string)(it.icon) && !has_label;
|
|
56324
56351
|
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
|
|
56352
|
+
if (!(0, _yuneta_gobj_js.empty_string)(it.icon)) children.push(icon_span(it.icon, "icon", pinned ? badge_el : null, true));
|
|
56326
56353
|
if (has_label) children.push([
|
|
56327
56354
|
"span",
|
|
56328
56355
|
{ i18n: it.name },
|
|
@@ -56495,14 +56522,7 @@ function render_backbar(gobj) {
|
|
|
56495
56522
|
[
|
|
56496
56523
|
"a",
|
|
56497
56524
|
a_attrs,
|
|
56498
|
-
[[
|
|
56499
|
-
"span",
|
|
56500
|
-
{ class: "icon is-small" },
|
|
56501
|
-
["i", {
|
|
56502
|
-
class: "yi-arrow-left",
|
|
56503
|
-
"aria-hidden": "true"
|
|
56504
|
-
}]
|
|
56505
|
-
], [
|
|
56525
|
+
[icon_span("yi-arrow-left", "icon", null, true), [
|
|
56506
56526
|
"span",
|
|
56507
56527
|
label_attrs,
|
|
56508
56528
|
text_node(label)
|
|
@@ -56652,7 +56672,7 @@ function item_li(gobj, it, opts) {
|
|
|
56652
56672
|
] : null;
|
|
56653
56673
|
let pinned = !(0, _yuneta_gobj_js.empty_string)(it.icon) && (is_stacked || !label_el);
|
|
56654
56674
|
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;
|
|
56675
|
+
let icon_el = !(0, _yuneta_gobj_js.empty_string)(it.icon) ? icon_span(it.icon, "icon", pinned ? badge_el : null, true) : null;
|
|
56656
56676
|
let a_class = "yui-nav-item";
|
|
56657
56677
|
if (is_stacked) a_class += " yui-nav-stacked";
|
|
56658
56678
|
if (icon_pos === "right" || icon_pos === "bottom") {
|
|
@@ -56759,9 +56779,13 @@ function item_badge_node(gobj, it, pinned) {
|
|
|
56759
56779
|
}
|
|
56760
56780
|
/************************************************************
|
|
56761
56781
|
* An item's icon, with its badge on the corner when given one.
|
|
56782
|
+
* `row_glyph`: the glyph of a tab or a menu entry, at the one
|
|
56783
|
+
* size of the toolbars (yui_toolbar_icon). Without it the
|
|
56784
|
+
* glyph takes the size the layout gives it (the icon bar, the
|
|
56785
|
+
* cards).
|
|
56762
56786
|
************************************************************/
|
|
56763
|
-
function icon_span(icon, classes, badge_el) {
|
|
56764
|
-
let glyph = ["i", {
|
|
56787
|
+
function icon_span(icon, classes, badge_el, row_glyph) {
|
|
56788
|
+
let glyph = row_glyph ? yui_toolbar_icon(icon) : ["i", {
|
|
56765
56789
|
class: icon,
|
|
56766
56790
|
"aria-hidden": "true"
|
|
56767
56791
|
}];
|
|
@@ -58422,11 +58446,8 @@ function add_tab(gobj, gobj2, id, text, icon) {
|
|
|
58422
58446
|
let $a = $item.querySelector("a");
|
|
58423
58447
|
if (icon) $a.appendChild((0, _yuneta_gobj_js.createElement2)([
|
|
58424
58448
|
"span",
|
|
58425
|
-
{ class: "icon is-
|
|
58426
|
-
[
|
|
58427
|
-
class: `${icon}`,
|
|
58428
|
-
"aria-hidden": "true"
|
|
58429
|
-
}]
|
|
58449
|
+
{ class: "icon is-hidden-mobile" },
|
|
58450
|
+
[yui_toolbar_icon(icon)]
|
|
58430
58451
|
]));
|
|
58431
58452
|
$a.appendChild((0, _yuneta_gobj_js.createElement2)([
|
|
58432
58453
|
"span",
|