diff --git a/dist/JSONSchema.d.ts b/dist/JSONSchema.d.ts deleted file mode 100644 index 51c8270..0000000 --- a/dist/JSONSchema.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -export declare class Convert { - static toPoly(json: string): JSONPoly; - static polyToJson(value: JSONPoly): string; -} -export interface JSONPoly { - name: string; - displayName: string; - authorName: string; - createTime: Date; - updateTime: Date; - formats: JSONPolyFormat[]; - thumbnail: JSONPolyResource; - license: string; - visibility: string; - presentationParams: JSONPolyPresentationParams; - remixInfo: JSONPolyRemixInfo; -} -export interface JSONPolyFormat { - root: JSONPolyResource; - formatComplexity: JSONPolyFormatComplexity; - formatType: string; - resources?: JSONPolyResource[]; -} -export interface JSONPolyFormatComplexity { - triangleCount?: string; -} -export interface JSONPolyResource { - relativePath: string; - url: string; - contentType: string; -} -export interface JSONPolyPresentationParams { - orientingRotation: JSONPolyOrientingRotation; - colorSpace: string; - backgroundColor: string; -} -export interface JSONPolyOrientingRotation { - w: number; -} -export interface JSONPolyRemixInfo { - sourceAsset: string[]; -} diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 84296db..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './viewer'; -export * from './loader'; -export * from './JSONSchema'; diff --git a/dist/loader.d.ts b/dist/loader.d.ts deleted file mode 100644 index d49be5e..0000000 --- a/dist/loader.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import CameraControls from "camera-controls"; -import { Scene, Camera } from "three"; -export declare class Loader { - private scene; - private tiltLoader; - private gltfLoader; - private legacygltf; - private sceneCamera; - private cameraControls; - private loadedModel?; - private loaded; - private updateableMeshes; - constructor(scene: Scene, sceneCamera: Camera, cameraControls: CameraControls); - update(deltaTime: number): void; - private initGltf; - private initTilt; - private initPolyGltf; - loadGLTF(url: string): void; - loadPolyAsset(assetID: string, format?: string): void; - loadPolyUrl(url: string, format?: string): void; - loadPolyTilt(url: string): void; - loadPolyGltf(url: string): void; -} diff --git a/dist/viewer.d.ts b/dist/viewer.d.ts deleted file mode 100644 index 606b619..0000000 --- a/dist/viewer.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import './css/style.scss'; -export declare class Viewer { - private icosa_frame?; - private icosa_viewer?; - constructor(frame?: HTMLElement); - private setupNavigation; - initViewer(): void; - loadGLTF(url: string): void; - loadPolyUrl(url: string): void; - loadPolyAsset(assetID: string): void; - loadPolyTilt(url: string): void; - loadPolyGLTF(url: string): void; -} diff --git a/tsconfig.json b/tsconfig.json index 04ca0ad..e596336 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,8 +2,6 @@ "compilerOptions": { "baseUrl": "src", "outDir": "./dist", - "declaration": true, - "declarationDir": "./dist", "target": "es5", "strict": true, "removeComments": true,