@xuda.io/runtime-bundle 1.0.854 → 1.0.856
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/js/xuda-runtime-bundle.js +31 -7
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-mini-bundle.js +1 -1
- package/js/xuda-runtime-mini-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +31 -7
- package/js/xuda-runtime-slim.min.es.js +31 -7
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +1 -1
- package/js/xuda-worker-bundle.js +1 -1
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -24718,7 +24718,7 @@ var SCREEN_BLOCKER_OBJ = {};
|
|
|
24718
24718
|
var IS_PROGRESS_SCREEN_OPEN = null;
|
|
24719
24719
|
// var UI_ENGINE_OBJ = null;
|
|
24720
24720
|
|
|
24721
|
-
var UI_WORKER_OBJ = { jobs: [], num: 9000, cache: {} };
|
|
24721
|
+
var UI_WORKER_OBJ = { jobs: [], num: 9000, cache: {}, viewport_info: {} };
|
|
24722
24722
|
|
|
24723
24723
|
glb.html5_events_handler = [
|
|
24724
24724
|
'onabort',
|
|
@@ -27852,6 +27852,13 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
27852
27852
|
for await (const [key, val] of Object.entries(nodeP.children)) {
|
|
27853
27853
|
const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
|
|
27854
27854
|
}
|
|
27855
|
+
|
|
27856
|
+
if (!UI_WORKER_OBJ.viewport_info[$div.parent().attr('xu-ui-id')]) {
|
|
27857
|
+
UI_WORKER_OBJ.viewport_info[$div.parent().attr('xu-ui-id')] = { $elm: $div.parent(), height: $div.height() };
|
|
27858
|
+
}
|
|
27859
|
+
// if (!$div.parent().data().xuData.viewport_elm_height) {
|
|
27860
|
+
// $div.parent().data().xuData.viewport_elm_height = $div.height();
|
|
27861
|
+
// }
|
|
27855
27862
|
}
|
|
27856
27863
|
|
|
27857
27864
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
@@ -31163,6 +31170,19 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
31163
31170
|
setTimeout(function () {
|
|
31164
31171
|
fix_svg();
|
|
31165
31172
|
}, 200);
|
|
31173
|
+
|
|
31174
|
+
// if ($div.parent().data().xuData.viewport_elm_height) {
|
|
31175
|
+
// $div.css(height, $div.parent().data().xuData.viewport_elm_height);
|
|
31176
|
+
// }
|
|
31177
|
+
|
|
31178
|
+
// for (const [parent_elm_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.viewport_info)) {
|
|
31179
|
+
|
|
31180
|
+
// }
|
|
31181
|
+
|
|
31182
|
+
for (const item of UI_WORKER_OBJ.viewport_info) {
|
|
31183
|
+
item.children().css(innerHeight, item.height);
|
|
31184
|
+
}
|
|
31185
|
+
|
|
31166
31186
|
func.UI.utils.indicator.screen.normal();
|
|
31167
31187
|
|
|
31168
31188
|
let ret_screen_loading = await func.UI.screen.screen_loading_done(SESSION_ID, params, ret_render_$container, jobNoP);
|
|
@@ -34442,6 +34462,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34442
34462
|
);
|
|
34443
34463
|
|
|
34444
34464
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
34465
|
+
// if ($div.parent().data().xuData.viewport_elm_height) {
|
|
34466
|
+
// $div.css(height, $div.parent().data().xuData.viewport_elm_height);
|
|
34467
|
+
// }
|
|
34468
|
+
|
|
34445
34469
|
$div.on('inViewport', function () {
|
|
34446
34470
|
if ($div.children().length) {
|
|
34447
34471
|
$div.removeClass('skeleton');
|
|
@@ -34454,12 +34478,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34454
34478
|
} else {
|
|
34455
34479
|
hover_in($div);
|
|
34456
34480
|
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container }, null, null, paramsP.dsSessionP);
|
|
34457
|
-
//viewport_elm_height
|
|
34458
|
-
if (!$div.parent().data().xuData.viewport_elm_height) {
|
|
34459
|
-
|
|
34460
|
-
|
|
34461
|
-
|
|
34462
|
-
}
|
|
34481
|
+
// //viewport_elm_height
|
|
34482
|
+
// if (!$div.parent().data().xuData.viewport_elm_height) {
|
|
34483
|
+
// setTimeout(() => {
|
|
34484
|
+
// $div.parent().data().xuData.viewport_elm_height = $div.height();
|
|
34485
|
+
// }, 2000);
|
|
34486
|
+
// }
|
|
34463
34487
|
}
|
|
34464
34488
|
observer_outViewport.observe($div[0]);
|
|
34465
34489
|
});
|