@awayjs/scene 0.13.258 → 0.13.259

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 (50) hide show
  1. package/bundle/awayjs-scene.umd.js +3 -18334
  2. package/bundle/awayjs-scene.umd.js.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/lib/Scene.js +13 -13
  5. package/dist/lib/base/Timeline.js +1 -1
  6. package/dist/lib/controllers/ControllerBase.js +2 -2
  7. package/dist/lib/controllers/FirstPersonController.js +6 -6
  8. package/dist/lib/controllers/HoverController.js +10 -10
  9. package/dist/lib/controllers/LookAtController.js +2 -2
  10. package/dist/lib/display/Billboard.js +9 -9
  11. package/dist/lib/display/Camera.js +2 -2
  12. package/dist/lib/display/DisplayObject.js +46 -46
  13. package/dist/lib/display/DisplayObjectContainer.js +3 -3
  14. package/dist/lib/display/LineSegment.js +4 -4
  15. package/dist/lib/display/LoaderContainer.js +2 -2
  16. package/dist/lib/display/MorphSprite.js +1 -1
  17. package/dist/lib/display/MovieClip.d.ts.map +1 -1
  18. package/dist/lib/display/MovieClip.js +16 -16
  19. package/dist/lib/display/SimpleButton.js +8 -8
  20. package/dist/lib/display/Skybox.js +5 -5
  21. package/dist/lib/display/Sprite.js +2 -2
  22. package/dist/lib/display/TextField.js +37 -37
  23. package/dist/lib/elements/SkyboxElements.js +1 -1
  24. package/dist/lib/events/CameraEvent.js +1 -1
  25. package/dist/lib/events/KeyboardEvent.js +2 -2
  26. package/dist/lib/events/MouseEvent.js +3 -3
  27. package/dist/lib/events/ResizeEvent.js +2 -2
  28. package/dist/lib/image/SceneImage2D.js +3 -3
  29. package/dist/lib/managers/MouseManager.js +11 -12
  30. package/dist/lib/prefabs/PrimitiveCapsulePrefab.js +5 -5
  31. package/dist/lib/prefabs/PrimitiveConePrefab.js +1 -1
  32. package/dist/lib/prefabs/PrimitiveCubePrefab.js +7 -7
  33. package/dist/lib/prefabs/PrimitiveCylinderPrefab.js +8 -8
  34. package/dist/lib/prefabs/PrimitivePlanePrefab.js +6 -6
  35. package/dist/lib/prefabs/PrimitivePolygonPrefab.js +3 -3
  36. package/dist/lib/prefabs/PrimitivePrefabBase.js +5 -5
  37. package/dist/lib/prefabs/PrimitiveSpherePrefab.js +4 -4
  38. package/dist/lib/prefabs/PrimitiveTorusPrefab.js +5 -5
  39. package/dist/lib/text/BitmapFontTable.js +7 -7
  40. package/dist/lib/text/Font.js +3 -3
  41. package/dist/lib/text/TesselatedFontTable.js +16 -10
  42. package/dist/lib/text/TextFormat.js +18 -18
  43. package/dist/lib/text/TextShape.js +3 -3
  44. package/dist/lib/tools/Merge.js +3 -3
  45. package/index.ts +1 -1
  46. package/lib/display/MovieClip.ts +2 -2
  47. package/package.json +10 -10
  48. package/rollup.config.js +30 -29
  49. package/bundle/awayjs-scene.umd.min.js +0 -1
  50. package/bundle/awayjs-scene.umd.min.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- console.debug('AwayJS - Scene - 0.13.258');
1
+ console.debug('AwayJS - Scene - 0.13.259');
2
2
  export { Timeline } from './lib/base/Timeline';
3
3
  export { ControllerBase } from './lib/controllers/ControllerBase';
4
4
  export { FirstPersonController } from './lib/controllers/FirstPersonController';
package/dist/lib/Scene.js CHANGED
@@ -58,7 +58,7 @@ var Scene = /** @class */ (function () {
58
58
  //this._partition.root.partition = this._partition;
59
59
  //this._disposeRenderer();
60
60
  },
61
- enumerable: true,
61
+ enumerable: false,
62
62
  configurable: true
63
63
  });
64
64
  Object.defineProperty(Scene.prototype, "view", {
@@ -83,7 +83,7 @@ var Scene = /** @class */ (function () {
83
83
  if (this._camera)
84
84
  this._view.projection = this._camera.projection;
85
85
  },
86
- enumerable: true,
86
+ enumerable: false,
87
87
  configurable: true
88
88
  });
89
89
  Object.defineProperty(Scene.prototype, "renderer", {
@@ -94,21 +94,21 @@ var Scene = /** @class */ (function () {
94
94
  .getRenderer(this._partition);
95
95
  return this._renderer;
96
96
  },
97
- enumerable: true,
97
+ enumerable: false,
98
98
  configurable: true
99
99
  });
100
100
  Object.defineProperty(Scene.prototype, "mouseX", {
101
101
  get: function () {
102
102
  return this._mouseX;
103
103
  },
104
- enumerable: true,
104
+ enumerable: false,
105
105
  configurable: true
106
106
  });
107
107
  Object.defineProperty(Scene.prototype, "mouseY", {
108
108
  get: function () {
109
109
  return this._mouseY;
110
110
  },
111
- enumerable: true,
111
+ enumerable: false,
112
112
  configurable: true
113
113
  });
114
114
  Scene.prototype.getLocalMouseX = function (node) {
@@ -142,7 +142,7 @@ var Scene = /** @class */ (function () {
142
142
  get: function () {
143
143
  return this._rendererClass;
144
144
  },
145
- enumerable: true,
145
+ enumerable: false,
146
146
  configurable: true
147
147
  });
148
148
  Object.defineProperty(Scene.prototype, "rendererType", {
@@ -155,7 +155,7 @@ var Scene = /** @class */ (function () {
155
155
  }
156
156
  this._rendererClass = value;
157
157
  },
158
- enumerable: true,
158
+ enumerable: false,
159
159
  configurable: true
160
160
  });
161
161
  Object.defineProperty(Scene.prototype, "camera", {
@@ -183,7 +183,7 @@ var Scene = /** @class */ (function () {
183
183
  this._partition.invalidateEntity(this._camera.getAbstraction(this._partition));
184
184
  //this._camera.partition = this._partition;
185
185
  },
186
- enumerable: true,
186
+ enumerable: false,
187
187
  configurable: true
188
188
  });
189
189
  Object.defineProperty(Scene.prototype, "deltaTime", {
@@ -194,14 +194,14 @@ var Scene = /** @class */ (function () {
194
194
  get: function () {
195
195
  return this._deltaTime;
196
196
  },
197
- enumerable: true,
197
+ enumerable: false,
198
198
  configurable: true
199
199
  });
200
200
  Object.defineProperty(Scene.prototype, "mouseManager", {
201
201
  get: function () {
202
202
  return this._mouseManager;
203
203
  },
204
- enumerable: true,
204
+ enumerable: false,
205
205
  configurable: true
206
206
  });
207
207
  Object.defineProperty(Scene.prototype, "mousePicker", {
@@ -211,7 +211,7 @@ var Scene = /** @class */ (function () {
211
211
  get: function () {
212
212
  return this._mousePicker;
213
213
  },
214
- enumerable: true,
214
+ enumerable: false,
215
215
  configurable: true
216
216
  });
217
217
  Object.defineProperty(Scene.prototype, "tabPicker", {
@@ -221,7 +221,7 @@ var Scene = /** @class */ (function () {
221
221
  get: function () {
222
222
  return this._tabPicker;
223
223
  },
224
- enumerable: true,
224
+ enumerable: false,
225
225
  configurable: true
226
226
  });
227
227
  Object.defineProperty(Scene.prototype, "renderedFacesCount", {
@@ -233,7 +233,7 @@ var Scene = /** @class */ (function () {
233
233
  return 0; //TODO
234
234
  //return this._pEntityCollector._pNumTriangles;//numTriangles;
235
235
  },
236
- enumerable: true,
236
+ enumerable: false,
237
237
  configurable: true
238
238
  });
239
239
  Scene.prototype.fireMouseEvents = function () {
@@ -134,7 +134,7 @@ var Timeline = /** @class */ (function () {
134
134
  get: function () {
135
135
  return this.keyframe_indices.length;
136
136
  },
137
- enumerable: true,
137
+ enumerable: false,
138
138
  configurable: true
139
139
  });
140
140
  Timeline.prototype.getKeyframeIndexForFrameIndex = function (frame_index) {
@@ -24,7 +24,7 @@ var ControllerBase = /** @class */ (function () {
24
24
  this._pTargetObject._iController = this;
25
25
  this.pNotifyUpdate();
26
26
  },
27
- enumerable: true,
27
+ enumerable: false,
28
28
  configurable: true
29
29
  });
30
30
  Object.defineProperty(ControllerBase.prototype, "autoUpdate", {
@@ -42,7 +42,7 @@ var ControllerBase = /** @class */ (function () {
42
42
  this._pTargetObject._iController = null;
43
43
  }
44
44
  },
45
- enumerable: true,
45
+ enumerable: false,
46
46
  configurable: true
47
47
  });
48
48
  ControllerBase.prototype.update = function (interpolate) {
@@ -61,7 +61,7 @@ var FirstPersonController = /** @class */ (function (_super) {
61
61
  this._steps = val;
62
62
  this.pNotifyUpdate();
63
63
  },
64
- enumerable: true,
64
+ enumerable: false,
65
65
  configurable: true
66
66
  });
67
67
  Object.defineProperty(FirstPersonController.prototype, "panAngle", {
@@ -77,7 +77,7 @@ var FirstPersonController = /** @class */ (function (_super) {
77
77
  this._panAngle = val;
78
78
  this.pNotifyUpdate();
79
79
  },
80
- enumerable: true,
80
+ enumerable: false,
81
81
  configurable: true
82
82
  });
83
83
  Object.defineProperty(FirstPersonController.prototype, "tiltAngle", {
@@ -94,7 +94,7 @@ var FirstPersonController = /** @class */ (function (_super) {
94
94
  this._tiltAngle = val;
95
95
  this.pNotifyUpdate();
96
96
  },
97
- enumerable: true,
97
+ enumerable: false,
98
98
  configurable: true
99
99
  });
100
100
  Object.defineProperty(FirstPersonController.prototype, "minTiltAngle", {
@@ -112,7 +112,7 @@ var FirstPersonController = /** @class */ (function (_super) {
112
112
  this._minTiltAngle = val;
113
113
  this.tiltAngle = Math.max(this._minTiltAngle, Math.min(this._maxTiltAngle, this._tiltAngle));
114
114
  },
115
- enumerable: true,
115
+ enumerable: false,
116
116
  configurable: true
117
117
  });
118
118
  Object.defineProperty(FirstPersonController.prototype, "maxTiltAngle", {
@@ -130,7 +130,7 @@ var FirstPersonController = /** @class */ (function (_super) {
130
130
  this._maxTiltAngle = val;
131
131
  this.tiltAngle = Math.max(this._minTiltAngle, Math.min(this._maxTiltAngle, this._tiltAngle));
132
132
  },
133
- enumerable: true,
133
+ enumerable: false,
134
134
  configurable: true
135
135
  });
136
136
  Object.defineProperty(FirstPersonController.prototype, "wrapPanAngle", {
@@ -146,7 +146,7 @@ var FirstPersonController = /** @class */ (function (_super) {
146
146
  this._wrapPanAngle = val;
147
147
  this.pNotifyUpdate();
148
148
  },
149
- enumerable: true,
149
+ enumerable: false,
150
150
  configurable: true
151
151
  });
152
152
  /**
@@ -72,7 +72,7 @@ var HoverController = /** @class */ (function (_super) {
72
72
  this._steps = val;
73
73
  this.pNotifyUpdate();
74
74
  },
75
- enumerable: true,
75
+ enumerable: false,
76
76
  configurable: true
77
77
  });
78
78
  Object.defineProperty(HoverController.prototype, "panAngle", {
@@ -89,7 +89,7 @@ var HoverController = /** @class */ (function (_super) {
89
89
  this._panAngle = val;
90
90
  this.pNotifyUpdate();
91
91
  },
92
- enumerable: true,
92
+ enumerable: false,
93
93
  configurable: true
94
94
  });
95
95
  Object.defineProperty(HoverController.prototype, "tiltAngle", {
@@ -106,7 +106,7 @@ var HoverController = /** @class */ (function (_super) {
106
106
  this._tiltAngle = val;
107
107
  this.pNotifyUpdate();
108
108
  },
109
- enumerable: true,
109
+ enumerable: false,
110
110
  configurable: true
111
111
  });
112
112
  Object.defineProperty(HoverController.prototype, "distance", {
@@ -122,7 +122,7 @@ var HoverController = /** @class */ (function (_super) {
122
122
  this._distance = val;
123
123
  this.pNotifyUpdate();
124
124
  },
125
- enumerable: true,
125
+ enumerable: false,
126
126
  configurable: true
127
127
  });
128
128
  Object.defineProperty(HoverController.prototype, "minPanAngle", {
@@ -140,7 +140,7 @@ var HoverController = /** @class */ (function (_super) {
140
140
  this._minPanAngle = val;
141
141
  this.panAngle = Math.max(this._minPanAngle, Math.min(this._maxPanAngle, this._panAngle));
142
142
  },
143
- enumerable: true,
143
+ enumerable: false,
144
144
  configurable: true
145
145
  });
146
146
  Object.defineProperty(HoverController.prototype, "maxPanAngle", {
@@ -158,7 +158,7 @@ var HoverController = /** @class */ (function (_super) {
158
158
  this._maxPanAngle = val;
159
159
  this.panAngle = Math.max(this._minPanAngle, Math.min(this._maxPanAngle, this._panAngle));
160
160
  },
161
- enumerable: true,
161
+ enumerable: false,
162
162
  configurable: true
163
163
  });
164
164
  Object.defineProperty(HoverController.prototype, "minTiltAngle", {
@@ -176,7 +176,7 @@ var HoverController = /** @class */ (function (_super) {
176
176
  this._minTiltAngle = val;
177
177
  this.tiltAngle = Math.max(this._minTiltAngle, Math.min(this._maxTiltAngle, this._tiltAngle));
178
178
  },
179
- enumerable: true,
179
+ enumerable: false,
180
180
  configurable: true
181
181
  });
182
182
  Object.defineProperty(HoverController.prototype, "maxTiltAngle", {
@@ -194,7 +194,7 @@ var HoverController = /** @class */ (function (_super) {
194
194
  this._maxTiltAngle = val;
195
195
  this.tiltAngle = Math.max(this._minTiltAngle, Math.min(this._maxTiltAngle, this._tiltAngle));
196
196
  },
197
- enumerable: true,
197
+ enumerable: false,
198
198
  configurable: true
199
199
  });
200
200
  Object.defineProperty(HoverController.prototype, "yFactor", {
@@ -213,7 +213,7 @@ var HoverController = /** @class */ (function (_super) {
213
213
  this._yFactor = val;
214
214
  this.pNotifyUpdate();
215
215
  },
216
- enumerable: true,
216
+ enumerable: false,
217
217
  configurable: true
218
218
  });
219
219
  Object.defineProperty(HoverController.prototype, "wrapPanAngle", {
@@ -229,7 +229,7 @@ var HoverController = /** @class */ (function (_super) {
229
229
  this._wrapPanAngle = val;
230
230
  this.pNotifyUpdate();
231
231
  },
232
- enumerable: true,
232
+ enumerable: false,
233
233
  configurable: true
234
234
  });
235
235
  /**
@@ -29,7 +29,7 @@ var LookAtController = /** @class */ (function (_super) {
29
29
  this._pLookAtPosition = val;
30
30
  this.pNotifyUpdate();
31
31
  },
32
- enumerable: true,
32
+ enumerable: false,
33
33
  configurable: true
34
34
  });
35
35
  Object.defineProperty(LookAtController.prototype, "lookAtObject", {
@@ -50,7 +50,7 @@ var LookAtController = /** @class */ (function (_super) {
50
50
  // this._onLookAtObjectChangedDelegate);
51
51
  this.pNotifyUpdate();
52
52
  },
53
- enumerable: true,
53
+ enumerable: false,
54
54
  configurable: true
55
55
  });
56
56
  //@override
@@ -76,7 +76,7 @@ var Billboard = /** @class */ (function (_super) {
76
76
  get: function () {
77
77
  return Billboard.assetType;
78
78
  },
79
- enumerable: true,
79
+ enumerable: false,
80
80
  configurable: true
81
81
  });
82
82
  Object.defineProperty(Billboard.prototype, "billboardRect", {
@@ -86,7 +86,7 @@ var Billboard = /** @class */ (function (_super) {
86
86
  get: function () {
87
87
  return this._billboardRect;
88
88
  },
89
- enumerable: true,
89
+ enumerable: false,
90
90
  configurable: true
91
91
  });
92
92
  Object.defineProperty(Billboard.prototype, "billboardHeight", {
@@ -96,7 +96,7 @@ var Billboard = /** @class */ (function (_super) {
96
96
  get: function () {
97
97
  return this._billboardHeight;
98
98
  },
99
- enumerable: true,
99
+ enumerable: false,
100
100
  configurable: true
101
101
  });
102
102
  Object.defineProperty(Billboard.prototype, "billboardWidth", {
@@ -106,7 +106,7 @@ var Billboard = /** @class */ (function (_super) {
106
106
  get: function () {
107
107
  return this._billboardWidth;
108
108
  },
109
- enumerable: true,
109
+ enumerable: false,
110
110
  configurable: true
111
111
  });
112
112
  Object.defineProperty(Billboard.prototype, "material", {
@@ -127,14 +127,14 @@ var Billboard = /** @class */ (function (_super) {
127
127
  this._updateDimensions();
128
128
  this._invalidateMaterial();
129
129
  },
130
- enumerable: true,
130
+ enumerable: false,
131
131
  configurable: true
132
132
  });
133
133
  Object.defineProperty(Billboard.prototype, "sampler", {
134
134
  get: function () {
135
135
  return this._sampler;
136
136
  },
137
- enumerable: true,
137
+ enumerable: false,
138
138
  configurable: true
139
139
  });
140
140
  Object.defineProperty(Billboard.prototype, "width", {
@@ -150,7 +150,7 @@ var Billboard = /** @class */ (function (_super) {
150
150
  this._width = val;
151
151
  this.scaleX = this._width / this._billboardRect.width;
152
152
  },
153
- enumerable: true,
153
+ enumerable: false,
154
154
  configurable: true
155
155
  });
156
156
  Object.defineProperty(Billboard.prototype, "height", {
@@ -166,7 +166,7 @@ var Billboard = /** @class */ (function (_super) {
166
166
  this._height = val;
167
167
  this.scaleY = this._height / this._billboardRect.height;
168
168
  },
169
- enumerable: true,
169
+ enumerable: false,
170
170
  configurable: true
171
171
  });
172
172
  Billboard.prototype.advanceFrame = function () {
@@ -221,7 +221,7 @@ var Billboard = /** @class */ (function (_super) {
221
221
  }
222
222
  return texture.getImageAt(0);
223
223
  },
224
- enumerable: true,
224
+ enumerable: false,
225
225
  configurable: true
226
226
  });
227
227
  Billboard.prototype._updateDimensions = function () {
@@ -18,7 +18,7 @@ var Camera = /** @class */ (function (_super) {
18
18
  get: function () {
19
19
  return Camera.assetType;
20
20
  },
21
- enumerable: true,
21
+ enumerable: false,
22
22
  configurable: true
23
23
  });
24
24
  Object.defineProperty(Camera.prototype, "projection", {
@@ -38,7 +38,7 @@ var Camera = /** @class */ (function (_super) {
38
38
  this._projection.transform = this._transform;
39
39
  this.dispatchEvent(new CameraEvent(CameraEvent.PROJECTION_CHANGED, this));
40
40
  },
41
- enumerable: true,
41
+ enumerable: false,
42
42
  configurable: true
43
43
  });
44
44
  /**