
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@tsparticles/preset-triangles
Advanced tools
tsParticles preset for creating a particles web created by link lines between them.
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/preset-triangles@3/tsparticles.preset.triangles.bundle.min.js"></script>
Once the scripts are loaded you can set up tsParticles like this:
(async () => {
await loadTrianglesPreset(tsParticles);
await tsParticles.load({
id: "tsparticles",
options: {
preset: "triangles",
},
});
})();
Important ⚠️
You can override all the options defining the properties like in any standard tsParticles installation.
tsParticles.load({
id: "tsparticles",
options: {
particles: {
shape: {
type: "square", // starting from v2, this require the square shape script
},
},
preset: "triangles",
},
});
Like in the sample above, the circles will be replaced by squares.
Checkout the documentation in the component library repository and call the loadTrianglesPreset function instead
of loadFull, loadSlim or similar functions.
The options shown above are valid for all the component libraries.
flowchart TD
subgraph i [Interactions]
subgraph ip [Particles]
ipl[Links]
end
end
bb[tsParticles Basic] --> i
subgraph pr [Presets]
prt[Triangles]
end
bb & ipl --> prt
FAQs
tsParticles triangles preset
The npm package @tsparticles/preset-triangles receives a total of 224 weekly downloads. As such, @tsparticles/preset-triangles popularity was classified as not popular.
We found that @tsparticles/preset-triangles demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.