@neurodyn/react-room-viewer 0.0.25 → 0.0.26

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 +17 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7423,6 +7423,19 @@ async function inferenceControllerRunRoomPlanesRaw(data, config = {}) {
7423
7423
  });
7424
7424
  return res.data;
7425
7425
  }
7426
+ async function layoutControllerReadLayoutConfig(headers, config = {}) {
7427
+ const { client: request = node_client_node_client, ...requestConfig } = config;
7428
+ const res = await request({
7429
+ method: "POST",
7430
+ url: "/layout/GetConfig",
7431
+ ...requestConfig,
7432
+ headers: {
7433
+ ...headers,
7434
+ ...requestConfig.headers
7435
+ }
7436
+ });
7437
+ return res.data;
7438
+ }
7426
7439
  async function publicApiControllerActivateWallart(params, config = {}) {
7427
7440
  const { client: request = node_client_node_client, ...requestConfig } = config;
7428
7441
  const res = await request({
@@ -17432,17 +17445,6 @@ function Room() {
17432
17445
  ]
17433
17446
  });
17434
17447
  }
17435
- async function layoutGetConfig(data, config = {}) {
17436
- const { client: request = client_client, ...requestConfig } = config;
17437
- const requestData = data;
17438
- const res = await request({
17439
- method: "POST",
17440
- url: "/layout/GetConfig",
17441
- data: requestData,
17442
- ...requestConfig
17443
- });
17444
- return res.data;
17445
- }
17446
17448
  const HDR_NEUTRAL_LINK_TYPE = 'hdr_neutral';
17447
17449
  const ROOM_VIEWER_CONFIG_QUERY_KEY = [
17448
17450
  'room-viewer',
@@ -17462,7 +17464,7 @@ function getNeutralHdrUrl(config) {
17462
17464
  function RemoteNeutralHdrEnvironment() {
17463
17465
  const configQuery = react_query_useQuery({
17464
17466
  queryKey: ROOM_VIEWER_CONFIG_QUERY_KEY,
17465
- queryFn: ()=>layoutGetConfig(),
17467
+ queryFn: ()=>layoutControllerReadLayoutConfig(),
17466
17468
  staleTime: 1 / 0
17467
17469
  });
17468
17470
  if (configQuery.isPending) return null;
@@ -18014,6 +18016,9 @@ function AR({ className, buttonClassName, buttonLeadingIcon, buttonLabel, button
18014
18016
  clone.updateMatrix();
18015
18017
  clone.updateMatrixWorld(true);
18016
18018
  if (isIOS) {
18019
+ clone.rotation.set(-Math.PI / 2, 0, 0);
18020
+ clone.updateMatrix();
18021
+ clone.updateMatrixWorld(true);
18017
18022
  const usdzExporter = new USDZExporter();
18018
18023
  const usdzBuffer = await usdzExporter.parseAsync(clone, {
18019
18024
  ar: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@neurodyn/react-room-viewer",
3
3
  "type": "module",
4
- "version": "0.0.25",
4
+ "version": "0.0.26",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },