x-runtime-lib 0.8.108 → 0.8.109
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/dist/index.js +12 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -160,16 +160,25 @@ function E(t, n) {
|
|
|
160
160
|
}
|
|
161
161
|
const $i = ["common", "scene"], Ci = ["common", "scene"];
|
|
162
162
|
function Zc({ type: t, version: n, view: e, code: o }) {
|
|
163
|
-
const
|
|
163
|
+
const s = (c, u) => {
|
|
164
|
+
const p = { id: u.id };
|
|
165
|
+
u.children && (p.children = [], u.children.forEach((d) => {
|
|
166
|
+
s(p.children, d);
|
|
167
|
+
})), c.push(p);
|
|
168
|
+
}, r = [];
|
|
169
|
+
e.nodeLites.forEach((c) => {
|
|
170
|
+
s(r, c);
|
|
171
|
+
});
|
|
172
|
+
const a = {
|
|
164
173
|
type: t,
|
|
165
174
|
version: n,
|
|
166
175
|
view: {
|
|
167
|
-
nodeLites:
|
|
176
|
+
nodeLites: r,
|
|
168
177
|
nodes: e.nodes
|
|
169
178
|
},
|
|
170
179
|
code: o
|
|
171
180
|
};
|
|
172
|
-
return JSON.stringify(
|
|
181
|
+
return JSON.stringify(a);
|
|
173
182
|
}
|
|
174
183
|
function Qc(t) {
|
|
175
184
|
const { type: n, version: e, view: o, code: s } = JSON.parse(t), r = {
|