From b6dd8f356cceb275b1d7e764034f9eec7899f6ce Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Wed, 15 May 2024 16:54:44 +0200 Subject: [PATCH 1/2] USDZExporter: Add ar and includeAnchoringProperties options --- types/three/examples/jsm/exporters/USDZExporter.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/three/examples/jsm/exporters/USDZExporter.d.ts b/types/three/examples/jsm/exporters/USDZExporter.d.ts index bb2746490..19b947f29 100644 --- a/types/three/examples/jsm/exporters/USDZExporter.d.ts +++ b/types/three/examples/jsm/exporters/USDZExporter.d.ts @@ -1,6 +1,8 @@ import { Object3D } from "three"; export interface USDZExporterOptions { + ar?: { anchoring: { type: "plane" }; planeAnchoring: { alignment: "horizontal" | "vertical" | "any" } }; + includeAnchoringProperties?: boolean; quickLookCompatible?: boolean; maxTextureSize?: number; } From f357ab28fc7f26853d3df2fb398a49a45d34ddeb Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Fri, 17 May 2024 17:33:03 -0400 Subject: [PATCH 2/2] Update USDZExporter.d.ts --- types/three/examples/jsm/exporters/USDZExporter.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/three/examples/jsm/exporters/USDZExporter.d.ts b/types/three/examples/jsm/exporters/USDZExporter.d.ts index 19b947f29..064fc1ad3 100644 --- a/types/three/examples/jsm/exporters/USDZExporter.d.ts +++ b/types/three/examples/jsm/exporters/USDZExporter.d.ts @@ -1,10 +1,10 @@ import { Object3D } from "three"; export interface USDZExporterOptions { - ar?: { anchoring: { type: "plane" }; planeAnchoring: { alignment: "horizontal" | "vertical" | "any" } }; - includeAnchoringProperties?: boolean; - quickLookCompatible?: boolean; - maxTextureSize?: number; + ar?: { anchoring: { type: "plane" }; planeAnchoring: { alignment: "horizontal" | "vertical" | "any" } } | undefined; + includeAnchoringProperties?: boolean | undefined; + quickLookCompatible?: boolean | undefined; + maxTextureSize?: number | undefined; } export class USDZExporter {