@tresjs/core
Version:
Declarative ThreeJS using Vue Components
18 lines (17 loc) • 653 B
TypeScript
import { ColorRepresentation, Color, Vector3 } from 'three';
export type SizeFlexibleParams = number[] | {
width: number;
height: number;
};
export interface Vector2PropInterface {
x?: number;
y?: number;
width?: number;
height?: number;
}
export interface Vector3PropInterface extends Vector2PropInterface {
z?: 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 | ColorRepresentation): Color;