@fmsim/machine 0.0.49
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-line.js +48 -0
- package/dist/agv-line.js.map +1 -0
- package/dist/agv.js +43 -0
- package/dist/agv.js.map +1 -0
- package/dist/buffer.js +40 -0
- package/dist/buffer.js.map +1 -0
- package/dist/conveyor-join.js +169 -0
- package/dist/conveyor-join.js.map +1 -0
- package/dist/conveyor.js +84 -0
- package/dist/conveyor.js.map +1 -0
- package/dist/crane.js +55 -0
- package/dist/crane.js.map +1 -0
- package/dist/data-subscription.js +126 -0
- package/dist/data-subscription.js.map +1 -0
- package/dist/editors/index.js +2 -0
- package/dist/editors/index.js.map +1 -0
- package/dist/equipment.js +18 -0
- package/dist/equipment.js.map +1 -0
- package/dist/features/client-api.js +45 -0
- package/dist/features/client-api.js.map +1 -0
- package/dist/features/conveyor-mixin.js +54 -0
- package/dist/features/conveyor-mixin.js.map +1 -0
- package/dist/features/mcs-event-handler-mixin.js +65 -0
- package/dist/features/mcs-event-handler-mixin.js.map +1 -0
- package/dist/features/mcs-status-default.js +67 -0
- package/dist/features/mcs-status-default.js.map +1 -0
- package/dist/features/mcs-status-mixin.js +39 -0
- package/dist/features/mcs-status-mixin.js.map +1 -0
- package/dist/features/mcs-transport-mixin.js +39 -0
- package/dist/features/mcs-transport-mixin.js.map +1 -0
- package/dist/features/mcs-zone-mixin.js +18 -0
- package/dist/features/mcs-zone-mixin.js.map +1 -0
- package/dist/groups/index.js +10 -0
- package/dist/groups/index.js.map +1 -0
- package/dist/groups/mcs-acs.js +24 -0
- package/dist/groups/mcs-acs.js.map +1 -0
- package/dist/groups/mcs-bcs.js +27 -0
- package/dist/groups/mcs-bcs.js.map +1 -0
- package/dist/groups/mcs-ccs.js +25 -0
- package/dist/groups/mcs-ccs.js.map +1 -0
- package/dist/groups/mcs-ecs.js +23 -0
- package/dist/groups/mcs-ecs.js.map +1 -0
- package/dist/groups/mcs-ocs.js +25 -0
- package/dist/groups/mcs-ocs.js.map +1 -0
- package/dist/groups/mcs-path.js +28 -0
- package/dist/groups/mcs-path.js.map +1 -0
- package/dist/groups/mcs-scs.js +26 -0
- package/dist/groups/mcs-scs.js.map +1 -0
- package/dist/groups/mcs-shape.js +26 -0
- package/dist/groups/mcs-shape.js.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/mcs-carrier-holder.js +107 -0
- package/dist/mcs-carrier-holder.js.map +1 -0
- package/dist/mcs-gauge-capacity-bar.js +170 -0
- package/dist/mcs-gauge-capacity-bar.js.map +1 -0
- package/dist/mcs-gauge-capacity-circle.js +91 -0
- package/dist/mcs-gauge-capacity-circle.js.map +1 -0
- package/dist/mcs-machine.js +84 -0
- package/dist/mcs-machine.js.map +1 -0
- package/dist/mcs-popup.js +82 -0
- package/dist/mcs-popup.js.map +1 -0
- package/dist/mcs-transport.js +18 -0
- package/dist/mcs-transport.js.map +1 -0
- package/dist/mcs-unit.js +78 -0
- package/dist/mcs-unit.js.map +1 -0
- package/dist/mcs-vehicle.js +69 -0
- package/dist/mcs-vehicle.js.map +1 -0
- package/dist/mcs-zone-unit.js +11 -0
- package/dist/mcs-zone-unit.js.map +1 -0
- package/dist/oht-line.js +32 -0
- package/dist/oht-line.js.map +1 -0
- package/dist/oht.js +42 -0
- package/dist/oht.js.map +1 -0
- package/dist/port.js +32 -0
- package/dist/port.js.map +1 -0
- package/dist/rtv-rail.js +36 -0
- package/dist/rtv-rail.js.map +1 -0
- package/dist/shelf.js +41 -0
- package/dist/shelf.js.map +1 -0
- package/dist/shuttle.js +49 -0
- package/dist/shuttle.js.map +1 -0
- package/dist/stocker-capacity-bar.js +171 -0
- package/dist/stocker-capacity-bar.js.map +1 -0
- package/dist/stocker.js +36 -0
- package/dist/stocker.js.map +1 -0
- package/dist/templates/agv-line-corner.js +34 -0
- package/dist/templates/agv-line-corner.js.map +1 -0
- package/dist/templates/agv-line-cross.js +34 -0
- package/dist/templates/agv-line-cross.js.map +1 -0
- package/dist/templates/agv-line-horizontal.js +34 -0
- package/dist/templates/agv-line-horizontal.js.map +1 -0
- package/dist/templates/agv-line-vertical.js +34 -0
- package/dist/templates/agv-line-vertical.js.map +1 -0
- package/dist/templates/agv-line.js +15 -0
- package/dist/templates/agv-line.js.map +1 -0
- package/dist/templates/agv.js +15 -0
- package/dist/templates/agv.js.map +1 -0
- package/dist/templates/buffer.js +15 -0
- package/dist/templates/buffer.js.map +1 -0
- package/dist/templates/conveyor-corner.js +33 -0
- package/dist/templates/conveyor-corner.js.map +1 -0
- package/dist/templates/conveyor-join.js +21 -0
- package/dist/templates/conveyor-join.js.map +1 -0
- package/dist/templates/conveyor-left.js +33 -0
- package/dist/templates/conveyor-left.js.map +1 -0
- package/dist/templates/conveyor-middle.js +33 -0
- package/dist/templates/conveyor-middle.js.map +1 -0
- package/dist/templates/conveyor-right.js +33 -0
- package/dist/templates/conveyor-right.js.map +1 -0
- package/dist/templates/conveyor.js +18 -0
- package/dist/templates/conveyor.js.map +1 -0
- package/dist/templates/crane.js +15 -0
- package/dist/templates/crane.js.map +1 -0
- package/dist/templates/data-subscription.js +16 -0
- package/dist/templates/data-subscription.js.map +1 -0
- package/dist/templates/equipment.js +15 -0
- package/dist/templates/equipment.js.map +1 -0
- package/dist/templates/index.js +35 -0
- package/dist/templates/index.js.map +1 -0
- package/dist/templates/mcs-gauge-capacity-bar.js +18 -0
- package/dist/templates/mcs-gauge-capacity-bar.js.map +1 -0
- package/dist/templates/mcs-gauge-capacity-circle.js +18 -0
- package/dist/templates/mcs-gauge-capacity-circle.js.map +1 -0
- package/dist/templates/oht-line-corner.js +34 -0
- package/dist/templates/oht-line-corner.js.map +1 -0
- package/dist/templates/oht-line-cross.js +34 -0
- package/dist/templates/oht-line-cross.js.map +1 -0
- package/dist/templates/oht-line-horizontal.js +34 -0
- package/dist/templates/oht-line-horizontal.js.map +1 -0
- package/dist/templates/oht-line-vertical.js +34 -0
- package/dist/templates/oht-line-vertical.js.map +1 -0
- package/dist/templates/oht-line.js +15 -0
- package/dist/templates/oht-line.js.map +1 -0
- package/dist/templates/oht.js +15 -0
- package/dist/templates/oht.js.map +1 -0
- package/dist/templates/port.js +15 -0
- package/dist/templates/port.js.map +1 -0
- package/dist/templates/rtv-corner.js +33 -0
- package/dist/templates/rtv-corner.js.map +1 -0
- package/dist/templates/rtv-left.js +33 -0
- package/dist/templates/rtv-left.js.map +1 -0
- package/dist/templates/rtv-middle.js +33 -0
- package/dist/templates/rtv-middle.js.map +1 -0
- package/dist/templates/rtv-rail.js +15 -0
- package/dist/templates/rtv-rail.js.map +1 -0
- package/dist/templates/rtv-right.js +33 -0
- package/dist/templates/rtv-right.js.map +1 -0
- package/dist/templates/rtv.js +15 -0
- package/dist/templates/rtv.js.map +1 -0
- package/dist/templates/shelf.js +15 -0
- package/dist/templates/shelf.js.map +1 -0
- package/dist/templates/shuttle.js +15 -0
- package/dist/templates/shuttle.js.map +1 -0
- package/dist/templates/stocker-capacity-bar.js +18 -0
- package/dist/templates/stocker-capacity-bar.js.map +1 -0
- package/dist/templates/stocker-capacity-circle.js +18 -0
- package/dist/templates/stocker-capacity-circle.js.map +1 -0
- package/dist/templates/stocker.js +16 -0
- package/dist/templates/stocker.js.map +1 -0
- package/dist/templates/zone-capacity-bar.js +19 -0
- package/dist/templates/zone-capacity-bar.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/utils/get-locale.js +19 -0
- package/dist/utils/get-locale.js.map +1 -0
- package/dist/utils/get-value-on-ranges.js +23 -0
- package/dist/utils/get-value-on-ranges.js.map +1 -0
- package/dist/utils/normalize-angle.js +11 -0
- package/dist/utils/normalize-angle.js.map +1 -0
- package/dist/utils/safe-round.js +9 -0
- package/dist/utils/safe-round.js.map +1 -0
- package/dist/zone-capacity-bar.js +162 -0
- package/dist/zone-capacity-bar.js.map +1 -0
- package/icons/agv-line.png +0 -0
- package/icons/agv.png +0 -0
- package/icons/buffer.png +0 -0
- package/icons/conveyor-corner.png +0 -0
- package/icons/conveyor-corner.svg +10 -0
- package/icons/conveyor-join.png +0 -0
- package/icons/conveyor-left.png +0 -0
- package/icons/conveyor-left.svg +6 -0
- package/icons/conveyor-middle.png +0 -0
- package/icons/conveyor-middle.svg +5 -0
- package/icons/conveyor-right.png +0 -0
- package/icons/conveyor-right.svg +6 -0
- package/icons/conveyor.png +0 -0
- package/icons/crane.png +0 -0
- package/icons/equipment.png +0 -0
- package/icons/icon-data-subscription.png +0 -0
- package/icons/oht-line.png +0 -0
- package/icons/oht.png +0 -0
- package/icons/pallet-empty.svg +3 -0
- package/icons/pallet.svg +11 -0
- package/icons/path-position.svg +5 -0
- package/icons/port.png +0 -0
- package/icons/process.png +0 -0
- package/icons/rtv-rail.png +0 -0
- package/icons/rtv.png +0 -0
- package/icons/shelf.png +0 -0
- package/icons/shuttle.png +0 -0
- package/icons/stocker-capacity-bar.png +0 -0
- package/icons/stocker-capacity-circle.png +0 -0
- package/icons/stocker.png +0 -0
- package/icons/symbol-data-subscription.png +0 -0
- package/icons/vehicle.png +0 -0
- package/icons/zone-capacity-bar.png +0 -0
- package/migration-samples/model.json +7964 -0
- package/package.json +59 -0
- package/src/agv-line.ts +59 -0
- package/src/agv.ts +56 -0
- package/src/buffer.ts +50 -0
- package/src/conveyor-join.ts +208 -0
- package/src/conveyor.ts +101 -0
- package/src/crane.ts +72 -0
- package/src/data-subscription.ts +150 -0
- package/src/editors/index.ts +0 -0
- package/src/equipment.ts +21 -0
- package/src/features/client-api.ts +52 -0
- package/src/features/conveyor-mixin.ts +75 -0
- package/src/features/mcs-status-default.ts +76 -0
- package/src/features/mcs-status-mixin.ts +53 -0
- package/src/features/mcs-zone-mixin.ts +23 -0
- package/src/groups/index.ts +10 -0
- package/src/groups/mcs-acs.ts +24 -0
- package/src/groups/mcs-bcs.ts +27 -0
- package/src/groups/mcs-ccs.ts +25 -0
- package/src/groups/mcs-ecs.ts +23 -0
- package/src/groups/mcs-ocs.ts +25 -0
- package/src/groups/mcs-path.ts +28 -0
- package/src/groups/mcs-scs.ts +26 -0
- package/src/groups/mcs-shape.ts +26 -0
- package/src/index.ts +29 -0
- package/src/mcs-carrier-holder.ts +141 -0
- package/src/mcs-gauge-capacity-circle.ts +113 -0
- package/src/mcs-machine.ts +101 -0
- package/src/mcs-popup.ts +99 -0
- package/src/mcs-transport.ts +20 -0
- package/src/mcs-unit.ts +91 -0
- package/src/mcs-vehicle.ts +79 -0
- package/src/oht-line.ts +43 -0
- package/src/oht.ts +55 -0
- package/src/port.ts +41 -0
- package/src/shelf.ts +53 -0
- package/src/shuttle.ts +65 -0
- package/src/stocker-capacity-bar.ts +220 -0
- package/src/stocker.ts +45 -0
- package/src/templates/agv-line.ts +15 -0
- package/src/templates/agv.ts +15 -0
- package/src/templates/buffer.ts +15 -0
- package/src/templates/conveyor.ts +18 -0
- package/src/templates/crane.ts +15 -0
- package/src/templates/data-subscription.js +16 -0
- package/src/templates/equipment.ts +15 -0
- package/src/templates/index.ts +43 -0
- package/src/templates/oht-line.ts +15 -0
- package/src/templates/oht.ts +15 -0
- package/src/templates/port.ts +15 -0
- package/src/templates/shelf.ts +15 -0
- package/src/templates/shuttle.ts +15 -0
- package/src/templates/stocker-capacity-bar.ts +18 -0
- package/src/templates/stocker-capacity-circle.ts +18 -0
- package/src/templates/stocker.ts +16 -0
- package/src/templates/zone-capacity-bar.ts +19 -0
- package/src/utils/get-locale.ts +22 -0
- package/src/utils/get-value-on-ranges.ts +25 -0
- package/src/utils/normalize-angle.ts +9 -0
- package/src/utils/safe-round.ts +8 -0
- package/src/zone-capacity-bar.ts +209 -0
- package/things-scene.config.js +7 -0
- package/translations/en.json +7 -0
- package/translations/ja.json +7 -0
- package/translations/ko.json +7 -0
- package/translations/ms.json +7 -0
- package/translations/zh.json +7 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { Component, RectPath, Shape } from '@hatiolab/things-scene';
|
|
2
|
+
import { MCSStatusMixin } from './features/mcs-status-mixin';
|
|
3
|
+
import { LEGEND_CAPACITY } from './features/mcs-status-default';
|
|
4
|
+
import { safeRound } from './utils/safe-round';
|
|
5
|
+
import { getVaueOnRanges } from './utils/get-value-on-ranges';
|
|
6
|
+
const NATURE = {
|
|
7
|
+
mutable: false,
|
|
8
|
+
resizable: true,
|
|
9
|
+
rotatable: true,
|
|
10
|
+
properties: [
|
|
11
|
+
{
|
|
12
|
+
type: 'number',
|
|
13
|
+
name: 'currentUsage',
|
|
14
|
+
label: 'current-usage'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
type: 'number',
|
|
18
|
+
name: 'highWatermark',
|
|
19
|
+
label: 'high-watermark'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
type: 'number',
|
|
23
|
+
name: 'maxCapacity',
|
|
24
|
+
label: 'max-capacity'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
type: 'number',
|
|
28
|
+
label: 'round',
|
|
29
|
+
name: 'round',
|
|
30
|
+
property: {
|
|
31
|
+
min: 0
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: 'hidden',
|
|
36
|
+
name: 'usage',
|
|
37
|
+
label: 'usage'
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
'value-property': 'usage'
|
|
41
|
+
};
|
|
42
|
+
var controlHandler = {
|
|
43
|
+
ondragmove: function (point, index, component) {
|
|
44
|
+
var { left, top, width, height } = component.model;
|
|
45
|
+
var transcoorded = component.transcoordP2S(point.x, point.y);
|
|
46
|
+
var round = ((transcoorded.x - left) / (width / 2)) * 100;
|
|
47
|
+
round = safeRound(round, width, height);
|
|
48
|
+
component.set({
|
|
49
|
+
round
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
export default class StockerCapacityBar extends MCSStatusMixin(RectPath(Shape)) {
|
|
54
|
+
static get nature() {
|
|
55
|
+
return NATURE;
|
|
56
|
+
}
|
|
57
|
+
get controls() {
|
|
58
|
+
var { left, top, width, round, height } = this.state;
|
|
59
|
+
round = round == undefined ? 0 : safeRound(round, width, height);
|
|
60
|
+
return [
|
|
61
|
+
{
|
|
62
|
+
x: left + (width / 2) * (round / 100),
|
|
63
|
+
y: top,
|
|
64
|
+
handler: controlHandler
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
}
|
|
68
|
+
getTheme() {
|
|
69
|
+
var _a, _b;
|
|
70
|
+
const { legendName } = this.state;
|
|
71
|
+
if (legendName) {
|
|
72
|
+
return (_b = (_a = this.root) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b[legendName];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
get legend() {
|
|
76
|
+
return this.getTheme() || this.getLegendFallback();
|
|
77
|
+
}
|
|
78
|
+
getLegendFallback() {
|
|
79
|
+
return LEGEND_CAPACITY;
|
|
80
|
+
}
|
|
81
|
+
get statusColor() {
|
|
82
|
+
return getVaueOnRanges(this.usage, this.legend);
|
|
83
|
+
}
|
|
84
|
+
get text() {
|
|
85
|
+
return this.usage + '%';
|
|
86
|
+
}
|
|
87
|
+
render(context) {
|
|
88
|
+
const { left, top, width, height } = this.bounds;
|
|
89
|
+
if (width >= height) {
|
|
90
|
+
this.renderLandscape(context);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
this.renderPortrait(context);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
renderLandscape(context) {
|
|
97
|
+
const { left, top, width, height } = this.bounds;
|
|
98
|
+
const { lineWidth, strokeStyle, round, fillStyle = '#aaa' } = this.state;
|
|
99
|
+
context.strokeStyle = strokeStyle;
|
|
100
|
+
context.lineWidth = lineWidth;
|
|
101
|
+
context.save();
|
|
102
|
+
context.translate(left, top);
|
|
103
|
+
// gauge background
|
|
104
|
+
context.beginPath();
|
|
105
|
+
context.fillStyle = fillStyle;
|
|
106
|
+
context.roundRect(0, 0, width, height, round);
|
|
107
|
+
context.fill();
|
|
108
|
+
context.stroke();
|
|
109
|
+
context.clip();
|
|
110
|
+
// gauge foreground
|
|
111
|
+
context.beginPath();
|
|
112
|
+
context.fillStyle = this.statusColor;
|
|
113
|
+
context.rect(0, 0, (width / 100) * this.usage, height);
|
|
114
|
+
context.fill();
|
|
115
|
+
context.beginPath();
|
|
116
|
+
context.strokeStyle = strokeStyle;
|
|
117
|
+
context.roundRect(0, 0, width, height, round);
|
|
118
|
+
context.stroke();
|
|
119
|
+
context.beginPath();
|
|
120
|
+
context.translate(-left, -top);
|
|
121
|
+
context.restore();
|
|
122
|
+
}
|
|
123
|
+
renderPortrait(context) {
|
|
124
|
+
const { left, top, width, height } = this.bounds;
|
|
125
|
+
const { lineWidth, strokeStyle, round, fillStyle } = this.state;
|
|
126
|
+
context.strokeStyle = strokeStyle;
|
|
127
|
+
context.lineWidth = lineWidth;
|
|
128
|
+
context.save();
|
|
129
|
+
context.translate(left, top);
|
|
130
|
+
// gauge background
|
|
131
|
+
context.beginPath();
|
|
132
|
+
context.fillStyle = fillStyle;
|
|
133
|
+
context.roundRect(0, 0, width, height, round);
|
|
134
|
+
context.fill();
|
|
135
|
+
context.stroke();
|
|
136
|
+
context.clip();
|
|
137
|
+
// gauge foreground
|
|
138
|
+
context.beginPath();
|
|
139
|
+
context.fillStyle = this.statusColor;
|
|
140
|
+
context.rect(0, height - (height / 100) * this.usage, width, (height / 100) * this.usage);
|
|
141
|
+
context.fill();
|
|
142
|
+
context.beginPath();
|
|
143
|
+
context.roundRect(0, 0, width, height, round);
|
|
144
|
+
context.stroke();
|
|
145
|
+
context.beginPath();
|
|
146
|
+
context.translate(-left, -top);
|
|
147
|
+
context.restore();
|
|
148
|
+
}
|
|
149
|
+
get usage() {
|
|
150
|
+
const { currentUsage = 0, maxCapacity = 100 } = this.state;
|
|
151
|
+
return Math.round((currentUsage / maxCapacity) * 100);
|
|
152
|
+
}
|
|
153
|
+
set usage(usage) {
|
|
154
|
+
// intentionally have done nothing
|
|
155
|
+
}
|
|
156
|
+
onchangeData(after, before) {
|
|
157
|
+
const { CURRENTCAPACITY = 0, MAXCAPACITY = 100, HIGHWATERMARK = 100 } = typeof this.data == 'object' ? this.data : {};
|
|
158
|
+
const currentUsage = Number(CURRENTCAPACITY) || 0;
|
|
159
|
+
const maxCapacity = Number(MAXCAPACITY) || 100;
|
|
160
|
+
const highWatermark = Number(HIGHWATERMARK) || 100;
|
|
161
|
+
this.setState({
|
|
162
|
+
currentUsage,
|
|
163
|
+
maxCapacity,
|
|
164
|
+
highWatermark,
|
|
165
|
+
usage: Math.round((currentUsage / maxCapacity) * 100)
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
Component.register('StockerCapacityBar', StockerCapacityBar);
|
|
170
|
+
Component.register('MCSGaugeCapacityBar', StockerCapacityBar);
|
|
171
|
+
//# sourceMappingURL=stocker-capacity-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stocker-capacity-bar.js","sourceRoot":"","sources":["../src/stocker-capacity-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyC,QAAQ,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAC1G,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAU,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAE7D,MAAM,MAAM,GAAoB;IAC9B,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV;YACE,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,cAAc;YACpB,KAAK,EAAE,eAAe;SACvB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,gBAAgB;SACxB;QAC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,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAA;QAC9B,OAAO,CAAC,OAAO,EAAE,CAAA;IACnB,CAAC;IAED,IAAI,KAAK;QACP,MAAM,EAAE,YAAY,GAAG,CAAC,EAAE,WAAW,GAAG,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC,CAAA;IACvD,CAAC;IAED,IAAI,KAAK,CAAC,KAAa;QACrB,kCAAkC;IACpC,CAAC;IAED,YAAY,CAAC,KAAiB,EAAE,MAAkB;QAChD,MAAM,EACJ,eAAe,GAAG,CAAC,EACnB,WAAW,GAAG,GAAG,EACjB,aAAa,GAAG,GAAG,EACpB,GAAG,OAAO,IAAI,CAAC,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAA;QAEjD,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,CAAA;QACjD,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,GAAG,CAAA;QAC9C,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,GAAG,CAAA;QAElD,IAAI,CAAC,QAAQ,CAAC;YACZ,YAAY;YACZ,WAAW;YACX,aAAa;YACb,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC;SACtD,CAAC,CAAA;IACJ,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAAA;AAC5D,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAAA","sourcesContent":["import { Component, ComponentNature, POSITION, Properties, RectPath, Shape } from '@hatiolab/things-scene'\nimport { MCSStatusMixin } from './features/mcs-status-mixin'\nimport { LEGEND_CAPACITY, Legend } from './features/mcs-status-default'\nimport { safeRound } from './utils/safe-round'\nimport { getVaueOnRanges } from './utils/get-value-on-ranges'\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'number',\n name: 'currentUsage',\n label: 'current-usage'\n },\n {\n type: 'number',\n name: 'highWatermark',\n label: 'high-watermark'\n },\n {\n type: 'number',\n name: 'maxCapacity',\n label: 'max-capacity'\n },\n {\n type: 'number',\n label: 'round',\n name: 'round',\n property: {\n min: 0\n }\n },\n {\n type: 'hidden',\n name: 'usage',\n label: 'usage'\n }\n ],\n 'value-property': 'usage'\n}\n\nvar controlHandler = {\n ondragmove: function (point: POSITION, index: number, component: Component) {\n var { left, top, width, height } = component.model\n\n var transcoorded = component.transcoordP2S(point.x, point.y)\n var round = ((transcoorded.x - left) / (width / 2)) * 100\n\n round = safeRound(round, width, height)\n\n component.set({\n round\n })\n }\n}\n\nexport default class StockerCapacityBar extends MCSStatusMixin(RectPath(Shape)) {\n static get nature() {\n return NATURE\n }\n\n get controls() {\n var { left, top, width, round, height } = this.state\n round = round == undefined ? 0 : safeRound(round, width, height)\n\n return [\n {\n x: left + (width / 2) * (round / 100),\n y: top,\n handler: controlHandler\n }\n ]\n }\n\n getTheme() {\n const { legendName } = this.state\n\n if (legendName) {\n return (this.root as any)?.style?.[legendName]\n }\n }\n\n get legend(): Legend {\n return this.getTheme() || this.getLegendFallback()\n }\n\n getLegendFallback() {\n return LEGEND_CAPACITY\n }\n\n get statusColor() {\n return getVaueOnRanges(this.usage, this.legend)\n }\n\n get text() {\n return this.usage + '%'\n }\n\n render(context: CanvasRenderingContext2D) {\n const { left, top, width, height } = this.bounds\n\n if (width >= height) {\n this.renderLandscape(context)\n } else {\n this.renderPortrait(context)\n }\n }\n\n renderLandscape(context: CanvasRenderingContext2D) {\n const { left, top, width, height } = this.bounds\n const { lineWidth, strokeStyle, round, fillStyle = '#aaa' } = this.state\n\n context.strokeStyle = strokeStyle\n context.lineWidth = lineWidth\n\n context.save()\n context.translate(left, top)\n\n // gauge background\n context.beginPath()\n\n context.fillStyle = fillStyle\n context.roundRect(0, 0, width, height, round)\n\n context.fill()\n context.stroke()\n\n context.clip()\n\n // gauge foreground\n context.beginPath()\n\n context.fillStyle = this.statusColor!\n\n context.rect(0, 0, (width / 100) * this.usage, height)\n context.fill()\n\n context.beginPath()\n context.strokeStyle = strokeStyle\n context.roundRect(0, 0, width, height, round)\n context.stroke()\n\n context.beginPath()\n\n context.translate(-left, -top)\n context.restore()\n }\n\n renderPortrait(context: CanvasRenderingContext2D) {\n const { left, top, width, height } = this.bounds\n const { lineWidth, strokeStyle, round, fillStyle } = this.state\n\n context.strokeStyle = strokeStyle\n context.lineWidth = lineWidth\n\n context.save()\n context.translate(left, top)\n\n // gauge background\n context.beginPath()\n\n context.fillStyle = fillStyle\n context.roundRect(0, 0, width, height, round)\n\n context.fill()\n context.stroke()\n\n context.clip()\n\n // gauge foreground\n context.beginPath()\n\n context.fillStyle = this.statusColor!\n\n context.rect(0, height - (height / 100) * this.usage, width, (height / 100) * this.usage)\n context.fill()\n\n context.beginPath()\n context.roundRect(0, 0, width, height, round)\n context.stroke()\n\n context.beginPath()\n\n context.translate(-left, -top)\n context.restore()\n }\n\n get usage() {\n const { currentUsage = 0, maxCapacity = 100 } = this.state\n return Math.round((currentUsage / maxCapacity) * 100)\n }\n\n set usage(usage: number) {\n // intentionally have done nothing\n }\n\n onchangeData(after: Properties, before: Properties): void {\n const {\n CURRENTCAPACITY = 0,\n MAXCAPACITY = 100,\n HIGHWATERMARK = 100\n } = typeof this.data == 'object' ? this.data : {}\n\n const currentUsage = Number(CURRENTCAPACITY) || 0\n const maxCapacity = Number(MAXCAPACITY) || 100\n const highWatermark = Number(HIGHWATERMARK) || 100\n\n this.setState({\n currentUsage,\n maxCapacity,\n highWatermark,\n usage: Math.round((currentUsage / maxCapacity) * 100)\n })\n }\n}\n\nComponent.register('StockerCapacityBar', StockerCapacityBar)\nComponent.register('MCSGaugeCapacityBar', StockerCapacityBar)\n"]}
|
package/dist/stocker.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Component } from '@hatiolab/things-scene';
|
|
2
|
+
import MCSTransport from './mcs-transport';
|
|
3
|
+
const NATURE = {
|
|
4
|
+
mutable: false,
|
|
5
|
+
resizable: true,
|
|
6
|
+
rotatable: true,
|
|
7
|
+
properties: [...MCSTransport.properties]
|
|
8
|
+
};
|
|
9
|
+
// const capacity = { ko: 'Capacity', en: 'Capacity', zh_CN: '容量' }
|
|
10
|
+
// export function getLocaleLanguage() {
|
|
11
|
+
// let localeValue
|
|
12
|
+
// let nameOfCookie = 'miipLang' + '='
|
|
13
|
+
// let x = 0
|
|
14
|
+
// while (x <= document.cookie.length) {
|
|
15
|
+
// let y = x + nameOfCookie.length
|
|
16
|
+
// if (document.cookie.substring(x, y) == nameOfCookie) {
|
|
17
|
+
// let endOfCookie
|
|
18
|
+
// if ((endOfCookie = document.cookie.indexOf(';', y)) == -1) endOfCookie = document.cookie.length
|
|
19
|
+
// localeValue = unescape(document.cookie.substring(y, endOfCookie))
|
|
20
|
+
// }
|
|
21
|
+
// x = document.cookie.indexOf(' ', x) + 1
|
|
22
|
+
// if (x == 0) break
|
|
23
|
+
// }
|
|
24
|
+
// return localeValue
|
|
25
|
+
// }
|
|
26
|
+
export default class Stocker extends MCSTransport {
|
|
27
|
+
static get nature() {
|
|
28
|
+
return NATURE;
|
|
29
|
+
}
|
|
30
|
+
containable(component) {
|
|
31
|
+
return (super.containable(component) ||
|
|
32
|
+
['Crane', 'Shelf', 'Port', 'MCSGaugeCapacityBar', 'StockerCapacityBar', 'ZoneCapacityBar'].includes(component.state.type));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
Component.register('STOCKER', Stocker);
|
|
36
|
+
//# sourceMappingURL=stocker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stocker.js","sourceRoot":"","sources":["../src/stocker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmB,MAAM,wBAAwB,CAAA;AACnE,OAAO,YAAY,MAAM,iBAAiB,CAAA;AAE1C,MAAM,MAAM,GAAoB;IAC9B,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC;CACzC,CAAA;AAED,mEAAmE;AAEnE,wCAAwC;AACxC,oBAAoB;AACpB,wCAAwC;AACxC,cAAc;AACd,0CAA0C;AAC1C,sCAAsC;AACtC,6DAA6D;AAC7D,wBAAwB;AACxB,wGAAwG;AACxG,0EAA0E;AAC1E,QAAQ;AACR,8CAA8C;AAC9C,wBAAwB;AACxB,MAAM;AACN,uBAAuB;AACvB,IAAI;AAEJ,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,YAAY;IAC/C,MAAM,KAAK,MAAM;QACf,OAAO,MAAM,CAAA;IACf,CAAC;IAED,WAAW,CAAC,SAAoB;QAC9B,OAAO,CACL,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC;YAC5B,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,iBAAiB,CAAC,CAAC,QAAQ,CACjG,SAAS,CAAC,KAAK,CAAC,IAAI,CACrB,CACF,CAAA;IACH,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA","sourcesContent":["import { Component, ComponentNature } from '@hatiolab/things-scene'\nimport MCSTransport from './mcs-transport'\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [...MCSTransport.properties]\n}\n\n// const capacity = { ko: 'Capacity', en: 'Capacity', zh_CN: '容量' }\n\n// export function getLocaleLanguage() {\n// let localeValue\n// let nameOfCookie = 'miipLang' + '='\n// let x = 0\n// while (x <= document.cookie.length) {\n// let y = x + nameOfCookie.length\n// if (document.cookie.substring(x, y) == nameOfCookie) {\n// let endOfCookie\n// if ((endOfCookie = document.cookie.indexOf(';', y)) == -1) endOfCookie = document.cookie.length\n// localeValue = unescape(document.cookie.substring(y, endOfCookie))\n// }\n// x = document.cookie.indexOf(' ', x) + 1\n// if (x == 0) break\n// }\n// return localeValue\n// }\n\nexport default class Stocker extends MCSTransport {\n static get nature() {\n return NATURE\n }\n\n containable(component: Component) {\n return (\n super.containable(component) ||\n ['Crane', 'Shelf', 'Port', 'MCSGaugeCapacityBar', 'StockerCapacityBar', 'ZoneCapacityBar'].includes(\n component.state.type\n )\n )\n }\n}\n\nComponent.register('STOCKER', Stocker)\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const agvLineCorner = new URL('../../icons/agv-line-corner.svg', import.meta.url).href;
|
|
2
|
+
const agvLineCornerFillImage = new URL('../../icons/agv-line-corner.png', import.meta.url).href;
|
|
3
|
+
export default {
|
|
4
|
+
type: 'AGV Line Corner',
|
|
5
|
+
description: 'AGV Line Corner',
|
|
6
|
+
icon: agvLineCorner,
|
|
7
|
+
group: 'ACS',
|
|
8
|
+
model: {
|
|
9
|
+
type: 'AGVLine',
|
|
10
|
+
agvType: 'corner',
|
|
11
|
+
left: 200,
|
|
12
|
+
top: 100,
|
|
13
|
+
width: 22,
|
|
14
|
+
height: 22,
|
|
15
|
+
fillStyle: {
|
|
16
|
+
fitPattern: false,
|
|
17
|
+
height: null,
|
|
18
|
+
image: agvLineCornerFillImage,
|
|
19
|
+
offsetX: 0,
|
|
20
|
+
offsetY: 0,
|
|
21
|
+
type: 'pattern',
|
|
22
|
+
width: null,
|
|
23
|
+
color: '#d6d6d6'
|
|
24
|
+
},
|
|
25
|
+
text: ' ',
|
|
26
|
+
strokeStyle: '#000',
|
|
27
|
+
alpha: 1,
|
|
28
|
+
hidden: false,
|
|
29
|
+
lineWidth: 0,
|
|
30
|
+
lineDash: 'solid',
|
|
31
|
+
lineCap: 'butt'
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=agv-line-corner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agv-line-corner.js","sourceRoot":"","sources":["../../src/templates/agv-line-corner.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,iCAAiC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACtF,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC,iCAAiC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE/F,eAAe;IACb,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,QAAQ;QACjB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,SAAS,EAAE;YACT,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,sBAAsB;YAC7B,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,SAAS;SACjB;QACD,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,MAAM;QACnB,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,MAAM;KAChB;CACF,CAAA","sourcesContent":["const agvLineCorner = new URL('../../icons/agv-line-corner.svg', import.meta.url).href\nconst agvLineCornerFillImage = new URL('../../icons/agv-line-corner.png', import.meta.url).href\n\nexport default {\n type: 'AGV Line Corner',\n description: 'AGV Line Corner',\n icon: agvLineCorner,\n group: 'ACS',\n model: {\n type: 'AGVLine',\n agvType: 'corner',\n left: 200,\n top: 100,\n width: 22,\n height: 22,\n fillStyle: {\n fitPattern: false,\n height: null,\n image: agvLineCornerFillImage,\n offsetX: 0,\n offsetY: 0,\n type: 'pattern',\n width: null,\n color: '#d6d6d6'\n },\n text: ' ',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 0,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n}\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const agvLineCross = new URL('../../icons/agv-line-cross.svg', import.meta.url).href;
|
|
2
|
+
const agvLineCrossFillImage = new URL('../../icons/agv-line-cross.png', import.meta.url).href;
|
|
3
|
+
export default {
|
|
4
|
+
type: 'AGV Line Cross',
|
|
5
|
+
description: 'AGV Line Cross',
|
|
6
|
+
icon: agvLineCross,
|
|
7
|
+
group: 'ACS',
|
|
8
|
+
model: {
|
|
9
|
+
type: 'AGVLine',
|
|
10
|
+
agvType: 'cross',
|
|
11
|
+
left: 200,
|
|
12
|
+
top: 100,
|
|
13
|
+
width: 22,
|
|
14
|
+
height: 22,
|
|
15
|
+
fillStyle: {
|
|
16
|
+
fitPattern: false,
|
|
17
|
+
height: null,
|
|
18
|
+
image: agvLineCrossFillImage,
|
|
19
|
+
offsetX: 0,
|
|
20
|
+
offsetY: 0,
|
|
21
|
+
type: 'pattern',
|
|
22
|
+
width: null,
|
|
23
|
+
color: '#d6d6d6'
|
|
24
|
+
},
|
|
25
|
+
text: ' ',
|
|
26
|
+
strokeStyle: '#000',
|
|
27
|
+
alpha: 1,
|
|
28
|
+
hidden: false,
|
|
29
|
+
lineWidth: 0,
|
|
30
|
+
lineDash: 'solid',
|
|
31
|
+
lineCap: 'butt'
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=agv-line-cross.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agv-line-cross.js","sourceRoot":"","sources":["../../src/templates/agv-line-cross.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,gCAAgC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACpF,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,gCAAgC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE7F,eAAe;IACb,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,SAAS,EAAE;YACT,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,qBAAqB;YAC5B,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,SAAS;SACjB;QACD,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,MAAM;QACnB,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,MAAM;KAChB;CACF,CAAA","sourcesContent":["const agvLineCross = new URL('../../icons/agv-line-cross.svg', import.meta.url).href\nconst agvLineCrossFillImage = new URL('../../icons/agv-line-cross.png', import.meta.url).href\n\nexport default {\n type: 'AGV Line Cross',\n description: 'AGV Line Cross',\n icon: agvLineCross,\n group: 'ACS',\n model: {\n type: 'AGVLine',\n agvType: 'cross',\n left: 200,\n top: 100,\n width: 22,\n height: 22,\n fillStyle: {\n fitPattern: false,\n height: null,\n image: agvLineCrossFillImage,\n offsetX: 0,\n offsetY: 0,\n type: 'pattern',\n width: null,\n color: '#d6d6d6'\n },\n text: ' ',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 0,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n}\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const agvLineHorizontal = new URL('../../icons/agv-line-horizontal.svg', import.meta.url).href;
|
|
2
|
+
const agvLineHorizontalFillImage = new URL('../../icons/agv-line-horizontal.png', import.meta.url).href;
|
|
3
|
+
export default {
|
|
4
|
+
type: 'AGV Line Horizontal',
|
|
5
|
+
description: 'AGV Line Horizontal',
|
|
6
|
+
icon: agvLineHorizontal,
|
|
7
|
+
group: 'ACS',
|
|
8
|
+
model: {
|
|
9
|
+
type: 'AGVLine',
|
|
10
|
+
agvType: 'horizon',
|
|
11
|
+
text: ' ',
|
|
12
|
+
left: 100,
|
|
13
|
+
top: 100,
|
|
14
|
+
width: 22,
|
|
15
|
+
height: 27,
|
|
16
|
+
fillStyle: {
|
|
17
|
+
fitPattern: false,
|
|
18
|
+
height: null,
|
|
19
|
+
image: agvLineHorizontalFillImage,
|
|
20
|
+
offsetX: 0,
|
|
21
|
+
offsetY: 0,
|
|
22
|
+
type: 'pattern',
|
|
23
|
+
width: null,
|
|
24
|
+
color: '#d6d6d6'
|
|
25
|
+
},
|
|
26
|
+
strokeStyle: '#000',
|
|
27
|
+
alpha: 1,
|
|
28
|
+
hidden: false,
|
|
29
|
+
lineWidth: 0,
|
|
30
|
+
lineDash: 'solid',
|
|
31
|
+
lineCap: 'butt'
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=agv-line-horizontal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agv-line-horizontal.js","sourceRoot":"","sources":["../../src/templates/agv-line-horizontal.ts"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,qCAAqC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAC9F,MAAM,0BAA0B,GAAG,IAAI,GAAG,CAAC,qCAAqC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEvG,eAAe;IACb,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,SAAS,EAAE;YACT,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,0BAA0B;YACjC,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,SAAS;SACjB;QACD,WAAW,EAAE,MAAM;QACnB,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,MAAM;KAChB;CACF,CAAA","sourcesContent":["const agvLineHorizontal = new URL('../../icons/agv-line-horizontal.svg', import.meta.url).href\nconst agvLineHorizontalFillImage = new URL('../../icons/agv-line-horizontal.png', import.meta.url).href\n\nexport default {\n type: 'AGV Line Horizontal',\n description: 'AGV Line Horizontal',\n icon: agvLineHorizontal,\n group: 'ACS',\n model: {\n type: 'AGVLine',\n agvType: 'horizon',\n text: ' ',\n left: 100,\n top: 100,\n width: 22,\n height: 27,\n fillStyle: {\n fitPattern: false,\n height: null,\n image: agvLineHorizontalFillImage,\n offsetX: 0,\n offsetY: 0,\n type: 'pattern',\n width: null,\n color: '#d6d6d6'\n },\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 0,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n}\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const agvLineVertical = new URL('../../icons/agv-line-vertical.svg', import.meta.url).href;
|
|
2
|
+
const agvLineVerticalFillImage = new URL('../../icons/agv-line-vertical.png', import.meta.url).href;
|
|
3
|
+
export default {
|
|
4
|
+
type: 'AGV Line Vertical',
|
|
5
|
+
description: 'AGV Line Vertical',
|
|
6
|
+
icon: agvLineVertical,
|
|
7
|
+
group: 'ACS',
|
|
8
|
+
model: {
|
|
9
|
+
type: 'AGVLine',
|
|
10
|
+
agvType: 'vertical',
|
|
11
|
+
left: 200,
|
|
12
|
+
top: 100,
|
|
13
|
+
width: 27,
|
|
14
|
+
height: 22,
|
|
15
|
+
fillStyle: {
|
|
16
|
+
fitPattern: false,
|
|
17
|
+
height: null,
|
|
18
|
+
image: agvLineVerticalFillImage,
|
|
19
|
+
offsetX: 0,
|
|
20
|
+
offsetY: 0,
|
|
21
|
+
type: 'pattern',
|
|
22
|
+
width: null,
|
|
23
|
+
color: '#d6d6d6'
|
|
24
|
+
},
|
|
25
|
+
text: ' ',
|
|
26
|
+
strokeStyle: '#000',
|
|
27
|
+
alpha: 1,
|
|
28
|
+
hidden: false,
|
|
29
|
+
lineWidth: 0,
|
|
30
|
+
lineDash: 'solid',
|
|
31
|
+
lineCap: 'butt'
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=agv-line-vertical.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agv-line-vertical.js","sourceRoot":"","sources":["../../src/templates/agv-line-vertical.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,mCAAmC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAC1F,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAC,mCAAmC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEnG,eAAe;IACb,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,mBAAmB;IAChC,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,UAAU;QACnB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,SAAS,EAAE;YACT,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,wBAAwB;YAC/B,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,SAAS;SACjB;QACD,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,MAAM;QACnB,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,MAAM;KAChB;CACF,CAAA","sourcesContent":["const agvLineVertical = new URL('../../icons/agv-line-vertical.svg', import.meta.url).href\nconst agvLineVerticalFillImage = new URL('../../icons/agv-line-vertical.png', import.meta.url).href\n\nexport default {\n type: 'AGV Line Vertical',\n description: 'AGV Line Vertical',\n icon: agvLineVertical,\n group: 'ACS',\n model: {\n type: 'AGVLine',\n agvType: 'vertical',\n left: 200,\n top: 100,\n width: 27,\n height: 22,\n fillStyle: {\n fitPattern: false,\n height: null,\n image: agvLineVerticalFillImage,\n offsetX: 0,\n offsetY: 0,\n type: 'pattern',\n width: null,\n color: '#d6d6d6'\n },\n text: ' ',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 0,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const agvLine = new URL('../../icons/agv-line.png', import.meta.url).href;
|
|
2
|
+
export default {
|
|
3
|
+
type: 'AGV Line',
|
|
4
|
+
description: 'AGV Line',
|
|
5
|
+
icon: agvLine,
|
|
6
|
+
group: 'ACS',
|
|
7
|
+
model: {
|
|
8
|
+
type: 'AGVLine',
|
|
9
|
+
left: 200,
|
|
10
|
+
top: 100,
|
|
11
|
+
width: 100,
|
|
12
|
+
height: 20
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=agv-line.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agv-line.js","sourceRoot":"","sources":["../../src/templates/agv-line.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,0BAA0B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEzE,eAAe;IACb,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,UAAU;IACvB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,EAAE;KACX;CACF,CAAA","sourcesContent":["const agvLine = new URL('../../icons/agv-line.png', import.meta.url).href\n\nexport default {\n type: 'AGV Line',\n description: 'AGV Line',\n icon: agvLine,\n group: 'ACS',\n model: {\n type: 'AGVLine',\n left: 200,\n top: 100,\n width: 100,\n height: 20\n }\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const agv = new URL('../../icons/agv.png', import.meta.url).href;
|
|
2
|
+
export default {
|
|
3
|
+
type: 'AGV',
|
|
4
|
+
description: 'Auto Guided Vehicle',
|
|
5
|
+
icon: agv,
|
|
6
|
+
group: 'ACS',
|
|
7
|
+
model: {
|
|
8
|
+
type: 'AGV',
|
|
9
|
+
left: 100,
|
|
10
|
+
top: 100,
|
|
11
|
+
width: 20,
|
|
12
|
+
height: 20
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=agv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agv.js","sourceRoot":"","sources":["../../src/templates/agv.ts"],"names":[],"mappings":"AAAA,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,qBAAqB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEhE,eAAe;IACb,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,qBAAqB;IAClC,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE;QACL,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;KACX;CACF,CAAA","sourcesContent":["const agv = new URL('../../icons/agv.png', import.meta.url).href\n\nexport default {\n type: 'AGV',\n description: 'Auto Guided Vehicle',\n icon: agv,\n group: 'ACS',\n model: {\n type: 'AGV',\n left: 100,\n top: 100,\n width: 20,\n height: 20\n }\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const buffer = new URL('../../icons/buffer.png', import.meta.url).href;
|
|
2
|
+
export default {
|
|
3
|
+
type: 'Buffer',
|
|
4
|
+
description: 'Buffer',
|
|
5
|
+
icon: buffer,
|
|
6
|
+
group: 'BCS',
|
|
7
|
+
model: {
|
|
8
|
+
type: 'Buffer',
|
|
9
|
+
left: 100,
|
|
10
|
+
top: 100,
|
|
11
|
+
width: 30,
|
|
12
|
+
height: 30
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=buffer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buffer.js","sourceRoot":"","sources":["../../src/templates/buffer.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,wBAAwB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEtE,eAAe;IACb,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,QAAQ;IACrB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;KACX;CACF,CAAA","sourcesContent":["const buffer = new URL('../../icons/buffer.png', import.meta.url).href\n\nexport default {\n type: 'Buffer',\n description: 'Buffer',\n icon: buffer,\n group: 'BCS',\n model: {\n type: 'Buffer',\n left: 100,\n top: 100,\n width: 30,\n height: 30\n }\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const conveyorCorner = new URL('../../icons/conveyor-corner.svg', import.meta.url).href;
|
|
2
|
+
const conveyorCornerFillImage = new URL('../../icons/conveyor-corner.png', import.meta.url).href;
|
|
3
|
+
export default {
|
|
4
|
+
type: 'Conveyor Corner',
|
|
5
|
+
description: 'Conveyor Corner',
|
|
6
|
+
icon: conveyorCorner,
|
|
7
|
+
group: 'CCS',
|
|
8
|
+
model: {
|
|
9
|
+
type: 'Conveyor',
|
|
10
|
+
convType: 'corner',
|
|
11
|
+
left: 200,
|
|
12
|
+
top: 100,
|
|
13
|
+
width: 38,
|
|
14
|
+
height: 38,
|
|
15
|
+
fillStyle: {
|
|
16
|
+
fitPattern: false,
|
|
17
|
+
height: null,
|
|
18
|
+
image: conveyorCornerFillImage,
|
|
19
|
+
offsetX: 0,
|
|
20
|
+
offsetY: 0,
|
|
21
|
+
type: 'pattern',
|
|
22
|
+
width: null,
|
|
23
|
+
color: '#636363'
|
|
24
|
+
},
|
|
25
|
+
strokeStyle: '#000',
|
|
26
|
+
alpha: 1,
|
|
27
|
+
hidden: false,
|
|
28
|
+
lineWidth: 0,
|
|
29
|
+
lineDash: 'solid',
|
|
30
|
+
lineCap: 'butt'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=conveyor-corner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conveyor-corner.js","sourceRoot":"","sources":["../../src/templates/conveyor-corner.ts"],"names":[],"mappings":"AAAA,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,iCAAiC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACvF,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,iCAAiC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEhG,eAAe;IACb,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,SAAS,EAAE;YACT,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,uBAAuB;YAC9B,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,SAAS;SACjB;QACD,WAAW,EAAE,MAAM;QACnB,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,MAAM;KAChB;CACF,CAAA","sourcesContent":["const conveyorCorner = new URL('../../icons/conveyor-corner.svg', import.meta.url).href\nconst conveyorCornerFillImage = new URL('../../icons/conveyor-corner.png', import.meta.url).href\n\nexport default {\n type: 'Conveyor Corner',\n description: 'Conveyor Corner',\n icon: conveyorCorner,\n group: 'CCS',\n model: {\n type: 'Conveyor',\n convType: 'corner',\n left: 200,\n top: 100,\n width: 38,\n height: 38,\n fillStyle: {\n fitPattern: false,\n height: null,\n image: conveyorCornerFillImage,\n offsetX: 0,\n offsetY: 0,\n type: 'pattern',\n width: null,\n color: '#636363'\n },\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 0,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const conveyorJoin = new URL('../../icons/conveyor-join.png', import.meta.url).href;
|
|
2
|
+
export default {
|
|
3
|
+
type: 'Conveyor Join',
|
|
4
|
+
description: 'Conveyor Join',
|
|
5
|
+
icon: conveyorJoin,
|
|
6
|
+
group: 'CCS',
|
|
7
|
+
model: {
|
|
8
|
+
type: 'ConveyorJoin',
|
|
9
|
+
cx: 100,
|
|
10
|
+
cy: 100,
|
|
11
|
+
rx: 40,
|
|
12
|
+
ry: 40,
|
|
13
|
+
startAngle: -Math.PI / 4,
|
|
14
|
+
endAngle: Math.PI / 4,
|
|
15
|
+
ratio: 34,
|
|
16
|
+
lineWidth: 1,
|
|
17
|
+
strokeStyle: 'black',
|
|
18
|
+
rollWidth: 12
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=conveyor-join.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conveyor-join.js","sourceRoot":"","sources":["../../src/templates/conveyor-join.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,+BAA+B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEnF,eAAe;IACb,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE;QACL,IAAI,EAAE,cAAc;QACpB,EAAE,EAAE,GAAG;QACP,EAAE,EAAE,GAAG;QACP,EAAE,EAAE,EAAE;QACN,EAAE,EAAE,EAAE;QACN,UAAU,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QACrB,KAAK,EAAE,EAAE;QACT,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,OAAO;QACpB,SAAS,EAAE,EAAE;KACd;CACF,CAAA","sourcesContent":["const conveyorJoin = new URL('../../icons/conveyor-join.png', import.meta.url).href\n\nexport default {\n type: 'Conveyor Join',\n description: 'Conveyor Join',\n icon: conveyorJoin,\n group: 'CCS',\n model: {\n type: 'ConveyorJoin',\n cx: 100,\n cy: 100,\n rx: 40,\n ry: 40,\n startAngle: -Math.PI / 4,\n endAngle: Math.PI / 4,\n ratio: 34,\n lineWidth: 1,\n strokeStyle: 'black',\n rollWidth: 12\n }\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const conveyorLeft = new URL('../../icons/conveyor-left.svg', import.meta.url).href;
|
|
2
|
+
const conveyorLeftFillImage = new URL('../../icons/conveyor-left.png', import.meta.url).href;
|
|
3
|
+
export default {
|
|
4
|
+
type: 'Conveyor Left',
|
|
5
|
+
description: 'Conveyor Left',
|
|
6
|
+
icon: conveyorLeft,
|
|
7
|
+
group: 'CCS',
|
|
8
|
+
model: {
|
|
9
|
+
type: 'Conveyor',
|
|
10
|
+
convType: 'left',
|
|
11
|
+
left: 200,
|
|
12
|
+
top: 100,
|
|
13
|
+
width: 20,
|
|
14
|
+
height: 19,
|
|
15
|
+
fillStyle: {
|
|
16
|
+
fitPattern: false,
|
|
17
|
+
height: null,
|
|
18
|
+
image: conveyorLeftFillImage,
|
|
19
|
+
offsetX: 0,
|
|
20
|
+
offsetY: 0,
|
|
21
|
+
type: 'pattern',
|
|
22
|
+
width: null,
|
|
23
|
+
color: '#636363'
|
|
24
|
+
},
|
|
25
|
+
strokeStyle: '#000',
|
|
26
|
+
alpha: 1,
|
|
27
|
+
hidden: false,
|
|
28
|
+
lineWidth: 0,
|
|
29
|
+
lineDash: 'solid',
|
|
30
|
+
lineCap: 'butt'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=conveyor-left.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conveyor-left.js","sourceRoot":"","sources":["../../src/templates/conveyor-left.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,+BAA+B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACnF,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,+BAA+B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE5F,eAAe;IACb,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,SAAS,EAAE;YACT,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,qBAAqB;YAC5B,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,SAAS;SACjB;QACD,WAAW,EAAE,MAAM;QACnB,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,MAAM;KAChB;CACF,CAAA","sourcesContent":["const conveyorLeft = new URL('../../icons/conveyor-left.svg', import.meta.url).href\nconst conveyorLeftFillImage = new URL('../../icons/conveyor-left.png', import.meta.url).href\n\nexport default {\n type: 'Conveyor Left',\n description: 'Conveyor Left',\n icon: conveyorLeft,\n group: 'CCS',\n model: {\n type: 'Conveyor',\n convType: 'left',\n left: 200,\n top: 100,\n width: 20,\n height: 19,\n fillStyle: {\n fitPattern: false,\n height: null,\n image: conveyorLeftFillImage,\n offsetX: 0,\n offsetY: 0,\n type: 'pattern',\n width: null,\n color: '#636363'\n },\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 0,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const conveyorMiddle = new URL('../../icons/conveyor-middle.svg', import.meta.url).href;
|
|
2
|
+
const conveyorMiddleFillImage = new URL('../../icons/conveyor-middle.png', import.meta.url).href;
|
|
3
|
+
export default {
|
|
4
|
+
type: 'Conveyor Middle',
|
|
5
|
+
description: 'Conveyor Middle',
|
|
6
|
+
icon: conveyorMiddle,
|
|
7
|
+
group: 'CCS',
|
|
8
|
+
model: {
|
|
9
|
+
type: 'Conveyor',
|
|
10
|
+
convType: 'middle',
|
|
11
|
+
left: 200,
|
|
12
|
+
top: 100,
|
|
13
|
+
width: 20,
|
|
14
|
+
height: 19,
|
|
15
|
+
fillStyle: {
|
|
16
|
+
fitPattern: false,
|
|
17
|
+
height: null,
|
|
18
|
+
image: conveyorMiddleFillImage,
|
|
19
|
+
offsetX: 0,
|
|
20
|
+
offsetY: 0,
|
|
21
|
+
type: 'pattern',
|
|
22
|
+
width: null,
|
|
23
|
+
color: '#636363'
|
|
24
|
+
},
|
|
25
|
+
strokeStyle: '#000',
|
|
26
|
+
alpha: 1,
|
|
27
|
+
hidden: false,
|
|
28
|
+
lineWidth: 0,
|
|
29
|
+
lineDash: 'solid',
|
|
30
|
+
lineCap: 'butt'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=conveyor-middle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conveyor-middle.js","sourceRoot":"","sources":["../../src/templates/conveyor-middle.ts"],"names":[],"mappings":"AAAA,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,iCAAiC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACvF,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC,iCAAiC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEhG,eAAe;IACb,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,SAAS,EAAE;YACT,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,uBAAuB;YAC9B,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,SAAS;SACjB;QACD,WAAW,EAAE,MAAM;QACnB,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,MAAM;KAChB;CACF,CAAA","sourcesContent":["const conveyorMiddle = new URL('../../icons/conveyor-middle.svg', import.meta.url).href\nconst conveyorMiddleFillImage = new URL('../../icons/conveyor-middle.png', import.meta.url).href\n\nexport default {\n type: 'Conveyor Middle',\n description: 'Conveyor Middle',\n icon: conveyorMiddle,\n group: 'CCS',\n model: {\n type: 'Conveyor',\n convType: 'middle',\n left: 200,\n top: 100,\n width: 20,\n height: 19,\n fillStyle: {\n fitPattern: false,\n height: null,\n image: conveyorMiddleFillImage,\n offsetX: 0,\n offsetY: 0,\n type: 'pattern',\n width: null,\n color: '#636363'\n },\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 0,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n}\n"]}
|