Skip to content

Commit

Permalink
Add the second argument of parse and its interface type to USDZExporter
Browse files Browse the repository at this point in the history
  • Loading branch information
0b5vr committed Dec 19, 2022
1 parent 40a4ed5 commit 815361e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion types/three/examples/jsm/exporters/USDZExporter.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
import { Object3D } from '../../../src/Three';

export interface USDZExporterOptions {
ar: {
anchoring: {
type: 'plane' | 'image' | 'face' | 'none';
};
planeAnchoring: {
alignment: 'horizontal' | 'vertical' | 'any';
};
};
}

export class USDZExporter {
constructor();

parse(scene: Object3D): Promise<Uint8Array>;
parse(scene: Object3D, options?: USDZExporterOptions): Promise<Uint8Array>;
}

0 comments on commit 815361e

Please sign in to comment.