vis-core 0.29.0 → 0.29.1
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.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.module.js +44 -6
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -63,7 +63,7 @@ import { continentsCountriesIso2 } from "geojson-cn";
|
|
|
63
63
|
Array.prototype.at || (Array.prototype.at = function(v) {
|
|
64
64
|
return v < 0 && (v = this.length + v), this[v];
|
|
65
65
|
});
|
|
66
|
-
const version = "0.29.
|
|
66
|
+
const version = "0.29.1", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
|
|
67
67
|
token: void 0,
|
|
68
68
|
getInfo() {
|
|
69
69
|
if (!this.token)
|
|
@@ -41636,7 +41636,7 @@ class Light extends tn {
|
|
|
41636
41636
|
e.userData = new Proxy(
|
|
41637
41637
|
{},
|
|
41638
41638
|
{
|
|
41639
|
-
set: (w, E, O) => (E === "keepCamera" && (O ? (this.pencil.render(),
|
|
41639
|
+
set: (w, E, O) => (E === "keepCamera" && (O ? (this.pencil.render(), this.pencil.camera.attach(e), e.target && this.pencil.camera.attach(e.target), this.userData.disabledTC = !0) : O || (this.pencil.render(), this.lead.group.object3d.attach(e), e.target && this.lead.scene.object3d.attach(e.target), this.userData.disabledTC = !1)), Reflect.set(w, E, O))
|
|
41640
41640
|
}
|
|
41641
41641
|
), e.target && (e.target.userData.light = e);
|
|
41642
41642
|
const n = this.object3d;
|
|
@@ -59890,8 +59890,27 @@ class SetValue extends Command {
|
|
|
59890
59890
|
const e = this.properties ? this.object[this.properties] : this.object;
|
|
59891
59891
|
if (e && !((e instanceof RectAreaLight || e instanceof AmbientLight) && this.attributeName === "castShadow")) {
|
|
59892
59892
|
if (this.attributeName === "keepCamera" && Array.isArray(this.newValue)) {
|
|
59893
|
-
const [n, ...
|
|
59894
|
-
|
|
59893
|
+
const [n, r, C, w, ...E] = this.newValue;
|
|
59894
|
+
if (this.newValue.length === 10)
|
|
59895
|
+
if (n) {
|
|
59896
|
+
const O = this.editor.pencil.cameraPositon.toArray(), le = this.editor.pencil.cameraTarget.toArray();
|
|
59897
|
+
yield this.editor.viewport.vis.lookAt(...E, !1), this.object.position.fromArray([
|
|
59898
|
+
r,
|
|
59899
|
+
C,
|
|
59900
|
+
w
|
|
59901
|
+
]), e[this.attributeName] = n, yield this.editor.viewport.vis.lookAt(
|
|
59902
|
+
...O,
|
|
59903
|
+
...le,
|
|
59904
|
+
!1
|
|
59905
|
+
);
|
|
59906
|
+
} else
|
|
59907
|
+
e[this.attributeName] = n, this.object.position.fromArray([
|
|
59908
|
+
r,
|
|
59909
|
+
C,
|
|
59910
|
+
w
|
|
59911
|
+
]);
|
|
59912
|
+
else
|
|
59913
|
+
e[this.attributeName] = n;
|
|
59895
59914
|
} else
|
|
59896
59915
|
e[this.attributeName] = this.newValue;
|
|
59897
59916
|
this.fixObj(), this.editor.emit("objectChanged", this.object);
|
|
@@ -59912,8 +59931,27 @@ class SetValue extends Command {
|
|
|
59912
59931
|
return P0(this, null, function* () {
|
|
59913
59932
|
const e = this.properties ? this.object[this.properties] : this.object;
|
|
59914
59933
|
if (this.attributeName === "keepCamera" && Array.isArray(this.oldValue)) {
|
|
59915
|
-
const [n, ...
|
|
59916
|
-
|
|
59934
|
+
const [n, r, C, w, ...E] = this.oldValue;
|
|
59935
|
+
if (this.oldValue.length === 10)
|
|
59936
|
+
if (n) {
|
|
59937
|
+
const O = this.editor.pencil.cameraPositon.toArray(), le = this.editor.pencil.cameraTarget.toArray();
|
|
59938
|
+
yield this.editor.viewport.vis.lookAt(...E, !1), this.object.position.fromArray([
|
|
59939
|
+
r,
|
|
59940
|
+
C,
|
|
59941
|
+
w
|
|
59942
|
+
]), e[this.attributeName] = n, yield this.editor.viewport.vis.lookAt(
|
|
59943
|
+
...O,
|
|
59944
|
+
...le,
|
|
59945
|
+
!1
|
|
59946
|
+
);
|
|
59947
|
+
} else
|
|
59948
|
+
e[this.attributeName] = n, this.object.position.fromArray([
|
|
59949
|
+
r,
|
|
59950
|
+
C,
|
|
59951
|
+
w
|
|
59952
|
+
]);
|
|
59953
|
+
else
|
|
59954
|
+
e[this.attributeName] = n;
|
|
59917
59955
|
} else
|
|
59918
59956
|
e[this.attributeName] = this.oldValue;
|
|
59919
59957
|
this.fixObj(), this.editor.emit("objectChanged", this.object);
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.29.
|
|
1
|
+
declare const _default: "0.29.1";
|
|
2
2
|
export default _default;
|