| | |
| | | setLastCopiedSprites([]); |
| | | for (let i = 0; i < values.copyCount; i++) { |
| | | const copiedSprite = Utils.copySprite(curSprite); |
| | | // auto-increment-value |
| | | if (values.autoIncrement && values.type) { |
| | | switch (values.type) { |
| | | case Utils.SENSOR_TYPE.SHELF: |
| | | console.log(values); |
| | | break; |
| | | case Utils.SENSOR_TYPE.AGV: |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | } |
| | | // graph copy |
| | | switch (values.copyDire) { |
| | | case 'left': |
| | | copiedSprite.position.x -= (i + 1) * (values.copyGap + copiedSprite.width); |
| | |
| | | </Form.Item> |
| | | <Form.Item> |
| | | <Button |
| | | type="link" |
| | | type="link" |
| | | onClick={() => { |
| | | if (lastCopiedSprites) { |
| | | lastCopiedSprites.forEach(copiedSprite => { |