preview interactiveobjects in scenario module

This commit is contained in:
2026-04-29 12:49:04 +03:00
parent 7c74038af4
commit 6e57276cad
5 changed files with 53 additions and 29 deletions
+6 -3
View File
@@ -126,11 +126,14 @@ const Utils = {
return string && string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
},
toSafeJSON(data){
data = Utils.deepMerge({}, data, (k, v)=>{
toSafeObject(data){
return Utils.deepMerge({}, data, (k, v)=>{
return k.startsWith('__') ? undefined : v;
})
return JSON.stringify(data);
},
toSafeJSON(data){
return JSON.stringify(Utils.toSafeObject(data));
}
}