@tresjs/cientos 0.3.0 → 1.0.0

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.
@@ -0,0 +1,9 @@
1
+ export declare const GLTFModel: import("vue").DefineComponent<{
2
+ path: StringConstructor;
3
+ draco: BooleanConstructor;
4
+ }, () => null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
5
+ path: StringConstructor;
6
+ draco: BooleanConstructor;
7
+ }>>, {
8
+ draco: boolean;
9
+ }>;
@@ -0,0 +1,16 @@
1
+ import { GLTFLoader } from 'three-stdlib';
2
+ import { Object3D } from 'three';
3
+ export interface GLTFLoaderOptions {
4
+ draco?: boolean;
5
+ decoderPath?: string;
6
+ }
7
+ export interface TresObject extends Object3D {
8
+ geometry: THREE.BufferGeometry;
9
+ material: THREE.Material;
10
+ }
11
+ export interface GLTFResult {
12
+ nodes: Array<TresObject>;
13
+ materials: Array<THREE.Material>;
14
+ scene: THREE.Scene;
15
+ }
16
+ export declare function useGLTF(path: string | string[], options?: GLTFLoaderOptions, extendLoader?: (loader: GLTFLoader) => void): Promise<GLTFResult>;
@@ -1,6 +1,10 @@
1
1
  import { Pane } from 'tweakpane';
2
+ declare type TweakPane = Pane & {
3
+ addBlade(blade: any): void;
4
+ };
2
5
  export declare const useTweakPane: (selector?: string) => {
3
- pane: Pane;
6
+ pane: TweakPane;
4
7
  fpsGraph: any;
5
8
  disposeTweakPane: () => void;
6
9
  };
10
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  import OrbitControls from './core/OrbitControls.vue';
2
2
  import { useTweakPane } from './core/useTweakPane';
3
- export { OrbitControls, useTweakPane };
3
+ import { GLTFModel } from './core/useGLTF/component';
4
+ export * from './core/useGLTF';
5
+ export { OrbitControls, useTweakPane, GLTFModel };