@tileflow/static 0.1.0-alpha.3 → 0.1.0-alpha.30
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/LICENSE +201 -0
- package/README.md +286 -7
- package/dist/chunk-6DWVCK64.js +406 -0
- package/dist/chunk-ALFVZ3PC.js +600 -0
- package/dist/client.d.ts +142 -0
- package/dist/client.js +382 -0
- package/dist/errors-CSz1xaDx.d.ts +23 -0
- package/dist/manifest.d.ts +545 -0
- package/dist/manifest.js +339 -0
- package/dist/overlays.d.ts +22 -0
- package/dist/overlays.js +176 -0
- package/dist/scene-contract-NFnIcQtt.d.ts +734 -0
- package/dist/scene.d.ts +290 -0
- package/dist/scene.js +40 -0
- package/package.json +29 -12
- package/dist/index.d.ts +0 -248
- package/dist/index.js +0 -396
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { a as StaticSceneInput } from './scene-contract-NFnIcQtt.js';
|
|
3
|
+
|
|
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
|
+
"bottom-left": "bottom-left";
|
|
16
|
+
"bottom-right": "bottom-right";
|
|
17
|
+
"top-left": "top-left";
|
|
18
|
+
"top-right": "top-right";
|
|
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
|
+
"bottom-left": "bottom-left";
|
|
126
|
+
"bottom-right": "bottom-right";
|
|
127
|
+
"top-left": "top-left";
|
|
128
|
+
"top-right": "top-right";
|
|
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
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
stretchX: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
149
|
+
stretchY: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
150
|
+
content: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
151
|
+
}, z.core.$strict>>;
|
|
152
|
+
appearance: z.ZodOptional<z.ZodObject<{
|
|
153
|
+
representation: z.ZodLiteral<"sdf">;
|
|
154
|
+
defaults: z.ZodObject<{
|
|
155
|
+
color: z.ZodString;
|
|
156
|
+
haloColor: z.ZodString;
|
|
157
|
+
haloWidth: z.ZodNumber;
|
|
158
|
+
haloBlur: z.ZodNumber;
|
|
159
|
+
}, z.core.$strict>;
|
|
160
|
+
}, z.core.$strict>>;
|
|
161
|
+
height: z.ZodNumber;
|
|
162
|
+
icon: z.ZodString;
|
|
163
|
+
overlayIndex: z.ZodNumber;
|
|
164
|
+
width: z.ZodNumber;
|
|
165
|
+
}, z.core.$strict>>;
|
|
166
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
167
|
+
}, z.core.$strict>;
|
|
168
|
+
type StaticRenderComposition = z.infer<typeof staticRenderCompositionSchema>;
|
|
169
|
+
declare const staticRenderManifestSchema: z.ZodObject<{
|
|
170
|
+
attribution: z.ZodObject<{
|
|
171
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
172
|
+
authority: z.ZodEnum<{
|
|
173
|
+
"platform-notice": "platform-notice";
|
|
174
|
+
"team-declared": "team-declared";
|
|
175
|
+
}>;
|
|
176
|
+
provenance: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
177
|
+
authority: z.ZodLiteral<"platform-notice">;
|
|
178
|
+
noticeId: z.ZodString;
|
|
179
|
+
noticeSha256: z.ZodString;
|
|
180
|
+
resource: z.ZodEnum<{
|
|
181
|
+
terrain: "terrain";
|
|
182
|
+
world: "world";
|
|
183
|
+
}>;
|
|
184
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
185
|
+
sourceId: z.ZodString;
|
|
186
|
+
sourceSelectionIdentity: z.ZodString;
|
|
187
|
+
}, z.core.$strict>>;
|
|
188
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
189
|
+
authority: z.ZodLiteral<"team-declared">;
|
|
190
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
191
|
+
sourceId: z.ZodString;
|
|
192
|
+
sourceSelectionIdentity: z.ZodString;
|
|
193
|
+
mapRevision: z.ZodString;
|
|
194
|
+
resourceId: z.ZodString;
|
|
195
|
+
}, z.core.$strict>>;
|
|
196
|
+
}, z.core.$strict>], "authority">;
|
|
197
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
198
|
+
kind: z.ZodLiteral<"text">;
|
|
199
|
+
text: z.ZodString;
|
|
200
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
201
|
+
kind: z.ZodLiteral<"link">;
|
|
202
|
+
label: z.ZodString;
|
|
203
|
+
url: z.ZodString;
|
|
204
|
+
}, z.core.$strict>], "kind">>;
|
|
205
|
+
}, z.core.$strict>>;
|
|
206
|
+
mode: z.ZodEnum<{
|
|
207
|
+
embedded: "embedded";
|
|
208
|
+
external: "external";
|
|
209
|
+
}>;
|
|
210
|
+
position: z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodEnum<{
|
|
211
|
+
"bottom-left": "bottom-left";
|
|
212
|
+
"bottom-right": "bottom-right";
|
|
213
|
+
"top-left": "top-left";
|
|
214
|
+
"top-right": "top-right";
|
|
215
|
+
}>, z.ZodNull]>;
|
|
216
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
217
|
+
}, z.core.$strict>;
|
|
218
|
+
autoFit: z.ZodOptional<z.ZodObject<{
|
|
219
|
+
bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
220
|
+
longitudeOffsets: z.ZodArray<z.ZodNumber>;
|
|
221
|
+
nominalInsets: z.ZodObject<{
|
|
222
|
+
bottom: z.ZodNumber;
|
|
223
|
+
left: z.ZodNumber;
|
|
224
|
+
right: z.ZodNumber;
|
|
225
|
+
top: z.ZodNumber;
|
|
226
|
+
}, z.core.$strict>;
|
|
227
|
+
requiredInsets: z.ZodObject<{
|
|
228
|
+
bottom: z.ZodNumber;
|
|
229
|
+
left: z.ZodNumber;
|
|
230
|
+
right: z.ZodNumber;
|
|
231
|
+
top: z.ZodNumber;
|
|
232
|
+
}, z.core.$strict>;
|
|
233
|
+
}, z.core.$strict>>;
|
|
234
|
+
composition: z.ZodObject<{
|
|
235
|
+
anchors: z.ZodObject<{
|
|
236
|
+
'above-water': z.ZodNullable<z.ZodString>;
|
|
237
|
+
'below-roads': z.ZodNullable<z.ZodString>;
|
|
238
|
+
'above-roads': z.ZodNullable<z.ZodString>;
|
|
239
|
+
'above-buildings': z.ZodNullable<z.ZodString>;
|
|
240
|
+
'below-labels': z.ZodNullable<z.ZodString>;
|
|
241
|
+
'above-labels': z.ZodNull;
|
|
242
|
+
}, z.core.$strict>;
|
|
243
|
+
icons: z.ZodArray<z.ZodObject<{
|
|
244
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
245
|
+
stretchX: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
246
|
+
stretchY: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
247
|
+
content: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
248
|
+
}, z.core.$strict>>;
|
|
249
|
+
appearance: z.ZodOptional<z.ZodObject<{
|
|
250
|
+
representation: z.ZodLiteral<"sdf">;
|
|
251
|
+
defaults: z.ZodObject<{
|
|
252
|
+
color: z.ZodString;
|
|
253
|
+
haloColor: z.ZodString;
|
|
254
|
+
haloWidth: z.ZodNumber;
|
|
255
|
+
haloBlur: z.ZodNumber;
|
|
256
|
+
}, z.core.$strict>;
|
|
257
|
+
}, z.core.$strict>>;
|
|
258
|
+
height: z.ZodNumber;
|
|
259
|
+
icon: z.ZodString;
|
|
260
|
+
overlayIndex: z.ZodNumber;
|
|
261
|
+
width: z.ZodNumber;
|
|
262
|
+
}, z.core.$strict>>;
|
|
263
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
264
|
+
}, z.core.$strict>;
|
|
265
|
+
mapId: z.ZodString;
|
|
266
|
+
rendererVersion: z.ZodString;
|
|
267
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
268
|
+
scene: z.ZodObject<{
|
|
269
|
+
attribution: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
270
|
+
mode: z.ZodOptional<z.ZodLiteral<"embedded">>;
|
|
271
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
272
|
+
auto: "auto";
|
|
273
|
+
"bottom-left": "bottom-left";
|
|
274
|
+
"bottom-right": "bottom-right";
|
|
275
|
+
"top-left": "top-left";
|
|
276
|
+
"top-right": "top-right";
|
|
277
|
+
}>>;
|
|
278
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
279
|
+
mode: z.ZodLiteral<"external">;
|
|
280
|
+
}, z.core.$strict>]>>;
|
|
281
|
+
camera: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
282
|
+
bearing: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
284
|
+
type: z.ZodLiteral<"center">;
|
|
285
|
+
zoom: z.ZodNumber;
|
|
286
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
287
|
+
bearing: z.ZodOptional<z.ZodNumber>;
|
|
288
|
+
bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
289
|
+
padding: z.ZodOptional<z.ZodNumber>;
|
|
290
|
+
type: z.ZodLiteral<"bounds">;
|
|
291
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
292
|
+
bearing: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
maxZoom: z.ZodOptional<z.ZodNumber>;
|
|
294
|
+
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
295
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
296
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
298
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
299
|
+
}, z.core.$strict>]>>;
|
|
300
|
+
type: z.ZodLiteral<"auto">;
|
|
301
|
+
}, z.core.$strict>], "type">;
|
|
302
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
303
|
+
jpeg: "jpeg";
|
|
304
|
+
png: "png";
|
|
305
|
+
webp: "webp";
|
|
306
|
+
}>>;
|
|
307
|
+
map: z.ZodString;
|
|
308
|
+
overlays: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
309
|
+
color: z.ZodDefault<z.ZodString>;
|
|
310
|
+
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
311
|
+
id: z.ZodOptional<z.ZodString>;
|
|
312
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
313
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
"above-buildings": "above-buildings";
|
|
315
|
+
"above-labels": "above-labels";
|
|
316
|
+
"above-roads": "above-roads";
|
|
317
|
+
"above-water": "above-water";
|
|
318
|
+
"below-labels": "below-labels";
|
|
319
|
+
"below-roads": "below-roads";
|
|
320
|
+
}>>;
|
|
321
|
+
type: z.ZodLiteral<"line">;
|
|
322
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
323
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
324
|
+
color: z.ZodDefault<z.ZodString>;
|
|
325
|
+
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
326
|
+
id: z.ZodOptional<z.ZodString>;
|
|
327
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
328
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
329
|
+
"above-buildings": "above-buildings";
|
|
330
|
+
"above-labels": "above-labels";
|
|
331
|
+
"above-roads": "above-roads";
|
|
332
|
+
"above-water": "above-water";
|
|
333
|
+
"below-labels": "below-labels";
|
|
334
|
+
"below-roads": "below-roads";
|
|
335
|
+
}>>;
|
|
336
|
+
radius: z.ZodDefault<z.ZodNumber>;
|
|
337
|
+
strokeColor: z.ZodOptional<z.ZodString>;
|
|
338
|
+
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
339
|
+
type: z.ZodLiteral<"circle">;
|
|
340
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
341
|
+
color: z.ZodDefault<z.ZodString>;
|
|
342
|
+
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
343
|
+
id: z.ZodOptional<z.ZodString>;
|
|
344
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
345
|
+
"above-buildings": "above-buildings";
|
|
346
|
+
"above-labels": "above-labels";
|
|
347
|
+
"above-roads": "above-roads";
|
|
348
|
+
"above-water": "above-water";
|
|
349
|
+
"below-labels": "below-labels";
|
|
350
|
+
"below-roads": "below-roads";
|
|
351
|
+
}>>;
|
|
352
|
+
radius: z.ZodDefault<z.ZodNumber>;
|
|
353
|
+
strokeColor: z.ZodDefault<z.ZodString>;
|
|
354
|
+
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
355
|
+
type: z.ZodLiteral<"marker">;
|
|
356
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
357
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
358
|
+
fill: z.ZodDefault<z.ZodString>;
|
|
359
|
+
id: z.ZodOptional<z.ZodString>;
|
|
360
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
361
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
362
|
+
"above-buildings": "above-buildings";
|
|
363
|
+
"above-labels": "above-labels";
|
|
364
|
+
"above-roads": "above-roads";
|
|
365
|
+
"above-water": "above-water";
|
|
366
|
+
"below-labels": "below-labels";
|
|
367
|
+
"below-roads": "below-roads";
|
|
368
|
+
}>>;
|
|
369
|
+
stroke: z.ZodOptional<z.ZodString>;
|
|
370
|
+
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
371
|
+
type: z.ZodLiteral<"polygon">;
|
|
372
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
373
|
+
anchor: z.ZodDefault<z.ZodEnum<{
|
|
374
|
+
bottom: "bottom";
|
|
375
|
+
"bottom-left": "bottom-left";
|
|
376
|
+
"bottom-right": "bottom-right";
|
|
377
|
+
center: "center";
|
|
378
|
+
left: "left";
|
|
379
|
+
right: "right";
|
|
380
|
+
top: "top";
|
|
381
|
+
"top-left": "top-left";
|
|
382
|
+
"top-right": "top-right";
|
|
383
|
+
}>>;
|
|
384
|
+
collision: z.ZodDefault<z.ZodEnum<{
|
|
385
|
+
"always-visible": "always-visible";
|
|
386
|
+
"avoid-overlap": "avoid-overlap";
|
|
387
|
+
}>>;
|
|
388
|
+
coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
389
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
390
|
+
id: z.ZodOptional<z.ZodString>;
|
|
391
|
+
label: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
392
|
+
appearance: z.ZodLiteral<"plain">;
|
|
393
|
+
color: z.ZodDefault<z.ZodString>;
|
|
394
|
+
fontSize: z.ZodDefault<z.ZodNumber>;
|
|
395
|
+
gap: z.ZodDefault<z.ZodNumber>;
|
|
396
|
+
haloColor: z.ZodDefault<z.ZodString>;
|
|
397
|
+
haloWidth: z.ZodDefault<z.ZodNumber>;
|
|
398
|
+
language: z.ZodDefault<z.ZodEnum<{
|
|
399
|
+
ja: "ja";
|
|
400
|
+
ko: "ko";
|
|
401
|
+
"zh-Hans": "zh-Hans";
|
|
402
|
+
"zh-Hant": "zh-Hant";
|
|
403
|
+
}>>;
|
|
404
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
405
|
+
above: "above";
|
|
406
|
+
"above-left": "above-left";
|
|
407
|
+
"above-right": "above-right";
|
|
408
|
+
below: "below";
|
|
409
|
+
"below-left": "below-left";
|
|
410
|
+
"below-right": "below-right";
|
|
411
|
+
center: "center";
|
|
412
|
+
left: "left";
|
|
413
|
+
right: "right";
|
|
414
|
+
}>>;
|
|
415
|
+
text: z.ZodString;
|
|
416
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
417
|
+
appearance: z.ZodLiteral<"badge">;
|
|
418
|
+
backgroundColor: z.ZodDefault<z.ZodString>;
|
|
419
|
+
borderColor: z.ZodDefault<z.ZodString>;
|
|
420
|
+
borderRadius: z.ZodDefault<z.ZodNumber>;
|
|
421
|
+
borderWidth: z.ZodDefault<z.ZodNumber>;
|
|
422
|
+
color: z.ZodDefault<z.ZodString>;
|
|
423
|
+
fontSize: z.ZodDefault<z.ZodNumber>;
|
|
424
|
+
gap: z.ZodDefault<z.ZodNumber>;
|
|
425
|
+
language: z.ZodDefault<z.ZodEnum<{
|
|
426
|
+
ja: "ja";
|
|
427
|
+
ko: "ko";
|
|
428
|
+
"zh-Hans": "zh-Hans";
|
|
429
|
+
"zh-Hant": "zh-Hant";
|
|
430
|
+
}>>;
|
|
431
|
+
padding: z.ZodDefault<z.ZodObject<{
|
|
432
|
+
x: z.ZodDefault<z.ZodNumber>;
|
|
433
|
+
y: z.ZodDefault<z.ZodNumber>;
|
|
434
|
+
}, z.core.$strict>>;
|
|
435
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
436
|
+
above: "above";
|
|
437
|
+
"above-left": "above-left";
|
|
438
|
+
"above-right": "above-right";
|
|
439
|
+
below: "below";
|
|
440
|
+
"below-left": "below-left";
|
|
441
|
+
"below-right": "below-right";
|
|
442
|
+
center: "center";
|
|
443
|
+
left: "left";
|
|
444
|
+
right: "right";
|
|
445
|
+
}>>;
|
|
446
|
+
text: z.ZodString;
|
|
447
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
448
|
+
appearance: "plain";
|
|
449
|
+
color: string;
|
|
450
|
+
fontSize: number;
|
|
451
|
+
gap: number;
|
|
452
|
+
haloColor: string;
|
|
453
|
+
haloWidth: number;
|
|
454
|
+
language: "ja" | "ko" | "zh-Hans" | "zh-Hant";
|
|
455
|
+
position?: "above" | "above-left" | "above-right" | "below" | "below-left" | "below-right" | "center" | "left" | "right" | undefined;
|
|
456
|
+
text: string;
|
|
457
|
+
} | {
|
|
458
|
+
appearance: "badge";
|
|
459
|
+
backgroundColor: string;
|
|
460
|
+
borderColor: string;
|
|
461
|
+
borderRadius: number;
|
|
462
|
+
borderWidth: number;
|
|
463
|
+
color: string;
|
|
464
|
+
fontSize: number;
|
|
465
|
+
gap: number;
|
|
466
|
+
language: "ja" | "ko" | "zh-Hans" | "zh-Hant";
|
|
467
|
+
padding: {
|
|
468
|
+
x: number;
|
|
469
|
+
y: number;
|
|
470
|
+
};
|
|
471
|
+
position?: "above" | "above-left" | "above-right" | "below" | "below-left" | "below-right" | "center" | "left" | "right" | undefined;
|
|
472
|
+
text: string;
|
|
473
|
+
}, string | {
|
|
474
|
+
appearance: "plain";
|
|
475
|
+
color: string;
|
|
476
|
+
fontSize: number;
|
|
477
|
+
gap: number;
|
|
478
|
+
haloColor: string;
|
|
479
|
+
haloWidth: number;
|
|
480
|
+
language: "ja" | "ko" | "zh-Hans" | "zh-Hant";
|
|
481
|
+
position?: "above" | "above-left" | "above-right" | "below" | "below-left" | "below-right" | "center" | "left" | "right" | undefined;
|
|
482
|
+
text: string;
|
|
483
|
+
} | {
|
|
484
|
+
appearance: "badge";
|
|
485
|
+
backgroundColor: string;
|
|
486
|
+
borderColor: string;
|
|
487
|
+
borderRadius: number;
|
|
488
|
+
borderWidth: number;
|
|
489
|
+
color: string;
|
|
490
|
+
fontSize: number;
|
|
491
|
+
gap: number;
|
|
492
|
+
language: "ja" | "ko" | "zh-Hans" | "zh-Hant";
|
|
493
|
+
padding: {
|
|
494
|
+
x: number;
|
|
495
|
+
y: number;
|
|
496
|
+
};
|
|
497
|
+
position?: "above" | "above-left" | "above-right" | "below" | "below-left" | "below-right" | "center" | "left" | "right" | undefined;
|
|
498
|
+
text: string;
|
|
499
|
+
}>>>;
|
|
500
|
+
offset: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
501
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
502
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
503
|
+
"above-buildings": "above-buildings";
|
|
504
|
+
"above-labels": "above-labels";
|
|
505
|
+
"above-roads": "above-roads";
|
|
506
|
+
"above-water": "above-water";
|
|
507
|
+
"below-labels": "below-labels";
|
|
508
|
+
"below-roads": "below-roads";
|
|
509
|
+
}>>;
|
|
510
|
+
scale: z.ZodDefault<z.ZodNumber>;
|
|
511
|
+
type: z.ZodLiteral<"symbol">;
|
|
512
|
+
}, z.core.$strict>], "type">>>;
|
|
513
|
+
size: z.ZodObject<{
|
|
514
|
+
dpr: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
515
|
+
height: z.ZodNumber;
|
|
516
|
+
width: z.ZodNumber;
|
|
517
|
+
}, z.core.$strict>;
|
|
518
|
+
theme: z.ZodString;
|
|
519
|
+
}, z.core.$strict>;
|
|
520
|
+
styleId: z.ZodOptional<z.ZodString>;
|
|
521
|
+
styleRevision: z.ZodString;
|
|
522
|
+
styleUrl: z.ZodString;
|
|
523
|
+
}, z.core.$strict>;
|
|
524
|
+
type StaticRenderManifest = z.infer<typeof staticRenderManifestSchema>;
|
|
525
|
+
declare function validateStaticRenderManifest(input: unknown): {
|
|
526
|
+
manifest: StaticRenderManifest;
|
|
527
|
+
ok: true;
|
|
528
|
+
} | {
|
|
529
|
+
error: string;
|
|
530
|
+
ok: false;
|
|
531
|
+
};
|
|
532
|
+
declare function createRenderManifest(input: {
|
|
533
|
+
attribution: StaticAttributionPlan;
|
|
534
|
+
composition: StaticRenderComposition;
|
|
535
|
+
mapId: string;
|
|
536
|
+
rendererVersion: string;
|
|
537
|
+
scene: StaticSceneInput;
|
|
538
|
+
styleId?: string;
|
|
539
|
+
styleRevision: string;
|
|
540
|
+
styleUrl: string;
|
|
541
|
+
}): StaticRenderManifest;
|
|
542
|
+
declare function hashRenderManifest(manifest: StaticRenderManifest): Promise<string>;
|
|
543
|
+
declare function hashStaticSceneRequest(scene: StaticSceneInput): Promise<string>;
|
|
544
|
+
|
|
545
|
+
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 };
|