-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
a92ae3f
commit 64b4bf2
Showing
4 changed files
with
98 additions
and
40 deletions.
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
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,12 @@ | ||
/** | ||
* Represents a single cut | ||
* @property {number} x - In mm, calculated from the left edge of the sheet to the center of the cut, if it's a vertical cut | ||
* @property {number} y - In mm, calculated from the top edge of the sheet to the center of the cut, if it's a horizontal cut | ||
* @property {number} length - In mm | ||
*/ | ||
export type Cut = { | ||
x: number; | ||
y: number; | ||
length: number; | ||
direction: "vertical" | "horizontal"; | ||
}; |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import type { Cut } from "./cut"; | ||
import type { OptimizedPanel } from "./optimizedPanel"; | ||
import type { Sheet } from "./sheet"; | ||
|
||
export type OptimizedSheet = { | ||
panels: OptimizedPanel[]; | ||
sheet: Sheet; | ||
panels: OptimizedPanel[]; | ||
cuts: Cut[]; | ||
}; |