@yuneta/gobj-ui 7.30.0 → 7.31.0
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 +8 -4
- package/dist/gobj-ui.cjs.js +206 -412
- package/dist/gobj-ui.es.js +206 -412
- package/package.json +12 -12
- package/src/json_view_helpers.test.js +2 -2
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -30,7 +30,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
value: mod,
|
|
31
31
|
enumerable: true
|
|
32
32
|
}) : target, mod));
|
|
33
|
-
//#endregion
|
|
34
33
|
let _yuneta_gobj_js = require("@yuneta/gobj-js");
|
|
35
34
|
let i18next = require("i18next");
|
|
36
35
|
i18next = __toESM(i18next, 1);
|
|
@@ -43,7 +42,7 @@ maplibre_gl = __toESM(maplibre_gl, 1);
|
|
|
43
42
|
let uplot = require("uplot");
|
|
44
43
|
uplot = __toESM(uplot, 1);
|
|
45
44
|
let _antv_g6 = require("@antv/g6");
|
|
46
|
-
|
|
45
|
+
// src/bulma_tint.js
|
|
47
46
|
/***********************************************************************
|
|
48
47
|
* bulma_tint.js
|
|
49
48
|
*
|
|
@@ -111,8 +110,7 @@ function yui_tint(colour) {
|
|
|
111
110
|
if (TINTABLE.indexOf(name) < 0) return "";
|
|
112
111
|
return `is-${name} is-light`;
|
|
113
112
|
}
|
|
114
|
-
|
|
115
|
-
//#region src/shell_focus_trap.js
|
|
113
|
+
// src/shell_focus_trap.js
|
|
116
114
|
/***********************************************************************
|
|
117
115
|
* shell_focus_trap.js
|
|
118
116
|
*
|
|
@@ -241,8 +239,7 @@ function focus_trap_panel() {
|
|
|
241
239
|
let top = top_trap();
|
|
242
240
|
return top ? top.$panel : null;
|
|
243
241
|
}
|
|
244
|
-
|
|
245
|
-
//#region src/shell_show_on.js
|
|
242
|
+
// src/shell_show_on.js
|
|
246
243
|
/***********************************************************************
|
|
247
244
|
* shell_show_on.js
|
|
248
245
|
*
|
|
@@ -317,8 +314,7 @@ function bulma_hidden_class(bp) {
|
|
|
317
314
|
}
|
|
318
315
|
return "";
|
|
319
316
|
}
|
|
320
|
-
|
|
321
|
-
//#region src/escape_taken.js
|
|
317
|
+
// src/escape_taken.js
|
|
322
318
|
/***********************************************************************
|
|
323
319
|
* escape_taken.js
|
|
324
320
|
*
|
|
@@ -362,8 +358,7 @@ function escape_is_taken(evt) {
|
|
|
362
358
|
if (target.tagName === "TEXTAREA" || target.isContentEditable === true) return true;
|
|
363
359
|
return false;
|
|
364
360
|
}
|
|
365
|
-
|
|
366
|
-
//#region src/shell_toolbar_helpers.js
|
|
361
|
+
// src/shell_toolbar_helpers.js
|
|
367
362
|
var TOOLBAR_ACTION_TYPES = [
|
|
368
363
|
"navigate",
|
|
369
364
|
"drawer",
|
|
@@ -492,8 +487,7 @@ function validate_dropdown_action(action, owner_id) {
|
|
|
492
487
|
function _is_non_empty_string(v) {
|
|
493
488
|
return typeof v === "string" && v.trim().length > 0;
|
|
494
489
|
}
|
|
495
|
-
|
|
496
|
-
//#region src/route_resolver.js
|
|
490
|
+
// src/route_resolver.js
|
|
497
491
|
/***********************************************************************
|
|
498
492
|
* route_resolver.js
|
|
499
493
|
*
|
|
@@ -571,8 +565,7 @@ function resolve_route(item_index, route) {
|
|
|
571
565
|
subpath
|
|
572
566
|
};
|
|
573
567
|
}
|
|
574
|
-
|
|
575
|
-
//#region src/yui_text.js
|
|
568
|
+
// src/yui_text.js
|
|
576
569
|
/***********************************************************************
|
|
577
570
|
* yui_text.js
|
|
578
571
|
*
|
|
@@ -632,8 +625,7 @@ function text_list_item_formatter(label) {
|
|
|
632
625
|
span.textContent = label === null || label === void 0 ? "" : String(label);
|
|
633
626
|
return span;
|
|
634
627
|
}
|
|
635
|
-
|
|
636
|
-
//#region src/yui_badge.js
|
|
628
|
+
// src/yui_badge.js
|
|
637
629
|
/***********************************************************************
|
|
638
630
|
* yui_badge.js
|
|
639
631
|
*
|
|
@@ -788,8 +780,7 @@ function paint_badge($badge, value, tone) {
|
|
|
788
780
|
$badge.textContent = text;
|
|
789
781
|
$badge.removeAttribute("hidden");
|
|
790
782
|
}
|
|
791
|
-
|
|
792
|
-
//#region src/route_map_model.js
|
|
783
|
+
// src/route_map_model.js
|
|
793
784
|
/***********************************************************************
|
|
794
785
|
* route_map_model.js
|
|
795
786
|
*
|
|
@@ -1101,8 +1092,7 @@ function build_nav_map(input) {
|
|
|
1101
1092
|
other
|
|
1102
1093
|
};
|
|
1103
1094
|
}
|
|
1104
|
-
|
|
1105
|
-
//#region src/yui_selector.js
|
|
1095
|
+
// src/yui_selector.js
|
|
1106
1096
|
/***********************************************************************
|
|
1107
1097
|
* yui_selector.js
|
|
1108
1098
|
*
|
|
@@ -1167,8 +1157,7 @@ function find_by_id($root, id) {
|
|
|
1167
1157
|
function css_string(value) {
|
|
1168
1158
|
return String(value).replace(/[\\"]/g, "\\$&").replace(/[\u0000-\u001f\u007f]/g, (c) => "\\" + c.charCodeAt(0).toString(16) + " ");
|
|
1169
1159
|
}
|
|
1170
|
-
|
|
1171
|
-
//#region src/shell_section_index.js
|
|
1160
|
+
// src/shell_section_index.js
|
|
1172
1161
|
/***********************************************************************
|
|
1173
1162
|
* shell_section_index.js
|
|
1174
1163
|
*
|
|
@@ -1254,8 +1243,7 @@ function secondary_nav_renders(item, layout) {
|
|
|
1254
1243
|
back_route: item && item.route || ""
|
|
1255
1244
|
}];
|
|
1256
1245
|
}
|
|
1257
|
-
|
|
1258
|
-
//#region src/c_yui_shell.js
|
|
1246
|
+
// src/c_yui_shell.js
|
|
1259
1247
|
/***********************************************************************
|
|
1260
1248
|
* c_yui_shell.js
|
|
1261
1249
|
*
|
|
@@ -4352,8 +4340,7 @@ function yui_shell_set_nav_item_badge(shell_gobj, item_id, value, tone) {
|
|
|
4352
4340
|
function yui_shell_close_dropdown(shell_gobj) {
|
|
4353
4341
|
close_toolbar_dropdown(shell_gobj);
|
|
4354
4342
|
}
|
|
4355
|
-
|
|
4356
|
-
//#region src/shell_modals.js
|
|
4343
|
+
// src/shell_modals.js
|
|
4357
4344
|
/***********************************************************************
|
|
4358
4345
|
* shell_modals.js
|
|
4359
4346
|
*
|
|
@@ -4984,8 +4971,7 @@ function yui_shell_confirm_yesnocancel(shell, message, opts) {
|
|
|
4984
4971
|
}
|
|
4985
4972
|
], opts);
|
|
4986
4973
|
}
|
|
4987
|
-
|
|
4988
|
-
//#region src/c_yui_window.js
|
|
4974
|
+
// src/c_yui_window.js
|
|
4989
4975
|
/***********************************************************************
|
|
4990
4976
|
* c_yui_window.js
|
|
4991
4977
|
*
|
|
@@ -6291,8 +6277,7 @@ function create_gclass$22(gclass_name) {
|
|
|
6291
6277
|
function register_c_yui_window() {
|
|
6292
6278
|
return create_gclass$22(GCLASS_NAME$22);
|
|
6293
6279
|
}
|
|
6294
|
-
|
|
6295
|
-
//#region src/c_yui_window_manager.js
|
|
6280
|
+
// src/c_yui_window_manager.js
|
|
6296
6281
|
/***********************************************************************
|
|
6297
6282
|
* c_yui_window_manager.js
|
|
6298
6283
|
*
|
|
@@ -7021,8 +7006,7 @@ function create_gclass$21(gclass_name) {
|
|
|
7021
7006
|
function register_c_yui_window_manager() {
|
|
7022
7007
|
return create_gclass$21(GCLASS_NAME$21);
|
|
7023
7008
|
}
|
|
7024
|
-
|
|
7025
|
-
//#region src/yui_build_stamp.js
|
|
7009
|
+
// src/yui_build_stamp.js
|
|
7026
7010
|
/***********************************************************************
|
|
7027
7011
|
* yui_build_stamp.js
|
|
7028
7012
|
*
|
|
@@ -7110,8 +7094,7 @@ function build_page_url(loc) {
|
|
|
7110
7094
|
if (!loc) return "";
|
|
7111
7095
|
return `${loc.origin || ""}${loc.pathname || "/"}${loc.search || ""}`;
|
|
7112
7096
|
}
|
|
7113
|
-
|
|
7114
|
-
//#region src/c_yui_update_watch.js
|
|
7097
|
+
// src/c_yui_update_watch.js
|
|
7115
7098
|
/***********************************************************************
|
|
7116
7099
|
* c_yui_update_watch.js
|
|
7117
7100
|
*
|
|
@@ -7719,8 +7702,7 @@ function yui_update_watch_language_changed(src) {
|
|
|
7719
7702
|
(0, _yuneta_gobj_js.gobj_send_event)(watch, "EV_LANGUAGE_CHANGED", {}, src || watch);
|
|
7720
7703
|
}
|
|
7721
7704
|
}
|
|
7722
|
-
|
|
7723
|
-
//#region src/pager_helpers.js
|
|
7705
|
+
// src/pager_helpers.js
|
|
7724
7706
|
/***************************************************************
|
|
7725
7707
|
* Top entry or null.
|
|
7726
7708
|
***************************************************************/
|
|
@@ -7773,8 +7755,7 @@ function pager_back_action(stack, back_on_root) {
|
|
|
7773
7755
|
if (back_on_root) return { type: "exit" };
|
|
7774
7756
|
return { type: "noop" };
|
|
7775
7757
|
}
|
|
7776
|
-
|
|
7777
|
-
//#region src/c_yui_pager.js
|
|
7758
|
+
// src/c_yui_pager.js
|
|
7778
7759
|
/***********************************************************************
|
|
7779
7760
|
* c_yui_pager.js
|
|
7780
7761
|
*
|
|
@@ -8213,8 +8194,7 @@ function create_gclass$19(gclass_name) {
|
|
|
8213
8194
|
function register_c_yui_pager() {
|
|
8214
8195
|
return create_gclass$19(GCLASS_NAME$19);
|
|
8215
8196
|
}
|
|
8216
|
-
|
|
8217
|
-
//#region src/wizard_helpers.js
|
|
8197
|
+
// src/wizard_helpers.js
|
|
8218
8198
|
/***********************************************************************
|
|
8219
8199
|
* wizard_helpers.js
|
|
8220
8200
|
*
|
|
@@ -8302,8 +8282,7 @@ function wizard_accumulate(acc, step_id, kw) {
|
|
|
8302
8282
|
function wizard_should_validate(linear, has_gobj) {
|
|
8303
8283
|
return !!linear && !!has_gobj;
|
|
8304
8284
|
}
|
|
8305
|
-
|
|
8306
|
-
//#region src/c_yui_wizard.js
|
|
8285
|
+
// src/c_yui_wizard.js
|
|
8307
8286
|
/***********************************************************************
|
|
8308
8287
|
* c_yui_wizard.js
|
|
8309
8288
|
*
|
|
@@ -8846,8 +8825,7 @@ function create_gclass$18(gclass_name) {
|
|
|
8846
8825
|
function register_c_yui_wizard() {
|
|
8847
8826
|
return create_gclass$18(GCLASS_NAME$18);
|
|
8848
8827
|
}
|
|
8849
|
-
|
|
8850
|
-
//#region src/yui_tabulator_i18n.js
|
|
8828
|
+
// src/yui_tabulator_i18n.js
|
|
8851
8829
|
/***********************************************************************
|
|
8852
8830
|
* yui_tabulator_i18n.js
|
|
8853
8831
|
*
|
|
@@ -9092,8 +9070,7 @@ function yui_tabulator_relocalize(table, t, titles) {
|
|
|
9092
9070
|
(0, _yuneta_gobj_js.log_warning)(`yui_tabulator_relocalize: table gone: ${e}`);
|
|
9093
9071
|
}
|
|
9094
9072
|
}
|
|
9095
|
-
|
|
9096
|
-
//#region src/yui_asset.js
|
|
9073
|
+
// src/yui_asset.js
|
|
9097
9074
|
var BLOB_ATTR = "data-yui-blob";
|
|
9098
9075
|
function ref_to_id(ref) {
|
|
9099
9076
|
if (!ref) return null;
|
|
@@ -9385,8 +9362,7 @@ function yui_asset_element(answer, opts = {}) {
|
|
|
9385
9362
|
};
|
|
9386
9363
|
return el;
|
|
9387
9364
|
}
|
|
9388
|
-
|
|
9389
|
-
//#region src/yui_file_field.js
|
|
9365
|
+
// src/yui_file_field.js
|
|
9390
9366
|
/***********************************************************************
|
|
9391
9367
|
* yui_file_field.js
|
|
9392
9368
|
*
|
|
@@ -9709,8 +9685,7 @@ function yui_file_control(gobj, { name, value, readonly, accept, on_pick }) {
|
|
|
9709
9685
|
has_asset
|
|
9710
9686
|
};
|
|
9711
9687
|
}
|
|
9712
|
-
|
|
9713
|
-
//#region src/yui_inputs.js
|
|
9688
|
+
// src/yui_inputs.js
|
|
9714
9689
|
/***************************************************************
|
|
9715
9690
|
* The ✕ shows only when there is something to clear AND the field
|
|
9716
9691
|
* can actually be edited — a readonly/disabled input (e.g. the pkey
|
|
@@ -9765,8 +9740,7 @@ function refresh_clear($input) {
|
|
|
9765
9740
|
if (!$btn) return;
|
|
9766
9741
|
$btn.classList.toggle("is-visible", clear_visible($input));
|
|
9767
9742
|
}
|
|
9768
|
-
|
|
9769
|
-
//#region src/form_toolbar_plan.js
|
|
9743
|
+
// src/form_toolbar_plan.js
|
|
9770
9744
|
/***********************************************************************
|
|
9771
9745
|
* form_toolbar_plan.js
|
|
9772
9746
|
*
|
|
@@ -9819,8 +9793,7 @@ function plan_toolbar(wanted) {
|
|
|
9819
9793
|
single_group: left.length === 0 !== (right.length === 0)
|
|
9820
9794
|
};
|
|
9821
9795
|
}
|
|
9822
|
-
|
|
9823
|
-
//#region src/form_field_readonly.js
|
|
9796
|
+
// src/form_field_readonly.js
|
|
9824
9797
|
/***********************************************************************
|
|
9825
9798
|
* form_field_readonly.js
|
|
9826
9799
|
*
|
|
@@ -9870,8 +9843,7 @@ function field_is_readonly(form_readonly, field_desc) {
|
|
|
9870
9843
|
if (desc.type === "fkey") return false;
|
|
9871
9844
|
return !desc.is_writable;
|
|
9872
9845
|
}
|
|
9873
|
-
|
|
9874
|
-
//#region src/yui_theme.js
|
|
9846
|
+
// src/yui_theme.js
|
|
9875
9847
|
/***********************************************************************
|
|
9876
9848
|
* yui_theme.js
|
|
9877
9849
|
*
|
|
@@ -9969,8 +9941,7 @@ function yui_watch_theme(gobj, event = "EV_THEME") {
|
|
|
9969
9941
|
}
|
|
9970
9942
|
} };
|
|
9971
9943
|
}
|
|
9972
|
-
|
|
9973
|
-
//#region src/lib_icons.js
|
|
9944
|
+
// src/lib_icons.js
|
|
9974
9945
|
/*********************************************************
|
|
9975
9946
|
* lib_icons.js
|
|
9976
9947
|
*
|
|
@@ -10467,8 +10438,7 @@ function yui_icons_list() {
|
|
|
10467
10438
|
});
|
|
10468
10439
|
return list;
|
|
10469
10440
|
}
|
|
10470
|
-
|
|
10471
|
-
//#region src/yui_date_text.js
|
|
10441
|
+
// src/yui_date_text.js
|
|
10472
10442
|
/***********************************************************************
|
|
10473
10443
|
* yui_date_text.js
|
|
10474
10444
|
*
|
|
@@ -10894,8 +10864,7 @@ function json_diff_rows(doc_a, doc_b) {
|
|
|
10894
10864
|
rows.sort((x, y) => collator.compare(x.id, y.id));
|
|
10895
10865
|
return rows;
|
|
10896
10866
|
}
|
|
10897
|
-
|
|
10898
|
-
//#region src/form_time_value.js
|
|
10867
|
+
// src/form_time_value.js
|
|
10899
10868
|
/****************************************************************************
|
|
10900
10869
|
* form_time_value.js
|
|
10901
10870
|
*
|
|
@@ -10993,8 +10962,7 @@ function time_value_to_text(value, real_type, locale) {
|
|
|
10993
10962
|
if (!date) return value === null || value === void 0 ? "" : String(value);
|
|
10994
10963
|
return fmt_date_time(date, locale);
|
|
10995
10964
|
}
|
|
10996
|
-
|
|
10997
|
-
//#region src/form_time_cell_editor.js
|
|
10965
|
+
// src/form_time_cell_editor.js
|
|
10998
10966
|
/****************************************************************************
|
|
10999
10967
|
* form_time_cell_editor.js
|
|
11000
10968
|
*
|
|
@@ -11124,8 +11092,7 @@ function form_time_cell_editor(real_type) {
|
|
|
11124
11092
|
return input;
|
|
11125
11093
|
};
|
|
11126
11094
|
}
|
|
11127
|
-
|
|
11128
|
-
//#region src/yui_tabulator_edit.js
|
|
11095
|
+
// src/yui_tabulator_edit.js
|
|
11129
11096
|
/****************************************************************************
|
|
11130
11097
|
* yui_tabulator_edit.js
|
|
11131
11098
|
*
|
|
@@ -11287,8 +11254,7 @@ function yui_tabulator_keep_edit_on_redraw(tabulator) {
|
|
|
11287
11254
|
"moveColumn"
|
|
11288
11255
|
]) keep_edit_around(name, () => true);
|
|
11289
11256
|
}
|
|
11290
|
-
|
|
11291
|
-
//#region src/form_json_field.js
|
|
11257
|
+
// src/form_json_field.js
|
|
11292
11258
|
/***********************************************************************
|
|
11293
11259
|
* form_json_field.js
|
|
11294
11260
|
*
|
|
@@ -11393,8 +11359,7 @@ function json_editor_value(content) {
|
|
|
11393
11359
|
if (content.json === void 0) return;
|
|
11394
11360
|
return JSON.stringify(content.json);
|
|
11395
11361
|
}
|
|
11396
|
-
|
|
11397
|
-
//#region src/form_json_editor_names.js
|
|
11362
|
+
// src/form_json_editor_names.js
|
|
11398
11363
|
/***********************************************************************
|
|
11399
11364
|
* form_json_editor_names.js
|
|
11400
11365
|
*
|
|
@@ -11682,8 +11647,7 @@ function name_json_editor_menu($editor) {
|
|
|
11682
11647
|
}
|
|
11683
11648
|
return named;
|
|
11684
11649
|
}
|
|
11685
|
-
|
|
11686
|
-
//#region src/c_yui_form.js
|
|
11650
|
+
// src/c_yui_form.js
|
|
11687
11651
|
/***********************************************************************
|
|
11688
11652
|
* c_yui_form.js
|
|
11689
11653
|
*
|
|
@@ -14989,8 +14953,7 @@ function register_c_yui_form() {
|
|
|
14989
14953
|
if ((0, _yuneta_gobj_js.gclass_find_by_name)(GCLASS_NAME$17, false)) return 0;
|
|
14990
14954
|
return create_gclass$17(GCLASS_NAME$17);
|
|
14991
14955
|
}
|
|
14992
|
-
|
|
14993
|
-
//#region src/lib_maplibre.js
|
|
14956
|
+
// src/lib_maplibre.js
|
|
14994
14957
|
/***********************************************************************
|
|
14995
14958
|
* lib_maplibre.js
|
|
14996
14959
|
*
|
|
@@ -15219,8 +15182,7 @@ function yui_maplibre_relocalize(map, t) {
|
|
|
15219
15182
|
const $mobile = $c.querySelector(".maplibregl-mobile-message");
|
|
15220
15183
|
if ($mobile) $mobile.textContent = strings["CooperativeGesturesHandler.MobileHelpText"];
|
|
15221
15184
|
}
|
|
15222
|
-
|
|
15223
|
-
//#region src/c_yui_map.js
|
|
15185
|
+
// src/c_yui_map.js
|
|
15224
15186
|
/***********************************************************************
|
|
15225
15187
|
* c_yui_map.js
|
|
15226
15188
|
*
|
|
@@ -15968,8 +15930,7 @@ function create_gclass$16(gclass_name) {
|
|
|
15968
15930
|
function register_c_yui_map() {
|
|
15969
15931
|
return create_gclass$16(GCLASS_NAME$16);
|
|
15970
15932
|
}
|
|
15971
|
-
|
|
15972
|
-
//#region src/yui_uplot_ink.js
|
|
15933
|
+
// src/yui_uplot_ink.js
|
|
15973
15934
|
/***********************************************************************
|
|
15974
15935
|
* yui_uplot_ink.js
|
|
15975
15936
|
*
|
|
@@ -16091,8 +16052,7 @@ function yui_uplot_axes(axes) {
|
|
|
16091
16052
|
return a;
|
|
16092
16053
|
});
|
|
16093
16054
|
}
|
|
16094
|
-
|
|
16095
|
-
//#region src/yui_uplot_time.js
|
|
16055
|
+
// src/yui_uplot_time.js
|
|
16096
16056
|
/***********************************************************************
|
|
16097
16057
|
* yui_uplot_time.js
|
|
16098
16058
|
*
|
|
@@ -16215,8 +16175,7 @@ function yui_uplot_fmt_date(get_locale) {
|
|
|
16215
16175
|
};
|
|
16216
16176
|
};
|
|
16217
16177
|
}
|
|
16218
|
-
|
|
16219
|
-
//#region src/c_yui_uplot.js
|
|
16178
|
+
// src/c_yui_uplot.js
|
|
16220
16179
|
/***********************************************************************
|
|
16221
16180
|
* c_yui_uplot.js
|
|
16222
16181
|
*
|
|
@@ -16558,8 +16517,7 @@ function create_gclass$15(gclass_name) {
|
|
|
16558
16517
|
function register_c_yui_uplot() {
|
|
16559
16518
|
return create_gclass$15(GCLASS_NAME$15);
|
|
16560
16519
|
}
|
|
16561
|
-
|
|
16562
|
-
//#region src/yui_toolbar.js
|
|
16520
|
+
// src/yui_toolbar.js
|
|
16563
16521
|
/************************************************************
|
|
16564
16522
|
* ONE size for every glyph of a view's toolbar, in `rem`.
|
|
16565
16523
|
*
|
|
@@ -16691,8 +16649,7 @@ function set_pressed_state($container, selector, set) {
|
|
|
16691
16649
|
$el.classList.toggle("pressed_state", !!set);
|
|
16692
16650
|
});
|
|
16693
16651
|
}
|
|
16694
|
-
|
|
16695
|
-
//#region src/lib_graph.js
|
|
16652
|
+
// src/lib_graph.js
|
|
16696
16653
|
/***********************************************************************
|
|
16697
16654
|
* lib_graph.js
|
|
16698
16655
|
*
|
|
@@ -16851,8 +16808,7 @@ function getPointPosition(count, index, margin = .2) {
|
|
|
16851
16808
|
const step = (1 - margin / 2 - start) / count;
|
|
16852
16809
|
return start + index * step + step / 2;
|
|
16853
16810
|
}
|
|
16854
|
-
|
|
16855
|
-
//#region src/yui_graph_camera.js
|
|
16811
|
+
// src/yui_graph_camera.js
|
|
16856
16812
|
/***********************************************************************
|
|
16857
16813
|
* yui_graph_camera.js
|
|
16858
16814
|
*
|
|
@@ -17279,8 +17235,7 @@ function classify_press(press, x, y, t) {
|
|
|
17279
17235
|
if (t - press.t0 >= 500) return "long";
|
|
17280
17236
|
return "tap";
|
|
17281
17237
|
}
|
|
17282
|
-
|
|
17283
|
-
//#region src/g6_replace_behavior.js
|
|
17238
|
+
// src/g6_replace_behavior.js
|
|
17284
17239
|
/***********************************************************************
|
|
17285
17240
|
* g6_replace_behavior.js
|
|
17286
17241
|
*
|
|
@@ -17314,8 +17269,7 @@ function replace_g6_behavior(type, Ctor) {
|
|
|
17314
17269
|
if (behaviors && (0, _antv_g6.getExtension)(category, type)) behaviors[type] = Ctor;
|
|
17315
17270
|
if ((0, _antv_g6.getExtension)(category, type) !== Ctor) (0, _antv_g6.register)(category, type, Ctor);
|
|
17316
17271
|
}
|
|
17317
|
-
|
|
17318
|
-
//#region src/g6_touch_gestures.js
|
|
17272
|
+
// src/g6_touch_gestures.js
|
|
17319
17273
|
/***********************************************************************
|
|
17320
17274
|
* g6_touch_gestures.js
|
|
17321
17275
|
*
|
|
@@ -17644,8 +17598,7 @@ function install_long_press_contextmenu(graph, options) {
|
|
|
17644
17598
|
graph.off(_antv_g6.CommonEvent.POINTER_UP, on_up);
|
|
17645
17599
|
};
|
|
17646
17600
|
}
|
|
17647
|
-
|
|
17648
|
-
//#region src/g6_drag_canvas_touch.js
|
|
17601
|
+
// src/g6_drag_canvas_touch.js
|
|
17649
17602
|
/***********************************************************************
|
|
17650
17603
|
* g6_drag_canvas_touch.js
|
|
17651
17604
|
*
|
|
@@ -17762,8 +17715,7 @@ function ensure_drag_canvas_patch() {
|
|
|
17762
17715
|
replace_g6_behavior("drag-canvas", DragCanvasTouch);
|
|
17763
17716
|
__drag_canvas_patched__ = true;
|
|
17764
17717
|
}
|
|
17765
|
-
|
|
17766
|
-
//#region src/g6_event_kw.js
|
|
17718
|
+
// src/g6_event_kw.js
|
|
17767
17719
|
/***********************************************************************
|
|
17768
17720
|
* g6_event_kw.js
|
|
17769
17721
|
*
|
|
@@ -17797,8 +17749,7 @@ function g6_event_kw(evt) {
|
|
|
17797
17749
|
client_y: client && typeof client.y === "number" ? client.y : 0
|
|
17798
17750
|
};
|
|
17799
17751
|
}
|
|
17800
|
-
|
|
17801
|
-
//#region src/g6_canvas_tab_order.js
|
|
17752
|
+
// src/g6_canvas_tab_order.js
|
|
17802
17753
|
/***********************************************************************
|
|
17803
17754
|
* g6_canvas_tab_order.js
|
|
17804
17755
|
*
|
|
@@ -17893,8 +17844,7 @@ function keep_canvas_tab_order(gobj, graph, name_key) {
|
|
|
17893
17844
|
set_canvas_tab_order(gobj, graph, name_key);
|
|
17894
17845
|
});
|
|
17895
17846
|
}
|
|
17896
|
-
|
|
17897
|
-
//#region src/c_yui_json_graph.js
|
|
17847
|
+
// src/c_yui_json_graph.js
|
|
17898
17848
|
/***********************************************************************
|
|
17899
17849
|
* c_yui_json_graph.js
|
|
17900
17850
|
*
|
|
@@ -19537,8 +19487,7 @@ function register_c_yui_json_graph() {
|
|
|
19537
19487
|
if ((0, _yuneta_gobj_js.gclass_find_by_name)(GCLASS_NAME$14, false)) return 0;
|
|
19538
19488
|
return create_gclass$14(GCLASS_NAME$14);
|
|
19539
19489
|
}
|
|
19540
|
-
|
|
19541
|
-
//#region src/c_yui_json.js
|
|
19490
|
+
// src/c_yui_json.js
|
|
19542
19491
|
/***********************************************************************
|
|
19543
19492
|
* c_yui_json.js
|
|
19544
19493
|
*
|
|
@@ -20835,8 +20784,7 @@ function register_c_yui_json() {
|
|
|
20835
20784
|
if (!(0, _yuneta_gobj_js.gclass_find_by_name)("C_YUI_JSON_GRAPH", false)) register_c_yui_json_graph();
|
|
20836
20785
|
return create_gclass$13(GCLASS_NAME$13);
|
|
20837
20786
|
}
|
|
20838
|
-
|
|
20839
|
-
//#region src/c_yui_json_pad.js
|
|
20787
|
+
// src/c_yui_json_pad.js
|
|
20840
20788
|
/***********************************************************************
|
|
20841
20789
|
* c_yui_json_pad.js
|
|
20842
20790
|
*
|
|
@@ -21715,8 +21663,7 @@ function register_c_yui_json_pad() {
|
|
|
21715
21663
|
if (!(0, _yuneta_gobj_js.gclass_find_by_name)("C_YUI_JSON", false)) register_c_yui_json();
|
|
21716
21664
|
return create_gclass$12(GCLASS_NAME$12);
|
|
21717
21665
|
}
|
|
21718
|
-
|
|
21719
|
-
//#region src/gclass_view_model.js
|
|
21666
|
+
// src/gclass_view_model.js
|
|
21720
21667
|
/***********************************************************************
|
|
21721
21668
|
* gclass_view_model.js
|
|
21722
21669
|
*
|
|
@@ -22006,8 +21953,7 @@ function gclass_view_model(description) {
|
|
|
22006
21953
|
fsm: build_fsm(description.FSM)
|
|
22007
21954
|
};
|
|
22008
21955
|
}
|
|
22009
|
-
|
|
22010
|
-
//#region src/gobj_tree_model.js
|
|
21956
|
+
// src/gobj_tree_model.js
|
|
22011
21957
|
/***********************************************************************
|
|
22012
21958
|
* gobj_tree_model.js
|
|
22013
21959
|
*
|
|
@@ -22424,8 +22370,7 @@ function own_trace_levels(rows, scope) {
|
|
|
22424
22370
|
else if (scope === "global" && r.global_on) out.push(r.level);
|
|
22425
22371
|
return out;
|
|
22426
22372
|
}
|
|
22427
|
-
|
|
22428
|
-
//#region src/c_yui_fsm_graph.js
|
|
22373
|
+
// src/c_yui_fsm_graph.js
|
|
22429
22374
|
/***********************************************************************
|
|
22430
22375
|
* c_yui_fsm_graph.js
|
|
22431
22376
|
*
|
|
@@ -23155,8 +23100,7 @@ function register_c_yui_fsm_graph() {
|
|
|
23155
23100
|
if ((0, _yuneta_gobj_js.gclass_find_by_name)(GCLASS_NAME$11, false)) return 0;
|
|
23156
23101
|
return create_gclass$11(GCLASS_NAME$11);
|
|
23157
23102
|
}
|
|
23158
|
-
|
|
23159
|
-
//#region src/yui_clipboard.js
|
|
23103
|
+
// src/yui_clipboard.js
|
|
23160
23104
|
/***********************************************************************
|
|
23161
23105
|
* yui_clipboard.js
|
|
23162
23106
|
*
|
|
@@ -23265,8 +23209,7 @@ function yui_button_mark_done($button, label) {
|
|
|
23265
23209
|
$label.textContent = label;
|
|
23266
23210
|
}
|
|
23267
23211
|
}
|
|
23268
|
-
|
|
23269
|
-
//#region src/c_yui_gclass.js
|
|
23212
|
+
// src/c_yui_gclass.js
|
|
23270
23213
|
/***********************************************************************
|
|
23271
23214
|
* c_yui_gclass.js
|
|
23272
23215
|
*
|
|
@@ -25194,8 +25137,7 @@ function register_c_yui_gclass() {
|
|
|
25194
25137
|
if (!(0, _yuneta_gobj_js.gclass_find_by_name)("C_YUI_FSM_GRAPH", false)) register_c_yui_fsm_graph();
|
|
25195
25138
|
return create_gclass$10(GCLASS_NAME$10);
|
|
25196
25139
|
}
|
|
25197
|
-
|
|
25198
|
-
//#region src/gclass_describe.js
|
|
25140
|
+
// src/gclass_describe.js
|
|
25199
25141
|
/***********************************************************************
|
|
25200
25142
|
* gclass_describe.js
|
|
25201
25143
|
*
|
|
@@ -25357,8 +25299,7 @@ function describe_local_gclass(gclass_name) {
|
|
|
25357
25299
|
trace_levels: Array.isArray(gclass.s_user_trace_level) ? gclass.s_user_trace_level : []
|
|
25358
25300
|
};
|
|
25359
25301
|
}
|
|
25360
|
-
|
|
25361
|
-
//#region src/yui_gclass_view.js
|
|
25302
|
+
// src/yui_gclass_view.js
|
|
25362
25303
|
/***********************************************************************
|
|
25363
25304
|
* yui_gclass_view.js
|
|
25364
25305
|
*
|
|
@@ -25588,8 +25529,7 @@ function window_layer_of(host) {
|
|
|
25588
25529
|
function is_mobile$3() {
|
|
25589
25530
|
return typeof window !== "undefined" && window.innerWidth <= 768;
|
|
25590
25531
|
}
|
|
25591
|
-
|
|
25592
|
-
//#region node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
25532
|
+
// node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
25593
25533
|
function _typeof(o) {
|
|
25594
25534
|
"@babel/helpers - typeof";
|
|
25595
25535
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -25598,8 +25538,7 @@ function _typeof(o) {
|
|
|
25598
25538
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
25599
25539
|
}, _typeof(o);
|
|
25600
25540
|
}
|
|
25601
|
-
|
|
25602
|
-
//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
25541
|
+
// node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
25603
25542
|
function toPrimitive(t, e) {
|
|
25604
25543
|
if ("object" != _typeof(t) || !t) return t;
|
|
25605
25544
|
var r;
|
|
@@ -25610,14 +25549,12 @@ function toPrimitive(t, e) {
|
|
|
25610
25549
|
}
|
|
25611
25550
|
return ("string" === e ? String : Number)(t);
|
|
25612
25551
|
}
|
|
25613
|
-
|
|
25614
|
-
//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
25552
|
+
// node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
25615
25553
|
function toPropertyKey(t) {
|
|
25616
25554
|
var i = toPrimitive(t, "string");
|
|
25617
25555
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
25618
25556
|
}
|
|
25619
|
-
|
|
25620
|
-
//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
25557
|
+
// node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
25621
25558
|
function _defineProperty(e, r, t) {
|
|
25622
25559
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
25623
25560
|
value: t,
|
|
@@ -25626,8 +25563,7 @@ function _defineProperty(e, r, t) {
|
|
|
25626
25563
|
writable: !0
|
|
25627
25564
|
}) : e[r] = t, e;
|
|
25628
25565
|
}
|
|
25629
|
-
|
|
25630
|
-
//#region node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
25566
|
+
// node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
25631
25567
|
function ownKeys(e, r) {
|
|
25632
25568
|
var t = Object.keys(e);
|
|
25633
25569
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -25649,13 +25585,11 @@ function _objectSpread2(e) {
|
|
|
25649
25585
|
}
|
|
25650
25586
|
return e;
|
|
25651
25587
|
}
|
|
25652
|
-
|
|
25653
|
-
//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
25588
|
+
// node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
25654
25589
|
function _classCallCheck(a, n) {
|
|
25655
25590
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
25656
25591
|
}
|
|
25657
|
-
|
|
25658
|
-
//#region node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
25592
|
+
// node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
25659
25593
|
function _defineProperties(e, r) {
|
|
25660
25594
|
for (var t = 0; t < r.length; t++) {
|
|
25661
25595
|
var o = r[t];
|
|
@@ -25665,25 +25599,21 @@ function _defineProperties(e, r) {
|
|
|
25665
25599
|
function _createClass(e, r, t) {
|
|
25666
25600
|
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
25667
25601
|
}
|
|
25668
|
-
|
|
25669
|
-
//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
25602
|
+
// node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
25670
25603
|
function _arrayLikeToArray(r, a) {
|
|
25671
25604
|
(null == a || a > r.length) && (a = r.length);
|
|
25672
25605
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
25673
25606
|
return n;
|
|
25674
25607
|
}
|
|
25675
|
-
|
|
25676
|
-
//#region node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
25608
|
+
// node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
25677
25609
|
function _arrayWithoutHoles(r) {
|
|
25678
25610
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
25679
25611
|
}
|
|
25680
|
-
|
|
25681
|
-
//#region node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
25612
|
+
// node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
25682
25613
|
function _iterableToArray(r) {
|
|
25683
25614
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
25684
25615
|
}
|
|
25685
|
-
|
|
25686
|
-
//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
25616
|
+
// node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
25687
25617
|
function _unsupportedIterableToArray(r, a) {
|
|
25688
25618
|
if (r) {
|
|
25689
25619
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -25691,25 +25621,21 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
25691
25621
|
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;
|
|
25692
25622
|
}
|
|
25693
25623
|
}
|
|
25694
|
-
|
|
25695
|
-
//#region node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
25624
|
+
// node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
25696
25625
|
function _nonIterableSpread() {
|
|
25697
25626
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
25698
25627
|
}
|
|
25699
|
-
|
|
25700
|
-
//#region node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
25628
|
+
// node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
25701
25629
|
function _toConsumableArray(r) {
|
|
25702
25630
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
25703
25631
|
}
|
|
25704
|
-
|
|
25705
|
-
//#region node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
25632
|
+
// node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
25706
25633
|
function _getPrototypeOf(t) {
|
|
25707
25634
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
25708
25635
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
25709
25636
|
}, _getPrototypeOf(t);
|
|
25710
25637
|
}
|
|
25711
|
-
|
|
25712
|
-
//#region node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
25638
|
+
// node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
25713
25639
|
function _isNativeReflectConstruct() {
|
|
25714
25640
|
try {
|
|
25715
25641
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
@@ -25718,33 +25644,28 @@ function _isNativeReflectConstruct() {
|
|
|
25718
25644
|
return !!t;
|
|
25719
25645
|
})();
|
|
25720
25646
|
}
|
|
25721
|
-
|
|
25722
|
-
//#region node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
25647
|
+
// node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
25723
25648
|
function _assertThisInitialized(e) {
|
|
25724
25649
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
25725
25650
|
return e;
|
|
25726
25651
|
}
|
|
25727
|
-
|
|
25728
|
-
//#region node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
25652
|
+
// node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
25729
25653
|
function _possibleConstructorReturn(t, e) {
|
|
25730
25654
|
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
25731
25655
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
25732
25656
|
return _assertThisInitialized(t);
|
|
25733
25657
|
}
|
|
25734
|
-
|
|
25735
|
-
//#region node_modules/@babel/runtime/helpers/esm/callSuper.js
|
|
25658
|
+
// node_modules/@babel/runtime/helpers/esm/callSuper.js
|
|
25736
25659
|
function _callSuper(t, o, e) {
|
|
25737
25660
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
25738
25661
|
}
|
|
25739
|
-
|
|
25740
|
-
//#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
25662
|
+
// node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
25741
25663
|
function _setPrototypeOf(t, e) {
|
|
25742
25664
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
25743
25665
|
return t.__proto__ = e, t;
|
|
25744
25666
|
}, _setPrototypeOf(t, e);
|
|
25745
25667
|
}
|
|
25746
|
-
|
|
25747
|
-
//#region node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
25668
|
+
// node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
25748
25669
|
function _inherits(t, e) {
|
|
25749
25670
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
25750
25671
|
t.prototype = Object.create(e && e.prototype, { constructor: {
|
|
@@ -25753,13 +25674,11 @@ function _inherits(t, e) {
|
|
|
25753
25674
|
configurable: !0
|
|
25754
25675
|
} }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e);
|
|
25755
25676
|
}
|
|
25756
|
-
|
|
25757
|
-
//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
25677
|
+
// node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
25758
25678
|
function _arrayWithHoles(r) {
|
|
25759
25679
|
if (Array.isArray(r)) return r;
|
|
25760
25680
|
}
|
|
25761
|
-
|
|
25762
|
-
//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
25681
|
+
// node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
25763
25682
|
function _iterableToArrayLimit(r, l) {
|
|
25764
25683
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
25765
25684
|
if (null != t) {
|
|
@@ -25781,13 +25700,11 @@ function _iterableToArrayLimit(r, l) {
|
|
|
25781
25700
|
return a;
|
|
25782
25701
|
}
|
|
25783
25702
|
}
|
|
25784
|
-
|
|
25785
|
-
//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
25703
|
+
// node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
25786
25704
|
function _nonIterableRest() {
|
|
25787
25705
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
25788
25706
|
}
|
|
25789
|
-
|
|
25790
|
-
//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
25707
|
+
// node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
25791
25708
|
function _slicedToArray(r, e) {
|
|
25792
25709
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
25793
25710
|
}
|
|
@@ -26026,8 +25943,7 @@ var eventemitter3_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJS
|
|
|
26026
25943
|
if ("undefined" !== typeof module) module.exports = EventEmitter;
|
|
26027
25944
|
})))(), 1)).default;
|
|
26028
25945
|
var ARRAY_TYPE = typeof Float32Array !== "undefined" ? Float32Array : Array;
|
|
26029
|
-
|
|
26030
|
-
//#region node_modules/gl-matrix/esm/mat3.js
|
|
25946
|
+
// node_modules/gl-matrix/esm/mat3.js
|
|
26031
25947
|
/**
|
|
26032
25948
|
* 3x3 Matrix
|
|
26033
25949
|
* @module mat3
|
|
@@ -26098,8 +26014,7 @@ function fromValues$4(m00, m01, m02, m10, m11, m12, m20, m21, m22) {
|
|
|
26098
26014
|
out[8] = m22;
|
|
26099
26015
|
return out;
|
|
26100
26016
|
}
|
|
26101
|
-
|
|
26102
|
-
//#region node_modules/gl-matrix/esm/mat4.js
|
|
26017
|
+
// node_modules/gl-matrix/esm/mat4.js
|
|
26103
26018
|
var mat4_exports = /* @__PURE__ */ __exportAll({
|
|
26104
26019
|
add: () => add$1,
|
|
26105
26020
|
adjoint: () => adjoint,
|
|
@@ -27906,8 +27821,7 @@ var mul$1 = multiply$2;
|
|
|
27906
27821
|
* @function
|
|
27907
27822
|
*/
|
|
27908
27823
|
var sub$1 = subtract$1;
|
|
27909
|
-
|
|
27910
|
-
//#region node_modules/gl-matrix/esm/vec3.js
|
|
27824
|
+
// node_modules/gl-matrix/esm/vec3.js
|
|
27911
27825
|
/**
|
|
27912
27826
|
* 3 Dimensional Vector
|
|
27913
27827
|
* @module vec3
|
|
@@ -28256,8 +28170,7 @@ var len = length;
|
|
|
28256
28170
|
return a;
|
|
28257
28171
|
};
|
|
28258
28172
|
})();
|
|
28259
|
-
|
|
28260
|
-
//#region node_modules/gl-matrix/esm/vec4.js
|
|
28173
|
+
// node_modules/gl-matrix/esm/vec4.js
|
|
28261
28174
|
/**
|
|
28262
28175
|
* 4 Dimensional Vector
|
|
28263
28176
|
* @module vec4
|
|
@@ -28383,8 +28296,7 @@ function transformMat4(out, a, m) {
|
|
|
28383
28296
|
return a;
|
|
28384
28297
|
};
|
|
28385
28298
|
})();
|
|
28386
|
-
|
|
28387
|
-
//#region node_modules/gl-matrix/esm/quat.js
|
|
28299
|
+
// node_modules/gl-matrix/esm/quat.js
|
|
28388
28300
|
/**
|
|
28389
28301
|
* Quaternion in the format XYZW
|
|
28390
28302
|
* @module quat
|
|
@@ -28690,8 +28602,7 @@ var normalize$1 = normalize$2;
|
|
|
28690
28602
|
return normalize$1(out, fromMat3(out, matr));
|
|
28691
28603
|
};
|
|
28692
28604
|
})();
|
|
28693
|
-
|
|
28694
|
-
//#region node_modules/gl-matrix/esm/vec2.js
|
|
28605
|
+
// node_modules/gl-matrix/esm/vec2.js
|
|
28695
28606
|
/**
|
|
28696
28607
|
* 2 Dimensional Vector
|
|
28697
28608
|
* @module vec2
|
|
@@ -28752,8 +28663,7 @@ function set(out, x, y) {
|
|
|
28752
28663
|
return a;
|
|
28753
28664
|
};
|
|
28754
28665
|
})();
|
|
28755
|
-
|
|
28756
|
-
//#region node_modules/@antv/util/esm/lodash/is-function.js
|
|
28666
|
+
// node_modules/@antv/util/esm/lodash/is-function.js
|
|
28757
28667
|
/**
|
|
28758
28668
|
* 判断值是否为函数
|
|
28759
28669
|
* @return 是否为函数
|
|
@@ -28761,8 +28671,7 @@ function set(out, x, y) {
|
|
|
28761
28671
|
function isFunction(value) {
|
|
28762
28672
|
return typeof value === "function";
|
|
28763
28673
|
}
|
|
28764
|
-
|
|
28765
|
-
//#region node_modules/@antv/util/esm/lodash/is-nil.js
|
|
28674
|
+
// node_modules/@antv/util/esm/lodash/is-nil.js
|
|
28766
28675
|
/**
|
|
28767
28676
|
* 判断值是否为 null 或 undefined
|
|
28768
28677
|
* @return 是否为 null 或 undefined
|
|
@@ -28770,8 +28679,7 @@ function isFunction(value) {
|
|
|
28770
28679
|
function isNil(value) {
|
|
28771
28680
|
return value === null || value === void 0;
|
|
28772
28681
|
}
|
|
28773
|
-
|
|
28774
|
-
//#region node_modules/@antv/util/esm/lodash/is-array.js
|
|
28682
|
+
// node_modules/@antv/util/esm/lodash/is-array.js
|
|
28775
28683
|
/**
|
|
28776
28684
|
* 判断值是否为数组
|
|
28777
28685
|
* @return 是否为数组
|
|
@@ -28779,8 +28687,7 @@ function isNil(value) {
|
|
|
28779
28687
|
function isArray(value) {
|
|
28780
28688
|
return Array.isArray(value);
|
|
28781
28689
|
}
|
|
28782
|
-
|
|
28783
|
-
//#region node_modules/@antv/util/esm/lodash/is-object.js
|
|
28690
|
+
// node_modules/@antv/util/esm/lodash/is-object.js
|
|
28784
28691
|
var is_object_default = (function(value) {
|
|
28785
28692
|
/**
|
|
28786
28693
|
* isObject({}) => true
|
|
@@ -28791,14 +28698,12 @@ var is_object_default = (function(value) {
|
|
|
28791
28698
|
var type = typeof value;
|
|
28792
28699
|
return value !== null && type === "object" || type === "function";
|
|
28793
28700
|
});
|
|
28794
|
-
|
|
28795
|
-
//#region node_modules/@antv/util/esm/lodash/is-type.js
|
|
28701
|
+
// node_modules/@antv/util/esm/lodash/is-type.js
|
|
28796
28702
|
var toString = {}.toString;
|
|
28797
28703
|
var isType = function(value, type) {
|
|
28798
28704
|
return toString.call(value) === "[object " + type + "]";
|
|
28799
28705
|
};
|
|
28800
|
-
|
|
28801
|
-
//#region node_modules/@antv/util/esm/lodash/max.js
|
|
28706
|
+
// node_modules/@antv/util/esm/lodash/max.js
|
|
28802
28707
|
/**
|
|
28803
28708
|
* 计算数组的最大值
|
|
28804
28709
|
* @param arr 数组
|
|
@@ -28812,8 +28717,7 @@ function max(arr) {
|
|
|
28812
28717
|
for (var i = 1; i < length; i++) max = Math.max(max, arr[i]);
|
|
28813
28718
|
return max;
|
|
28814
28719
|
}
|
|
28815
|
-
|
|
28816
|
-
//#region node_modules/@antv/util/esm/lodash/min.js
|
|
28720
|
+
// node_modules/@antv/util/esm/lodash/min.js
|
|
28817
28721
|
/**
|
|
28818
28722
|
* @param {Array} arr The array to iterate over.
|
|
28819
28723
|
* @return {*} Returns the minimum value.
|
|
@@ -28837,8 +28741,7 @@ var min_default = (function(arr) {
|
|
|
28837
28741
|
return Math.min(prev, curr);
|
|
28838
28742
|
}, arr[0]);
|
|
28839
28743
|
});
|
|
28840
|
-
|
|
28841
|
-
//#region node_modules/@antv/util/esm/lodash/is-string.js
|
|
28744
|
+
// node_modules/@antv/util/esm/lodash/is-string.js
|
|
28842
28745
|
/**
|
|
28843
28746
|
* 判断值是否为字符串
|
|
28844
28747
|
* @return 是否为字符串
|
|
@@ -28846,15 +28749,13 @@ var min_default = (function(arr) {
|
|
|
28846
28749
|
function isString(value) {
|
|
28847
28750
|
return typeof value === "string";
|
|
28848
28751
|
}
|
|
28849
|
-
|
|
28850
|
-
//#region node_modules/@antv/util/esm/lodash/clamp.js
|
|
28752
|
+
// node_modules/@antv/util/esm/lodash/clamp.js
|
|
28851
28753
|
var clamp = function(a, min, max) {
|
|
28852
28754
|
if (a < min) return min;
|
|
28853
28755
|
else if (a > max) return max;
|
|
28854
28756
|
return a;
|
|
28855
28757
|
};
|
|
28856
|
-
|
|
28857
|
-
//#region node_modules/@antv/util/esm/lodash/is-number.js
|
|
28758
|
+
// node_modules/@antv/util/esm/lodash/is-number.js
|
|
28858
28759
|
/**
|
|
28859
28760
|
* 判断值是否为数字
|
|
28860
28761
|
* @return 是否为数字
|
|
@@ -28862,8 +28763,7 @@ var clamp = function(a, min, max) {
|
|
|
28862
28763
|
function isNumber(value) {
|
|
28863
28764
|
return typeof value === "number";
|
|
28864
28765
|
}
|
|
28865
|
-
|
|
28866
|
-
//#region node_modules/@antv/util/esm/lodash/is-number-equal.js
|
|
28766
|
+
// node_modules/@antv/util/esm/lodash/is-number-equal.js
|
|
28867
28767
|
var PRECISION = 1e-5;
|
|
28868
28768
|
/**
|
|
28869
28769
|
* 判断两个数是否相等
|
|
@@ -28873,13 +28773,11 @@ function isNumberEqual(a, b, precision) {
|
|
|
28873
28773
|
if (precision === void 0) precision = PRECISION;
|
|
28874
28774
|
return a === b || Math.abs(a - b) < precision;
|
|
28875
28775
|
}
|
|
28876
|
-
|
|
28877
|
-
//#region node_modules/@antv/util/esm/lodash/mod.js
|
|
28776
|
+
// node_modules/@antv/util/esm/lodash/mod.js
|
|
28878
28777
|
var mod = function(n, m) {
|
|
28879
28778
|
return (n % m + m) % m;
|
|
28880
28779
|
};
|
|
28881
|
-
|
|
28882
|
-
//#region node_modules/@antv/util/esm/lodash/is-boolean.js
|
|
28780
|
+
// node_modules/@antv/util/esm/lodash/is-boolean.js
|
|
28883
28781
|
/**
|
|
28884
28782
|
* 是否是布尔类型
|
|
28885
28783
|
*
|
|
@@ -28889,13 +28787,11 @@ var mod = function(n, m) {
|
|
|
28889
28787
|
var isBoolean = function(value) {
|
|
28890
28788
|
return isType(value, "Boolean");
|
|
28891
28789
|
};
|
|
28892
|
-
|
|
28893
|
-
//#region node_modules/@antv/util/esm/lodash/is-undefined.js
|
|
28790
|
+
// node_modules/@antv/util/esm/lodash/is-undefined.js
|
|
28894
28791
|
var isUndefined = function(value) {
|
|
28895
28792
|
return value === void 0;
|
|
28896
28793
|
};
|
|
28897
|
-
|
|
28898
|
-
//#region node_modules/tslib/tslib.es6.mjs
|
|
28794
|
+
// node_modules/tslib/tslib.es6.mjs
|
|
28899
28795
|
var __assign = function() {
|
|
28900
28796
|
__assign = Object.assign || function __assign(t) {
|
|
28901
28797
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -28915,8 +28811,7 @@ function __spreadArray(to, from, pack) {
|
|
|
28915
28811
|
}
|
|
28916
28812
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
28917
28813
|
}
|
|
28918
|
-
|
|
28919
|
-
//#region node_modules/@antv/util/esm/path/parser/params-parser.js
|
|
28814
|
+
// node_modules/@antv/util/esm/path/parser/params-parser.js
|
|
28920
28815
|
var paramsParser = {
|
|
28921
28816
|
x1: 0,
|
|
28922
28817
|
y1: 0,
|
|
@@ -28927,8 +28822,7 @@ var paramsParser = {
|
|
|
28927
28822
|
qx: null,
|
|
28928
28823
|
qy: null
|
|
28929
28824
|
};
|
|
28930
|
-
|
|
28931
|
-
//#region node_modules/@antv/util/esm/path/process/fix-arc.js
|
|
28825
|
+
// node_modules/@antv/util/esm/path/process/fix-arc.js
|
|
28932
28826
|
function fixArc(pathArray, allPathCommands, i) {
|
|
28933
28827
|
if (pathArray[i].length > 7) {
|
|
28934
28828
|
pathArray[i].shift();
|
|
@@ -28941,8 +28835,7 @@ function fixArc(pathArray, allPathCommands, i) {
|
|
|
28941
28835
|
pathArray.splice(i, 1);
|
|
28942
28836
|
}
|
|
28943
28837
|
}
|
|
28944
|
-
|
|
28945
|
-
//#region node_modules/@antv/util/esm/path/parser/params-count.js
|
|
28838
|
+
// node_modules/@antv/util/esm/path/parser/params-count.js
|
|
28946
28839
|
var paramsCount = {
|
|
28947
28840
|
a: 7,
|
|
28948
28841
|
c: 6,
|
|
@@ -28956,8 +28849,7 @@ var paramsCount = {
|
|
|
28956
28849
|
v: 1,
|
|
28957
28850
|
z: 0
|
|
28958
28851
|
};
|
|
28959
|
-
|
|
28960
|
-
//#region node_modules/@antv/util/esm/path/util/is-path-array.js
|
|
28852
|
+
// node_modules/@antv/util/esm/path/util/is-path-array.js
|
|
28961
28853
|
/**
|
|
28962
28854
|
* Iterates an array to check if it's an actual `PathArray`.
|
|
28963
28855
|
*/
|
|
@@ -28967,8 +28859,7 @@ function isPathArray(path) {
|
|
|
28967
28859
|
return paramsCount[lk] === seg.length - 1 && "achlmqstvz".includes(lk);
|
|
28968
28860
|
});
|
|
28969
28861
|
}
|
|
28970
|
-
|
|
28971
|
-
//#region node_modules/@antv/util/esm/path/util/is-absolute-array.js
|
|
28862
|
+
// node_modules/@antv/util/esm/path/util/is-absolute-array.js
|
|
28972
28863
|
/**
|
|
28973
28864
|
* Iterates an array to check if it's a `PathArray`
|
|
28974
28865
|
* with all absolute values.
|
|
@@ -28979,8 +28870,7 @@ function isAbsoluteArray(path) {
|
|
|
28979
28870
|
return x === x.toUpperCase();
|
|
28980
28871
|
});
|
|
28981
28872
|
}
|
|
28982
|
-
|
|
28983
|
-
//#region node_modules/@antv/util/esm/path/util/is-normalized-array.js
|
|
28873
|
+
// node_modules/@antv/util/esm/path/util/is-normalized-array.js
|
|
28984
28874
|
/**
|
|
28985
28875
|
* Iterates an array to check if it's a `PathArray`
|
|
28986
28876
|
* with all segments are in non-shorthand notation
|
|
@@ -28992,8 +28882,7 @@ function isNormalizedArray(path) {
|
|
|
28992
28882
|
return "ACLMQZ".includes(pc);
|
|
28993
28883
|
});
|
|
28994
28884
|
}
|
|
28995
|
-
|
|
28996
|
-
//#region node_modules/@antv/util/esm/path/parser/finalize-segment.js
|
|
28885
|
+
// node_modules/@antv/util/esm/path/parser/finalize-segment.js
|
|
28997
28886
|
/**
|
|
28998
28887
|
* Breaks the parsing of a pathString once a segment is finalized.
|
|
28999
28888
|
*/
|
|
@@ -29010,8 +28899,7 @@ function finalizeSegment(path) {
|
|
|
29010
28899
|
if (!paramsCount[LK]) break;
|
|
29011
28900
|
}
|
|
29012
28901
|
}
|
|
29013
|
-
|
|
29014
|
-
//#region node_modules/@antv/util/esm/path/parser/scan-flag.js
|
|
28902
|
+
// node_modules/@antv/util/esm/path/parser/scan-flag.js
|
|
29015
28903
|
/**
|
|
29016
28904
|
* Validates an A (arc-to) specific path command value.
|
|
29017
28905
|
* Usually a `large-arc-flag` or `sweep-flag`.
|
|
@@ -29031,8 +28919,7 @@ function scanFlag(path) {
|
|
|
29031
28919
|
}
|
|
29032
28920
|
path.err = "[path-util]: invalid Arc flag \"".concat(pathValue[index], "\", expecting 0 or 1 at index ").concat(index);
|
|
29033
28921
|
}
|
|
29034
|
-
|
|
29035
|
-
//#region node_modules/@antv/util/esm/path/parser/is-digit-start.js
|
|
28922
|
+
// node_modules/@antv/util/esm/path/parser/is-digit-start.js
|
|
29036
28923
|
/**
|
|
29037
28924
|
* Checks if the character is or belongs to a number.
|
|
29038
28925
|
* [0-9]|+|-|.
|
|
@@ -29043,8 +28930,7 @@ function isDigitStart(code) {
|
|
|
29043
28930
|
function isDigit(code) {
|
|
29044
28931
|
return code >= 48 && code <= 57;
|
|
29045
28932
|
}
|
|
29046
|
-
|
|
29047
|
-
//#region node_modules/@antv/util/esm/path/parser/scan-param.js
|
|
28933
|
+
// node_modules/@antv/util/esm/path/parser/scan-param.js
|
|
29048
28934
|
/**
|
|
29049
28935
|
* Validates every character of the path string,
|
|
29050
28936
|
* every path command, negative numbers or floating point numbers.
|
|
@@ -29112,8 +28998,7 @@ function scanParam(path) {
|
|
|
29112
28998
|
path.index = index;
|
|
29113
28999
|
path.param = +path.pathValue.slice(start, index);
|
|
29114
29000
|
}
|
|
29115
|
-
|
|
29116
|
-
//#region node_modules/@antv/util/esm/path/parser/is-space.js
|
|
29001
|
+
// node_modules/@antv/util/esm/path/parser/is-space.js
|
|
29117
29002
|
/**
|
|
29118
29003
|
* Checks if the character is a space.
|
|
29119
29004
|
*/
|
|
@@ -29139,8 +29024,7 @@ function isSpace(ch) {
|
|
|
29139
29024
|
65279
|
|
29140
29025
|
].includes(ch);
|
|
29141
29026
|
}
|
|
29142
|
-
|
|
29143
|
-
//#region node_modules/@antv/util/esm/path/parser/skip-spaces.js
|
|
29027
|
+
// node_modules/@antv/util/esm/path/parser/skip-spaces.js
|
|
29144
29028
|
/**
|
|
29145
29029
|
* Points the parser to the next character in the
|
|
29146
29030
|
* path string every time it encounters any kind of
|
|
@@ -29150,8 +29034,7 @@ function skipSpaces(path) {
|
|
|
29150
29034
|
var pathValue = path.pathValue, max = path.max;
|
|
29151
29035
|
while (path.index < max && isSpace(pathValue.charCodeAt(path.index))) path.index += 1;
|
|
29152
29036
|
}
|
|
29153
|
-
|
|
29154
|
-
//#region node_modules/@antv/util/esm/path/parser/is-path-command.js
|
|
29037
|
+
// node_modules/@antv/util/esm/path/parser/is-path-command.js
|
|
29155
29038
|
/**
|
|
29156
29039
|
* Checks if the character is a path command.
|
|
29157
29040
|
*/
|
|
@@ -29170,16 +29053,14 @@ function isPathCommand(code) {
|
|
|
29170
29053
|
default: return false;
|
|
29171
29054
|
}
|
|
29172
29055
|
}
|
|
29173
|
-
|
|
29174
|
-
//#region node_modules/@antv/util/esm/path/parser/is-arc-command.js
|
|
29056
|
+
// node_modules/@antv/util/esm/path/parser/is-arc-command.js
|
|
29175
29057
|
/**
|
|
29176
29058
|
* Checks if the character is an A (arc-to) path command.
|
|
29177
29059
|
*/
|
|
29178
29060
|
function isArcCommand(code) {
|
|
29179
29061
|
return (code | 32) === 97;
|
|
29180
29062
|
}
|
|
29181
|
-
|
|
29182
|
-
//#region node_modules/@antv/util/esm/path/parser/scan-segment.js
|
|
29063
|
+
// node_modules/@antv/util/esm/path/parser/scan-segment.js
|
|
29183
29064
|
/**
|
|
29184
29065
|
* Scans every character in the path string to determine
|
|
29185
29066
|
* where a segment starts and where it ends.
|
|
@@ -29217,8 +29098,7 @@ function scanSegment(path) {
|
|
|
29217
29098
|
}
|
|
29218
29099
|
finalizeSegment(path);
|
|
29219
29100
|
}
|
|
29220
|
-
|
|
29221
|
-
//#region node_modules/@antv/util/esm/path/parser/path-parser.js
|
|
29101
|
+
// node_modules/@antv/util/esm/path/parser/path-parser.js
|
|
29222
29102
|
/**
|
|
29223
29103
|
* The `PathParser` is used by the `parsePathString` static method
|
|
29224
29104
|
* to generate a `pathArray`.
|
|
@@ -29236,8 +29116,7 @@ var PathParser = function() {
|
|
|
29236
29116
|
}
|
|
29237
29117
|
return PathParser;
|
|
29238
29118
|
}();
|
|
29239
|
-
|
|
29240
|
-
//#region node_modules/@antv/util/esm/path/parser/parse-path-string.js
|
|
29119
|
+
// node_modules/@antv/util/esm/path/parser/parse-path-string.js
|
|
29241
29120
|
/**
|
|
29242
29121
|
* Parses a path string value and returns an array
|
|
29243
29122
|
* of segments we like to call `pathArray`.
|
|
@@ -29249,8 +29128,7 @@ function parsePathString(pathInput) {
|
|
|
29249
29128
|
while (path.index < path.max && !path.err.length) scanSegment(path);
|
|
29250
29129
|
return path.err ? path.err : path.segments;
|
|
29251
29130
|
}
|
|
29252
|
-
|
|
29253
|
-
//#region node_modules/@antv/util/esm/path/convert/path-2-absolute.js
|
|
29131
|
+
// node_modules/@antv/util/esm/path/convert/path-2-absolute.js
|
|
29254
29132
|
/**
|
|
29255
29133
|
* Converts a `PathArray` to an `AbsoluteArray`.
|
|
29256
29134
|
*/
|
|
@@ -29325,8 +29203,7 @@ function path2Absolute(pathInput) {
|
|
|
29325
29203
|
return absoluteSegment;
|
|
29326
29204
|
});
|
|
29327
29205
|
}
|
|
29328
|
-
|
|
29329
|
-
//#region node_modules/@antv/util/esm/path/process/normalize-segment.js
|
|
29206
|
+
// node_modules/@antv/util/esm/path/process/normalize-segment.js
|
|
29330
29207
|
/**
|
|
29331
29208
|
* Normalizes a single segment of a `PathArray` object.
|
|
29332
29209
|
* eg. H/V -> L, T -> Q
|
|
@@ -29377,8 +29254,7 @@ function normalizeSegment(segment, params) {
|
|
|
29377
29254
|
}
|
|
29378
29255
|
return result;
|
|
29379
29256
|
}
|
|
29380
|
-
|
|
29381
|
-
//#region node_modules/@antv/util/esm/path/process/normalize-path.js
|
|
29257
|
+
// node_modules/@antv/util/esm/path/process/normalize-path.js
|
|
29382
29258
|
/**
|
|
29383
29259
|
* @example
|
|
29384
29260
|
* const path = 'M0 0 H50';
|
|
@@ -29400,8 +29276,7 @@ function normalizePath(pathInput) {
|
|
|
29400
29276
|
}
|
|
29401
29277
|
return path;
|
|
29402
29278
|
}
|
|
29403
|
-
|
|
29404
|
-
//#region node_modules/@antv/util/esm/path/util/is-curve-array.js
|
|
29279
|
+
// node_modules/@antv/util/esm/path/util/is-curve-array.js
|
|
29405
29280
|
/**
|
|
29406
29281
|
* Iterates an array to check if it's a `PathArray`
|
|
29407
29282
|
* with all C (cubic bezier) segments.
|
|
@@ -29415,16 +29290,14 @@ function isCurveArray(path) {
|
|
|
29415
29290
|
return "MC".includes(pc);
|
|
29416
29291
|
});
|
|
29417
29292
|
}
|
|
29418
|
-
|
|
29419
|
-
//#region node_modules/@antv/util/esm/path/util/rotate-vector.js
|
|
29293
|
+
// node_modules/@antv/util/esm/path/util/rotate-vector.js
|
|
29420
29294
|
function rotateVector(x, y, rad) {
|
|
29421
29295
|
return {
|
|
29422
29296
|
x: x * Math.cos(rad) - y * Math.sin(rad),
|
|
29423
29297
|
y: x * Math.sin(rad) + y * Math.cos(rad)
|
|
29424
29298
|
};
|
|
29425
29299
|
}
|
|
29426
|
-
|
|
29427
|
-
//#region node_modules/@antv/util/esm/path/process/arc-2-cubic.js
|
|
29300
|
+
// node_modules/@antv/util/esm/path/process/arc-2-cubic.js
|
|
29428
29301
|
/**
|
|
29429
29302
|
* Converts A (arc-to) segments to C (cubic-bezier-to).
|
|
29430
29303
|
*
|
|
@@ -29511,8 +29384,7 @@ function arcToCubic(X1, Y1, RX, RY, angle, LAF, SF, X2, Y2, recursive) {
|
|
|
29511
29384
|
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;
|
|
29512
29385
|
return newres;
|
|
29513
29386
|
}
|
|
29514
|
-
|
|
29515
|
-
//#region node_modules/@antv/util/esm/path/process/quad-2-cubic.js
|
|
29387
|
+
// node_modules/@antv/util/esm/path/process/quad-2-cubic.js
|
|
29516
29388
|
function quadToCubic(x1, y1, qx, qy, x2, y2) {
|
|
29517
29389
|
var r13 = 1 / 3;
|
|
29518
29390
|
var r23 = 2 / 3;
|
|
@@ -29525,8 +29397,7 @@ function quadToCubic(x1, y1, qx, qy, x2, y2) {
|
|
|
29525
29397
|
y2
|
|
29526
29398
|
];
|
|
29527
29399
|
}
|
|
29528
|
-
|
|
29529
|
-
//#region node_modules/@antv/util/esm/path/util/mid-point.js
|
|
29400
|
+
// node_modules/@antv/util/esm/path/util/mid-point.js
|
|
29530
29401
|
function midPoint(a, b, t) {
|
|
29531
29402
|
var ax = a[0];
|
|
29532
29403
|
var ay = a[1];
|
|
@@ -29534,8 +29405,7 @@ function midPoint(a, b, t) {
|
|
|
29534
29405
|
var by = b[1];
|
|
29535
29406
|
return [ax + (bx - ax) * t, ay + (by - ay) * t];
|
|
29536
29407
|
}
|
|
29537
|
-
|
|
29538
|
-
//#region node_modules/@antv/util/esm/path/process/line-2-cubic.js
|
|
29408
|
+
// node_modules/@antv/util/esm/path/process/line-2-cubic.js
|
|
29539
29409
|
var lineToCubic = function(x1, y1, x2, y2) {
|
|
29540
29410
|
return __spreadArray(__spreadArray([], midPoint([x1, y1], [x2, y2], .5), true), [
|
|
29541
29411
|
x2,
|
|
@@ -29544,8 +29414,7 @@ var lineToCubic = function(x1, y1, x2, y2) {
|
|
|
29544
29414
|
y2
|
|
29545
29415
|
], false);
|
|
29546
29416
|
};
|
|
29547
|
-
|
|
29548
|
-
//#region node_modules/@antv/util/esm/path/process/segment-2-cubic.js
|
|
29417
|
+
// node_modules/@antv/util/esm/path/process/segment-2-cubic.js
|
|
29549
29418
|
function segmentToCubic(segment, params) {
|
|
29550
29419
|
var pathCommand = segment[0];
|
|
29551
29420
|
var values = segment.slice(1).map(Number);
|
|
@@ -29584,8 +29453,7 @@ function segmentToCubic(segment, params) {
|
|
|
29584
29453
|
}
|
|
29585
29454
|
return segment;
|
|
29586
29455
|
}
|
|
29587
|
-
|
|
29588
|
-
//#region node_modules/@antv/util/esm/path/convert/path-2-curve.js
|
|
29456
|
+
// node_modules/@antv/util/esm/path/convert/path-2-curve.js
|
|
29589
29457
|
function path2Curve(pathInput, needZCommandIndexes) {
|
|
29590
29458
|
if (needZCommandIndexes === void 0) needZCommandIndexes = false;
|
|
29591
29459
|
if (isCurveArray(pathInput)) {
|
|
@@ -29619,15 +29487,13 @@ function path2Curve(pathInput, needZCommandIndexes) {
|
|
|
29619
29487
|
if (needZCommandIndexes) return [path, zCommandIndexes];
|
|
29620
29488
|
else return path;
|
|
29621
29489
|
}
|
|
29622
|
-
|
|
29623
|
-
//#region node_modules/@antv/util/esm/path/process/clone-path.js
|
|
29490
|
+
// node_modules/@antv/util/esm/path/process/clone-path.js
|
|
29624
29491
|
function clonePath(path) {
|
|
29625
29492
|
return path.map(function(x) {
|
|
29626
29493
|
return Array.isArray(x) ? [].concat(x) : x;
|
|
29627
29494
|
});
|
|
29628
29495
|
}
|
|
29629
|
-
|
|
29630
|
-
//#region node_modules/@antv/util/esm/path/process/reverse-curve.js
|
|
29496
|
+
// node_modules/@antv/util/esm/path/process/reverse-curve.js
|
|
29631
29497
|
function reverseCurve(pathArray) {
|
|
29632
29498
|
var rotatedCurve = pathArray.slice(1).map(function(x, i, curveOnly) {
|
|
29633
29499
|
return !i ? pathArray[0].slice(1).concat(x.slice(1)) : curveOnly[i - 1].slice(-2).concat(x.slice(1));
|
|
@@ -29640,13 +29506,11 @@ function reverseCurve(pathArray) {
|
|
|
29640
29506
|
return ["C"].concat(x.slice(2));
|
|
29641
29507
|
}));
|
|
29642
29508
|
}
|
|
29643
|
-
|
|
29644
|
-
//#region node_modules/@antv/util/esm/path/util/distance-square-root.js
|
|
29509
|
+
// node_modules/@antv/util/esm/path/util/distance-square-root.js
|
|
29645
29510
|
function distanceSquareRoot(a, b) {
|
|
29646
29511
|
return Math.sqrt((a[0] - b[0]) * (a[0] - b[0]) + (a[1] - b[1]) * (a[1] - b[1]));
|
|
29647
29512
|
}
|
|
29648
|
-
|
|
29649
|
-
//#region node_modules/@antv/util/esm/path/util/segment-line-factory.js
|
|
29513
|
+
// node_modules/@antv/util/esm/path/util/segment-line-factory.js
|
|
29650
29514
|
/**
|
|
29651
29515
|
* Returns a {x,y} point at a given length, the total length and
|
|
29652
29516
|
* the minimum and maximum {x,y} coordinates of a line (L,V,H,Z) segment.
|
|
@@ -29687,8 +29551,7 @@ function segmentLineFactory(x1, y1, x2, y2, distance) {
|
|
|
29687
29551
|
}
|
|
29688
29552
|
};
|
|
29689
29553
|
}
|
|
29690
|
-
|
|
29691
|
-
//#region node_modules/@antv/util/esm/path/util/segment-arc-factory.js
|
|
29554
|
+
// node_modules/@antv/util/esm/path/util/segment-arc-factory.js
|
|
29692
29555
|
function angleBetween$1(v0, v1) {
|
|
29693
29556
|
var v0x = v0.x, v0y = v0.y;
|
|
29694
29557
|
var v1x = v1.x, v1y = v1.y;
|
|
@@ -29835,8 +29698,7 @@ function segmentArcFactory(X1, Y1, RX, RY, angle, LAF, SF, X2, Y2, distance, opt
|
|
|
29835
29698
|
}
|
|
29836
29699
|
};
|
|
29837
29700
|
}
|
|
29838
|
-
|
|
29839
|
-
//#region node_modules/@antv/util/esm/path/util/segment-cubic-factory.js
|
|
29701
|
+
// node_modules/@antv/util/esm/path/util/segment-cubic-factory.js
|
|
29840
29702
|
/**
|
|
29841
29703
|
* Returns a {x,y} point at a given length, the total length and
|
|
29842
29704
|
* the minimum and maximum {x,y} coordinates of a C (cubic-bezier) segment.
|
|
@@ -29925,8 +29787,7 @@ function segmentCubicFactory(x1, y1, c1x, c1y, c2x, c2y, x2, y2, distance, optio
|
|
|
29925
29787
|
}
|
|
29926
29788
|
};
|
|
29927
29789
|
}
|
|
29928
|
-
|
|
29929
|
-
//#region node_modules/@antv/util/esm/path/util/segment-quad-factory.js
|
|
29790
|
+
// node_modules/@antv/util/esm/path/util/segment-quad-factory.js
|
|
29930
29791
|
/**
|
|
29931
29792
|
* Returns the {x,y} coordinates of a point at a
|
|
29932
29793
|
* given length of a quadratic-bezier segment.
|
|
@@ -30018,8 +29879,7 @@ function segmentQuadFactory(x1, y1, qx, qy, x2, y2, distance, options) {
|
|
|
30018
29879
|
}
|
|
30019
29880
|
};
|
|
30020
29881
|
}
|
|
30021
|
-
|
|
30022
|
-
//#region node_modules/@antv/util/esm/path/util/path-length-factory.js
|
|
29882
|
+
// node_modules/@antv/util/esm/path/util/path-length-factory.js
|
|
30023
29883
|
/**
|
|
30024
29884
|
* Returns a {x,y} point at a given length
|
|
30025
29885
|
* of a shape, the shape total length and
|
|
@@ -30107,8 +29967,7 @@ function pathLengthFactory(pathInput, distance, options) {
|
|
|
30107
29967
|
}
|
|
30108
29968
|
};
|
|
30109
29969
|
}
|
|
30110
|
-
|
|
30111
|
-
//#region node_modules/@antv/util/esm/path/util/get-total-length.js
|
|
29970
|
+
// node_modules/@antv/util/esm/path/util/get-total-length.js
|
|
30112
29971
|
/**
|
|
30113
29972
|
* Returns the shape total length, or the equivalent to `shape.getTotalLength()`.
|
|
30114
29973
|
*
|
|
@@ -30121,8 +29980,7 @@ function getTotalLength(pathInput, options) {
|
|
|
30121
29980
|
length: true
|
|
30122
29981
|
})).length;
|
|
30123
29982
|
}
|
|
30124
|
-
|
|
30125
|
-
//#region node_modules/@antv/util/esm/path/util/get-rotated-curve.js
|
|
29983
|
+
// node_modules/@antv/util/esm/path/util/get-rotated-curve.js
|
|
30126
29984
|
function getRotations(a) {
|
|
30127
29985
|
var segCount = a.length;
|
|
30128
29986
|
var pointCount = segCount - 1;
|
|
@@ -30155,8 +30013,7 @@ function getRotatedCurve(a, b) {
|
|
|
30155
30013
|
computedIndex = lineLengths.indexOf(Math.min.apply(null, lineLengths));
|
|
30156
30014
|
return rotations[computedIndex];
|
|
30157
30015
|
}
|
|
30158
|
-
|
|
30159
|
-
//#region node_modules/@antv/util/esm/path/util/get-path-area.js
|
|
30016
|
+
// node_modules/@antv/util/esm/path/util/get-path-area.js
|
|
30160
30017
|
/**
|
|
30161
30018
|
* Returns the area of a single cubic-bezier segment.
|
|
30162
30019
|
*
|
|
@@ -30191,13 +30048,11 @@ function getPathArea(path) {
|
|
|
30191
30048
|
return a + b;
|
|
30192
30049
|
}, 0);
|
|
30193
30050
|
}
|
|
30194
|
-
|
|
30195
|
-
//#region node_modules/@antv/util/esm/path/util/get-draw-direction.js
|
|
30051
|
+
// node_modules/@antv/util/esm/path/util/get-draw-direction.js
|
|
30196
30052
|
function getDrawDirection(pathArray) {
|
|
30197
30053
|
return getPathArea(pathArray) >= 0;
|
|
30198
30054
|
}
|
|
30199
|
-
|
|
30200
|
-
//#region node_modules/@antv/util/esm/path/util/get-point-at-length.js
|
|
30055
|
+
// node_modules/@antv/util/esm/path/util/get-point-at-length.js
|
|
30201
30056
|
/**
|
|
30202
30057
|
* Returns [x,y] coordinates of a point at a given length of a shape.
|
|
30203
30058
|
*/
|
|
@@ -30207,8 +30062,7 @@ function getPointAtLength(pathInput, distance, options) {
|
|
|
30207
30062
|
length: true
|
|
30208
30063
|
})).point;
|
|
30209
30064
|
}
|
|
30210
|
-
|
|
30211
|
-
//#region node_modules/@antv/util/esm/path/util/equalize-segments.js
|
|
30065
|
+
// node_modules/@antv/util/esm/path/util/equalize-segments.js
|
|
30212
30066
|
var MAX_RECURSION_DEPTH = 50;
|
|
30213
30067
|
function splitCubic(pts, t) {
|
|
30214
30068
|
if (t === void 0) t = .5;
|
|
@@ -30279,14 +30133,12 @@ function equalizeSegments(path1, path2, TL, depth) {
|
|
|
30279
30133
|
});
|
|
30280
30134
|
return result[0].length === result[1].length ? result : equalizeSegments(result[0], result[1], tl, depth + 1);
|
|
30281
30135
|
}
|
|
30282
|
-
|
|
30283
|
-
//#region node_modules/@babel/runtime/helpers/esm/superPropBase.js
|
|
30136
|
+
// node_modules/@babel/runtime/helpers/esm/superPropBase.js
|
|
30284
30137
|
function _superPropBase(t, o) {
|
|
30285
30138
|
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
|
|
30286
30139
|
return t;
|
|
30287
30140
|
}
|
|
30288
|
-
|
|
30289
|
-
//#region node_modules/@babel/runtime/helpers/esm/get.js
|
|
30141
|
+
// node_modules/@babel/runtime/helpers/esm/get.js
|
|
30290
30142
|
function _get() {
|
|
30291
30143
|
return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e, t, r) {
|
|
30292
30144
|
var p = _superPropBase(e, t);
|
|
@@ -30296,16 +30148,14 @@ function _get() {
|
|
|
30296
30148
|
}
|
|
30297
30149
|
}, _get.apply(null, arguments);
|
|
30298
30150
|
}
|
|
30299
|
-
|
|
30300
|
-
//#region node_modules/@babel/runtime/helpers/esm/superPropGet.js
|
|
30151
|
+
// node_modules/@babel/runtime/helpers/esm/superPropGet.js
|
|
30301
30152
|
function _superPropGet(t, o, e, r) {
|
|
30302
30153
|
var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
|
|
30303
30154
|
return 2 & r && "function" == typeof p ? function(t) {
|
|
30304
30155
|
return p.apply(e, t);
|
|
30305
30156
|
} : p;
|
|
30306
30157
|
}
|
|
30307
|
-
|
|
30308
|
-
//#region node_modules/@antv/g-math/dist/index.esm.js
|
|
30158
|
+
// node_modules/@antv/g-math/dist/index.esm.js
|
|
30309
30159
|
/*!
|
|
30310
30160
|
* @antv/g-math
|
|
30311
30161
|
* @description Geometry util
|
|
@@ -30462,13 +30312,11 @@ function box(x1, y1, x2, y2, x3, y3) {
|
|
|
30462
30312
|
if (yExtrema !== void 0) yArr.push(quadraticAt(y1, y2, y3, yExtrema));
|
|
30463
30313
|
return getBBoxByArray(xArr, yArr);
|
|
30464
30314
|
}
|
|
30465
|
-
|
|
30466
|
-
//#region node_modules/@babel/runtime/helpers/esm/OverloadYield.js
|
|
30315
|
+
// node_modules/@babel/runtime/helpers/esm/OverloadYield.js
|
|
30467
30316
|
function _OverloadYield(e, d) {
|
|
30468
30317
|
this.v = e, this.k = d;
|
|
30469
30318
|
}
|
|
30470
|
-
|
|
30471
|
-
//#region node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js
|
|
30319
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js
|
|
30472
30320
|
function _regeneratorDefine(e, r, n, t) {
|
|
30473
30321
|
var i = Object.defineProperty;
|
|
30474
30322
|
try {
|
|
@@ -30490,8 +30338,7 @@ function _regeneratorDefine(e, r, n, t) {
|
|
|
30490
30338
|
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
30491
30339
|
}, _regeneratorDefine(e, r, n, t);
|
|
30492
30340
|
}
|
|
30493
|
-
|
|
30494
|
-
//#region node_modules/@babel/runtime/helpers/esm/regenerator.js
|
|
30341
|
+
// node_modules/@babel/runtime/helpers/esm/regenerator.js
|
|
30495
30342
|
function _regenerator() {
|
|
30496
30343
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
30497
30344
|
var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag";
|
|
@@ -30564,8 +30411,7 @@ function _regenerator() {
|
|
|
30564
30411
|
};
|
|
30565
30412
|
})();
|
|
30566
30413
|
}
|
|
30567
|
-
|
|
30568
|
-
//#region node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js
|
|
30414
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js
|
|
30569
30415
|
function AsyncIterator$1(t, e) {
|
|
30570
30416
|
function n(r, o, i, f) {
|
|
30571
30417
|
try {
|
|
@@ -30595,21 +30441,18 @@ function AsyncIterator$1(t, e) {
|
|
|
30595
30441
|
return r = r ? r.then(f, f) : f();
|
|
30596
30442
|
}, !0);
|
|
30597
30443
|
}
|
|
30598
|
-
|
|
30599
|
-
//#region node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js
|
|
30444
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js
|
|
30600
30445
|
function _regeneratorAsyncGen(r, e, t, o, n) {
|
|
30601
30446
|
return new AsyncIterator$1(_regenerator().w(r, e, t, o), n || Promise);
|
|
30602
30447
|
}
|
|
30603
|
-
|
|
30604
|
-
//#region node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js
|
|
30448
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js
|
|
30605
30449
|
function _regeneratorAsync(n, e, r, t, o) {
|
|
30606
30450
|
var a = _regeneratorAsyncGen(n, e, r, t, o);
|
|
30607
30451
|
return a.next().then(function(n) {
|
|
30608
30452
|
return n.done ? n.value : a.next();
|
|
30609
30453
|
});
|
|
30610
30454
|
}
|
|
30611
|
-
|
|
30612
|
-
//#region node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js
|
|
30455
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js
|
|
30613
30456
|
function _regeneratorKeys(e) {
|
|
30614
30457
|
var n = Object(e), r = [];
|
|
30615
30458
|
for (var t in n) r.unshift(t);
|
|
@@ -30618,8 +30461,7 @@ function _regeneratorKeys(e) {
|
|
|
30618
30461
|
return e.done = !0, e;
|
|
30619
30462
|
};
|
|
30620
30463
|
}
|
|
30621
|
-
|
|
30622
|
-
//#region node_modules/@babel/runtime/helpers/esm/regeneratorValues.js
|
|
30464
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorValues.js
|
|
30623
30465
|
function _regeneratorValues(e) {
|
|
30624
30466
|
if (null != e) {
|
|
30625
30467
|
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0;
|
|
@@ -30634,8 +30476,7 @@ function _regeneratorValues(e) {
|
|
|
30634
30476
|
}
|
|
30635
30477
|
throw new TypeError(_typeof(e) + " is not iterable");
|
|
30636
30478
|
}
|
|
30637
|
-
|
|
30638
|
-
//#region node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
30479
|
+
// node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
30639
30480
|
function _regeneratorRuntime() {
|
|
30640
30481
|
"use strict";
|
|
30641
30482
|
var r = _regenerator(), e = r.m(_regeneratorRuntime), t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
|
|
@@ -30702,8 +30543,7 @@ function _regeneratorRuntime() {
|
|
|
30702
30543
|
};
|
|
30703
30544
|
})();
|
|
30704
30545
|
}
|
|
30705
|
-
|
|
30706
|
-
//#region node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
30546
|
+
// node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
30707
30547
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
30708
30548
|
try {
|
|
30709
30549
|
var i = n[a](c), u = i.value;
|
|
@@ -30728,8 +30568,7 @@ function _asyncToGenerator(n) {
|
|
|
30728
30568
|
});
|
|
30729
30569
|
};
|
|
30730
30570
|
}
|
|
30731
|
-
|
|
30732
|
-
//#region node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
30571
|
+
// node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
30733
30572
|
function _createForOfIteratorHelper(r, e) {
|
|
30734
30573
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
30735
30574
|
if (!t) {
|
|
@@ -30773,8 +30612,7 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
30773
30612
|
}
|
|
30774
30613
|
};
|
|
30775
30614
|
}
|
|
30776
|
-
|
|
30777
|
-
//#region node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
30615
|
+
// node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
30778
30616
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
30779
30617
|
if (null == r) return {};
|
|
30780
30618
|
var t = {};
|
|
@@ -30784,8 +30622,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
30784
30622
|
}
|
|
30785
30623
|
return t;
|
|
30786
30624
|
}
|
|
30787
|
-
|
|
30788
|
-
//#region node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
30625
|
+
// node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
30789
30626
|
function _objectWithoutProperties(e, t) {
|
|
30790
30627
|
if (null == e) return {};
|
|
30791
30628
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -30795,8 +30632,7 @@ function _objectWithoutProperties(e, t) {
|
|
|
30795
30632
|
}
|
|
30796
30633
|
return i;
|
|
30797
30634
|
}
|
|
30798
|
-
|
|
30799
|
-
//#region node_modules/@antv/g-lite/dist/index.esm.js
|
|
30635
|
+
// node_modules/@antv/g-lite/dist/index.esm.js
|
|
30800
30636
|
/*!
|
|
30801
30637
|
* @antv/g-lite
|
|
30802
30638
|
* @description A core module for rendering engine implements DOM API.
|
|
@@ -52241,8 +52077,7 @@ Sector.PARSED_STYLE_LIST = new Set([].concat(_toConsumableArray(Path.PARSED_STYL
|
|
|
52241
52077
|
"startAngle",
|
|
52242
52078
|
"endAngle"
|
|
52243
52079
|
]));
|
|
52244
|
-
|
|
52245
|
-
//#region src/yui_graph_minimap.js
|
|
52080
|
+
// src/yui_graph_minimap.js
|
|
52246
52081
|
/***********************************************************************
|
|
52247
52082
|
* yui_graph_minimap.js
|
|
52248
52083
|
*
|
|
@@ -52326,8 +52161,7 @@ function yui_graph_minimap_repaint(plugin) {
|
|
|
52326
52161
|
plugin.renderMinimap();
|
|
52327
52162
|
plugin.renderMask();
|
|
52328
52163
|
}
|
|
52329
|
-
|
|
52330
|
-
//#region src/c_yui_gobj_tree_js.js
|
|
52164
|
+
// src/c_yui_gobj_tree_js.js
|
|
52331
52165
|
/***********************************************************************
|
|
52332
52166
|
* c_yui_gobj_tree_js.js
|
|
52333
52167
|
*
|
|
@@ -55448,8 +55282,7 @@ function create_gclass$9(gclass_name) {
|
|
|
55448
55282
|
function register_c_yui_gobj_tree_js() {
|
|
55449
55283
|
return create_gclass$9(GCLASS_NAME$9);
|
|
55450
55284
|
}
|
|
55451
|
-
|
|
55452
|
-
//#region src/c_yui_service_view.js
|
|
55285
|
+
// src/c_yui_service_view.js
|
|
55453
55286
|
/***********************************************************************
|
|
55454
55287
|
* c_yui_service_view.js
|
|
55455
55288
|
*
|
|
@@ -55701,8 +55534,7 @@ function create_gclass$8(gclass_name) {
|
|
|
55701
55534
|
function register_c_yui_service_view() {
|
|
55702
55535
|
return create_gclass$8(GCLASS_NAME$8);
|
|
55703
55536
|
}
|
|
55704
|
-
|
|
55705
|
-
//#region src/nav_cards_helpers.js
|
|
55537
|
+
// src/nav_cards_helpers.js
|
|
55706
55538
|
/***********************************************************************
|
|
55707
55539
|
* nav_cards_helpers.js
|
|
55708
55540
|
*
|
|
@@ -55801,8 +55633,7 @@ function cards_grid_descriptor(items, show_label, badge_of) {
|
|
|
55801
55633
|
cards
|
|
55802
55634
|
];
|
|
55803
55635
|
}
|
|
55804
|
-
|
|
55805
|
-
//#region src/c_yui_nav.js
|
|
55636
|
+
// src/c_yui_nav.js
|
|
55806
55637
|
/***********************************************************************
|
|
55807
55638
|
* c_yui_nav.js
|
|
55808
55639
|
*
|
|
@@ -56787,8 +56618,7 @@ function create_gclass$7(gclass_name) {
|
|
|
56787
56618
|
function register_c_yui_nav() {
|
|
56788
56619
|
return create_gclass$7(GCLASS_NAME$7);
|
|
56789
56620
|
}
|
|
56790
|
-
|
|
56791
|
-
//#region src/shell_route_map.js
|
|
56621
|
+
// src/shell_route_map.js
|
|
56792
56622
|
var WIN_NAME$2 = "shell-route-map-window";
|
|
56793
56623
|
var __show_refs__ = true;
|
|
56794
56624
|
var __open_modal__ = null;
|
|
@@ -57207,8 +57037,7 @@ function yui_shell_show_route_map(shell, opts) {
|
|
|
57207
57037
|
scroll_to_current($body);
|
|
57208
57038
|
return modal_ref.modal;
|
|
57209
57039
|
}
|
|
57210
|
-
|
|
57211
|
-
//#region src/form_writes_in_flight.js
|
|
57040
|
+
// src/form_writes_in_flight.js
|
|
57212
57041
|
/***********************************************************************
|
|
57213
57042
|
* form_writes_in_flight.js
|
|
57214
57043
|
*
|
|
@@ -57276,8 +57105,7 @@ function abandon_form_writes(in_flight) {
|
|
|
57276
57105
|
});
|
|
57277
57106
|
return abandoned;
|
|
57278
57107
|
}
|
|
57279
|
-
|
|
57280
|
-
//#region src/nodes_answer.js
|
|
57108
|
+
// src/nodes_answer.js
|
|
57281
57109
|
/***********************************************************************
|
|
57282
57110
|
* nodes_answer.js
|
|
57283
57111
|
*
|
|
@@ -57336,8 +57164,7 @@ function nodes_answer(data) {
|
|
|
57336
57164
|
paged: false
|
|
57337
57165
|
};
|
|
57338
57166
|
}
|
|
57339
|
-
|
|
57340
|
-
//#region src/schema_model.js
|
|
57167
|
+
// src/schema_model.js
|
|
57341
57168
|
/***********************************************************************
|
|
57342
57169
|
* schema_model.js
|
|
57343
57170
|
*
|
|
@@ -57709,8 +57536,7 @@ function col_name_breaks_the_rule(name) {
|
|
|
57709
57536
|
let s = String(name === void 0 || name === null ? "" : name);
|
|
57710
57537
|
return s === "" || s.includes("`");
|
|
57711
57538
|
}
|
|
57712
|
-
|
|
57713
|
-
//#region src/treedb_topic_keys.js
|
|
57539
|
+
// src/treedb_topic_keys.js
|
|
57714
57540
|
/***********************************************************************
|
|
57715
57541
|
* treedb_topic_keys.js
|
|
57716
57542
|
*
|
|
@@ -57796,8 +57622,7 @@ function system_flag_names(system_flag) {
|
|
|
57796
57622
|
}
|
|
57797
57623
|
return names;
|
|
57798
57624
|
}
|
|
57799
|
-
|
|
57800
|
-
//#region src/c_yui_treedb_topics.js
|
|
57625
|
+
// src/c_yui_treedb_topics.js
|
|
57801
57626
|
/***********************************************************************
|
|
57802
57627
|
* c_yui_treedb_topics.js
|
|
57803
57628
|
*
|
|
@@ -60408,8 +60233,7 @@ function create_gclass$6(gclass_name) {
|
|
|
60408
60233
|
function register_c_yui_treedb_topics() {
|
|
60409
60234
|
return create_gclass$6(GCLASS_NAME$6);
|
|
60410
60235
|
}
|
|
60411
|
-
|
|
60412
|
-
//#region src/yui_table_select.js
|
|
60236
|
+
// src/yui_table_select.js
|
|
60413
60237
|
/***********************************************************************
|
|
60414
60238
|
* yui_table_select.js
|
|
60415
60239
|
*
|
|
@@ -60649,8 +60473,7 @@ function yui_selection_bar(t, opts) {
|
|
|
60649
60473
|
refresh
|
|
60650
60474
|
};
|
|
60651
60475
|
}
|
|
60652
|
-
|
|
60653
|
-
//#region src/yui_table_filter_clear.js
|
|
60476
|
+
// src/yui_table_filter_clear.js
|
|
60654
60477
|
/***********************************************************************
|
|
60655
60478
|
* yui_table_filter_clear.js
|
|
60656
60479
|
*
|
|
@@ -60747,8 +60570,7 @@ function yui_table_filter_clear(table) {
|
|
|
60747
60570
|
decorate(table);
|
|
60748
60571
|
});
|
|
60749
60572
|
}
|
|
60750
|
-
|
|
60751
|
-
//#region src/yui_row_search.js
|
|
60573
|
+
// src/yui_row_search.js
|
|
60752
60574
|
/***********************************************************************
|
|
60753
60575
|
* yui_row_search.js
|
|
60754
60576
|
*
|
|
@@ -60839,8 +60661,7 @@ function row_matches(row, term) {
|
|
|
60839
60661
|
return value_matches(value, term, 0);
|
|
60840
60662
|
});
|
|
60841
60663
|
}
|
|
60842
|
-
|
|
60843
|
-
//#region src/treedb_write_plan.js
|
|
60664
|
+
// src/treedb_write_plan.js
|
|
60844
60665
|
/***********************************************************************
|
|
60845
60666
|
* treedb_write_plan.js
|
|
60846
60667
|
*
|
|
@@ -60955,8 +60776,7 @@ function instance_keys_of(record, desc) {
|
|
|
60955
60776
|
for (const k of topic_pkey2s(desc || {})) if (Object.prototype.hasOwnProperty.call(record, k) && record[k] !== void 0 && record[k] !== null) keys[k] = record[k];
|
|
60956
60777
|
return keys;
|
|
60957
60778
|
}
|
|
60958
|
-
|
|
60959
|
-
//#region src/delete_impact.js
|
|
60779
|
+
// src/delete_impact.js
|
|
60960
60780
|
/***********************************************************************
|
|
60961
60781
|
* delete_impact.js
|
|
60962
60782
|
*
|
|
@@ -61021,8 +60841,7 @@ function delete_impact(desc, records) {
|
|
|
61021
60841
|
}
|
|
61022
60842
|
return out;
|
|
61023
60843
|
}
|
|
61024
|
-
|
|
61025
|
-
//#region src/form_busy.js
|
|
60844
|
+
// src/form_busy.js
|
|
61026
60845
|
/***********************************************************************
|
|
61027
60846
|
* form_busy.js
|
|
61028
60847
|
*
|
|
@@ -61063,8 +60882,7 @@ function set_toolbar_busy($container, state, busy) {
|
|
|
61063
60882
|
if ($save) $save.classList.toggle("is-loading", busy);
|
|
61064
60883
|
return true;
|
|
61065
60884
|
}
|
|
61066
|
-
|
|
61067
|
-
//#region src/table_cell_text.js
|
|
60885
|
+
// src/table_cell_text.js
|
|
61068
60886
|
/****************************************************************************
|
|
61069
60887
|
* table_cell_text.js
|
|
61070
60888
|
*
|
|
@@ -61115,8 +60933,7 @@ function hook_cell_spec(row_id, col_id, items, title, title_key) {
|
|
|
61115
60933
|
]]
|
|
61116
60934
|
];
|
|
61117
60935
|
}
|
|
61118
|
-
|
|
61119
|
-
//#region src/c_yui_treedb_topic_with_form.js
|
|
60936
|
+
// src/c_yui_treedb_topic_with_form.js
|
|
61120
60937
|
/***********************************************************************
|
|
61121
60938
|
* c_yui_treedb_topic_with_form.js
|
|
61122
60939
|
*
|
|
@@ -65331,8 +65148,7 @@ function register_c_yui_treedb_topic_with_form() {
|
|
|
65331
65148
|
if (!(0, _yuneta_gobj_js.gclass_find_by_name)("C_YUI_JSON", false)) register_c_yui_json();
|
|
65332
65149
|
return create_gclass$5(GCLASS_NAME$5);
|
|
65333
65150
|
}
|
|
65334
|
-
|
|
65335
|
-
//#region src/graph_save_plan.js
|
|
65151
|
+
// src/graph_save_plan.js
|
|
65336
65152
|
/***********************************************************************
|
|
65337
65153
|
* graph_save_plan.js
|
|
65338
65154
|
*
|
|
@@ -65467,8 +65283,7 @@ function forget_refused_graphs_write(saved, topic_name) {
|
|
|
65467
65283
|
delete saved[topic_name];
|
|
65468
65284
|
return true;
|
|
65469
65285
|
}
|
|
65470
|
-
|
|
65471
|
-
//#region src/treedb_node_label.js
|
|
65286
|
+
// src/treedb_node_label.js
|
|
65472
65287
|
/***********************************************************************
|
|
65473
65288
|
* treedb_node_label.js
|
|
65474
65289
|
*
|
|
@@ -65525,8 +65340,7 @@ function node_label(desc, record) {
|
|
|
65525
65340
|
if (parts.length === 0) return id;
|
|
65526
65341
|
return [id, ...parts].join(SEP);
|
|
65527
65342
|
}
|
|
65528
|
-
|
|
65529
|
-
//#region src/treedb_fold_model.js
|
|
65343
|
+
// src/treedb_fold_model.js
|
|
65530
65344
|
/***********************************************************************
|
|
65531
65345
|
* treedb_fold_model.js
|
|
65532
65346
|
*
|
|
@@ -66114,8 +65928,7 @@ function fold_reveal(model, state, node_key) {
|
|
|
66114
65928
|
}
|
|
66115
65929
|
return true;
|
|
66116
65930
|
}
|
|
66117
|
-
|
|
66118
|
-
//#region src/treedb_layout.js
|
|
65931
|
+
// src/treedb_layout.js
|
|
66119
65932
|
/***********************************************************************
|
|
66120
65933
|
* treedb_layout.js
|
|
66121
65934
|
*
|
|
@@ -66737,8 +66550,7 @@ function elbow_route(s, t, box_s, box_t, lane, vertical, boxes) {
|
|
|
66737
66550
|
if (!route && near.length < others.length) route = orth_search(a, z, others.map((b) => box_expand(b, m)));
|
|
66738
66551
|
return route || simple;
|
|
66739
66552
|
}
|
|
66740
|
-
|
|
66741
|
-
//#region src/g6_brush_select_owned.js
|
|
66553
|
+
// src/g6_brush_select_owned.js
|
|
66742
66554
|
/***********************************************************************
|
|
66743
66555
|
* g6_brush_select_owned.js
|
|
66744
66556
|
*
|
|
@@ -66789,8 +66601,7 @@ function ensure_brush_select_owned() {
|
|
|
66789
66601
|
(0, _antv_g6.register)(_antv_g6.ExtensionCategory.BEHAVIOR, BRUSH_SELECT_OWNED, BrushSelectOwned);
|
|
66790
66602
|
__brush_select_registered__ = true;
|
|
66791
66603
|
}
|
|
66792
|
-
|
|
66793
|
-
//#region src/yui_data_color.js
|
|
66604
|
+
// src/yui_data_color.js
|
|
66794
66605
|
/***********************************************************************
|
|
66795
66606
|
* yui_data_color.js
|
|
66796
66607
|
*
|
|
@@ -66817,8 +66628,7 @@ function css_color_or_null(value) {
|
|
|
66817
66628
|
}
|
|
66818
66629
|
return value;
|
|
66819
66630
|
}
|
|
66820
|
-
|
|
66821
|
-
//#region src/c_g6_nodes_tree.js
|
|
66631
|
+
// src/c_g6_nodes_tree.js
|
|
66822
66632
|
/***********************************************************************
|
|
66823
66633
|
* c_g6_nodes_tree.js
|
|
66824
66634
|
*
|
|
@@ -75906,8 +75716,7 @@ function register_c_g6_nodes_tree() {
|
|
|
75906
75716
|
if ((0, _yuneta_gobj_js.gclass_find_by_name)(GCLASS_NAME$4, false)) return 0;
|
|
75907
75717
|
return create_gclass$4(GCLASS_NAME$4);
|
|
75908
75718
|
}
|
|
75909
|
-
|
|
75910
|
-
//#region src/c_yui_treedb_graph.js
|
|
75719
|
+
// src/c_yui_treedb_graph.js
|
|
75911
75720
|
/***********************************************************************
|
|
75912
75721
|
* c_yui_treedb_graph.js
|
|
75913
75722
|
*
|
|
@@ -78633,8 +78442,7 @@ function register_c_yui_treedb_graph() {
|
|
|
78633
78442
|
if (!(0, _yuneta_gobj_js.gclass_find_by_name)("C_G6_NODES_TREE", false)) register_c_g6_nodes_tree();
|
|
78634
78443
|
return create_gclass$3(GCLASS_NAME$3);
|
|
78635
78444
|
}
|
|
78636
|
-
|
|
78637
|
-
//#region src/c_yui_treedb_schema.js
|
|
78445
|
+
// src/c_yui_treedb_schema.js
|
|
78638
78446
|
/***********************************************************************
|
|
78639
78447
|
* c_yui_treedb_schema.js
|
|
78640
78448
|
*
|
|
@@ -79377,8 +79185,7 @@ function create_gclass$2(gclass_name) {
|
|
|
79377
79185
|
function register_c_yui_treedb_schema() {
|
|
79378
79186
|
return create_gclass$2(GCLASS_NAME$2);
|
|
79379
79187
|
}
|
|
79380
|
-
|
|
79381
|
-
//#region src/host_drafts.js
|
|
79188
|
+
// src/host_drafts.js
|
|
79382
79189
|
/***********************************************************************
|
|
79383
79190
|
* host_drafts.js
|
|
79384
79191
|
*
|
|
@@ -79437,8 +79244,7 @@ function mark_host_drafts(written, model, drafts) {
|
|
|
79437
79244
|
}
|
|
79438
79245
|
return marked;
|
|
79439
79246
|
}
|
|
79440
|
-
|
|
79441
|
-
//#region src/schema_validate.js
|
|
79247
|
+
// src/schema_validate.js
|
|
79442
79248
|
/***********************************************************************
|
|
79443
79249
|
* schema_validate.js
|
|
79444
79250
|
*
|
|
@@ -79631,8 +79437,7 @@ function has_errors(findings) {
|
|
|
79631
79437
|
for (let f of findings) if (f && f.severity === "error") return true;
|
|
79632
79438
|
return false;
|
|
79633
79439
|
}
|
|
79634
|
-
|
|
79635
|
-
//#region src/schema_descs.js
|
|
79440
|
+
// src/schema_descs.js
|
|
79636
79441
|
/***********************************************************************
|
|
79637
79442
|
* schema_descs.js
|
|
79638
79443
|
*
|
|
@@ -79757,8 +79562,7 @@ function topic_descs(treedb) {
|
|
|
79757
79562
|
}
|
|
79758
79563
|
return descs;
|
|
79759
79564
|
}
|
|
79760
|
-
|
|
79761
|
-
//#region src/schema_to_diagram.js
|
|
79565
|
+
// src/schema_to_diagram.js
|
|
79762
79566
|
/***********************************************************************
|
|
79763
79567
|
* schema_to_diagram.js
|
|
79764
79568
|
*
|
|
@@ -80261,8 +80065,7 @@ function c_diagram_comment(diagram) {
|
|
|
80261
80065
|
lines.push("*/");
|
|
80262
80066
|
return lines.join("\n") + "\n";
|
|
80263
80067
|
}
|
|
80264
|
-
|
|
80265
|
-
//#region src/schema_import.js
|
|
80068
|
+
// src/schema_import.js
|
|
80266
80069
|
/***********************************************************************
|
|
80267
80070
|
* schema_import.js
|
|
80268
80071
|
*
|
|
@@ -80695,8 +80498,7 @@ function plan_deletes(plan) {
|
|
|
80695
80498
|
if (!plan || !Array.isArray(plan.writes)) return [];
|
|
80696
80499
|
return plan.writes.filter((w) => w.op === "delete");
|
|
80697
80500
|
}
|
|
80698
|
-
|
|
80699
|
-
//#region src/schema_flags.js
|
|
80501
|
+
// src/schema_flags.js
|
|
80700
80502
|
/***********************************************************************
|
|
80701
80503
|
* schema_flags.js
|
|
80702
80504
|
*
|
|
@@ -81053,8 +80855,7 @@ function toggle_flag(current, name, on) {
|
|
|
81053
80855
|
if (out.indexOf(name) < 0) out.push(name);
|
|
81054
80856
|
return out;
|
|
81055
80857
|
}
|
|
81056
|
-
|
|
81057
|
-
//#region src/schema_write_options.js
|
|
80858
|
+
// src/schema_write_options.js
|
|
81058
80859
|
/***********************************************************************
|
|
81059
80860
|
* schema_write_options.js
|
|
81060
80861
|
*
|
|
@@ -81108,8 +80909,7 @@ function write_options(op) {
|
|
|
81108
80909
|
};
|
|
81109
80910
|
return { list_dict: true };
|
|
81110
80911
|
}
|
|
81111
|
-
|
|
81112
|
-
//#region src/c_yui_schema_editor.js
|
|
80912
|
+
// src/c_yui_schema_editor.js
|
|
81113
80913
|
/***********************************************************************
|
|
81114
80914
|
* c_yui_schema_editor.js
|
|
81115
80915
|
*
|
|
@@ -85715,8 +85515,7 @@ function create_gclass$1(gclass_name) {
|
|
|
85715
85515
|
function register_c_yui_schema_editor() {
|
|
85716
85516
|
return create_gclass$1(GCLASS_NAME$1);
|
|
85717
85517
|
}
|
|
85718
|
-
|
|
85719
|
-
//#region src/yui_time.js
|
|
85518
|
+
// src/yui_time.js
|
|
85720
85519
|
/***********************************************************************
|
|
85721
85520
|
* yui_time.js
|
|
85722
85521
|
*
|
|
@@ -86281,8 +86080,7 @@ function period_label(period, anchor_ms, t, locale) {
|
|
|
86281
86080
|
let span = `${fmt_intl(start, loc, opts)} – ${fmt_intl(end, loc, opts)}`;
|
|
86282
86081
|
return this_year ? span : `${span} ${start.getFullYear()}`;
|
|
86283
86082
|
}
|
|
86284
|
-
|
|
86285
|
-
//#region src/c_yui_period.js
|
|
86083
|
+
// src/c_yui_period.js
|
|
86286
86084
|
/***********************************************************************
|
|
86287
86085
|
* c_yui_period.js
|
|
86288
86086
|
*
|
|
@@ -87448,8 +87246,7 @@ function create_gclass(gclass_name) {
|
|
|
87448
87246
|
function register_c_yui_period() {
|
|
87449
87247
|
return create_gclass(GCLASS_NAME);
|
|
87450
87248
|
}
|
|
87451
|
-
|
|
87452
|
-
//#region src/yui_dev.js
|
|
87249
|
+
// src/yui_dev.js
|
|
87453
87250
|
/***********************************************************************
|
|
87454
87251
|
* ui_dev.js
|
|
87455
87252
|
*
|
|
@@ -89112,8 +88909,7 @@ function build_dev_panel() {
|
|
|
89112
88909
|
dispose
|
|
89113
88910
|
};
|
|
89114
88911
|
}
|
|
89115
|
-
|
|
89116
|
-
//#region src/yui_frontend_view.js
|
|
88912
|
+
// src/yui_frontend_view.js
|
|
89117
88913
|
/***********************************************************************
|
|
89118
88914
|
* yui_frontend_view.js
|
|
89119
88915
|
*
|
|
@@ -89181,8 +88977,7 @@ function setup_frontend_view(self) {
|
|
|
89181
88977
|
(0, _yuneta_gobj_js.gobj_start_tree)(win);
|
|
89182
88978
|
return win;
|
|
89183
88979
|
}
|
|
89184
|
-
|
|
89185
|
-
//#region src/yui_json_pad.js
|
|
88980
|
+
// src/yui_json_pad.js
|
|
89186
88981
|
/***********************************************************************
|
|
89187
88982
|
* yui_json_pad.js
|
|
89188
88983
|
*
|
|
@@ -89250,7 +89045,6 @@ function setup_json_pad(self) {
|
|
|
89250
89045
|
(0, _yuneta_gobj_js.gobj_start_tree)(win);
|
|
89251
89046
|
return win;
|
|
89252
89047
|
}
|
|
89253
|
-
//#endregion
|
|
89254
89048
|
exports.EditControl = EditControl;
|
|
89255
89049
|
exports.ICONS_TOPIC = ICONS_TOPIC;
|
|
89256
89050
|
exports.MarkerControl = MarkerControl;
|