UNPKG

@lifeart/gxt

Version:

<img align="right" width="95" height="95" alt="Philosopher’s stone, logo of PostCSS" src="./public/logo.png">

19 lines (17 loc) • 654 B
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;