-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
3,873 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Playwright Tests | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
timeout-minutes: 5 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: boost | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: sudo apt-get update && sudo apt-get install -yq libboost-dev | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build | ||
run: npm run build | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps chromium | ||
- name: Run Playwright tests | ||
run: xvfb-run npm test | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{ !cancelled() }} | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
export type DeepNestConfig = { | ||
units: "mm" | "inch"; | ||
scale: number; | ||
spacing: number; | ||
curveTolerance: number; | ||
clipperScale: number; | ||
rotations: number; | ||
threads: number; | ||
populationSize: number; | ||
mutationRate: number; | ||
placementType: "gravity" | "box" | "convexhull"; | ||
mergeLines: boolean; | ||
/** | ||
* ratio of material reduction to laser time. 0 = optimize material only, 1 = optimize laser time only | ||
*/ | ||
timeRatio: number; | ||
simplify: boolean; | ||
dxfImportScale: number; | ||
dxfExportScale: number; | ||
endpointTolerance: number; | ||
conversionServer: string; | ||
}; | ||
|
||
export type SheetPlacement = { | ||
filename: string; | ||
id: number; | ||
rotation: number; | ||
source: number; | ||
x: number; | ||
y: number; | ||
}; | ||
|
||
export type NestingResult = { | ||
area: number; | ||
fitness: number; | ||
index: number; | ||
mergedLength: number; | ||
selected: boolean; | ||
placements: { | ||
sheet: number; | ||
sheetid: number; | ||
sheetplacements: SheetPlacement[]; | ||
}[]; | ||
}; |
Oops, something went wrong.