
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@planningcenter/react-trianglify
Advanced tools
npm install --save @planningcenter/react-trianglify
or
yarn add @planningcenter/react-trianglify
| Prop | Type | Default | Notes |
|---|---|---|---|
| width | number | 500 | Specify the width in pixels of the pattern to generate. |
| height | number | 300 | Specify the height in pixels of the pattern to generate. |
| cellSize | number | 50 | Specify the size in pixels of the mesh used to generate triangles. |
| variance | number | 0.75 | Decimal value between 0 and 1. Specify the amount of randomness used when generating triangles. |
| seed | string | null | Seeds the random number generator to create repeatable patterns. |
| xColors | false, string or array of CSS-formatted colors | "random" | Valid string values are 'random', or the name of a colorbrewer palette (i.e. 'YlGnBu' or 'RdBu'). When set to 'random', a gradient will be randomly selected from the colorbrewer library. Valid array values should specify the color stops in any CSS format (i.e. ['#000000', '#4CAFE8', '#FFFFFF']). |
| yColors | False, string or array of CSS-formatted colors | "match" | When set to 'match' the x-axis color gradient will be used on both axes. Otherwise, accepts the same options as xColors. |
| colorSpace | string | "lab" | Supported values are rgb, hsv, hsl, hsi, lab and hcl. |
| fill | boolean | true | Specifies whether the polygons generated by Trianglify should be filled in. |
| strokeWidth | number | 0 | Specify the width of the strokes used to outline the polygons. |
| className | string | " " | append classes to SVG wrapper div |
For more detailed information on Trianglify's expected props, click here.
import React from "react";
import Trianglify from "@planningcenter/react-trianglify";
function App() {
return (
<Trianglify height={200} width={350} variance={0.5} />
)
}
FAQs
a simple React wrapper for Trianglify
We found that @planningcenter/react-trianglify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.