@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
|
@@ -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
|
/**
|
|
@@ -390,7 +390,7 @@ var TesselatedFontTable = /** @class */ (function (_super) {
|
|
|
390
390
|
get: function () {
|
|
391
391
|
return this._usesCurves;
|
|
392
392
|
},
|
|
393
|
-
enumerable:
|
|
393
|
+
enumerable: false,
|
|
394
394
|
configurable: true
|
|
395
395
|
});
|
|
396
396
|
TesselatedFontTable.prototype.getLineHeight = function () {
|
|
@@ -407,7 +407,7 @@ var TesselatedFontTable = /** @class */ (function (_super) {
|
|
|
407
407
|
get: function () {
|
|
408
408
|
return TesselatedFontTable.assetType;
|
|
409
409
|
},
|
|
410
|
-
enumerable:
|
|
410
|
+
enumerable: false,
|
|
411
411
|
configurable: true
|
|
412
412
|
});
|
|
413
413
|
TesselatedFontTable.prototype.dispose = function () {
|
|
@@ -424,7 +424,7 @@ var TesselatedFontTable = /** @class */ (function (_super) {
|
|
|
424
424
|
set: function (value) {
|
|
425
425
|
this._fntSizeLimit = value;
|
|
426
426
|
},
|
|
427
|
-
enumerable:
|
|
427
|
+
enumerable: false,
|
|
428
428
|
configurable: true
|
|
429
429
|
});
|
|
430
430
|
Object.defineProperty(TesselatedFontTable.prototype, "ascent", {
|
|
@@ -434,7 +434,7 @@ var TesselatedFontTable = /** @class */ (function (_super) {
|
|
|
434
434
|
set: function (value) {
|
|
435
435
|
this._ascent = value;
|
|
436
436
|
},
|
|
437
|
-
enumerable:
|
|
437
|
+
enumerable: false,
|
|
438
438
|
configurable: true
|
|
439
439
|
});
|
|
440
440
|
Object.defineProperty(TesselatedFontTable.prototype, "descent", {
|
|
@@ -444,7 +444,7 @@ var TesselatedFontTable = /** @class */ (function (_super) {
|
|
|
444
444
|
set: function (value) {
|
|
445
445
|
this._descent = value;
|
|
446
446
|
},
|
|
447
|
-
enumerable:
|
|
447
|
+
enumerable: false,
|
|
448
448
|
configurable: true
|
|
449
449
|
});
|
|
450
450
|
Object.defineProperty(TesselatedFontTable.prototype, "offset_x", {
|
|
@@ -454,7 +454,7 @@ var TesselatedFontTable = /** @class */ (function (_super) {
|
|
|
454
454
|
set: function (value) {
|
|
455
455
|
this._offset_x = value;
|
|
456
456
|
},
|
|
457
|
-
enumerable:
|
|
457
|
+
enumerable: false,
|
|
458
458
|
configurable: true
|
|
459
459
|
});
|
|
460
460
|
Object.defineProperty(TesselatedFontTable.prototype, "offset_y", {
|
|
@@ -464,7 +464,7 @@ var TesselatedFontTable = /** @class */ (function (_super) {
|
|
|
464
464
|
set: function (value) {
|
|
465
465
|
this._offset_y = value;
|
|
466
466
|
},
|
|
467
|
-
enumerable:
|
|
467
|
+
enumerable: false,
|
|
468
468
|
configurable: true
|
|
469
469
|
});
|
|
470
470
|
TesselatedFontTable.prototype.get_font_chars = function () {
|
|
@@ -513,7 +513,9 @@ var TesselatedFontTable = /** @class */ (function (_super) {
|
|
|
513
513
|
var charVertices = charGlyph.fill_data;
|
|
514
514
|
if (charVertices) {
|
|
515
515
|
charEntries.push({
|
|
516
|
-
char: charGlyph,
|
|
516
|
+
char: charGlyph,
|
|
517
|
+
x: x, y: y,
|
|
518
|
+
selected: false
|
|
517
519
|
});
|
|
518
520
|
textBuffSize += charVertices.buffer.byteLength / 4;
|
|
519
521
|
}
|
|
@@ -578,13 +580,17 @@ var TesselatedFontTable = /** @class */ (function (_super) {
|
|
|
578
580
|
}
|
|
579
581
|
if (curTShape === textShapeSelected) {
|
|
580
582
|
selectedCharEntries.push({
|
|
581
|
-
char: charGlyph,
|
|
583
|
+
char: charGlyph,
|
|
584
|
+
x: x, y: y,
|
|
585
|
+
selected: true
|
|
582
586
|
});
|
|
583
587
|
selectedBuffSize += charGlyph.fill_data.buffer.byteLength / 4;
|
|
584
588
|
}
|
|
585
589
|
else {
|
|
586
590
|
charEntries.push({
|
|
587
|
-
char: charGlyph,
|
|
591
|
+
char: charGlyph,
|
|
592
|
+
x: x, y: y,
|
|
593
|
+
selected: false
|
|
588
594
|
});
|
|
589
595
|
textBuffSize += charGlyph.fill_data.buffer.byteLength / 4;
|
|
590
596
|
}
|