@fmsim/machine 1.0.39 → 1.0.40

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.
Files changed (67) hide show
  1. package/dist/agv-line.js +3 -0
  2. package/dist/agv-line.js.map +1 -1
  3. package/dist/agv.js +3 -0
  4. package/dist/agv.js.map +1 -1
  5. package/dist/buffer.js +3 -0
  6. package/dist/buffer.js.map +1 -1
  7. package/dist/conveyor-join.js +3 -0
  8. package/dist/conveyor-join.js.map +1 -1
  9. package/dist/conveyor.js +3 -0
  10. package/dist/conveyor.js.map +1 -1
  11. package/dist/crane.js +1 -2
  12. package/dist/crane.js.map +1 -1
  13. package/dist/equipment.js +3 -0
  14. package/dist/equipment.js.map +1 -1
  15. package/dist/mcs-machine.js +1 -1
  16. package/dist/mcs-machine.js.map +1 -1
  17. package/dist/mcs-transport.js +1 -1
  18. package/dist/mcs-transport.js.map +1 -1
  19. package/dist/mcs-unit.js +1 -1
  20. package/dist/mcs-unit.js.map +1 -1
  21. package/dist/mcs-vehicle.js +1 -1
  22. package/dist/mcs-vehicle.js.map +1 -1
  23. package/dist/oht-line.js +3 -0
  24. package/dist/oht-line.js.map +1 -1
  25. package/dist/oht.js +3 -0
  26. package/dist/oht.js.map +1 -1
  27. package/dist/port-flow.js +10 -10
  28. package/dist/port-flow.js.map +1 -1
  29. package/dist/port.js +3 -0
  30. package/dist/port.js.map +1 -1
  31. package/dist/scene/root-container-override.js +166 -10
  32. package/dist/scene/root-container-override.js.map +1 -1
  33. package/dist/shelf.js +3 -0
  34. package/dist/shelf.js.map +1 -1
  35. package/dist/shuttle.js +3 -0
  36. package/dist/shuttle.js.map +1 -1
  37. package/dist/stocker.js +3 -0
  38. package/dist/stocker.js.map +1 -1
  39. package/dist/tsconfig.tsbuildinfo +1 -1
  40. package/package.json +3 -3
  41. package/src/agv-line.ts +4 -0
  42. package/src/agv.ts +4 -0
  43. package/src/buffer.ts +4 -0
  44. package/src/conveyor-join.ts +4 -0
  45. package/src/conveyor.ts +4 -0
  46. package/src/crane.ts +1 -1
  47. package/src/equipment.ts +4 -0
  48. package/src/mcs-machine.ts +1 -1
  49. package/src/mcs-transport.ts +1 -1
  50. package/src/mcs-unit.ts +1 -1
  51. package/src/mcs-vehicle.ts +1 -1
  52. package/src/oht-line.ts +4 -0
  53. package/src/oht.ts +4 -0
  54. package/src/port-flow.ts +10 -10
  55. package/src/port.ts +4 -0
  56. package/src/scene/root-container-override.ts +188 -12
  57. package/src/shelf.ts +4 -0
  58. package/src/shuttle.ts +4 -0
  59. package/src/stocker.ts +4 -0
  60. package/translations/en.json +14 -4
  61. package/translations/ja.json +16 -4
  62. package/translations/ko.json +16 -4
  63. package/translations/ms.json +16 -4
  64. package/translations/zh.json +16 -4
  65. package/dist/root-container-override.js +0 -2
  66. package/dist/root-container-override.js.map +0 -1
  67. package/src/root-container-override.ts +0 -1
@@ -5,12 +5,22 @@ import { Legend } from '../features/mcs-status-default'
5
5
  // RootContainer 클래스 타입 확장
6
6
  declare module '@hatiolab/things-scene' {
7
7
  interface RootContainer {
8
- machineLegendTheme?: any
9
- unitLegendTheme?: any
8
+ portLegendTheme?: any
10
9
  carrierLegendTheme?: any
11
10
  carrierAnimationTheme?: any
12
11
  stockerCapacityLegendTheme?: any
13
12
  zoneCapacityLegendTheme?: any
13
+ bufferLegendTheme?: any
14
+ agvlineLegendTheme?: any
15
+ ohtlineLegendTheme?: any
16
+ conveyorLegendTheme?: any
17
+ stokerLegendTheme?: any
18
+ agvLegendTheme?: any
19
+ ohtLegendTheme?: any
20
+ shuttleLegendTheme?: any
21
+ craneLegendTheme?: any
22
+ shelfLegendTheme?: any
23
+ equipmentLegendTheme?: any
14
24
  style: { [key: string]: any | Legend }
15
25
  }
16
26
  }
@@ -24,18 +34,114 @@ Object.defineProperty(ModelLayer.prototype, 'nature', {
24
34
  rotatable: false,
25
35
  resizable: true,
26
36
  properties: [
37
+ {
38
+ type: 'legend',
39
+ label: '',
40
+ name: 'LEGENDS',
41
+ property: {
42
+ label: 'LEGENDS'
43
+ }
44
+ },
45
+ {
46
+ type: 'select',
47
+ label: 'equipment-legend-name',
48
+ name: 'equipmentLegendName',
49
+ property: {
50
+ options: themesColorMap
51
+ }
52
+ },
53
+ {
54
+ type: 'select',
55
+ label: 'buffer-legend-name',
56
+ name: 'bufferLegendName',
57
+ property: {
58
+ options: themesColorMap
59
+ }
60
+ },
61
+ {
62
+ type: 'select',
63
+ label: 'agvline-legend-name',
64
+ name: 'agvlineLegendName',
65
+ property: {
66
+ options: themesColorMap
67
+ }
68
+ },
69
+ {
70
+ type: 'select',
71
+ label: 'ohtline-legend-name',
72
+ name: 'ohtlineLegendName',
73
+ property: {
74
+ options: themesColorMap
75
+ }
76
+ },
77
+ {
78
+ type: 'select',
79
+ label: 'conveyor-legend-name',
80
+ name: 'conveyorLegendName',
81
+ property: {
82
+ options: themesColorMap
83
+ }
84
+ },
85
+ {
86
+ type: 'select',
87
+ label: 'stoker-legend-name',
88
+ name: 'stokerLegendName',
89
+ property: {
90
+ options: themesColorMap
91
+ }
92
+ },
93
+ {
94
+ type: 'select',
95
+ label: 'port-legend-name',
96
+ name: 'portLegendName',
97
+ property: {
98
+ options: themesColorMap
99
+ }
100
+ },
101
+ {
102
+ type: 'select',
103
+ label: 'agv-legend-name',
104
+ name: 'agvLegendName',
105
+ property: {
106
+ options: themesColorMap
107
+ }
108
+ },
109
+ {
110
+ type: 'select',
111
+ label: 'oht-legend-name',
112
+ name: 'ohtLegendName',
113
+ property: {
114
+ options: themesColorMap
115
+ }
116
+ },
117
+ {
118
+ type: 'select',
119
+ label: 'shuttle-legend-name',
120
+ name: 'shuttleLegendName',
121
+ property: {
122
+ options: themesColorMap
123
+ }
124
+ },
125
+ {
126
+ type: 'select',
127
+ label: 'crane-legend-name',
128
+ name: 'craneLegendName',
129
+ property: {
130
+ options: themesColorMap
131
+ }
132
+ },
27
133
  {
28
134
  type: 'select',
29
- label: 'machine-legend-name',
30
- name: 'machineLegendName',
135
+ label: 'port-legend-name',
136
+ name: 'portLegendName',
31
137
  property: {
32
138
  options: themesColorMap
33
139
  }
34
140
  },
35
141
  {
36
142
  type: 'select',
37
- label: 'unit-legend-name',
38
- name: 'unitLegendName',
143
+ label: 'shelf-legend-name',
144
+ name: 'shelfLegendName',
39
145
  property: {
40
146
  options: themesColorMap
41
147
  }
@@ -78,17 +184,87 @@ Object.defineProperty(ModelLayer.prototype, 'nature', {
78
184
  }
79
185
  })
80
186
 
81
- Object.defineProperty(RootContainer.prototype, 'machineLegendTheme', {
187
+ Object.defineProperty(RootContainer.prototype, 'equipmentLegendTheme', {
188
+ get: function () {
189
+ const { equipmentLegendName } = this.rootModel.state
190
+ return equipmentLegendName && this.state.style[equipmentLegendName]
191
+ }
192
+ })
193
+
194
+ Object.defineProperty(RootContainer.prototype, 'bufferLegendTheme', {
195
+ get: function () {
196
+ const { bufferLegendName } = this.rootModel.state
197
+ return bufferLegendName && this.state.style[bufferLegendName]
198
+ }
199
+ })
200
+
201
+ Object.defineProperty(RootContainer.prototype, 'agvlineLegendTheme', {
202
+ get: function () {
203
+ const { agvlineLegendName } = this.rootModel.state
204
+ return agvlineLegendName && this.state.style[agvlineLegendName]
205
+ }
206
+ })
207
+
208
+ Object.defineProperty(RootContainer.prototype, 'ohtlineLegendTheme', {
209
+ get: function () {
210
+ const { ohtlineLegendName } = this.rootModel.state
211
+ return ohtlineLegendName && this.state.style[ohtlineLegendName]
212
+ }
213
+ })
214
+
215
+ Object.defineProperty(RootContainer.prototype, 'conveyorLegendTheme', {
216
+ get: function () {
217
+ const { conveyorLegendName } = this.rootModel.state
218
+ return conveyorLegendName && this.state.style[conveyorLegendName]
219
+ }
220
+ })
221
+
222
+ Object.defineProperty(RootContainer.prototype, 'stokerLegendTheme', {
223
+ get: function () {
224
+ const { stokerLegendName } = this.rootModel.state
225
+ return stokerLegendName && this.state.style[stokerLegendName]
226
+ }
227
+ })
228
+
229
+ Object.defineProperty(RootContainer.prototype, 'agvLegendTheme', {
230
+ get: function () {
231
+ const { agvLegendName } = this.rootModel.state
232
+ return agvLegendName && this.state.style[agvLegendName]
233
+ }
234
+ })
235
+
236
+ Object.defineProperty(RootContainer.prototype, 'ohtLegendTheme', {
237
+ get: function () {
238
+ const { ohtLegendName } = this.rootModel.state
239
+ return ohtLegendName && this.state.style[ohtLegendName]
240
+ }
241
+ })
242
+
243
+ Object.defineProperty(RootContainer.prototype, 'shuttleLegendTheme', {
244
+ get: function () {
245
+ const { shuttleLegendName } = this.rootModel.state
246
+ return shuttleLegendName && this.state.style[shuttleLegendName]
247
+ }
248
+ })
249
+
250
+ Object.defineProperty(RootContainer.prototype, 'craneLegendTheme', {
251
+ get: function () {
252
+ const { craneLegendName } = this.rootModel.state
253
+ return craneLegendName && this.state.style[craneLegendName]
254
+ }
255
+ })
256
+
257
+ Object.defineProperty(RootContainer.prototype, 'shelfLegendTheme', {
82
258
  get: function () {
83
- const { machineLegendName } = this.rootModel.state
84
- return machineLegendName && this.state.style[machineLegendName]
259
+ const { shelfLegendName } = this.rootModel.state
260
+ return shelfLegendName && this.state.style[shelfLegendName]
85
261
  }
86
262
  })
87
263
 
88
- Object.defineProperty(RootContainer.prototype, 'unitLegendTheme', {
264
+ Object.defineProperty(RootContainer.prototype, 'portLegendTheme', {
89
265
  get: function () {
90
- const { unitLegendName } = this.rootModel.state
91
- return unitLegendName && this.state.style[unitLegendName]
266
+ const { portLegendName } = this.rootModel.state
267
+ return portLegendName && this.state.style[portLegendName]
92
268
  }
93
269
  })
94
270
 
package/src/shelf.ts CHANGED
@@ -18,6 +18,10 @@ export default class Shelf extends MCSZoneMixin(MCSCarrierHolder) {
18
18
  return 'black'
19
19
  }
20
20
 
21
+ getLegendFallback() {
22
+ return this.root.shelfLegendTheme || super.getLegendFallback()
23
+ }
24
+
21
25
  render(ctx: CanvasRenderingContext2D) {
22
26
  var { left, top, width, height } = this.bounds
23
27
 
package/src/shuttle.ts CHANGED
@@ -18,6 +18,10 @@ export default class Shuttle extends MCSVehicle {
18
18
  return 'black'
19
19
  }
20
20
 
21
+ getLegendFallback() {
22
+ return this.root.shuttleLegendTheme || super.getLegendFallback()
23
+ }
24
+
21
25
  render(ctx: CanvasRenderingContext2D) {
22
26
  var { left, top, width, height } = this.bounds
23
27
 
package/src/stocker.ts CHANGED
@@ -32,6 +32,10 @@ export default class Stocker extends MCSTransport {
32
32
  return NATURE
33
33
  }
34
34
 
35
+ getLegendFallback() {
36
+ return this.root.stokerLegendTheme || super.getLegendFallback()
37
+ }
38
+
35
39
  containable(component: Component) {
36
40
  return (
37
41
  super.containable(component) ||
@@ -29,8 +29,18 @@
29
29
  "label.carrier-id": "carrier id",
30
30
  "label.lot-id": "lot id",
31
31
  "label.vehicle-id": "vehicle id",
32
- "label.stocker-capacity-legend-name": "stocker capacity legend",
33
- "label.zone-capacity-legend-name": "zone capacity legend",
34
- "label.machine-legend-name": "machine legend",
35
- "label.unit-legend-name": "unit legend"
32
+ "label.stocker-capacity-legend-name": "stocker capacity",
33
+ "label.zone-capacity-legend-name": "zone capacity",
34
+ "label.buffer-legend-name": "buffer",
35
+ "label.agvline-legend-name": "AGV line",
36
+ "label.ohtline-legend-name": "OHT line",
37
+ "label.conveyor-legend-name": "conveyor",
38
+ "label.stoker-legend-name": "stoker",
39
+ "label.port-legend-name": "port",
40
+ "label.agv-legend-name": "AGV",
41
+ "label.oht-legend-name": "OHT",
42
+ "label.shuttle-legend-name": "shuttle",
43
+ "label.crane-legend-name": "crane",
44
+ "label.shelf-legend-name": "shelf",
45
+ "label.equipment-legend-name": "equipment"
36
46
  }
@@ -29,8 +29,20 @@
29
29
  "label.carrier-id": "carrier id",
30
30
  "label.lot-id": "lot id",
31
31
  "label.vehicle-id": "vehicle id",
32
- "label.stocker-capacity-legend-name": "stocker capacity legend",
33
- "label.zone-capacity-legend-name": "zone capacity legend",
34
- "label.machine-legend-name": "machine legend",
35
- "label.unit-legend-name": "unit legend"
32
+ "label.stocker-capacity-legend-name": "stocker capacity",
33
+ "label.zone-capacity-legend-name": "zone capacity",
34
+ "label.machine-legend-name": "machine",
35
+ "label.unit-legend-name": "unit",
36
+ "label.buffer-legend-name": "buffer",
37
+ "label.agvline-legend-name": "AGV line",
38
+ "label.ohtline-legend-name": "OHT line",
39
+ "label.conveyor-legend-name": "conveyor",
40
+ "label.stoker-legend-name": "stoker",
41
+ "label.port-legend-name": "port",
42
+ "label.agv-legend-name": "AGV",
43
+ "label.oht-legend-name": "OHT",
44
+ "label.shuttle-legend-name": "shuttle",
45
+ "label.crane-legend-name": "crane",
46
+ "label.shelf-legend-name": "shelf",
47
+ "label.equipment-legend-name": "equipment"
36
48
  }
@@ -30,8 +30,20 @@
30
30
  "label.carrier-id": "캐리어 ID",
31
31
  "label.lot-id": "로트 ID",
32
32
  "label.vehicle-id": "운송 차량 ID",
33
- "label.stocker-capacity-legend-name": "스토커 용량 레전드",
34
- "label.zone-capacity-legend-name": "존 용량 레전드",
35
- "label.machine-legend-name": "머신 레전드",
36
- "label.unit-legend-name": "유닛 레전드"
33
+ "label.stocker-capacity-legend-name": "스토커 용량",
34
+ "label.zone-capacity-legend-name": "존 용량",
35
+ "label.machine-legend-name": "머신",
36
+ "label.unit-legend-name": "유닛",
37
+ "label.buffer-legend-name": "버퍼",
38
+ "label.agvline-legend-name": "AGV 라인",
39
+ "label.ohtline-legend-name": "OHT 라인",
40
+ "label.conveyor-legend-name": "컨베이어",
41
+ "label.stoker-legend-name": "스토커",
42
+ "label.port-legend-name": "포트",
43
+ "label.agv-legend-name": "AGV",
44
+ "label.oht-legend-name": "OHT",
45
+ "label.shuttle-legend-name": "셔틀",
46
+ "label.crane-legend-name": "크레인",
47
+ "label.shelf-legend-name": "선반",
48
+ "label.equipment-legend-name": "장비"
37
49
  }
@@ -29,8 +29,20 @@
29
29
  "label.carrier-id": "carrier id",
30
30
  "label.lot-id": "lot id",
31
31
  "label.vehicle-id": "vehicle id",
32
- "label.stocker-capacity-legend-name": "stocker capacity legend",
33
- "label.zone-capacity-legend-name": "zone capacity legend",
34
- "label.machine-legend-name": "machine legend",
35
- "label.unit-legend-name": "unit legend"
32
+ "label.stocker-capacity-legend-name": "stocker capacity",
33
+ "label.zone-capacity-legend-name": "zone capacity",
34
+ "label.machine-legend-name": "machine",
35
+ "label.unit-legend-name": "unit",
36
+ "label.buffer-legend-name": "buffer",
37
+ "label.agvline-legend-name": "AGV line",
38
+ "label.ohtline-legend-name": "OHT line",
39
+ "label.conveyor-legend-name": "conveyor",
40
+ "label.stoker-legend-name": "stoker",
41
+ "label.port-legend-name": "port",
42
+ "label.agv-legend-name": "AGV",
43
+ "label.oht-legend-name": "OHT",
44
+ "label.shuttle-legend-name": "shuttle",
45
+ "label.crane-legend-name": "crane",
46
+ "label.shelf-legend-name": "shelf",
47
+ "label.equipment-legend-name": "equipment"
36
48
  }
@@ -29,8 +29,20 @@
29
29
  "label.carrier-id": "carrier id",
30
30
  "label.lot-id": "lot id",
31
31
  "label.vehicle-id": "vehicle id",
32
- "label.stocker-capacity-legend-name": "stocker capacity legend",
33
- "label.zone-capacity-legend-name": "zone capacity legend",
34
- "label.machine-legend-name": "machine legend",
35
- "label.unit-legend-name": "unit legend"
32
+ "label.stocker-capacity-legend-name": "stocker capacity",
33
+ "label.zone-capacity-legend-name": "zone capacity",
34
+ "label.machine-legend-name": "machine",
35
+ "label.unit-legend-name": "unit",
36
+ "label.buffer-legend-name": "buffer",
37
+ "label.agvline-legend-name": "agvline",
38
+ "label.ohtline-legend-name": "OHT line",
39
+ "label.conveyor-legend-name": "conveyor",
40
+ "label.stoker-legend-name": "stoker",
41
+ "label.port-legend-name": "port",
42
+ "label.agv-legend-name": "AGV",
43
+ "label.oht-legend-name": "OHT",
44
+ "label.shuttle-legend-name": "shuttle",
45
+ "label.crane-legend-name": "crane",
46
+ "label.shelf-legend-name": "shelf",
47
+ "label.equipment-legend-name": "equipment"
36
48
  }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=root-container-override.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"root-container-override.js","sourceRoot":"","sources":["../src/root-container-override.ts"],"names":[],"mappings":"","sourcesContent":[" "]}
@@ -1 +0,0 @@
1
-