@tileflow/static 0.1.0-alpha.22 → 0.1.0-alpha.24

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.
@@ -1,204 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const staticSceneSchemaVersion = 1;
4
- declare const MAX_OVERLAY_LATITUDE = 85.051129;
5
- declare const staticSceneLimits: {
6
- readonly maxDimension: 2048;
7
- readonly maxGeoJsonBytes: 96000;
8
- readonly maxOverlays: 24;
9
- readonly maxPathCoordinates: 2000;
10
- readonly maxPhysicalPixels: number;
11
- readonly minDimension: 64;
12
- };
13
- declare const coordinateSchema: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
14
- declare const staticMapFormatSchema: z.ZodEnum<{
15
- png: "png";
16
- jpeg: "jpeg";
17
- webp: "webp";
18
- }>;
19
- declare const staticAttributionPositionSchema: z.ZodEnum<{
20
- auto: "auto";
21
- "top-left": "top-left";
22
- "top-right": "top-right";
23
- "bottom-left": "bottom-left";
24
- "bottom-right": "bottom-right";
25
- }>;
26
- declare const staticAttributionRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
27
- mode: z.ZodOptional<z.ZodLiteral<"embedded">>;
28
- position: z.ZodOptional<z.ZodEnum<{
29
- auto: "auto";
30
- "top-left": "top-left";
31
- "top-right": "top-right";
32
- "bottom-left": "bottom-left";
33
- "bottom-right": "bottom-right";
34
- }>>;
35
- }, z.core.$strict>, z.ZodObject<{
36
- mode: z.ZodLiteral<"external">;
37
- }, z.core.$strict>]>;
38
- declare const staticPaddingSchema: z.ZodObject<{
39
- bottom: z.ZodNumber;
40
- left: z.ZodNumber;
41
- right: z.ZodNumber;
42
- top: z.ZodNumber;
43
- }, z.core.$strict>;
44
- declare const lineOverlaySchema: z.ZodObject<{
45
- color: z.ZodDefault<z.ZodString>;
46
- coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
47
- id: z.ZodOptional<z.ZodString>;
48
- opacity: z.ZodDefault<z.ZodNumber>;
49
- type: z.ZodLiteral<"line">;
50
- width: z.ZodDefault<z.ZodNumber>;
51
- }, z.core.$strip>;
52
- declare const circleOverlaySchema: z.ZodObject<{
53
- color: z.ZodDefault<z.ZodString>;
54
- coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
55
- id: z.ZodOptional<z.ZodString>;
56
- opacity: z.ZodDefault<z.ZodNumber>;
57
- radius: z.ZodDefault<z.ZodNumber>;
58
- strokeColor: z.ZodOptional<z.ZodString>;
59
- strokeWidth: z.ZodDefault<z.ZodNumber>;
60
- type: z.ZodLiteral<"circle">;
61
- }, z.core.$strip>;
62
- declare const markerOverlaySchema: z.ZodObject<{
63
- color: z.ZodDefault<z.ZodString>;
64
- coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
65
- id: z.ZodOptional<z.ZodString>;
66
- radius: z.ZodDefault<z.ZodNumber>;
67
- strokeColor: z.ZodDefault<z.ZodString>;
68
- strokeWidth: z.ZodDefault<z.ZodNumber>;
69
- type: z.ZodLiteral<"marker">;
70
- }, z.core.$strip>;
71
- declare const polygonOverlaySchema: z.ZodObject<{
72
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
73
- fill: z.ZodDefault<z.ZodString>;
74
- id: z.ZodOptional<z.ZodString>;
75
- opacity: z.ZodDefault<z.ZodNumber>;
76
- stroke: z.ZodOptional<z.ZodString>;
77
- strokeWidth: z.ZodDefault<z.ZodNumber>;
78
- type: z.ZodLiteral<"polygon">;
79
- }, z.core.$strip>;
80
- declare const staticOverlaySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
81
- color: z.ZodDefault<z.ZodString>;
82
- coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
83
- id: z.ZodOptional<z.ZodString>;
84
- opacity: z.ZodDefault<z.ZodNumber>;
85
- type: z.ZodLiteral<"line">;
86
- width: z.ZodDefault<z.ZodNumber>;
87
- }, z.core.$strip>, z.ZodObject<{
88
- color: z.ZodDefault<z.ZodString>;
89
- coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
90
- id: z.ZodOptional<z.ZodString>;
91
- opacity: z.ZodDefault<z.ZodNumber>;
92
- radius: z.ZodDefault<z.ZodNumber>;
93
- strokeColor: z.ZodOptional<z.ZodString>;
94
- strokeWidth: z.ZodDefault<z.ZodNumber>;
95
- type: z.ZodLiteral<"circle">;
96
- }, z.core.$strip>, z.ZodObject<{
97
- color: z.ZodDefault<z.ZodString>;
98
- coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
99
- id: z.ZodOptional<z.ZodString>;
100
- radius: z.ZodDefault<z.ZodNumber>;
101
- strokeColor: z.ZodDefault<z.ZodString>;
102
- strokeWidth: z.ZodDefault<z.ZodNumber>;
103
- type: z.ZodLiteral<"marker">;
104
- }, z.core.$strip>, z.ZodObject<{
105
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
106
- fill: z.ZodDefault<z.ZodString>;
107
- id: z.ZodOptional<z.ZodString>;
108
- opacity: z.ZodDefault<z.ZodNumber>;
109
- stroke: z.ZodOptional<z.ZodString>;
110
- strokeWidth: z.ZodDefault<z.ZodNumber>;
111
- type: z.ZodLiteral<"polygon">;
112
- }, z.core.$strip>], "type">;
113
- declare const staticSceneSchema: z.ZodObject<{
114
- attribution: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
115
- mode: z.ZodOptional<z.ZodLiteral<"embedded">>;
116
- position: z.ZodOptional<z.ZodEnum<{
117
- auto: "auto";
118
- "top-left": "top-left";
119
- "top-right": "top-right";
120
- "bottom-left": "bottom-left";
121
- "bottom-right": "bottom-right";
122
- }>>;
123
- }, z.core.$strict>, z.ZodObject<{
124
- mode: z.ZodLiteral<"external">;
125
- }, z.core.$strict>]>>;
126
- camera: z.ZodDiscriminatedUnion<[z.ZodObject<{
127
- bearing: z.ZodOptional<z.ZodNumber>;
128
- center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
129
- type: z.ZodLiteral<"center">;
130
- zoom: z.ZodNumber;
131
- }, z.core.$strip>, z.ZodObject<{
132
- bearing: z.ZodOptional<z.ZodNumber>;
133
- bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
134
- padding: z.ZodOptional<z.ZodNumber>;
135
- type: z.ZodLiteral<"bounds">;
136
- }, z.core.$strip>, z.ZodObject<{
137
- bearing: z.ZodOptional<z.ZodNumber>;
138
- maxZoom: z.ZodOptional<z.ZodNumber>;
139
- padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
140
- bottom: z.ZodOptional<z.ZodNumber>;
141
- left: z.ZodOptional<z.ZodNumber>;
142
- right: z.ZodOptional<z.ZodNumber>;
143
- top: z.ZodOptional<z.ZodNumber>;
144
- }, z.core.$strict>]>>;
145
- type: z.ZodLiteral<"auto">;
146
- }, z.core.$strip>], "type">;
147
- format: z.ZodOptional<z.ZodEnum<{
148
- png: "png";
149
- jpeg: "jpeg";
150
- webp: "webp";
151
- }>>;
152
- map: z.ZodString;
153
- overlays: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
154
- color: z.ZodDefault<z.ZodString>;
155
- coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
156
- id: z.ZodOptional<z.ZodString>;
157
- opacity: z.ZodDefault<z.ZodNumber>;
158
- type: z.ZodLiteral<"line">;
159
- width: z.ZodDefault<z.ZodNumber>;
160
- }, z.core.$strip>, z.ZodObject<{
161
- color: z.ZodDefault<z.ZodString>;
162
- coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
163
- id: z.ZodOptional<z.ZodString>;
164
- opacity: z.ZodDefault<z.ZodNumber>;
165
- radius: z.ZodDefault<z.ZodNumber>;
166
- strokeColor: z.ZodOptional<z.ZodString>;
167
- strokeWidth: z.ZodDefault<z.ZodNumber>;
168
- type: z.ZodLiteral<"circle">;
169
- }, z.core.$strip>, z.ZodObject<{
170
- color: z.ZodDefault<z.ZodString>;
171
- coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
172
- id: z.ZodOptional<z.ZodString>;
173
- radius: z.ZodDefault<z.ZodNumber>;
174
- strokeColor: z.ZodDefault<z.ZodString>;
175
- strokeWidth: z.ZodDefault<z.ZodNumber>;
176
- type: z.ZodLiteral<"marker">;
177
- }, z.core.$strip>, z.ZodObject<{
178
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
179
- fill: z.ZodDefault<z.ZodString>;
180
- id: z.ZodOptional<z.ZodString>;
181
- opacity: z.ZodDefault<z.ZodNumber>;
182
- stroke: z.ZodOptional<z.ZodString>;
183
- strokeWidth: z.ZodDefault<z.ZodNumber>;
184
- type: z.ZodLiteral<"polygon">;
185
- }, z.core.$strip>], "type">>>;
186
- size: z.ZodObject<{
187
- dpr: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
188
- height: z.ZodNumber;
189
- width: z.ZodNumber;
190
- }, z.core.$strip>;
191
- theme: z.ZodString;
192
- }, z.core.$strip>;
193
- type StaticCoordinate = z.infer<typeof coordinateSchema>;
194
- type StaticAttributionMode = 'embedded' | 'external';
195
- type StaticAttributionPosition = z.infer<typeof staticAttributionPositionSchema>;
196
- type StaticAttributionRequest = z.infer<typeof staticAttributionRequestSchema>;
197
- type StaticMapFormat = z.infer<typeof staticMapFormatSchema>;
198
- type StaticPadding = z.infer<typeof staticPaddingSchema>;
199
- type StaticSceneInput = z.input<typeof staticSceneSchema>;
200
- type StaticScene = z.infer<typeof staticSceneSchema>;
201
- type StaticOverlayInput = z.input<typeof staticOverlaySchema>;
202
- type StaticOverlay = z.infer<typeof staticOverlaySchema>;
203
-
204
- export { MAX_OVERLAY_LATITUDE as M, type StaticAttributionMode as S, type StaticAttributionPosition as a, type StaticAttributionRequest as b, type StaticCoordinate as c, type StaticMapFormat as d, type StaticOverlay as e, type StaticOverlayInput as f, type StaticPadding as g, type StaticScene as h, type StaticSceneInput as i, staticAttributionRequestSchema as j, staticOverlaySchema as k, staticSceneLimits as l, staticSceneSchema as m, staticSceneSchemaVersion as n, circleOverlaySchema as o, lineOverlaySchema as p, markerOverlaySchema as q, polygonOverlaySchema as r, staticAttributionPositionSchema as s };