@fmsim/machine 2.0.0-beta.7 → 2.0.0-beta.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agv.js +2 -2
- package/dist/agv.js.map +1 -1
- package/dist/carrier-manager.js +93 -0
- package/dist/carrier-manager.js.map +1 -0
- package/dist/carrier.js +81 -5
- package/dist/carrier.js.map +1 -1
- package/dist/conveyor-join.js +8 -2
- package/dist/conveyor-join.js.map +1 -1
- package/dist/conveyor.js +8 -0
- package/dist/conveyor.js.map +1 -1
- package/dist/crane.js.map +1 -1
- package/dist/factories/agv-3d.js +8 -9
- package/dist/factories/agv-3d.js.map +1 -1
- package/dist/factories/conveyor-3d.js +166 -81
- package/dist/factories/conveyor-3d.js.map +1 -1
- package/dist/factories/crane-3d.js +5 -7
- package/dist/factories/crane-3d.js.map +1 -1
- package/dist/factories/crane-rail-3d.js +4 -6
- package/dist/factories/crane-rail-3d.js.map +1 -1
- package/dist/factories/machine-3d.js +384 -133
- package/dist/factories/machine-3d.js.map +1 -1
- package/dist/factories/oht-3d.js +20 -20
- package/dist/factories/oht-3d.js.map +1 -1
- package/dist/factories/shuttle-3d.js +2 -5
- package/dist/factories/shuttle-3d.js.map +1 -1
- package/dist/features/mcs-status-mixin.js +22 -0
- package/dist/features/mcs-status-mixin.js.map +1 -1
- package/dist/index.js +50 -34
- package/dist/index.js.map +1 -1
- package/dist/mcs-carrier-holder.js +39 -22
- package/dist/mcs-carrier-holder.js.map +1 -1
- package/dist/mcs-machine.js +28 -0
- package/dist/mcs-machine.js.map +1 -1
- package/dist/mcs-unit.js +10 -0
- package/dist/mcs-unit.js.map +1 -1
- package/dist/mcs-vehicle.js +8 -3
- package/dist/mcs-vehicle.js.map +1 -1
- package/dist/node.js +1 -1
- package/dist/node.js.map +1 -1
- package/dist/oht.js.map +1 -1
- package/dist/scanner.js +30 -0
- package/dist/scanner.js.map +1 -0
- package/dist/scene/root-container-override.js +9 -0
- package/dist/scene/root-container-override.js.map +1 -1
- package/dist/stocker-abnormal-bar.js +1 -1
- package/dist/stocker-abnormal-bar.js.map +1 -1
- package/dist/stocker-capacity-bar.js +3 -3
- package/dist/stocker-capacity-bar.js.map +1 -1
- package/dist/stocker-carrier-bar.js +1 -1
- package/dist/stocker-carrier-bar.js.map +1 -1
- package/dist/stocker.js +6 -0
- package/dist/stocker.js.map +1 -1
- package/dist/templates/backdrop.js +30 -0
- package/dist/templates/backdrop.js.map +1 -0
- package/dist/templates/decal.js +21 -0
- package/dist/templates/decal.js.map +1 -0
- package/dist/templates/index.js +7 -1
- package/dist/templates/index.js.map +1 -1
- package/dist/templates/scanner.js +20 -0
- package/dist/templates/scanner.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/get-value-on-ranges.js +2 -4
- package/dist/utils/get-value-on-ranges.js.map +1 -1
- package/dist/zone-capacity-bar.js +3 -3
- package/dist/zone-capacity-bar.js.map +1 -1
- package/icons/backdrop.png +0 -0
- package/icons/decal.png +0 -0
- package/jest.config.js +10 -0
- package/package.json +4 -3
- package/src/agv.ts +2 -2
- package/src/carrier-manager.ts +117 -0
- package/src/carrier.ts +80 -3
- package/src/conveyor-join.ts +5 -2
- package/src/conveyor.ts +8 -0
- package/src/crane.ts +1 -1
- package/src/factories/agv-3d.ts +9 -10
- package/src/factories/conveyor-3d.ts +168 -84
- package/src/factories/crane-3d.ts +6 -8
- package/src/factories/crane-rail-3d.ts +5 -7
- package/src/factories/machine-3d.ts +452 -145
- package/src/factories/oht-3d.ts +20 -20
- package/src/factories/shuttle-3d.ts +2 -6
- package/src/features/mcs-status-mixin.ts +21 -0
- package/src/index.ts +56 -34
- package/src/mcs-carrier-holder.ts +38 -34
- package/src/mcs-machine.ts +29 -0
- package/src/mcs-unit.ts +11 -0
- package/src/mcs-vehicle.ts +9 -6
- package/src/node.ts +1 -1
- package/src/oht.ts +1 -1
- package/src/scanner.ts +29 -0
- package/src/scene/root-container-override.ts +12 -0
- package/src/stocker-abnormal-bar.ts +1 -1
- package/src/stocker-capacity-bar.ts +3 -3
- package/src/stocker-carrier-bar.ts +1 -1
- package/src/stocker.ts +7 -0
- package/src/templates/backdrop.ts +30 -0
- package/src/templates/decal.ts +21 -0
- package/src/templates/index.ts +7 -1
- package/src/templates/scanner.ts +20 -0
- package/src/utils/get-value-on-ranges.ts +2 -4
- package/src/zone-capacity-bar.ts +3 -3
- package/translations/en.json +16 -1
- package/translations/ja.json +16 -1
- package/translations/ko.json +16 -1
- package/translations/ms.json +16 -1
- package/translations/zh.json +16 -1
package/src/templates/index.ts
CHANGED
|
@@ -17,9 +17,12 @@ import agvLine from './agv-line'
|
|
|
17
17
|
import ohtLine from './oht-line'
|
|
18
18
|
import conveyor from './conveyor'
|
|
19
19
|
|
|
20
|
+
import Scanner from './scanner'
|
|
20
21
|
import Node from './node'
|
|
21
22
|
import DataSubscription from './data-subscription'
|
|
22
23
|
import FloatingContainer from './floating-container'
|
|
24
|
+
import Decal from './decal'
|
|
25
|
+
import Backdrop from './backdrop'
|
|
23
26
|
|
|
24
27
|
export default [
|
|
25
28
|
StockerCapacityBar,
|
|
@@ -41,7 +44,10 @@ export default [
|
|
|
41
44
|
Shelf,
|
|
42
45
|
Port,
|
|
43
46
|
|
|
47
|
+
Scanner,
|
|
44
48
|
Node,
|
|
45
49
|
FloatingContainer,
|
|
46
|
-
DataSubscription
|
|
50
|
+
DataSubscription,
|
|
51
|
+
Decal,
|
|
52
|
+
Backdrop
|
|
47
53
|
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const icon = new URL('../../icons/equipment.png', import.meta.url).href
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
type: 'Scanner',
|
|
5
|
+
description: 'Fixed mount barcode/QR scanner',
|
|
6
|
+
group: ['etc'],
|
|
7
|
+
icon,
|
|
8
|
+
model: {
|
|
9
|
+
type: 'Scanner',
|
|
10
|
+
x1: 100,
|
|
11
|
+
y1: 100,
|
|
12
|
+
x2: 130,
|
|
13
|
+
y2: 110,
|
|
14
|
+
x3: 100,
|
|
15
|
+
y3: 120,
|
|
16
|
+
strokeStyle: '#333',
|
|
17
|
+
fillStyle: 'red',
|
|
18
|
+
lineWidth: 1
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function
|
|
1
|
+
export function getValueOnRanges(value, param): any {
|
|
2
2
|
for (let range in param) {
|
|
3
3
|
let [from, to]: (number | string)[] = range.split('~')
|
|
4
4
|
let from_defined = !!from
|
|
@@ -8,14 +8,12 @@ export function getVaueOnRanges(value, param): any {
|
|
|
8
8
|
to = parseFloat(to)
|
|
9
9
|
value = Number(value) || 0
|
|
10
10
|
|
|
11
|
-
// from이나 to 둘 중 하나만 있는 경우 먼저 계산
|
|
12
11
|
if (from_defined && !to_defined && value >= from) {
|
|
13
12
|
return param[range]
|
|
14
|
-
} else if (!from_defined && to_defined && value <
|
|
13
|
+
} else if (!from_defined && to_defined && value < to) {
|
|
15
14
|
return param[range]
|
|
16
15
|
}
|
|
17
16
|
|
|
18
|
-
// 소수점이 있으므로 from <= value < to 가 되야함
|
|
19
17
|
if (value >= from && value < to) {
|
|
20
18
|
return param[range]
|
|
21
19
|
}
|
package/src/zone-capacity-bar.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Component, ComponentNature, POSITION, Properties, sceneComponent } from
|
|
|
2
2
|
import { themesColorRange } from '@fmsim/api'
|
|
3
3
|
import { LEGEND_CAPACITY } from './features/mcs-status-default'
|
|
4
4
|
import { safeRound } from './utils/safe-round'
|
|
5
|
-
import {
|
|
5
|
+
import { getValueOnRanges } from './utils/get-value-on-ranges'
|
|
6
6
|
import { MCSZoneMixin, MCSZoneMixinProperties } from './features/mcs-zone-mixin'
|
|
7
7
|
import { ParentObjectMixinProperties } from './features/parent-object-mixin'
|
|
8
8
|
import MCSUnit from './mcs-unit'
|
|
@@ -104,7 +104,7 @@ export default class ZoneCapacityBar extends MCSZoneMixin(MCSUnit) {
|
|
|
104
104
|
|
|
105
105
|
get statusColor() {
|
|
106
106
|
const { fullup } = this.state
|
|
107
|
-
return fullup ? 'red' :
|
|
107
|
+
return fullup ? 'red' : getValueOnRanges(this.usage, this.legend)
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
get text() {
|
|
@@ -282,7 +282,7 @@ export default class ZoneCapacityBar extends MCSZoneMixin(MCSUnit) {
|
|
|
282
282
|
HIGHWATERMARK = 100,
|
|
283
283
|
LOWWATERMARK = 0,
|
|
284
284
|
FULLUP = 'F'
|
|
285
|
-
} = typeof this.data == 'object' ? this.data : {}
|
|
285
|
+
} = this.data && typeof this.data == 'object' ? this.data : {}
|
|
286
286
|
|
|
287
287
|
const currentUsage = Number(CURRENTCAPACITY) || 0
|
|
288
288
|
const maxCapacity = Number(MAXCAPACITY) || 100
|
package/translations/en.json
CHANGED
|
@@ -46,5 +46,20 @@
|
|
|
46
46
|
"label.node-machine": "node machine",
|
|
47
47
|
"label.nodes": "nodes",
|
|
48
48
|
"label.vehicle-animation": "vehicle animation",
|
|
49
|
-
"label.battery-rate-legend-name": "battery rate"
|
|
49
|
+
"label.battery-rate-legend-name": "battery rate",
|
|
50
|
+
"label.conveyor-orientation": "Transfer Direction",
|
|
51
|
+
"component.backdrop": "backdrop",
|
|
52
|
+
"label.fit-to-board": "Fit to Board",
|
|
53
|
+
"label.east": "East",
|
|
54
|
+
"label.west": "West",
|
|
55
|
+
"label.north": "North",
|
|
56
|
+
"label.south": "South",
|
|
57
|
+
"label.floor": "Floor",
|
|
58
|
+
"label.ceiling": "Ceiling",
|
|
59
|
+
"label.visible": "Visible",
|
|
60
|
+
"label.alpha": "Alpha",
|
|
61
|
+
"label.rotation": "Rotation",
|
|
62
|
+
"label.mirror": "Mirror",
|
|
63
|
+
"label.copy-to-opposite": "Copy to opposite",
|
|
64
|
+
"label.copy-to-walls": "Copy to all walls"
|
|
50
65
|
}
|
package/translations/ja.json
CHANGED
|
@@ -48,5 +48,20 @@
|
|
|
48
48
|
"label.node-machine": "node machine",
|
|
49
49
|
"label.nodes": "nodes",
|
|
50
50
|
"label.vehicle-animation": "vehicle animation",
|
|
51
|
-
"label.battery-rate-legend-name": "battery rate"
|
|
51
|
+
"label.battery-rate-legend-name": "battery rate",
|
|
52
|
+
"label.conveyor-orientation": "搬送方向",
|
|
53
|
+
"component.backdrop": "バックドロップ",
|
|
54
|
+
"label.fit-to-board": "ボードに合わせる",
|
|
55
|
+
"label.east": "東壁",
|
|
56
|
+
"label.west": "西壁",
|
|
57
|
+
"label.north": "北壁",
|
|
58
|
+
"label.south": "南壁",
|
|
59
|
+
"label.floor": "床",
|
|
60
|
+
"label.ceiling": "天井",
|
|
61
|
+
"label.visible": "表示",
|
|
62
|
+
"label.alpha": "透明度",
|
|
63
|
+
"label.rotation": "回転",
|
|
64
|
+
"label.mirror": "鏡像",
|
|
65
|
+
"label.copy-to-opposite": "反対側にコピー",
|
|
66
|
+
"label.copy-to-walls": "壁4面にコピー"
|
|
52
67
|
}
|
package/translations/ko.json
CHANGED
|
@@ -49,5 +49,20 @@
|
|
|
49
49
|
"label.node-machine": "node machine",
|
|
50
50
|
"label.nodes": "nodes",
|
|
51
51
|
"label.vehicle-animation": "vehicle animation",
|
|
52
|
-
"label.battery-rate-legend-name": "배터리 잔량"
|
|
52
|
+
"label.battery-rate-legend-name": "배터리 잔량",
|
|
53
|
+
"label.conveyor-orientation": "이송방향",
|
|
54
|
+
"component.backdrop": "배경",
|
|
55
|
+
"label.fit-to-board": "보드에 맞춤",
|
|
56
|
+
"label.east": "동측 벽",
|
|
57
|
+
"label.west": "서측 벽",
|
|
58
|
+
"label.north": "북측 벽",
|
|
59
|
+
"label.south": "남측 벽",
|
|
60
|
+
"label.floor": "바닥",
|
|
61
|
+
"label.ceiling": "천장",
|
|
62
|
+
"label.visible": "표시",
|
|
63
|
+
"label.alpha": "투명도",
|
|
64
|
+
"label.rotation": "회전",
|
|
65
|
+
"label.mirror": "거울상",
|
|
66
|
+
"label.copy-to-opposite": "반대편에 복사",
|
|
67
|
+
"label.copy-to-walls": "벽 4면에 복사"
|
|
53
68
|
}
|
package/translations/ms.json
CHANGED
|
@@ -48,5 +48,20 @@
|
|
|
48
48
|
"label.node-machine": "node machine",
|
|
49
49
|
"label.nodes": "nodes",
|
|
50
50
|
"label.vehicle-animation": "vehicle animation",
|
|
51
|
-
"label.battery-rate-legend-name": "battery rate"
|
|
51
|
+
"label.battery-rate-legend-name": "battery rate",
|
|
52
|
+
"label.conveyor-orientation": "Transfer Direction",
|
|
53
|
+
"component.backdrop": "Backdrop",
|
|
54
|
+
"label.fit-to-board": "Muat Papan",
|
|
55
|
+
"label.east": "Timur",
|
|
56
|
+
"label.west": "Barat",
|
|
57
|
+
"label.north": "Utara",
|
|
58
|
+
"label.south": "Selatan",
|
|
59
|
+
"label.floor": "Lantai",
|
|
60
|
+
"label.ceiling": "Siling",
|
|
61
|
+
"label.visible": "Kelihatan",
|
|
62
|
+
"label.alpha": "Alfa",
|
|
63
|
+
"label.rotation": "Putaran",
|
|
64
|
+
"label.mirror": "Cermin",
|
|
65
|
+
"label.copy-to-opposite": "Salin ke bertentangan",
|
|
66
|
+
"label.copy-to-walls": "Salin ke semua dinding"
|
|
52
67
|
}
|
package/translations/zh.json
CHANGED
|
@@ -48,5 +48,20 @@
|
|
|
48
48
|
"label.node-machine": "node machine",
|
|
49
49
|
"label.nodes": "nodes",
|
|
50
50
|
"label.vehicle-animation": "vehicle animation",
|
|
51
|
-
"label.battery-rate-legend-name": "battery rate"
|
|
51
|
+
"label.battery-rate-legend-name": "battery rate",
|
|
52
|
+
"label.conveyor-orientation": "输送方向",
|
|
53
|
+
"component.backdrop": "背景",
|
|
54
|
+
"label.fit-to-board": "适配画板",
|
|
55
|
+
"label.east": "东墙",
|
|
56
|
+
"label.west": "西墙",
|
|
57
|
+
"label.north": "北墙",
|
|
58
|
+
"label.south": "南墙",
|
|
59
|
+
"label.floor": "地板",
|
|
60
|
+
"label.ceiling": "天花板",
|
|
61
|
+
"label.visible": "显示",
|
|
62
|
+
"label.alpha": "透明度",
|
|
63
|
+
"label.rotation": "旋转",
|
|
64
|
+
"label.mirror": "镜像",
|
|
65
|
+
"label.copy-to-opposite": "复制到对面",
|
|
66
|
+
"label.copy-to-walls": "复制到4面墙"
|
|
52
67
|
}
|