@awayjs/scene 0.13.242 → 0.13.244
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/bundle/awayjs-scene.umd.js +13 -9
- package/bundle/awayjs-scene.umd.js.map +1 -1
- package/bundle/awayjs-scene.umd.min.js.map +1 -1
- package/bundle/awayjs-scene.umd.min.js.map.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/display/DisplayObject.d.ts +2 -0
- package/dist/lib/display/DisplayObject.d.ts.map +1 -1
- package/dist/lib/display/DisplayObject.js +11 -2
- package/dist/lib/display/MovieClip.d.ts +0 -2
- package/dist/lib/display/MovieClip.d.ts.map +1 -1
- package/dist/lib/display/MovieClip.js +0 -6
- package/dist/lib/image/SceneImage2D.d.ts.map +1 -1
- package/dist/lib/image/SceneImage2D.js +1 -0
- package/index.ts +1 -1
- package/lib/display/DisplayObject.ts +12 -2
- package/lib/display/MovieClip.ts +0 -8
- package/lib/image/SceneImage2D.ts +1 -0
- package/package.json +1 -1
|
@@ -1429,6 +1429,7 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
1429
1429
|
//global debug bounding boxes:
|
|
1430
1430
|
//this._boundsVisible=true;
|
|
1431
1431
|
_this._onInvalidatePropertiesDelegate = function (event) { return _this._onInvalidateProperties(event); };
|
|
1432
|
+
_this._onInvalidateImagesDelegate = function (event) { return _this._onInvalidateImages(event); };
|
|
1432
1433
|
//creation of associated transform object
|
|
1433
1434
|
_this._transform = new _awayjs_core.Transform(null);
|
|
1434
1435
|
//setup transform listeners
|
|
@@ -2219,11 +2220,15 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
2219
2220
|
set: function (value) {
|
|
2220
2221
|
if (this._style == value)
|
|
2221
2222
|
return;
|
|
2222
|
-
if (this._style)
|
|
2223
|
+
if (this._style) {
|
|
2223
2224
|
this._style.removeEventListener(_awayjs_renderer.StyleEvent.INVALIDATE_PROPERTIES, this._onInvalidatePropertiesDelegate);
|
|
2225
|
+
this._style.removeEventListener(_awayjs_renderer.StyleEvent.INVALIDATE_IMAGES, this._onInvalidateImagesDelegate);
|
|
2226
|
+
}
|
|
2224
2227
|
this._style = value;
|
|
2225
|
-
if (this._style)
|
|
2228
|
+
if (this._style) {
|
|
2226
2229
|
this._style.addEventListener(_awayjs_renderer.StyleEvent.INVALIDATE_PROPERTIES, this._onInvalidatePropertiesDelegate);
|
|
2230
|
+
this._style.addEventListener(_awayjs_renderer.StyleEvent.INVALIDATE_IMAGES, this._onInvalidateImagesDelegate);
|
|
2231
|
+
}
|
|
2227
2232
|
this._invalidateStyle();
|
|
2228
2233
|
},
|
|
2229
2234
|
enumerable: true,
|
|
@@ -2729,6 +2734,10 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
2729
2734
|
if (_event === void 0) { _event = null; }
|
|
2730
2735
|
this._invalidateStyle();
|
|
2731
2736
|
};
|
|
2737
|
+
DisplayObject.prototype._onInvalidateImages = function (_event) {
|
|
2738
|
+
if (_event === void 0) { _event = null; }
|
|
2739
|
+
this.invalidate();
|
|
2740
|
+
};
|
|
2732
2741
|
DisplayObject.prototype._getDefaultBoundingVolume = function () {
|
|
2733
2742
|
return _awayjs_view.BoundingVolumeType.BOX_BOUNDS_FAST;
|
|
2734
2743
|
};
|
|
@@ -7442,12 +7451,6 @@ var MovieClip = /** @class */ (function (_super) {
|
|
|
7442
7451
|
this.removeEventListener(MouseEvent$1.DRAG_OVER, this._onDragOver);
|
|
7443
7452
|
this.removeEventListener(MouseEvent$1.DRAG_OUT, this._onDragOut);
|
|
7444
7453
|
};
|
|
7445
|
-
MovieClip.prototype.swapChildrenAt = function (index1, index2) {
|
|
7446
|
-
console.warn('[scene/MovieClip] - swapChildrenAt - not implemented');
|
|
7447
|
-
};
|
|
7448
|
-
MovieClip.prototype.swapDepths = function (child, depth) {
|
|
7449
|
-
console.warn('[scene/MovieClip] - swapDepths - not implemented');
|
|
7450
|
-
};
|
|
7451
7454
|
MovieClip.prototype.getTimelineChildAtSessionID = function (sessionID) {
|
|
7452
7455
|
return this._sessionID_childs[sessionID];
|
|
7453
7456
|
};
|
|
@@ -14939,6 +14942,7 @@ var SceneImage2D = /** @class */ (function (_super) {
|
|
|
14939
14942
|
}
|
|
14940
14943
|
this._lastUsedFill = null;
|
|
14941
14944
|
this._imageDataDirty = true;
|
|
14945
|
+
this.invalidate();
|
|
14942
14946
|
};
|
|
14943
14947
|
SceneImage2D._mapSupportedBlendMode = function (blendMode) {
|
|
14944
14948
|
if (blendMode === void 0) { blendMode = ''; }
|
|
@@ -18354,7 +18358,7 @@ var Scene = /** @class */ (function () {
|
|
|
18354
18358
|
_awayjs_graphics.MaterialManager.materialClass = _awayjs_materials.MethodMaterial;
|
|
18355
18359
|
_awayjs_graphics.MaterialManager.textureClass = _awayjs_renderer.ImageTexture2D;
|
|
18356
18360
|
|
|
18357
|
-
console.debug('AwayJS - Scene - 0.13.
|
|
18361
|
+
console.debug('AwayJS - Scene - 0.13.244');
|
|
18358
18362
|
|
|
18359
18363
|
exports.Timeline = Timeline;
|
|
18360
18364
|
exports.ControllerBase = ControllerBase;
|