2 Commits

Author SHA1 Message Date
14796d4d9c feat: 提交 2025-08-25 09:16:31 +08:00
b09ac98b56 feat: 提交 2025-08-04 17:16:07 +08:00
2 changed files with 58 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@imes-procesor/libs", "name": "@imes-procesor/libs",
"version": "0.1.1", "version": "1.1.0",
"description": "", "description": "",
"type": "module", "type": "module",
"scripts": { "scripts": {
@@ -21,7 +21,7 @@
"./utils": "./src/utils/index.ts" "./utils": "./src/utils/index.ts"
}, },
"dependencies": { "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": { "devDependencies": {
"@types/node": "^24.0.10", "@types/node": "^24.0.10",

View File

@@ -55,7 +55,61 @@ test('cutOrderTest', async () => {
input, input,
params 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中显示结果 // 将在context的output中显示结果
console.log(context); console.log(demo);
}) })