@sequent-org/moodboard 1.2.110 → 1.2.112
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
package/src/core/index.js
CHANGED
|
@@ -1998,7 +1998,10 @@ export class CoreMoodBoard {
|
|
|
1998
1998
|
const objects = this.state.getObjects();
|
|
1999
1999
|
const object = objects.find(obj => obj.id === objectId);
|
|
2000
2000
|
if (object) {
|
|
2001
|
-
object.
|
|
2001
|
+
if (!object.transform) {
|
|
2002
|
+
object.transform = {};
|
|
2003
|
+
}
|
|
2004
|
+
object.transform.rotation = angle;
|
|
2002
2005
|
this.state.markDirty();
|
|
2003
2006
|
}
|
|
2004
2007
|
}
|
|
@@ -16,6 +16,8 @@ export class LayerManager {
|
|
|
16
16
|
* @private
|
|
17
17
|
*/
|
|
18
18
|
_createLayers() {
|
|
19
|
+
if (!this.app || !this.app.stage) return;
|
|
20
|
+
|
|
19
21
|
// Слой сетки (не двигается)
|
|
20
22
|
this.gridLayer = new PIXI.Container();
|
|
21
23
|
this.gridLayer.name = 'gridLayer';
|
|
@@ -83,7 +85,7 @@ export class LayerManager {
|
|
|
83
85
|
* @param {PIXI.DisplayObject} pixiObject - PIXI объект
|
|
84
86
|
*/
|
|
85
87
|
addToWorldLayer(pixiObject) {
|
|
86
|
-
if (this.worldLayer) {
|
|
88
|
+
if (this.worldLayer && pixiObject) {
|
|
87
89
|
this.worldLayer.addChild(pixiObject);
|
|
88
90
|
}
|
|
89
91
|
}
|