Data persistance between editor and runnable
Submitted by Jonny535 on Tue, 08/19/2025 - 21:13
Forums:
HotspotIcon.prototype.updateHotspotsData = function () { const self = this;
self.params.hotspots = self.params.hotspots || []; const safeParams = { hotspots: self.params.hotspots.map(h => ({ ...h })) }; self.setValue(self.field, safeParams); if (self.parent && self.parent.params) { self.parent.params[self.field.name] = safeParams; } self.renderHotspotList(); }
// Semantics
{ "name": "interactionSettings", "type": "group", "label": "Impostazioni Interazioni", "importance": "high", "fields": [ { "name": "videoPlayerPreview", "type": "group", "widget": "video360player", "label": "Anteprima Video 360°", "description": "Usa questa anteprima per posizionare le interazioni cliccando sul video.", "optional": true, "default": {}, "fields": [] }, { "name": "addHotspot", "type": "group", "widget": "hotspoticon", "label": "Aggiungi interazione", "optional": false, "default": { "hotspots": [] }, "fields": [ {
That do not persist in the editor
self.params.hotspots = self.params.hotspots || []; const safeParams = { hotspots: self.params.hotspots.map(h => ({ ...h })) }; self.setValue(self.field, safeParams); if (self.parent && self.parent.params) { self.parent.params[self.field.name] = safeParams; } self.renderHotspotList(); }
// Semantics
{ "name": "interactionSettings", "type": "group", "label": "Impostazioni Interazioni", "importance": "high", "fields": [ { "name": "videoPlayerPreview", "type": "group", "widget": "video360player", "label": "Anteprima Video 360°", "description": "Usa questa anteprima per posizionare le interazioni cliccando sul video.", "optional": true, "default": {}, "fields": [] }, { "name": "addHotspot", "type": "group", "widget": "hotspoticon", "label": "Aggiungi interazione", "optional": false, "default": { "hotspots": [] }, "fields": [ {
That do not persist in the editor
Jonny535
Wed, 08/20/2025 - 16:50
Permalink
Problem
I cannot understand the problem