@operato/board 10.0.0-beta.5 → 10.0.0-beta.51
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/CHANGELOG.md +422 -0
- package/dist/src/component/container.js +18 -3
- package/dist/src/component/container.js.map +1 -1
- package/dist/src/component/conveyance.d.ts +2 -0
- package/dist/src/component/conveyance.js +38 -0
- package/dist/src/component/conveyance.js.map +1 -0
- package/dist/src/component/etc.js +2 -10
- package/dist/src/component/etc.js.map +1 -1
- package/dist/src/component/facility.d.ts +2 -0
- package/dist/src/component/facility.js +35 -0
- package/dist/src/component/facility.js.map +1 -0
- package/dist/src/component/index.d.ts +5 -0
- package/dist/src/component/index.js +5 -0
- package/dist/src/component/index.js.map +1 -1
- package/dist/src/component/line.js +4 -28
- package/dist/src/component/line.js.map +1 -1
- package/dist/src/component/manufacturing.d.ts +2 -0
- package/dist/src/component/manufacturing.js +41 -0
- package/dist/src/component/manufacturing.js.map +1 -0
- package/dist/src/component/register-default-groups.js +19 -2
- package/dist/src/component/register-default-groups.js.map +1 -1
- package/dist/src/component/shape.js +5 -29
- package/dist/src/component/shape.js.map +1 -1
- package/dist/src/component/storage.d.ts +2 -0
- package/dist/src/component/storage.js +27 -0
- package/dist/src/component/storage.js.map +1 -0
- package/dist/src/component/text-and-media.js +2 -25
- package/dist/src/component/text-and-media.js.map +1 -1
- package/dist/src/component/transport.d.ts +2 -0
- package/dist/src/component/transport.js +36 -0
- package/dist/src/component/transport.js.map +1 -0
- package/dist/src/component/warehouse.d.ts +1 -0
- package/dist/src/component/warehouse.js +8 -1
- package/dist/src/component/warehouse.js.map +1 -1
- package/dist/src/data-storage/board-model-cache.d.ts +30 -0
- package/dist/src/data-storage/board-model-cache.js +93 -0
- package/dist/src/data-storage/board-model-cache.js.map +1 -0
- package/dist/src/graphql/playback-buffer.d.ts +79 -0
- package/dist/src/graphql/playback-buffer.js +139 -0
- package/dist/src/graphql/playback-buffer.js.map +1 -0
- package/dist/src/graphql/playback-buffer.test.d.ts +1 -0
- package/dist/src/graphql/playback-buffer.test.js +261 -0
- package/dist/src/graphql/playback-buffer.test.js.map +1 -0
- package/dist/src/graphql/playback-subscription.d.ts +89 -0
- package/dist/src/graphql/playback-subscription.js +258 -0
- package/dist/src/graphql/playback-subscription.js.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/modeller/bulk-create-dialog.d.ts +51 -0
- package/dist/src/modeller/bulk-create-dialog.js +531 -0
- package/dist/src/modeller/bulk-create-dialog.js.map +1 -0
- package/dist/src/modeller/bulk-create.d.ts +101 -0
- package/dist/src/modeller/bulk-create.js +199 -0
- package/dist/src/modeller/bulk-create.js.map +1 -0
- package/dist/src/modeller/component-toolbar/component-menu.js +8 -1
- package/dist/src/modeller/component-toolbar/component-menu.js.map +1 -1
- package/dist/src/modeller/edit-toolbar-style.js +38 -1
- package/dist/src/modeller/edit-toolbar-style.js.map +1 -1
- package/dist/src/modeller/edit-toolbar.d.ts +21 -16
- package/dist/src/modeller/edit-toolbar.js +362 -201
- package/dist/src/modeller/edit-toolbar.js.map +1 -1
- package/dist/src/modeller/scene-viewer/ox-scene-viewer.d.ts +2 -1
- package/dist/src/modeller/scene-viewer/ox-scene-viewer.js +7 -11
- package/dist/src/modeller/scene-viewer/ox-scene-viewer.js.map +1 -1
- package/dist/src/ox-board-modeller.d.ts +8 -1
- package/dist/src/ox-board-modeller.js +125 -6
- package/dist/src/ox-board-modeller.js.map +1 -1
- package/dist/src/ox-board-preview.d.ts +36 -0
- package/dist/src/ox-board-preview.js +114 -0
- package/dist/src/ox-board-preview.js.map +1 -0
- package/dist/src/ox-board-template-list.d.ts +1 -0
- package/dist/src/ox-board-template-list.js +19 -1
- package/dist/src/ox-board-template-list.js.map +1 -1
- package/dist/src/ox-board-viewer.d.ts +50 -1
- package/dist/src/ox-board-viewer.js +271 -28
- package/dist/src/ox-board-viewer.js.map +1 -1
- package/dist/src/ox-playback-controls.d.ts +56 -0
- package/dist/src/ox-playback-controls.js +515 -0
- package/dist/src/ox-playback-controls.js.map +1 -0
- package/dist/src/selector/ox-board-selector.js +11 -1
- package/dist/src/selector/ox-board-selector.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -12
- package/translations/en.json +19 -1
- package/translations/ja.json +19 -1
- package/translations/ko.json +19 -1
- package/translations/ms.json +19 -1
- package/translations/zh.json +19 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/component/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA","sourcesContent":["export * from './shape.js'\nexport * from './line.js'\nexport * from './text-and-media.js'\nexport * from './chart-and-gauge.js'\nexport * from './table.js'\nexport * from './data-source.js'\nexport * from './3d.js'\nexport * from './iot.js'\nexport * from './form.js'\nexport * from './warehouse.js'\nexport * from './container.js'\nexport * from './material-design.js'\nexport * from './etc.js'\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/component/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA","sourcesContent":["export * from './shape.js'\nexport * from './line.js'\nexport * from './text-and-media.js'\nexport * from './chart-and-gauge.js'\nexport * from './table.js'\nexport * from './data-source.js'\nexport * from './3d.js'\nexport * from './iot.js'\nexport * from './form.js'\nexport * from './warehouse.js'\nexport * from './facility.js'\nexport * from './conveyance.js'\nexport * from './storage.js'\nexport * from './transport.js'\nexport * from './manufacturing.js'\nexport * from './container.js'\nexport * from './material-design.js'\nexport * from './etc.js'\n"]}
|
|
@@ -34,11 +34,7 @@ export const line = {
|
|
|
34
34
|
y2: 200,
|
|
35
35
|
fillStyle: '#fff',
|
|
36
36
|
strokeStyle: '#000',
|
|
37
|
-
|
|
38
|
-
hidden: false,
|
|
39
|
-
lineWidth: 3,
|
|
40
|
-
lineDash: 'solid',
|
|
41
|
-
lineCap: 'butt'
|
|
37
|
+
lineWidth: 3
|
|
42
38
|
}
|
|
43
39
|
},
|
|
44
40
|
{
|
|
@@ -54,11 +50,7 @@ export const line = {
|
|
|
54
50
|
y2: 200,
|
|
55
51
|
fillStyle: '#fff',
|
|
56
52
|
strokeStyle: '#000',
|
|
57
|
-
|
|
58
|
-
hidden: false,
|
|
59
|
-
lineWidth: 3,
|
|
60
|
-
lineDash: 'round-dot',
|
|
61
|
-
lineCap: 'butt'
|
|
53
|
+
lineWidth: 3
|
|
62
54
|
}
|
|
63
55
|
},
|
|
64
56
|
{
|
|
@@ -74,12 +66,8 @@ export const line = {
|
|
|
74
66
|
y2: 200,
|
|
75
67
|
fillStyle: '#fff',
|
|
76
68
|
strokeStyle: '#000',
|
|
77
|
-
alpha: 3,
|
|
78
|
-
hidden: false,
|
|
79
69
|
lineWidth: 3,
|
|
80
|
-
|
|
81
|
-
begin: 'arrow',
|
|
82
|
-
lineCap: 'butt'
|
|
70
|
+
begin: 'arrow'
|
|
83
71
|
}
|
|
84
72
|
},
|
|
85
73
|
{
|
|
@@ -95,13 +83,9 @@ export const line = {
|
|
|
95
83
|
y2: 200,
|
|
96
84
|
fillStyle: '#fff',
|
|
97
85
|
strokeStyle: '#000',
|
|
98
|
-
alpha: 1,
|
|
99
|
-
hidden: false,
|
|
100
86
|
lineWidth: 3,
|
|
101
|
-
lineDash: 'solid',
|
|
102
87
|
begin: 'arrow',
|
|
103
|
-
end: 'arrow'
|
|
104
|
-
lineCap: 'butt'
|
|
88
|
+
end: 'arrow'
|
|
105
89
|
}
|
|
106
90
|
},
|
|
107
91
|
{
|
|
@@ -119,11 +103,7 @@ export const line = {
|
|
|
119
103
|
],
|
|
120
104
|
fillStyle: '#fff',
|
|
121
105
|
strokeStyle: '#000',
|
|
122
|
-
alpha: 1,
|
|
123
|
-
hidden: false,
|
|
124
106
|
lineWidth: 1,
|
|
125
|
-
lineDash: 'solid',
|
|
126
|
-
lineCap: 'butt',
|
|
127
107
|
round: 10
|
|
128
108
|
}
|
|
129
109
|
},
|
|
@@ -140,11 +120,7 @@ export const line = {
|
|
|
140
120
|
y2: 200,
|
|
141
121
|
fillStyle: '#fff',
|
|
142
122
|
strokeStyle: '#000',
|
|
143
|
-
alpha: 1,
|
|
144
|
-
hidden: false,
|
|
145
123
|
lineWidth: 1,
|
|
146
|
-
lineDash: 'solid',
|
|
147
|
-
lineCap: 'butt',
|
|
148
124
|
round: 10
|
|
149
125
|
}
|
|
150
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"line.js","sourceRoot":"","sources":["../../../src/component/line.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,0CAA0C,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,I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C,EAAE,GAAG,EAAE;iBACnB;gBACD,SAAS,EAAE,MAAM;gBACjB,WAAW,EAAE,MAAM;gBACnB,SAAS,EAAE,CAAC;gBACZ,KAAK,EAAE,EAAE;aACV;SACF;QACD;YACE,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,MAAM;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,WAAW;gBACjB,EAAE,EAAE,GAAG;gBACP,EAAE,EAAE,GAAG;gBACP,EAAE,EAAE,GAAG;gBACP,EAAE,EAAE,GAAG;gBACP,SAAS,EAAE,MAAM;gBACjB,WAAW,EAAE,MAAM;gBACnB,SAAS,EAAE,CAAC;gBACZ,KAAK,EAAE,EAAE;aACV;SACF;KACF;CACF,CAAA","sourcesContent":["import { ComponentGroup } from '../types.js'\n\nconst bothArrow = new URL('../../../icons/components/both-arrow.png', import.meta.url).href\nconst dash = new URL('../../../icons/components/dash.png', import.meta.url).href\nconst lineIcon = new URL('../../../icons/components/line.png', import.meta.url).href\nconst polyline = new URL('../../../icons/components/polyline.png', import.meta.url).href\nconst singleArrow = new URL('../../../icons/components/single-arrow.png', import.meta.url).href\nconst ortholine = new URL('../../../icons/components/ortholine.png', import.meta.url).href\n\nconst icon = `\n<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 30 30\" style=\"enable-background:new 0 0 30 30;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n\t .st3{fill:none;stroke:{{strokeColor}};stroke-width:2;stroke-linecap:round;stroke-miterlimit:10;}\n\t .st4{fill:none;stroke:{{strokeColor}};stroke-width:1.5;stroke-miterlimit:10;stroke-dasharray:3,1.5;}\n </style>\n <g>\n\t <line class=\"st3\" x1=\"1.7\" y1=\"18.9\" x2=\"26.3\" y2=\"6.2\"/>\n\t <line class=\"st4\" x1=\"1.7\" y1=\"23.8\" x2=\"28.3\" y2=\"10.1\"/>\n </g>\n</svg>\n`\n\nexport const line: ComponentGroup = {\n name: 'line',\n description: 'a group of various lines',\n icon,\n templates: [\n {\n type: 'line',\n description: 'simple line',\n icon: lineIcon,\n group: 'line',\n model: {\n type: 'line',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n lineWidth: 3\n }\n },\n {\n type: 'dash',\n description: 'dash line',\n icon: dash,\n group: 'line',\n model: {\n type: 'line',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n lineWidth: 3\n }\n },\n {\n type: 'single arrow',\n description: 'single arrow tip line',\n icon: singleArrow,\n group: 'line',\n model: {\n type: 'line',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n lineWidth: 3,\n begin: 'arrow'\n }\n },\n {\n type: 'both arrow',\n description: 'both arrow tip line',\n icon: bothArrow,\n group: 'line',\n model: {\n type: 'line',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n lineWidth: 3,\n begin: 'arrow',\n end: 'arrow'\n }\n },\n {\n type: 'polyline',\n description: 'polyline',\n icon: polyline,\n group: 'line',\n model: {\n type: 'polyline',\n path: [\n { x: 100, y: 100 },\n { x: 200, y: 100 },\n { x: 200, y: 200 },\n { x: 100, y: 200 }\n ],\n fillStyle: '#fff',\n strokeStyle: '#000',\n lineWidth: 1,\n round: 10\n }\n },\n {\n type: 'ortholine',\n description: 'ortholine',\n icon: ortholine,\n group: 'line',\n model: {\n type: 'ortholine',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n lineWidth: 1,\n round: 10\n }\n }\n ]\n}\n"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Manufacturing group icon — articulated robot arm silhouette: base +
|
|
2
|
+
// upper-arm link + elbow joint + forearm link + gripper. The gripper
|
|
3
|
+
// makes the silhouette unmistakable as "automated work cell" rather
|
|
4
|
+
// than a generic mechanical drawing. Stroke-weight family matches the
|
|
5
|
+
// other logistics group icons (heavy 2.5 for the dominant feature,
|
|
6
|
+
// light 1.0 for outline detail, fill for emphasized solids).
|
|
7
|
+
const icon = `
|
|
8
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
|
9
|
+
<style type="text/css">
|
|
10
|
+
.st0{fill:{{strokeColor}};}
|
|
11
|
+
.st14{fill:none;stroke:{{strokeColor}};stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
|
|
12
|
+
.st15{fill:none;stroke:{{strokeColor}};stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
|
|
13
|
+
</style>
|
|
14
|
+
<g>
|
|
15
|
+
<!-- base / pedestal (fill, the visual ground anchor) -->
|
|
16
|
+
<rect class="st0" x="9" y="24.5" width="10" height="3"/>
|
|
17
|
+
<!-- ground line -->
|
|
18
|
+
<line class="st15" x1="2" y1="27.5" x2="28" y2="27.5"/>
|
|
19
|
+
<!-- first link (upper arm), heavy stroke = main structure -->
|
|
20
|
+
<line class="st14" x1="14" y1="24.5" x2="14" y2="13"/>
|
|
21
|
+
<!-- shoulder joint disk -->
|
|
22
|
+
<circle class="st0" cx="14" cy="13" r="1.8"/>
|
|
23
|
+
<!-- second link (forearm), heavy stroke -->
|
|
24
|
+
<line class="st14" x1="14" y1="13" x2="22" y2="6"/>
|
|
25
|
+
<!-- elbow joint disk -->
|
|
26
|
+
<circle class="st0" cx="22" cy="6" r="1.5"/>
|
|
27
|
+
<!-- gripper: two opposing fingers -->
|
|
28
|
+
<line class="st15" x1="22" y1="6" x2="26" y2="3"/>
|
|
29
|
+
<line class="st15" x1="22" y1="6" x2="26" y2="6.5"/>
|
|
30
|
+
<line class="st15" x1="25.5" y1="2.5" x2="26.5" y2="3.5"/>
|
|
31
|
+
<line class="st15" x1="25.5" y1="6" x2="26.5" y2="7"/>
|
|
32
|
+
</g>
|
|
33
|
+
</svg>
|
|
34
|
+
`;
|
|
35
|
+
export const manufacturing = {
|
|
36
|
+
name: 'manufacturing',
|
|
37
|
+
description: 'robot arms, work cells, and automation equipment — fixed-base machines that perform work on parcels and parts',
|
|
38
|
+
icon,
|
|
39
|
+
templates: []
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=manufacturing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manufacturing.js","sourceRoot":"","sources":["../../../src/component/manufacturing.ts"],"names":[],"mappings":"AAEA,sEAAsE;AACtE,qEAAqE;AACrE,oEAAoE;AACpE,sEAAsE;AACtE,mEAAmE;AACnE,6DAA6D;AAC7D,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BZ,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAmB;IAC3C,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,+GAA+G;IAC5H,IAAI;IACJ,SAAS,EAAE,EAAE;CACd,CAAA","sourcesContent":["import { ComponentGroup } from '../types.js'\n\n// Manufacturing group icon — articulated robot arm silhouette: base +\n// upper-arm link + elbow joint + forearm link + gripper. The gripper\n// makes the silhouette unmistakable as \"automated work cell\" rather\n// than a generic mechanical drawing. Stroke-weight family matches the\n// other logistics group icons (heavy 2.5 for the dominant feature,\n// light 1.0 for outline detail, fill for emphasized solids).\nconst icon = `\n<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 30 30\" style=\"enable-background:new 0 0 30 30;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n .st14{fill:none;stroke:{{strokeColor}};stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}\n .st15{fill:none;stroke:{{strokeColor}};stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}\n </style>\n <g>\n <!-- base / pedestal (fill, the visual ground anchor) -->\n <rect class=\"st0\" x=\"9\" y=\"24.5\" width=\"10\" height=\"3\"/>\n <!-- ground line -->\n <line class=\"st15\" x1=\"2\" y1=\"27.5\" x2=\"28\" y2=\"27.5\"/>\n <!-- first link (upper arm), heavy stroke = main structure -->\n <line class=\"st14\" x1=\"14\" y1=\"24.5\" x2=\"14\" y2=\"13\"/>\n <!-- shoulder joint disk -->\n <circle class=\"st0\" cx=\"14\" cy=\"13\" r=\"1.8\"/>\n <!-- second link (forearm), heavy stroke -->\n <line class=\"st14\" x1=\"14\" y1=\"13\" x2=\"22\" y2=\"6\"/>\n <!-- elbow joint disk -->\n <circle class=\"st0\" cx=\"22\" cy=\"6\" r=\"1.5\"/>\n <!-- gripper: two opposing fingers -->\n <line class=\"st15\" x1=\"22\" y1=\"6\" x2=\"26\" y2=\"3\"/>\n <line class=\"st15\" x1=\"22\" y1=\"6\" x2=\"26\" y2=\"6.5\"/>\n <line class=\"st15\" x1=\"25.5\" y1=\"2.5\" x2=\"26.5\" y2=\"3.5\"/>\n <line class=\"st15\" x1=\"25.5\" y1=\"6\" x2=\"26.5\" y2=\"7\"/>\n </g>\n</svg>\n`\n\nexport const manufacturing: ComponentGroup = {\n name: 'manufacturing',\n description: 'robot arms, work cells, and automation equipment — fixed-base machines that perform work on parcels and parts',\n icon,\n templates: []\n}\n"]}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { BoardModeller } from '../ox-board-modeller.js';
|
|
2
2
|
import { chartAndGauge } from './chart-and-gauge.js';
|
|
3
3
|
import { container } from './container.js';
|
|
4
|
+
import { conveyance } from './conveyance.js';
|
|
4
5
|
import { dataSource } from './data-source.js';
|
|
5
6
|
import { etc } from './etc.js';
|
|
7
|
+
import { facility } from './facility.js';
|
|
6
8
|
import { form } from './form.js';
|
|
7
9
|
import { iot } from './iot.js';
|
|
8
10
|
import { line } from './line.js';
|
|
11
|
+
import { manufacturing } from './manufacturing.js';
|
|
9
12
|
import { shape } from './shape.js';
|
|
13
|
+
import { storage } from './storage.js';
|
|
10
14
|
import { table } from './table.js';
|
|
11
15
|
import { textAndMedia } from './text-and-media.js';
|
|
12
16
|
import { threed } from './3d.js';
|
|
13
|
-
import {
|
|
17
|
+
import { transport } from './transport.js';
|
|
14
18
|
import { materialDesign } from './material-design.js';
|
|
15
19
|
export function registerDefaultGroups() {
|
|
16
20
|
BoardModeller.registerGroup(line);
|
|
@@ -22,7 +26,20 @@ export function registerDefaultGroups() {
|
|
|
22
26
|
BoardModeller.registerGroup(dataSource);
|
|
23
27
|
BoardModeller.registerGroup(iot);
|
|
24
28
|
BoardModeller.registerGroup(threed);
|
|
25
|
-
|
|
29
|
+
// Logistics-domain groups, ordered by typical modeling workflow:
|
|
30
|
+
// facility (build the envelope) → conveyance (lay the lines) →
|
|
31
|
+
// storage (place racks/units) → transport (introduce mobile carriers) →
|
|
32
|
+
// manufacturing (work cells / robot arms that act on parts).
|
|
33
|
+
BoardModeller.registerGroup(facility);
|
|
34
|
+
BoardModeller.registerGroup(conveyance);
|
|
35
|
+
BoardModeller.registerGroup(storage);
|
|
36
|
+
BoardModeller.registerGroup(transport);
|
|
37
|
+
BoardModeller.registerGroup(manufacturing);
|
|
38
|
+
// `warehouse` is no longer registered — `storage` replaces it (same icon,
|
|
39
|
+
// clearer name). The export is kept in `warehouse.ts` so existing
|
|
40
|
+
// external imports don't break, but the registry no longer carries a
|
|
41
|
+
// 'warehouse' group, so any template still pinned to `group: 'warehouse'`
|
|
42
|
+
// will not appear until its package migrates to `group: 'storage'`.
|
|
26
43
|
BoardModeller.registerGroup(form);
|
|
27
44
|
BoardModeller.registerGroup(materialDesign);
|
|
28
45
|
BoardModeller.registerGroup(etc);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-default-groups.js","sourceRoot":"","sources":["../../../src/component/register-default-groups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,MAAM,UAAU,qBAAqB;IACnC,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;IACjC,aAAa,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;IAClC,aAAa,CAAC,aAAa,CAAC,YAAY,CAAC,CAAA;IACzC,aAAa,CAAC,aAAa,CAAC,aAAa,CAAC,CAAA;IAC1C,aAAa,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;IAClC,aAAa,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;IACtC,aAAa,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;IACvC,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;IAChC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;IACnC,aAAa,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;IACtC,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;IACjC,aAAa,CAAC,aAAa,CAAC,cAAc,CAAC,CAAA;IAC3C,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;AAClC,CAAC","sourcesContent":["import { BoardModeller } from '../ox-board-modeller.js'\nimport { chartAndGauge } from './chart-and-gauge.js'\nimport { container } from './container.js'\nimport { dataSource } from './data-source.js'\nimport { etc } from './etc.js'\nimport { form } from './form.js'\nimport { iot } from './iot.js'\nimport { line } from './line.js'\nimport { shape } from './shape.js'\nimport { table } from './table.js'\nimport { textAndMedia } from './text-and-media.js'\nimport { threed } from './3d.js'\nimport {
|
|
1
|
+
{"version":3,"file":"register-default-groups.js","sourceRoot":"","sources":["../../../src/component/register-default-groups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,OAAO,EAAE,M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GAAG,CAAC,CAAA;AAClC,CAAC","sourcesContent":["import { BoardModeller } from '../ox-board-modeller.js'\nimport { chartAndGauge } from './chart-and-gauge.js'\nimport { container } from './container.js'\nimport { conveyance } from './conveyance.js'\nimport { dataSource } from './data-source.js'\nimport { etc } from './etc.js'\nimport { facility } from './facility.js'\nimport { form } from './form.js'\nimport { iot } from './iot.js'\nimport { line } from './line.js'\nimport { manufacturing } from './manufacturing.js'\nimport { shape } from './shape.js'\nimport { storage } from './storage.js'\nimport { table } from './table.js'\nimport { textAndMedia } from './text-and-media.js'\nimport { threed } from './3d.js'\nimport { transport } from './transport.js'\nimport { materialDesign } from './material-design.js'\n\nexport function registerDefaultGroups() {\n BoardModeller.registerGroup(line)\n BoardModeller.registerGroup(shape)\n BoardModeller.registerGroup(textAndMedia)\n BoardModeller.registerGroup(chartAndGauge)\n BoardModeller.registerGroup(table)\n BoardModeller.registerGroup(container)\n BoardModeller.registerGroup(dataSource)\n BoardModeller.registerGroup(iot)\n BoardModeller.registerGroup(threed)\n // Logistics-domain groups, ordered by typical modeling workflow:\n // facility (build the envelope) → conveyance (lay the lines) →\n // storage (place racks/units) → transport (introduce mobile carriers) →\n // manufacturing (work cells / robot arms that act on parts).\n BoardModeller.registerGroup(facility)\n BoardModeller.registerGroup(conveyance)\n BoardModeller.registerGroup(storage)\n BoardModeller.registerGroup(transport)\n BoardModeller.registerGroup(manufacturing)\n // `warehouse` is no longer registered — `storage` replaces it (same icon,\n // clearer name). The export is kept in `warehouse.ts` so existing\n // external imports don't break, but the registry no longer carries a\n // 'warehouse' group, so any template still pinned to `group: 'warehouse'`\n // will not appear until its package migrates to `group: 'storage'`.\n BoardModeller.registerGroup(form)\n BoardModeller.registerGroup(materialDesign)\n BoardModeller.registerGroup(etc)\n}\n"]}
|
|
@@ -33,11 +33,7 @@ export const shape = {
|
|
|
33
33
|
height: 100,
|
|
34
34
|
fillStyle: '#fff',
|
|
35
35
|
strokeStyle: '#000',
|
|
36
|
-
|
|
37
|
-
hidden: false,
|
|
38
|
-
lineWidth: 1,
|
|
39
|
-
lineDash: 'solid',
|
|
40
|
-
lineCap: 'butt'
|
|
36
|
+
lineWidth: 1
|
|
41
37
|
}
|
|
42
38
|
},
|
|
43
39
|
{
|
|
@@ -53,11 +49,7 @@ export const shape = {
|
|
|
53
49
|
cy: 150,
|
|
54
50
|
fillStyle: '#fff',
|
|
55
51
|
strokeStyle: '#000',
|
|
56
|
-
|
|
57
|
-
hidden: false,
|
|
58
|
-
lineWidth: 1,
|
|
59
|
-
lineDash: 'solid',
|
|
60
|
-
lineCap: 'butt'
|
|
52
|
+
lineWidth: 1
|
|
61
53
|
}
|
|
62
54
|
},
|
|
63
55
|
{
|
|
@@ -74,11 +66,7 @@ export const shape = {
|
|
|
74
66
|
ratio: 30,
|
|
75
67
|
fillStyle: '#fff',
|
|
76
68
|
strokeStyle: '#000',
|
|
77
|
-
|
|
78
|
-
hidden: false,
|
|
79
|
-
lineWidth: 1,
|
|
80
|
-
lineDash: 'solid',
|
|
81
|
-
lineCap: 'butt'
|
|
69
|
+
lineWidth: 1
|
|
82
70
|
}
|
|
83
71
|
},
|
|
84
72
|
{
|
|
@@ -96,11 +84,7 @@ export const shape = {
|
|
|
96
84
|
y3: 200,
|
|
97
85
|
fillStyle: '#fff',
|
|
98
86
|
strokeStyle: '#000',
|
|
99
|
-
|
|
100
|
-
hidden: false,
|
|
101
|
-
lineWidth: 1,
|
|
102
|
-
lineDash: 'solid',
|
|
103
|
-
lineCap: 'butt'
|
|
87
|
+
lineWidth: 1
|
|
104
88
|
}
|
|
105
89
|
},
|
|
106
90
|
{
|
|
@@ -118,11 +102,7 @@ export const shape = {
|
|
|
118
102
|
],
|
|
119
103
|
fillStyle: '#fff',
|
|
120
104
|
strokeStyle: '#000',
|
|
121
|
-
alpha: 1,
|
|
122
|
-
hidden: false,
|
|
123
105
|
lineWidth: 1,
|
|
124
|
-
lineDash: 'solid',
|
|
125
|
-
lineCap: 'butt',
|
|
126
106
|
round: 10
|
|
127
107
|
}
|
|
128
108
|
},
|
|
@@ -141,11 +121,7 @@ export const shape = {
|
|
|
141
121
|
wing: 5,
|
|
142
122
|
fillStyle: '#fff',
|
|
143
123
|
strokeStyle: '#000',
|
|
144
|
-
|
|
145
|
-
hidden: false,
|
|
146
|
-
lineWidth: 1,
|
|
147
|
-
lineDash: 'solid',
|
|
148
|
-
lineCap: 'butt'
|
|
124
|
+
lineWidth: 1
|
|
149
125
|
}
|
|
150
126
|
}
|
|
151
127
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape.js","sourceRoot":"","sources":["../../../src/component/shape.ts"],"names":[],"mappings":"AAEA,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,qCAAqC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAClF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,uCAAuC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACtF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,uCAAuC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACtF,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAChF,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAChF,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,wCAAwC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAExF,MAAM,IAAI,GAAG;;;;;;;;;;CAUZ,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAmB;IACnC,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,gCAAgC;IAC7C,IAAI;IACJ,SAA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AG;gBACP,EAAE,EAAE,GAAG;gBACP,SAAS,EAAE,MAAM;gBACjB,WAAW,EAAE,MAAM;gBACnB,SAAS,EAAE,CAAC;aACb;SACF;QACD;YACE,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,OAAO;YACd,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE;oBACJ,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;oBAClB,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;oBAClB,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;oBAClB,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;iBACnB;gBACD,SAAS,EAAE,MAAM;gBACjB,WAAW,EAAE,MAAM;gBACnB,SAAS,EAAE,CAAC;gBACZ,KAAK,EAAE,EAAE;aACV;SACF;QACD;YACE,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,OAAO;YACd,KAAK,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,EAAE,EAAE,EAAE;gBACN,EAAE,EAAE,EAAE;gBACN,EAAE,EAAE,GAAG;gBACP,EAAE,EAAE,GAAG;gBACP,KAAK,EAAE,EAAE;gBACT,IAAI,EAAE,CAAC;gBACP,SAAS,EAAE,MAAM;gBACjB,WAAW,EAAE,MAAM;gBACnB,SAAS,EAAE,CAAC;aACb;SACF;KACF;CACF,CAAA","sourcesContent":["import { ComponentGroup } from '../types.js'\n\nconst donut = new URL('../../../icons/components/donut.png', import.meta.url).href\nconst ellipse = new URL('../../../icons/components/ellipse.png', import.meta.url).href\nconst polygon = new URL('../../../icons/components/polygon.png', import.meta.url).href\nconst rect = new URL('../../../icons/components/rect.png', import.meta.url).href\nconst star = new URL('../../../icons/components/star.png', import.meta.url).href\nconst triangle = new URL('../../../icons/components/triangle.png', import.meta.url).href\n\nconst icon = `\n<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 30 30\" style=\"enable-background:new 0 0 30 30;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:none;stroke:{{strokeColor}};stroke-width:2;stroke-miterlimit:10;}\n </style>\n <g>\n <polyline class=\"st0\" points=\"21.6,9.4 21.6,4.6 1.6,4.6 1.6,17.7 12.5,17.7 \t\"/>\n <circle class=\"st0\" cx=\"21.3\" cy=\"18.3\" r=\"7\"/>\n </g>\n</svg>\n`\n\nexport const shape: ComponentGroup = {\n name: 'shape',\n description: 'a group of simple basic shapes',\n icon,\n templates: [\n {\n type: 'rect',\n description: 'rectangle shape',\n icon: rect,\n group: 'shape',\n model: {\n type: 'rect',\n left: 100,\n top: 100,\n width: 100,\n height: 100,\n fillStyle: '#fff',\n strokeStyle: '#000',\n lineWidth: 1\n }\n },\n {\n type: 'ellipse',\n description: 'ellipse shape',\n icon: ellipse,\n group: 'shape',\n model: {\n type: 'ellipse',\n rx: 50,\n ry: 50,\n cx: 150,\n cy: 150,\n fillStyle: '#fff',\n strokeStyle: '#000',\n lineWidth: 1\n }\n },\n {\n type: 'donut',\n description: 'donut shape',\n icon: donut,\n group: 'shape',\n model: {\n type: 'donut',\n rx: 50,\n ry: 50,\n cx: 150,\n cy: 150,\n ratio: 30,\n fillStyle: '#fff',\n strokeStyle: '#000',\n lineWidth: 1\n }\n },\n {\n type: 'triangle',\n description: 'triangle shape',\n icon: triangle,\n group: 'shape',\n model: {\n type: 'triangle',\n x1: 150,\n y1: 100,\n x2: 100,\n y2: 200,\n x3: 200,\n y3: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n lineWidth: 1\n }\n },\n {\n type: 'polygon',\n description: 'polygon shape',\n icon: polygon,\n group: 'shape',\n model: {\n type: 'polygon',\n path: [\n { x: 100, y: 100 },\n { x: 200, y: 100 },\n { x: 200, y: 200 },\n { x: 100, y: 200 }\n ],\n fillStyle: '#fff',\n strokeStyle: '#000',\n lineWidth: 1,\n round: 10\n }\n },\n {\n type: 'star',\n description: 'star shape',\n icon: star,\n group: 'shape',\n model: {\n type: 'star',\n rx: 50,\n ry: 50,\n cx: 150,\n cy: 150,\n ratio: 30,\n wing: 5,\n fillStyle: '#fff',\n strokeStyle: '#000',\n lineWidth: 1\n }\n }\n ]\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Storage group — successor to the legacy `warehouse` group. Reuses the
|
|
2
|
+
// warehouse silhouette icon so existing users who recognize it find the
|
|
3
|
+
// new group at a glance.
|
|
4
|
+
const icon = `
|
|
5
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
|
6
|
+
<style type="text/css">
|
|
7
|
+
.st0{fill:{{strokeColor}};}
|
|
8
|
+
.st14{fill:none;stroke:{{strokeColor}};stroke-width:2.5;stroke-linecap:round;stroke-miterlimit:10;}
|
|
9
|
+
.st15{fill:none;stroke:{{strokeColor}};stroke-linecap:round;stroke-miterlimit:10;}
|
|
10
|
+
</style>
|
|
11
|
+
<g>
|
|
12
|
+
<polyline class="st14" points="1.5,11.2 15,5.2 28.5,11 "/>
|
|
13
|
+
<line class="st15" x1="3.2" y1="11.6" x2="3.2" y2="23.8"/>
|
|
14
|
+
<line class="st15" x1="26.9" y1="11.6" x2="26.9" y2="23.8"/>
|
|
15
|
+
<line class="st5" x1="1.7" y1="24.8" x2="28.3" y2="24.8"/>
|
|
16
|
+
<rect x="21.1" y="18.3" class="st0" width="3.4" height="5.5"/>
|
|
17
|
+
<path class="st0" d="M5.9,13.6v10.2h13.8V13.6H5.9z M18.7,17.3H6.8v-2.4h11.9V17.3z"/>
|
|
18
|
+
</g>
|
|
19
|
+
</svg>
|
|
20
|
+
`;
|
|
21
|
+
export const storage = {
|
|
22
|
+
name: 'storage',
|
|
23
|
+
description: 'pallets, parcels, and racks — units of stored goods and the racks that hold them',
|
|
24
|
+
icon,
|
|
25
|
+
templates: []
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/component/storage.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,wEAAwE;AACxE,yBAAyB;AACzB,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;CAgBZ,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAmB;IACrC,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,kFAAkF;IAC/F,IAAI;IACJ,SAAS,EAAE,EAAE;CACd,CAAA","sourcesContent":["import { ComponentGroup } from '../types.js'\n\n// Storage group — successor to the legacy `warehouse` group. Reuses the\n// warehouse silhouette icon so existing users who recognize it find the\n// new group at a glance.\nconst icon = `\n<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 30 30\" style=\"enable-background:new 0 0 30 30;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n .st14{fill:none;stroke:{{strokeColor}};stroke-width:2.5;stroke-linecap:round;stroke-miterlimit:10;}\n .st15{fill:none;stroke:{{strokeColor}};stroke-linecap:round;stroke-miterlimit:10;}\n </style>\n <g>\n <polyline class=\"st14\" points=\"1.5,11.2 15,5.2 28.5,11 \t\"/>\n <line class=\"st15\" x1=\"3.2\" y1=\"11.6\" x2=\"3.2\" y2=\"23.8\"/>\n <line class=\"st15\" x1=\"26.9\" y1=\"11.6\" x2=\"26.9\" y2=\"23.8\"/>\n <line class=\"st5\" x1=\"1.7\" y1=\"24.8\" x2=\"28.3\" y2=\"24.8\"/>\n <rect x=\"21.1\" y=\"18.3\" class=\"st0\" width=\"3.4\" height=\"5.5\"/>\n <path class=\"st0\" d=\"M5.9,13.6v10.2h13.8V13.6H5.9z M18.7,17.3H6.8v-2.4h11.9V17.3z\"/>\n </g>\n</svg>\n`\n\nexport const storage: ComponentGroup = {\n name: 'storage',\n description: 'pallets, parcels, and racks — units of stored goods and the racks that hold them',\n icon,\n templates: []\n}\n"]}
|
|
@@ -35,16 +35,8 @@ export const textAndMedia = {
|
|
|
35
35
|
width: 200,
|
|
36
36
|
height: 50,
|
|
37
37
|
text: 'Text',
|
|
38
|
-
fillStyle: '#fff',
|
|
39
|
-
strokeStyle: '#000',
|
|
40
|
-
alpha: 1,
|
|
41
|
-
hidden: false,
|
|
42
|
-
lineWidth: 5,
|
|
43
|
-
lineDash: 'solid',
|
|
44
|
-
lineCap: 'butt',
|
|
45
38
|
textAlign: 'left',
|
|
46
39
|
textBaseline: 'top',
|
|
47
|
-
textWrap: false,
|
|
48
40
|
fontFamily: 'serif',
|
|
49
41
|
fontSize: 30
|
|
50
42
|
}
|
|
@@ -59,15 +51,7 @@ export const textAndMedia = {
|
|
|
59
51
|
left: 100,
|
|
60
52
|
top: 100,
|
|
61
53
|
width: 100,
|
|
62
|
-
height: 100
|
|
63
|
-
isGray: false,
|
|
64
|
-
fillStyle: '#fff',
|
|
65
|
-
strokeStyle: '#000',
|
|
66
|
-
alpha: 1,
|
|
67
|
-
hidden: false,
|
|
68
|
-
lineWidth: 1,
|
|
69
|
-
lineDash: 'solid',
|
|
70
|
-
lineCap: 'butt'
|
|
54
|
+
height: 100
|
|
71
55
|
}
|
|
72
56
|
},
|
|
73
57
|
{
|
|
@@ -81,14 +65,7 @@ export const textAndMedia = {
|
|
|
81
65
|
top: 100,
|
|
82
66
|
width: 100,
|
|
83
67
|
height: 100,
|
|
84
|
-
isGray: true
|
|
85
|
-
fillStyle: '#fff',
|
|
86
|
-
strokeStyle: '#000',
|
|
87
|
-
alpha: 1,
|
|
88
|
-
hidden: false,
|
|
89
|
-
lineWidth: 1,
|
|
90
|
-
lineDash: 'solid',
|
|
91
|
-
lineCap: 'butt'
|
|
68
|
+
isGray: true
|
|
92
69
|
}
|
|
93
70
|
},
|
|
94
71
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-and-media.js","sourceRoot":"","sources":["../../../src/component/text-and-media.ts"],"names":[],"mappings":"AAEA,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,qCAAqC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAClF,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,2CAA2C,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAC7F,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,yCAAyC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACzF,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,0CAA0C,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAC3F,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEhF,MAAM,IAAI,GAAG;;;;;;;;;;;;;;CAcZ,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAmB;IAC1C,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,8CAA8C;IAC3D,IAAI;IACJ,SAAS,EAAE;QACT;YACE,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,cAAc;YACrB,KAAK,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,GAAG;gBACT,GAAG,EAAE,GA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AK;gBACnB,UAAU,EAAE,OAAO;gBACnB,QAAQ,EAAE,EAAE;aACb;SACF;QACD;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,cAAc;YACrB,KAAK,EAAE;gBACL,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,GAAG;gBACT,GAAG,EAAE,GAAG;gBACR,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,GAAG;aACZ;SACF;QACD;YACE,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,cAAc;YACrB,KAAK,EAAE;gBACL,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,GAAG;gBACT,GAAG,EAAE,GAAG;gBACR,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,GAAG;gBACX,MAAM,EAAE,IAAI;aACb;SACF;QACD;YACE,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,cAAc;YACrB,KAAK,EAAE;gBACL,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,GAAG;gBACT,GAAG,EAAE,GAAG;gBACR,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,GAAG;aACZ;SACF;QACD;YACE,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,cAAc;YACrB,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,GAAG;gBACT,GAAG,EAAE,GAAG;gBACR,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,GAAG;aACZ;SACF;KACF;CACF,CAAA","sourcesContent":["import { ComponentGroup } from '../types.js'\n\nconst audio = new URL('../../../icons/components/audio.png', import.meta.url).href\nconst colorImage = new URL('../../../icons/components/color-image.png', import.meta.url).href\nconst gifImage = new URL('../../../icons/components/gif-image.png', import.meta.url).href\nconst grayImage = new URL('../../../icons/components/gray-image.png', import.meta.url).href\nconst text = new URL('../../../icons/components/text.png', import.meta.url).href\n\nconst icon = `\n<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 30 30\" style=\"enable-background:new 0 0 30 30;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n\t .st0{fill:none;stroke:{{strokeColor}};stroke-width:2;stroke-miterlimit:10;}\n\t .st1{fill:{{strokeColor}};}\n </style>\n <g>\n\t <polyline class=\"st0\" points=\"20.6,12.8 20.6,5.1 1.6,5.1 1.6,18 15,18\"/>\n\t <path class=\"st1\" d=\"M5.7,7.9c-0.9,0-1.6,0.7-1.6,1.6s0.7,1.6,1.6,1.6s1.6-0.7,1.6-1.6S6.6,7.9,5.7,7.9z\"/>\n\t <polygon class=\"st1\" points=\"12.8,8.6 8.5,14.7 5.9,12.7 3.2,16.1 15.1,16.1 15.2,13.7\"/>\n\t <path class=\"st1\" d=\"M24.1,15.1h2.1l0.6,2.8h1.7l-0.1-3.8H16.5l-0.1,3.8h1.7l0.4-2.8h2.1c0.1,2,0.1,3.1,0.1,5.2V21\n\t\t c0,1.6,0,1.9,0,2.7l-1.8,0.2V25h6.9v-1.1L24,23.7c0-0.9,0-1.1,0-2.7v-0.7C24,18.1,24,17,24.1,15.1z\"/>\n </g>\n</svg>\n`\n\nexport const textAndMedia: ComponentGroup = {\n name: 'textAndMedia',\n description: 'a group of text and various media components',\n icon,\n templates: [\n {\n type: 'text',\n description: 'text',\n icon: text,\n group: 'textAndMedia',\n model: {\n type: 'text',\n left: 100,\n top: 100,\n width: 200,\n height: 50,\n text: 'Text',\n textAlign: 'left',\n textBaseline: 'top',\n fontFamily: 'serif',\n fontSize: 30\n }\n },\n {\n type: 'color image',\n description: 'color image',\n icon: colorImage,\n group: 'textAndMedia',\n model: {\n type: 'image-view',\n left: 100,\n top: 100,\n width: 100,\n height: 100\n }\n },\n {\n type: 'gray image',\n description: 'gray image',\n icon: grayImage,\n group: 'textAndMedia',\n model: {\n type: 'image-view',\n left: 100,\n top: 100,\n width: 100,\n height: 100,\n isGray: true\n }\n },\n {\n type: 'gif image',\n description: 'gif image',\n icon: gifImage,\n group: 'textAndMedia',\n model: {\n type: 'gif-view',\n left: 100,\n top: 100,\n width: 100,\n height: 100\n }\n },\n {\n type: 'audio',\n description: 'audio',\n icon: audio,\n group: 'textAndMedia',\n model: {\n type: 'audio',\n left: 100,\n top: 100,\n width: 100,\n height: 100\n }\n }\n ]\n}\n"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Transport group icon — forklift silhouette: cab + chassis (single
|
|
2
|
+
// outline path), heavy mast, twin forks pointing right, two filled
|
|
3
|
+
// wheels. Stroke-weight family matches the other logistics icons (mast
|
|
4
|
+
// gets the 2.5 emphasis as the unmistakable forklift feature).
|
|
5
|
+
const icon = `
|
|
6
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
|
7
|
+
<style type="text/css">
|
|
8
|
+
.st0{fill:{{strokeColor}};}
|
|
9
|
+
.st14{fill:none;stroke:{{strokeColor}};stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
|
|
10
|
+
.st15{fill:none;stroke:{{strokeColor}};stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
|
|
11
|
+
</style>
|
|
12
|
+
<g>
|
|
13
|
+
<!-- vertical mast (the unmistakable forklift feature) -->
|
|
14
|
+
<line class="st14" x1="20" y1="3" x2="20" y2="22"/>
|
|
15
|
+
<!-- carriage bar -->
|
|
16
|
+
<line class="st15" x1="17" y1="13" x2="22" y2="13"/>
|
|
17
|
+
<!-- twin forks pointing forward -->
|
|
18
|
+
<line class="st15" x1="20" y1="17.5" x2="27" y2="17.5"/>
|
|
19
|
+
<line class="st15" x1="20" y1="21" x2="27" y2="21"/>
|
|
20
|
+
<!-- cab + chassis silhouette (single outline) -->
|
|
21
|
+
<path class="st15" d="M3.5 22 L3.5 14 L7 14 L7 7.5 L15 7.5 L15 14 L17 14 L17 22 Z"/>
|
|
22
|
+
<!-- ground line -->
|
|
23
|
+
<line class="st15" x1="2" y1="26.5" x2="28" y2="26.5"/>
|
|
24
|
+
<!-- wheels (fill, the visual ground anchor) -->
|
|
25
|
+
<circle class="st0" cx="7.5" cy="24" r="2.4"/>
|
|
26
|
+
<circle class="st0" cx="14.5" cy="24" r="2.4"/>
|
|
27
|
+
</g>
|
|
28
|
+
</svg>
|
|
29
|
+
`;
|
|
30
|
+
export const transport = {
|
|
31
|
+
name: 'transport',
|
|
32
|
+
description: 'forklifts, AGVs, tuggers, workers — mobile transporters that carry loads through the facility',
|
|
33
|
+
icon,
|
|
34
|
+
templates: []
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=transport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../../src/component/transport.ts"],"names":[],"mappings":"AAEA,oEAAoE;AACpE,mEAAmE;AACnE,uEAAuE;AACvE,+DAA+D;AAC/D,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;CAwBZ,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAmB;IACvC,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,+FAA+F;IAC5G,IAAI;IACJ,SAAS,EAAE,EAAE;CACd,CAAA","sourcesContent":["import { ComponentGroup } from '../types.js'\n\n// Transport group icon — forklift silhouette: cab + chassis (single\n// outline path), heavy mast, twin forks pointing right, two filled\n// wheels. Stroke-weight family matches the other logistics icons (mast\n// gets the 2.5 emphasis as the unmistakable forklift feature).\nconst icon = `\n<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 30 30\" style=\"enable-background:new 0 0 30 30;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n .st14{fill:none;stroke:{{strokeColor}};stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}\n .st15{fill:none;stroke:{{strokeColor}};stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}\n </style>\n <g>\n <!-- vertical mast (the unmistakable forklift feature) -->\n <line class=\"st14\" x1=\"20\" y1=\"3\" x2=\"20\" y2=\"22\"/>\n <!-- carriage bar -->\n <line class=\"st15\" x1=\"17\" y1=\"13\" x2=\"22\" y2=\"13\"/>\n <!-- twin forks pointing forward -->\n <line class=\"st15\" x1=\"20\" y1=\"17.5\" x2=\"27\" y2=\"17.5\"/>\n <line class=\"st15\" x1=\"20\" y1=\"21\" x2=\"27\" y2=\"21\"/>\n <!-- cab + chassis silhouette (single outline) -->\n <path class=\"st15\" d=\"M3.5 22 L3.5 14 L7 14 L7 7.5 L15 7.5 L15 14 L17 14 L17 22 Z\"/>\n <!-- ground line -->\n <line class=\"st15\" x1=\"2\" y1=\"26.5\" x2=\"28\" y2=\"26.5\"/>\n <!-- wheels (fill, the visual ground anchor) -->\n <circle class=\"st0\" cx=\"7.5\" cy=\"24\" r=\"2.4\"/>\n <circle class=\"st0\" cx=\"14.5\" cy=\"24\" r=\"2.4\"/>\n </g>\n</svg>\n`\n\nexport const transport: ComponentGroup = {\n name: 'transport',\n description: 'forklifts, AGVs, tuggers, workers — mobile transporters that carry loads through the facility',\n icon,\n templates: []\n}\n"]}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
// Legacy warehouse silhouette — same SVG as the new `storage` group. Kept
|
|
2
|
+
// here only so external code that still imports `warehouse` from this
|
|
3
|
+
// package keeps working until they migrate to `storage`.
|
|
4
|
+
//
|
|
5
|
+
// `warehouse` is no longer registered by `registerDefaultGroups` — see
|
|
6
|
+
// `storage.ts` for the active replacement.
|
|
1
7
|
const icon = `
|
|
2
8
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
|
3
9
|
<style type="text/css">
|
|
@@ -15,9 +21,10 @@ const icon = `
|
|
|
15
21
|
</g>
|
|
16
22
|
</svg>
|
|
17
23
|
`;
|
|
24
|
+
/** @deprecated Use `storage` instead — same icon, same role, clearer name. */
|
|
18
25
|
export const warehouse = {
|
|
19
26
|
name: 'warehouse',
|
|
20
|
-
description: '
|
|
27
|
+
description: '(deprecated) replaced by `storage` — kept as a no-op placeholder for external imports',
|
|
21
28
|
icon,
|
|
22
29
|
templates: []
|
|
23
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warehouse.js","sourceRoot":"","sources":["../../../src/component/warehouse.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;CAgBZ,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAmB;IACvC,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"warehouse.js","sourceRoot":"","sources":["../../../src/component/warehouse.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,sEAAsE;AACtE,yDAAyD;AACzD,EAAE;AACF,uEAAuE;AACvE,2CAA2C;AAC3C,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;CAgBZ,CAAA;AAED,8EAA8E;AAC9E,MAAM,CAAC,MAAM,SAAS,GAAmB;IACvC,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,uFAAuF;IACpG,IAAI;IACJ,SAAS,EAAE,EAAE;CACd,CAAA","sourcesContent":["import { ComponentGroup } from '../types.js'\n\n// Legacy warehouse silhouette — same SVG as the new `storage` group. Kept\n// here only so external code that still imports `warehouse` from this\n// package keeps working until they migrate to `storage`.\n//\n// `warehouse` is no longer registered by `registerDefaultGroups` — see\n// `storage.ts` for the active replacement.\nconst icon = `\n<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 30 30\" style=\"enable-background:new 0 0 30 30;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n .st14{fill:none;stroke:{{strokeColor}};stroke-width:2.5;stroke-linecap:round;stroke-miterlimit:10;}\n .st15{fill:none;stroke:{{strokeColor}};stroke-linecap:round;stroke-miterlimit:10;}\n </style>\n <g>\n <polyline class=\"st14\" points=\"1.5,11.2 15,5.2 28.5,11 \t\"/>\n <line class=\"st15\" x1=\"3.2\" y1=\"11.6\" x2=\"3.2\" y2=\"23.8\"/>\n <line class=\"st15\" x1=\"26.9\" y1=\"11.6\" x2=\"26.9\" y2=\"23.8\"/>\n <line class=\"st5\" x1=\"1.7\" y1=\"24.8\" x2=\"28.3\" y2=\"24.8\"/>\n <rect x=\"21.1\" y=\"18.3\" class=\"st0\" width=\"3.4\" height=\"5.5\"/>\n <path class=\"st0\" d=\"M5.9,13.6v10.2h13.8V13.6H5.9z M18.7,17.3H6.8v-2.4h11.9V17.3z\"/>\n </g>\n</svg>\n`\n\n/** @deprecated Use `storage` instead — same icon, same role, clearer name. */\nexport const warehouse: ComponentGroup = {\n name: 'warehouse',\n description: '(deprecated) replaced by `storage` — kept as a no-op placeholder for external imports',\n icon,\n templates: []\n}\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface CachedBoard {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
model: any;
|
|
5
|
+
updatedAt: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class BoardModelCache {
|
|
8
|
+
/**
|
|
9
|
+
* 캐시에서 보드 모델 조회
|
|
10
|
+
* @returns 캐시된 보드 또는 null
|
|
11
|
+
*/
|
|
12
|
+
static get(boardId: string): Promise<CachedBoard | null>;
|
|
13
|
+
/**
|
|
14
|
+
* 보드 모델을 캐시에 저장
|
|
15
|
+
*/
|
|
16
|
+
static put(boardId: string, name: string, model: string, updatedAt: string): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* 캐시가 최신인지 확인
|
|
19
|
+
* @returns true면 캐시 유효, false면 갱신 필요
|
|
20
|
+
*/
|
|
21
|
+
static isValid(boardId: string, serverUpdatedAt: string): Promise<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* 특정 보드 캐시 삭제
|
|
24
|
+
*/
|
|
25
|
+
static remove(boardId: string): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* 전체 캐시 클리어
|
|
28
|
+
*/
|
|
29
|
+
static clear(): Promise<void>;
|
|
30
|
+
}
|