@perceptimagery/dita-configurator-staging 0.1.7301 → 0.1.7302

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.
Files changed (2) hide show
  1. package/dist/index.js +21 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -111,7 +111,7 @@ var __publicField = (obj, key, value) => {
111
111
  host: "https://api.sprie.io"
112
112
  };
113
113
  const config = Object.freeze(Config$1);
114
- const version$1 = "0.1.7301";
114
+ const version$1 = "0.1.7302";
115
115
  function modifyLensArr(arr, element) {
116
116
  const index = arr.findIndex((e) => e["sku"] === element["sku"]);
117
117
  if (index !== -1) {
@@ -41960,13 +41960,26 @@ bool bvhIntersectFirstHit(
41960
41960
  -0.13425621157020154,
41961
41961
  -0.2564218846390263
41962
41962
  );
41963
- this.camera.position.set(
41964
- 2.2,
41965
- 2.2,
41966
- 4
41967
- );
41968
- controls.minDistance = 1;
41969
- controls.maxDistance = 5;
41963
+ const rendererSize = this.renderer.getSize(new Vector2());
41964
+ if (rendererSize.x > rendererSize.y) {
41965
+ this.camera.position.set(
41966
+ 2.2,
41967
+ 2.2,
41968
+ 4
41969
+ );
41970
+ controls.minDistance = 2;
41971
+ controls.maxDistance = 7;
41972
+ controls.rotateSpeed = 0.5;
41973
+ } else {
41974
+ this.camera.position.set(
41975
+ 4.2,
41976
+ 5.2,
41977
+ 12
41978
+ );
41979
+ controls.minDistance = 3;
41980
+ controls.maxDistance = 16;
41981
+ controls.rotateSpeed = 0.8;
41982
+ }
41970
41983
  controls.enableDamping = true;
41971
41984
  controls.dampingFactor = 0.2;
41972
41985
  controls.enablePan = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perceptimagery/dita-configurator-staging",
3
- "version": "0.1.7301",
3
+ "version": "0.1.7302",
4
4
  "author": "Rohan Satpute <rohan@perceptimagery.com>",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",