web3dlink 2.1.0 → 2.1.2

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
@@ -804,8 +804,8 @@ function flyTo(e) {
804
804
  field: "pitch",
805
805
  value: e.pitch,
806
806
  defaultValue: 0,
807
- min: -180,
808
- max: 0
807
+ min: -90,
808
+ max: 90
809
809
  })), t.push(...validateOptionalNumber({
810
810
  normalized: n,
811
811
  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: -90,
1542
+ max: 90
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: -90,
1995
+ max: 90
1996
+ })), {
1989
1997
  errors: t,
1990
1998
  normalized: n
1991
1999
  };