@awayjs/scene 0.13.257 → 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.
- package/bundle/awayjs-scene.umd.js +3 -18269
- package/bundle/awayjs-scene.umd.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/Scene.js +13 -13
- package/dist/lib/base/Timeline.js +1 -1
- package/dist/lib/controllers/ControllerBase.js +2 -2
- package/dist/lib/controllers/FirstPersonController.js +6 -6
- package/dist/lib/controllers/HoverController.js +10 -10
- package/dist/lib/controllers/LookAtController.js +2 -2
- package/dist/lib/display/Billboard.js +9 -9
- package/dist/lib/display/Camera.js +2 -2
- package/dist/lib/display/DisplayObject.js +46 -46
- package/dist/lib/display/DisplayObjectContainer.js +3 -3
- package/dist/lib/display/LineSegment.js +4 -4
- package/dist/lib/display/LoaderContainer.js +2 -2
- package/dist/lib/display/MorphSprite.js +1 -1
- package/dist/lib/display/MovieClip.d.ts.map +1 -1
- package/dist/lib/display/MovieClip.js +16 -16
- package/dist/lib/display/SimpleButton.js +8 -8
- package/dist/lib/display/Skybox.js +5 -5
- package/dist/lib/display/Sprite.js +2 -2
- package/dist/lib/display/TextField.js +37 -37
- package/dist/lib/elements/SkyboxElements.js +1 -1
- package/dist/lib/events/CameraEvent.js +1 -1
- package/dist/lib/events/KeyboardEvent.js +2 -2
- package/dist/lib/events/MouseEvent.js +3 -3
- package/dist/lib/events/ResizeEvent.js +2 -2
- package/dist/lib/image/SceneImage2D.js +3 -3
- package/dist/lib/managers/MouseManager.js +11 -12
- package/dist/lib/prefabs/PrimitiveCapsulePrefab.js +5 -5
- package/dist/lib/prefabs/PrimitiveConePrefab.js +1 -1
- package/dist/lib/prefabs/PrimitiveCubePrefab.js +7 -7
- package/dist/lib/prefabs/PrimitiveCylinderPrefab.js +8 -8
- package/dist/lib/prefabs/PrimitivePlanePrefab.js +6 -6
- package/dist/lib/prefabs/PrimitivePolygonPrefab.js +3 -3
- package/dist/lib/prefabs/PrimitivePrefabBase.js +5 -5
- package/dist/lib/prefabs/PrimitiveSpherePrefab.js +4 -4
- package/dist/lib/prefabs/PrimitiveTorusPrefab.js +5 -5
- package/dist/lib/text/BitmapFontTable.js +7 -7
- package/dist/lib/text/Font.js +3 -3
- package/dist/lib/text/TesselatedFontTable.js +16 -10
- package/dist/lib/text/TextFormat.js +18 -18
- package/dist/lib/text/TextShape.js +3 -3
- package/dist/lib/tools/Merge.js +3 -3
- package/index.ts +1 -1
- package/lib/display/MovieClip.ts +2 -2
- package/package.json +11 -11
- package/rollup.config.js +30 -29
- package/bundle/awayjs-scene.umd.min.js.map +0 -1
- package/bundle/awayjs-scene.umd.min.js.map.map +0 -1
|
@@ -132,7 +132,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
132
132
|
get: function () {
|
|
133
133
|
return this._updateID;
|
|
134
134
|
},
|
|
135
|
-
enumerable:
|
|
135
|
+
enumerable: false,
|
|
136
136
|
configurable: true
|
|
137
137
|
});
|
|
138
138
|
/**
|
|
@@ -153,7 +153,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
153
153
|
}
|
|
154
154
|
this._align = value;
|
|
155
155
|
},
|
|
156
|
-
enumerable:
|
|
156
|
+
enumerable: false,
|
|
157
157
|
configurable: true
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(TextFormat.prototype, "blockIndent", {
|
|
@@ -166,7 +166,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
166
166
|
}
|
|
167
167
|
this._blockIndent = value;
|
|
168
168
|
},
|
|
169
|
-
enumerable:
|
|
169
|
+
enumerable: false,
|
|
170
170
|
configurable: true
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(TextFormat.prototype, "leftMargin", {
|
|
@@ -179,7 +179,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
179
179
|
}
|
|
180
180
|
this._leftMargin = value;
|
|
181
181
|
},
|
|
182
|
-
enumerable:
|
|
182
|
+
enumerable: false,
|
|
183
183
|
configurable: true
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(TextFormat.prototype, "rightMargin", {
|
|
@@ -192,7 +192,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
192
192
|
}
|
|
193
193
|
this._rightMargin = value;
|
|
194
194
|
},
|
|
195
|
-
enumerable:
|
|
195
|
+
enumerable: false,
|
|
196
196
|
configurable: true
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(TextFormat.prototype, "indent", {
|
|
@@ -205,7 +205,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
205
205
|
}
|
|
206
206
|
this._indent = value;
|
|
207
207
|
},
|
|
208
|
-
enumerable:
|
|
208
|
+
enumerable: false,
|
|
209
209
|
configurable: true
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(TextFormat.prototype, "color", {
|
|
@@ -218,7 +218,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
218
218
|
}
|
|
219
219
|
this._color = value;
|
|
220
220
|
},
|
|
221
|
-
enumerable:
|
|
221
|
+
enumerable: false,
|
|
222
222
|
configurable: true
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(TextFormat.prototype, "kerning", {
|
|
@@ -231,7 +231,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
231
231
|
}
|
|
232
232
|
this._kerning = value;
|
|
233
233
|
},
|
|
234
|
-
enumerable:
|
|
234
|
+
enumerable: false,
|
|
235
235
|
configurable: true
|
|
236
236
|
});
|
|
237
237
|
Object.defineProperty(TextFormat.prototype, "leading", {
|
|
@@ -244,7 +244,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
244
244
|
}
|
|
245
245
|
this._leading = value;
|
|
246
246
|
},
|
|
247
|
-
enumerable:
|
|
247
|
+
enumerable: false,
|
|
248
248
|
configurable: true
|
|
249
249
|
});
|
|
250
250
|
Object.defineProperty(TextFormat.prototype, "letterSpacing", {
|
|
@@ -257,7 +257,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
257
257
|
}
|
|
258
258
|
this._letterSpacing = value;
|
|
259
259
|
},
|
|
260
|
-
enumerable:
|
|
260
|
+
enumerable: false,
|
|
261
261
|
configurable: true
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(TextFormat.prototype, "size", {
|
|
@@ -270,7 +270,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
270
270
|
}
|
|
271
271
|
this._size = value;
|
|
272
272
|
},
|
|
273
|
-
enumerable:
|
|
273
|
+
enumerable: false,
|
|
274
274
|
configurable: true
|
|
275
275
|
});
|
|
276
276
|
Object.defineProperty(TextFormat.prototype, "bold", {
|
|
@@ -284,7 +284,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
284
284
|
this._bold = value;
|
|
285
285
|
this._fontTableDirty = true;
|
|
286
286
|
},
|
|
287
|
-
enumerable:
|
|
287
|
+
enumerable: false,
|
|
288
288
|
configurable: true
|
|
289
289
|
});
|
|
290
290
|
Object.defineProperty(TextFormat.prototype, "italic", {
|
|
@@ -298,7 +298,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
298
298
|
this._italic = value;
|
|
299
299
|
this._fontTableDirty = true;
|
|
300
300
|
},
|
|
301
|
-
enumerable:
|
|
301
|
+
enumerable: false,
|
|
302
302
|
configurable: true
|
|
303
303
|
});
|
|
304
304
|
Object.defineProperty(TextFormat.prototype, "underline", {
|
|
@@ -311,7 +311,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
311
311
|
}
|
|
312
312
|
this._underline = value;
|
|
313
313
|
},
|
|
314
|
-
enumerable:
|
|
314
|
+
enumerable: false,
|
|
315
315
|
configurable: true
|
|
316
316
|
});
|
|
317
317
|
Object.defineProperty(TextFormat.prototype, "font_table", {
|
|
@@ -327,7 +327,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
327
327
|
this._font_table = value;
|
|
328
328
|
this._fontTableDirty = false;
|
|
329
329
|
},
|
|
330
|
-
enumerable:
|
|
330
|
+
enumerable: false,
|
|
331
331
|
configurable: true
|
|
332
332
|
});
|
|
333
333
|
Object.defineProperty(TextFormat.prototype, "font_name", {
|
|
@@ -351,7 +351,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
351
351
|
this._fontTableDirty = true;
|
|
352
352
|
this._updateID++;
|
|
353
353
|
},
|
|
354
|
-
enumerable:
|
|
354
|
+
enumerable: false,
|
|
355
355
|
configurable: true
|
|
356
356
|
});
|
|
357
357
|
TextFormat.prototype.update_font_table = function () {
|
|
@@ -383,7 +383,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
383
383
|
this._fontTableDirty = true;
|
|
384
384
|
this._updateID++;
|
|
385
385
|
},
|
|
386
|
-
enumerable:
|
|
386
|
+
enumerable: false,
|
|
387
387
|
configurable: true
|
|
388
388
|
});
|
|
389
389
|
TextFormat.prototype.clone = function () {
|
|
@@ -431,7 +431,7 @@ var TextFormat = /** @class */ (function (_super) {
|
|
|
431
431
|
get: function () {
|
|
432
432
|
return TextFormat.assetType;
|
|
433
433
|
},
|
|
434
|
-
enumerable:
|
|
434
|
+
enumerable: false,
|
|
435
435
|
configurable: true
|
|
436
436
|
});
|
|
437
437
|
TextFormat.assetType = '[asset TextFormat]';
|
|
@@ -40,14 +40,14 @@ var TextShape = /** @class */ (function () {
|
|
|
40
40
|
verts.length = index;
|
|
41
41
|
this._length = val;
|
|
42
42
|
},
|
|
43
|
-
enumerable:
|
|
43
|
+
enumerable: false,
|
|
44
44
|
configurable: true
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(TextShape.prototype, "hasUV", {
|
|
47
47
|
get: function () {
|
|
48
48
|
return this.uvs.length > 0;
|
|
49
49
|
},
|
|
50
|
-
enumerable:
|
|
50
|
+
enumerable: false,
|
|
51
51
|
configurable: true
|
|
52
52
|
});
|
|
53
53
|
TextShape.prototype.addChunk = function (buffer, uvs) {
|
|
@@ -67,7 +67,7 @@ var TextShape = /** @class */ (function () {
|
|
|
67
67
|
get: function () {
|
|
68
68
|
return this.verts[this.verts.length - 1];
|
|
69
69
|
},
|
|
70
|
-
enumerable:
|
|
70
|
+
enumerable: false,
|
|
71
71
|
configurable: true
|
|
72
72
|
});
|
|
73
73
|
return TextShape;
|
package/dist/lib/tools/Merge.js
CHANGED
|
@@ -36,7 +36,7 @@ var Merge = /** @class */ (function () {
|
|
|
36
36
|
set: function (b) {
|
|
37
37
|
this._disposeSources = b;
|
|
38
38
|
},
|
|
39
|
-
enumerable:
|
|
39
|
+
enumerable: false,
|
|
40
40
|
configurable: true
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(Merge.prototype, "keepMaterial", {
|
|
@@ -49,7 +49,7 @@ var Merge = /** @class */ (function () {
|
|
|
49
49
|
set: function (b) {
|
|
50
50
|
this._keepMaterial = b;
|
|
51
51
|
},
|
|
52
|
-
enumerable:
|
|
52
|
+
enumerable: false,
|
|
53
53
|
configurable: true
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(Merge.prototype, "objectSpace", {
|
|
@@ -62,7 +62,7 @@ var Merge = /** @class */ (function () {
|
|
|
62
62
|
set: function (b) {
|
|
63
63
|
this._objectSpace = b;
|
|
64
64
|
},
|
|
65
|
-
enumerable:
|
|
65
|
+
enumerable: false,
|
|
66
66
|
configurable: true
|
|
67
67
|
});
|
|
68
68
|
/**
|
package/index.ts
CHANGED
package/lib/display/MovieClip.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WaveAudio, IAudioChannel, EventBase } from '@awayjs/core';
|
|
1
|
+
import { WaveAudio, IAudioChannel, EventBase, BaseAudioChannel } from '@awayjs/core';
|
|
2
2
|
import { PartitionBase, EntityNode } from '@awayjs/view';
|
|
3
3
|
import { IMovieClipAdapter } from '../adapters/IMovieClipAdapter';
|
|
4
4
|
import { Timeline } from '../base/Timeline';
|
|
@@ -8,7 +8,7 @@ import { DisplayObject } from './DisplayObject';
|
|
|
8
8
|
import { Sprite } from './Sprite';
|
|
9
9
|
import { DisplayObjectContainer } from './DisplayObjectContainer';
|
|
10
10
|
import { MouseButtons } from '../base/MouseButtons';
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
interface IScene {
|
|
13
13
|
offset: number;
|
|
14
14
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awayjs/scene",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.259",
|
|
4
4
|
"description": "AwayJS scene classes",
|
|
5
5
|
"main": "bundle/awayjs-scene.umd.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"rimraf": "rimraf",
|
|
16
16
|
"rollup": "rollup -c",
|
|
17
|
-
"uglifyjs": "uglifyjs ./bundle/awayjs-scene.umd.js -o ./bundle/awayjs-scene.umd.min.js --in-source-map ./bundle/awayjs-scene.umd.js.map --source-map --output ./bundle/awayjs-scene.umd.min.js.map --mangle",
|
|
18
17
|
"tsc": "tsc",
|
|
19
18
|
"tsc:build": "npm run tsc || exit 0",
|
|
20
19
|
"clean": "npm cache clean && npm run rimraf -- node_modules dist bundle",
|
|
@@ -25,7 +24,7 @@
|
|
|
25
24
|
"gitdiff": "git diff --quiet && git diff --cached --quiet",
|
|
26
25
|
"preversion": "npm run gitdiff && npm run eslint:commit || exit 0",
|
|
27
26
|
"prebuild": "npm run clean:dist",
|
|
28
|
-
"build": "npm run tsc:build && npm run rollup
|
|
27
|
+
"build": "npm run tsc:build && npm run rollup",
|
|
29
28
|
"copyVersionToIndex": "node ./copyVersionToIndex && git add ./index.ts && git commit -m \"update version number in index.ts\"",
|
|
30
29
|
"version": "npm run copyVersionToIndex && npm run build",
|
|
31
30
|
"postversion": "git push && git push --tags && npm publish"
|
|
@@ -51,6 +50,9 @@
|
|
|
51
50
|
"@awayjs/view": "^0.6.0",
|
|
52
51
|
"tslib": "^2.3.0"
|
|
53
52
|
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"node-html-parser": "^1.4.5"
|
|
55
|
+
},
|
|
54
56
|
"devDependencies": {
|
|
55
57
|
"@awayjs/core": "^0.9.0",
|
|
56
58
|
"@awayjs/graphics": "^0.5.0",
|
|
@@ -58,17 +60,15 @@
|
|
|
58
60
|
"@awayjs/renderer": "^0.11.0",
|
|
59
61
|
"@awayjs/stage": "^0.11.0",
|
|
60
62
|
"@awayjs/view": "^0.6.0",
|
|
63
|
+
"@rollup/plugin-commonjs": "^18.0.0",
|
|
64
|
+
"@rollup/plugin-terser": "^0.4.3",
|
|
65
|
+
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
61
66
|
"@typescript-eslint/eslint-plugin": "^4.4.1",
|
|
62
67
|
"@typescript-eslint/parser": "^4.4.1",
|
|
63
68
|
"eslint": "^7.11.0",
|
|
64
69
|
"rimraf": "^2.5.2",
|
|
65
|
-
"rollup": "^
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"typescript": "^3.7.3",
|
|
69
|
-
"uglify-js": "^3.0.15"
|
|
70
|
-
},
|
|
71
|
-
"dependencies": {
|
|
72
|
-
"node-html-parser": "^1.4.5"
|
|
70
|
+
"rollup": "^2.79.1",
|
|
71
|
+
"tslib": "^2.3.0",
|
|
72
|
+
"typescript": "^3.7.3"
|
|
73
73
|
}
|
|
74
74
|
}
|
package/rollup.config.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
import nodeResolve from '@rollup/plugin-node-resolve';
|
|
2
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
3
|
+
import terser from '@rollup/plugin-terser';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
5
|
+
export default {
|
|
6
|
+
input: './dist/index.js',
|
|
7
|
+
output: {
|
|
8
|
+
name: 'AwayjsScene',
|
|
9
|
+
globals: {
|
|
10
|
+
'@awayjs/core': 'AwayjsCore',
|
|
11
|
+
'@awayjs/stage': 'AwayjsStage',
|
|
12
|
+
'@awayjs/view': 'AwayjsView',
|
|
13
|
+
'@awayjs/renderer': 'AwayjsRenderer',
|
|
14
|
+
'@awayjs/graphics': 'AwayjsGraphics',
|
|
15
|
+
'@awayjs/materials': 'AwayjsMaterials'
|
|
16
|
+
},
|
|
17
|
+
sourcemap: true,
|
|
18
|
+
format: 'umd',
|
|
19
|
+
file: './bundle/awayjs-scene.umd.js'
|
|
20
|
+
},
|
|
21
|
+
external: [
|
|
22
|
+
'@awayjs/core',
|
|
23
|
+
'@awayjs/stage',
|
|
24
|
+
'@awayjs/view',
|
|
25
|
+
'@awayjs/renderer',
|
|
26
|
+
'@awayjs/graphics',
|
|
27
|
+
'@awayjs/materials'
|
|
26
28
|
],
|
|
27
29
|
plugins: [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}) ]
|
|
30
|
+
nodeResolve(),
|
|
31
|
+
commonjs(),
|
|
32
|
+
terser(),
|
|
33
|
+
]
|
|
33
34
|
};
|