UNPKG

@yaelg/tresjs-core

Version:

Declarative ThreeJS using Vue Components

19 lines (18 loc) 682 B
import type { ColorRepresentation } from 'three'; import { Vector3, Color } 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;