import { GpuShaderDefinition } from '../../gpu/porters'; import { transformPosition, transformColor } from '../../utilities/transformations'; import { ColorStop } from '../../utilities/colorStops'; import { BoundingBoxOrigin } from '../../types'; export interface ComponentProps { /** * Reference edge the center position is measured from (center default). Lets you pin the shape relative to a corner or the canvas centre. * * @default "center" */ origin: BoundingBoxOrigin; /** * Center position of the heatmap shape * * Accepts `{ x, y }` objects with values from 0 to 1, or CSS positions like `top center`. * @default {"x":0.5,"y":0.5} */ center: Parameters[0]; /** * Scale of the heatmap shape (1 = default size) * * Accepts a number between 0.1 and 3. * @default 1 */ scale: number; /** * Rotation of the heatmap shape in degrees * * Accepts a number between 0 and 360. * @default 0 */ rotation: number; /** * Cold color (used when no gradient stops are set) * * Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`). * @default "#02010f" */ colorA: Parameters[0]; /** * Hot color (used when no gradient stops are set) * * Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`). * @default "#f9e25f" */ colorB: Parameters[0]; stops: ColorStop[] | null; /** * Color space for the heat ramp interpolation * * Accepts one of the predefined option values. * @default "oklab" */ colorSpace: string; /** * Heat filling the inside of the shape * * @default 0.4 */ innerGlow: number; /** * Heat radiating beyond the silhouette * * @default 0.2 */ outerGlow: number; /** * Heat concentrated along the shape boundary * * @default 0.5 */ contour: number; /** * Direction the heat waves travel, in degrees * * Accepts a number between 0 and 360. * @default 90 */ angle: number; /** * Speed of the flowing heat. 0 pauses. * * Accepts a number between 0 and 4. * @default 1 */ speed: number; /** * Serialized shape configuration (JSON) * * @default "DEFAULT_SHAPE_CONFIG" */ shape: string | Record; /** * URL to a pre-generated SDF .bin file * * @default "" */ shapeSdfUrl: string; /** * Active SDF shape type * * @default "" */ shapeType: string; } export declare const componentDefinition: GpuShaderDefinition; export default componentDefinition; //# sourceMappingURL=index.d.ts.map