mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Adding typings for THREE.Lut (#34122)
This commit is contained in:
Vendored
+1
@@ -43,6 +43,7 @@ export * from './three-FirstPersonControls';
|
||||
export * from './three-gltfexporter';
|
||||
export * from './three-gltfloader';
|
||||
export * from './three-lensflare';
|
||||
export * from './three-lut';
|
||||
export * from './three-mapcontrols';
|
||||
export * from './three-maskpass';
|
||||
export * from './three-mtlloader';
|
||||
|
||||
Vendored
+31
@@ -0,0 +1,31 @@
|
||||
// https://github.com/mrdoob/three.js/blob/master/examples/js/math/Lut.js
|
||||
|
||||
import { Color, Mesh, Vector3 } from './three-core';
|
||||
|
||||
export type ColorMapKeyword = 'rainbow'|'cooltowarm'|'blackbody'|'grayscale';
|
||||
|
||||
export class Lut {
|
||||
constructor(colormap: ColorMapKeyword, numberofcolors: number);
|
||||
|
||||
addColorMap(colormapName: string, arrayOfColors: Array<[number, string]>) : void;
|
||||
|
||||
changeColorMap(colormap: ColorMapKeyword): Lut;
|
||||
|
||||
changeNumberOfColors(numberofcolors: number): Lut;
|
||||
|
||||
copy(lut: Lut): void;
|
||||
|
||||
getColor(alpha: number): Color;
|
||||
|
||||
setLegendLayout(layout: 'horizontal'|'vertical'): void;
|
||||
|
||||
setLegendOff(): void;
|
||||
|
||||
setLegendOn(): Mesh;
|
||||
|
||||
setLegendPosition(position: Vector3): void;
|
||||
|
||||
setMax(max: number): void;
|
||||
|
||||
setMin(min: number): void;
|
||||
}
|
||||
Reference in New Issue
Block a user