
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@types/simpleheat
Advanced tools
TypeScript definitions for simpleheat
npm install --save @types/simpleheat
This package contains type definitions for simpleheat (https://github.com/mourner/simpleheat).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/simpleheat.
declare namespace simpleheat {
interface Instance {
/**
* Set heatmap data points
*
* @param points Array of data points containing 2D coordinates and intensity value (defaulted to 1)
* @example [[0, 0, 1.0], [1, 0, 2.0], [1, 1, 0.5], ...]
*/
data(points: Array<[number, number] | [number, number, number]>): this;
/**
* Set max data value
*
* @param maxValue Maximum data value (defaulted to 1)
*/
max(maxValue: number): this;
/**
* Add a data point
*
* @param point Array of 2D coordinates and intensity value (defaulted to 1)
*/
add(point: [number, number] | [number, number, number]): this;
/**
* Clear canvas data
*/
clear(): this;
/**
* Set point radius and optional blur radius
*
* @param radius Radius (defaulted to 25)
* @param blur Optional blur radius (defaulted to 15)
*/
radius(r: number, blur?: number): this;
/**
* Update drawing, in case canvas size changed
*/
resize(): this;
/**
* Set gradient colors as {<stop>: '<color>'}
* Thresholds are between 0.0 and 1.0.
*
* @param gradient Thresholds with associated colors to generate the gradient
* @example {
* 0.4: 'blue',
* 0.6: 'cyan',
* 0.7: 'lime',
* 0.8: 'yellow',
* 1.0: 'red'
* }
*/
gradient(gradient: { [key: number]: string }): this;
/**
* Draw the heatmap
*
* @param minOpacity Optional param to set the opacity of the heatmap (defaulted to 0.05)
*/
draw(minOpacity?: number): this;
}
interface Static {
new(canvas: HTMLCanvasElement): Instance;
(canvas: HTMLCanvasElement): Instance;
}
}
declare const simpleheat: simpleheat.Static;
export = simpleheat;
export as namespace simpleheat;
These definitions were written by Tristan de Guillebon.
FAQs
TypeScript definitions for simpleheat
The npm package @types/simpleheat receives a total of 1,893 weekly downloads. As such, @types/simpleheat popularity was classified as popular.
We found that @types/simpleheat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.