@tileflow/static 0.1.0-alpha.21 → 0.1.0-alpha.23
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/README.md +145 -18
- package/dist/chunk-6DWVCK64.js +406 -0
- package/dist/chunk-HVVIAOBE.js +175 -0
- package/dist/{chunk-A23RC4BE.js → chunk-N63IFMFM.js} +64 -18
- package/dist/{chunk-NHQK5UZ2.js → chunk-TBI5AED6.js} +185 -43
- package/dist/chunk-XMT7VJL5.js +297 -0
- package/dist/client.d.ts +93 -10
- package/dist/client.js +16 -5
- package/dist/errors-B9rwehK0.d.ts +21 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +55 -9
- package/dist/manifest.d.ts +419 -13
- package/dist/manifest.js +19 -3
- package/dist/overlays.d.ts +9 -3
- package/dist/overlays.js +6 -4
- package/dist/scene-contract-Cr6BNLz0.d.ts +734 -0
- package/dist/scene.d.ts +103 -4
- package/dist/scene.js +21 -3
- package/package.json +3 -6
- package/GENERATED_OUTPUT_LICENSE.md +0 -21
- package/NOTICE +0 -9
- package/TRADEMARKS.md +0 -10
- package/dist/chunk-KPT7PASB.js +0 -122
- package/dist/chunk-MGQCHCU3.js +0 -228
- package/dist/chunk-S3WXE5P4.js +0 -99
- package/dist/scene-contract-DZMhLDnf.d.ts +0 -159
package/dist/manifest.d.ts
CHANGED
|
@@ -1,8 +1,206 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { j as StaticSceneInput } from './scene-contract-Cr6BNLz0.js';
|
|
3
3
|
|
|
4
4
|
declare const staticRendererSchemaVersion = 1;
|
|
5
|
+
declare const staticAttributionPlanSchemaVersion = 1;
|
|
6
|
+
declare const staticRenderCompositionSchemaVersion = 1;
|
|
7
|
+
declare const staticAttributionLimits: {
|
|
8
|
+
readonly maxBytes: number;
|
|
9
|
+
readonly maxEntries: 18;
|
|
10
|
+
readonly maxLinksPerEntry: 8;
|
|
11
|
+
readonly maxTextLength: 16384;
|
|
12
|
+
readonly maxUrlLength: 2048;
|
|
13
|
+
};
|
|
14
|
+
declare const staticResolvedAttributionPositionSchema: z.ZodEnum<{
|
|
15
|
+
"top-right": "top-right";
|
|
16
|
+
"bottom-right": "bottom-right";
|
|
17
|
+
"bottom-left": "bottom-left";
|
|
18
|
+
"top-left": "top-left";
|
|
19
|
+
}>;
|
|
20
|
+
declare const staticAttributionSegmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
|
+
kind: z.ZodLiteral<"text">;
|
|
22
|
+
text: z.ZodString;
|
|
23
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
24
|
+
kind: z.ZodLiteral<"link">;
|
|
25
|
+
label: z.ZodString;
|
|
26
|
+
url: z.ZodString;
|
|
27
|
+
}, z.core.$strict>], "kind">;
|
|
28
|
+
declare const staticAttributionProvenanceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29
|
+
authority: z.ZodLiteral<"platform-notice">;
|
|
30
|
+
noticeId: z.ZodString;
|
|
31
|
+
noticeSha256: z.ZodString;
|
|
32
|
+
resource: z.ZodEnum<{
|
|
33
|
+
terrain: "terrain";
|
|
34
|
+
world: "world";
|
|
35
|
+
}>;
|
|
36
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
37
|
+
sourceId: z.ZodString;
|
|
38
|
+
sourceSelectionIdentity: z.ZodString;
|
|
39
|
+
}, z.core.$strict>>;
|
|
40
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
41
|
+
authority: z.ZodLiteral<"team-declared">;
|
|
42
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
43
|
+
sourceId: z.ZodString;
|
|
44
|
+
sourceSelectionIdentity: z.ZodString;
|
|
45
|
+
mapRevision: z.ZodString;
|
|
46
|
+
resourceId: z.ZodString;
|
|
47
|
+
}, z.core.$strict>>;
|
|
48
|
+
}, z.core.$strict>], "authority">;
|
|
49
|
+
declare const staticAttributionEntrySchema: z.ZodObject<{
|
|
50
|
+
authority: z.ZodEnum<{
|
|
51
|
+
"platform-notice": "platform-notice";
|
|
52
|
+
"team-declared": "team-declared";
|
|
53
|
+
}>;
|
|
54
|
+
provenance: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
55
|
+
authority: z.ZodLiteral<"platform-notice">;
|
|
56
|
+
noticeId: z.ZodString;
|
|
57
|
+
noticeSha256: z.ZodString;
|
|
58
|
+
resource: z.ZodEnum<{
|
|
59
|
+
terrain: "terrain";
|
|
60
|
+
world: "world";
|
|
61
|
+
}>;
|
|
62
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
63
|
+
sourceId: z.ZodString;
|
|
64
|
+
sourceSelectionIdentity: z.ZodString;
|
|
65
|
+
}, z.core.$strict>>;
|
|
66
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
67
|
+
authority: z.ZodLiteral<"team-declared">;
|
|
68
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
69
|
+
sourceId: z.ZodString;
|
|
70
|
+
sourceSelectionIdentity: z.ZodString;
|
|
71
|
+
mapRevision: z.ZodString;
|
|
72
|
+
resourceId: z.ZodString;
|
|
73
|
+
}, z.core.$strict>>;
|
|
74
|
+
}, z.core.$strict>], "authority">;
|
|
75
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
76
|
+
kind: z.ZodLiteral<"text">;
|
|
77
|
+
text: z.ZodString;
|
|
78
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
79
|
+
kind: z.ZodLiteral<"link">;
|
|
80
|
+
label: z.ZodString;
|
|
81
|
+
url: z.ZodString;
|
|
82
|
+
}, z.core.$strict>], "kind">>;
|
|
83
|
+
}, z.core.$strict>;
|
|
84
|
+
declare const staticAttributionPlanSchema: z.ZodObject<{
|
|
85
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
86
|
+
authority: z.ZodEnum<{
|
|
87
|
+
"platform-notice": "platform-notice";
|
|
88
|
+
"team-declared": "team-declared";
|
|
89
|
+
}>;
|
|
90
|
+
provenance: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
91
|
+
authority: z.ZodLiteral<"platform-notice">;
|
|
92
|
+
noticeId: z.ZodString;
|
|
93
|
+
noticeSha256: z.ZodString;
|
|
94
|
+
resource: z.ZodEnum<{
|
|
95
|
+
terrain: "terrain";
|
|
96
|
+
world: "world";
|
|
97
|
+
}>;
|
|
98
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
99
|
+
sourceId: z.ZodString;
|
|
100
|
+
sourceSelectionIdentity: z.ZodString;
|
|
101
|
+
}, z.core.$strict>>;
|
|
102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
103
|
+
authority: z.ZodLiteral<"team-declared">;
|
|
104
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
105
|
+
sourceId: z.ZodString;
|
|
106
|
+
sourceSelectionIdentity: z.ZodString;
|
|
107
|
+
mapRevision: z.ZodString;
|
|
108
|
+
resourceId: z.ZodString;
|
|
109
|
+
}, z.core.$strict>>;
|
|
110
|
+
}, z.core.$strict>], "authority">;
|
|
111
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
112
|
+
kind: z.ZodLiteral<"text">;
|
|
113
|
+
text: z.ZodString;
|
|
114
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
115
|
+
kind: z.ZodLiteral<"link">;
|
|
116
|
+
label: z.ZodString;
|
|
117
|
+
url: z.ZodString;
|
|
118
|
+
}, z.core.$strict>], "kind">>;
|
|
119
|
+
}, z.core.$strict>>;
|
|
120
|
+
mode: z.ZodEnum<{
|
|
121
|
+
embedded: "embedded";
|
|
122
|
+
external: "external";
|
|
123
|
+
}>;
|
|
124
|
+
position: z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodEnum<{
|
|
125
|
+
"top-right": "top-right";
|
|
126
|
+
"bottom-right": "bottom-right";
|
|
127
|
+
"bottom-left": "bottom-left";
|
|
128
|
+
"top-left": "top-left";
|
|
129
|
+
}>, z.ZodNull]>;
|
|
130
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
131
|
+
}, z.core.$strict>;
|
|
132
|
+
type StaticAttributionSegment = z.infer<typeof staticAttributionSegmentSchema>;
|
|
133
|
+
type StaticAttributionProvenance = z.infer<typeof staticAttributionProvenanceSchema>;
|
|
134
|
+
type StaticAttributionEntry = z.infer<typeof staticAttributionEntrySchema>;
|
|
135
|
+
type StaticAttributionPlan = z.infer<typeof staticAttributionPlanSchema>;
|
|
136
|
+
type StaticResolvedAttributionPosition = z.infer<typeof staticResolvedAttributionPositionSchema>;
|
|
137
|
+
declare const staticRenderCompositionSchema: z.ZodObject<{
|
|
138
|
+
anchors: z.ZodObject<{
|
|
139
|
+
'above-water': z.ZodNullable<z.ZodString>;
|
|
140
|
+
'below-roads': z.ZodNullable<z.ZodString>;
|
|
141
|
+
'above-roads': z.ZodNullable<z.ZodString>;
|
|
142
|
+
'above-buildings': z.ZodNullable<z.ZodString>;
|
|
143
|
+
'below-labels': z.ZodNullable<z.ZodString>;
|
|
144
|
+
'above-labels': z.ZodNull;
|
|
145
|
+
}, z.core.$strict>;
|
|
146
|
+
icons: z.ZodArray<z.ZodObject<{
|
|
147
|
+
height: z.ZodNumber;
|
|
148
|
+
icon: z.ZodString;
|
|
149
|
+
overlayIndex: z.ZodNumber;
|
|
150
|
+
width: z.ZodNumber;
|
|
151
|
+
}, z.core.$strict>>;
|
|
152
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
153
|
+
}, z.core.$strict>;
|
|
154
|
+
type StaticRenderComposition = z.infer<typeof staticRenderCompositionSchema>;
|
|
5
155
|
declare const staticRenderManifestSchema: z.ZodObject<{
|
|
156
|
+
attribution: z.ZodObject<{
|
|
157
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
158
|
+
authority: z.ZodEnum<{
|
|
159
|
+
"platform-notice": "platform-notice";
|
|
160
|
+
"team-declared": "team-declared";
|
|
161
|
+
}>;
|
|
162
|
+
provenance: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
163
|
+
authority: z.ZodLiteral<"platform-notice">;
|
|
164
|
+
noticeId: z.ZodString;
|
|
165
|
+
noticeSha256: z.ZodString;
|
|
166
|
+
resource: z.ZodEnum<{
|
|
167
|
+
terrain: "terrain";
|
|
168
|
+
world: "world";
|
|
169
|
+
}>;
|
|
170
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
171
|
+
sourceId: z.ZodString;
|
|
172
|
+
sourceSelectionIdentity: z.ZodString;
|
|
173
|
+
}, z.core.$strict>>;
|
|
174
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
175
|
+
authority: z.ZodLiteral<"team-declared">;
|
|
176
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
177
|
+
sourceId: z.ZodString;
|
|
178
|
+
sourceSelectionIdentity: z.ZodString;
|
|
179
|
+
mapRevision: z.ZodString;
|
|
180
|
+
resourceId: z.ZodString;
|
|
181
|
+
}, z.core.$strict>>;
|
|
182
|
+
}, z.core.$strict>], "authority">;
|
|
183
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
184
|
+
kind: z.ZodLiteral<"text">;
|
|
185
|
+
text: z.ZodString;
|
|
186
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
187
|
+
kind: z.ZodLiteral<"link">;
|
|
188
|
+
label: z.ZodString;
|
|
189
|
+
url: z.ZodString;
|
|
190
|
+
}, z.core.$strict>], "kind">>;
|
|
191
|
+
}, z.core.$strict>>;
|
|
192
|
+
mode: z.ZodEnum<{
|
|
193
|
+
embedded: "embedded";
|
|
194
|
+
external: "external";
|
|
195
|
+
}>;
|
|
196
|
+
position: z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodEnum<{
|
|
197
|
+
"top-right": "top-right";
|
|
198
|
+
"bottom-right": "bottom-right";
|
|
199
|
+
"bottom-left": "bottom-left";
|
|
200
|
+
"top-left": "top-left";
|
|
201
|
+
}>, z.ZodNull]>;
|
|
202
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
203
|
+
}, z.core.$strict>;
|
|
6
204
|
autoFit: z.ZodOptional<z.ZodObject<{
|
|
7
205
|
bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
8
206
|
longitudeOffsets: z.ZodArray<z.ZodNumber>;
|
|
@@ -19,21 +217,50 @@ declare const staticRenderManifestSchema: z.ZodObject<{
|
|
|
19
217
|
top: z.ZodNumber;
|
|
20
218
|
}, z.core.$strict>;
|
|
21
219
|
}, z.core.$strict>>;
|
|
220
|
+
composition: z.ZodObject<{
|
|
221
|
+
anchors: z.ZodObject<{
|
|
222
|
+
'above-water': z.ZodNullable<z.ZodString>;
|
|
223
|
+
'below-roads': z.ZodNullable<z.ZodString>;
|
|
224
|
+
'above-roads': z.ZodNullable<z.ZodString>;
|
|
225
|
+
'above-buildings': z.ZodNullable<z.ZodString>;
|
|
226
|
+
'below-labels': z.ZodNullable<z.ZodString>;
|
|
227
|
+
'above-labels': z.ZodNull;
|
|
228
|
+
}, z.core.$strict>;
|
|
229
|
+
icons: z.ZodArray<z.ZodObject<{
|
|
230
|
+
height: z.ZodNumber;
|
|
231
|
+
icon: z.ZodString;
|
|
232
|
+
overlayIndex: z.ZodNumber;
|
|
233
|
+
width: z.ZodNumber;
|
|
234
|
+
}, z.core.$strict>>;
|
|
235
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
236
|
+
}, z.core.$strict>;
|
|
22
237
|
mapId: z.ZodString;
|
|
23
238
|
rendererVersion: z.ZodString;
|
|
24
239
|
schemaVersion: z.ZodLiteral<1>;
|
|
25
240
|
scene: z.ZodObject<{
|
|
241
|
+
attribution: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
242
|
+
mode: z.ZodOptional<z.ZodLiteral<"embedded">>;
|
|
243
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
244
|
+
"top-right": "top-right";
|
|
245
|
+
"bottom-right": "bottom-right";
|
|
246
|
+
"bottom-left": "bottom-left";
|
|
247
|
+
"top-left": "top-left";
|
|
248
|
+
auto: "auto";
|
|
249
|
+
}>>;
|
|
250
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
251
|
+
mode: z.ZodLiteral<"external">;
|
|
252
|
+
}, z.core.$strict>]>>;
|
|
26
253
|
camera: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
254
|
bearing: z.ZodOptional<z.ZodNumber>;
|
|
28
255
|
center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
29
256
|
type: z.ZodLiteral<"center">;
|
|
30
257
|
zoom: z.ZodNumber;
|
|
31
|
-
}, z.core.$
|
|
258
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
32
259
|
bearing: z.ZodOptional<z.ZodNumber>;
|
|
33
260
|
bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
34
261
|
padding: z.ZodOptional<z.ZodNumber>;
|
|
35
262
|
type: z.ZodLiteral<"bounds">;
|
|
36
|
-
}, z.core.$
|
|
263
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37
264
|
bearing: z.ZodOptional<z.ZodNumber>;
|
|
38
265
|
maxZoom: z.ZodOptional<z.ZodNumber>;
|
|
39
266
|
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -43,52 +270,229 @@ declare const staticRenderManifestSchema: z.ZodObject<{
|
|
|
43
270
|
top: z.ZodOptional<z.ZodNumber>;
|
|
44
271
|
}, z.core.$strict>]>>;
|
|
45
272
|
type: z.ZodLiteral<"auto">;
|
|
46
|
-
}, z.core.$
|
|
273
|
+
}, z.core.$strict>], "type">;
|
|
274
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
275
|
+
png: "png";
|
|
276
|
+
jpeg: "jpeg";
|
|
277
|
+
webp: "webp";
|
|
278
|
+
}>>;
|
|
47
279
|
map: z.ZodString;
|
|
48
280
|
overlays: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
49
281
|
color: z.ZodDefault<z.ZodString>;
|
|
50
282
|
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
51
283
|
id: z.ZodOptional<z.ZodString>;
|
|
52
284
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
285
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
286
|
+
"above-water": "above-water";
|
|
287
|
+
"below-roads": "below-roads";
|
|
288
|
+
"above-roads": "above-roads";
|
|
289
|
+
"above-buildings": "above-buildings";
|
|
290
|
+
"below-labels": "below-labels";
|
|
291
|
+
"above-labels": "above-labels";
|
|
292
|
+
}>>;
|
|
53
293
|
type: z.ZodLiteral<"line">;
|
|
54
294
|
width: z.ZodDefault<z.ZodNumber>;
|
|
55
|
-
}, z.core.$
|
|
295
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
56
296
|
color: z.ZodDefault<z.ZodString>;
|
|
57
297
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
58
298
|
id: z.ZodOptional<z.ZodString>;
|
|
59
299
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
300
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
301
|
+
"above-water": "above-water";
|
|
302
|
+
"below-roads": "below-roads";
|
|
303
|
+
"above-roads": "above-roads";
|
|
304
|
+
"above-buildings": "above-buildings";
|
|
305
|
+
"below-labels": "below-labels";
|
|
306
|
+
"above-labels": "above-labels";
|
|
307
|
+
}>>;
|
|
60
308
|
radius: z.ZodDefault<z.ZodNumber>;
|
|
61
309
|
strokeColor: z.ZodOptional<z.ZodString>;
|
|
62
310
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
63
311
|
type: z.ZodLiteral<"circle">;
|
|
64
|
-
}, z.core.$
|
|
312
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
65
313
|
color: z.ZodDefault<z.ZodString>;
|
|
66
314
|
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
67
315
|
id: z.ZodOptional<z.ZodString>;
|
|
316
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
317
|
+
"above-water": "above-water";
|
|
318
|
+
"below-roads": "below-roads";
|
|
319
|
+
"above-roads": "above-roads";
|
|
320
|
+
"above-buildings": "above-buildings";
|
|
321
|
+
"below-labels": "below-labels";
|
|
322
|
+
"above-labels": "above-labels";
|
|
323
|
+
}>>;
|
|
68
324
|
radius: z.ZodDefault<z.ZodNumber>;
|
|
69
325
|
strokeColor: z.ZodDefault<z.ZodString>;
|
|
70
326
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
71
327
|
type: z.ZodLiteral<"marker">;
|
|
72
|
-
}, z.core.$
|
|
328
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
73
329
|
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
74
330
|
fill: z.ZodDefault<z.ZodString>;
|
|
75
331
|
id: z.ZodOptional<z.ZodString>;
|
|
76
332
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
333
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
334
|
+
"above-water": "above-water";
|
|
335
|
+
"below-roads": "below-roads";
|
|
336
|
+
"above-roads": "above-roads";
|
|
337
|
+
"above-buildings": "above-buildings";
|
|
338
|
+
"below-labels": "below-labels";
|
|
339
|
+
"above-labels": "above-labels";
|
|
340
|
+
}>>;
|
|
77
341
|
stroke: z.ZodOptional<z.ZodString>;
|
|
78
342
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
79
343
|
type: z.ZodLiteral<"polygon">;
|
|
80
|
-
}, z.core.$
|
|
344
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
345
|
+
anchor: z.ZodDefault<z.ZodEnum<{
|
|
346
|
+
left: "left";
|
|
347
|
+
right: "right";
|
|
348
|
+
center: "center";
|
|
349
|
+
top: "top";
|
|
350
|
+
"top-right": "top-right";
|
|
351
|
+
"bottom-right": "bottom-right";
|
|
352
|
+
bottom: "bottom";
|
|
353
|
+
"bottom-left": "bottom-left";
|
|
354
|
+
"top-left": "top-left";
|
|
355
|
+
}>>;
|
|
356
|
+
collision: z.ZodDefault<z.ZodEnum<{
|
|
357
|
+
"always-visible": "always-visible";
|
|
358
|
+
"avoid-overlap": "avoid-overlap";
|
|
359
|
+
}>>;
|
|
360
|
+
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
361
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
362
|
+
id: z.ZodOptional<z.ZodString>;
|
|
363
|
+
label: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
364
|
+
appearance: z.ZodLiteral<"plain">;
|
|
365
|
+
color: z.ZodDefault<z.ZodString>;
|
|
366
|
+
fontSize: z.ZodDefault<z.ZodNumber>;
|
|
367
|
+
gap: z.ZodDefault<z.ZodNumber>;
|
|
368
|
+
haloColor: z.ZodDefault<z.ZodString>;
|
|
369
|
+
haloWidth: z.ZodDefault<z.ZodNumber>;
|
|
370
|
+
language: z.ZodDefault<z.ZodEnum<{
|
|
371
|
+
ja: "ja";
|
|
372
|
+
"zh-Hans": "zh-Hans";
|
|
373
|
+
"zh-Hant": "zh-Hant";
|
|
374
|
+
ko: "ko";
|
|
375
|
+
}>>;
|
|
376
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
377
|
+
left: "left";
|
|
378
|
+
right: "right";
|
|
379
|
+
center: "center";
|
|
380
|
+
above: "above";
|
|
381
|
+
"above-right": "above-right";
|
|
382
|
+
"below-right": "below-right";
|
|
383
|
+
below: "below";
|
|
384
|
+
"below-left": "below-left";
|
|
385
|
+
"above-left": "above-left";
|
|
386
|
+
}>>;
|
|
387
|
+
text: z.ZodString;
|
|
388
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
389
|
+
appearance: z.ZodLiteral<"badge">;
|
|
390
|
+
backgroundColor: z.ZodDefault<z.ZodString>;
|
|
391
|
+
borderColor: z.ZodDefault<z.ZodString>;
|
|
392
|
+
borderRadius: z.ZodDefault<z.ZodNumber>;
|
|
393
|
+
borderWidth: z.ZodDefault<z.ZodNumber>;
|
|
394
|
+
color: z.ZodDefault<z.ZodString>;
|
|
395
|
+
fontSize: z.ZodDefault<z.ZodNumber>;
|
|
396
|
+
gap: z.ZodDefault<z.ZodNumber>;
|
|
397
|
+
language: z.ZodDefault<z.ZodEnum<{
|
|
398
|
+
ja: "ja";
|
|
399
|
+
"zh-Hans": "zh-Hans";
|
|
400
|
+
"zh-Hant": "zh-Hant";
|
|
401
|
+
ko: "ko";
|
|
402
|
+
}>>;
|
|
403
|
+
padding: z.ZodDefault<z.ZodObject<{
|
|
404
|
+
x: z.ZodDefault<z.ZodNumber>;
|
|
405
|
+
y: z.ZodDefault<z.ZodNumber>;
|
|
406
|
+
}, z.core.$strict>>;
|
|
407
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
408
|
+
left: "left";
|
|
409
|
+
right: "right";
|
|
410
|
+
center: "center";
|
|
411
|
+
above: "above";
|
|
412
|
+
"above-right": "above-right";
|
|
413
|
+
"below-right": "below-right";
|
|
414
|
+
below: "below";
|
|
415
|
+
"below-left": "below-left";
|
|
416
|
+
"above-left": "above-left";
|
|
417
|
+
}>>;
|
|
418
|
+
text: z.ZodString;
|
|
419
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
420
|
+
appearance: "plain";
|
|
421
|
+
color: string;
|
|
422
|
+
fontSize: number;
|
|
423
|
+
gap: number;
|
|
424
|
+
haloColor: string;
|
|
425
|
+
haloWidth: number;
|
|
426
|
+
language: "ja" | "zh-Hans" | "zh-Hant" | "ko";
|
|
427
|
+
text: string;
|
|
428
|
+
position?: "left" | "right" | "center" | "above" | "above-right" | "below-right" | "below" | "below-left" | "above-left" | undefined;
|
|
429
|
+
} | {
|
|
430
|
+
appearance: "badge";
|
|
431
|
+
backgroundColor: string;
|
|
432
|
+
borderColor: string;
|
|
433
|
+
borderRadius: number;
|
|
434
|
+
borderWidth: number;
|
|
435
|
+
color: string;
|
|
436
|
+
fontSize: number;
|
|
437
|
+
gap: number;
|
|
438
|
+
language: "ja" | "zh-Hans" | "zh-Hant" | "ko";
|
|
439
|
+
padding: {
|
|
440
|
+
x: number;
|
|
441
|
+
y: number;
|
|
442
|
+
};
|
|
443
|
+
text: string;
|
|
444
|
+
position?: "left" | "right" | "center" | "above" | "above-right" | "below-right" | "below" | "below-left" | "above-left" | undefined;
|
|
445
|
+
}, string | {
|
|
446
|
+
appearance: "plain";
|
|
447
|
+
color: string;
|
|
448
|
+
fontSize: number;
|
|
449
|
+
gap: number;
|
|
450
|
+
haloColor: string;
|
|
451
|
+
haloWidth: number;
|
|
452
|
+
language: "ja" | "zh-Hans" | "zh-Hant" | "ko";
|
|
453
|
+
text: string;
|
|
454
|
+
position?: "left" | "right" | "center" | "above" | "above-right" | "below-right" | "below" | "below-left" | "above-left" | undefined;
|
|
455
|
+
} | {
|
|
456
|
+
appearance: "badge";
|
|
457
|
+
backgroundColor: string;
|
|
458
|
+
borderColor: string;
|
|
459
|
+
borderRadius: number;
|
|
460
|
+
borderWidth: number;
|
|
461
|
+
color: string;
|
|
462
|
+
fontSize: number;
|
|
463
|
+
gap: number;
|
|
464
|
+
language: "ja" | "zh-Hans" | "zh-Hant" | "ko";
|
|
465
|
+
padding: {
|
|
466
|
+
x: number;
|
|
467
|
+
y: number;
|
|
468
|
+
};
|
|
469
|
+
text: string;
|
|
470
|
+
position?: "left" | "right" | "center" | "above" | "above-right" | "below-right" | "below" | "below-left" | "above-left" | undefined;
|
|
471
|
+
}>>>;
|
|
472
|
+
offset: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
473
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
474
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
475
|
+
"above-water": "above-water";
|
|
476
|
+
"below-roads": "below-roads";
|
|
477
|
+
"above-roads": "above-roads";
|
|
478
|
+
"above-buildings": "above-buildings";
|
|
479
|
+
"below-labels": "below-labels";
|
|
480
|
+
"above-labels": "above-labels";
|
|
481
|
+
}>>;
|
|
482
|
+
scale: z.ZodDefault<z.ZodNumber>;
|
|
483
|
+
type: z.ZodLiteral<"symbol">;
|
|
484
|
+
}, z.core.$strict>], "type">>>;
|
|
81
485
|
size: z.ZodObject<{
|
|
82
|
-
dpr: z.ZodOptional<z.ZodLiteral<1>>;
|
|
486
|
+
dpr: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
83
487
|
height: z.ZodNumber;
|
|
84
488
|
width: z.ZodNumber;
|
|
85
|
-
}, z.core.$
|
|
489
|
+
}, z.core.$strict>;
|
|
86
490
|
theme: z.ZodString;
|
|
87
|
-
}, z.core.$
|
|
491
|
+
}, z.core.$strict>;
|
|
88
492
|
styleId: z.ZodOptional<z.ZodString>;
|
|
89
493
|
styleRevision: z.ZodString;
|
|
90
494
|
styleUrl: z.ZodString;
|
|
91
|
-
}, z.core.$
|
|
495
|
+
}, z.core.$strict>;
|
|
92
496
|
type StaticRenderManifest = z.infer<typeof staticRenderManifestSchema>;
|
|
93
497
|
declare function validateStaticRenderManifest(input: unknown): {
|
|
94
498
|
manifest: StaticRenderManifest;
|
|
@@ -98,6 +502,8 @@ declare function validateStaticRenderManifest(input: unknown): {
|
|
|
98
502
|
ok: false;
|
|
99
503
|
};
|
|
100
504
|
declare function createRenderManifest(input: {
|
|
505
|
+
attribution: StaticAttributionPlan;
|
|
506
|
+
composition: StaticRenderComposition;
|
|
101
507
|
mapId: string;
|
|
102
508
|
rendererVersion: string;
|
|
103
509
|
scene: StaticSceneInput;
|
|
@@ -108,4 +514,4 @@ declare function createRenderManifest(input: {
|
|
|
108
514
|
declare function hashRenderManifest(manifest: StaticRenderManifest): Promise<string>;
|
|
109
515
|
declare function hashStaticSceneRequest(scene: StaticSceneInput): Promise<string>;
|
|
110
516
|
|
|
111
|
-
export { type StaticRenderManifest, createRenderManifest, hashRenderManifest, hashStaticSceneRequest, staticRenderManifestSchema, staticRendererSchemaVersion, validateStaticRenderManifest };
|
|
517
|
+
export { type StaticAttributionEntry, type StaticAttributionPlan, type StaticAttributionProvenance, type StaticAttributionSegment, type StaticRenderComposition, type StaticRenderManifest, type StaticResolvedAttributionPosition, createRenderManifest, hashRenderManifest, hashStaticSceneRequest, staticAttributionEntrySchema, staticAttributionLimits, staticAttributionPlanSchema, staticAttributionPlanSchemaVersion, staticAttributionProvenanceSchema, staticAttributionSegmentSchema, staticRenderCompositionSchema, staticRenderCompositionSchemaVersion, staticRenderManifestSchema, staticRendererSchemaVersion, validateStaticRenderManifest };
|
package/dist/manifest.js
CHANGED
|
@@ -2,16 +2,32 @@ import {
|
|
|
2
2
|
createRenderManifest,
|
|
3
3
|
hashRenderManifest,
|
|
4
4
|
hashStaticSceneRequest,
|
|
5
|
+
staticAttributionEntrySchema,
|
|
6
|
+
staticAttributionLimits,
|
|
7
|
+
staticAttributionPlanSchema,
|
|
8
|
+
staticAttributionPlanSchemaVersion,
|
|
9
|
+
staticAttributionProvenanceSchema,
|
|
10
|
+
staticAttributionSegmentSchema,
|
|
11
|
+
staticRenderCompositionSchema,
|
|
12
|
+
staticRenderCompositionSchemaVersion,
|
|
5
13
|
staticRenderManifestSchema,
|
|
6
14
|
staticRendererSchemaVersion,
|
|
7
15
|
validateStaticRenderManifest
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-XMT7VJL5.js";
|
|
17
|
+
import "./chunk-TBI5AED6.js";
|
|
18
|
+
import "./chunk-6DWVCK64.js";
|
|
11
19
|
export {
|
|
12
20
|
createRenderManifest,
|
|
13
21
|
hashRenderManifest,
|
|
14
22
|
hashStaticSceneRequest,
|
|
23
|
+
staticAttributionEntrySchema,
|
|
24
|
+
staticAttributionLimits,
|
|
25
|
+
staticAttributionPlanSchema,
|
|
26
|
+
staticAttributionPlanSchemaVersion,
|
|
27
|
+
staticAttributionProvenanceSchema,
|
|
28
|
+
staticAttributionSegmentSchema,
|
|
29
|
+
staticRenderCompositionSchema,
|
|
30
|
+
staticRenderCompositionSchemaVersion,
|
|
15
31
|
staticRenderManifestSchema,
|
|
16
32
|
staticRendererSchemaVersion,
|
|
17
33
|
validateStaticRenderManifest
|
package/dist/overlays.d.ts
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { C as circleOverlaySchema, e as StaticOverlay, D as lineOverlaySchema, E as markerOverlaySchema, F as polygonOverlaySchema, G as symbolOverlaySchema } from './scene-contract-Cr6BNLz0.js';
|
|
3
|
+
export { f as StaticOverlayInput, t as staticOverlaySchema } from './scene-contract-Cr6BNLz0.js';
|
|
4
4
|
|
|
5
5
|
declare function line(input: Omit<z.input<typeof lineOverlaySchema>, 'type'>): StaticOverlay;
|
|
6
6
|
declare function circle(input: Omit<z.input<typeof circleOverlaySchema>, 'type'>): StaticOverlay;
|
|
7
7
|
declare function marker(input: Omit<z.input<typeof markerOverlaySchema>, 'type'>): StaticOverlay;
|
|
8
8
|
declare function polygon(input: Omit<z.input<typeof polygonOverlaySchema>, 'type'>): StaticOverlay;
|
|
9
|
+
declare function symbol(input: Omit<z.input<typeof symbolOverlaySchema>, 'type'>): StaticOverlay;
|
|
9
10
|
declare function compileStaticOverlays(overlays: StaticOverlay[], options?: {
|
|
10
11
|
longitudeOffsets?: readonly number[];
|
|
11
12
|
}): {
|
|
12
13
|
layers: Record<string, unknown>[];
|
|
14
|
+
placements: Record<string, "above-water" | "below-roads" | "above-roads" | "above-buildings" | "below-labels" | "above-labels">;
|
|
13
15
|
sources: Record<string, Record<string, unknown>>;
|
|
16
|
+
symbols: {
|
|
17
|
+
imageId: string;
|
|
18
|
+
overlayIndex: number;
|
|
19
|
+
}[];
|
|
14
20
|
};
|
|
15
21
|
|
|
16
|
-
export { StaticOverlay, circle, compileStaticOverlays, line, marker, polygon };
|
|
22
|
+
export { StaticOverlay, circle, compileStaticOverlays, line, marker, polygon, symbol };
|
package/dist/overlays.js
CHANGED
|
@@ -3,16 +3,18 @@ import {
|
|
|
3
3
|
compileStaticOverlays,
|
|
4
4
|
line,
|
|
5
5
|
marker,
|
|
6
|
-
polygon
|
|
7
|
-
|
|
6
|
+
polygon,
|
|
7
|
+
symbol
|
|
8
|
+
} from "./chunk-HVVIAOBE.js";
|
|
8
9
|
import {
|
|
9
10
|
staticOverlaySchema
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6DWVCK64.js";
|
|
11
12
|
export {
|
|
12
13
|
circle,
|
|
13
14
|
compileStaticOverlays,
|
|
14
15
|
line,
|
|
15
16
|
marker,
|
|
16
17
|
polygon,
|
|
17
|
-
staticOverlaySchema
|
|
18
|
+
staticOverlaySchema,
|
|
19
|
+
symbol
|
|
18
20
|
};
|