@tresjs/core
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -7,4 +7,4 @@ import { PerspectiveCamera, OrthographicCamera } from 'three'; | ||
} | ||
export declare type Camera = PerspectiveCamera | OrthographicCamera; | ||
export declare type CameraState = { | ||
export type Camera = PerspectiveCamera | OrthographicCamera; | ||
export type CameraState = { | ||
cameras: Array<Camera>; | ||
@@ -11,0 +11,0 @@ }; |
@@ -5,10 +5,10 @@ import { Object3D } from 'three'; | ||
} | ||
export declare type LoaderProto<T> = new (...args: any) => TresLoader<T extends unknown ? any : T>; | ||
export declare type LoaderReturnType<T, L extends LoaderProto<T>> = T extends unknown ? Awaited<ReturnType<InstanceType<L>['loadAsync']>> : T; | ||
export type LoaderProto<T> = new (...args: any) => TresLoader<T extends unknown ? any : T>; | ||
export type LoaderReturnType<T, L extends LoaderProto<T>> = T extends unknown ? Awaited<ReturnType<InstanceType<L>['loadAsync']>> : T; | ||
export declare function trasverseObjects(object: Object3D): { | ||
[key: string]: any; | ||
}; | ||
export declare type Extensions<T extends { | ||
export type Extensions<T extends { | ||
prototype: LoaderProto<any>; | ||
}> = (loader: T['prototype']) => void; | ||
export declare function useLoader<T extends LoaderProto<T>, U extends string | string[]>(Loader: T, url: U, extensions?: Extensions<T>, onProgress?: (event: ProgressEvent<EventTarget>) => void, cb?: (proto: TresLoader<T>) => void): Promise<U extends any[] ? LoaderReturnType<T, T>[] : LoaderReturnType<T, T>>; |
@@ -86,2 +86,2 @@ import { MaybeComputedRef, MaybeElementRef } from '@vueuse/core'; | ||
}; | ||
export declare type UseRendererReturn = ReturnType<typeof useRenderer>; | ||
export type UseRendererReturn = ReturnType<typeof useRenderer>; |
/** | ||
* name: @tresjs/core | ||
* version: v1.6.0 | ||
* version: v1.6.1 | ||
* (c) 2023 | ||
@@ -102,3 +102,6 @@ * description: Declarative ThreeJS using Vue Components | ||
function ve(e) { | ||
const { logError: n } = G(); | ||
const { | ||
/* logMessage, */ | ||
logError: n | ||
} = G(); | ||
function r(t, i) { | ||
@@ -435,3 +438,3 @@ O(t) && O(i) && Object.entries(t).forEach(([u, a]) => { | ||
} | ||
}), ut = Symbol("UseTresState"), rt = "1.6.0", lt = { | ||
}), ut = Symbol("UseTresState"), rt = "1.6.1", lt = { | ||
install(e, n) { | ||
@@ -438,0 +441,0 @@ const r = (n == null ? void 0 : n.prefix) || "Tres"; |
import { Vector3, Color } from 'three'; | ||
export declare type SizeFlexibleParams = number[] | { | ||
export type SizeFlexibleParams = number[] | { | ||
width: number; | ||
@@ -15,4 +15,4 @@ height: number; | ||
} | ||
export declare type VectorFlexibleParams = Vector3 | number[] | Vector3PropInterface | number; | ||
export type VectorFlexibleParams = Vector3 | number[] | Vector3PropInterface | number; | ||
export declare function normalizeVectorFlexibleParam(value: VectorFlexibleParams): Array<number>; | ||
export declare function normalizeColor(value: Color | Array<number> | string | number): Color; |
{ | ||
"name": "@tresjs/core", | ||
"description": "Declarative ThreeJS using Vue Components", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"type": "module", | ||
@@ -33,7 +33,8 @@ "author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)", | ||
"dependencies": { | ||
"three": "^0.148.0", | ||
"vue": "^3.2.45" | ||
"three": "latest", | ||
"vue": "^3.2.47" | ||
}, | ||
"peerDependencies": { | ||
"three": "latest" | ||
"three": "latest", | ||
"@vueuse/core": "^9.12.0" | ||
}, | ||
@@ -43,21 +44,21 @@ "devDependencies": { | ||
"@tresjs/cientos": "^1.6.0", | ||
"@types/three": "^0.148.0", | ||
"@types/three": "latest", | ||
"@vitejs/plugin-vue": "^4.0.0", | ||
"@vitest/coverage-c8": "^0.25.8", | ||
"@vitest/ui": "^0.25.8", | ||
"@vueuse/core": "^9.11.0", | ||
"gl": "6.0.1", | ||
"happy-dom": "^8.1.0", | ||
"kolorist": "^1.6.0", | ||
"pathe": "^1.0.0", | ||
"release-it": "^15.5.1", | ||
"@vitest/coverage-c8": "^0.28.4", | ||
"@vitest/ui": "^0.28.4", | ||
"@vueuse/core": "^9.12.0", | ||
"gl": "6.0.2", | ||
"happy-dom": "^8.2.6", | ||
"kolorist": "^1.7.0", | ||
"pathe": "^1.1.0", | ||
"release-it": "^15.6.0", | ||
"rollup-plugin-analyzer": "^4.0.0", | ||
"rollup-plugin-visualizer": "^5.8.3", | ||
"unplugin-vue-components": "^0.22.12", | ||
"vite": "^4.0.4", | ||
"rollup-plugin-visualizer": "^5.9.0", | ||
"unplugin-vue-components": "^0.23.0", | ||
"vite": "^4.1.1", | ||
"vite-plugin-banner": "^0.7.0", | ||
"vite-plugin-dts": "^1.7.1", | ||
"vite-plugin-glsl": "^1.1.0", | ||
"vite-plugin-require-transform": "^1.0.4", | ||
"vitest": "^0.25.8", | ||
"vite-plugin-dts": "^1.7.2", | ||
"vite-plugin-glsl": "^1.1.2", | ||
"vite-plugin-require-transform": "^1.0.9", | ||
"vitest": "^0.28.4", | ||
"vue-demi": "^0.13.11" | ||
@@ -64,0 +65,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
911
45350
4
+ Added@types/web-bluetooth@0.0.16(transitive)
+ Added@vueuse/core@9.13.0(transitive)
+ Added@vueuse/metadata@9.13.0(transitive)
+ Added@vueuse/shared@9.13.0(transitive)
+ Addedthree@0.171.0(transitive)
+ Addedvue-demi@0.14.10(transitive)
- Removedthree@0.148.0(transitive)
Updatedthree@latest
Updatedvue@^3.2.47