
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
line-path-fillet
Advanced tools
A line path filleting micro-library
Check it out in action: https://hassoncs.github.io/line-path-fillet/
This library's primary purpose is to fillet (round) the corner between two line segments.
If the line segments are too small to form a fillet arc at the requested radius, the largest possible radius will be used.
// With four points, A, B, C, and D specified as x,y arrays of length 2:
const pointA = [0, 0];
const pointB = [0, 0];
const pointC = [0, 0];
const pointD = [0, 0];
// First we find the intersection point of the line segments
// This will project the lines as needed in order to find
// the first possible intersection point.
// It will return null if the lines will never intersect.
const intersectionPoint = findIntersection(
pointA[0],
pointA[1],
pointB[0],
pointB[1],
pointC[0],
pointC[1],
pointD[0],
pointD[1],
);
if (!intersectionPoint) return;
const radius = 100;
const filletData = filletCorner(
pointA,
intersectionPoint,
pointC,
radius,
);
// Now we have everything we need to draw the arc:
const {
radius, // The radius we ended up using (might be smaller than the specified radius)
angleA, // Angle from the fillet circle center to the tangent point on line A->I
angleB, // Angle from the fillet circle center to the tangent point on line B->I
tanPointA, // Arc start point
tanPointB, // Arc end point
circleCenter, // Center point of the fillet circle
} = filletData;
npm run build
npm run publish
cd demo-app
npm install
npm run start
# To build the app
npm run build
# Release it to github pages
npm run deploy
FAQs
A line path filleting micro-library
The npm package line-path-fillet receives a total of 1 weekly downloads. As such, line-path-fillet popularity was classified as not popular.
We found that line-path-fillet 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.