@gamelearn/arcade-components 2.12.5 → 2.12.8-hotfix-keyboardcontrol-pdf
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.
|
@@ -120,6 +120,7 @@ function Panel(_ref) {
|
|
|
120
120
|
cameraRef.current.position.fromArray(defaultCamPos);
|
|
121
121
|
cameraRef.current.rotation.set(0, 0, 0);
|
|
122
122
|
cameraRef.current.updateProjectionMatrix();
|
|
123
|
+
cameraRef.current.layers.enableAll();
|
|
123
124
|
|
|
124
125
|
if (character.type === 'character') {
|
|
125
126
|
var defaultAnim = object.userData.defaultAnim;
|
|
@@ -172,7 +173,6 @@ function Panel(_ref) {
|
|
|
172
173
|
return character.type === 'image' ? null : /*#__PURE__*/_react.default.createElement("scene", {
|
|
173
174
|
ref: sceneRef
|
|
174
175
|
}, (_character$resource7 = character.resource) !== null && _character$resource7 !== void 0 && _character$resource7.url ? /*#__PURE__*/_react.default.createElement(_arcadeThreeCore.LodWrapper, {
|
|
175
|
-
progressive: true,
|
|
176
176
|
lod: currentLOD
|
|
177
177
|
}, /*#__PURE__*/_react.default.createElement(_arcadeThreeCore.TriggerWrapper, {
|
|
178
178
|
name: "char_".concat(character.uid),
|
|
@@ -77,8 +77,7 @@ var PdfVisor = function PdfVisor(_ref) {
|
|
|
77
77
|
endPdf = _ref.endPdf,
|
|
78
78
|
emitNumberOfPages = _ref.emitNumberOfPages,
|
|
79
79
|
translate = _ref.translate,
|
|
80
|
-
soundActions = _ref.soundActions
|
|
81
|
-
keyboardControl = _ref.keyboardControl;
|
|
80
|
+
soundActions = _ref.soundActions;
|
|
82
81
|
var scrollElement = (0, _react.useRef)();
|
|
83
82
|
|
|
84
83
|
var _useState = (0, _react.useState)(1),
|
|
@@ -168,12 +167,6 @@ var PdfVisor = function PdfVisor(_ref) {
|
|
|
168
167
|
}
|
|
169
168
|
};
|
|
170
169
|
|
|
171
|
-
keyboardControl(pages > 1 && currentPage !== 1 ? function () {
|
|
172
|
-
return turnPage(-1);
|
|
173
|
-
} : null, pages > 1 && currentPage !== pages ? function () {
|
|
174
|
-
return turnPage(1);
|
|
175
|
-
} : null);
|
|
176
|
-
|
|
177
170
|
var removeOverlay = function removeOverlay() {
|
|
178
171
|
setOverlay(false);
|
|
179
172
|
};
|
package/dist/helpers/index.js
CHANGED
|
@@ -23,8 +23,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
23
23
|
|
|
24
24
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
25
25
|
|
|
26
|
-
function _readOnlyError(name) { throw new TypeError("\"" + name + "\" is read-only"); }
|
|
27
|
-
|
|
28
26
|
var xAxis = new _three.Vector3(1, 0, 0);
|
|
29
27
|
exports.xAxis = xAxis;
|
|
30
28
|
var yAxis = new _three.Vector3(0, 1, 0);
|
|
@@ -209,11 +207,11 @@ var executeTalkingAnimation = function executeTalkingAnimation(target, talkingUR
|
|
|
209
207
|
if (talkingClip) {
|
|
210
208
|
var _cloned$tracks;
|
|
211
209
|
|
|
212
|
-
talkingClip.tracks.filter(function (track) {
|
|
210
|
+
tracks = talkingClip.tracks.filter(function (track) {
|
|
213
211
|
return bones.find(function (bone) {
|
|
214
212
|
return track.name.includes(bone);
|
|
215
213
|
});
|
|
216
|
-
})
|
|
214
|
+
});
|
|
217
215
|
cloned.tracks = cloned.tracks.filter(function (track) {
|
|
218
216
|
return !bones.find(function (bone) {
|
|
219
217
|
return track.name.includes(bone);
|