@aidenvigue/tresjs-core
Version:
Declarative ThreeJS using Vue Components
89 lines (88 loc) • 2.97 kB
TypeScript
import type { WebGLRendererParameters, ColorSpace, ShadowMapType, ToneMapping } from 'three';
import { type TresContext } from '../composables';
import type { RendererPresetsType } from '../composables/useRenderer/const';
import type { TresCamera } from '../types/';
export interface TresCanvasProps extends Omit<WebGLRendererParameters, 'canvas'> {
shadows?: boolean;
clearColor?: string;
toneMapping?: ToneMapping;
shadowMapType?: ShadowMapType;
useLegacyLights?: boolean;
outputColorSpace?: ColorSpace;
toneMappingExposure?: number;
camera?: TresCamera;
preset?: RendererPresetsType;
windowSize?: boolean;
useWindowPointer?: boolean;
disableRender?: boolean;
}
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TresCanvasProps>, {
alpha: undefined;
depth: undefined;
shadows: undefined;
stencil: undefined;
antialias: undefined;
windowSize: undefined;
useWindowPointer: undefined;
disableRender: undefined;
useLegacyLights: undefined;
preserveDrawingBuffer: undefined;
logarithmicDepthBuffer: undefined;
failIfMajorPerformanceCaveat: undefined;
}>, {
context: import("vue").ShallowRef<TresContext | null>;
dispose: () => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TresCanvasProps>, {
alpha: undefined;
depth: undefined;
shadows: undefined;
stencil: undefined;
antialias: undefined;
windowSize: undefined;
useWindowPointer: undefined;
disableRender: undefined;
useLegacyLights: undefined;
preserveDrawingBuffer: undefined;
logarithmicDepthBuffer: undefined;
failIfMajorPerformanceCaveat: undefined;
}>>>, {
alpha: boolean;
antialias: boolean;
stencil: boolean;
preserveDrawingBuffer: boolean;
depth: boolean;
logarithmicDepthBuffer: boolean;
failIfMajorPerformanceCaveat: boolean;
shadows: boolean;
useLegacyLights: boolean;
windowSize: boolean;
disableRender: boolean;
useWindowPointer: boolean;
}, {}>, Readonly<{
default(): any;
}> & {
default(): any;
}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_Prettify<T> = {
[K in keyof T]: T[K];
} & {};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};