@jbroll/jscad-fluent
Advanced tools
Comparing version
{ | ||
"name": "@jbroll/jscad-fluent", | ||
"author": "John Roll", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"license": "MIT", | ||
@@ -24,2 +24,5 @@ "type": "module", | ||
"build": "tsc && vite build", | ||
"test": "vitest run", | ||
"test:watch": "vitest", | ||
"test:coverage": "vitest run --coverage", | ||
"types": "tsc --emitDeclarationOnly --outDir dist/types && api-extractor run --local --verbose" | ||
@@ -30,4 +33,6 @@ }, | ||
"@microsoft/api-extractor": "^7.42.3", | ||
"@vitest/coverage-v8": "^1.0.4", | ||
"typescript": "^5.3.2", | ||
"vite": "^5.0.4" | ||
"vite": "^5.0.4", | ||
"vitest": "^1.0.4" | ||
}, | ||
@@ -34,0 +39,0 @@ "peerDependencies": { |
@@ -1,2 +0,2 @@ | ||
import { primitives } from '@jscad/modeling'; | ||
import { primitives, curves } from '@jscad/modeling'; | ||
import { FluentGeom2 } from './gen/FluentGeom2'; | ||
@@ -24,2 +24,11 @@ import { FluentPath2 } from './gen/FluentPath2'; | ||
export const jscadFluent = { | ||
// Path2 Primitives | ||
arc(options: { center: Point2; radius: number; startAngle: number; endAngle: number; }): FluentPath2 { | ||
return new FluentPath2(primitives.arc(options)); | ||
}, | ||
line(points: Point2[]): FluentPath2 { | ||
return new FluentPath2(primitives.line(points)); | ||
}, | ||
// 2D Primitives | ||
@@ -30,2 +39,6 @@ rectangle(options: RectangleOptions): FluentGeom2 { | ||
roundedRectangle(options: { size: Point2; roundRadius: number; }): FluentGeom2 { | ||
return new FluentGeom2(primitives.roundedRectangle(options)); | ||
}, | ||
circle(options: CircleOptions): FluentGeom2 { | ||
@@ -83,2 +96,2 @@ return new FluentGeom2(primitives.circle(options)); | ||
export { FluentPath2Array } from './gen/FluentPath2Array'; | ||
export { FluentGeom3Array } from './gen/FluentGeom3Array'; | ||
export { FluentGeom3Array } from './gen/FluentGeom3Array'; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
43259
1.43%1435
0.77%0
-100%6
50%