@awayjs/scene 0.13.243 → 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 -3
- 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/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/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
|
};
|
|
@@ -14933,6 +14942,7 @@ var SceneImage2D = /** @class */ (function (_super) {
|
|
|
14933
14942
|
}
|
|
14934
14943
|
this._lastUsedFill = null;
|
|
14935
14944
|
this._imageDataDirty = true;
|
|
14945
|
+
this.invalidate();
|
|
14936
14946
|
};
|
|
14937
14947
|
SceneImage2D._mapSupportedBlendMode = function (blendMode) {
|
|
14938
14948
|
if (blendMode === void 0) { blendMode = ''; }
|
|
@@ -18348,7 +18358,7 @@ var Scene = /** @class */ (function () {
|
|
|
18348
18358
|
_awayjs_graphics.MaterialManager.materialClass = _awayjs_materials.MethodMaterial;
|
|
18349
18359
|
_awayjs_graphics.MaterialManager.textureClass = _awayjs_renderer.ImageTexture2D;
|
|
18350
18360
|
|
|
18351
|
-
console.debug('AwayJS - Scene - 0.13.
|
|
18361
|
+
console.debug('AwayJS - Scene - 0.13.244');
|
|
18352
18362
|
|
|
18353
18363
|
exports.Timeline = Timeline;
|
|
18354
18364
|
exports.ControllerBase = ControllerBase;
|