@xuda.io/runtime-bundle 1.0.983 → 1.0.985

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.
@@ -31060,7 +31060,7 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
31060
31060
  });
31061
31061
  };
31062
31062
  setTimeout(function () {
31063
- fix_svg();
31063
+ // fix_svg();
31064
31064
  }, 200);
31065
31065
 
31066
31066
  func.UI.utils.indicator.screen.normal();
@@ -33160,25 +33160,6 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
33160
33160
  } else {
33161
33161
  $div = $(`<${div} ${attr_str ? attr_str : ''}>`);
33162
33162
  }
33163
- // const svgNS = "http://www.w3.org/2000/svg";
33164
- // // $div = $(document.createElementNS(svgNS, "svg"));
33165
- // $div = $(`<${div} ${attr_str ? attr_str : ""} ${svg_attributes_str}>`);
33166
- // } else {
33167
- // $div = $(`<${div} ${attr_str ? attr_str : ""}>`);
33168
-
33169
- // async function generateHash(str, algorithm = 'SHA-256') {
33170
- // // Encode the string as UTF-8
33171
- // const msgBuffer = new TextEncoder().encode(str);
33172
-
33173
- // // Hash the string
33174
- // const hashBuffer = await crypto.subtle.digest(algorithm, msgBuffer);
33175
-
33176
- // // Convert to hex string
33177
- // const hashArray = Array.from(new Uint8Array(hashBuffer));
33178
- // const hashHex = hashArray.map((b) => b.toString(16).padStart(2, '0')).join('');
33179
-
33180
- // return hashHex;
33181
- // }
33182
33163
 
33183
33164
  // Returns a 32-bit unsigned integer hash of a string (FNV-1a)
33184
33165
  function hash32(str) {
@@ -33196,7 +33177,6 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
33196
33177
  return (hash32(str) >>> 0).toString(16).padStart(8, '0');
33197
33178
  }
33198
33179
 
33199
- // const new_ui_id = await generateHash(ui_id);
33200
33180
  const new_ui_id = hash32hex(ui_id);
33201
33181
 
33202
33182
  $div.attr('xu-ui-id', new_ui_id).data({