@awayjs/scene 0.13.258 → 0.13.260
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 -18334
- package/bundle/awayjs-scene.umd.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/Scene.js +14 -14
- package/dist/lib/adapters/IDisplayObjectAdapter.js +1 -0
- package/dist/lib/adapters/IFilter.js +1 -0
- package/dist/lib/adapters/IMovieClipAdapter.js +1 -0
- package/dist/lib/adapters/ITextfieldAdapter.js +1 -0
- package/dist/lib/base/IBitmapDrawable.js +1 -0
- package/dist/lib/base/IFrameLabel.js +1 -0
- package/dist/lib/base/IFrameScript.js +1 -0
- package/dist/lib/base/MouseButtons.js +1 -0
- package/dist/lib/base/Timeline.d.ts +1 -1
- package/dist/lib/base/Timeline.d.ts.map +1 -1
- package/dist/lib/base/Timeline.js +17 -17
- package/dist/lib/base/TimelineActionType.js +1 -0
- 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 +11 -10
- 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 +18 -18
- 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 +45 -45
- 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/factories/ISceneGraphFactory.js +1 -0
- package/dist/lib/image/SceneImage2D.js +3 -3
- package/dist/lib/managers/DeviceFontManager.js +6 -6
- package/dist/lib/managers/IInputRecorder.js +1 -0
- 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 +4 -4
- package/dist/lib/text/IFontTable.js +1 -0
- package/dist/lib/text/TesselatedFontTable.js +20 -11
- 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/dist/lib/utils/Cast.js +3 -3
- package/index.ts +1 -1
- package/lib/display/MovieClip.ts +2 -2
- package/package.json +10 -10
- package/rollup.config.js +30 -29
- package/bundle/awayjs-scene.umd.min.js +0 -1
- package/bundle/awayjs-scene.umd.min.js.map +0 -1
|
@@ -87,7 +87,7 @@ var MouseManager = /** @class */ (function () {
|
|
|
87
87
|
this._showCursor = value;
|
|
88
88
|
this.cursorType = this._cursorType;
|
|
89
89
|
},
|
|
90
|
-
enumerable:
|
|
90
|
+
enumerable: false,
|
|
91
91
|
configurable: true
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(MouseManager.prototype, "cursorType", {
|
|
@@ -98,7 +98,7 @@ var MouseManager = /** @class */ (function () {
|
|
|
98
98
|
this._cursorType = t;
|
|
99
99
|
this._stage.container.style.cursor = this._showCursor ? t : 'none';
|
|
100
100
|
},
|
|
101
|
-
enumerable:
|
|
101
|
+
enumerable: false,
|
|
102
102
|
configurable: true
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(MouseManager.prototype, "eventBubbling", {
|
|
@@ -108,7 +108,7 @@ var MouseManager = /** @class */ (function () {
|
|
|
108
108
|
set: function (value) {
|
|
109
109
|
this._eventBubbling = value;
|
|
110
110
|
},
|
|
111
|
-
enumerable:
|
|
111
|
+
enumerable: false,
|
|
112
112
|
configurable: true
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(MouseManager.prototype, "useSoftkeyboard", {
|
|
@@ -129,7 +129,7 @@ var MouseManager = /** @class */ (function () {
|
|
|
129
129
|
window.removeEventListener('keyup', this.onKeyUp);
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
|
-
enumerable:
|
|
132
|
+
enumerable: false,
|
|
133
133
|
configurable: true
|
|
134
134
|
});
|
|
135
135
|
MouseManager.prototype.dispose = function () {
|
|
@@ -195,14 +195,13 @@ var MouseManager = /** @class */ (function () {
|
|
|
195
195
|
return this._focusNode;
|
|
196
196
|
};
|
|
197
197
|
MouseManager.prototype.dispatchEvent = function (event, dispatcher) {
|
|
198
|
-
var _a;
|
|
199
198
|
if (!this._eventBubbling) {
|
|
200
199
|
if (dispatcher) {
|
|
201
200
|
event._dispatchEvent(dispatcher, dispatcher.container);
|
|
202
201
|
}
|
|
203
202
|
return;
|
|
204
203
|
}
|
|
205
|
-
var target =
|
|
204
|
+
var target = dispatcher === null || dispatcher === void 0 ? void 0 : dispatcher.container;
|
|
206
205
|
while (dispatcher) {
|
|
207
206
|
if (event.commonAncestor && dispatcher == event.commonAncestor) {
|
|
208
207
|
return;
|
|
@@ -229,8 +228,8 @@ var MouseManager = /** @class */ (function () {
|
|
|
229
228
|
this.dispatchEvent(event, event.rootNode);
|
|
230
229
|
};
|
|
231
230
|
MouseManager.prototype.fireMouseEvents = function (forcePicker) {
|
|
231
|
+
var _a, _b;
|
|
232
232
|
if (forcePicker === void 0) { forcePicker = null; }
|
|
233
|
-
var _a, _b, _c, _d;
|
|
234
233
|
var collision;
|
|
235
234
|
if (forcePicker) {
|
|
236
235
|
collision = forcePicker.getViewCollision(this._stage.screenX, this._stage.screenY);
|
|
@@ -248,7 +247,7 @@ var MouseManager = /** @class */ (function () {
|
|
|
248
247
|
var len = this._queuedEvents.length;
|
|
249
248
|
for (var i = 0; i < len; ++i) {
|
|
250
249
|
event = this._queuedEvents[i];
|
|
251
|
-
dispatcher =
|
|
250
|
+
dispatcher = collision === null || collision === void 0 ? void 0 : collision.rootNode;
|
|
252
251
|
this.setUpEvent(event, collision);
|
|
253
252
|
if (event.type == AwayMouseEvent.MOUSE_DOWN) {
|
|
254
253
|
this._mouseDragging = true;
|
|
@@ -268,7 +267,7 @@ var MouseManager = /** @class */ (function () {
|
|
|
268
267
|
else if (this._eventBubbling)
|
|
269
268
|
this._stage.dispatchEvent(event);
|
|
270
269
|
if (this._mouseDragCollision) {
|
|
271
|
-
this.setFocus((
|
|
270
|
+
this.setFocus((_a = this._mouseDragCollision) === null || _a === void 0 ? void 0 : _a.rootNode);
|
|
272
271
|
this.setupAndDispatchEvent(this._dragStart, event, this._mouseDragCollision);
|
|
273
272
|
}
|
|
274
273
|
}
|
|
@@ -345,8 +344,8 @@ var MouseManager = /** @class */ (function () {
|
|
|
345
344
|
this._queuedEvents.length = 0;
|
|
346
345
|
this._rollOut.commonAncestor = null;
|
|
347
346
|
this._rollOver.commonAncestor = null;
|
|
348
|
-
var collisionNode =
|
|
349
|
-
var prevCollisionNode = (
|
|
347
|
+
var collisionNode = collision === null || collision === void 0 ? void 0 : collision.rootNode;
|
|
348
|
+
var prevCollisionNode = (_b = this._prevCollision) === null || _b === void 0 ? void 0 : _b.rootNode;
|
|
350
349
|
if (collisionNode != prevCollisionNode) {
|
|
351
350
|
// If colliding object has changed, queue OVER and OUT events.
|
|
352
351
|
// If the mouse is dragged (mouse-down is hold), use DRAG_OVER and DRAG_OUT as well as MOUSE_OVER MOUSE_OUT
|
|
@@ -579,8 +578,8 @@ var MouseManager = /** @class */ (function () {
|
|
|
579
578
|
// Private.
|
|
580
579
|
// ---------------------------------------------------------------------
|
|
581
580
|
MouseManager.prototype.setUpEvent = function (event, collision, commonAncestor) {
|
|
582
|
-
if (commonAncestor === void 0) { commonAncestor = null; }
|
|
583
581
|
var _a, _b;
|
|
582
|
+
if (commonAncestor === void 0) { commonAncestor = null; }
|
|
584
583
|
event._iAllowedToImmediatlyPropagate = true;
|
|
585
584
|
event._iAllowedToPropagate = true;
|
|
586
585
|
// 2D properties.
|
|
@@ -43,7 +43,7 @@ var PrimitiveCapsulePrefab = /** @class */ (function (_super) {
|
|
|
43
43
|
this._radius = value;
|
|
44
44
|
this._pInvalidatePrimitive();
|
|
45
45
|
},
|
|
46
|
-
enumerable:
|
|
46
|
+
enumerable: false,
|
|
47
47
|
configurable: true
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(PrimitiveCapsulePrefab.prototype, "height", {
|
|
@@ -57,7 +57,7 @@ var PrimitiveCapsulePrefab = /** @class */ (function (_super) {
|
|
|
57
57
|
this._height = value;
|
|
58
58
|
this._pInvalidatePrimitive();
|
|
59
59
|
},
|
|
60
|
-
enumerable:
|
|
60
|
+
enumerable: false,
|
|
61
61
|
configurable: true
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(PrimitiveCapsulePrefab.prototype, "segmentsW", {
|
|
@@ -72,7 +72,7 @@ var PrimitiveCapsulePrefab = /** @class */ (function (_super) {
|
|
|
72
72
|
this._pInvalidatePrimitive();
|
|
73
73
|
this._pInvalidateUVs();
|
|
74
74
|
},
|
|
75
|
-
enumerable:
|
|
75
|
+
enumerable: false,
|
|
76
76
|
configurable: true
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(PrimitiveCapsulePrefab.prototype, "segmentsH", {
|
|
@@ -87,7 +87,7 @@ var PrimitiveCapsulePrefab = /** @class */ (function (_super) {
|
|
|
87
87
|
this._pInvalidatePrimitive();
|
|
88
88
|
this._pInvalidateUVs();
|
|
89
89
|
},
|
|
90
|
-
enumerable:
|
|
90
|
+
enumerable: false,
|
|
91
91
|
configurable: true
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(PrimitiveCapsulePrefab.prototype, "yUp", {
|
|
@@ -101,7 +101,7 @@ var PrimitiveCapsulePrefab = /** @class */ (function (_super) {
|
|
|
101
101
|
this._yUp = value;
|
|
102
102
|
this._pInvalidatePrimitive();
|
|
103
103
|
},
|
|
104
|
-
enumerable:
|
|
104
|
+
enumerable: false,
|
|
105
105
|
configurable: true
|
|
106
106
|
});
|
|
107
107
|
/**
|
|
@@ -48,7 +48,7 @@ var PrimitiveCubePrefab = /** @class */ (function (_super) {
|
|
|
48
48
|
this._width = value;
|
|
49
49
|
this._pInvalidatePrimitive();
|
|
50
50
|
},
|
|
51
|
-
enumerable:
|
|
51
|
+
enumerable: false,
|
|
52
52
|
configurable: true
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(PrimitiveCubePrefab.prototype, "height", {
|
|
@@ -62,7 +62,7 @@ var PrimitiveCubePrefab = /** @class */ (function (_super) {
|
|
|
62
62
|
this._height = value;
|
|
63
63
|
this._pInvalidatePrimitive();
|
|
64
64
|
},
|
|
65
|
-
enumerable:
|
|
65
|
+
enumerable: false,
|
|
66
66
|
configurable: true
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(PrimitiveCubePrefab.prototype, "depth", {
|
|
@@ -76,7 +76,7 @@ var PrimitiveCubePrefab = /** @class */ (function (_super) {
|
|
|
76
76
|
this._depth = value;
|
|
77
77
|
this._pInvalidatePrimitive();
|
|
78
78
|
},
|
|
79
|
-
enumerable:
|
|
79
|
+
enumerable: false,
|
|
80
80
|
configurable: true
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(PrimitiveCubePrefab.prototype, "tile6", {
|
|
@@ -95,7 +95,7 @@ var PrimitiveCubePrefab = /** @class */ (function (_super) {
|
|
|
95
95
|
this._tile6 = value;
|
|
96
96
|
this._pInvalidatePrimitive();
|
|
97
97
|
},
|
|
98
|
-
enumerable:
|
|
98
|
+
enumerable: false,
|
|
99
99
|
configurable: true
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(PrimitiveCubePrefab.prototype, "segmentsW", {
|
|
@@ -110,7 +110,7 @@ var PrimitiveCubePrefab = /** @class */ (function (_super) {
|
|
|
110
110
|
this._pInvalidatePrimitive();
|
|
111
111
|
this._pInvalidateUVs();
|
|
112
112
|
},
|
|
113
|
-
enumerable:
|
|
113
|
+
enumerable: false,
|
|
114
114
|
configurable: true
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(PrimitiveCubePrefab.prototype, "segmentsH", {
|
|
@@ -125,7 +125,7 @@ var PrimitiveCubePrefab = /** @class */ (function (_super) {
|
|
|
125
125
|
this._pInvalidatePrimitive();
|
|
126
126
|
this._pInvalidateUVs();
|
|
127
127
|
},
|
|
128
|
-
enumerable:
|
|
128
|
+
enumerable: false,
|
|
129
129
|
configurable: true
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(PrimitiveCubePrefab.prototype, "segmentsD", {
|
|
@@ -140,7 +140,7 @@ var PrimitiveCubePrefab = /** @class */ (function (_super) {
|
|
|
140
140
|
this._pInvalidatePrimitive();
|
|
141
141
|
this._pInvalidateUVs();
|
|
142
142
|
},
|
|
143
|
-
enumerable:
|
|
143
|
+
enumerable: false,
|
|
144
144
|
configurable: true
|
|
145
145
|
});
|
|
146
146
|
/**
|
|
@@ -53,7 +53,7 @@ var PrimitiveCylinderPrefab = /** @class */ (function (_super) {
|
|
|
53
53
|
this._topRadius = value;
|
|
54
54
|
this._pInvalidatePrimitive();
|
|
55
55
|
},
|
|
56
|
-
enumerable:
|
|
56
|
+
enumerable: false,
|
|
57
57
|
configurable: true
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(PrimitiveCylinderPrefab.prototype, "bottomRadius", {
|
|
@@ -67,7 +67,7 @@ var PrimitiveCylinderPrefab = /** @class */ (function (_super) {
|
|
|
67
67
|
this._pBottomRadius = value;
|
|
68
68
|
this._pInvalidatePrimitive();
|
|
69
69
|
},
|
|
70
|
-
enumerable:
|
|
70
|
+
enumerable: false,
|
|
71
71
|
configurable: true
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(PrimitiveCylinderPrefab.prototype, "height", {
|
|
@@ -81,7 +81,7 @@ var PrimitiveCylinderPrefab = /** @class */ (function (_super) {
|
|
|
81
81
|
this._height = value;
|
|
82
82
|
this._pInvalidatePrimitive();
|
|
83
83
|
},
|
|
84
|
-
enumerable:
|
|
84
|
+
enumerable: false,
|
|
85
85
|
configurable: true
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(PrimitiveCylinderPrefab.prototype, "segmentsW", {
|
|
@@ -94,7 +94,7 @@ var PrimitiveCylinderPrefab = /** @class */ (function (_super) {
|
|
|
94
94
|
set: function (value) {
|
|
95
95
|
this.setSegmentsW(value);
|
|
96
96
|
},
|
|
97
|
-
enumerable:
|
|
97
|
+
enumerable: false,
|
|
98
98
|
configurable: true
|
|
99
99
|
});
|
|
100
100
|
PrimitiveCylinderPrefab.prototype.setSegmentsW = function (value) {
|
|
@@ -112,7 +112,7 @@ var PrimitiveCylinderPrefab = /** @class */ (function (_super) {
|
|
|
112
112
|
set: function (value) {
|
|
113
113
|
this.setSegmentsH(value);
|
|
114
114
|
},
|
|
115
|
-
enumerable:
|
|
115
|
+
enumerable: false,
|
|
116
116
|
configurable: true
|
|
117
117
|
});
|
|
118
118
|
PrimitiveCylinderPrefab.prototype.setSegmentsH = function (value) {
|
|
@@ -131,7 +131,7 @@ var PrimitiveCylinderPrefab = /** @class */ (function (_super) {
|
|
|
131
131
|
this._topClosed = value;
|
|
132
132
|
this._pInvalidatePrimitive();
|
|
133
133
|
},
|
|
134
|
-
enumerable:
|
|
134
|
+
enumerable: false,
|
|
135
135
|
configurable: true
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(PrimitiveCylinderPrefab.prototype, "bottomClosed", {
|
|
@@ -145,7 +145,7 @@ var PrimitiveCylinderPrefab = /** @class */ (function (_super) {
|
|
|
145
145
|
this._bottomClosed = value;
|
|
146
146
|
this._pInvalidatePrimitive();
|
|
147
147
|
},
|
|
148
|
-
enumerable:
|
|
148
|
+
enumerable: false,
|
|
149
149
|
configurable: true
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(PrimitiveCylinderPrefab.prototype, "yUp", {
|
|
@@ -159,7 +159,7 @@ var PrimitiveCylinderPrefab = /** @class */ (function (_super) {
|
|
|
159
159
|
this._yUp = value;
|
|
160
160
|
this._pInvalidatePrimitive();
|
|
161
161
|
},
|
|
162
|
-
enumerable:
|
|
162
|
+
enumerable: false,
|
|
163
163
|
configurable: true
|
|
164
164
|
});
|
|
165
165
|
/**
|
|
@@ -45,7 +45,7 @@ var PrimitivePlanePrefab = /** @class */ (function (_super) {
|
|
|
45
45
|
this._pInvalidatePrimitive();
|
|
46
46
|
this._pInvalidateUVs();
|
|
47
47
|
},
|
|
48
|
-
enumerable:
|
|
48
|
+
enumerable: false,
|
|
49
49
|
configurable: true
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(PrimitivePlanePrefab.prototype, "segmentsH", {
|
|
@@ -61,7 +61,7 @@ var PrimitivePlanePrefab = /** @class */ (function (_super) {
|
|
|
61
61
|
this._pInvalidatePrimitive();
|
|
62
62
|
this._pInvalidateUVs();
|
|
63
63
|
},
|
|
64
|
-
enumerable:
|
|
64
|
+
enumerable: false,
|
|
65
65
|
configurable: true
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(PrimitivePlanePrefab.prototype, "yUp", {
|
|
@@ -76,7 +76,7 @@ var PrimitivePlanePrefab = /** @class */ (function (_super) {
|
|
|
76
76
|
this._yUp = value;
|
|
77
77
|
this._pInvalidatePrimitive();
|
|
78
78
|
},
|
|
79
|
-
enumerable:
|
|
79
|
+
enumerable: false,
|
|
80
80
|
configurable: true
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(PrimitivePlanePrefab.prototype, "doubleSided", {
|
|
@@ -92,7 +92,7 @@ var PrimitivePlanePrefab = /** @class */ (function (_super) {
|
|
|
92
92
|
this._doubleSided = value;
|
|
93
93
|
this._pInvalidatePrimitive();
|
|
94
94
|
},
|
|
95
|
-
enumerable:
|
|
95
|
+
enumerable: false,
|
|
96
96
|
configurable: true
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(PrimitivePlanePrefab.prototype, "width", {
|
|
@@ -106,7 +106,7 @@ var PrimitivePlanePrefab = /** @class */ (function (_super) {
|
|
|
106
106
|
this._width = value;
|
|
107
107
|
this._pInvalidatePrimitive();
|
|
108
108
|
},
|
|
109
|
-
enumerable:
|
|
109
|
+
enumerable: false,
|
|
110
110
|
configurable: true
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(PrimitivePlanePrefab.prototype, "height", {
|
|
@@ -120,7 +120,7 @@ var PrimitivePlanePrefab = /** @class */ (function (_super) {
|
|
|
120
120
|
this._height = value;
|
|
121
121
|
this._pInvalidatePrimitive();
|
|
122
122
|
},
|
|
123
|
-
enumerable:
|
|
123
|
+
enumerable: false,
|
|
124
124
|
configurable: true
|
|
125
125
|
});
|
|
126
126
|
/**
|
|
@@ -30,7 +30,7 @@ var PrimitivePolygonPrefab = /** @class */ (function (_super) {
|
|
|
30
30
|
this._pBottomRadius = value;
|
|
31
31
|
this._pInvalidatePrimitive();
|
|
32
32
|
},
|
|
33
|
-
enumerable:
|
|
33
|
+
enumerable: false,
|
|
34
34
|
configurable: true
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(PrimitivePolygonPrefab.prototype, "sides", {
|
|
@@ -43,7 +43,7 @@ var PrimitivePolygonPrefab = /** @class */ (function (_super) {
|
|
|
43
43
|
set: function (value) {
|
|
44
44
|
this.setSegmentsW(value);
|
|
45
45
|
},
|
|
46
|
-
enumerable:
|
|
46
|
+
enumerable: false,
|
|
47
47
|
configurable: true
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(PrimitivePolygonPrefab.prototype, "subdivisions", {
|
|
@@ -56,7 +56,7 @@ var PrimitivePolygonPrefab = /** @class */ (function (_super) {
|
|
|
56
56
|
set: function (value) {
|
|
57
57
|
this.setSegmentsH(value);
|
|
58
58
|
},
|
|
59
|
-
enumerable:
|
|
59
|
+
enumerable: false,
|
|
60
60
|
configurable: true
|
|
61
61
|
});
|
|
62
62
|
return PrimitivePolygonPrefab;
|
|
@@ -43,7 +43,7 @@ var PrimitivePrefabBase = /** @class */ (function (_super) {
|
|
|
43
43
|
get: function () {
|
|
44
44
|
return PrimitivePrefabBase.assetType;
|
|
45
45
|
},
|
|
46
|
-
enumerable:
|
|
46
|
+
enumerable: false,
|
|
47
47
|
configurable: true
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(PrimitivePrefabBase.prototype, "elementsType", {
|
|
@@ -53,7 +53,7 @@ var PrimitivePrefabBase = /** @class */ (function (_super) {
|
|
|
53
53
|
get: function () {
|
|
54
54
|
return this._elementsType;
|
|
55
55
|
},
|
|
56
|
-
enumerable:
|
|
56
|
+
enumerable: false,
|
|
57
57
|
configurable: true
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(PrimitivePrefabBase.prototype, "material", {
|
|
@@ -71,7 +71,7 @@ var PrimitivePrefabBase = /** @class */ (function (_super) {
|
|
|
71
71
|
for (var i = 0; i < len; i++)
|
|
72
72
|
this._pObjects[i].material = this._material;
|
|
73
73
|
},
|
|
74
|
-
enumerable:
|
|
74
|
+
enumerable: false,
|
|
75
75
|
configurable: true
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(PrimitivePrefabBase.prototype, "scaleU", {
|
|
@@ -84,7 +84,7 @@ var PrimitivePrefabBase = /** @class */ (function (_super) {
|
|
|
84
84
|
this._scaleU = value;
|
|
85
85
|
this._pInvalidateUVs();
|
|
86
86
|
},
|
|
87
|
-
enumerable:
|
|
87
|
+
enumerable: false,
|
|
88
88
|
configurable: true
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(PrimitivePrefabBase.prototype, "scaleV", {
|
|
@@ -97,7 +97,7 @@ var PrimitivePrefabBase = /** @class */ (function (_super) {
|
|
|
97
97
|
this._scaleV = value;
|
|
98
98
|
this._pInvalidateUVs();
|
|
99
99
|
},
|
|
100
|
-
enumerable:
|
|
100
|
+
enumerable: false,
|
|
101
101
|
configurable: true
|
|
102
102
|
});
|
|
103
103
|
/**
|
|
@@ -39,7 +39,7 @@ var PrimitiveSpherePrefab = /** @class */ (function (_super) {
|
|
|
39
39
|
this._radius = value;
|
|
40
40
|
this._pInvalidatePrimitive();
|
|
41
41
|
},
|
|
42
|
-
enumerable:
|
|
42
|
+
enumerable: false,
|
|
43
43
|
configurable: true
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(PrimitiveSpherePrefab.prototype, "segmentsW", {
|
|
@@ -54,7 +54,7 @@ var PrimitiveSpherePrefab = /** @class */ (function (_super) {
|
|
|
54
54
|
this._pInvalidatePrimitive();
|
|
55
55
|
this._pInvalidateUVs();
|
|
56
56
|
},
|
|
57
|
-
enumerable:
|
|
57
|
+
enumerable: false,
|
|
58
58
|
configurable: true
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(PrimitiveSpherePrefab.prototype, "segmentsH", {
|
|
@@ -69,7 +69,7 @@ var PrimitiveSpherePrefab = /** @class */ (function (_super) {
|
|
|
69
69
|
this._pInvalidatePrimitive();
|
|
70
70
|
this._pInvalidateUVs();
|
|
71
71
|
},
|
|
72
|
-
enumerable:
|
|
72
|
+
enumerable: false,
|
|
73
73
|
configurable: true
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(PrimitiveSpherePrefab.prototype, "yUp", {
|
|
@@ -83,7 +83,7 @@ var PrimitiveSpherePrefab = /** @class */ (function (_super) {
|
|
|
83
83
|
this._yUp = value;
|
|
84
84
|
this._pInvalidatePrimitive();
|
|
85
85
|
},
|
|
86
|
-
enumerable:
|
|
86
|
+
enumerable: false,
|
|
87
87
|
configurable: true
|
|
88
88
|
});
|
|
89
89
|
/**
|
|
@@ -42,7 +42,7 @@ var PrimitiveTorusPrefab = /** @class */ (function (_super) {
|
|
|
42
42
|
this._radius = value;
|
|
43
43
|
this._pInvalidatePrimitive();
|
|
44
44
|
},
|
|
45
|
-
enumerable:
|
|
45
|
+
enumerable: false,
|
|
46
46
|
configurable: true
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(PrimitiveTorusPrefab.prototype, "tubeRadius", {
|
|
@@ -56,7 +56,7 @@ var PrimitiveTorusPrefab = /** @class */ (function (_super) {
|
|
|
56
56
|
this._tubeRadius = value;
|
|
57
57
|
this._pInvalidatePrimitive();
|
|
58
58
|
},
|
|
59
|
-
enumerable:
|
|
59
|
+
enumerable: false,
|
|
60
60
|
configurable: true
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(PrimitiveTorusPrefab.prototype, "segmentsR", {
|
|
@@ -71,7 +71,7 @@ var PrimitiveTorusPrefab = /** @class */ (function (_super) {
|
|
|
71
71
|
this._pInvalidatePrimitive();
|
|
72
72
|
this._pInvalidateUVs();
|
|
73
73
|
},
|
|
74
|
-
enumerable:
|
|
74
|
+
enumerable: false,
|
|
75
75
|
configurable: true
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(PrimitiveTorusPrefab.prototype, "segmentsT", {
|
|
@@ -86,7 +86,7 @@ var PrimitiveTorusPrefab = /** @class */ (function (_super) {
|
|
|
86
86
|
this._pInvalidatePrimitive();
|
|
87
87
|
this._pInvalidateUVs();
|
|
88
88
|
},
|
|
89
|
-
enumerable:
|
|
89
|
+
enumerable: false,
|
|
90
90
|
configurable: true
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(PrimitiveTorusPrefab.prototype, "yUp", {
|
|
@@ -100,7 +100,7 @@ var PrimitiveTorusPrefab = /** @class */ (function (_super) {
|
|
|
100
100
|
this._yUp = value;
|
|
101
101
|
this._pInvalidatePrimitive();
|
|
102
102
|
},
|
|
103
|
-
enumerable:
|
|
103
|
+
enumerable: false,
|
|
104
104
|
configurable: true
|
|
105
105
|
});
|
|
106
106
|
/**
|
|
@@ -37,7 +37,7 @@ var BitmapFontTable = /** @class */ (function (_super) {
|
|
|
37
37
|
get: function () {
|
|
38
38
|
return BitmapFontTable.assetType;
|
|
39
39
|
},
|
|
40
|
-
enumerable:
|
|
40
|
+
enumerable: false,
|
|
41
41
|
configurable: true
|
|
42
42
|
});
|
|
43
43
|
BitmapFontTable.prototype.initFontSize = function (font_size) {
|
|
@@ -82,7 +82,7 @@ var BitmapFontTable = /** @class */ (function (_super) {
|
|
|
82
82
|
set: function (value) {
|
|
83
83
|
this._texture_width = value;
|
|
84
84
|
},
|
|
85
|
-
enumerable:
|
|
85
|
+
enumerable: false,
|
|
86
86
|
configurable: true
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(BitmapFontTable.prototype, "texture_height", {
|
|
@@ -92,7 +92,7 @@ var BitmapFontTable = /** @class */ (function (_super) {
|
|
|
92
92
|
set: function (value) {
|
|
93
93
|
this._texture_height = value;
|
|
94
94
|
},
|
|
95
|
-
enumerable:
|
|
95
|
+
enumerable: false,
|
|
96
96
|
configurable: true
|
|
97
97
|
});
|
|
98
98
|
BitmapFontTable.prototype.hasChar = function (char_code) {
|
|
@@ -135,7 +135,7 @@ var BitmapFontTable = /** @class */ (function (_super) {
|
|
|
135
135
|
set: function (value) {
|
|
136
136
|
this._ascent = value;
|
|
137
137
|
},
|
|
138
|
-
enumerable:
|
|
138
|
+
enumerable: false,
|
|
139
139
|
configurable: true
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(BitmapFontTable.prototype, "descent", {
|
|
@@ -145,7 +145,7 @@ var BitmapFontTable = /** @class */ (function (_super) {
|
|
|
145
145
|
set: function (value) {
|
|
146
146
|
this._descent = value;
|
|
147
147
|
},
|
|
148
|
-
enumerable:
|
|
148
|
+
enumerable: false,
|
|
149
149
|
configurable: true
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(BitmapFontTable.prototype, "offset_x", {
|
|
@@ -155,7 +155,7 @@ var BitmapFontTable = /** @class */ (function (_super) {
|
|
|
155
155
|
set: function (value) {
|
|
156
156
|
this._offset_x = value;
|
|
157
157
|
},
|
|
158
|
-
enumerable:
|
|
158
|
+
enumerable: false,
|
|
159
159
|
configurable: true
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(BitmapFontTable.prototype, "offset_y", {
|
|
@@ -165,7 +165,7 @@ var BitmapFontTable = /** @class */ (function (_super) {
|
|
|
165
165
|
set: function (value) {
|
|
166
166
|
this._offset_y = value;
|
|
167
167
|
},
|
|
168
|
-
enumerable:
|
|
168
|
+
enumerable: false,
|
|
169
169
|
configurable: true
|
|
170
170
|
});
|
|
171
171
|
BitmapFontTable.prototype.get_font_chars = function () {
|
package/dist/lib/text/Font.js
CHANGED
|
@@ -27,7 +27,7 @@ var Font = /** @class */ (function (_super) {
|
|
|
27
27
|
}
|
|
28
28
|
return this._emptyFontTable;
|
|
29
29
|
},
|
|
30
|
-
enumerable:
|
|
30
|
+
enumerable: false,
|
|
31
31
|
configurable: true
|
|
32
32
|
});
|
|
33
33
|
// ------------ dummys for as3web:
|
|
@@ -37,7 +37,7 @@ var Font = /** @class */ (function (_super) {
|
|
|
37
37
|
get: function () {
|
|
38
38
|
return this._font_styles;
|
|
39
39
|
},
|
|
40
|
-
enumerable:
|
|
40
|
+
enumerable: false,
|
|
41
41
|
configurable: true
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(Font.prototype, "assetType", {
|
|
@@ -47,7 +47,7 @@ var Font = /** @class */ (function (_super) {
|
|
|
47
47
|
get: function () {
|
|
48
48
|
return Font.assetType;
|
|
49
49
|
},
|
|
50
|
-
enumerable:
|
|
50
|
+
enumerable: false,
|
|
51
51
|
configurable: true
|
|
52
52
|
});
|
|
53
53
|
/**
|
|
@@ -67,7 +67,7 @@ var Font = /** @class */ (function (_super) {
|
|
|
67
67
|
if (openTypeFont === void 0) { openTypeFont = null; }
|
|
68
68
|
var existingTable = this.get_font_table(style_name, assetType, openTypeFont);
|
|
69
69
|
if (existingTable) {
|
|
70
|
-
console.warn("[Font] - create_font_table - "
|
|
70
|
+
console.warn("[Font] - create_font_table - ".concat(style_name, " - already exists"));
|
|
71
71
|
}
|
|
72
72
|
var font_style = null;
|
|
73
73
|
if (assetType == TesselatedFontTable.assetType) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|