@yuneta/gobj-ui 7.27.22 → 7.27.24

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.
@@ -17946,8 +17946,8 @@ function load_json(gobj) {
17946
17946
  yui_graph_update_zoom((0, _yuneta_gobj_js.gobj_read_attr)(gobj, "$container"), priv.graph);
17947
17947
  return;
17948
17948
  }
17949
- Promise.resolve(graph.zoomTo(1)).then(() => {
17950
- if (!yui_graph_center_on(graph, priv.anchor_id)) yui_graph_center_on(graph, root_id);
17949
+ Promise.resolve(graph.zoomTo(1)).then(async () => {
17950
+ if (!(priv.anchor_id ? await yui_graph_center_on(graph, priv.anchor_id) : false)) await yui_graph_center_on(graph, root_id);
17951
17951
  priv.last_zoom = 1;
17952
17952
  yui_graph_update_zoom((0, _yuneta_gobj_js.gobj_read_attr)(gobj, "$container"), priv.graph);
17953
17953
  });
@@ -23682,6 +23682,60 @@ function describe_js_gobj(target_gobj, is_root) {
23682
23682
  }
23683
23683
  return d;
23684
23684
  }
23685
+ /************************************************************
23686
+ * A descriptor from ONE node of the `view-gobj-tree` answer
23687
+ * of a backend yuno.
23688
+ *
23689
+ * `shortname` is the key the node hangs from in that answer;
23690
+ * the node itself repeats it, so the argument is only the
23691
+ * fallback for a filtered answer that dropped the field.
23692
+ ************************************************************/
23693
+ function describe_backend_node(shortname, node, is_root) {
23694
+ if (!node || typeof node !== "object") return null;
23695
+ let flags = Array.isArray(node.gobj_flags) ? node.gobj_flags : [];
23696
+ let has = (flag) => flags.indexOf(flag) !== -1;
23697
+ let d = {
23698
+ gclass: node.gclass || "",
23699
+ name: node.name || "",
23700
+ shortname: node.shortname || shortname || "",
23701
+ fullname: node.fullname || "",
23702
+ parent: node.parent || "",
23703
+ state: node.state || "",
23704
+ running: !!node.running,
23705
+ playing: !!node.playing,
23706
+ service: !!node.service || has("gobj_flag_service") || has("gobj_flag_default_service"),
23707
+ volatil: !!node.volatil || has("gobj_flag_volatil"),
23708
+ pure_child: has("gobj_flag_pure_child"),
23709
+ disabled: !!node.disabled,
23710
+ bottom_gobj: node.bottom_gobj || "",
23711
+ commands: !!node.commands,
23712
+ gobj_flags: flags,
23713
+ gobj_trace_level: Array.isArray(node.gobj_trace_level) ? node.gobj_trace_level : [],
23714
+ is_yuno: is_root !== void 0 ? !!is_root : has("gobj_flag_yuno"),
23715
+ children: []
23716
+ };
23717
+ let children = node.children && typeof node.children === "object" ? node.children : null;
23718
+ if (children) for (let key of Object.keys(children)) {
23719
+ let cd = describe_backend_node(key, children[key], false);
23720
+ if (cd) d.children.push(cd);
23721
+ }
23722
+ return d;
23723
+ }
23724
+ /************************************************************
23725
+ * The whole `view-gobj-tree` answer -> the root descriptor.
23726
+ *
23727
+ * That answer is a dict of ONE key (the shortname of the gobj
23728
+ * the command was asked about) even though it is shaped as a
23729
+ * dict all the way down. Returns null for anything else, and
23730
+ * the caller reports it: an empty tree and a malformed answer
23731
+ * must not look the same.
23732
+ ************************************************************/
23733
+ function describe_backend_tree(data) {
23734
+ if (!data || typeof data !== "object" || Array.isArray(data)) return null;
23735
+ let keys = Object.keys(data);
23736
+ if (keys.length === 0) return null;
23737
+ return describe_backend_node(keys[0], data[keys[0]], true);
23738
+ }
23685
23739
  /******************************
23686
23740
  * Readouts
23687
23741
  ******************************/
@@ -23714,6 +23768,7 @@ function node_badge_keys(d) {
23714
23768
  if (d.disabled) badges.push("disabled");
23715
23769
  if (d.bottom_gobj) badges.push("bottom");
23716
23770
  if (d.commands) badges.push("commands");
23771
+ if (Array.isArray(d.gobj_trace_level) && d.gobj_trace_level.length > 0) badges.push("traces");
23717
23772
  return badges;
23718
23773
  }
23719
23774
  /************************************************************
@@ -23751,7 +23806,8 @@ function node_labels(t) {
23751
23806
  "pure child": t("pure child"),
23752
23807
  "disabled": t("disabled"),
23753
23808
  "bottom": t("bottom"),
23754
- "commands": t("commands")
23809
+ "commands": t("commands"),
23810
+ "traces": t("traces")
23755
23811
  },
23756
23812
  field: {
23757
23813
  gclass: t("gclass"),
@@ -23800,6 +23856,82 @@ function node_info_rows(d, t) {
23800
23856
  if (kids > 0) rows.push([f.children, d.is_collapsed ? kids + " " + f.collapsed : String(kids)]);
23801
23857
  return rows;
23802
23858
  }
23859
+ /******************************
23860
+ * Trace levels
23861
+ ******************************/
23862
+ /************************************************************
23863
+ * The rows of the TRACES block of a backend gobj, one per
23864
+ * level it can trace: the gclass' own levels first (the ones
23865
+ * that are about this gobj), then the global ones.
23866
+ *
23867
+ * `d` is the descriptor (its `gobj_trace_level` is what the
23868
+ * gobj traces NOW, whatever the reason). `info` is what the
23869
+ * host fetched for its gclass:
23870
+ *
23871
+ * gclass_levels {name: description} info-gclass-trace
23872
+ * global_levels {name: description} info-global-trace
23873
+ * gclass_on [name, ...] get-gclass-trace
23874
+ * global_on [name, ...] get-global-trace
23875
+ *
23876
+ * `get-gclass-trace` answers the gclass' levels OR'ed with the
23877
+ * global ones (gobj_get_gclass_trace_level), so a level on in
23878
+ * both is counted as global: that is the one that would still
23879
+ * hold it on if the gclass let go.
23880
+ *
23881
+ * Each row says, for the two columns of the block:
23882
+ *
23883
+ * gobj_on, gobj_locked the gobj traces it; locked when
23884
+ * that comes from its gclass or
23885
+ * from the global level -- turning
23886
+ * the gobj's own bit off would not
23887
+ * stop it
23888
+ * gclass_on, gclass_locked every gobj of the gclass traces
23889
+ * it; locked when it is global
23890
+ * origin "global" | "gclass" | ""
23891
+ ************************************************************/
23892
+ function trace_rows(d, info) {
23893
+ let rows = [];
23894
+ if (!d || !info) return rows;
23895
+ let list = (x) => Array.isArray(x) ? x : [];
23896
+ let now = list(d.gobj_trace_level);
23897
+ let global_on = list(info.global_on);
23898
+ let gclass_on = list(info.gclass_on);
23899
+ let seen = {};
23900
+ let add = (group, levels) => {
23901
+ if (!levels || typeof levels !== "object") return;
23902
+ for (let level of Object.keys(levels)) {
23903
+ if (seen[level]) continue;
23904
+ seen[level] = true;
23905
+ let by_global = global_on.indexOf(level) >= 0;
23906
+ let by_gclass = !by_global && gclass_on.indexOf(level) >= 0;
23907
+ rows.push({
23908
+ level,
23909
+ description: String(levels[level] || ""),
23910
+ group,
23911
+ gobj_on: now.indexOf(level) >= 0 || by_global || by_gclass,
23912
+ gobj_locked: by_global || by_gclass,
23913
+ gclass_on: by_global || by_gclass,
23914
+ gclass_locked: by_global,
23915
+ origin: by_global ? "global" : by_gclass ? "gclass" : ""
23916
+ });
23917
+ }
23918
+ };
23919
+ add("gclass", info.gclass_levels);
23920
+ add("global", info.global_levels);
23921
+ return rows;
23922
+ }
23923
+ /************************************************************
23924
+ * The levels a scope holds ON ITS OWN -- what "remove the
23925
+ * traces" of that scope has to turn off. Not the locked ones:
23926
+ * they are held by a wider scope, and turning them off here
23927
+ * would change nothing.
23928
+ ************************************************************/
23929
+ function own_trace_levels(rows, scope) {
23930
+ let out = [];
23931
+ for (let r of rows || []) if (scope === "gobj" && r.gobj_on && !r.gobj_locked) out.push(r.level);
23932
+ else if (scope === "gclass" && r.gclass_on && !r.gclass_locked) out.push(r.level);
23933
+ return out;
23934
+ }
23803
23935
  //#endregion
23804
23936
  //#region src/gclass_describe.js
23805
23937
  /***********************************************************************
@@ -24188,7 +24320,42 @@ function is_mobile$3() {
24188
24320
  /***********************************************************************
24189
24321
  * c_yui_gobj_tree_js.js
24190
24322
  *
24191
- * Hierarchical tree graph (G6) of the gobj tree of the own yuno.
24323
+ * Hierarchical tree graph (G6) of the gobj tree of a yuno.
24324
+ *
24325
+ * Two sources (`source`):
24326
+ *
24327
+ * - "local" (default): the yuno of THIS browser, read live.
24328
+ * - "remote": a BACKEND yuno. The view cannot ask a backend
24329
+ * anything -- it has no transport, and which link reaches
24330
+ * the yuno is the host's business -- so it publishes what
24331
+ * it WANTS and the host answers with the data:
24332
+ *
24333
+ * out EV_TREE_WANTED {} Refresh pressed
24334
+ * in EV_LOAD_TREE {tree} the `view-gobj-tree` answer
24335
+ * out EV_TRACE_INFO_WANTED {gclass} a card was opened
24336
+ * in EV_TRACE_INFO {gclass, gclass_levels, global_levels,
24337
+ * gclass_on, global_on, error}
24338
+ * out EV_SET_TRACE_LEVEL {scope: "gobj"|"gclass", gobj,
24339
+ * gclass, levels: [...], set}
24340
+ * out EV_GCLASS_WANTED {gclass} the gclass button
24341
+ * in EV_GCLASS_DESCRIPTION {gclass, description}
24342
+ *
24343
+ * The host loads the FIRST tree on its own (it opened the
24344
+ * view); the view asks again only when Refresh is pressed.
24345
+ * After a trace is set the host loads the tree and the
24346
+ * trace info again: the card the reader is on stays open.
24347
+ *
24348
+ * In "remote" the popover of a card has a TRACES block: one
24349
+ * row per level (the gclass' own, then the global ones), a
24350
+ * checkbox for THIS gobj (`set-gobj-trace`) and one for every
24351
+ * gobj of its gclass (`set-gclass-trace`). A level that is on
24352
+ * for the gclass, or globally, is shown on and locked in the
24353
+ * gobj column, with where it comes from: it cannot be turned
24354
+ * off from one gobj. A gclass level is saved by the yuno and
24355
+ * survives a restart; a gobj level lasts until the yuno ends.
24356
+ *
24357
+ * The output events are published ONLY in "remote", so a host
24358
+ * of a local tree (the Frontend view) declares none of them.
24192
24359
  *
24193
24360
  * Copyright (c) 2025-2026, ArtGins.
24194
24361
  * All Rights Reserved.
@@ -24204,6 +24371,8 @@ var attrs_table$9 = [
24204
24371
  (0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_POINTER, "subscriber", 0, null, "Subscriber of output events"),
24205
24372
  (0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_POINTER, "$container", 0, null, "Container element"),
24206
24373
  (0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_STRING, "canvas_id", 0, "", "Canvas ID"),
24374
+ (0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_STRING, "source", 0, "local", "Whose tree: local (this browser yuno, read live) | remote (a backend yuno, loaded by the host with EV_LOAD_TREE)"),
24375
+ (0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_STRING, "yuno_name", 0, "", "remote: the name the yuno is shown by (the gclass window says it before the gclass)"),
24207
24376
  (0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_STRING, "wide", 0, "40px", "Height of header. 40px and not 36: it is what an untouched Bulma control measures, so the find box stood 4px taller than every button beside it, and it is what the third graph of the family (C_YUI_TREEDB_GRAPH) uses"),
24208
24377
  (0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_STRING, "layout", 0, "vertical-compact", "Current layout key"),
24209
24378
  (0, _yuneta_gobj_js.SDATA)(_yuneta_gobj_js.data_type_t.DTP_INTEGER, "collapse_threshold", 0, 10, "Auto-collapse a node whose direct children exceed this number. 0 disables auto-collapse."),
@@ -24235,16 +24404,23 @@ function restore_view_state(gobj) {
24235
24404
  let graph = priv.graph;
24236
24405
  let state = load_view_state(gobj);
24237
24406
  if (!graph || !state) return false;
24407
+ let zoom = Number.isFinite(state.zoom) && state.zoom > 0 ? state.zoom : null;
24408
+ let position = Array.isArray(state.position) && state.position.length >= 2 && Number.isFinite(state.position[0]) && Number.isFinite(state.position[1]) ? [state.position[0], state.position[1]] : null;
24409
+ if ((zoom !== null || position !== null) && !camera_shows_a_card(gobj, zoom, position)) {
24410
+ (0, _yuneta_gobj_js.log_warning)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: the saved view shows none of the ${Object.keys(priv.node_by_id || {}).length} gobjs, framed again`);
24411
+ zoom = null;
24412
+ position = null;
24413
+ }
24238
24414
  let done = false;
24239
24415
  priv.restoring = true;
24240
24416
  try {
24241
- if (Number.isFinite(state.zoom) && state.zoom > 0) {
24242
- graph.zoomTo(state.zoom);
24243
- priv.last_zoom = state.zoom;
24417
+ if (zoom !== null) {
24418
+ graph.zoomTo(zoom);
24419
+ priv.last_zoom = zoom;
24244
24420
  done = true;
24245
24421
  }
24246
- if (Array.isArray(state.position) && state.position.length >= 2 && Number.isFinite(state.position[0]) && Number.isFinite(state.position[1])) {
24247
- graph.translateTo([state.position[0], state.position[1]]);
24422
+ if (position !== null) {
24423
+ graph.translateTo(position);
24248
24424
  done = true;
24249
24425
  }
24250
24426
  if (state.anchor) {
@@ -24262,6 +24438,30 @@ function restore_view_state(gobj) {
24262
24438
  yui_graph_update_zoom((0, _yuneta_gobj_js.gobj_read_attr)(gobj, "$container"), priv.graph);
24263
24439
  return done;
24264
24440
  }
24441
+ function camera_shows_a_card(gobj, zoom, position) {
24442
+ let priv = gobj.priv;
24443
+ let graph = priv.graph;
24444
+ let ids = Object.keys(priv.node_by_id || {});
24445
+ if (!graph || !ids.length) return true;
24446
+ try {
24447
+ let size = graph.getSize();
24448
+ let c = graph.getCanvasCenter();
24449
+ let z = zoom !== null ? zoom : graph.getZoom();
24450
+ let t = position !== null ? position : graph.getPosition();
24451
+ let w = size[0];
24452
+ let h = size[1];
24453
+ if (!(w > 0 && h > 0) || !(z > 0)) return true;
24454
+ for (let id of ids) {
24455
+ let n = graph.getElementPosition(id);
24456
+ let vx = (n[0] - c[0]) * z + t[0] + c[0];
24457
+ let vy = (n[1] - c[1]) * z + t[1] + c[1];
24458
+ if (vx >= 0 && vx <= w && vy >= 0 && vy <= h) return true;
24459
+ }
24460
+ } catch (e) {
24461
+ return true;
24462
+ }
24463
+ return false;
24464
+ }
24265
24465
  function save_view_state(gobj) {
24266
24466
  let priv = gobj.priv;
24267
24467
  let graph = priv.graph;
@@ -24272,8 +24472,9 @@ function save_view_state(gobj) {
24272
24472
  anchor: priv.anchor_state === "on" ? priv.anchor_name : ""
24273
24473
  };
24274
24474
  let camera = null;
24475
+ let has_nodes = !!priv.node_by_id && Object.keys(priv.node_by_id).length > 0;
24275
24476
  try {
24276
- camera = camera_of(graph.getZoom(), graph.getPosition());
24477
+ camera = has_nodes ? camera_of(graph.getZoom(), graph.getPosition()) : null;
24277
24478
  } catch (e) {}
24278
24479
  if (!camera) {
24279
24480
  let old = load_view_state(gobj);
@@ -24328,7 +24529,10 @@ var PRIVATE_DATA$9 = {
24328
24529
  anchor_state: "off",
24329
24530
  restoring: false,
24330
24531
  restored: false,
24331
- last_zoom: 1
24532
+ last_zoom: 1,
24533
+ remote_root: null,
24534
+ trace_info: {},
24535
+ trace_pending: false
24332
24536
  };
24333
24537
  var __gclass__$9 = null;
24334
24538
  var __layout_registered__ = false;
@@ -25385,8 +25589,10 @@ function load_tree(gobj) {
25385
25589
  let priv = gobj.priv;
25386
25590
  let graph = priv.graph;
25387
25591
  if (!graph) return;
25388
- let root = describe_js_gobj((0, _yuneta_gobj_js.gobj_yuno)(), true);
25592
+ let remote = is_remote(gobj);
25593
+ let root = remote ? priv.remote_root : describe_js_gobj((0, _yuneta_gobj_js.gobj_yuno)(), true);
25389
25594
  if (!root) {
25595
+ if (remote) return;
25390
25596
  (0, _yuneta_gobj_js.log_error)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: no yuno to draw`);
25391
25597
  return;
25392
25598
  }
@@ -25420,8 +25626,8 @@ function load_tree(gobj) {
25420
25626
  priv.restored = true;
25421
25627
  if (restore_view_state(gobj)) return;
25422
25628
  }
25423
- Promise.resolve(graph.zoomTo(1)).then(() => {
25424
- if (!yui_graph_center_on(graph, priv.anchor_id)) yui_graph_center_on(graph, root_id);
25629
+ Promise.resolve(graph.zoomTo(1)).then(async () => {
25630
+ if (!(priv.anchor_id ? await yui_graph_center_on(graph, priv.anchor_id) : false)) await yui_graph_center_on(graph, root_id);
25425
25631
  priv.last_zoom = 1;
25426
25632
  yui_graph_update_zoom((0, _yuneta_gobj_js.gobj_read_attr)(gobj, "$container"), priv.graph);
25427
25633
  });
@@ -25521,6 +25727,309 @@ function render_popover_body(gobj, node_data) {
25521
25727
  <span style="color:var(--bulma-text-strong, #1A1A1A); word-break:break-all;">${(0, _yuneta_gobj_js.escapeHtml)(String(value))}</span>
25522
25728
  </div>
25523
25729
  `).join("");
25730
+ if (is_remote(gobj)) $body.appendChild(build_traces_block(gobj, node_data));
25731
+ }
25732
+ /************************************************************
25733
+ * Whose tree this is.
25734
+ ************************************************************/
25735
+ function is_remote(gobj) {
25736
+ return (0, _yuneta_gobj_js.gobj_read_str_attr)(gobj, "source") === "remote";
25737
+ }
25738
+ /************************************************************
25739
+ * The TRACES block of a backend gobj's popover.
25740
+ *
25741
+ * Two columns of checkboxes, THIS gobj and every gobj of its
25742
+ * gclass, one row per level (trace_rows() in the model says
25743
+ * what each row holds). A box is an action: its change is
25744
+ * sent to the FSM, which publishes it to the host, and the
25745
+ * block stays locked until the host has loaded what the
25746
+ * backend says now -- the box shows the backend's state, not
25747
+ * the click.
25748
+ ************************************************************/
25749
+ var TRACES_NOTE_STYLE = "color:var(--bulma-text-weak, #6B7280); margin:4px 0;";
25750
+ var TRACES_CELL_STYLE = "padding:1px 4px; text-align:center;";
25751
+ function build_traces_block(gobj, d) {
25752
+ let priv = gobj.priv;
25753
+ let info = priv.trace_info[d.gclass] || null;
25754
+ let kids = [[
25755
+ "div",
25756
+ {
25757
+ class: "GOBJ_TREE_TRACES_HEAD",
25758
+ i18n: "traces",
25759
+ style: "font-weight:700; margin:8px 0 2px 0; padding-top:6px; border-top:1px solid var(--bulma-border-weak, #E5E7EB);"
25760
+ },
25761
+ (0, i18next.t)("traces")
25762
+ ]];
25763
+ if (!info) {
25764
+ kids.push([
25765
+ "div",
25766
+ {
25767
+ class: "GOBJ_TREE_TRACES_NOTE",
25768
+ i18n: "loading",
25769
+ style: TRACES_NOTE_STYLE
25770
+ },
25771
+ (0, i18next.t)("loading")
25772
+ ]);
25773
+ return (0, _yuneta_gobj_js.createElement2)([
25774
+ "div",
25775
+ { class: "GOBJ_TREE_TRACES" },
25776
+ kids
25777
+ ]);
25778
+ }
25779
+ if (info.error) {
25780
+ kids.push([
25781
+ "div",
25782
+ {
25783
+ class: "GOBJ_TREE_TRACES_ERROR",
25784
+ style: "color:var(--bulma-danger, #dc2626); margin:4px 0;"
25785
+ },
25786
+ text_node(info.error)
25787
+ ]);
25788
+ return (0, _yuneta_gobj_js.createElement2)([
25789
+ "div",
25790
+ { class: "GOBJ_TREE_TRACES" },
25791
+ kids
25792
+ ]);
25793
+ }
25794
+ let rows = trace_rows(d, info);
25795
+ let pending = !!priv.trace_pending;
25796
+ let trs = [];
25797
+ let group = "";
25798
+ for (let r of rows) {
25799
+ if (r.group !== group) {
25800
+ group = r.group;
25801
+ let $label = group === "gclass" ? text_node(d.gclass) : (0, _yuneta_gobj_js.createElement2)([
25802
+ "span",
25803
+ { i18n: "global" },
25804
+ (0, i18next.t)("global")
25805
+ ]);
25806
+ trs.push([
25807
+ "tr",
25808
+ { class: "GOBJ_TREE_TRACES_GROUP" },
25809
+ [[
25810
+ "td",
25811
+ {
25812
+ colspan: 3,
25813
+ style: "padding:4px 4px 1px 4px; font-weight:600; color:var(--bulma-text-weak, #6B7280);"
25814
+ },
25815
+ [$label]
25816
+ ]]
25817
+ ]);
25818
+ }
25819
+ let origin = null;
25820
+ if (r.origin === "global") origin = [
25821
+ "span",
25822
+ {
25823
+ class: "GOBJ_TREE_TRACES_ORIGIN",
25824
+ i18n: "global",
25825
+ style: "margin-left:6px; color:var(--bulma-text-weak, #6B7280);"
25826
+ },
25827
+ (0, i18next.t)("global")
25828
+ ];
25829
+ else if (r.origin === "gclass") origin = [
25830
+ "span",
25831
+ {
25832
+ class: "GOBJ_TREE_TRACES_ORIGIN",
25833
+ i18n: "gclass",
25834
+ style: "margin-left:6px; color:var(--bulma-text-weak, #6B7280);"
25835
+ },
25836
+ (0, i18next.t)("gclass")
25837
+ ];
25838
+ let $level = (0, _yuneta_gobj_js.createElement2)([
25839
+ "td",
25840
+ {
25841
+ class: "GOBJ_TREE_TRACES_LEVEL",
25842
+ style: "padding:1px 4px; word-break:break-all;"
25843
+ },
25844
+ []
25845
+ ]);
25846
+ $level.appendChild(text_node(r.level));
25847
+ if (origin) $level.appendChild((0, _yuneta_gobj_js.createElement2)(origin));
25848
+ $level.setAttribute("title", r.description);
25849
+ trs.push([
25850
+ "tr",
25851
+ { class: "GOBJ_TREE_TRACES_ROW" },
25852
+ [
25853
+ $level,
25854
+ [
25855
+ "td",
25856
+ { style: TRACES_CELL_STYLE },
25857
+ [trace_checkbox(gobj, "gobj", r.level, r.gobj_on, pending || r.gobj_locked)]
25858
+ ],
25859
+ [
25860
+ "td",
25861
+ { style: TRACES_CELL_STYLE },
25862
+ [trace_checkbox(gobj, "gclass", r.level, r.gclass_on, pending || r.gclass_locked)]
25863
+ ]
25864
+ ]
25865
+ ]);
25866
+ }
25867
+ kids.push([
25868
+ "table",
25869
+ {
25870
+ class: "GOBJ_TREE_TRACES_TABLE",
25871
+ style: "width:100%; border-collapse:collapse;"
25872
+ },
25873
+ [[
25874
+ "thead",
25875
+ {},
25876
+ [[
25877
+ "tr",
25878
+ {},
25879
+ [
25880
+ [
25881
+ "th",
25882
+ {
25883
+ i18n: "level",
25884
+ style: "padding:1px 4px; text-align:left;"
25885
+ },
25886
+ (0, i18next.t)("level")
25887
+ ],
25888
+ [
25889
+ "th",
25890
+ {
25891
+ i18n: "this gobj",
25892
+ style: TRACES_CELL_STYLE
25893
+ },
25894
+ (0, i18next.t)("this gobj")
25895
+ ],
25896
+ [
25897
+ "th",
25898
+ {
25899
+ i18n: "all of the gclass",
25900
+ style: TRACES_CELL_STYLE
25901
+ },
25902
+ (0, i18next.t)("all of the gclass")
25903
+ ]
25904
+ ]
25905
+ ]]
25906
+ ], [
25907
+ "tbody",
25908
+ {},
25909
+ trs
25910
+ ]]
25911
+ ]);
25912
+ kids.push([
25913
+ "div",
25914
+ {
25915
+ class: "GOBJ_TREE_TRACES_NOTE",
25916
+ i18n: "gclass traces survive a restart, gobj traces end with the yuno",
25917
+ style: TRACES_NOTE_STYLE
25918
+ },
25919
+ (0, i18next.t)("gclass traces survive a restart, gobj traces end with the yuno")
25920
+ ]);
25921
+ let none_gobj = pending || own_trace_levels(rows, "gobj").length === 0;
25922
+ let none_gclass = pending || own_trace_levels(rows, "gclass").length === 0;
25923
+ let btn_style = "padding:0 8px; height:22px; font-size:11px; white-space:nowrap;";
25924
+ let clear = (scope) => {
25925
+ return { click: (evt) => {
25926
+ evt.stopPropagation();
25927
+ (0, _yuneta_gobj_js.gobj_send_event)(gobj, "EV_TRACES_CLEARED", { scope }, gobj);
25928
+ } };
25929
+ };
25930
+ let $clear_gobj = (0, _yuneta_gobj_js.createElement2)([
25931
+ "button",
25932
+ {
25933
+ type: "button",
25934
+ class: "GOBJ_TREE_TRACES_CLEAR_GOBJ button is-small",
25935
+ style: btn_style,
25936
+ i18n: "remove the traces of this gobj",
25937
+ title: (0, i18next.t)("remove the traces of this gobj"),
25938
+ "data-i18n-title": "remove the traces of this gobj",
25939
+ "aria-label": (0, i18next.t)("remove the traces of this gobj"),
25940
+ "data-i18n-aria-label": "remove the traces of this gobj"
25941
+ },
25942
+ (0, i18next.t)("remove the traces of this gobj"),
25943
+ clear("gobj")
25944
+ ]);
25945
+ let $clear_gclass = (0, _yuneta_gobj_js.createElement2)([
25946
+ "button",
25947
+ {
25948
+ type: "button",
25949
+ class: "GOBJ_TREE_TRACES_CLEAR_GCLASS button is-small",
25950
+ style: btn_style,
25951
+ i18n: "remove the traces of the gclass",
25952
+ title: (0, i18next.t)("remove the traces of the gclass"),
25953
+ "data-i18n-title": "remove the traces of the gclass",
25954
+ "aria-label": (0, i18next.t)("remove the traces of the gclass"),
25955
+ "data-i18n-aria-label": "remove the traces of the gclass"
25956
+ },
25957
+ (0, i18next.t)("remove the traces of the gclass"),
25958
+ clear("gclass")
25959
+ ]);
25960
+ $clear_gobj.disabled = none_gobj;
25961
+ $clear_gclass.disabled = none_gclass;
25962
+ kids.push([
25963
+ "div",
25964
+ {
25965
+ class: "GOBJ_TREE_TRACES_TOOLS",
25966
+ style: "display:flex; flex-wrap:wrap; gap:4px; margin-top:4px;"
25967
+ },
25968
+ [$clear_gobj, $clear_gclass]
25969
+ ]);
25970
+ return (0, _yuneta_gobj_js.createElement2)([
25971
+ "div",
25972
+ { class: "GOBJ_TREE_TRACES" },
25973
+ kids
25974
+ ]);
25975
+ }
25976
+ function trace_checkbox(gobj, scope, level, on, locked) {
25977
+ let $cb = null;
25978
+ if (scope === "gobj") $cb = (0, _yuneta_gobj_js.createElement2)(["input", {
25979
+ type: "checkbox",
25980
+ class: "GOBJ_TREE_TRACE_GOBJ",
25981
+ title: (0, i18next.t)("this gobj"),
25982
+ "data-i18n-title": "this gobj",
25983
+ "aria-label": (0, i18next.t)("this gobj"),
25984
+ "data-i18n-aria-label": "this gobj"
25985
+ }]);
25986
+ else $cb = (0, _yuneta_gobj_js.createElement2)(["input", {
25987
+ type: "checkbox",
25988
+ class: "GOBJ_TREE_TRACE_GCLASS",
25989
+ title: (0, i18next.t)("all of the gclass"),
25990
+ "data-i18n-title": "all of the gclass",
25991
+ "aria-label": (0, i18next.t)("all of the gclass"),
25992
+ "data-i18n-aria-label": "all of the gclass"
25993
+ }]);
25994
+ $cb.setAttribute("data-level", level);
25995
+ $cb.checked = !!on;
25996
+ $cb.disabled = !!locked;
25997
+ $cb.addEventListener("change", (evt) => {
25998
+ evt.stopPropagation();
25999
+ (0, _yuneta_gobj_js.gobj_send_event)(gobj, "EV_TRACE_TOGGLED", {
26000
+ scope,
26001
+ level,
26002
+ set: !!evt.target.checked
26003
+ }, gobj);
26004
+ });
26005
+ return $cb;
26006
+ }
26007
+ /************************************************************
26008
+ * Rebuild the graph and leave the popover where it was, on
26009
+ * the same gobj -- by full name, the node ids are new. A
26010
+ * reader who just ticked a trace is still reading that card.
26011
+ ************************************************************/
26012
+ function reload_keeping_popover(gobj, opts) {
26013
+ let priv = gobj.priv;
26014
+ let $popover = priv.$popover;
26015
+ let keep = priv.popover_node && $popover && $popover.style.display === "block" ? priv.popover_node.full_name : null;
26016
+ let left = $popover ? $popover.style.left : "";
26017
+ let top = $popover ? $popover.style.top : "";
26018
+ refresh_tree(gobj, opts);
26019
+ if (!keep || !priv.node_by_id) return;
26020
+ for (let id of Object.keys(priv.node_by_id)) {
26021
+ let d = priv.node_by_id[id];
26022
+ if (d.full_name === keep) {
26023
+ priv.popover_node = d;
26024
+ priv.$popover_title.textContent = d.short_name || d.gclass + (d.name ? "^" + d.name : "");
26025
+ priv.$popover_title.title = priv.$popover_title.textContent;
26026
+ render_popover_body(gobj, d);
26027
+ $popover.style.left = left;
26028
+ $popover.style.top = top;
26029
+ $popover.style.display = "block";
26030
+ return;
26031
+ }
26032
+ }
25524
26033
  }
25525
26034
  /************************************************************
25526
26035
  * Show popover next to the click position.
@@ -25845,6 +26354,10 @@ function ac_find_nodes$2(gobj, event, kw, src) {
25845
26354
  }
25846
26355
  function ac_refresh$3(gobj, event, kw, src) {
25847
26356
  save_view_state(gobj);
26357
+ if (is_remote(gobj)) {
26358
+ (0, _yuneta_gobj_js.gobj_publish_event)(gobj, "EV_TREE_WANTED", {});
26359
+ return 0;
26360
+ }
25848
26361
  refresh_tree(gobj);
25849
26362
  return 0;
25850
26363
  }
@@ -26104,6 +26617,7 @@ function ac_node_click$3(gobj, event, kw, src) {
26104
26617
  let client_x = kw.client_x || 0;
26105
26618
  let client_y = kw.client_y || 0;
26106
26619
  show_popover(gobj, node_data, client_x, client_y);
26620
+ if (is_remote(gobj)) (0, _yuneta_gobj_js.gobj_publish_event)(gobj, "EV_TRACE_INFO_WANTED", { gclass: node_data.gclass });
26107
26621
  return 0;
26108
26622
  }
26109
26623
  /************************************************************
@@ -26158,23 +26672,45 @@ function ac_hide$5(gobj, event, kw, src) {
26158
26672
  * first rather than stacking windows nobody closes.
26159
26673
  ************************************************************/
26160
26674
  function ac_open_gclass(gobj, event, kw, src) {
26161
- let priv = gobj.priv;
26162
- let node_data = priv.popover_node;
26675
+ let node_data = gobj.priv.popover_node;
26163
26676
  if (!node_data || !node_data.gclass) {
26164
26677
  (0, _yuneta_gobj_js.log_error)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: EV_OPEN_GCLASS with no node`);
26165
26678
  return -1;
26166
26679
  }
26680
+ if (is_remote(gobj)) {
26681
+ (0, _yuneta_gobj_js.gobj_publish_event)(gobj, "EV_GCLASS_WANTED", { gclass: node_data.gclass });
26682
+ return 0;
26683
+ }
26684
+ open_gclass_window(gobj, node_data.gclass, null, node_data.state || "");
26685
+ return 0;
26686
+ }
26687
+ /************************************************************
26688
+ * remote: the `view-gclass` answer the host fetched.
26689
+ ************************************************************/
26690
+ function ac_gclass_description(gobj, event, kw, src) {
26691
+ let priv = gobj.priv;
26692
+ if (!kw || !kw.gclass || !kw.description || typeof kw.description !== "object") {
26693
+ (0, _yuneta_gobj_js.log_error)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: EV_GCLASS_DESCRIPTION without a gclass description`);
26694
+ return -1;
26695
+ }
26696
+ let d = priv.popover_node;
26697
+ open_gclass_window(gobj, kw.gclass, kw.description, d && d.gclass === kw.gclass ? d.state || "" : "");
26698
+ return 0;
26699
+ }
26700
+ function open_gclass_window(gobj, gclass, description, state) {
26701
+ let priv = gobj.priv;
26167
26702
  close_gclass_view(priv.gclass_view);
26168
26703
  priv.gclass_view = null;
26169
- priv.gclass_view = open_gclass_view(gobj, node_data.gclass, {
26170
- title_prefix: (0, _yuneta_gobj_js.gobj_yuno_name)() || "",
26171
- current_state: node_data.state || "",
26704
+ let opts = {
26705
+ title_prefix: is_remote(gobj) ? (0, _yuneta_gobj_js.gobj_read_str_attr)(gobj, "yuno_name") || "" : (0, _yuneta_gobj_js.gobj_yuno_name)() || "",
26706
+ current_state: state,
26172
26707
  on_close: () => {
26173
26708
  if ((0, _yuneta_gobj_js.gobj_is_destroying)(gobj)) return;
26174
26709
  (0, _yuneta_gobj_js.gobj_send_event)(gobj, "EV_GCLASS_CLOSED", {}, gobj);
26175
26710
  }
26176
- });
26177
- return 0;
26711
+ };
26712
+ if (description) opts.description = description;
26713
+ priv.gclass_view = open_gclass_view(gobj, gclass, opts);
26178
26714
  }
26179
26715
  /************************************************************
26180
26716
  * The reader dismissed the gclass window (its own ✕).
@@ -26188,6 +26724,99 @@ function ac_gclass_closed(gobj, event, kw, src) {
26188
26724
  return 0;
26189
26725
  }
26190
26726
  /************************************************************
26727
+ * remote: the host loaded the tree (`view-gobj-tree`).
26728
+ *
26729
+ * The first one is framed like any opening; the next ones
26730
+ * keep the camera and the card the reader is on.
26731
+ ************************************************************/
26732
+ function ac_load_tree(gobj, event, kw, src) {
26733
+ let priv = gobj.priv;
26734
+ if (!is_remote(gobj)) {
26735
+ (0, _yuneta_gobj_js.log_error)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: EV_LOAD_TREE on a tree whose source is not remote`);
26736
+ return -1;
26737
+ }
26738
+ let root = describe_backend_tree(kw && kw.tree);
26739
+ if (!root) {
26740
+ (0, _yuneta_gobj_js.log_warning)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: what was loaded is not a view-gobj-tree answer`);
26741
+ return -1;
26742
+ }
26743
+ let first = !priv.remote_root;
26744
+ priv.remote_root = root;
26745
+ priv.trace_pending = false;
26746
+ reload_keeping_popover(gobj, first ? {} : { preserve_view: true });
26747
+ return 0;
26748
+ }
26749
+ /************************************************************
26750
+ * remote: the trace levels of a gclass, as the backend has
26751
+ * them now (or why they could not be read).
26752
+ ************************************************************/
26753
+ function ac_trace_info(gobj, event, kw, src) {
26754
+ let priv = gobj.priv;
26755
+ if (!kw || !kw.gclass) {
26756
+ (0, _yuneta_gobj_js.log_error)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: EV_TRACE_INFO without a gclass`);
26757
+ return -1;
26758
+ }
26759
+ let list = (x) => Array.isArray(x) ? x : [];
26760
+ priv.trace_info[kw.gclass] = {
26761
+ gclass_levels: kw.gclass_levels || {},
26762
+ global_levels: kw.global_levels || {},
26763
+ gclass_on: list(kw.gclass_on),
26764
+ global_on: list(kw.global_on),
26765
+ error: kw.error || ""
26766
+ };
26767
+ priv.trace_pending = false;
26768
+ let d = priv.popover_node;
26769
+ if (d && d.gclass === kw.gclass && priv.$popover && priv.$popover.style.display === "block") render_popover_body(gobj, d);
26770
+ return 0;
26771
+ }
26772
+ /************************************************************
26773
+ * A box of the TRACES block was ticked or cleared.
26774
+ ************************************************************/
26775
+ function ac_trace_toggled(gobj, event, kw, src) {
26776
+ let d = gobj.priv.popover_node;
26777
+ if (!is_remote(gobj) || !d) {
26778
+ (0, _yuneta_gobj_js.log_error)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: a trace set with no backend card open`);
26779
+ return -1;
26780
+ }
26781
+ if (!kw.level || kw.scope !== "gobj" && kw.scope !== "gclass") {
26782
+ (0, _yuneta_gobj_js.log_error)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: a trace set of no level or scope: '${kw.scope}' '${kw.level}'`);
26783
+ return -1;
26784
+ }
26785
+ set_trace_levels(gobj, d, kw.scope, [kw.level], !!kw.set);
26786
+ return 0;
26787
+ }
26788
+ /************************************************************
26789
+ * "Remove the traces" of the gobj or of its gclass: every
26790
+ * level that scope holds on its own.
26791
+ ************************************************************/
26792
+ function ac_traces_cleared(gobj, event, kw, src) {
26793
+ let priv = gobj.priv;
26794
+ let d = priv.popover_node;
26795
+ if (!is_remote(gobj) || !d) {
26796
+ (0, _yuneta_gobj_js.log_error)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: traces removed with no backend card open`);
26797
+ return -1;
26798
+ }
26799
+ let levels = own_trace_levels(trace_rows(d, priv.trace_info[d.gclass]), kw.scope);
26800
+ if (!levels.length) {
26801
+ (0, _yuneta_gobj_js.log_error)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: no ${kw.scope} trace of ${d.full_name} to remove`);
26802
+ return -1;
26803
+ }
26804
+ set_trace_levels(gobj, d, kw.scope, levels, false);
26805
+ return 0;
26806
+ }
26807
+ function set_trace_levels(gobj, d, scope, levels, set) {
26808
+ let priv = gobj.priv;
26809
+ priv.trace_pending = true;
26810
+ render_popover_body(gobj, d);
26811
+ (0, _yuneta_gobj_js.gobj_publish_event)(gobj, "EV_SET_TRACE_LEVEL", {
26812
+ scope,
26813
+ gobj: d.full_name,
26814
+ gclass: d.gclass,
26815
+ levels,
26816
+ set
26817
+ });
26818
+ }
26819
+ /************************************************************
26191
26820
  * The app switched language.
26192
26821
  *
26193
26822
  * A rebuild, not a re-translation: the words live inside the
@@ -26218,28 +26847,7 @@ function create_gclass$9(gclass_name) {
26218
26847
  (0, _yuneta_gobj_js.log_error)(`GClass ALREADY created: ${gclass_name}`);
26219
26848
  return -1;
26220
26849
  }
26221
- __gclass__$9 = (0, _yuneta_gobj_js.gclass_create)(gclass_name, [
26222
- ["EV_FIND_NODES", 0],
26223
- ["EV_REFRESH", 0],
26224
- ["EV_THEME", 0],
26225
- ["EV_CHANGE_LAYOUT", 0],
26226
- ["EV_TOGGLE_COLLAPSE", 0],
26227
- ["EV_EXPAND_ALL", 0],
26228
- ["EV_COLLAPSE_ALL", 0],
26229
- ["EV_ZOOM_IN", 0],
26230
- ["EV_ZOOM_OUT", 0],
26231
- ["EV_ZOOM_RESET", 0],
26232
- ["EV_CENTER", 0],
26233
- ["EV_NODE_CLICK", 0],
26234
- ["EV_TOGGLE_ANCHOR", 0],
26235
- ["EV_CENTER_ANCHOR", 0],
26236
- ["EV_RESIZE", 0],
26237
- ["EV_SHOW", 0],
26238
- ["EV_HIDE", 0],
26239
- ["EV_OPEN_GCLASS", 0],
26240
- ["EV_GCLASS_CLOSED", 0],
26241
- ["EV_LANGUAGE_CHANGED", 0]
26242
- ], [["ST_IDLE", [
26850
+ const states = [["ST_IDLE", [
26243
26851
  [
26244
26852
  "EV_FIND_NODES",
26245
26853
  ac_find_nodes$2,
@@ -26339,8 +26947,65 @@ function create_gclass$9(gclass_name) {
26339
26947
  "EV_LANGUAGE_CHANGED",
26340
26948
  ac_language_changed$5,
26341
26949
  null
26950
+ ],
26951
+ [
26952
+ "EV_LOAD_TREE",
26953
+ ac_load_tree,
26954
+ null
26955
+ ],
26956
+ [
26957
+ "EV_TRACE_INFO",
26958
+ ac_trace_info,
26959
+ null
26960
+ ],
26961
+ [
26962
+ "EV_TRACE_TOGGLED",
26963
+ ac_trace_toggled,
26964
+ null
26965
+ ],
26966
+ [
26967
+ "EV_TRACES_CLEARED",
26968
+ ac_traces_cleared,
26969
+ null
26970
+ ],
26971
+ [
26972
+ "EV_GCLASS_DESCRIPTION",
26973
+ ac_gclass_description,
26974
+ null
26342
26975
  ]
26343
- ]]], gmt$9, 0, attrs_table$9, PRIVATE_DATA$9, 0, 0, 0, 0);
26976
+ ]]];
26977
+ const event_types = [
26978
+ ["EV_FIND_NODES", 0],
26979
+ ["EV_REFRESH", 0],
26980
+ ["EV_THEME", 0],
26981
+ ["EV_CHANGE_LAYOUT", 0],
26982
+ ["EV_TOGGLE_COLLAPSE", 0],
26983
+ ["EV_EXPAND_ALL", 0],
26984
+ ["EV_COLLAPSE_ALL", 0],
26985
+ ["EV_ZOOM_IN", 0],
26986
+ ["EV_ZOOM_OUT", 0],
26987
+ ["EV_ZOOM_RESET", 0],
26988
+ ["EV_CENTER", 0],
26989
+ ["EV_NODE_CLICK", 0],
26990
+ ["EV_TOGGLE_ANCHOR", 0],
26991
+ ["EV_CENTER_ANCHOR", 0],
26992
+ ["EV_RESIZE", 0],
26993
+ ["EV_SHOW", 0],
26994
+ ["EV_HIDE", 0],
26995
+ ["EV_OPEN_GCLASS", 0],
26996
+ ["EV_GCLASS_CLOSED", 0],
26997
+ ["EV_LANGUAGE_CHANGED", 0],
26998
+ ["EV_LOAD_TREE", 0],
26999
+ ["EV_TRACE_INFO", 0],
27000
+ ["EV_TRACE_TOGGLED", 0],
27001
+ ["EV_TRACES_CLEARED", 0],
27002
+ ["EV_GCLASS_DESCRIPTION", 0],
27003
+ ["EV_TREE_WANTED", _yuneta_gobj_js.event_flag_t.EVF_OUTPUT_EVENT],
27004
+ ["EV_TRACE_INFO_WANTED", _yuneta_gobj_js.event_flag_t.EVF_OUTPUT_EVENT],
27005
+ ["EV_SET_TRACE_LEVEL", _yuneta_gobj_js.event_flag_t.EVF_OUTPUT_EVENT],
27006
+ ["EV_GCLASS_WANTED", _yuneta_gobj_js.event_flag_t.EVF_OUTPUT_EVENT]
27007
+ ];
27008
+ __gclass__$9 = (0, _yuneta_gobj_js.gclass_create)(gclass_name, event_types, states, gmt$9, 0, attrs_table$9, PRIVATE_DATA$9, 0, 0, 0, 0);
26344
27009
  if (!__gclass__$9) return -1;
26345
27010
  return 0;
26346
27011
  }
@@ -42849,8 +43514,8 @@ function _objectWithoutProperties(e, t) {
42849
43514
  /*!
42850
43515
  * @antv/g-lite
42851
43516
  * @description A core module for rendering engine implements DOM API.
42852
- * @version 2.7.0
42853
- * @date 12/24/2025, 11:55:20 AM
43517
+ * @version 2.7.2
43518
+ * @date 10/16/2026, 2:34:22 AM
42854
43519
  * @author AntVis
42855
43520
  * @docs https://g.antv.antgroup.com/
42856
43521
  */
@@ -43321,12 +43986,13 @@ function getAngle(angle) {
43321
43986
  }
43322
43987
  var $vec3$3 = create$3();
43323
43988
  function createVec3(x) {
43989
+ var _x$, _x$2, _x$3, _x$4;
43324
43990
  var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
43325
43991
  var z = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
43326
43992
  var clone$2 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : true;
43327
43993
  if (Array.isArray(x) && x.length === 3) return clone$2 ? clone(x) : copy$3($vec3$3, x);
43328
43994
  if (isNumber(x)) return clone$2 ? fromValues$2(x, y, z) : set$3($vec3$3, x, y, z);
43329
- return clone$2 ? fromValues$2(x[0], x[1] || y, x[2] || z) : set$3($vec3$3, x[0], x[1] || y, x[2] || z);
43995
+ return clone$2 ? fromValues$2(x[0], (_x$ = x[1]) !== null && _x$ !== void 0 ? _x$ : y, (_x$2 = x[2]) !== null && _x$2 !== void 0 ? _x$2 : z) : set$3($vec3$3, x[0], (_x$3 = x[1]) !== null && _x$3 !== void 0 ? _x$3 : y, (_x$4 = x[2]) !== null && _x$4 !== void 0 ? _x$4 : z);
43330
43996
  }
43331
43997
  var DEG_RAD = Math.PI / 180;
43332
43998
  function deg2rad(deg) {
@@ -49585,7 +50251,7 @@ var FederatedEvent = /*#__PURE__*/ function() {
49585
50251
  }
49586
50252
  ]);
49587
50253
  }();
49588
- var FederatedMouseEvent = /*#__PURE__*/ function(_ref) {
50254
+ var FederatedMouseEvent = /*#__PURE__*/ function(_FederatedEvent) {
49589
50255
  function FederatedMouseEvent() {
49590
50256
  var _this;
49591
50257
  _classCallCheck(this, FederatedMouseEvent);
@@ -49621,7 +50287,7 @@ var FederatedMouseEvent = /*#__PURE__*/ function(_ref) {
49621
50287
  _this.screen = new Point();
49622
50288
  return _this;
49623
50289
  }
49624
- _inherits(FederatedMouseEvent, _ref);
50290
+ _inherits(FederatedMouseEvent, _FederatedEvent);
49625
50291
  return _createClass(FederatedMouseEvent, [
49626
50292
  {
49627
50293
  key: "clientX",
@@ -54274,9 +54940,18 @@ var PrepareRendererPlugin = /*#__PURE__*/ function() {
54274
54940
  renderingService.dirty();
54275
54941
  };
54276
54942
  var handleBoundsChanged = function handleBoundsChanged(e) {
54277
- var _this$mutationRecords;
54278
54943
  var records = e.detail;
54279
- (_this$mutationRecords = _this.mutationRecords).push.apply(_this$mutationRecords, _toConsumableArray(records));
54944
+ var _iterator = _createForOfIteratorHelper(records), _step;
54945
+ try {
54946
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
54947
+ var record = _step.value;
54948
+ _this.mutationRecords.push(record);
54949
+ }
54950
+ } catch (err) {
54951
+ _iterator.e(err);
54952
+ } finally {
54953
+ _iterator.f();
54954
+ }
54280
54955
  renderingService.dirty();
54281
54956
  };
54282
54957
  var handleMounted = function handleMounted(e) {
@@ -55277,8 +55952,8 @@ PERFORMANCE OF THIS SOFTWARE.
55277
55952
  /*!
55278
55953
  * @antv/g
55279
55954
  * @description A core module for rendering engine implements DOM API.
55280
- * @version 6.3.1
55281
- * @date 12/24/2025, 11:55:39 AM
55955
+ * @version 6.3.3
55956
+ * @date 10/16/2026, 2:34:40 AM
55282
55957
  * @author AntVis
55283
55958
  * @docs https://g.antv.antgroup.com/
55284
55959
  */
@@ -62440,74 +63115,43 @@ var Animation = /*#__PURE__*/ function() {
62440
63115
  /**
62441
63116
  * https://github.com/gre/bezier-easing
62442
63117
  * BezierEasing - use bezier curve for transition easing function
62443
- * by Gaëtan Renaudeau 2014 - 2015 – MIT License
63118
+ * by Gaëtan Renaudeau 2014 - 2026 – MIT License
62444
63119
  */
62445
- var NEWTON_ITERATIONS = 4;
62446
- var NEWTON_MIN_SLOPE = .001;
62447
- var SUBDIVISION_PRECISION = 1e-7;
62448
- var SUBDIVISION_MAX_ITERATIONS = 10;
62449
- var kSplineTableSize = 11;
62450
- var kSampleStepSize = 1 / (kSplineTableSize - 1);
62451
- var float32ArraySupported = typeof Float32Array === "function";
62452
- var A = function A(aA1, aA2) {
62453
- return 1 - 3 * aA2 + 3 * aA1;
62454
- };
62455
- var B = function B(aA1, aA2) {
62456
- return 3 * aA2 - 6 * aA1;
62457
- };
62458
- var C = function C(aA1) {
62459
- return 3 * aA1;
62460
- };
62461
- var calcBezier = function calcBezier(aT, aA1, aA2) {
62462
- return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;
62463
- };
62464
- var getSlope = function getSlope(aT, aA1, aA2) {
62465
- return 3 * A(aA1, aA2) * aT * aT + 2 * B(aA1, aA2) * aT + C(aA1);
62466
- };
62467
- var binarySubdivide = function binarySubdivide(aX, aA, aB, mX1, mX2) {
62468
- var currentX;
62469
- var currentT;
62470
- var i = 0;
62471
- do {
62472
- currentT = aA + (aB - aA) / 2;
62473
- currentX = calcBezier(currentT, mX1, mX2) - aX;
62474
- if (currentX > 0) aB = currentT;
62475
- else aA = currentT;
62476
- } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);
62477
- return currentT;
62478
- };
62479
- var newtonRaphsonIterate = function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) {
62480
- for (var i = 0; i < NEWTON_ITERATIONS; ++i) {
62481
- var currentSlope = getSlope(aGuessT, mX1, mX2);
62482
- if (currentSlope === 0) return aGuessT;
62483
- var currentX = calcBezier(aGuessT, mX1, mX2) - aX;
62484
- aGuessT -= currentX / currentSlope;
62485
- }
62486
- return aGuessT;
63120
+ var solveTForX = function solveTForX(x, a, b, c) {
63121
+ var j = 1 / Math.max(c, Math.sqrt(x));
63122
+ var k = x * j;
63123
+ var l = k * j;
63124
+ var s = c * j;
63125
+ var q = b * l;
63126
+ var m = s * s + q;
63127
+ var h = -s * (s * s + 1.5 * q) - a * k * l;
63128
+ var D = h * h - m * m * m;
63129
+ var v;
63130
+ if (m === 0 || D > 1e-12 * h * h) {
63131
+ var U = -Math.cbrt(h < 0 ? h - Math.sqrt(D) : h + Math.sqrt(D));
63132
+ v = U + m / U || 0;
63133
+ } else {
63134
+ var r = Math.sqrt(m);
63135
+ v = 2 * r * Math.cos(Math.acos(Math.max(-1, Math.min(1, -h / (m * r)))) / 3);
63136
+ }
63137
+ return Math.min(1, k / (v + s));
62487
63138
  };
62488
63139
  var bezier = function bezier(mX1, mY1, mX2, mY2) {
62489
63140
  if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1)) throw new Error("bezier x values must be in [0, 1] range");
62490
63141
  if (mX1 === mY1 && mX2 === mY2) return function(t) {
62491
63142
  return t;
62492
63143
  };
62493
- var sampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize);
62494
- for (var i = 0; i < kSplineTableSize; ++i) sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);
62495
- var getTForX = function getTForX(aX) {
62496
- var intervalStart = 0;
62497
- var currentSample = 1;
62498
- var lastSample = kSplineTableSize - 1;
62499
- for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) intervalStart += kSampleStepSize;
62500
- --currentSample;
62501
- var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]);
62502
- var guessForT = intervalStart + dist * kSampleStepSize;
62503
- var initialSlope = getSlope(guessForT, mX1, mX2);
62504
- if (initialSlope >= NEWTON_MIN_SLOPE) return newtonRaphsonIterate(aX, guessForT, mX1, mX2);
62505
- if (initialSlope === 0) return guessForT;
62506
- return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);
62507
- };
63144
+ var a = (3 * mX1 - 3 * mX2 + 1) / 2;
63145
+ var b = mX2 - 2 * mX1;
63146
+ var c = mX1;
63147
+ var ay = 3 * mY1 - 3 * mY2 + 1;
63148
+ var by = 3 * (mY2 - 2 * mY1);
63149
+ var cy = 3 * mY1;
62508
63150
  return function(t) {
62509
- if (t === 0 || t === 1) return t;
62510
- return calcBezier(getTForX(t), mY1, mY2);
63151
+ if (t <= 0) return 0;
63152
+ if (t >= 1) return 1;
63153
+ var u = solveTForX(t, a, b, c);
63154
+ return ((ay * u + by) * u + cy) * u;
62511
63155
  };
62512
63156
  };
62513
63157
  var convertToDash = function convertToDash(str) {
@@ -63249,9 +63893,11 @@ var AnimationTimeline = /*#__PURE__*/ function() {
63249
63893
  if (t < Number(_this.currentTime)) t = Number(_this.currentTime);
63250
63894
  _this.animations.sort(compareAnimations);
63251
63895
  _this.animations = _this.tick(t, true, _this.animations)[0];
63896
+ _this.updateAnimationsPromises();
63252
63897
  processing.forEach(function(entry) {
63253
63898
  entry[1](t);
63254
63899
  });
63900
+ _this.updateAnimationsPromises();
63255
63901
  _this.applyPendingEffects();
63256
63902
  };
63257
63903
  this.document = document;
@@ -63361,18 +64007,13 @@ var AnimationTimeline = /*#__PURE__*/ function() {
63361
64007
  {
63362
64008
  key: "requestAnimationFrame",
63363
64009
  value: function requestAnimationFrame(f) {
63364
- var _this3 = this;
63365
- return this.rAF(function(x) {
63366
- _this3.updateAnimationsPromises();
63367
- f(x);
63368
- _this3.updateAnimationsPromises();
63369
- });
64010
+ return this.rAF(f);
63370
64011
  }
63371
64012
  },
63372
64013
  {
63373
64014
  key: "tick",
63374
64015
  value: function tick(t, isAnimationFrame, updatingAnimations) {
63375
- var _this4 = this, _this$pendingEffects, _this$pendingEffects2;
64016
+ var _this3 = this, _this$pendingEffects, _this$pendingEffects2;
63376
64017
  this.inTick = true;
63377
64018
  this.hasRestartedThisFrame = false;
63378
64019
  this.currentTime = t;
@@ -63390,7 +64031,7 @@ var AnimationTimeline = /*#__PURE__*/ function() {
63390
64031
  newPendingEffects.push(animation.effect);
63391
64032
  animation.markTarget();
63392
64033
  }
63393
- if (animation._needsTick) _this4.ticking = true;
64034
+ if (animation._needsTick) _this3.ticking = true;
63394
64035
  var alive = animation._inEffect || animation._needsTick;
63395
64036
  animation._inTimeline = alive;
63396
64037
  if (alive) activeAnimations.push(animation);