@perceptimagery/dita-configurator-staging 0.2.1304 → 0.2.1305

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 +12 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -18,6 +18,7 @@ var __publicField = (obj, key, value) => {
18
18
  return value;
19
19
  };
20
20
  (function() {
21
+ var _a, _b;
21
22
  "use strict";
22
23
  class FetcherServiceFactory {
23
24
  constructor(config2) {
@@ -111,7 +112,7 @@ var __publicField = (obj, key, value) => {
111
112
  host: "https://api.sprie.io"
112
113
  };
113
114
  const config$1 = Object.freeze(Config$2);
114
- const version$1 = "0.2.1304";
115
+ const version$1 = "0.2.1305";
115
116
  function modifyLensArr$1(arr, element) {
116
117
  const index = arr.findIndex((e) => e["sku"] === element["sku"]);
117
118
  if (index !== -1) {
@@ -42917,18 +42918,18 @@ bool bvhIntersectFirstHit(
42917
42918
  this.isInitialised = true;
42918
42919
  }
42919
42920
  resizeRenderer() {
42920
- var _a;
42921
+ var _a2;
42921
42922
  const pixelRatio = Math.min(window.devicePixelRatio, 2);
42922
42923
  const resoWidth = Math.floor(this.canvas.clientWidth * pixelRatio);
42923
42924
  const resoHeight = Math.floor(this.canvas.clientHeight * pixelRatio);
42924
42925
  const needResize = this.canvas.width !== resoWidth || this.canvas.height !== resoHeight;
42925
42926
  if (needResize) {
42926
- (_a = this.renderer) == null ? void 0 : _a.setSize(resoWidth, resoHeight, false);
42927
+ (_a2 = this.renderer) == null ? void 0 : _a2.setSize(resoWidth, resoHeight, false);
42927
42928
  }
42928
42929
  return needResize;
42929
42930
  }
42930
42931
  initGemstoneDependencies() {
42931
- var _a;
42932
+ var _a2;
42932
42933
  rgbeLoader.load(
42933
42934
  "https://sprie-jarvis-public.s3.eu-west-2.amazonaws.com/environment_gemstones.hdr",
42934
42935
  (reflectionMap) => {
@@ -42943,7 +42944,7 @@ bool bvhIntersectFirstHit(
42943
42944
  gemstoneMaterial.uniforms.resolution.value = this.canvasSize;
42944
42945
  const temp5 = {};
42945
42946
  const isCubeMap = isCubeTexture(envMap);
42946
- const w2 = (isCubeMap ? (_a = envMap == null ? void 0 : envMap.image[0]) == null ? void 0 : _a.width : envMap == null ? void 0 : envMap.image.width) ?? 1024;
42947
+ const w2 = (isCubeMap ? (_a2 = envMap == null ? void 0 : envMap.image[0]) == null ? void 0 : _a2.width : envMap == null ? void 0 : envMap.image.width) ?? 1024;
42947
42948
  const cubeSize = w2 / 4;
42948
42949
  const _lodMax = Math.floor(Math.log2(cubeSize));
42949
42950
  const _cubeSize = Math.pow(2, _lodMax);
@@ -43384,11 +43385,11 @@ bool bvhIntersectFirstHit(
43384
43385
  composer.addPass(renderPass);
43385
43386
  composer.addPass(outputPass);
43386
43387
  const animate = () => {
43387
- var _a;
43388
+ var _a2;
43388
43389
  controls.update();
43389
43390
  if (this.resizeRenderer()) {
43390
43391
  this.camera.aspect = this.canvas.clientWidth / this.canvas.clientHeight;
43391
- (_a = this.camera) == null ? void 0 : _a.updateProjectionMatrix();
43392
+ (_a2 = this.camera) == null ? void 0 : _a2.updateProjectionMatrix();
43392
43393
  }
43393
43394
  const initialBackground = this.scene.background;
43394
43395
  this.scene.background = null;
@@ -43559,9 +43560,9 @@ bool bvhIntersectFirstHit(
43559
43560
  const orgName = (settings == null ? void 0 : settings.orgName) || "";
43560
43561
  reactExports.useEffect(() => {
43561
43562
  (async () => {
43562
- var _a;
43563
+ var _a2;
43563
43564
  configurator.current = new ThreeDConfigurator();
43564
- await ((_a = configurator.current) == null ? void 0 : _a.Init(apiService2.apiKey));
43565
+ await ((_a2 = configurator.current) == null ? void 0 : _a2.Init(apiService2.apiKey));
43565
43566
  const apiRes = await apiService2.FetchAssetBySKUOrBarcode({
43566
43567
  sku,
43567
43568
  barcode: null
@@ -51257,8 +51258,8 @@ bool bvhIntersectFirstHit(
51257
51258
  });
51258
51259
  let CustomEventEmitter = _CustomEventEmitter2;
51259
51260
  const ShopifyConfig = {
51260
- getCartUrl: window.Shopify.routes.root + "/cart.js",
51261
- addToCartUrl: window.Shopify.routes.root + "/cart/add.js"
51261
+ getCartUrl: ((_a = window.Shopify) == null ? void 0 : _a.routes.root) + "/cart.js",
51262
+ addToCartUrl: ((_b = window.Shopify) == null ? void 0 : _b.routes.root) + "/cart/add.js"
51262
51263
  };
51263
51264
  const configShopify = Object.freeze(ShopifyConfig);
51264
51265
  class ShopifyServiceFactory {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perceptimagery/dita-configurator-staging",
3
- "version": "0.2.1304",
3
+ "version": "0.2.1305",
4
4
  "author": "Rohan Satpute <rohan@perceptimagery.com>",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",