@urso/core 0.4.19 → 0.4.20
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/package.json
CHANGED
|
@@ -51,18 +51,19 @@ class ModulesScenesResolutions {
|
|
|
51
51
|
console.log('[SCENE] New Resolution', currentResolution, 'windowSize:', windowSize);
|
|
52
52
|
console.log('[SCENE] New Template Size', this._templateSize);
|
|
53
53
|
|
|
54
|
-
//update InstancesModes
|
|
55
|
-
Object.values(Urso.device.ScreenOrientation).forEach((orientationValue) => Urso.removeInstancesMode(orientationValue + 'Orientation'));
|
|
56
|
-
Urso.addInstancesMode(orientation + 'Orientation');
|
|
57
|
-
|
|
58
|
-
//send new resolution event
|
|
59
|
-
this.emit(Urso.events.MODULES_SCENES_NEW_RESOLUTION, { resolution: currentResolution, template: this._templateSize });
|
|
60
|
-
|
|
61
54
|
if (this._currentOrientation !== this._templateSize.orientation) {
|
|
62
55
|
this._currentOrientation = this._templateSize.orientation;
|
|
56
|
+
|
|
57
|
+
//update InstancesModes
|
|
58
|
+
Object.values(Urso.device.ScreenOrientation).forEach((orientationValue) => Urso.removeInstancesMode(orientationValue + 'Orientation'));
|
|
59
|
+
Urso.addInstancesMode(this._templateSize.orientation + 'Orientation');
|
|
60
|
+
|
|
63
61
|
this.emit(Urso.events.MODULES_SCENES_ORIENTATION_CHANGE, this._templateSize.orientation);
|
|
64
62
|
}
|
|
65
63
|
|
|
64
|
+
//send new resolution event
|
|
65
|
+
this.emit(Urso.events.MODULES_SCENES_NEW_RESOLUTION, { resolution: currentResolution, template: this._templateSize });
|
|
66
|
+
|
|
66
67
|
return true;
|
|
67
68
|
};
|
|
68
69
|
|