Compare commits
2 Commits
cutOrder-0
...
main
Author | SHA1 | Date | |
---|---|---|---|
14796d4d9c | |||
b09ac98b56 |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@imes-procesor/libs",
|
||||
"version": "0.1.1",
|
||||
"version": "1.1.0",
|
||||
"description": "",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
@@ -21,7 +21,7 @@
|
||||
"./utils": "./src/utils/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"cut-abstractions": "http://gitea.cf/MES-FE/cut-abstractions/releases/download/0.2/cut-abstractions-0.2.1.tgz"
|
||||
"cut-abstractions": "http://gitea.cf/MES-FE/cut-abstractions/releases/download/0.3/cut-abstractions-0.3.4.tgz"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.10",
|
||||
|
@@ -55,7 +55,61 @@ test('cutOrderTest', async () => {
|
||||
input,
|
||||
params
|
||||
}
|
||||
await cutOrderProc.exec(context)
|
||||
|
||||
let demo = {
|
||||
"input": {
|
||||
"boardWidth": 1220,
|
||||
"boardLength": 2440,
|
||||
"gap": 6,
|
||||
"blocks": [
|
||||
{
|
||||
"id": "1905521077598027776",
|
||||
"width": 600,
|
||||
"length": 400,
|
||||
"waveType": 0,
|
||||
"x": 3,
|
||||
"y": 3
|
||||
},
|
||||
{
|
||||
"id": "1905521077635776512",
|
||||
"width": 600,
|
||||
"length": 400,
|
||||
"waveType": 0,
|
||||
"x": 404,
|
||||
"y": 3
|
||||
},
|
||||
{
|
||||
"id": "1905521077656748032",
|
||||
"width": 600,
|
||||
"length": 400,
|
||||
"waveType": 0,
|
||||
"x": 805,
|
||||
"y": 3
|
||||
},
|
||||
{
|
||||
"id": "1905521077681913856",
|
||||
"width": 600,
|
||||
"length": 400,
|
||||
"waveType": 0,
|
||||
"x": 1206,
|
||||
"y": 3
|
||||
},
|
||||
{
|
||||
"id": "1905521077707079680",
|
||||
"width": 600,
|
||||
"length": 400,
|
||||
"waveType": 0,
|
||||
"x": 1607,
|
||||
"y": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"params": {
|
||||
"name": "",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
}
|
||||
await cutOrderProc.exec(demo)
|
||||
// 将在context的output中显示结果
|
||||
console.log(context);
|
||||
console.log(demo);
|
||||
})
|
Reference in New Issue
Block a user