Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
canvas-marquee
Advanced tools
a marquee component based on canvas
npm i canvas-marquee -S
import Marquee from 'canvas-marquee';
var textList = ['跑马灯', '666', '233333333',
'javascript', 'html', 'css', '前端框架', 'Vue', 'React',
'Angular', '测试跑马灯效果'
];
var opts = {
id:'canvas',
data:textList,
top:20,
offset:1,
gap:10,
font:'20px Arial',
color:'#339966'
};
var marquee = new Marquee(opts);
marquee.draw();
Parameter | Type | Default | Description |
---|---|---|---|
id | string | the canvas element’s id | |
data | string | the tests to show in canvas | |
top | function | text top offset in canvas | |
offset | string | 1 | text move step |
gap | number | 0 | text item gap |
color | string | text color | |
font | string | text font | |
start | string /number | left | text start point |
FAQs
canvas marquee
The npm package canvas-marquee receives a total of 2 weekly downloads. As such, canvas-marquee popularity was classified as not popular.
We found that canvas-marquee 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.