web3dlink 2.1.0 → 2.1.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/web3dlink.js CHANGED
@@ -791,7 +791,7 @@ function config(e) {
791
791
  value: e.fov,
792
792
  defaultValue: 90,
793
793
  min: 1,
794
- max: 179
794
+ max: 180
795
795
  })), {
796
796
  errors: t,
797
797
  normalized: n
@@ -805,7 +805,7 @@ function flyTo(e) {
805
805
  value: e.pitch,
806
806
  defaultValue: 0,
807
807
  min: -180,
808
- max: 0
808
+ max: 180
809
809
  })), t.push(...validateOptionalNumber({
810
810
  normalized: n,
811
811
  field: "yaw",
@@ -835,8 +835,8 @@ function focusToID(e) {
835
835
  normalized: n,
836
836
  field: "pitch",
837
837
  value: e.pitch,
838
- min: -90,
839
- max: 90
838
+ min: -180,
839
+ max: 180
840
840
  })), t.push(...validateOptionalNumber({
841
841
  normalized: n,
842
842
  field: "yaw",
@@ -869,8 +869,8 @@ function focusToPoint(e) {
869
869
  field: "pitch",
870
870
  value: e.pitch,
871
871
  defaultValue: 0,
872
- min: -90,
873
- max: 90
872
+ min: -180,
873
+ max: 180
874
874
  })), t.push(...validateOptionalNumber({
875
875
  normalized: n,
876
876
  field: "yaw",
@@ -942,8 +942,8 @@ function aroundMode(e = {}) {
942
942
  field: "pitch",
943
943
  value: e.pitch,
944
944
  defaultValue: 0,
945
- min: -90,
946
- max: 90
945
+ min: -180,
946
+ max: 180
947
947
  })), t.push(...validateOptionalNumber({
948
948
  normalized: n,
949
949
  field: "yaw",
@@ -1017,8 +1017,8 @@ function firstPersonMode(e = {}) {
1017
1017
  field: "pitch",
1018
1018
  value: e.pitch,
1019
1019
  defaultValue: 0,
1020
- min: -90,
1021
- max: 90
1020
+ min: -180,
1021
+ max: 180
1022
1022
  })), t.push(...validateOptionalNumber({
1023
1023
  normalized: n,
1024
1024
  field: "yaw",
@@ -1537,7 +1537,9 @@ function validateCaptureConfig(e, t) {
1537
1537
  normalized: e,
1538
1538
  field: "pitch",
1539
1539
  value: e.pitch,
1540
- defaultValue: 0
1540
+ defaultValue: 0,
1541
+ min: -180,
1542
+ max: 180
1541
1543
  })), t.push(...validateOptionalNumber({
1542
1544
  normalized: e,
1543
1545
  field: "yaw",
@@ -1977,15 +1979,21 @@ function cameraFollow(e) {
1977
1979
  "x",
1978
1980
  "y",
1979
1981
  "z",
1980
- "yaw",
1981
- "pitch"
1982
+ "yaw"
1982
1983
  ]) t.push(...validateOptionalNumber({
1983
1984
  normalized: n,
1984
1985
  field: r,
1985
1986
  value: e[r],
1986
1987
  defaultValue: 0
1987
1988
  }));
1988
- return {
1989
+ return t.push(...validateOptionalNumber({
1990
+ normalized: n,
1991
+ field: "pitch",
1992
+ value: e.pitch,
1993
+ defaultValue: 0,
1994
+ min: -180,
1995
+ max: 180
1996
+ })), {
1989
1997
  errors: t,
1990
1998
  normalized: n
1991
1999
  };