@tresjs/core 4.3.2 → 4.3.4

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.
@@ -76,7 +76,9 @@ declare const __VLS_component: import('vue').DefineComponent<TresCanvasProps, {
76
76
  windowSize: boolean;
77
77
  renderMode: "always" | "on-demand" | "manual";
78
78
  enableProvideBridge: boolean;
79
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLCanvasElement>;
79
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
80
+ canvas: HTMLCanvasElement;
81
+ }, HTMLCanvasElement>;
80
82
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
81
83
  export default _default;
82
84
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1080,7 +1080,7 @@ export declare const useCamera: ({ sizes }: Pick<TresContext, "sizes"> & {
1080
1080
  validate: () => boolean;
1081
1081
  optimize: () => import('three').AnimationClip;
1082
1082
  clone: () => import('three').AnimationClip;
1083
- toJSON: (clip: import('three').AnimationClip) => any;
1083
+ toJSON: () => import('three').AnimationClipJSON;
1084
1084
  }[];
1085
1085
  userData: Record<string, any>;
1086
1086
  customDepthMaterial?: {
@@ -2435,7 +2435,7 @@ export declare const useCamera: ({ sizes }: Pick<TresContext, "sizes"> & {
2435
2435
  validate: () => boolean;
2436
2436
  optimize: () => import('three').AnimationClip;
2437
2437
  clone: () => import('three').AnimationClip;
2438
- toJSON: (clip: import('three').AnimationClip) => any;
2438
+ toJSON: () => import('three').AnimationClipJSON;
2439
2439
  }[];
2440
2440
  userData: Record<string, any>;
2441
2441
  customDepthMaterial?: {
@@ -3771,7 +3771,7 @@ export declare const useCamera: ({ sizes }: Pick<TresContext, "sizes"> & {
3771
3771
  validate: () => boolean;
3772
3772
  optimize: () => import('three').AnimationClip;
3773
3773
  clone: () => import('three').AnimationClip;
3774
- toJSON: (clip: import('three').AnimationClip) => any;
3774
+ toJSON: () => import('three').AnimationClipJSON;
3775
3775
  }[];
3776
3776
  userData: Record<string, any>;
3777
3777
  customDepthMaterial?: {
@@ -5352,7 +5352,7 @@ export declare const useCamera: ({ sizes }: Pick<TresContext, "sizes"> & {
5352
5352
  validate: () => boolean;
5353
5353
  optimize: () => import('three').AnimationClip;
5354
5354
  clone: () => import('three').AnimationClip;
5355
- toJSON: (clip: import('three').AnimationClip) => any;
5355
+ toJSON: () => import('three').AnimationClipJSON;
5356
5356
  }[];
5357
5357
  userData: Record<string, any>;
5358
5358
  customDepthMaterial?: {
@@ -6707,7 +6707,7 @@ export declare const useCamera: ({ sizes }: Pick<TresContext, "sizes"> & {
6707
6707
  validate: () => boolean;
6708
6708
  optimize: () => import('three').AnimationClip;
6709
6709
  clone: () => import('three').AnimationClip;
6710
- toJSON: (clip: import('three').AnimationClip) => any;
6710
+ toJSON: () => import('three').AnimationClipJSON;
6711
6711
  }[];
6712
6712
  userData: Record<string, any>;
6713
6713
  customDepthMaterial?: {
@@ -8043,7 +8043,7 @@ export declare const useCamera: ({ sizes }: Pick<TresContext, "sizes"> & {
8043
8043
  validate: () => boolean;
8044
8044
  optimize: () => import('three').AnimationClip;
8045
8045
  clone: () => import('three').AnimationClip;
8046
- toJSON: (clip: import('three').AnimationClip) => any;
8046
+ toJSON: () => import('three').AnimationClipJSON;
8047
8047
  }[];
8048
8048
  userData: Record<string, any>;
8049
8049
  customDepthMaterial?: {
@@ -1,13 +1,30 @@
1
1
  import { TresObject, TresPrimitive } from 'src/types';
2
- import { BufferGeometry, Camera, Fog, Light, Material, Object3D, Scene } from 'three';
2
+ import { BufferGeometry, Camera, Color, ColorRepresentation, Fog, Light, Material, Object3D, Scene, Layers } from 'three';
3
3
  export declare function und(u: unknown): u is undefined;
4
- export declare function arr(u: unknown): u is any[];
4
+ export declare function arr(u: unknown): u is Array<unknown>;
5
5
  export declare function num(u: unknown): u is number;
6
6
  export declare function str(u: unknown): u is string;
7
7
  export declare function bool(u: unknown): u is boolean;
8
8
  export declare function fun(u: unknown): u is (...args: any[]) => any;
9
9
  export declare function obj(u: unknown): u is Record<string | number | symbol, unknown>;
10
10
  export declare function object3D(u: unknown): u is Object3D;
11
+ export declare function color(u: unknown): u is Color;
12
+ export declare function colorRepresentation(u: unknown): u is ColorRepresentation;
13
+ interface VectorLike {
14
+ set: (...args: any[]) => void;
15
+ constructor?: (...args: any[]) => any;
16
+ }
17
+ export declare function vectorLike(u: unknown): u is VectorLike;
18
+ interface Copyable {
19
+ copy: (...args: any[]) => void;
20
+ constructor?: (...args: any[]) => any;
21
+ }
22
+ export declare function copyable(u: unknown): u is Copyable;
23
+ interface ClassInstance {
24
+ constructor?: (...args: any[]) => any;
25
+ }
26
+ export declare function classInstance(object: unknown): object is ClassInstance;
27
+ export declare function layers(u: unknown): u is Layers;
11
28
  export declare function camera(u: unknown): u is Camera;
12
29
  export declare function bufferGeometry(u: unknown): u is BufferGeometry;
13
30
  export declare function material(u: unknown): u is Material;
@@ -16,3 +33,4 @@ export declare function fog(u: unknown): u is Fog;
16
33
  export declare function scene(u: unknown): u is Scene;
17
34
  export declare function tresObject(u: unknown): u is TresObject;
18
35
  export declare function tresPrimitive(u: unknown): u is TresPrimitive;
36
+ export {};
@@ -1 +1 @@
1
- export declare function createRetargetingProxy<T extends Record<string | number | symbol, any>, K extends keyof T & string & symbol>(target: T, getters?: Record<string | number | symbol, (t: T) => unknown>, setters?: Partial<Record<K, (val: T[K], t: T, proxy: T, setTarget: (newTarget: T) => void) => boolean>>): T;
1
+ export declare function createRetargetingProxy<T extends Record<string | number | symbol, any>, K extends keyof T & string & symbol>(target: T, getters?: Record<string | number | symbol, (t: T) => unknown>, setters?: Record<K, (val: T[K], t: T, proxy: T, setTarget: (newTarget: T) => void) => boolean>): T;