Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@nightingale-elements/nightingale-heatmap
Advanced tools
[![Published on NPM](https://img.shields.io/npm/v/@nightingale-elements/nightingale-heatmap.svg)](https://www.npmjs.com/package/@nightingale-elements/nightingale-heatmap)
Nightingale Heatmap component is used to generate a heatmap visualisation.
The below example is using residues contacts data based on the distance.
<nightingale-heatmap
id="heatmap"
width="400"
height="400"
bottom-color="black"
top-color="white"
margin-left="50"
margin-bottom="50"
symmetric
></nightingale-heatmap>
symmetric: boolean (default: false)
It supports symmetric matrix.
top-color: string (default: 'yellow')
The heatmap can interpolate colors from the bottom value (0.0
) to its top (1.0
).
This attribute defines the color to paint the top (1.0
) value.
It follows the web standard defined in https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
bottom-color: string (default: "darkblue")
The heatmap can interpolate colors from the bottom value (0.0
) to its top (1.0
).
This attribute defines the color to paint the bottom (0.0
) value.
It follows the web standard defined in https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
x-label: string (default: "Residue")
Label to the legend in the X axix
y-label: string (default: "Residue")
Label to the legend in the X axix
data: Array
The data array is of the HeatmapData structure.
type HeatmapData = Array<
[
number, // X coordinate starting on 1
number, // Y coordinate starting on 1
number, // Value in that position. Between 0 and 1
]
>;
For instance:
[
[1, 1, 0.2],
[1, 2, 0.8],
[2, 2, 0.5],
];
change
Is dispatched when hovering over a point in the heatmap.
The detail
of the event is a HeatmapPoint
:
type HeatmapPoint = {
xPoint: number;
yPoint: number;
value: number | null;
};
Usage example:
heatmapElement.addEventListener("change", (evt) => {
console.log(evt.detail);
});
FAQs
[![Published on NPM](https://img.shields.io/npm/v/@nightingale-elements/nightingale-heatmap.svg)](https://www.npmjs.com/package/@nightingale-elements/nightingale-heatmap)
We found that @nightingale-elements/nightingale-heatmap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.