@awayjs/scene 0.13.320 → 0.13.321

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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- console.debug('AwayJS - Scene - 0.13.320');
1
+ console.debug('AwayJS - Scene - 0.13.321');
2
2
  export { Timeline } from './lib/base/Timeline';
3
3
  export { ControllerBase } from './lib/controllers/ControllerBase';
4
4
  export { FirstPersonController } from './lib/controllers/FirstPersonController';
@@ -6,6 +6,11 @@ import { IEntity } from '@awayjs/view';
6
6
  * It is a child of the textfield that is used to render all visible (masked) graphics
7
7
  */
8
8
  export declare class TextSprite extends Sprite {
9
+ static assetType: string;
10
+ /**
11
+ *
12
+ */
13
+ get assetType(): string;
9
14
  parentTextField: TextField;
10
15
  getEntity(): IEntity;
11
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TextSprite.d.ts","sourceRoot":"","sources":["../../../lib/display/TextSprite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAwB,OAAO,EAAE,MAAM,cAAc,CAAC;AAE7D;;;GAGG;AACH,qBAAa,UAAW,SAAQ,MAAM;IAC9B,eAAe,EAAE,SAAS,CAAC;IAE3B,SAAS,IAAI,OAAO;CAY3B"}
1
+ {"version":3,"file":"TextSprite.d.ts","sourceRoot":"","sources":["../../../lib/display/TextSprite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAwB,OAAO,EAAE,MAAM,cAAc,CAAC;AAE7D;;;GAGG;AACH,qBAAa,UAAW,SAAQ,MAAM;IAErC,OAAc,SAAS,EAAE,MAAM,CAAwB;IAEvD;;OAEG;IACH,IAAW,SAAS,IAAI,MAAM,CAE7B;IAEM,eAAe,EAAE,SAAS,CAAC;IAE3B,SAAS,IAAI,OAAO;CAY3B"}
@@ -11,6 +11,16 @@ var TextSprite = /** @class */ (function (_super) {
11
11
  function TextSprite() {
12
12
  return _super !== null && _super.apply(this, arguments) || this;
13
13
  }
14
+ Object.defineProperty(TextSprite.prototype, "assetType", {
15
+ /**
16
+ *
17
+ */
18
+ get: function () {
19
+ return TextSprite.assetType;
20
+ },
21
+ enumerable: false,
22
+ configurable: true
23
+ });
14
24
  TextSprite.prototype.getEntity = function () {
15
25
  var tf = this.parentTextField;
16
26
  //tf.reConstruct(true);
@@ -20,6 +30,7 @@ var TextSprite = /** @class */ (function (_super) {
20
30
  }
21
31
  return this._graphics;
22
32
  };
33
+ TextSprite.assetType = '[asset TextSprite]';
23
34
  return TextSprite;
24
35
  }(Sprite));
25
36
  export { TextSprite };
@@ -60,7 +60,7 @@ var MouseManager = /** @class */ (function () {
60
60
  this._isAVM1Dragging = isAVM1Dragging;
61
61
  // we MUST overrider collision target if present, because draggable !== drag emitter
62
62
  if (collision)
63
- this._pointerDataArray[0].dragCollision = collision;
63
+ (this._pointerDataArray[0] || (this._pointerDataArray[0] = new PointerData(0, true))).dragCollision = collision;
64
64
  };
65
65
  MouseManager.prototype.stopDragObject = function () {
66
66
  this._isAVM1Dragging = false;
package/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- console.debug('AwayJS - Scene - 0.13.320');
1
+ console.debug('AwayJS - Scene - 0.13.321');
2
2
 
3
3
  export { IDisplayObjectAdapter } from './lib/adapters/IDisplayObjectAdapter';
4
4
  export { IMovieClipAdapter } from './lib/adapters/IMovieClipAdapter';
@@ -8,6 +8,16 @@ import { HierarchicalProperty, IEntity } from '@awayjs/view';
8
8
  * It is a child of the textfield that is used to render all visible (masked) graphics
9
9
  */
10
10
  export class TextSprite extends Sprite {
11
+
12
+ public static assetType: string = '[asset TextSprite]';
13
+
14
+ /**
15
+ *
16
+ */
17
+ public get assetType(): string {
18
+ return TextSprite.assetType;
19
+ }
20
+
11
21
  public parentTextField: TextField;
12
22
 
13
23
  public getEntity(): IEntity {
@@ -87,7 +87,7 @@ export class MouseManager {
87
87
 
88
88
  // we MUST overrider collision target if present, because draggable !== drag emitter
89
89
  if (collision)
90
- this._pointerDataArray[0].dragCollision = collision;
90
+ (this._pointerDataArray[0] || (this._pointerDataArray[0] = new PointerData(0, true))).dragCollision = collision;
91
91
  }
92
92
 
93
93
  public stopDragObject() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awayjs/scene",
3
- "version": "0.13.320",
3
+ "version": "0.13.321",
4
4
  "description": "AwayJS scene classes",
5
5
  "main": "bundle/awayjs-scene.umd.js",
6
6
  "module": "dist/index.js",