@eyeon/map 2.0.0

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 (58) hide show
  1. package/README.md +27 -0
  2. package/dist/assets/MapViewer.css +1 -0
  3. package/dist/assets/index.css +1 -0
  4. package/dist/chunks/MapViewer.js +530 -0
  5. package/dist/chunks/MapViewer.js.map +1 -0
  6. package/dist/chunks/graph-tools.js +153 -0
  7. package/dist/chunks/graph-tools.js.map +1 -0
  8. package/dist/chunks/pathfinding.js +343 -0
  9. package/dist/chunks/pathfinding.js.map +1 -0
  10. package/dist/core/geometry/index.d.ts +42 -0
  11. package/dist/core/geometry/index.d.ts.map +1 -0
  12. package/dist/core/import/index.d.ts +51 -0
  13. package/dist/core/import/index.d.ts.map +1 -0
  14. package/dist/core/index.d.ts +7 -0
  15. package/dist/core/index.d.ts.map +1 -0
  16. package/dist/core/index.js +282 -0
  17. package/dist/core/index.js.map +1 -0
  18. package/dist/core/publish/index.d.ts +28 -0
  19. package/dist/core/publish/index.d.ts.map +1 -0
  20. package/dist/core/routing/graph-tools.d.ts +47 -0
  21. package/dist/core/routing/graph-tools.d.ts.map +1 -0
  22. package/dist/core/routing/pathfinding.d.ts +22 -0
  23. package/dist/core/routing/pathfinding.d.ts.map +1 -0
  24. package/dist/core/types.d.ts +406 -0
  25. package/dist/core/types.d.ts.map +1 -0
  26. package/dist/editor/MapEditor.d.ts +31 -0
  27. package/dist/editor/MapEditor.d.ts.map +1 -0
  28. package/dist/editor/canvas/EditorCanvas.d.ts +22 -0
  29. package/dist/editor/canvas/EditorCanvas.d.ts.map +1 -0
  30. package/dist/editor/index.css +248 -0
  31. package/dist/editor/index.d.ts +5 -0
  32. package/dist/editor/index.d.ts.map +1 -0
  33. package/dist/editor/index.js +734 -0
  34. package/dist/editor/index.js.map +1 -0
  35. package/dist/editor/panels/Inspector.d.ts +14 -0
  36. package/dist/editor/panels/Inspector.d.ts.map +1 -0
  37. package/dist/editor/panels/LeftRail.d.ts +36 -0
  38. package/dist/editor/panels/LeftRail.d.ts.map +1 -0
  39. package/dist/editor/panels/PreviewOverlay.d.ts +6 -0
  40. package/dist/editor/panels/PreviewOverlay.d.ts.map +1 -0
  41. package/dist/index.d.ts +3 -0
  42. package/dist/index.d.ts.map +1 -0
  43. package/dist/viewer/MapViewer.d.ts +26 -0
  44. package/dist/viewer/MapViewer.d.ts.map +1 -0
  45. package/dist/viewer/components/LevelMeshes.d.ts +11 -0
  46. package/dist/viewer/components/LevelMeshes.d.ts.map +1 -0
  47. package/dist/viewer/components/MapScene.d.ts +12 -0
  48. package/dist/viewer/components/MapScene.d.ts.map +1 -0
  49. package/dist/viewer/components/RouteLine.d.ts +8 -0
  50. package/dist/viewer/components/RouteLine.d.ts.map +1 -0
  51. package/dist/viewer/index.css +210 -0
  52. package/dist/viewer/index.d.ts +4 -0
  53. package/dist/viewer/index.d.ts.map +1 -0
  54. package/dist/viewer/index.js +7 -0
  55. package/dist/viewer/index.js.map +1 -0
  56. package/dist/viewer/ui/RuntimeChrome.d.ts +19 -0
  57. package/dist/viewer/ui/RuntimeChrome.d.ts.map +1 -0
  58. package/package.json +81 -0
@@ -0,0 +1,248 @@
1
+ .eyeon-map-editor {
2
+ display: grid;
3
+ grid-template-columns: 220px 1fr 260px;
4
+ height: 100%;
5
+ min-height: 560px;
6
+ background: #f8fafc;
7
+ color: #0f172a;
8
+ font-family: system-ui, -apple-system, sans-serif;
9
+ font-size: 12px;
10
+ }
11
+
12
+ .eyeon-map-rail {
13
+ display: flex;
14
+ flex-direction: column;
15
+ border-right: 1px solid #e2e8f0;
16
+ background: #fff;
17
+ min-width: 0;
18
+ }
19
+
20
+ .eyeon-map-rail__tabs {
21
+ display: grid;
22
+ grid-template-columns: repeat(3, 1fr);
23
+ gap: 2px;
24
+ padding: 6px;
25
+ border-bottom: 1px solid #e2e8f0;
26
+ }
27
+
28
+ .eyeon-map-rail__tabs button {
29
+ border: 0;
30
+ background: transparent;
31
+ border-radius: 6px;
32
+ padding: 6px 4px;
33
+ font-size: 11px;
34
+ font-weight: 600;
35
+ cursor: pointer;
36
+ color: #64748b;
37
+ }
38
+
39
+ .eyeon-map-rail__tabs button.is-active {
40
+ background: #eff6ff;
41
+ color: #1d4ed8;
42
+ }
43
+
44
+ .eyeon-map-rail__body {
45
+ overflow: auto;
46
+ padding: 8px;
47
+ flex: 1;
48
+ }
49
+
50
+ .eyeon-map-rail__heading {
51
+ font-size: 10px;
52
+ font-weight: 700;
53
+ text-transform: uppercase;
54
+ letter-spacing: 0.04em;
55
+ color: #94a3b8;
56
+ margin: 8px 0 4px;
57
+ }
58
+
59
+ .eyeon-map-rail__row {
60
+ display: flex;
61
+ justify-content: space-between;
62
+ gap: 6px;
63
+ width: 100%;
64
+ text-align: left;
65
+ border: 0;
66
+ background: transparent;
67
+ border-radius: 6px;
68
+ padding: 6px 8px;
69
+ cursor: pointer;
70
+ font-size: 12px;
71
+ }
72
+
73
+ .eyeon-map-rail__row.is-active,
74
+ .eyeon-map-rail__row:hover {
75
+ background: #f1f5f9;
76
+ }
77
+
78
+ .eyeon-map-rail__muted {
79
+ color: #94a3b8;
80
+ font-size: 10px;
81
+ }
82
+
83
+ .eyeon-map-rail__hint {
84
+ color: #64748b;
85
+ line-height: 1.4;
86
+ margin: 0 0 8px;
87
+ }
88
+
89
+ .eyeon-map-rail__actions {
90
+ display: grid;
91
+ gap: 6px;
92
+ margin-top: 10px;
93
+ }
94
+
95
+ .eyeon-map-rail__file {
96
+ display: grid;
97
+ gap: 4px;
98
+ font-weight: 600;
99
+ font-size: 11px;
100
+ }
101
+
102
+ .eyeon-map-rail__file input {
103
+ font-size: 11px;
104
+ }
105
+
106
+ .eyeon-map-rail__field {
107
+ display: grid;
108
+ gap: 4px;
109
+ margin-bottom: 8px;
110
+ font-size: 11px;
111
+ font-weight: 600;
112
+ color: #475569;
113
+ }
114
+
115
+ .eyeon-map-rail__field input,
116
+ .eyeon-map-rail__field select {
117
+ font-size: 12px;
118
+ padding: 6px 8px;
119
+ border: 1px solid #e2e8f0;
120
+ border-radius: 6px;
121
+ }
122
+
123
+ .eyeon-map-editor__center {
124
+ display: flex;
125
+ flex-direction: column;
126
+ min-width: 0;
127
+ }
128
+
129
+ .eyeon-map-editor__toolbar {
130
+ display: flex;
131
+ justify-content: space-between;
132
+ gap: 8px;
133
+ padding: 6px 8px;
134
+ border-bottom: 1px solid #e2e8f0;
135
+ background: #fff;
136
+ }
137
+
138
+ .eyeon-map-editor__tools,
139
+ .eyeon-map-editor__actions {
140
+ display: flex;
141
+ gap: 4px;
142
+ align-items: center;
143
+ flex-wrap: wrap;
144
+ }
145
+
146
+ .eyeon-map-editor__toolbar button {
147
+ border: 1px solid #e2e8f0;
148
+ background: #fff;
149
+ border-radius: 6px;
150
+ padding: 4px 8px;
151
+ font-size: 11px;
152
+ font-weight: 600;
153
+ cursor: pointer;
154
+ }
155
+
156
+ .eyeon-map-editor__toolbar button.is-active,
157
+ .eyeon-map-editor__publish {
158
+ background: #2563eb;
159
+ border-color: #2563eb;
160
+ color: #fff;
161
+ }
162
+
163
+ .eyeon-map-editor__angle {
164
+ display: flex;
165
+ align-items: center;
166
+ gap: 4px;
167
+ font-size: 11px;
168
+ font-weight: 600;
169
+ }
170
+
171
+ .eyeon-map-editor__angle input {
172
+ width: 56px;
173
+ font-size: 11px;
174
+ padding: 3px 6px;
175
+ border: 1px solid #e2e8f0;
176
+ border-radius: 4px;
177
+ }
178
+
179
+ .eyeon-map-editor__canvas-wrap {
180
+ flex: 1;
181
+ min-height: 0;
182
+ position: relative;
183
+ }
184
+
185
+ .eyeon-map-canvas {
186
+ position: absolute;
187
+ inset: 0;
188
+ overflow: hidden;
189
+ background:
190
+ linear-gradient(#e2e8f0 1px, transparent 1px) 0 0 / 24px 24px,
191
+ linear-gradient(90deg, #e2e8f0 1px, transparent 1px) 0 0 / 24px 24px,
192
+ #f8fafc;
193
+ }
194
+
195
+ .eyeon-map-canvas__svg {
196
+ width: 100%;
197
+ height: 100%;
198
+ touch-action: none;
199
+ }
200
+
201
+ .eyeon-map-canvas__empty {
202
+ position: absolute;
203
+ inset: 0;
204
+ display: flex;
205
+ align-items: center;
206
+ justify-content: center;
207
+ color: #94a3b8;
208
+ }
209
+
210
+ .eyeon-map-inspector {
211
+ border-left: 1px solid #e2e8f0;
212
+ background: #fff;
213
+ padding: 10px;
214
+ overflow: auto;
215
+ }
216
+
217
+ .eyeon-map-inspector__heading {
218
+ font-size: 10px;
219
+ font-weight: 700;
220
+ text-transform: uppercase;
221
+ letter-spacing: 0.04em;
222
+ color: #94a3b8;
223
+ margin: 10px 0 6px;
224
+ }
225
+
226
+ .eyeon-map-inspector__empty {
227
+ color: #94a3b8;
228
+ padding: 12px 4px;
229
+ }
230
+
231
+ .eyeon-map-inspector__save {
232
+ margin-top: 10px;
233
+ width: 100%;
234
+ border: 0;
235
+ border-radius: 6px;
236
+ background: #2563eb;
237
+ color: #fff;
238
+ padding: 8px;
239
+ font-size: 12px;
240
+ font-weight: 600;
241
+ cursor: pointer;
242
+ }
243
+
244
+ .eyeon-map-preview,
245
+ .eyeon-map-preview__loading {
246
+ position: absolute;
247
+ inset: 0;
248
+ }
@@ -0,0 +1,5 @@
1
+ export { MapEditor, type MapEditorProps, type EditorDraftState } from './MapEditor';
2
+ export { EditorCanvas } from './canvas/EditorCanvas';
3
+ export { LeftRail, type RailTab } from './panels/LeftRail';
4
+ export { Inspector } from './panels/Inspector';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,cAAc,CAAC"}