
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-bezier-spline-editor
Advanced tools
A modern bezier spline editor for react.
View demo here https://react-bezier-spline-editor.vercel.app/
pnpm install react-bezier-spline-editor
For next js
'use client';
import { BezierSplineEditor } from 'react-bezier-spline-editor/react';
import type { Point } from 'react-bezier-spline-editor/core';
function MyBezierSplineEditor() {
const [points, setPoints] = useState<Point[]>([
{ x: 0, y: 0 },
{ x: 0.25, y: 0.25 },
{ x: 0.75, y: 0.75 },
{ x: 1, y: 1 },
]);
return <BezierSplineEditor points={points} onPointsChange={setPoints} />;
}
Copy the code below for the same styling as the demo
<BezierSplineEditor
points={points}
onPointsChange={setPoints}
showPoints
backgroundLineProps={{
className: 'stroke-gray-200',
}}
indicatorProps={{
className: 'fill-current text-blue-400 animate-in fade-in',
}}
curveProps={{
className: 'stroke-blue-400 stroke-2 animate-in fade-in',
}}
controlPointLineProps={{
className: 'stroke-gray-400',
}}
containerProps={{
className: 'ring-1 rounded-lg shadow-md',
}}
anchorPointProps={{
r: 8,
className:
'fill-current text-blue-500 hover:text-blue-600 hover:stroke-sky-400 hover:stroke-2 transition-colors',
}}
controlPointProps={{
r: 6,
className:
'fill-current text-transparent hover:text-blue-300 stroke-sky-400 stroke-2 transition-colors',
}}
/>
Calculating the spline's Y value based on X
import { getYForX } from 'react-bezier-spline-editor/core';
const yAtHalfX = getYForX(points, 0.5);
FAQs
A modern bezier spline editor for react.
The npm package react-bezier-spline-editor receives a total of 115 weekly downloads. As such, react-bezier-spline-editor popularity was classified as not popular.
We found that react-bezier-spline-editor 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.