diff --git a/src/plugins/three/GLTFExtensionsPlugin.d.ts b/src/plugins/three/GLTFExtensionsPlugin.d.ts index b7c64b50..d2d56ad5 100644 --- a/src/plugins/three/GLTFExtensionsPlugin.d.ts +++ b/src/plugins/three/GLTFExtensionsPlugin.d.ts @@ -5,14 +5,14 @@ import { GLTFLoaderPlugin, GLTFParser } from 'three/examples/jsm/loaders/GLTFLoa export class GLTFExtensionsPlugin { constructor( options: { - metadata: boolean, - rtc: boolean, + metadata?: boolean, + rtc?: boolean, - plugins: Array<( parser: GLTFParser ) => GLTFLoaderPlugin>, + plugins?: Array<( parser: GLTFParser ) => GLTFLoaderPlugin>, - dracoLoader: DRACOLoader | null, - ktxLoader: KTX2Loader | null, - autoDispose: boolean, + dracoLoader?: DRACOLoader | null, + ktxLoader?: KTX2Loader | null, + autoDispose?: boolean, } ); } diff --git a/src/plugins/three/GoogleCloudAuthPlugin.d.ts b/src/plugins/three/GoogleCloudAuthPlugin.d.ts index b117e4a5..e98ed4ff 100644 --- a/src/plugins/three/GoogleCloudAuthPlugin.d.ts +++ b/src/plugins/three/GoogleCloudAuthPlugin.d.ts @@ -1,5 +1,10 @@ export class GoogleCloudAuthPlugin { - constructor( options : { apiToken: string, autoRefreshToken?: boolean } ); + constructor( options: { + apiToken: string, + autoRefreshToken?: boolean, + logoUrl?: string, + useRecommendedSettings?: boolean; + } ); } diff --git a/src/plugins/three/ReorientationPlugin.d.ts b/src/plugins/three/ReorientationPlugin.d.ts index d495de55..295bdc19 100644 --- a/src/plugins/three/ReorientationPlugin.d.ts +++ b/src/plugins/three/ReorientationPlugin.d.ts @@ -1,12 +1,12 @@ export class ReorientationPlugin { - constructor( options: { - up: '+x' | '-x' | '+y' | '-y' | '+z' | '-z', - recenter: boolean, + constructor( options?: { + up?: '+x' | '-x' | '+y' | '-y' | '+z' | '-z', + recenter?: boolean, - lat: number | null, - lon: number | null, - height: number, + lat?: number | null, + lon?: number | null, + height?: number, } ); } diff --git a/src/plugins/three/TileCompressionPlugin.d.ts b/src/plugins/three/TileCompressionPlugin.d.ts index d565a544..ee893188 100644 --- a/src/plugins/three/TileCompressionPlugin.d.ts +++ b/src/plugins/three/TileCompressionPlugin.d.ts @@ -2,17 +2,17 @@ import { TypedArray } from 'three'; export class TileCompressionPlugin { - constructor( options: { - generateNormals: boolean, - disableMipmaps: boolean, - compressIndex: boolean, - compressNormals: boolean, - compressUvs: boolean, - compressPosition: boolean, + constructor( options?: { + generateNormals?: boolean, + disableMipmaps?: boolean, + compressIndex?: boolean, + compressNormals?: boolean, + compressUvs?: boolean, + compressPosition?: boolean, - uvType: TypedArray, - normalType: TypedArray, - positionType: TypedArray, + uvType?: TypedArray, + normalType?: TypedArray, + positionType?: TypedArray, } ); } diff --git a/src/plugins/three/UnloadTilesPlugin.d.ts b/src/plugins/three/UnloadTilesPlugin.d.ts index 5d4ec452..0c871e02 100644 --- a/src/plugins/three/UnloadTilesPlugin.d.ts +++ b/src/plugins/three/UnloadTilesPlugin.d.ts @@ -1,8 +1,8 @@ export class UnloadTilesPlugin { - constructor( options: { - delay: number, - bytesTarget: number, + constructor( options?: { + delay?: number, + bytesTarget?: number, } ); } diff --git a/src/plugins/three/fade/TilesFadePlugin.d.ts b/src/plugins/three/fade/TilesFadePlugin.d.ts index 34427d17..dcbd76ad 100644 --- a/src/plugins/three/fade/TilesFadePlugin.d.ts +++ b/src/plugins/three/fade/TilesFadePlugin.d.ts @@ -1,9 +1,9 @@ export class TilesFadePlugin { - constructor( options: { - maximumFadeOutTiles: number, - fadeRootTiles: boolean, - fadeDuration: number, + constructor( options?: { + maximumFadeOutTiles?: number, + fadeRootTiles?: boolean, + fadeDuration?: number, } ); }