
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@daeinc/geom
Advanced tools
A collection of gemetry-related functions. Breaking changes expected in the future.
npm i @daeinc/geom
then
import { blendPath } from "@daeinc/geom";
type Pt = number[];
type Pts = number[][];
type GenericObject = Record<string, any>;
const blendPath: (
path1: Pts,
path2: Pts,
numBlends: number,
guidePath?: Pts
) => number[][][];
const createShapeFunc: (
pts: Pts,
anchor?: Pt
) => (x: number, y: number, w: number, h: number) => Pts;
const dist: (pt1: Pt, pt2: Pt) => number;
const distSq: (pt1: Pt, pt2: Pt) => number;
const extrudePath: (
path: Pts,
numPointsToExtrude: number,
offset: Pt,
mode?: "start" | "end" | "both",
shapeFunc?: () => Pts
) => number[][];
const generateSmoothPath: (pts: Pts, smoothFactor: number) => number[][];
const getPathLength: (path: Pts) => number;
const getSegmentLengths: (pts: Pts) => number[];
const interpolateArray: (
arrStart: number[],
arrTarget: number[],
t: number
) => number[];
const interpolatePath: (
pathStart: Pts,
pathTarget: Pts,
t: number
) => number[][];
const interpolateObject: (
objStart: GenericObject,
objTarget: GenericObject,
t: number
) => GenericObject;
const interpolate: <T>(
start: T,
target: T,
t: number
) => number | GenericObject | T;
const projectPointOnLine: (pt: Pt, line: Pts) => Pt;
const reflectPoint: (pt: Pt, axis: Pt | Pts) => Pt;
const reflectPath: (pts: Pts, axis: Pt | Pts) => Pts;
const scalePoint: (pt: Pt, size: Pt) => Pt;
const scalePath: (path: Pts, size: Pt) => Pts;
Float32Array
(gl-vec2
) and regular arrayMIT
0.4.0
getSegmentLengths()
FAQs
Geometry utilities
The npm package @daeinc/geom receives a total of 50 weekly downloads. As such, @daeinc/geom popularity was classified as not popular.
We found that @daeinc/geom demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.