a3js 0.0.53 → 0.0.54
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/dist/a3js.cjs.js +4 -4
- package/dist/a3js.cjs.js.map +1 -1
- package/dist/a3js.es.js +7 -5
- package/dist/a3js.es.js.map +1 -1
- package/package.json +1 -1
package/dist/a3js.es.js
CHANGED
|
@@ -2009,9 +2009,9 @@ class Wt extends Me {
|
|
|
2009
2009
|
this.object3D.updateMatrixWorld(!0), this.currentAction && this.currentAction.shape.skeleton?.update();
|
|
2010
2010
|
const n = this.getLinearVelocity(), r = n.length();
|
|
2011
2011
|
if (this.autoAction && (r < this.minWalkSpeed ? this.actions[this.haltActionName] !== this.stateAction && this.setState(this.haltActionName) : r < this.minRunSpeed ? this.actions[this.walkActionName] !== this.stateAction && this.setState(this.walkActionName) : this.actions[this.runActionName] !== this.stateAction && this.setState(this.runActionName)), this.autoDirection && r > 1e-4) {
|
|
2012
|
-
n.normalize()
|
|
2012
|
+
n.normalize();
|
|
2013
2013
|
const s = this.upVector ? this.upVector : Me.defaultUpVector;
|
|
2014
|
-
mt(S.v0, n, s, S.q0), this.setQuatNow(S.q0);
|
|
2014
|
+
S.v0.cross(n, s), S.v0.length() > 1e-4 && (S.v0.set(0, 0, 0), mt(S.v0, n, s, S.q0), this.setQuatNow(S.q0));
|
|
2015
2015
|
}
|
|
2016
2016
|
}
|
|
2017
2017
|
/**
|
|
@@ -13249,7 +13249,9 @@ class Ac extends Me {
|
|
|
13249
13249
|
}
|
|
13250
13250
|
}
|
|
13251
13251
|
const OA = {
|
|
13252
|
-
touchDevice: navigator.maxTouchPoints > 0
|
|
13252
|
+
touchDevice: navigator.maxTouchPoints > 0,
|
|
13253
|
+
width: "600px",
|
|
13254
|
+
height: "300px"
|
|
13253
13255
|
};
|
|
13254
13256
|
class MA extends HTMLElement {
|
|
13255
13257
|
/** 生成オプション。 */
|
|
@@ -13295,8 +13297,8 @@ class MA extends HTMLElement {
|
|
|
13295
13297
|
:host {
|
|
13296
13298
|
display: block;
|
|
13297
13299
|
position: relative;
|
|
13298
|
-
width:
|
|
13299
|
-
height:
|
|
13300
|
+
width: ${this.options.width};
|
|
13301
|
+
height: ${this.options.height};
|
|
13300
13302
|
|
|
13301
13303
|
canvas-a3 {
|
|
13302
13304
|
position: absolute;
|