@operato/scene-wheel-sorter 10.0.0-beta.15 → 10.0.0-beta.22

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 (65) hide show
  1. package/README.md +50 -20
  2. package/dist/index.d.ts +2 -5
  3. package/dist/index.js +13 -5
  4. package/dist/index.js.map +1 -1
  5. package/dist/templates/index.d.ts +192 -19
  6. package/dist/templates/index.js +13 -122
  7. package/dist/templates/index.js.map +1 -1
  8. package/package.json +5 -3
  9. package/dist/conveyor-3d.d.ts +0 -12
  10. package/dist/conveyor-3d.js +0 -316
  11. package/dist/conveyor-3d.js.map +0 -1
  12. package/dist/conveyor-join-3d.d.ts +0 -13
  13. package/dist/conveyor-join-3d.js +0 -289
  14. package/dist/conveyor-join-3d.js.map +0 -1
  15. package/dist/conveyor-join-trapezoid-3d.d.ts +0 -14
  16. package/dist/conveyor-join-trapezoid-3d.js +0 -235
  17. package/dist/conveyor-join-trapezoid-3d.js.map +0 -1
  18. package/dist/conveyor-join-trapezoid.d.ts +0 -13
  19. package/dist/conveyor-join-trapezoid.js +0 -78
  20. package/dist/conveyor-join-trapezoid.js.map +0 -1
  21. package/dist/conveyor-join.d.ts +0 -23
  22. package/dist/conveyor-join.js +0 -233
  23. package/dist/conveyor-join.js.map +0 -1
  24. package/dist/conveyor.d.ts +0 -14
  25. package/dist/conveyor.js +0 -101
  26. package/dist/conveyor.js.map +0 -1
  27. package/dist/mixin-conveyor.d.ts +0 -16
  28. package/dist/mixin-conveyor.js +0 -200
  29. package/dist/mixin-conveyor.js.map +0 -1
  30. package/dist/mixin-scanner.d.ts +0 -15
  31. package/dist/mixin-scanner.js +0 -99
  32. package/dist/mixin-scanner.js.map +0 -1
  33. package/dist/mixin-wheel-sorter.d.ts +0 -12
  34. package/dist/mixin-wheel-sorter.js +0 -92
  35. package/dist/mixin-wheel-sorter.js.map +0 -1
  36. package/dist/scanner-3d.d.ts +0 -8
  37. package/dist/scanner-3d.js +0 -139
  38. package/dist/scanner-3d.js.map +0 -1
  39. package/dist/scanner.d.ts +0 -11
  40. package/dist/scanner.js +0 -61
  41. package/dist/scanner.js.map +0 -1
  42. package/dist/wheel-sorter-3d.d.ts +0 -9
  43. package/dist/wheel-sorter-3d.js +0 -184
  44. package/dist/wheel-sorter-3d.js.map +0 -1
  45. package/dist/wheel-sorter.d.ts +0 -17
  46. package/dist/wheel-sorter.js +0 -69
  47. package/dist/wheel-sorter.js.map +0 -1
  48. package/helps/scene/component/conveyor-join-trapezoid.ko.md +0 -6
  49. package/helps/scene/component/conveyor-join-trapezoid.md +0 -6
  50. package/helps/scene/component/conveyor-join-trapezoid.zh.md +0 -6
  51. package/helps/scene/component/conveyor-join.ko.md +0 -6
  52. package/helps/scene/component/conveyor-join.md +0 -6
  53. package/helps/scene/component/conveyor-join.zh.md +0 -6
  54. package/helps/scene/component/conveyor.ko.md +0 -6
  55. package/helps/scene/component/conveyor.md +0 -6
  56. package/helps/scene/component/conveyor.zh.md +0 -6
  57. package/helps/scene/component/wheel-sorter.ko.md +0 -6
  58. package/helps/scene/component/wheel-sorter.md +0 -6
  59. package/helps/scene/component/wheel-sorter.zh.md +0 -6
  60. package/icons/conveyor-belt.png +0 -0
  61. package/icons/conveyor-join-trapezoid.png +0 -0
  62. package/icons/conveyor-join.png +0 -0
  63. package/icons/conveyor.png +0 -0
  64. package/icons/scanner.png +0 -0
  65. package/icons/wheel-sorter.png +0 -0
package/README.md CHANGED
@@ -1,33 +1,63 @@
1
- # things-scene-wheel-sorter
1
+ # @operato/scene-wheel-sorter — DEPRECATED
2
2
 
3
- ## node package 설치한다.
3
+ > **This package is deprecated.** Its components have moved into domain-specific packages.
4
4
 
5
- `$ yarn`
5
+ ## New locations
6
6
 
7
- ## 실행
7
+ | Component | New package |
8
+ |---|---|
9
+ | `Conveyor` / `ConveyorJoin` / `ConveyorJoinTrapezoid` / `WheelSorter` | `@operato/scene-conveyance` |
10
+ | `Scanner` | `@operato/scene-sensing` |
8
11
 
9
- `$ yarn serve`
10
- `$ yarn serve:dev`
12
+ ## Migration
11
13
 
12
- ## 포트를 바꾸려면, -p 3001 식으로 추가해준다.
14
+ Old:
15
+ ```ts
16
+ import { Conveyor, Scanner } from '@operato/scene-wheel-sorter'
17
+ ```
13
18
 
14
- `$ yarn serve`
15
- `$ yarn serve -p 3001`
19
+ New:
20
+ ```ts
21
+ import { Conveyor } from '@operato/scene-conveyance'
22
+ import { Scanner } from '@operato/scene-sensing'
23
+ ```
16
24
 
17
- ## test in browser
25
+ ## Compatibility
18
26
 
19
- http://localhost:3000
27
+ This package is a **re-export-only layer** — it depends on the two new packages and re-exports their components so existing imports keep working. When using things-scene auto-registration, add the two new packages directly to your dependencies.
20
28
 
21
- ## build
29
+ This compatibility layer will be removed after a minor release or two.
22
30
 
23
- `$ yarn build`
31
+ <!-- AUTOGEN_BEGIN: do not edit between markers (run scripts/regenerate-readmes.mjs to update) -->
24
32
 
25
- | type | filename | for | tested |
26
- | ---- | ------------------------------- | -------------- | ------ |
27
- | UMD | things-scene-wheel-sorter.js | modern browser | 0 |
28
- | UMD | things-scene-wheel-sorter-ie.js | ie 11 | 0 |
29
- | ESM | things-scene-wheel-sorter.mjs | modern browser | 0 |
33
+ ## Components
30
34
 
31
- ## publish
35
+ - `Conveyor` _(re-exported from `@operato/scene-conveyance`)_
36
+ - `ConveyorJoin` _(re-exported from `@operato/scene-conveyance`)_
37
+ - `ConveyorJoinTrapezoid` _(re-exported from `@operato/scene-conveyance`)_
38
+ - `WheelSorter` _(re-exported from `@operato/scene-conveyance`)_
39
+ - `Scanner` _(re-exported from `@operato/scene-sensing`)_
32
40
 
33
- `$ yarn publish`
41
+ ## Install
42
+
43
+ ```bash
44
+ yarn add @operato/scene-wheel-sorter
45
+ ```
46
+
47
+ ## Usage
48
+
49
+ ```ts
50
+ import { Conveyor, ConveyorJoin, ConveyorJoinTrapezoid, WheelSorter, Scanner } from '@operato/scene-wheel-sorter'
51
+ ```
52
+
53
+ ## Build
54
+
55
+ ```bash
56
+ yarn build
57
+ ```
58
+
59
+ Output: ESM module at `dist/index.js` (single bundle, no UMD/IE legacy).
60
+
61
+ _Version: 10.0.0-beta.16_
62
+
63
+ <!-- AUTOGEN_END -->
package/dist/index.d.ts CHANGED
@@ -1,5 +1,2 @@
1
- export { default as Conveyor } from './conveyor.js';
2
- export { default as ConveyorJoin } from './conveyor-join.js';
3
- export { default as ConveyorJoinTrapezoid } from './conveyor-join-trapezoid.js';
4
- export { default as WheelSorter } from './wheel-sorter.js';
5
- export { default as Scanner } from './scanner.js';
1
+ export { Conveyor, ConveyorJoin, ConveyorJoinTrapezoid, WheelSorter } from '@operato/scene-conveyance';
2
+ export { Scanner } from '@operato/scene-sensing';
package/dist/index.js CHANGED
@@ -1,9 +1,17 @@
1
1
  /*
2
2
  * Copyright © HatioLab Inc. All rights reserved.
3
+ *
4
+ * @deprecated 컴포넌트들이 도메인별 패키지로 이전됨. 호환성 유지를 위한 re-export 층.
5
+ *
6
+ * 새 import 경로:
7
+ * - Conveyor / ConveyorJoin / ConveyorJoinTrapezoid / WheelSorter
8
+ * → '@operato/scene-conveyance'
9
+ * - Scanner
10
+ * → '@operato/scene-sensing'
11
+ *
12
+ * 본 패키지 (`@operato/scene-wheel-sorter`) 는 호환성 유지 목적으로 남아있음.
13
+ * 새 코드는 도메인 패키지를 직접 import 할 것.
3
14
  */
4
- export { default as Conveyor } from './conveyor.js';
5
- export { default as ConveyorJoin } from './conveyor-join.js';
6
- export { default as ConveyorJoinTrapezoid } from './conveyor-join-trapezoid.js';
7
- export { default as WheelSorter } from './wheel-sorter.js';
8
- export { default as Scanner } from './scanner.js';
15
+ export { Conveyor, ConveyorJoin, ConveyorJoinTrapezoid, WheelSorter } from '@operato/scene-conveyance';
16
+ export { Scanner } from '@operato/scene-sensing';
9
17
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAA","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\nexport { default as Conveyor } from './conveyor.js'\nexport { default as ConveyorJoin } from './conveyor-join.js'\nexport { default as ConveyorJoinTrapezoid } from './conveyor-join-trapezoid.js'\nexport { default as WheelSorter } from './wheel-sorter.js'\nexport { default as Scanner } from './scanner.js'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACtG,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n *\n * @deprecated 컴포넌트들이 도메인별 패키지로 이전됨. 호환성 유지를 위한 re-export 층.\n *\n * 새 import 경로:\n * - Conveyor / ConveyorJoin / ConveyorJoinTrapezoid / WheelSorter\n * → '@operato/scene-conveyance'\n * - Scanner\n * → '@operato/scene-sensing'\n *\n * 본 패키지 (`@operato/scene-wheel-sorter`) 는 호환성 유지 목적으로 남아있음.\n * 새 코드는 도메인 패키지를 직접 import 할 것.\n */\nexport { Conveyor, ConveyorJoin, ConveyorJoinTrapezoid, WheelSorter } from '@operato/scene-conveyance'\nexport { Scanner } from '@operato/scene-sensing'\n"]}
@@ -22,9 +22,17 @@ declare const _default: ({
22
22
  startAngle?: undefined;
23
23
  endAngle?: undefined;
24
24
  ratio?: undefined;
25
- fillStyle?: undefined;
26
25
  path?: undefined;
26
+ fillStyle?: undefined;
27
27
  tilt?: undefined;
28
+ carrierPitch?: undefined;
29
+ carrierLength?: undefined;
30
+ speed?: undefined;
31
+ phaseOffset?: undefined;
32
+ direction?: undefined;
33
+ status?: undefined;
34
+ animated?: undefined;
35
+ sideGuards?: undefined;
28
36
  };
29
37
  } | {
30
38
  type: string;
@@ -50,9 +58,17 @@ declare const _default: ({
50
58
  startAngle?: undefined;
51
59
  endAngle?: undefined;
52
60
  ratio?: undefined;
53
- fillStyle?: undefined;
54
61
  path?: undefined;
62
+ fillStyle?: undefined;
55
63
  tilt?: undefined;
64
+ carrierPitch?: undefined;
65
+ carrierLength?: undefined;
66
+ speed?: undefined;
67
+ phaseOffset?: undefined;
68
+ direction?: undefined;
69
+ status?: undefined;
70
+ animated?: undefined;
71
+ sideGuards?: undefined;
56
72
  };
57
73
  } | {
58
74
  type: string;
@@ -78,9 +94,17 @@ declare const _default: ({
78
94
  height?: undefined;
79
95
  lineStyle?: undefined;
80
96
  conveyorType?: undefined;
81
- fillStyle?: undefined;
82
97
  path?: undefined;
98
+ fillStyle?: undefined;
83
99
  tilt?: undefined;
100
+ carrierPitch?: undefined;
101
+ carrierLength?: undefined;
102
+ speed?: undefined;
103
+ phaseOffset?: undefined;
104
+ direction?: undefined;
105
+ status?: undefined;
106
+ animated?: undefined;
107
+ sideGuards?: undefined;
84
108
  };
85
109
  } | {
86
110
  type: string;
@@ -89,15 +113,19 @@ declare const _default: ({
89
113
  icon: string;
90
114
  model: {
91
115
  type: string;
92
- top: number;
93
- left: number;
94
- width: number;
95
- height: number;
96
116
  lineWidth: number;
117
+ path: {
118
+ x: number;
119
+ y: number;
120
+ }[];
97
121
  strokeStyle: string;
98
122
  fillStyle: string;
99
123
  value: number;
100
124
  rollWidth: number;
125
+ top?: undefined;
126
+ left?: undefined;
127
+ width?: undefined;
128
+ height?: undefined;
101
129
  lineStyle?: undefined;
102
130
  conveyorType?: undefined;
103
131
  cx?: undefined;
@@ -107,8 +135,15 @@ declare const _default: ({
107
135
  startAngle?: undefined;
108
136
  endAngle?: undefined;
109
137
  ratio?: undefined;
110
- path?: undefined;
111
138
  tilt?: undefined;
139
+ carrierPitch?: undefined;
140
+ carrierLength?: undefined;
141
+ speed?: undefined;
142
+ phaseOffset?: undefined;
143
+ direction?: undefined;
144
+ status?: undefined;
145
+ animated?: undefined;
146
+ sideGuards?: undefined;
112
147
  };
113
148
  } | {
114
149
  type: string;
@@ -117,20 +152,125 @@ declare const _default: ({
117
152
  icon: string;
118
153
  model: {
119
154
  type: string;
120
- lineWidth: number;
121
- path: {
122
- x: number;
123
- y: number;
124
- }[];
155
+ top: number;
156
+ left: number;
157
+ width: number;
158
+ height: number;
125
159
  strokeStyle: string;
126
160
  fillStyle: string;
161
+ lineWidth: number;
127
162
  value: number;
128
- rollWidth: number;
163
+ tilt: number;
164
+ lineStyle?: undefined;
165
+ rollWidth?: undefined;
166
+ conveyorType?: undefined;
167
+ cx?: undefined;
168
+ cy?: undefined;
169
+ rx?: undefined;
170
+ ry?: undefined;
171
+ startAngle?: undefined;
172
+ endAngle?: undefined;
173
+ ratio?: undefined;
174
+ path?: undefined;
175
+ carrierPitch?: undefined;
176
+ carrierLength?: undefined;
177
+ speed?: undefined;
178
+ phaseOffset?: undefined;
179
+ direction?: undefined;
180
+ status?: undefined;
181
+ animated?: undefined;
182
+ sideGuards?: undefined;
183
+ };
184
+ } | {
185
+ type: string;
186
+ description: string;
187
+ group: string;
188
+ icon: string;
189
+ model: {
190
+ type: string;
191
+ top: number;
192
+ left: number;
193
+ width: number;
194
+ height: number;
195
+ carrierPitch: number;
196
+ carrierLength: number;
197
+ speed: number;
198
+ phaseOffset: number;
199
+ direction: string;
200
+ status: string;
201
+ animated: boolean;
202
+ strokeStyle?: undefined;
203
+ lineWidth?: undefined;
204
+ lineStyle?: undefined;
205
+ value?: undefined;
206
+ rollWidth?: undefined;
207
+ conveyorType?: undefined;
208
+ cx?: undefined;
209
+ cy?: undefined;
210
+ rx?: undefined;
211
+ ry?: undefined;
212
+ startAngle?: undefined;
213
+ endAngle?: undefined;
214
+ ratio?: undefined;
215
+ path?: undefined;
216
+ fillStyle?: undefined;
217
+ tilt?: undefined;
218
+ sideGuards?: undefined;
219
+ };
220
+ } | {
221
+ type: string;
222
+ description: string;
223
+ group: string;
224
+ icon: string;
225
+ model: {
226
+ type: string;
227
+ cx: number;
228
+ cy: number;
229
+ rx: number;
230
+ ry: number;
231
+ ratio: number;
232
+ startAngle: number;
233
+ endAngle: number;
234
+ carrierPitch: number;
235
+ carrierLength: number;
236
+ speed: number;
237
+ phaseOffset: number;
238
+ direction: string;
239
+ status: string;
240
+ animated: boolean;
129
241
  top?: undefined;
130
242
  left?: undefined;
131
243
  width?: undefined;
132
244
  height?: undefined;
245
+ strokeStyle?: undefined;
246
+ lineWidth?: undefined;
133
247
  lineStyle?: undefined;
248
+ value?: undefined;
249
+ rollWidth?: undefined;
250
+ conveyorType?: undefined;
251
+ path?: undefined;
252
+ fillStyle?: undefined;
253
+ tilt?: undefined;
254
+ sideGuards?: undefined;
255
+ };
256
+ } | {
257
+ type: string;
258
+ description: string;
259
+ group: string;
260
+ icon: string;
261
+ model: {
262
+ type: string;
263
+ top: number;
264
+ left: number;
265
+ width: number;
266
+ height: number;
267
+ sideGuards: boolean;
268
+ status: string;
269
+ strokeStyle?: undefined;
270
+ lineWidth?: undefined;
271
+ lineStyle?: undefined;
272
+ value?: undefined;
273
+ rollWidth?: undefined;
134
274
  conveyorType?: undefined;
135
275
  cx?: undefined;
136
276
  cy?: undefined;
@@ -139,7 +279,15 @@ declare const _default: ({
139
279
  startAngle?: undefined;
140
280
  endAngle?: undefined;
141
281
  ratio?: undefined;
282
+ path?: undefined;
283
+ fillStyle?: undefined;
142
284
  tilt?: undefined;
285
+ carrierPitch?: undefined;
286
+ carrierLength?: undefined;
287
+ speed?: undefined;
288
+ phaseOffset?: undefined;
289
+ direction?: undefined;
290
+ animated?: undefined;
143
291
  };
144
292
  } | {
145
293
  type: string;
@@ -152,12 +300,11 @@ declare const _default: ({
152
300
  left: number;
153
301
  width: number;
154
302
  height: number;
155
- strokeStyle: string;
156
- fillStyle: string;
157
- lineWidth: number;
158
- value: number;
159
- tilt: number;
303
+ status: string;
304
+ strokeStyle?: undefined;
305
+ lineWidth?: undefined;
160
306
  lineStyle?: undefined;
307
+ value?: undefined;
161
308
  rollWidth?: undefined;
162
309
  conveyorType?: undefined;
163
310
  cx?: undefined;
@@ -168,6 +315,32 @@ declare const _default: ({
168
315
  endAngle?: undefined;
169
316
  ratio?: undefined;
170
317
  path?: undefined;
318
+ fillStyle?: undefined;
319
+ tilt?: undefined;
320
+ carrierPitch?: undefined;
321
+ carrierLength?: undefined;
322
+ speed?: undefined;
323
+ phaseOffset?: undefined;
324
+ direction?: undefined;
325
+ animated?: undefined;
326
+ sideGuards?: undefined;
327
+ };
328
+ } | {
329
+ type: string;
330
+ description: string;
331
+ group: string;
332
+ icon: string;
333
+ model: {
334
+ type: string;
335
+ top: number;
336
+ left: number;
337
+ width: number;
338
+ height: number;
339
+ lineWidth: number;
340
+ strokeStyle: string;
341
+ fillStyle: string;
342
+ value: number;
343
+ rollWidth: number;
171
344
  };
172
345
  })[];
173
346
  export default _default;
@@ -1,123 +1,14 @@
1
- const conveyor = new URL('../../icons/conveyor.png', import.meta.url).href;
2
- const conveyorBelt = new URL('../../icons/conveyor-belt.png', import.meta.url).href;
3
- const conveyorJoin = new URL('../../icons/conveyor-join.png', import.meta.url).href;
4
- const conveyorJoinTrapezoid = new URL('../../icons/conveyor-join-trapezoid.png', import.meta.url).href;
5
- const scanner = new URL('../../icons/scanner.png', import.meta.url).href;
6
- const wheelSorter = new URL('../../icons/wheel-sorter.png', import.meta.url).href;
7
- export default [
8
- {
9
- type: 'conveyor',
10
- description: 'roller type conveyor',
11
- group: 'warehouse',
12
- icon: conveyor,
13
- model: {
14
- type: 'conveyor',
15
- top: 350,
16
- left: 100,
17
- width: 500,
18
- height: 100,
19
- strokeStyle: '#999',
20
- lineWidth: 1,
21
- lineStyle: '#999',
22
- value: 1,
23
- rollWidth: 3
24
- }
25
- },
26
- {
27
- type: 'conveyor-belt',
28
- description: 'belt type conveyor',
29
- group: 'warehouse',
30
- icon: conveyorBelt,
31
- model: {
32
- type: 'conveyor-belt',
33
- top: 500,
34
- left: 100,
35
- width: 500,
36
- height: 100,
37
- strokeStyle: '#999',
38
- lineWidth: 1,
39
- lineStyle: '#999',
40
- value: 1,
41
- conveyorType: 1,
42
- rollWidth: 3
43
- }
44
- },
45
- {
46
- type: 'conveyor-join',
47
- description: 'join shaped conveyor',
48
- group: 'warehouse',
49
- icon: conveyorJoin,
50
- model: {
51
- type: 'conveyor-join',
52
- cx: 100,
53
- cy: 150,
54
- rx: 100,
55
- ry: 100,
56
- startAngle: -Math.PI / 4,
57
- endAngle: Math.PI / 4,
58
- ratio: 34,
59
- lineWidth: 1,
60
- strokeStyle: 'black',
61
- value: 2,
62
- rollWidth: 3
63
- }
64
- },
65
- {
66
- type: 'scanner',
67
- description: 'box scanner',
68
- group: 'warehouse',
69
- icon: scanner,
70
- model: {
71
- type: 'scanner',
72
- top: 100,
73
- left: 450,
74
- width: 150,
75
- height: 100,
76
- lineWidth: 1,
77
- strokeStyle: '#999',
78
- fillStyle: 'transparent',
79
- value: 2,
80
- rollWidth: 3
81
- }
82
- },
83
- {
84
- type: 'conveyor-join-trapezoid',
85
- description: 'conveyor join trapezoid',
86
- group: 'warehouse',
87
- icon: conveyorJoinTrapezoid,
88
- model: {
89
- type: 'conveyor-join-trapezoid',
90
- lineWidth: 1,
91
- path: [
92
- { x: 50, y: 150 },
93
- { x: 150, y: 150 },
94
- { x: 150, y: 250 },
95
- { x: 100, y: 300 },
96
- { x: 50, y: 250 }
97
- ],
98
- strokeStyle: '#999',
99
- fillStyle: 'transparent',
100
- value: 3,
101
- rollWidth: 10
102
- }
103
- },
104
- {
105
- type: 'wheel-sorter',
106
- description: 'wheel sorter',
107
- group: 'warehouse',
108
- icon: wheelSorter,
109
- model: {
110
- type: 'wheel-sorter',
111
- top: 50,
112
- left: 200,
113
- width: 200,
114
- height: 200,
115
- strokeStyle: '#999',
116
- fillStyle: 'transparent',
117
- lineWidth: 2,
118
- value: 1,
119
- tilt: 1
120
- }
121
- }
122
- ];
1
+ /*
2
+ * @deprecated templates 가 도메인별 패키지로 이전됨. 호환성 유지를 위한 re-export.
3
+ *
4
+ * 위치:
5
+ * - Conveyor / Sorter 류 templates → '@operato/scene-conveyance'
6
+ * - Scanner templates '@operato/scene-sensing'
7
+ *
8
+ * things-scene 의 자동 등록을 사용한다면 두 새 패키지를 dependency 에 추가하면
9
+ * templates 가 자동 수집됨. 본 호환층은 import 변경이 어려운 기존 코드를 위함.
10
+ */
11
+ import conveyanceTemplates from '@operato/scene-conveyance/dist/templates/index.js';
12
+ import sensingTemplates from '@operato/scene-sensing/dist/templates/index.js';
13
+ export default [...conveyanceTemplates, ...sensingTemplates];
123
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/templates/index.ts"],"names":[],"mappings":"AAAA,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,0BAA0B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAC1E,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,+BAA+B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACnF,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,yCAAyC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACtG,MAAM,OAAO,GAAG,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AE,WAAW;QAClB,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE;YACL,IAAI,EAAE,cAAc;YACpB,GAAG,EAAE,EAAE;YACP,IAAI,EAAE,GAAG;YACT,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,GAAG;YACX,WAAW,EAAE,MAAM;YACnB,SAAS,EAAE,aAAa;YACxB,SAAS,EAAE,CAAC;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,CAAC;SACR;KACF;CACF,CAAA","sourcesContent":["const conveyor = new URL('../../icons/conveyor.png', import.meta.url).href\nconst conveyorBelt = new URL('../../icons/conveyor-belt.png', import.meta.url).href\nconst conveyorJoin = new URL('../../icons/conveyor-join.png', import.meta.url).href\nconst conveyorJoinTrapezoid = new URL('../../icons/conveyor-join-trapezoid.png', import.meta.url).href\nconst scanner = new URL('../../icons/scanner.png', import.meta.url).href\nconst wheelSorter = new URL('../../icons/wheel-sorter.png', import.meta.url).href\n\nexport default [\n {\n type: 'conveyor',\n description: 'roller type conveyor',\n group: 'warehouse',\n icon: conveyor,\n model: {\n type: 'conveyor',\n top: 350,\n left: 100,\n width: 500,\n height: 100,\n strokeStyle: '#999',\n lineWidth: 1,\n lineStyle: '#999',\n value: 1,\n rollWidth: 3\n }\n },\n {\n type: 'conveyor-belt',\n description: 'belt type conveyor',\n group: 'warehouse',\n icon: conveyorBelt,\n model: {\n type: 'conveyor-belt',\n top: 500,\n left: 100,\n width: 500,\n height: 100,\n strokeStyle: '#999',\n lineWidth: 1,\n lineStyle: '#999',\n value: 1,\n conveyorType: 1,\n rollWidth: 3\n }\n },\n {\n type: 'conveyor-join',\n description: 'join shaped conveyor',\n group: 'warehouse',\n icon: conveyorJoin,\n model: {\n type: 'conveyor-join',\n cx: 100,\n cy: 150,\n rx: 100,\n ry: 100,\n startAngle: -Math.PI / 4,\n endAngle: Math.PI / 4,\n ratio: 34,\n lineWidth: 1,\n strokeStyle: 'black',\n value: 2,\n rollWidth: 3\n }\n },\n {\n type: 'scanner',\n description: 'box scanner',\n group: 'warehouse',\n icon: scanner,\n model: {\n type: 'scanner',\n top: 100,\n left: 450,\n width: 150,\n height: 100,\n lineWidth: 1,\n strokeStyle: '#999',\n fillStyle: 'transparent',\n value: 2,\n rollWidth: 3\n }\n },\n {\n type: 'conveyor-join-trapezoid',\n description: 'conveyor join trapezoid',\n group: 'warehouse',\n icon: conveyorJoinTrapezoid,\n model: {\n type: 'conveyor-join-trapezoid',\n lineWidth: 1,\n path: [\n { x: 50, y: 150 },\n { x: 150, y: 150 },\n { x: 150, y: 250 },\n { x: 100, y: 300 },\n { x: 50, y: 250 }\n ],\n strokeStyle: '#999',\n fillStyle: 'transparent',\n value: 3,\n rollWidth: 10\n }\n },\n {\n type: 'wheel-sorter',\n description: 'wheel sorter',\n group: 'warehouse',\n icon: wheelSorter,\n model: {\n type: 'wheel-sorter',\n top: 50,\n left: 200,\n width: 200,\n height: 200,\n strokeStyle: '#999',\n fillStyle: 'transparent',\n lineWidth: 2,\n value: 1,\n tilt: 1\n }\n }\n]\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/templates/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,mBAAmB,MAAM,mDAAmD,CAAA;AACnF,OAAO,gBAAgB,MAAM,gDAAgD,CAAA;AAE7E,eAAe,CAAC,GAAG,mBAAmB,EAAE,GAAG,gBAAgB,CAAC,CAAA","sourcesContent":["/*\n * @deprecated templates 도메인별 패키지로 이전됨. 호환성 유지를 위한 re-export.\n *\n * 위치:\n * - Conveyor / Sorter templates '@operato/scene-conveyance'\n * - Scanner templates '@operato/scene-sensing'\n *\n * things-scene 자동 등록을 사용한다면 패키지를 dependency 추가하면\n * templates 자동 수집됨. 호환층은 import 변경이 어려운 기존 코드를 위함.\n */\nimport conveyanceTemplates from '@operato/scene-conveyance/dist/templates/index.js'\nimport sensingTemplates from '@operato/scene-sensing/dist/templates/index.js'\n\nexport default [...conveyanceTemplates, ...sensingTemplates]\n"]}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@operato/scene-wheel-sorter",
3
- "description": "The wheel sorter component for things-scene",
3
+ "description": "[DEPRECATED] Re-export layer for backwards compat. Use @operato/scene-conveyance and @operato/scene-sensing directly.",
4
4
  "author": "heartyoh",
5
- "version": "10.0.0-beta.15",
5
+ "version": "10.0.0-beta.22",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.js",
@@ -29,6 +29,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@hatiolab/things-scene": "^10.0.0-beta.1",
32
+ "@operato/scene-conveyance": "^10.0.0-beta.22",
33
+ "@operato/scene-sensing": "^10.0.0-beta.22",
32
34
  "three": "^0.183.0"
33
35
  },
34
36
  "devDependencies": {
@@ -60,5 +62,5 @@
60
62
  "prettier --write"
61
63
  ]
62
64
  },
63
- "gitHead": "b15033427eb7ed337c4ff5e64221b847d3d07b0e"
65
+ "gitHead": "f48e52f4f5fdc30ec06af9da7cf253f6e29cfb0e"
64
66
  }
@@ -1,12 +0,0 @@
1
- import { RealObjectGroup } from '@hatiolab/things-scene';
2
- export declare class Conveyor3D extends RealObjectGroup {
3
- get effectiveDepth(): number;
4
- build(): void;
5
- private buildRollers;
6
- private buildBelt;
7
- /** Control box (motor/controller housing) + status indicator light */
8
- private buildControlBox;
9
- updateDimension(): void;
10
- onchange(after: Record<string, unknown>, before: Record<string, unknown>): void;
11
- updateAlpha(): void;
12
- }