feat:提交--更新字段 boardHeight=>boardLength
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "@imes-procesor/libs",
 | 
			
		||||
  "version": "0.1.0",
 | 
			
		||||
  "version": "0.1.1",
 | 
			
		||||
  "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.0.tgz"
 | 
			
		||||
    "cut-abstractions": "http://gitea.cf/MES-FE/cut-abstractions/releases/download/0.2/cut-abstractions-0.2.1.tgz"
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@types/node": "^24.0.10",
 | 
			
		||||
 
 | 
			
		||||
@@ -28,7 +28,7 @@ export class CutOrderProc extends ProcessorBase<CutOrderInput, CutorderOutput, C
 | 
			
		||||
                    let beginId = 0;
 | 
			
		||||
                    let dt = context.input?.gap || 6;
 | 
			
		||||
                    let k = context.input?.boardWidth || 0;
 | 
			
		||||
                    let g = context.input?.boardHeight || 0;
 | 
			
		||||
                    let g = context.input?.boardLength || 0;
 | 
			
		||||
 | 
			
		||||
                    for (let i = 0; i < length; i++) {
 | 
			
		||||
                        let block = context.input?.blocks[i];
 | 
			
		||||
@@ -110,9 +110,9 @@ export class CutOrderProc extends ProcessorBase<CutOrderInput, CutorderOutput, C
 | 
			
		||||
        } else if (input.boardWidth == undefined) {
 | 
			
		||||
            info.isOk = false
 | 
			
		||||
            info.msg = 'context.input.boardWidth is undefind'
 | 
			
		||||
        } else if (input.boardHeight == undefined) {
 | 
			
		||||
        } else if (input.boardLength == undefined) {
 | 
			
		||||
            info.isOk = false
 | 
			
		||||
            info.msg = 'context.input.boardHeight is undefind'
 | 
			
		||||
            info.msg = 'context.input.boardLength is undefind'
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -47,7 +47,7 @@ test('cutOrderTest', async () => {
 | 
			
		||||
 | 
			
		||||
    let input: CutOrderInput = {
 | 
			
		||||
        boardWidth: 1220,
 | 
			
		||||
        boardHeight: 2440,
 | 
			
		||||
        boardLength: 2440,
 | 
			
		||||
        gap: 6,
 | 
			
		||||
        blocks
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user