a3js 0.0.49 → 0.0.50
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 +1 -1
- package/dist/a3js.cjs.js.map +1 -1
- package/dist/a3js.es.js +6 -4
- package/dist/a3js.es.js.map +1 -1
- package/package.json +1 -1
package/dist/a3js.es.js
CHANGED
|
@@ -13779,7 +13779,8 @@ class fs extends yr {
|
|
|
13779
13779
|
const GA = {
|
|
13780
13780
|
camera: void 0,
|
|
13781
13781
|
antialias: !1,
|
|
13782
|
-
optionalFeatures: [],
|
|
13782
|
+
optionalFeatures: ["local-floor"],
|
|
13783
|
+
// 'local-floor'が無いと真っ暗?
|
|
13783
13784
|
requiredFeatures: []
|
|
13784
13785
|
};
|
|
13785
13786
|
class UA extends HTMLElement {
|
|
@@ -13803,7 +13804,7 @@ class UA extends HTMLElement {
|
|
|
13803
13804
|
vrButton;
|
|
13804
13805
|
currentSession = null;
|
|
13805
13806
|
constructor(e) {
|
|
13806
|
-
super(), this.options = { ...GA, ...e }, this.options.camera ? (this.camera3js = this.options.camera.camera, this.camera = this.options.camera) : (this.camera3js = new K.PerspectiveCamera(75, 1, 0.01, 1e3), this.camera = new fs(this.camera3js)), this.base = new In(this.camera), this.scene = this.base.scene, this.
|
|
13807
|
+
super(), this.options = { ...GA, ...e }, this.options.camera ? (this.camera3js = this.options.camera.camera, this.camera = this.options.camera) : (this.camera3js = new K.PerspectiveCamera(75, 1, 0.01, 1e3), this.camera = new fs(this.camera3js)), this.base = new In(this.camera), this.scene = this.base.scene, this.controller = this.base.controller, this.timer = new K.Timer(), this.renderer = new K.WebGLRenderer({ antialias: this.options.antialias }), this.renderer.xr.enabled = !0, bn({ renderer: this.renderer }), this.vrButton = this.createVRButton(), this.renderer.setAnimationLoop(this.renderingLoop);
|
|
13807
13808
|
}
|
|
13808
13809
|
connectedCallback() {
|
|
13809
13810
|
this.appendChild(this.vrButton);
|
|
@@ -13885,7 +13886,8 @@ customElements.define("vr-view-a3", UA);
|
|
|
13885
13886
|
const jA = {
|
|
13886
13887
|
camera: void 0,
|
|
13887
13888
|
antialias: !1,
|
|
13888
|
-
optionalFeatures: [],
|
|
13889
|
+
optionalFeatures: ["local-floor"],
|
|
13890
|
+
// 'local-floor'が無いと真っ暗?
|
|
13889
13891
|
requiredFeatures: []
|
|
13890
13892
|
};
|
|
13891
13893
|
class HA extends HTMLElement {
|
|
@@ -13909,7 +13911,7 @@ class HA extends HTMLElement {
|
|
|
13909
13911
|
arButton;
|
|
13910
13912
|
currentSession = null;
|
|
13911
13913
|
constructor(e) {
|
|
13912
|
-
super(), this.options = { ...jA, ...e }, this.options.camera ? (this.camera3js = this.options.camera.camera, this.camera = this.options.camera) : (this.camera3js = new K.PerspectiveCamera(75, 1, 0.01, 1e3), this.camera = new fs(this.camera3js)), this.base = new In(this.camera), this.scene = this.base.scene, this.
|
|
13914
|
+
super(), this.options = { ...jA, ...e }, this.options.camera ? (this.camera3js = this.options.camera.camera, this.camera = this.options.camera) : (this.camera3js = new K.PerspectiveCamera(75, 1, 0.01, 1e3), this.camera = new fs(this.camera3js)), this.base = new In(this.camera), this.scene = this.base.scene, this.controller = this.base.controller, this.timer = new K.Timer(), this.renderer = new K.WebGLRenderer({ antialias: this.options.antialias, alpha: !0 }), this.renderer.xr.enabled = !0, bn({ renderer: this.renderer }), this.arButton = this.createARButton(), this.renderer.setAnimationLoop(this.renderingLoop);
|
|
13913
13915
|
}
|
|
13914
13916
|
connectedCallback() {
|
|
13915
13917
|
this.appendChild(this.arButton);
|