@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.
- 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 +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 +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
|
@@ -78,7 +78,7 @@ var SimpleButton = /** @class */ (function (_super) {
|
|
|
78
78
|
set: function (value) {
|
|
79
79
|
this._downState = value;
|
|
80
80
|
},
|
|
81
|
-
enumerable:
|
|
81
|
+
enumerable: false,
|
|
82
82
|
configurable: true
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(SimpleButton.prototype, "enabled", {
|
|
@@ -100,7 +100,7 @@ var SimpleButton = /** @class */ (function (_super) {
|
|
|
100
100
|
set: function (value) {
|
|
101
101
|
this.enabled = value;
|
|
102
102
|
},
|
|
103
|
-
enumerable:
|
|
103
|
+
enumerable: false,
|
|
104
104
|
configurable: true
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(SimpleButton.prototype, "hitTestState", {
|
|
@@ -116,7 +116,7 @@ var SimpleButton = /** @class */ (function (_super) {
|
|
|
116
116
|
set: function (value) {
|
|
117
117
|
this._hitTestState = value;
|
|
118
118
|
},
|
|
119
|
-
enumerable:
|
|
119
|
+
enumerable: false,
|
|
120
120
|
configurable: true
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(SimpleButton.prototype, "overState", {
|
|
@@ -131,7 +131,7 @@ var SimpleButton = /** @class */ (function (_super) {
|
|
|
131
131
|
set: function (value) {
|
|
132
132
|
this._overState = value;
|
|
133
133
|
},
|
|
134
|
-
enumerable:
|
|
134
|
+
enumerable: false,
|
|
135
135
|
configurable: true
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(SimpleButton.prototype, "soundTransform", {
|
|
@@ -151,7 +151,7 @@ var SimpleButton = /** @class */ (function (_super) {
|
|
|
151
151
|
set: function (sndTransform) {
|
|
152
152
|
console.log('soundTransform not implemented yet in flash/SimpleButton');
|
|
153
153
|
},
|
|
154
|
-
enumerable:
|
|
154
|
+
enumerable: false,
|
|
155
155
|
configurable: true
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(SimpleButton.prototype, "trackAsMenu", {
|
|
@@ -172,7 +172,7 @@ var SimpleButton = /** @class */ (function (_super) {
|
|
|
172
172
|
set: function (value) {
|
|
173
173
|
console.log('trackAsMenu not implemented yet in flash/SimpleButton');
|
|
174
174
|
},
|
|
175
|
-
enumerable:
|
|
175
|
+
enumerable: false,
|
|
176
176
|
configurable: true
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(SimpleButton.prototype, "upState", {
|
|
@@ -187,7 +187,7 @@ var SimpleButton = /** @class */ (function (_super) {
|
|
|
187
187
|
set: function (value) {
|
|
188
188
|
this._upState = value;
|
|
189
189
|
},
|
|
190
|
-
enumerable:
|
|
190
|
+
enumerable: false,
|
|
191
191
|
configurable: true
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(SimpleButton.prototype, "useHandCursor", {
|
|
@@ -220,7 +220,7 @@ var SimpleButton = /** @class */ (function (_super) {
|
|
|
220
220
|
set: function (value) {
|
|
221
221
|
console.log('useHandCursor not implemented yet in flash/SimpleButton');
|
|
222
222
|
},
|
|
223
|
-
enumerable:
|
|
223
|
+
enumerable: false,
|
|
224
224
|
configurable: true
|
|
225
225
|
});
|
|
226
226
|
return SimpleButton;
|
|
@@ -43,7 +43,7 @@ var Skybox = /** @class */ (function (_super) {
|
|
|
43
43
|
get: function () {
|
|
44
44
|
return this._animationSet;
|
|
45
45
|
},
|
|
46
|
-
enumerable:
|
|
46
|
+
enumerable: false,
|
|
47
47
|
configurable: true
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(Skybox.prototype, "blendMode", {
|
|
@@ -67,7 +67,7 @@ var Skybox = /** @class */ (function (_super) {
|
|
|
67
67
|
this._blendMode = value;
|
|
68
68
|
this.invalidate();
|
|
69
69
|
},
|
|
70
|
-
enumerable:
|
|
70
|
+
enumerable: false,
|
|
71
71
|
configurable: true
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(Skybox.prototype, "iOwners", {
|
|
@@ -79,7 +79,7 @@ var Skybox = /** @class */ (function (_super) {
|
|
|
79
79
|
get: function () {
|
|
80
80
|
return this._owners;
|
|
81
81
|
},
|
|
82
|
-
enumerable:
|
|
82
|
+
enumerable: false,
|
|
83
83
|
configurable: true
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(Skybox.prototype, "texture", {
|
|
@@ -99,7 +99,7 @@ var Skybox = /** @class */ (function (_super) {
|
|
|
99
99
|
this.addTexture(this._texture);
|
|
100
100
|
this.invalidatePasses();
|
|
101
101
|
},
|
|
102
|
-
enumerable:
|
|
102
|
+
enumerable: false,
|
|
103
103
|
configurable: true
|
|
104
104
|
});
|
|
105
105
|
Skybox.prototype.getNumTextures = function () {
|
|
@@ -115,7 +115,7 @@ var Skybox = /** @class */ (function (_super) {
|
|
|
115
115
|
get: function () {
|
|
116
116
|
return Skybox.assetType;
|
|
117
117
|
},
|
|
118
|
-
enumerable:
|
|
118
|
+
enumerable: false,
|
|
119
119
|
configurable: true
|
|
120
120
|
});
|
|
121
121
|
/**
|
|
@@ -45,7 +45,7 @@ var Sprite = /** @class */ (function (_super) {
|
|
|
45
45
|
get: function () {
|
|
46
46
|
return Sprite.assetType;
|
|
47
47
|
},
|
|
48
|
-
enumerable:
|
|
48
|
+
enumerable: false,
|
|
49
49
|
configurable: true
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(Sprite.prototype, "graphics", {
|
|
@@ -74,7 +74,7 @@ var Sprite = /** @class */ (function (_super) {
|
|
|
74
74
|
this._graphics.usages++;
|
|
75
75
|
this.invalidate();
|
|
76
76
|
},
|
|
77
|
-
enumerable:
|
|
77
|
+
enumerable: false,
|
|
78
78
|
configurable: true
|
|
79
79
|
});
|
|
80
80
|
Sprite.prototype.getEntity = function () {
|
|
@@ -39,7 +39,7 @@ var WordStore = /** @class */ (function () {
|
|
|
39
39
|
get: function () {
|
|
40
40
|
return this.store[this.index];
|
|
41
41
|
},
|
|
42
|
-
enumerable:
|
|
42
|
+
enumerable: false,
|
|
43
43
|
configurable: true
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(WordStore.prototype, "length", {
|
|
@@ -49,7 +49,7 @@ var WordStore = /** @class */ (function () {
|
|
|
49
49
|
set: function (v) {
|
|
50
50
|
this.index = v - 1;
|
|
51
51
|
},
|
|
52
|
-
enumerable:
|
|
52
|
+
enumerable: false,
|
|
53
53
|
configurable: true
|
|
54
54
|
});
|
|
55
55
|
WordStore.prototype.get = function (index) {
|
|
@@ -322,7 +322,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
322
322
|
},
|
|
323
323
|
set: function (value) {
|
|
324
324
|
},
|
|
325
|
-
enumerable:
|
|
325
|
+
enumerable: false,
|
|
326
326
|
configurable: true
|
|
327
327
|
});
|
|
328
328
|
TextField.prototype.setFocus = function (value, fromMouseDown, sendSoftKeyEvent) {
|
|
@@ -672,14 +672,14 @@ var TextField = /** @class */ (function (_super) {
|
|
|
672
672
|
if (this._autoSize != TextFieldAutoSize.NONE)
|
|
673
673
|
this.invalidate();
|
|
674
674
|
},
|
|
675
|
-
enumerable:
|
|
675
|
+
enumerable: false,
|
|
676
676
|
configurable: true
|
|
677
677
|
});
|
|
678
678
|
Object.defineProperty(TextField.prototype, "internalScale", {
|
|
679
679
|
get: function () {
|
|
680
680
|
return this._internalScale;
|
|
681
681
|
},
|
|
682
|
-
enumerable:
|
|
682
|
+
enumerable: false,
|
|
683
683
|
configurable: true
|
|
684
684
|
});
|
|
685
685
|
// public getInternalScale(view:View = null):Vector3D
|
|
@@ -736,7 +736,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
736
736
|
get: function () {
|
|
737
737
|
return TextField.assetType;
|
|
738
738
|
},
|
|
739
|
-
enumerable:
|
|
739
|
+
enumerable: false,
|
|
740
740
|
configurable: true
|
|
741
741
|
});
|
|
742
742
|
Object.defineProperty(TextField.prototype, "background", {
|
|
@@ -749,7 +749,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
749
749
|
this._background = value;
|
|
750
750
|
this._shapesDirty = true;
|
|
751
751
|
},
|
|
752
|
-
enumerable:
|
|
752
|
+
enumerable: false,
|
|
753
753
|
configurable: true
|
|
754
754
|
});
|
|
755
755
|
Object.defineProperty(TextField.prototype, "backgroundColor", {
|
|
@@ -760,7 +760,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
760
760
|
this._backgroundColor = value;
|
|
761
761
|
this._shapesDirty = true;
|
|
762
762
|
},
|
|
763
|
-
enumerable:
|
|
763
|
+
enumerable: false,
|
|
764
764
|
configurable: true
|
|
765
765
|
});
|
|
766
766
|
Object.defineProperty(TextField.prototype, "border", {
|
|
@@ -773,7 +773,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
773
773
|
this._border = value;
|
|
774
774
|
this._shapesDirty = true;
|
|
775
775
|
},
|
|
776
|
-
enumerable:
|
|
776
|
+
enumerable: false,
|
|
777
777
|
configurable: true
|
|
778
778
|
});
|
|
779
779
|
Object.defineProperty(TextField.prototype, "borderColor", {
|
|
@@ -786,7 +786,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
786
786
|
this._borderColor = value;
|
|
787
787
|
this._shapesDirty = true;
|
|
788
788
|
},
|
|
789
|
-
enumerable:
|
|
789
|
+
enumerable: false,
|
|
790
790
|
configurable: true
|
|
791
791
|
});
|
|
792
792
|
Object.defineProperty(TextField.prototype, "bottomScrollV", {
|
|
@@ -807,7 +807,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
807
807
|
return;
|
|
808
808
|
this._bottomScrollV = value;
|
|
809
809
|
},
|
|
810
|
-
enumerable:
|
|
810
|
+
enumerable: false,
|
|
811
811
|
configurable: true
|
|
812
812
|
});
|
|
813
813
|
Object.defineProperty(TextField.prototype, "caretIndex", {
|
|
@@ -823,7 +823,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
823
823
|
get: function () {
|
|
824
824
|
return this._caretIndex;
|
|
825
825
|
},
|
|
826
|
-
enumerable:
|
|
826
|
+
enumerable: false,
|
|
827
827
|
configurable: true
|
|
828
828
|
});
|
|
829
829
|
Object.defineProperty(TextField.prototype, "height", {
|
|
@@ -844,7 +844,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
844
844
|
this._positionsDirty = true;
|
|
845
845
|
this.invalidate();
|
|
846
846
|
},
|
|
847
|
-
enumerable:
|
|
847
|
+
enumerable: false,
|
|
848
848
|
configurable: true
|
|
849
849
|
});
|
|
850
850
|
Object.defineProperty(TextField.prototype, "htmlText", {
|
|
@@ -868,7 +868,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
868
868
|
this.newTextFormat = this._textFormats[this._textFormats.length - 1];
|
|
869
869
|
this.invalidate();
|
|
870
870
|
},
|
|
871
|
-
enumerable:
|
|
871
|
+
enumerable: false,
|
|
872
872
|
configurable: true
|
|
873
873
|
});
|
|
874
874
|
Object.defineProperty(TextField.prototype, "length", {
|
|
@@ -879,7 +879,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
879
879
|
get: function () {
|
|
880
880
|
return this._iText.length;
|
|
881
881
|
},
|
|
882
|
-
enumerable:
|
|
882
|
+
enumerable: false,
|
|
883
883
|
configurable: true
|
|
884
884
|
});
|
|
885
885
|
Object.defineProperty(TextField.prototype, "maxScrollH", {
|
|
@@ -890,7 +890,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
890
890
|
this.reConstruct();
|
|
891
891
|
return this._maxScrollH;
|
|
892
892
|
},
|
|
893
|
-
enumerable:
|
|
893
|
+
enumerable: false,
|
|
894
894
|
configurable: true
|
|
895
895
|
});
|
|
896
896
|
Object.defineProperty(TextField.prototype, "maxScrollV", {
|
|
@@ -901,7 +901,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
901
901
|
this.reConstruct();
|
|
902
902
|
return this._maxScrollV;
|
|
903
903
|
},
|
|
904
|
-
enumerable:
|
|
904
|
+
enumerable: false,
|
|
905
905
|
configurable: true
|
|
906
906
|
});
|
|
907
907
|
Object.defineProperty(TextField.prototype, "numLines", {
|
|
@@ -914,7 +914,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
914
914
|
this.reConstruct();
|
|
915
915
|
return this._numLines;
|
|
916
916
|
},
|
|
917
|
-
enumerable:
|
|
917
|
+
enumerable: false,
|
|
918
918
|
configurable: true
|
|
919
919
|
});
|
|
920
920
|
Object.defineProperty(TextField.prototype, "restrict", {
|
|
@@ -968,7 +968,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
968
968
|
value = value.replace(/\%/g, '\\%');
|
|
969
969
|
this._restrictRegex = new RegExp('[^' + value + ']', 'g');
|
|
970
970
|
},
|
|
971
|
-
enumerable:
|
|
971
|
+
enumerable: false,
|
|
972
972
|
configurable: true
|
|
973
973
|
});
|
|
974
974
|
Object.defineProperty(TextField.prototype, "scrollH", {
|
|
@@ -980,7 +980,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
980
980
|
return;
|
|
981
981
|
this._scrollH = value;
|
|
982
982
|
},
|
|
983
|
-
enumerable:
|
|
983
|
+
enumerable: false,
|
|
984
984
|
configurable: true
|
|
985
985
|
});
|
|
986
986
|
Object.defineProperty(TextField.prototype, "scrollV", {
|
|
@@ -1003,7 +1003,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1003
1003
|
// unsafe
|
|
1004
1004
|
this.textChild.y = -this.lines_start_y[this._scrollV];
|
|
1005
1005
|
},
|
|
1006
|
-
enumerable:
|
|
1006
|
+
enumerable: false,
|
|
1007
1007
|
configurable: true
|
|
1008
1008
|
});
|
|
1009
1009
|
Object.defineProperty(TextField.prototype, "selectable", {
|
|
@@ -1028,7 +1028,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1028
1028
|
this.removeEventListener(MouseEvent.DRAG_MOVE, this.updateSelectionByMouseDelegate);
|
|
1029
1029
|
}
|
|
1030
1030
|
},
|
|
1031
|
-
enumerable:
|
|
1031
|
+
enumerable: false,
|
|
1032
1032
|
configurable: true
|
|
1033
1033
|
});
|
|
1034
1034
|
Object.defineProperty(TextField.prototype, "selectionBeginIndex", {
|
|
@@ -1041,7 +1041,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1041
1041
|
get: function () {
|
|
1042
1042
|
return this._selectionBeginIndex;
|
|
1043
1043
|
},
|
|
1044
|
-
enumerable:
|
|
1044
|
+
enumerable: false,
|
|
1045
1045
|
configurable: true
|
|
1046
1046
|
});
|
|
1047
1047
|
Object.defineProperty(TextField.prototype, "selectionEndIndex", {
|
|
@@ -1054,7 +1054,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1054
1054
|
get: function () {
|
|
1055
1055
|
return this._selectionEndIndex;
|
|
1056
1056
|
},
|
|
1057
|
-
enumerable:
|
|
1057
|
+
enumerable: false,
|
|
1058
1058
|
configurable: true
|
|
1059
1059
|
});
|
|
1060
1060
|
Object.defineProperty(TextField.prototype, "text", {
|
|
@@ -1098,7 +1098,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1098
1098
|
//console.log("set text", value, "on" , this);
|
|
1099
1099
|
this.invalidate();
|
|
1100
1100
|
},
|
|
1101
|
-
enumerable:
|
|
1101
|
+
enumerable: false,
|
|
1102
1102
|
configurable: true
|
|
1103
1103
|
});
|
|
1104
1104
|
TextField.prototype.setLabelData = function (labelData) {
|
|
@@ -1123,7 +1123,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
this._newTextFormat = null;
|
|
1125
1125
|
},
|
|
1126
|
-
enumerable:
|
|
1126
|
+
enumerable: false,
|
|
1127
1127
|
configurable: true
|
|
1128
1128
|
});
|
|
1129
1129
|
Object.defineProperty(TextField.prototype, "textFormat", {
|
|
@@ -1149,7 +1149,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1149
1149
|
//this.reConstruct();
|
|
1150
1150
|
this.invalidate();
|
|
1151
1151
|
},
|
|
1152
|
-
enumerable:
|
|
1152
|
+
enumerable: false,
|
|
1153
1153
|
configurable: true
|
|
1154
1154
|
});
|
|
1155
1155
|
Object.defineProperty(TextField.prototype, "scaleX", {
|
|
@@ -1170,7 +1170,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
this._setScaleX(val);
|
|
1172
1172
|
},
|
|
1173
|
-
enumerable:
|
|
1173
|
+
enumerable: false,
|
|
1174
1174
|
configurable: true
|
|
1175
1175
|
});
|
|
1176
1176
|
Object.defineProperty(TextField.prototype, "scaleY", {
|
|
@@ -1191,7 +1191,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
this._setScaleY(val);
|
|
1193
1193
|
},
|
|
1194
|
-
enumerable:
|
|
1194
|
+
enumerable: false,
|
|
1195
1195
|
configurable: true
|
|
1196
1196
|
});
|
|
1197
1197
|
Object.defineProperty(TextField.prototype, "textColor", {
|
|
@@ -1231,7 +1231,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1231
1231
|
this._glyphsDirty = true;
|
|
1232
1232
|
this.invalidate();
|
|
1233
1233
|
},
|
|
1234
|
-
enumerable:
|
|
1234
|
+
enumerable: false,
|
|
1235
1235
|
configurable: true
|
|
1236
1236
|
});
|
|
1237
1237
|
TextField.prototype.getTextColorForTextFormat = function (format) {
|
|
@@ -1252,7 +1252,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1252
1252
|
get: function () {
|
|
1253
1253
|
return this._textInteractionMode;
|
|
1254
1254
|
},
|
|
1255
|
-
enumerable:
|
|
1255
|
+
enumerable: false,
|
|
1256
1256
|
configurable: true
|
|
1257
1257
|
});
|
|
1258
1258
|
Object.defineProperty(TextField.prototype, "textWidth", {
|
|
@@ -1263,7 +1263,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1263
1263
|
this.reConstruct();
|
|
1264
1264
|
return this._textWidth;
|
|
1265
1265
|
},
|
|
1266
|
-
enumerable:
|
|
1266
|
+
enumerable: false,
|
|
1267
1267
|
configurable: true
|
|
1268
1268
|
});
|
|
1269
1269
|
Object.defineProperty(TextField.prototype, "textHeight", {
|
|
@@ -1278,7 +1278,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
return this._textHeight;
|
|
1280
1280
|
},
|
|
1281
|
-
enumerable:
|
|
1281
|
+
enumerable: false,
|
|
1282
1282
|
configurable: true
|
|
1283
1283
|
});
|
|
1284
1284
|
Object.defineProperty(TextField.prototype, "type", {
|
|
@@ -1301,7 +1301,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
this.invalidate();
|
|
1303
1303
|
},
|
|
1304
|
-
enumerable:
|
|
1304
|
+
enumerable: false,
|
|
1305
1305
|
configurable: true
|
|
1306
1306
|
});
|
|
1307
1307
|
Object.defineProperty(TextField.prototype, "x", {
|
|
@@ -1319,7 +1319,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1319
1319
|
this._transform.matrix3D._rawData[12] = val;
|
|
1320
1320
|
this._transform.invalidatePosition();
|
|
1321
1321
|
},
|
|
1322
|
-
enumerable:
|
|
1322
|
+
enumerable: false,
|
|
1323
1323
|
configurable: true
|
|
1324
1324
|
});
|
|
1325
1325
|
Object.defineProperty(TextField.prototype, "width", {
|
|
@@ -1341,7 +1341,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1341
1341
|
this._positionsDirty = true;
|
|
1342
1342
|
this.invalidate();
|
|
1343
1343
|
},
|
|
1344
|
-
enumerable:
|
|
1344
|
+
enumerable: false,
|
|
1345
1345
|
configurable: true
|
|
1346
1346
|
});
|
|
1347
1347
|
Object.defineProperty(TextField.prototype, "wordWrap", {
|
|
@@ -1359,7 +1359,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
1359
1359
|
if (!val)
|
|
1360
1360
|
this.invalidate();
|
|
1361
1361
|
},
|
|
1362
|
-
enumerable:
|
|
1362
|
+
enumerable: false,
|
|
1363
1363
|
configurable: true
|
|
1364
1364
|
});
|
|
1365
1365
|
TextField.prototype.advanceFrame = function () {
|
|
@@ -19,14 +19,14 @@ var KeyboardEvent = /** @class */ (function (_super) {
|
|
|
19
19
|
get: function () {
|
|
20
20
|
return this._char;
|
|
21
21
|
},
|
|
22
|
-
enumerable:
|
|
22
|
+
enumerable: false,
|
|
23
23
|
configurable: true
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(KeyboardEvent.prototype, "charCode", {
|
|
26
26
|
get: function () {
|
|
27
27
|
return this._charCode;
|
|
28
28
|
},
|
|
29
|
-
enumerable:
|
|
29
|
+
enumerable: false,
|
|
30
30
|
configurable: true
|
|
31
31
|
});
|
|
32
32
|
/**
|
|
@@ -30,7 +30,7 @@ var MouseEvent = /** @class */ (function (_super) {
|
|
|
30
30
|
// Don't bubble if propagation has been stopped.
|
|
31
31
|
return doesBubble;
|
|
32
32
|
},
|
|
33
|
-
enumerable:
|
|
33
|
+
enumerable: false,
|
|
34
34
|
configurable: true
|
|
35
35
|
});
|
|
36
36
|
/**
|
|
@@ -85,7 +85,7 @@ var MouseEvent = /** @class */ (function (_super) {
|
|
|
85
85
|
get: function () {
|
|
86
86
|
return this.containerNode.getMatrix3D().transformVector(this.position);
|
|
87
87
|
},
|
|
88
|
-
enumerable:
|
|
88
|
+
enumerable: false,
|
|
89
89
|
configurable: true
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(MouseEvent.prototype, "sceneNormal", {
|
|
@@ -97,7 +97,7 @@ var MouseEvent = /** @class */ (function (_super) {
|
|
|
97
97
|
sceneNormal.normalize();
|
|
98
98
|
return sceneNormal;
|
|
99
99
|
},
|
|
100
|
-
enumerable:
|
|
100
|
+
enumerable: false,
|
|
101
101
|
configurable: true
|
|
102
102
|
});
|
|
103
103
|
MouseEvent.prototype._dispatchEvent = function (dispatcher, target) {
|
|
@@ -14,14 +14,14 @@ var ResizeEvent = /** @class */ (function (_super) {
|
|
|
14
14
|
get: function () {
|
|
15
15
|
return this._oldHeight;
|
|
16
16
|
},
|
|
17
|
-
enumerable:
|
|
17
|
+
enumerable: false,
|
|
18
18
|
configurable: true
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(ResizeEvent.prototype, "oldWidth", {
|
|
21
21
|
get: function () {
|
|
22
22
|
return this._oldWidth;
|
|
23
23
|
},
|
|
24
|
-
enumerable:
|
|
24
|
+
enumerable: false,
|
|
25
25
|
configurable: true
|
|
26
26
|
});
|
|
27
27
|
/**
|
|
@@ -114,14 +114,14 @@ var SceneImage2D = /** @class */ (function (_super) {
|
|
|
114
114
|
this.height >= minH &&
|
|
115
115
|
!this._msaaNeedDrop);
|
|
116
116
|
},
|
|
117
|
-
enumerable:
|
|
117
|
+
enumerable: false,
|
|
118
118
|
configurable: true
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(SceneImage2D.prototype, "antialiasQuality", {
|
|
121
121
|
get: function () {
|
|
122
122
|
return this.canUseMSAAInternaly ? this._antialiasQuality : 0;
|
|
123
123
|
},
|
|
124
|
-
enumerable:
|
|
124
|
+
enumerable: false,
|
|
125
125
|
configurable: true
|
|
126
126
|
});
|
|
127
127
|
SceneImage2D.prototype.syncData = function (async) {
|
|
@@ -196,7 +196,7 @@ var SceneImage2D = /** @class */ (function (_super) {
|
|
|
196
196
|
get: function () {
|
|
197
197
|
return SceneImage2D.assetType;
|
|
198
198
|
},
|
|
199
|
-
enumerable:
|
|
199
|
+
enumerable: false,
|
|
200
200
|
configurable: true
|
|
201
201
|
});
|
|
202
202
|
SceneImage2D.prototype.createRenderer = function () {
|
|
@@ -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.
|