
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
liquid-tank
Advanced tools
Simple widget for displaying data from liquids.
Property | Description | Type | Default |
---|---|---|---|
min | Minimum value | Number | 0 |
max | Maximum value | Number | 1 |
segments | List of segments. | Array | [ ] |
dark | When set to true it adjusts colors for a darker background. | Boolean | false |
fontFamily | Font family for the displayed value | String | Arial |
fontSize | Font size for the displayed value | Number | 20 |
valueFormatter | Function used to format the displayed value. Must return a string. | Function |
var element = document.getElementById("widget");
var liquidTank = new LiquidTank(element, {
min: 0,
max: 100,
segments: [
{
color: "#00FF00",
startValue: 0,
endValue: 90
},
{
color: "#FF0000",
startValue: 90,
endValue: 100
}
],
dark: false,
fontFamily: 'Arial',
fontSize: 20,
valueFormatter: function (value) {
return value + ' L';
}
});
liquidTank.setValue(80);
FAQs
Simple widget for displaying data from liquids.
The npm package liquid-tank receives a total of 16 weekly downloads. As such, liquid-tank popularity was classified as not popular.
We found that liquid-tank 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.