@awayjs/scene 0.13.246 → 0.13.247

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.
Files changed (49) hide show
  1. package/bundle/awayjs-scene.umd.js +78 -96
  2. package/bundle/awayjs-scene.umd.js.map +1 -1
  3. package/bundle/awayjs-scene.umd.min.js.map +1 -1
  4. package/bundle/awayjs-scene.umd.min.js.map.map +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/lib/display/Billboard.d.ts +2 -2
  7. package/dist/lib/display/Billboard.d.ts.map +1 -1
  8. package/dist/lib/display/Billboard.js +2 -2
  9. package/dist/lib/display/Camera.d.ts +0 -1
  10. package/dist/lib/display/Camera.d.ts.map +1 -1
  11. package/dist/lib/display/Camera.js +0 -3
  12. package/dist/lib/display/DisplayObject.d.ts +31 -7
  13. package/dist/lib/display/DisplayObject.d.ts.map +1 -1
  14. package/dist/lib/display/DisplayObject.js +41 -7
  15. package/dist/lib/display/DisplayObjectContainer.d.ts +2 -24
  16. package/dist/lib/display/DisplayObjectContainer.d.ts.map +1 -1
  17. package/dist/lib/display/DisplayObjectContainer.js +5 -37
  18. package/dist/lib/display/LineSegment.d.ts +2 -2
  19. package/dist/lib/display/LineSegment.d.ts.map +1 -1
  20. package/dist/lib/display/LineSegment.js +2 -2
  21. package/dist/lib/display/MorphSprite.d.ts.map +1 -1
  22. package/dist/lib/display/MorphSprite.js +1 -3
  23. package/dist/lib/display/Skybox.d.ts +2 -2
  24. package/dist/lib/display/Skybox.d.ts.map +1 -1
  25. package/dist/lib/display/Skybox.js +2 -2
  26. package/dist/lib/display/Sprite.d.ts +2 -3
  27. package/dist/lib/display/Sprite.d.ts.map +1 -1
  28. package/dist/lib/display/Sprite.js +4 -12
  29. package/dist/lib/display/TextField.d.ts +2 -3
  30. package/dist/lib/display/TextField.d.ts.map +1 -1
  31. package/dist/lib/display/TextField.js +11 -18
  32. package/dist/lib/events/MouseEvent.d.ts +3 -3
  33. package/dist/lib/events/MouseEvent.d.ts.map +1 -1
  34. package/dist/lib/events/MouseEvent.js +3 -3
  35. package/dist/lib/managers/MouseManager.d.ts.map +1 -1
  36. package/dist/lib/managers/MouseManager.js +7 -7
  37. package/index.ts +1 -1
  38. package/lib/display/Billboard.ts +3 -2
  39. package/lib/display/Camera.ts +0 -4
  40. package/lib/display/DisplayObject.ts +48 -12
  41. package/lib/display/DisplayObjectContainer.ts +6 -38
  42. package/lib/display/LineSegment.ts +3 -3
  43. package/lib/display/MorphSprite.ts +2 -5
  44. package/lib/display/Skybox.ts +3 -3
  45. package/lib/display/Sprite.ts +5 -16
  46. package/lib/display/TextField.ts +12 -21
  47. package/lib/events/MouseEvent.ts +5 -5
  48. package/lib/managers/MouseManager.ts +8 -9
  49. package/package.json +1 -1
@@ -1290,6 +1290,7 @@ var DisplayObject = /** @class */ (function (_super) {
1290
1290
  */
1291
1291
  function DisplayObject() {
1292
1292
  var _this = _super.call(this) || this;
1293
+ _this._mouseChildren = true;
1293
1294
  _this._sessionID = -1;
1294
1295
  _this._avmDepthID = -1;
1295
1296
  //public _implicitPartition: PartitionBase;
@@ -2450,6 +2451,40 @@ var DisplayObject = /** @class */ (function (_super) {
2450
2451
  enumerable: true,
2451
2452
  configurable: true
2452
2453
  });
2454
+ Object.defineProperty(DisplayObject.prototype, "mouseChildren", {
2455
+ /**
2456
+ * Determines whether or not the children of the object are mouse, or user
2457
+ * input device, enabled. If an object is enabled, a user can interact with
2458
+ * it by using a mouse or user input device. The default is
2459
+ * <code>true</code>.
2460
+ *
2461
+ * <p>This property is useful when you create a button with an instance of
2462
+ * the Sprite class(instead of using the SimpleButton class). When you use a
2463
+ * Sprite instance to create a button, you can choose to decorate the button
2464
+ * by using the <code>addChild()</code> method to add additional Sprite
2465
+ * instances. This process can cause unexpected behavior with mouse events
2466
+ * because the Sprite instances you add as children can become the target
2467
+ * object of a mouse event when you expect the parent instance to be the
2468
+ * target object. To ensure that the parent instance serves as the target
2469
+ * objects for mouse events, you can set the <code>mouseChildren</code>
2470
+ * property of the parent instance to <code>false</code>.</p>
2471
+ *
2472
+ * <p> No event is dispatched by setting this property. You must use the
2473
+ * <code>addEventListener()</code> method to create interactive
2474
+ * functionality.</p>
2475
+ */
2476
+ get: function () {
2477
+ return this._mouseChildren;
2478
+ },
2479
+ set: function (value) {
2480
+ if (this._mouseChildren == value)
2481
+ return;
2482
+ this._mouseChildren = value;
2483
+ this._invalidateHierarchicalProperty(_awayjs_view.HierarchicalProperty.MOUSE_ENABLED);
2484
+ },
2485
+ enumerable: true,
2486
+ configurable: true
2487
+ });
2453
2488
  Object.defineProperty(DisplayObject.prototype, "x", {
2454
2489
  /**
2455
2490
  * Indicates the <i>x</i> coordinate of the DisplayObject instance relative
@@ -2531,9 +2566,10 @@ var DisplayObject = /** @class */ (function (_super) {
2531
2566
  DisplayObject.prototype.advanceFrame = function () {
2532
2567
  //default to do nothing
2533
2568
  };
2534
- DisplayObject.prototype.isEntity = function () {
2535
- return false;
2569
+ DisplayObject.prototype.getEntity = function () {
2570
+ return;
2536
2571
  };
2572
+ DisplayObject.prototype._initNode = function (node) { };
2537
2573
  /**
2538
2574
  *
2539
2575
  */
@@ -2547,6 +2583,7 @@ var DisplayObject = /** @class */ (function (_super) {
2547
2583
  displayObject.defaultBoundingVolume = this._defaultBoundingVolume;
2548
2584
  if (this._registrationMatrix3D)
2549
2585
  displayObject._registrationMatrix3D = this._registrationMatrix3D.clone();
2586
+ displayObject.mouseChildren = this._mouseChildren;
2550
2587
  displayObject.material = this._material;
2551
2588
  displayObject.style = this._style;
2552
2589
  displayObject.pickObject = this._pickObject;
@@ -2652,11 +2689,8 @@ var DisplayObject = /** @class */ (function (_super) {
2652
2689
  DisplayObject.prototype._invalidateHierarchicalProperty = function (propDirty) {
2653
2690
  this.dispatchEvent(new _awayjs_view.HeirarchicalEvent(_awayjs_view.HeirarchicalEvent.INVALIDATE_PROPERTY, propDirty));
2654
2691
  };
2655
- DisplayObject.prototype._invalidateEntity = function () {
2656
- this.dispatchEvent(new _awayjs_view.ContainerEvent(_awayjs_view.ContainerEvent.INVALIDATE_ENTITY, this));
2657
- };
2658
- DisplayObject.prototype._clearEntity = function () {
2659
- this.dispatchEvent(new _awayjs_view.ContainerEvent(_awayjs_view.ContainerEvent.CLEAR_ENTITY, this));
2692
+ DisplayObject.prototype._updateEntity = function () {
2693
+ this.dispatchEvent(new _awayjs_view.ContainerEvent(_awayjs_view.ContainerEvent.UPDATE_ENTITY, this));
2660
2694
  };
2661
2695
  /**
2662
2696
  *
@@ -2779,7 +2813,6 @@ var DisplayObjectContainer = /** @class */ (function (_super) {
2779
2813
  */
2780
2814
  function DisplayObjectContainer() {
2781
2815
  var _this = _super.call(this) || this;
2782
- _this._mouseChildren = true;
2783
2816
  _this._children = new Array();
2784
2817
  _this.doingSwap = false;
2785
2818
  _this.tabChildren = false;
@@ -2795,40 +2828,6 @@ var DisplayObjectContainer = /** @class */ (function (_super) {
2795
2828
  enumerable: true,
2796
2829
  configurable: true
2797
2830
  });
2798
- Object.defineProperty(DisplayObjectContainer.prototype, "mouseChildren", {
2799
- /**
2800
- * Determines whether or not the children of the object are mouse, or user
2801
- * input device, enabled. If an object is enabled, a user can interact with
2802
- * it by using a mouse or user input device. The default is
2803
- * <code>true</code>.
2804
- *
2805
- * <p>This property is useful when you create a button with an instance of
2806
- * the Sprite class(instead of using the SimpleButton class). When you use a
2807
- * Sprite instance to create a button, you can choose to decorate the button
2808
- * by using the <code>addChild()</code> method to add additional Sprite
2809
- * instances. This process can cause unexpected behavior with mouse events
2810
- * because the Sprite instances you add as children can become the target
2811
- * object of a mouse event when you expect the parent instance to be the
2812
- * target object. To ensure that the parent instance serves as the target
2813
- * objects for mouse events, you can set the <code>mouseChildren</code>
2814
- * property of the parent instance to <code>false</code>.</p>
2815
- *
2816
- * <p> No event is dispatched by setting this property. You must use the
2817
- * <code>addEventListener()</code> method to create interactive
2818
- * functionality.</p>
2819
- */
2820
- get: function () {
2821
- return this._mouseChildren;
2822
- },
2823
- set: function (value) {
2824
- if (this._mouseChildren == value)
2825
- return;
2826
- this._mouseChildren = value;
2827
- this._invalidateHierarchicalProperty(_awayjs_view.HierarchicalProperty.MOUSE_ENABLED);
2828
- },
2829
- enumerable: true,
2830
- configurable: true
2831
- });
2832
2831
  Object.defineProperty(DisplayObjectContainer.prototype, "animator", {
2833
2832
  /**
2834
2833
  * Defines the animator of the display object. Default value is <code>null</code>.
@@ -2949,7 +2948,6 @@ var DisplayObjectContainer = /** @class */ (function (_super) {
2949
2948
  };
2950
2949
  DisplayObjectContainer.prototype.copyTo = function (newInstance) {
2951
2950
  _super.prototype.copyTo.call(this, newInstance);
2952
- newInstance.mouseChildren = this._mouseChildren;
2953
2951
  if (this._animator)
2954
2952
  newInstance.animator = this._animator.clone();
2955
2953
  var len = this._children.length;
@@ -3230,6 +3228,10 @@ var DisplayObjectContainer = /** @class */ (function (_super) {
3230
3228
  }
3231
3229
  }
3232
3230
  };
3231
+ DisplayObjectContainer.prototype._initNode = function (node) {
3232
+ for (var i = 0; i < this._children.length; ++i)
3233
+ node.addChildAt(this._children[i], i);
3234
+ };
3233
3235
  /**
3234
3236
  * @private
3235
3237
  *
@@ -3268,7 +3270,6 @@ var Sprite = /** @class */ (function (_super) {
3268
3270
  if (graphics === void 0) { graphics = null; }
3269
3271
  if (material === void 0) { material = null; }
3270
3272
  var _this = _super.call(this) || this;
3271
- _this._isEntity = false;
3272
3273
  _this._onGraphicsInvalidateDelegate = function (event) { return _this._onGraphicsInvalidate(event); };
3273
3274
  _this.graphics = graphics || _awayjs_graphics.Graphics.getGraphics();
3274
3275
  _this.material = material;
@@ -3319,9 +3320,8 @@ var Sprite = /** @class */ (function (_super) {
3319
3320
  configurable: true
3320
3321
  });
3321
3322
  Sprite.prototype._setGraphics = function (value) {
3322
- if (this._graphics == value) {
3323
+ if (this._graphics == value)
3323
3324
  return;
3324
- }
3325
3325
  if (this._graphics) {
3326
3326
  this._graphics.removeEventListener(_awayjs_core.AssetEvent.INVALIDATE, this._onGraphicsInvalidateDelegate);
3327
3327
  this._graphics.usages--;
@@ -3330,7 +3330,7 @@ var Sprite = /** @class */ (function (_super) {
3330
3330
  }
3331
3331
  this._graphics = value;
3332
3332
  this._graphics.usages++;
3333
- this._onGraphicsInvalidate(null);
3333
+ this.invalidate();
3334
3334
  };
3335
3335
  Sprite.prototype._setParent = function (parent) {
3336
3336
  _super.prototype._setParent.call(this, parent);
@@ -3343,8 +3343,8 @@ var Sprite = /** @class */ (function (_super) {
3343
3343
  // console.log('Restore cache');
3344
3344
  // }
3345
3345
  };
3346
- Sprite.prototype.isEntity = function () {
3347
- return (this._graphics && this._graphics.count > 0);
3346
+ Sprite.prototype.getEntity = function () {
3347
+ return (this._graphics.count > 0) ? this : null;
3348
3348
  };
3349
3349
  /**
3350
3350
  * @inheritDoc
@@ -3400,12 +3400,6 @@ var Sprite = /** @class */ (function (_super) {
3400
3400
  * @private
3401
3401
  */
3402
3402
  Sprite.prototype._onGraphicsInvalidate = function (_event) {
3403
- var isEntity = this.isEntity();
3404
- if (this._isEntity != isEntity) {
3405
- if (!isEntity)
3406
- this._clearEntity();
3407
- this._isEntity = isEntity;
3408
- }
3409
3403
  this.invalidate();
3410
3404
  };
3411
3405
  /**
@@ -3469,11 +3463,9 @@ var MorphSprite = /** @class */ (function (_super) {
3469
3463
  //if (!this._graphics.usages)
3470
3464
  // this.graphics.dispose();
3471
3465
  }
3472
- if (!this._graphics) {
3466
+ if (!this._graphics)
3473
3467
  this._graphics = _awayjs_graphics.Graphics.getGraphics();
3474
- }
3475
3468
  this._graphics.copyFrom(value);
3476
- this._onGraphicsInvalidate(null);
3477
3469
  };
3478
3470
  Object.defineProperty(MorphSprite.prototype, "assetType", {
3479
3471
  get: function () {
@@ -5123,8 +5115,8 @@ var Billboard = /** @class */ (function (_super) {
5123
5115
  Billboard.prototype.advanceFrame = function () {
5124
5116
  //override for billboard
5125
5117
  };
5126
- Billboard.prototype.isEntity = function () {
5127
- return true;
5118
+ Billboard.prototype.getEntity = function () {
5119
+ return this;
5128
5120
  };
5129
5121
  /**
5130
5122
  * @inheritDoc
@@ -5408,9 +5400,6 @@ var Camera = /** @class */ (function (_super) {
5408
5400
  _this.z = -1000;
5409
5401
  return _this;
5410
5402
  }
5411
- Camera.prototype.isEntity = function () {
5412
- return true;
5413
- };
5414
5403
  Object.defineProperty(Camera.prototype, "assetType", {
5415
5404
  //@override
5416
5405
  get: function () {
@@ -5564,8 +5553,8 @@ var LineSegment = /** @class */ (function (_super) {
5564
5553
  enumerable: true,
5565
5554
  configurable: true
5566
5555
  });
5567
- LineSegment.prototype.isEntity = function () {
5568
- return true;
5556
+ LineSegment.prototype.getEntity = function () {
5557
+ return this;
5569
5558
  };
5570
5559
  LineSegment.prototype._acceptTraverser = function (traverser) {
5571
5560
  traverser.applyTraversable(this);
@@ -6728,7 +6717,7 @@ var MouseEvent$1 = /** @class */ (function (_super) {
6728
6717
  result.screenX = this.screenX;
6729
6718
  result.screenY = this.screenY;
6730
6719
  result.view = this.view;
6731
- result.entityNode = this.entityNode;
6720
+ result.containerNode = this.containerNode;
6732
6721
  result.rootNode = this.rootNode;
6733
6722
  result.traversable = this.traversable;
6734
6723
  result.material = this.material;
@@ -6749,7 +6738,7 @@ var MouseEvent$1 = /** @class */ (function (_super) {
6749
6738
  * The position in scene space where the event took place
6750
6739
  */
6751
6740
  get: function () {
6752
- return this.entityNode.parent.getMatrix3D().transformVector(this.position);
6741
+ return this.containerNode.getMatrix3D().transformVector(this.position);
6753
6742
  },
6754
6743
  enumerable: true,
6755
6744
  configurable: true
@@ -6759,7 +6748,7 @@ var MouseEvent$1 = /** @class */ (function (_super) {
6759
6748
  * The normal in scene space where the event took place
6760
6749
  */
6761
6750
  get: function () {
6762
- var sceneNormal = this.entityNode.parent.getMatrix3D().deltaTransformVector(this.normal);
6751
+ var sceneNormal = this.containerNode.getMatrix3D().deltaTransformVector(this.normal);
6763
6752
  sceneNormal.normalize();
6764
6753
  return sceneNormal;
6765
6754
  },
@@ -8056,8 +8045,8 @@ var Skybox = /** @class */ (function (_super) {
8056
8045
  Skybox.prototype.getTextureAt = function (index) {
8057
8046
  return this._textures[index];
8058
8047
  };
8059
- Skybox.prototype.isEntity = function () {
8060
- return true;
8048
+ Skybox.prototype.getEntity = function () {
8049
+ return this;
8061
8050
  };
8062
8051
  Object.defineProperty(Skybox.prototype, "assetType", {
8063
8052
  get: function () {
@@ -11289,7 +11278,6 @@ var TextField = /** @class */ (function (_super) {
11289
11278
  */
11290
11279
  function TextField() {
11291
11280
  var _this = _super.call(this) || this;
11292
- _this._isEntity = false;
11293
11281
  _this.textOffsetX = 0;
11294
11282
  _this.textOffsetY = 0;
11295
11283
  _this._selectionBeginIndex = 0;
@@ -11477,7 +11465,7 @@ var TextField = /** @class */ (function (_super) {
11477
11465
  // }
11478
11466
  this.setSelection(0, 0);
11479
11467
  this._glyphsDirty = true;
11480
- this._invalidateEntity();
11468
+ this._updateEntity();
11481
11469
  };
11482
11470
  TextField.prototype.enableInput = function (enable) {
11483
11471
  if (enable === void 0) { enable = true; }
@@ -11849,12 +11837,6 @@ var TextField = /** @class */ (function (_super) {
11849
11837
  * @private
11850
11838
  */
11851
11839
  TextField.prototype._onGraphicsInvalidate = function (event) {
11852
- var isEntity = this.isEntity();
11853
- if (this._isEntity != isEntity) {
11854
- if (!isEntity)
11855
- this._clearEntity();
11856
- this._isEntity = isEntity;
11857
- }
11858
11840
  this.invalidate();
11859
11841
  };
11860
11842
  Object.defineProperty(TextField.prototype, "assetType", {
@@ -11997,7 +11979,7 @@ var TextField = /** @class */ (function (_super) {
11997
11979
  if (this._autoSize != TextFieldAutoSize.NONE)
11998
11980
  this.invalidate();
11999
11981
  else
12000
- this._invalidateEntity();
11982
+ this._updateEntity();
12001
11983
  this.newTextFormat = this._textFormats[this._textFormats.length - 1];
12002
11984
  },
12003
11985
  enumerable: true,
@@ -12231,7 +12213,7 @@ var TextField = /** @class */ (function (_super) {
12231
12213
  if (this._autoSize != TextFieldAutoSize.NONE)
12232
12214
  this.invalidate();
12233
12215
  else
12234
- this._invalidateEntity();
12216
+ this._updateEntity();
12235
12217
  },
12236
12218
  enumerable: true,
12237
12219
  configurable: true
@@ -12247,7 +12229,7 @@ var TextField = /** @class */ (function (_super) {
12247
12229
  if (this._autoSize != TextFieldAutoSize.NONE)
12248
12230
  this.invalidate();
12249
12231
  else
12250
- this._invalidateEntity();
12232
+ this._updateEntity();
12251
12233
  };
12252
12234
  Object.defineProperty(TextField.prototype, "newTextFormat", {
12253
12235
  get: function () {
@@ -12288,7 +12270,7 @@ var TextField = /** @class */ (function (_super) {
12288
12270
  if (this._autoSize != TextFieldAutoSize.NONE)
12289
12271
  this.invalidate();
12290
12272
  else
12291
- this._invalidateEntity();
12273
+ this._updateEntity();
12292
12274
  },
12293
12275
  enumerable: true,
12294
12276
  configurable: true
@@ -12390,7 +12372,7 @@ var TextField = /** @class */ (function (_super) {
12390
12372
  this._implicitPartition.invalidateEntity(this);
12391
12373
  //}*/
12392
12374
  this._glyphsDirty = true;
12393
- this._invalidateEntity();
12375
+ this._updateEntity();
12394
12376
  },
12395
12377
  enumerable: true,
12396
12378
  configurable: true
@@ -12452,7 +12434,7 @@ var TextField = /** @class */ (function (_super) {
12452
12434
  }
12453
12435
  this._type = value;
12454
12436
  this._textDirty = true;
12455
- this._invalidateEntity();
12437
+ this._updateEntity();
12456
12438
  if (value == TextFieldType.INPUT) {
12457
12439
  //this._selectable=true;
12458
12440
  this.enableInput(true);
@@ -12527,8 +12509,8 @@ var TextField = /** @class */ (function (_super) {
12527
12509
  TextField.prototype.advanceFrame = function () {
12528
12510
  //override for textfield
12529
12511
  };
12530
- TextField.prototype.isEntity = function () {
12531
- return true;
12512
+ TextField.prototype.getEntity = function () {
12513
+ return this;
12532
12514
  };
12533
12515
  TextField.prototype.clear = function () {
12534
12516
  _super.prototype.clear.call(this);
@@ -13422,7 +13404,7 @@ var TextField = /** @class */ (function (_super) {
13422
13404
  if (this._autoSize != TextFieldAutoSize.NONE)
13423
13405
  this.invalidate();
13424
13406
  else
13425
- this._invalidateEntity();
13407
+ this._updateEntity();
13426
13408
  };
13427
13409
  /**
13428
13410
  * *tells the Textfield that a paragraph is defined completly.
@@ -13434,7 +13416,7 @@ var TextField = /** @class */ (function (_super) {
13434
13416
  if (this._autoSize != TextFieldAutoSize.NONE)
13435
13417
  this.invalidate();
13436
13418
  else
13437
- this._invalidateEntity();
13419
+ this._updateEntity();
13438
13420
  };
13439
13421
  /**
13440
13422
  * Returns a rectangle that is the bounding box of the character.
@@ -15362,13 +15344,13 @@ var MouseManager = /** @class */ (function () {
15362
15344
  this._stage.dispatchEvent(event);
15363
15345
  // @todo: at this point the object under the mouse might have been changed,
15364
15346
  // so we need to recheck the collision ?
15365
- var upEntityNode = null;
15347
+ var upContainerNode = null;
15366
15348
  var upRootNode = null;
15367
15349
  if (this._isAVM1Dragging && this._mouseDragCollision) {
15368
15350
  // avm1dragging is in process, dispatch the mouse-up on this.
15369
15351
  // mouseDragEntity instead of the current collision
15370
15352
  upRootNode = this._mouseDragCollision.rootNode;
15371
- upEntityNode = this._mouseDragCollision.entityNode;
15353
+ upContainerNode = this._mouseDragCollision.containerNode;
15372
15354
  }
15373
15355
  else if (this._mouseDragging && this._mouseDragCollision
15374
15356
  && this._mouseDragCollision.rootNode != dispatcher) {
@@ -15387,11 +15369,11 @@ var MouseManager = /** @class */ (function () {
15387
15369
  // but current collision is not the same as collision that appeared on mouse-down,
15388
15370
  // need to dispatch a MOUSE_UP_OUTSIDE on _mouseDragEntity
15389
15371
  upRootNode = this._mouseDragCollision.rootNode;
15390
- upEntityNode = this._mouseDragCollision.entityNode;
15372
+ upContainerNode = this._mouseDragCollision.containerNode;
15391
15373
  }
15392
15374
  if (this._mouseDragging && dispatcher)
15393
15375
  this.setupAndDispatchEvent(this._mouseOver, event, collision);
15394
- if (this._isTouch && upEntityNode)
15376
+ if (this._isTouch && upContainerNode)
15395
15377
  this.setupAndDispatchEvent(this._mouseOut, this._mouseMoveEvent, this._mouseDragCollision);
15396
15378
  if (upRootNode) {
15397
15379
  //console.log("onRelease", upRootNode)
@@ -15401,7 +15383,7 @@ var MouseManager = /** @class */ (function () {
15401
15383
  this.dispatchEvent(event, dispatcher);
15402
15384
  else if (this._eventBubbling)
15403
15385
  this._stage.dispatchEvent(event);
15404
- if (upEntityNode)
15386
+ if (upContainerNode)
15405
15387
  this.setupAndDispatchEvent(this._dragStop, event, this._mouseDragCollision);
15406
15388
  this._mouseDragCollision = null;
15407
15389
  this._mouseDragging = false;
@@ -15679,7 +15661,7 @@ var MouseManager = /** @class */ (function () {
15679
15661
  //console.log("event", event, collisionNode, collisionNode);
15680
15662
  // 3D properties.
15681
15663
  if (collision) {
15682
- event.entityNode = collision.entityNode;
15664
+ event.containerNode = collision.containerNode;
15683
15665
  event.rootNode = collision.rootNode;
15684
15666
  // Object.
15685
15667
  event.traversable = collision.traversable;
@@ -15694,7 +15676,7 @@ var MouseManager = /** @class */ (function () {
15694
15676
  }
15695
15677
  else {
15696
15678
  // Set all to null.
15697
- event.entityNode = null;
15679
+ event.containerNode = null;
15698
15680
  event.rootNode = null;
15699
15681
  event.traversable = null;
15700
15682
  event.uv = null;
@@ -18317,7 +18299,7 @@ var Scene = /** @class */ (function () {
18317
18299
  _awayjs_graphics.MaterialManager.materialClass = _awayjs_materials.MethodMaterial;
18318
18300
  _awayjs_graphics.MaterialManager.textureClass = _awayjs_renderer.ImageTexture2D;
18319
18301
 
18320
- console.debug('AwayJS - Scene - 0.13.246');
18302
+ console.debug('AwayJS - Scene - 0.13.247');
18321
18303
 
18322
18304
  exports.Timeline = Timeline;
18323
18305
  exports.ControllerBase = ControllerBase;