vis-core 0.14.8 → 0.14.9
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/index.js +3 -3
- package/dist/index.module.js +5 -9
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -41313,7 +41313,7 @@ function Kl(i) {
|
|
|
41313
41313
|
const t = new _t();
|
|
41314
41314
|
return t.color.setScalar(i), t;
|
|
41315
41315
|
}
|
|
41316
|
-
const aX = "0.14.
|
|
41316
|
+
const aX = "0.14.9", Y1 = !1;
|
|
41317
41317
|
class ya {
|
|
41318
41318
|
constructor(t, e = {}) {
|
|
41319
41319
|
j(this, "container");
|
|
@@ -44344,7 +44344,7 @@ class bX extends _2 {
|
|
|
44344
44344
|
}
|
|
44345
44345
|
create() {
|
|
44346
44346
|
const e = this.pencil.installPlugins.get("materialList"), n = e.getMaterial("earthMaterial");
|
|
44347
|
-
this.material = n, super.create(), this.
|
|
44347
|
+
this.material = n, super.create(), this.rotation.y = Math.PI / 180 * -90, this.object3d.name = "地球", e.setObject3d(this.object3d, "earth");
|
|
44348
44348
|
}
|
|
44349
44349
|
}
|
|
44350
44350
|
class ZX extends We {
|
|
@@ -44928,7 +44928,7 @@ class gT extends We {
|
|
|
44928
44928
|
create() {
|
|
44929
44929
|
return bt(this, null, function* () {
|
|
44930
44930
|
const e = this.pencil.installPlugins.get("materialList"), n = new os(this.options.radius, 128, 90), s = new _t();
|
|
44931
|
-
this.createMesh(n, s), this.scale.multiplyScalar(1.001), this.object3d.name = "阴影面", e.setObject3d(this.object3d, "SphereShadow", {
|
|
44931
|
+
this.createMesh(n, s), this.scale.multiplyScalar(1.001), this.rotation.y = Math.PI / 180 * -90, this.object3d.name = "阴影面", e.setObject3d(this.object3d, "SphereShadow", {
|
|
44932
44932
|
baseObject: this
|
|
44933
44933
|
}), this.hide();
|
|
44934
44934
|
});
|
|
@@ -45059,11 +45059,7 @@ class Rm extends Qo {
|
|
|
45059
45059
|
radius: this.options.radius
|
|
45060
45060
|
})
|
|
45061
45061
|
]);
|
|
45062
|
-
this.map = e, n.position.set(0, 50, -100), s.position.set(0, 0, 150), n.object3d.lookAt(0, 0, 0), s.object3d.lookAt(0, 0, 0), this.mList.changeObject3dName(n.object3d, "$1_1"), this.mList.changeObject3dName(s.object3d, "$1_2"), yield this.pencil.cameraControls.rotateTo(
|
|
45063
|
-
1.8041576242193995,
|
|
45064
|
-
1.2232045720480524,
|
|
45065
|
-
!1
|
|
45066
|
-
), yield this.pencil.cameraControls.dollyTo(99.11560932366835, !1);
|
|
45062
|
+
this.map = e, n.position.set(0, 50, -100), s.position.set(0, 0, 150), n.object3d.lookAt(0, 0, 0), s.object3d.lookAt(0, 0, 0), this.mList.changeObject3dName(n.object3d, "$1_1"), this.mList.changeObject3dName(s.object3d, "$1_2"), yield this.pencil.cameraControls.rotateTo(1.8041576242193995, 1.2232045720480524, !1), yield this.pencil.cameraControls.dollyTo(99.11560932366835, !1), this.pencil.cameraControls.minPolarAngle = this.pencil.cameraControls.polarAngle, this.pencil.cameraControls.maxPolarAngle = this.pencil.cameraControls.polarAngle;
|
|
45067
45063
|
});
|
|
45068
45064
|
}
|
|
45069
45065
|
getLocationPosition(e, n = 0) {
|
|
@@ -45997,7 +45993,7 @@ class vT extends w0 {
|
|
|
45997
45993
|
super.fromJSON(t), this.object = this.editor.objectByUuid(t.objectUuid), this.materialSlot = t.materialSlot, this.material = this.editor.getObjectMaterial(
|
|
45998
45994
|
this.object,
|
|
45999
45995
|
this.materialSlot
|
|
46000
|
-
), this.mapName = t.mapName, this.oldMap = ph(t.oldMap), this.newMap = ph(t.newMap)
|
|
45996
|
+
), this.mapName = t.mapName, this.oldMap = ph(t.oldMap), this.newMap = ph(t.newMap);
|
|
46001
45997
|
}
|
|
46002
45998
|
}
|
|
46003
45999
|
function ph(i) {
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.14.
|
|
1
|
+
declare const _default: "0.14.9";
|
|
2
2
|
export default _default;
|