@thi.ng/imgui
Version:
Immediate mode GUI with flexible state handling & data only shape output
32 lines • 1.03 kB
TypeScript
import type { Maybe } from "@thi.ng/api";
import type { Ramp } from "@thi.ng/ramp";
import { type Color, type ComponentOpts } from "../api.js";
export interface RampOpts extends Omit<ComponentOpts, "label"> {
ramp: Ramp<number>;
/**
* User defined interpolation mode. Only used to compute internal hash of
* ramp curve geometry, i.e. if the {@link RampOpts.ramp} interpolation
* method changes, so should this mode value.
*
* @defaultValue 0
*/
mode?: number;
/**
* Normalized snap/selection tolerance for ramp control point positions
*
* @defaultValue 0.05
*/
eps?: number;
/**
* Ramp resolution (number of vertices for area plot)
*
* @defaultValue 100
*/
samples?: number;
/**
* Optional fill color override (default: GUI text color)
*/
fill?: Color;
}
export declare const ramp: ({ gui, layout, id, ramp, mode, info, eps, samples, fill, }: RampOpts) => Maybe<Ramp<number>>;
//# sourceMappingURL=ramp.d.ts.map