From 5a51d49437976e2fbb26e33231c00531fa3f8bff Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 14 五月 2024 14:04:28 +0800
Subject: [PATCH] #
---
src/assets/data/shelf.js | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 102 insertions(+), 10 deletions(-)
diff --git a/src/assets/data/shelf.js b/src/assets/data/shelf.js
index 3b944b5..425db51 100644
--- a/src/assets/data/shelf.js
+++ b/src/assets/data/shelf.js
@@ -1,18 +1,110 @@
+import * as Common from '@/utils/common';
+
+// row
+const shelfRowOffset = 850 ;
+const realRowPos = [0 - shelfRowOffset, 0 + shelfRowOffset, 2420 - shelfRowOffset, 2420 + shelfRowOffset];
+
+// bay
+const realBayPos = [1589, 3540, 5491, 7442, 9393, 11344];
+
const shelfData = [
+ // row 1 --------------------------------------------------------------------------
{
- x: 200,
- y: -1000,
- width: 200,
- height: 2000,
- tunnelNumber: 'T1',
+ no: '1-1-1',
+ position: Common.calculateMappedPosition([realRowPos[0], 0, realBayPos[5]]),
+ rotationY: Math.PI / 2,
},
{
- x: 200,
- y: -50,
- width: 1300,
- height: 100,
- tunnelNumber: 'T2',
+ no: '1-4-1',
+ position: Common.calculateMappedPosition([realRowPos[0], 0, realBayPos[4]]),
+ rotationY: Math.PI / 2,
},
+ // {
+ // no: '1-7-1',
+ // position: Common.calculateMappedPosition([realRowPos[0], 0, realBayPos[3]]),
+ // rotationY: Math.PI / 2,
+ // },
+ // {
+ // no: '1-10-1',
+ // position: Common.calculateMappedPosition([realRowPos[0], 0, realBayPos[2]]),
+ // rotationY: Math.PI / 2,
+ // },
+ // {
+ // no: '1-13-1',
+ // position: Common.calculateMappedPosition([realRowPos[0], 0, realBayPos[1]]),
+ // rotationY: Math.PI / 2,
+ // },
+ // {
+ // no: '1-16-1',
+ // position: Common.calculateMappedPosition([realRowPos[0], 0, realBayPos[0]]),
+ // rotationY: Math.PI / 2,
+ // },
+
+ // row 2 --------------------------------------------------------------------------
+ {
+ no: '2-1-1',
+ position: Common.calculateMappedPosition([realRowPos[1], 0, realBayPos[5]]),
+ rotationY: Math.PI / 2,
+ },
+ {
+ no: '2-4-1',
+ position: Common.calculateMappedPosition([realRowPos[1], 0, realBayPos[4]]),
+ rotationY: Math.PI / 2,
+ },
+ // {
+ // no: '2-7-1',
+ // position: Common.calculateMappedPosition([realRowPos[1], 0, realBayPos[3]]),
+ // rotationY: Math.PI / 2,
+ // },
+ {
+ no: '2-10-1',
+ position: Common.calculateMappedPosition([realRowPos[1], 0, realBayPos[2]]),
+ rotationY: Math.PI / 2,
+ },
+ {
+ no: '2-13-1',
+ position: Common.calculateMappedPosition([realRowPos[1], 0, realBayPos[1]]),
+ rotationY: Math.PI / 2,
+ },
+ {
+ no: '2-16-1',
+ position: Common.calculateMappedPosition([realRowPos[1], 0, realBayPos[0]]),
+ rotationY: Math.PI / 2,
+ },
+
+ // row 3 --------------------------------------------------------------------------
+ {
+ no: '3-1-1',
+ position: Common.calculateMappedPosition([realRowPos[2], 0, realBayPos[5]]),
+ rotationY: Math.PI / 2,
+ },
+ {
+ no: '3-4-1',
+ position: Common.calculateMappedPosition([realRowPos[2], 0, realBayPos[4]]),
+ rotationY: Math.PI / 2,
+ },
+ // {
+ // no: '3-7-1',
+ // position: Common.calculateMappedPosition([realRowPos[2], 0, realBayPos[3]]),
+ // rotationY: Math.PI / 2,
+ // },
+ // {
+ // no: '3-10-1',
+ // position: Common.calculateMappedPosition([realRowPos[2], 0, realBayPos[2]]),
+ // rotationY: Math.PI / 2,
+ // },
+ // {
+ // no: '3-13-1',
+ // position: Common.calculateMappedPosition([realRowPos[2], 0, realBayPos[1]]),
+ // rotationY: Math.PI / 2,
+ // },
+ // {
+ // no: '3-16-1',
+ // position: Common.calculateMappedPosition([realRowPos[2], 0, realBayPos[0]]),
+ // rotationY: Math.PI / 2,
+ // },
+
+
];
export default shelfData;
--
Gitblit v1.9.1