@tileflow/core 0.1.0-alpha.26 → 0.1.0-alpha.28

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.
@@ -84,7 +84,7 @@ declare const tileflowCaptureTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
84
84
  }, z.core.$strict>], "kind">;
85
85
  declare const tileflowCaptureSceneSchema: z.ZodObject<{
86
86
  map: z.ZodString;
87
- theme: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
87
+ theme: z.ZodString;
88
88
  camera: z.ZodDiscriminatedUnion<[z.ZodObject<{
89
89
  type: z.ZodLiteral<"center">;
90
90
  center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
package/dist/capture.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export { N as NormalizedTileflowCaptureScene, a as TileflowCaptureApplicationTarget, b as TileflowCaptureBoundsCamera, c as TileflowCaptureCamera, d as TileflowCaptureCenterCamera, e as TileflowCaptureMapTarget, T as TileflowCaptureScene, f as TileflowCaptureTarget, g as TileflowCaptureViewport, n as normalizeTileflowCaptureId, h as normalizeTileflowCaptureScene, t as tileflowCaptureApplicationTargetSchema, i as tileflowCaptureBoundsCameraSchema, j as tileflowCaptureCameraSchema, k as tileflowCaptureCenterCameraSchema, l as tileflowCaptureIdSchema, m as tileflowCaptureMapTargetSchema, o as tileflowCaptureSceneLimits, p as tileflowCaptureSceneNameSchema, q as tileflowCaptureSceneSchema, r as tileflowCaptureSceneSchemaVersion, s as tileflowCaptureTargetSchema, u as tileflowCaptureViewportSchema } from './capture-scene-BK_0J2oR.js';
1
+ export { N as NormalizedTileflowCaptureScene, a as TileflowCaptureApplicationTarget, b as TileflowCaptureBoundsCamera, c as TileflowCaptureCamera, d as TileflowCaptureCenterCamera, e as TileflowCaptureMapTarget, T as TileflowCaptureScene, f as TileflowCaptureTarget, g as TileflowCaptureViewport, n as normalizeTileflowCaptureId, h as normalizeTileflowCaptureScene, t as tileflowCaptureApplicationTargetSchema, i as tileflowCaptureBoundsCameraSchema, j as tileflowCaptureCameraSchema, k as tileflowCaptureCenterCameraSchema, l as tileflowCaptureIdSchema, m as tileflowCaptureMapTargetSchema, o as tileflowCaptureSceneLimits, p as tileflowCaptureSceneNameSchema, q as tileflowCaptureSceneSchema, r as tileflowCaptureSceneSchemaVersion, s as tileflowCaptureTargetSchema, u as tileflowCaptureViewportSchema } from './capture-scene-D6soWztE.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  /** Canonical, filesystem-safe identity shared by authored and emitted Tileflow resources. */
5
5
  declare const tileflowPortableIdSchema: z.ZodString;
6
6
  /** A concrete compiled theme identity. `system` exists only as a browser-side selector. */
7
- declare const tileflowThemeNameSchema: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
7
+ declare const tileflowThemeNameSchema: z.ZodString;
8
8
 
9
9
  export { tileflowPortableIdSchema, tileflowThemeNameSchema };
package/dist/capture.js CHANGED
@@ -1,8 +1,61 @@
1
1
  // src/capture-scene.ts
2
+ import { z as z3 } from "zod";
3
+
4
+ // src/manifest-schema-classic.ts
2
5
  import { z as z2 } from "zod";
3
6
 
4
- // src/portable-identity.ts
7
+ // src/native-zod-object.ts
5
8
  import { z } from "zod";
9
+ function strictNativeObject(shape) {
10
+ const object = new z.core.$ZodObject({
11
+ type: "object",
12
+ shape,
13
+ catchall: z.never()
14
+ });
15
+ return z.lazy(() => object);
16
+ }
17
+
18
+ // src/manifest-schema-classic.ts
19
+ function classic(schema) {
20
+ return schema;
21
+ }
22
+ var classicManifestStringOperations = {
23
+ string: () => z2.string(),
24
+ minLength(schema, minimum) {
25
+ return schema.min(
26
+ minimum
27
+ );
28
+ },
29
+ maxLength(schema, maximum) {
30
+ return schema.max(
31
+ maximum
32
+ );
33
+ },
34
+ regex: (schema, pattern, message) => schema.regex(pattern, { message }),
35
+ refine: (schema, check, message) => classic(schema).refine(check, message)
36
+ };
37
+ var classicManifestSchemaOperations = {
38
+ ...classicManifestStringOperations,
39
+ number: (minimum, maximum) => z2.number().finite().min(minimum).max(maximum),
40
+ unknown: () => z2.unknown(),
41
+ optional: (schema) => classic(schema).optional(),
42
+ array: (schema) => z2.array(classic(schema)),
43
+ enum(values) {
44
+ return z2.enum(values);
45
+ },
46
+ literal: (value) => z2.literal(value),
47
+ tuplePair(left, right) {
48
+ return z2.tuple([classic(left), classic(right)]);
49
+ },
50
+ object(shape) {
51
+ return strictNativeObject(shape);
52
+ },
53
+ record(key, value) {
54
+ return z2.record(classic(key), classic(value));
55
+ },
56
+ superRefine: (schema, check) => classic(schema).superRefine(check),
57
+ pipe: (input, output) => classic(input).pipe(classic(output))
58
+ };
6
59
 
7
60
  // src/portable-identity-rules.ts
8
61
  var tileflowPortableIdMaximumLength = 64;
@@ -14,17 +67,34 @@ function isTileflowThemeName(value) {
14
67
  return isTileflowPortableId(value) && value !== "system";
15
68
  }
16
69
 
70
+ // src/portable-identity-schema.ts
71
+ function createPortableIdentitySchemas(operations) {
72
+ const bounded = operations.maxLength(
73
+ operations.minLength(operations.string(), 1),
74
+ tileflowPortableIdMaximumLength
75
+ );
76
+ const pattern = operations.regex(
77
+ bounded,
78
+ tileflowPortableIdPattern,
79
+ "Expected lowercase kebab-case beginning with a letter"
80
+ );
81
+ const tileflowPortableIdSchema2 = operations.refine(
82
+ pattern,
83
+ (name) => !["constructor", "prototype"].includes(name) && !/^(?:AUX|CON|NUL|PRN|COM[1-9]|LPT[1-9])$/i.test(name),
84
+ "Expected a portable identifier that is not a reserved filename or prototype key"
85
+ );
86
+ const tileflowThemeNameSchema2 = operations.refine(
87
+ tileflowPortableIdSchema2,
88
+ isTileflowThemeName,
89
+ "Expected a concrete theme name; system is browser-only"
90
+ );
91
+ return { tileflowPortableIdSchema: tileflowPortableIdSchema2, tileflowThemeNameSchema: tileflowThemeNameSchema2 };
92
+ }
93
+
17
94
  // src/portable-identity.ts
18
- var tileflowPortableIdSchema = z.string().min(1).max(tileflowPortableIdMaximumLength).regex(tileflowPortableIdPattern, {
19
- message: "Expected lowercase kebab-case beginning with a letter"
20
- }).refine(
21
- (name) => !["constructor", "prototype"].includes(name) && !/^(?:AUX|CON|NUL|PRN|COM[1-9]|LPT[1-9])$/i.test(name),
22
- "Expected a portable identifier that is not a reserved filename or prototype key"
23
- );
24
- var tileflowThemeNameSchema = tileflowPortableIdSchema.refine(
25
- isTileflowThemeName,
26
- "Expected a concrete theme name; system is browser-only"
27
- );
95
+ var schemas = createPortableIdentitySchemas(classicManifestStringOperations);
96
+ var tileflowPortableIdSchema = schemas.tileflowPortableIdSchema;
97
+ var tileflowThemeNameSchema = schemas.tileflowThemeNameSchema;
28
98
 
29
99
  // src/capture-scene.ts
30
100
  var tileflowCaptureSceneSchemaVersion = 1;
@@ -38,26 +108,26 @@ var tileflowCaptureSceneLimits = Object.freeze({
38
108
  viewport: { maximum: 4096, minimum: 64 },
39
109
  zoom: { maximum: 24, minimum: 0 }
40
110
  });
41
- var finiteLongitudeSchema = z2.number().finite().min(-180).max(180);
42
- var finiteLatitudeSchema = z2.number().finite().min(-90).max(90);
43
- var bearingSchema = z2.number().finite().min(-180).max(180).optional();
44
- var pitchSchema = z2.number().finite().min(tileflowCaptureSceneLimits.pitch.minimum).max(tileflowCaptureSceneLimits.pitch.maximum).optional();
45
- var tileflowCaptureCenterCameraSchema = z2.object({
46
- type: z2.literal("center"),
47
- center: z2.tuple([finiteLongitudeSchema, finiteLatitudeSchema]),
48
- zoom: z2.number().finite().min(tileflowCaptureSceneLimits.zoom.minimum).max(tileflowCaptureSceneLimits.zoom.maximum),
111
+ var finiteLongitudeSchema = z3.number().finite().min(-180).max(180);
112
+ var finiteLatitudeSchema = z3.number().finite().min(-90).max(90);
113
+ var bearingSchema = z3.number().finite().min(-180).max(180).optional();
114
+ var pitchSchema = z3.number().finite().min(tileflowCaptureSceneLimits.pitch.minimum).max(tileflowCaptureSceneLimits.pitch.maximum).optional();
115
+ var tileflowCaptureCenterCameraSchema = z3.object({
116
+ type: z3.literal("center"),
117
+ center: z3.tuple([finiteLongitudeSchema, finiteLatitudeSchema]),
118
+ zoom: z3.number().finite().min(tileflowCaptureSceneLimits.zoom.minimum).max(tileflowCaptureSceneLimits.zoom.maximum),
49
119
  bearing: bearingSchema,
50
120
  pitch: pitchSchema
51
121
  }).strict();
52
- var tileflowCaptureBoundsCameraSchema = z2.object({
53
- type: z2.literal("bounds"),
54
- bounds: z2.tuple([
122
+ var tileflowCaptureBoundsCameraSchema = z3.object({
123
+ type: z3.literal("bounds"),
124
+ bounds: z3.tuple([
55
125
  finiteLongitudeSchema,
56
126
  finiteLatitudeSchema,
57
127
  finiteLongitudeSchema,
58
128
  finiteLatitudeSchema
59
129
  ]),
60
- padding: z2.number().finite().min(tileflowCaptureSceneLimits.boundsPadding.minimum).max(tileflowCaptureSceneLimits.boundsPadding.maximum).optional(),
130
+ padding: z3.number().finite().min(tileflowCaptureSceneLimits.boundsPadding.minimum).max(tileflowCaptureSceneLimits.boundsPadding.maximum).optional(),
61
131
  bearing: bearingSchema,
62
132
  pitch: pitchSchema
63
133
  }).strict().superRefine((camera, context) => {
@@ -77,14 +147,14 @@ var tileflowCaptureBoundsCameraSchema = z2.object({
77
147
  });
78
148
  }
79
149
  });
80
- var tileflowCaptureCameraSchema = z2.discriminatedUnion("type", [
150
+ var tileflowCaptureCameraSchema = z3.discriminatedUnion("type", [
81
151
  tileflowCaptureCenterCameraSchema,
82
152
  tileflowCaptureBoundsCameraSchema
83
153
  ]);
84
- var tileflowCaptureViewportSchema = z2.object({
85
- width: z2.number().int().min(tileflowCaptureSceneLimits.viewport.minimum).max(tileflowCaptureSceneLimits.viewport.maximum),
86
- height: z2.number().int().min(tileflowCaptureSceneLimits.viewport.minimum).max(tileflowCaptureSceneLimits.viewport.maximum),
87
- dpr: z2.union([z2.literal(1), z2.literal(2)]).optional()
154
+ var tileflowCaptureViewportSchema = z3.object({
155
+ width: z3.number().int().min(tileflowCaptureSceneLimits.viewport.minimum).max(tileflowCaptureSceneLimits.viewport.maximum),
156
+ height: z3.number().int().min(tileflowCaptureSceneLimits.viewport.minimum).max(tileflowCaptureSceneLimits.viewport.maximum),
157
+ dpr: z3.union([z3.literal(1), z3.literal(2)]).optional()
88
158
  }).strict().superRefine((viewport, context) => {
89
159
  const dpr = viewport.dpr ?? 1;
90
160
  const physicalWidth = viewport.width * dpr;
@@ -98,22 +168,22 @@ var tileflowCaptureViewportSchema = z2.object({
98
168
  });
99
169
  }
100
170
  });
101
- var tileflowCaptureIdSchema = z2.string().min(1).max(tileflowCaptureSceneLimits.captureIdLength).regex(/^[A-Za-z0-9_-]+$/, {
171
+ var tileflowCaptureIdSchema = z3.string().min(1).max(tileflowCaptureSceneLimits.captureIdLength).regex(/^[A-Za-z0-9_-]+$/, {
102
172
  message: "Expected letters, numbers, underscores, or hyphens"
103
173
  }).refine((name) => name !== "__proto__", {
104
174
  message: "Expected an identifier that cannot mutate an object prototype"
105
175
  });
106
176
  var tileflowCaptureSceneNameSchema = tileflowPortableIdSchema;
107
- var applicationPathSchema = z2.string().min(1).max(tileflowCaptureSceneLimits.applicationPathLength).refine(isPortableApplicationPath, {
177
+ var applicationPathSchema = z3.string().min(1).max(tileflowCaptureSceneLimits.applicationPathLength).refine(isPortableApplicationPath, {
108
178
  message: "Expected a root-relative application path without an origin, credentials, fragment, backslash, or control character"
109
179
  });
110
- var tileflowCaptureMapTargetSchema = z2.object({ kind: z2.literal("map") }).strict();
111
- var tileflowCaptureApplicationTargetSchema = z2.object({
112
- kind: z2.literal("application"),
180
+ var tileflowCaptureMapTargetSchema = z3.object({ kind: z3.literal("map") }).strict();
181
+ var tileflowCaptureApplicationTargetSchema = z3.object({
182
+ kind: z3.literal("application"),
113
183
  path: applicationPathSchema,
114
184
  captureId: tileflowCaptureIdSchema.optional(),
115
- selector: z2.string().trim().min(1).max(tileflowCaptureSceneLimits.selectorLength).optional(),
116
- frame: z2.enum(["map", "viewport"]).optional()
185
+ selector: z3.string().trim().min(1).max(tileflowCaptureSceneLimits.selectorLength).optional(),
186
+ frame: z3.enum(["map", "viewport"]).optional()
117
187
  }).strict().superRefine((target, context) => {
118
188
  if (target.captureId && target.selector) {
119
189
  context.addIssue({
@@ -123,11 +193,11 @@ var tileflowCaptureApplicationTargetSchema = z2.object({
123
193
  });
124
194
  }
125
195
  });
126
- var tileflowCaptureTargetSchema = z2.discriminatedUnion("kind", [
196
+ var tileflowCaptureTargetSchema = z3.discriminatedUnion("kind", [
127
197
  tileflowCaptureMapTargetSchema,
128
198
  tileflowCaptureApplicationTargetSchema
129
199
  ]);
130
- var tileflowCaptureSceneSchema = z2.object({
200
+ var tileflowCaptureSceneSchema = z3.object({
131
201
  map: tileflowPortableIdSchema,
132
202
  theme: tileflowThemeNameSchema,
133
203
  camera: tileflowCaptureCameraSchema,
@@ -1,7 +1,7 @@
1
- import { j as TileflowSymbolStyle, u as TileflowAreaStyle, S as TileflowLineStackStyle, i as TileflowLineStyle, g as TileflowExtrusionStyle, e as TileflowBackgroundStyle, h as TileflowFillStyle, Z as TileflowMarkerSymbolStyle, f as TileflowCircleStyle, b3 as TileflowThemeColorValue, b6 as TileflowThemeNumberValue, aV as TileflowTerrainHillshadeStyle, aU as TileflowTerrainEncoding, b4 as TileflowThemeFontValue, b5 as TileflowThemeImageValue, bR as TileflowTypographyStyle, L as TileflowLight, bS as ResolvedTileflowTypography, n as TileflowLabelsModuleConfig, p as TileflowPoiModuleConfig, l as TileflowRoadsModuleConfig, a7 as TileflowProjection, aP as TileflowTerrain, ba as TileflowViewConfig, M as MapLibreStyle, be as ValidationResult } from './manifest-B5GKVMFE.js';
1
+ import { o as TileflowSymbolStyle, A as TileflowAreaStyle, _ as TileflowLineStackStyle, n as TileflowLineStyle, l as TileflowExtrusionStyle, j as TileflowBackgroundStyle, m as TileflowFillStyle, a3 as TileflowMarkerSymbolStyle, k as TileflowCircleStyle, b5 as TileflowThemeColorValue, b8 as TileflowThemeNumberValue, aX as TileflowTerrainHillshadeStyle, aW as TileflowTerrainEncoding, b6 as TileflowThemeFontValue, b7 as TileflowThemeImageValue, bO as TileflowTypographyStyle, S as TileflowLight, bP as ResolvedTileflowTypography, s as TileflowLabelsModuleConfig, v as TileflowPoiModuleConfig, q as TileflowRoadsModuleConfig, ad as TileflowProjection, aR as TileflowTerrain, bc as TileflowViewConfig, M as MapLibreStyle, bg as ValidationResult } from './manifest-types-BdGjIYy-.js';
2
2
  import * as zod from 'zod';
3
3
  import { z } from 'zod';
4
- import { T as TileflowCaptureScene } from './capture-scene-BK_0J2oR.js';
4
+ import { T as TileflowCaptureScene } from './capture-scene-D6soWztE.js';
5
5
 
6
6
  type TileflowAddressesModuleOptions = {
7
7
  /** Styling for OpenMapTiles point house-number labels. */
@@ -625,7 +625,7 @@ declare function resolveMarine(marine: TileflowMarine | undefined, apiBaseUrl?:
625
625
 
626
626
  type TileflowVisualValueCategory = 'color' | 'font' | 'image' | 'number';
627
627
  /** Return the semantic theme category for one visual property, or undefined for structure/data. */
628
- declare function classifyTileflowVisualProperty(property: string, value?: unknown): TileflowVisualValueCategory | undefined;
628
+ declare function classifyTileflowVisualProperty(property: string, _value?: unknown): TileflowVisualValueCategory | undefined;
629
629
 
630
630
  type TileflowThemeColorScheme = 'dark' | 'light';
631
631
  type TileflowThemeName = string;
@@ -1136,8 +1136,59 @@ type TileflowCompilationFailure = Readonly<{
1136
1136
  type TileflowCompilationResult = TileflowCompilationFailure | TileflowCompilationSuccess;
1137
1137
  declare function isTileflowCompilationPhase(value: unknown): value is TileflowCompilationPhase;
1138
1138
 
1139
+ declare const tileflowIconAppearanceSchema: z.ZodObject<{
1140
+ representation: z.ZodLiteral<"sdf">;
1141
+ defaults: z.ZodObject<{
1142
+ color: z.ZodString;
1143
+ haloColor: z.ZodString;
1144
+ haloWidth: z.ZodNumber;
1145
+ haloBlur: z.ZodNumber;
1146
+ }, z.core.$strict>;
1147
+ }, z.core.$strict>;
1148
+ /** Absent metadata denotes unchanged fixed-color RGBA artwork. */
1149
+ type TileflowIconAppearance = z.infer<typeof tileflowIconAppearanceSchema>;
1150
+ /** Verify the generated representation from decoded pixels, independently of its declaration. */
1151
+ declare function assertTileflowSdfPixels(input: {
1152
+ rgba: Uint8Array;
1153
+ width: number;
1154
+ height: number;
1155
+ pixelRatio: 1 | 2;
1156
+ }): void;
1157
+ declare const tileflowIconMetadataFileName = "tileflow.icons.json";
1158
+ declare const tileflowIconAuthorMetadataSchema: z.ZodObject<{
1159
+ schemaVersion: z.ZodLiteral<1>;
1160
+ icons: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1161
+ representation: z.ZodLiteral<"rgba">;
1162
+ layout: z.ZodOptional<z.ZodObject<{
1163
+ stretchX: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1164
+ stretchY: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1165
+ content: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
1166
+ }, z.core.$strict>>;
1167
+ }, z.core.$strict>, z.ZodObject<{
1168
+ representation: z.ZodLiteral<"sdf">;
1169
+ layout: z.ZodOptional<z.ZodObject<{
1170
+ stretchX: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1171
+ stretchY: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1172
+ content: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
1173
+ }, z.core.$strict>>;
1174
+ defaults: z.ZodObject<{
1175
+ color: z.ZodString;
1176
+ haloColor: z.ZodDefault<z.ZodString>;
1177
+ haloWidth: z.ZodDefault<z.ZodNumber>;
1178
+ haloBlur: z.ZodDefault<z.ZodNumber>;
1179
+ }, z.core.$strict>;
1180
+ }, z.core.$strict>]>>;
1181
+ }, z.core.$strict>;
1182
+
1183
+ type TileflowPreparedIconCapabilities = {
1184
+ ids: readonly string[];
1185
+ appearances?: Readonly<Record<string, TileflowIconAppearance>>;
1186
+ };
1187
+ /** Admit a compiled style without repairing or changing its signed paint. */
1188
+ declare function validateTileflowCompiledIconCapabilities(style: MapLibreStyle, icons: TileflowPreparedIconCapabilities): void;
1189
+
1139
1190
  type TileflowPreparedMapAssets = {
1140
- icons?: {
1191
+ icons?: TileflowPreparedIconCapabilities & {
1141
1192
  ids: readonly string[];
1142
1193
  sprite: string;
1143
1194
  };
@@ -1175,6 +1226,20 @@ declare const tileflowIconCompositionMaximumBytes: number;
1175
1226
  declare const tileflowRenderedIconIdentitySchema: z.ZodObject<{
1176
1227
  kind: z.ZodLiteral<"rendered-icon">;
1177
1228
  id: z.ZodString;
1229
+ appearance: z.ZodOptional<z.ZodObject<{
1230
+ representation: z.ZodLiteral<"sdf">;
1231
+ defaults: z.ZodObject<{
1232
+ color: z.ZodString;
1233
+ haloColor: z.ZodString;
1234
+ haloWidth: z.ZodNumber;
1235
+ haloBlur: z.ZodNumber;
1236
+ }, z.core.$strict>;
1237
+ }, z.core.$strict>>;
1238
+ layout: z.ZodOptional<z.ZodObject<{
1239
+ stretchX: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1240
+ stretchY: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1241
+ content: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
1242
+ }, z.core.$strict>>;
1178
1243
  width: z.ZodNumber;
1179
1244
  height: z.ZodNumber;
1180
1245
  pixelSha256: z.ZodObject<{
@@ -1184,8 +1249,11 @@ declare const tileflowRenderedIconIdentitySchema: z.ZodObject<{
1184
1249
  }, z.core.$strict>;
1185
1250
  type TileflowRenderedIconIdentity = z.infer<typeof tileflowRenderedIconIdentitySchema>;
1186
1251
  declare const tileflowIconCompositionSchema: z.ZodObject<{
1187
- format: z.ZodLiteral<"tileflow-icon-composition-v1">;
1188
- compositionVersion: z.ZodLiteral<1>;
1252
+ format: z.ZodEnum<{
1253
+ 'tileflow-icon-composition-v1': "tileflow-icon-composition-v1";
1254
+ 'tileflow-icon-composition-v2': "tileflow-icon-composition-v2";
1255
+ }>;
1256
+ compositionVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
1189
1257
  packageHash: z.ZodString;
1190
1258
  contributors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1191
1259
  kind: z.ZodLiteral<"local">;
@@ -1209,6 +1277,20 @@ declare const tileflowIconCompositionSchema: z.ZodObject<{
1209
1277
  id: z.ZodString;
1210
1278
  width: z.ZodNumber;
1211
1279
  height: z.ZodNumber;
1280
+ layout: z.ZodOptional<z.ZodObject<{
1281
+ stretchX: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1282
+ stretchY: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1283
+ content: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
1284
+ }, z.core.$strict>>;
1285
+ appearance: z.ZodOptional<z.ZodObject<{
1286
+ representation: z.ZodLiteral<"sdf">;
1287
+ defaults: z.ZodObject<{
1288
+ color: z.ZodString;
1289
+ haloColor: z.ZodString;
1290
+ haloWidth: z.ZodNumber;
1291
+ haloBlur: z.ZodNumber;
1292
+ }, z.core.$strict>;
1293
+ }, z.core.$strict>>;
1212
1294
  pixelSha256: z.ZodObject<{
1213
1295
  oneX: z.ZodString;
1214
1296
  twoX: z.ZodString;
@@ -1222,4 +1304,4 @@ declare function parseTileflowIconComposition(input: unknown): TileflowIconCompo
1222
1304
  /** Dependency identity is separate from the generated artifact's content hash. */
1223
1305
  declare function hashTileflowIconComposition(input: TileflowIconCompositionV1): Promise<string>;
1224
1306
 
1225
- export { type TileflowBathymetryOptions as $, tileflowCompilationPlannerStages as A, tileflowCompilationReportSchemaVersion as B, type TileflowSemanticModuleName as C, tileflowHostedSourceLimit as D, tileflowOverlayPlacements as E, type TileflowIconSource as F, type OpenMapTilesSchema as G, type OpenMapTilesSchemaOptions as H, type ResolvedBathymetry as I, type ResolvedBathymetryRelief as J, type ResolvedMarine as K, type ResolvedMarineSource as L, type ResolvedTileflowData as M, type ResolvedTileflowTheme as N, type OpenMapTilesFieldBindings as O, type ParkLayerSemantics as P, type ResolvedTileflowThemeTokens as Q, type ResolvedTileflowMap as R, type TileflowAddressesModuleConfig as S, type TileflowRenderedIconIdentity as T, type TileflowAddressesModuleOptions as U, type TileflowAerowaysModuleConfig as V, type TileflowAerowaysModuleOptions as W, type TileflowAuthoringModules as X, type TileflowBathymetryConfig as Y, type TileflowBathymetryDemSourceIdentity as Z, type TileflowBathymetryDisplay as _, type TileflowIconCompositionV1 as a, type TileflowStandaloneMap as a$, type TileflowBathymetryReliefConfig as a0, type TileflowBoundariesModuleConfig as a1, type TileflowBoundariesModuleOptions as a2, type TileflowBuildingMode as a3, type TileflowBuildingsModuleConfig as a4, type TileflowBuildingsModuleOptions as a5, type TileflowCompilationDiagnostic as a6, type TileflowCompilationDomainReport as a7, type TileflowCompilationFailure as a8, type TileflowCompilationOptions as a9, type TileflowLandformsModuleOptions as aA, type TileflowLanduseClass as aB, type TileflowLocalDirectory as aC, type TileflowMapDesign as aD, type TileflowMapIdentity as aE, type TileflowMapLibreOverlay as aF, type TileflowMapLibreOverlayLayer as aG, type TileflowMapTooling as aH, type TileflowMarine as aI, type TileflowMarineConfig as aJ, type TileflowMarineMode as aK, type TileflowMarineSourceConfig as aL, type TileflowMarineSourceIdentity as aM, type TileflowModuleOperation as aN, type TileflowModulePatch as aO, type TileflowNauticalAreaLabelStyles as aP, type TileflowNauticalModuleConfig as aQ, type TileflowNauticalModuleOptions as aR, type TileflowOverlayCollection as aS, type TileflowOverlayPlacement as aT, type TileflowPackageDirectory as aU, type TileflowRasterDemSourceRequirementV1 as aV, type TileflowRefineOperation as aW, type TileflowRemoveOperation as aX, type TileflowReset as aY, type TileflowResolvedThemeSelection as aZ, type TileflowSemanticModules as a_, type TileflowCompilationPhase as aa, type TileflowCompilationPlannerDecision as ab, type TileflowCompilationPlannerStage as ac, type TileflowCompilationReport as ad, type TileflowCompilationResult as ae, type TileflowCompilationSuccess as af, type TileflowDataConfig as ag, type TileflowDataIdentity as ah, type TileflowDerivedMap as ai, type TileflowDisableOperation as aj, type TileflowFontDirectory as ak, type TileflowGlyphs as al, type TileflowHostedSourceCollection as am, type TileflowHostedTilesetSource as an, type TileflowHostedTilesetType as ao, type TileflowIconContributorIdentity as ap, type TileflowIconDirectory as aq, TileflowIconSetError as ar, type TileflowIconSetErrorCode as as, type TileflowIconSetReference as at, type TileflowIconSetSource as au, type TileflowLandModuleConfig as av, type TileflowLandModuleOptions as aw, type TileflowLandcoverClass as ax, type TileflowLandformClass as ay, type TileflowLandformsModuleConfig as az, type TileflowDataRequirementsV1 as b, resolveThemeValues as b$, type TileflowTheme as b0, type TileflowThemeAuditContext as b1, type TileflowThemeAuditDiagnostic as b2, TileflowThemeAuditError as b3, type TileflowThemeAuditScope as b4, type TileflowThemeColorScheme as b5, type TileflowThemeDefinition as b6, type TileflowThemeLighting as b7, type TileflowThemeName as b8, type TileflowThemeTokens as b9, classifyTileflowVisualProperty as bA, collectTileflowIconSetReferences as bB, createStyle as bC, createStyleResult as bD, defineTheme as bE, disable as bF, hashTileflowIconComposition as bG, hostedTileset as bH, iconSet as bI, isCanonicalOpenMapTilesSchema as bJ, isSafeLocalPmtilesPath as bK, isTileflowCompilationPhase as bL, isTileflowIconSetSource as bM, isTileflowLocalDirectory as bN, land as bO, landforms as bP, maplibreOverlay as bQ, nautical as bR, openMapTiles as bS, openMapTilesContractVersion as bT, parseTileflowIconComposition as bU, parseTileflowMap as bV, refine as bW, remove as bX, reset as bY, resolveMarine as bZ, resolveThemeSelection as b_, type TileflowThemeTypography as ba, type TileflowThemeTypographyStyle as bb, type TileflowTransitModuleConfig as bc, type TileflowTransitModuleOptions as bd, type TileflowTransitRailStyle as be, type TileflowVegetationMode as bf, type TileflowVegetationModuleConfig as bg, type TileflowVegetationModuleOptions as bh, type TileflowVegetationThreeDimensionalStyle as bi, type TileflowVisualValueCategory as bj, type TileflowWaterModuleConfig as bk, type TileflowWaterModuleOptions as bl, type TileflowWaterwayClass as bm, type TileflowWorldData as bn, type TileflowWorldReleaseReference as bo, type TileflowWorldSelection as bp, type TileflowWorldV1Schema as bq, type VectorTilesData as br, addresses as bs, aeroways as bt, assertTileflowMapThemeValues as bu, auditTileflowMapThemeValues as bv, auditTileflowThemeValues as bw, bathymetry as bx, boundaries as by, buildings as bz, type TileflowSourceRequirementsV1 as c, resolveTileflowData as c0, resolveTileflowTheme as c1, tileflowBathymetryDemSourceId as c2, tileflowBathymetrySourceId as c3, tileflowBathymetryV1Schema as c4, tileflowIconCompositionMaximumBytes as c5, tileflowIconCompositionSchema as c6, tileflowIconSetIdSchema as c7, tileflowIconSetPackageIdSchema as c8, tileflowIconSetReferenceSchema as c9, tileflowIconSetSourceSchema as ca, tileflowIconSetTeamIdSchema as cb, tileflowIconSetVersionIdSchema as cc, tileflowIconSourceLimit as cd, tileflowLandformClasses as ce, tileflowLocalDirectoryMaximumLength as cf, tileflowLocalDirectoryMessage as cg, tileflowMapIdSchema as ch, tileflowNauticalSourceId as ci, tileflowNauticalV1Schema as cj, tileflowPrimarySourceId as ck, tileflowRenderedIconIdentitySchema as cl, tileflowThemeLimits as cm, tileflowWorld as cn, tileflowWorldGeneration as co, tileflowWorldTileJsonUrl as cp, tileflowWorldV1Schema as cq, transit as cr, validateTileflowMap as cs, validateTileflowWorldV1Tilejson as ct, vectorTiles as cu, vegetation as cv, water as cw, type TileflowMap as d, type TileflowStyleOptions as e, type TileflowInspectedStyle as f, type TileflowPreparedMapAssets as g, type TileflowDataCompatibilityIssue as h, type TileflowDataFieldRequirement as i, type TileflowDataFieldType as j, type TileflowDataLayerRequirement as k, type TileflowObservedDataContractV1 as l, type TileflowStyleInspection as m, type TileflowStyleInspectionContribution as n, type TileflowStyleInspectionLayer as o, type TileflowStyleInspectionRenderOperation as p, collectMapLineage as q, inferTileflowDataRequirements as r, inferTileflowSourceRequirements as s, tileflowStyleInspectionSchemaVersion as t, type TileflowMapScene as u, validateTileflowDataCompatibility as v, type ResolveMapOptions as w, type TileflowLayerDomain as x, type OpenMapTilesLayerBindings as y, tileflowCompilationPhases as z };
1307
+ export { type TileflowBathymetryDisplay as $, tileflowCompilationPhases as A, tileflowCompilationPlannerStages as B, tileflowCompilationReportSchemaVersion as C, type TileflowSemanticModuleName as D, tileflowHostedSourceLimit as E, tileflowOverlayPlacements as F, type TileflowIconSource as G, type OpenMapTilesSchema as H, type OpenMapTilesSchemaOptions as I, type ResolvedBathymetry as J, type ResolvedBathymetryRelief as K, type ResolvedMarine as L, type ResolvedMarineSource as M, type ResolvedTileflowData as N, type OpenMapTilesFieldBindings as O, type ParkLayerSemantics as P, type ResolvedTileflowTheme as Q, type ResolvedTileflowMap as R, type ResolvedTileflowThemeTokens as S, type TileflowRenderedIconIdentity as T, type TileflowAddressesModuleConfig as U, type TileflowAddressesModuleOptions as V, type TileflowAerowaysModuleConfig as W, type TileflowAerowaysModuleOptions as X, type TileflowAuthoringModules as Y, type TileflowBathymetryConfig as Z, type TileflowBathymetryDemSourceIdentity as _, type TileflowIconCompositionV1 as a, type TileflowResolvedThemeSelection as a$, type TileflowBathymetryOptions as a0, type TileflowBathymetryReliefConfig as a1, type TileflowBoundariesModuleConfig as a2, type TileflowBoundariesModuleOptions as a3, type TileflowBuildingMode as a4, type TileflowBuildingsModuleConfig as a5, type TileflowBuildingsModuleOptions as a6, type TileflowCompilationDiagnostic as a7, type TileflowCompilationDomainReport as a8, type TileflowCompilationFailure as a9, type TileflowLandformsModuleConfig as aA, type TileflowLandformsModuleOptions as aB, type TileflowLanduseClass as aC, type TileflowLocalDirectory as aD, type TileflowMapDesign as aE, type TileflowMapIdentity as aF, type TileflowMapLibreOverlay as aG, type TileflowMapLibreOverlayLayer as aH, type TileflowMapTooling as aI, type TileflowMarine as aJ, type TileflowMarineConfig as aK, type TileflowMarineMode as aL, type TileflowMarineSourceConfig as aM, type TileflowMarineSourceIdentity as aN, type TileflowModuleOperation as aO, type TileflowModulePatch as aP, type TileflowNauticalAreaLabelStyles as aQ, type TileflowNauticalModuleConfig as aR, type TileflowNauticalModuleOptions as aS, type TileflowOverlayCollection as aT, type TileflowOverlayPlacement as aU, type TileflowPackageDirectory as aV, type TileflowPreparedIconCapabilities as aW, type TileflowRasterDemSourceRequirementV1 as aX, type TileflowRefineOperation as aY, type TileflowRemoveOperation as aZ, type TileflowReset as a_, type TileflowCompilationOptions as aa, type TileflowCompilationPhase as ab, type TileflowCompilationPlannerDecision as ac, type TileflowCompilationPlannerStage as ad, type TileflowCompilationReport as ae, type TileflowCompilationResult as af, type TileflowCompilationSuccess as ag, type TileflowDataConfig as ah, type TileflowDataIdentity as ai, type TileflowDerivedMap as aj, type TileflowDisableOperation as ak, type TileflowFontDirectory as al, type TileflowGlyphs as am, type TileflowHostedSourceCollection as an, type TileflowHostedTilesetSource as ao, type TileflowHostedTilesetType as ap, type TileflowIconContributorIdentity as aq, type TileflowIconDirectory as ar, TileflowIconSetError as as, type TileflowIconSetErrorCode as at, type TileflowIconSetReference as au, type TileflowIconSetSource as av, type TileflowLandModuleConfig as aw, type TileflowLandModuleOptions as ax, type TileflowLandcoverClass as ay, type TileflowLandformClass as az, type TileflowDataRequirementsV1 as b, reset as b$, type TileflowSemanticModules as b0, type TileflowStandaloneMap as b1, type TileflowTheme as b2, type TileflowThemeAuditContext as b3, type TileflowThemeAuditDiagnostic as b4, TileflowThemeAuditError as b5, type TileflowThemeAuditScope as b6, type TileflowThemeColorScheme as b7, type TileflowThemeDefinition as b8, type TileflowThemeLighting as b9, bathymetry as bA, boundaries as bB, buildings as bC, classifyTileflowVisualProperty as bD, collectTileflowIconSetReferences as bE, createStyle as bF, createStyleResult as bG, defineTheme as bH, disable as bI, hashTileflowIconComposition as bJ, hostedTileset as bK, iconSet as bL, isCanonicalOpenMapTilesSchema as bM, isSafeLocalPmtilesPath as bN, isTileflowCompilationPhase as bO, isTileflowIconSetSource as bP, isTileflowLocalDirectory as bQ, land as bR, landforms as bS, maplibreOverlay as bT, nautical as bU, openMapTiles as bV, openMapTilesContractVersion as bW, parseTileflowIconComposition as bX, parseTileflowMap as bY, refine as bZ, remove as b_, type TileflowThemeName as ba, type TileflowThemeTokens as bb, type TileflowThemeTypography as bc, type TileflowThemeTypographyStyle as bd, type TileflowTransitModuleConfig as be, type TileflowTransitModuleOptions as bf, type TileflowTransitRailStyle as bg, type TileflowVegetationMode as bh, type TileflowVegetationModuleConfig as bi, type TileflowVegetationModuleOptions as bj, type TileflowVegetationThreeDimensionalStyle as bk, type TileflowVisualValueCategory as bl, type TileflowWaterModuleConfig as bm, type TileflowWaterModuleOptions as bn, type TileflowWaterwayClass as bo, type TileflowWorldData as bp, type TileflowWorldReleaseReference as bq, type TileflowWorldSelection as br, type TileflowWorldV1Schema as bs, type VectorTilesData as bt, addresses as bu, aeroways as bv, assertTileflowMapThemeValues as bw, assertTileflowSdfPixels as bx, auditTileflowMapThemeValues as by, auditTileflowThemeValues as bz, type TileflowSourceRequirementsV1 as c, resolveMarine as c0, resolveThemeSelection as c1, resolveThemeValues as c2, resolveTileflowData as c3, resolveTileflowTheme as c4, tileflowBathymetryDemSourceId as c5, tileflowBathymetrySourceId as c6, tileflowBathymetryV1Schema as c7, tileflowIconAppearanceSchema as c8, tileflowIconAuthorMetadataSchema as c9, validateTileflowWorldV1Tilejson as cA, vectorTiles as cB, vegetation as cC, water as cD, tileflowIconCompositionMaximumBytes as ca, tileflowIconCompositionSchema as cb, tileflowIconMetadataFileName as cc, tileflowIconSetIdSchema as cd, tileflowIconSetPackageIdSchema as ce, tileflowIconSetReferenceSchema as cf, tileflowIconSetSourceSchema as cg, tileflowIconSetTeamIdSchema as ch, tileflowIconSetVersionIdSchema as ci, tileflowIconSourceLimit as cj, tileflowLandformClasses as ck, tileflowLocalDirectoryMaximumLength as cl, tileflowLocalDirectoryMessage as cm, tileflowMapIdSchema as cn, tileflowNauticalSourceId as co, tileflowNauticalV1Schema as cp, tileflowPrimarySourceId as cq, tileflowRenderedIconIdentitySchema as cr, tileflowThemeLimits as cs, tileflowWorld as ct, tileflowWorldGeneration as cu, tileflowWorldTileJsonUrl as cv, tileflowWorldV1Schema as cw, transit as cx, validateTileflowCompiledIconCapabilities as cy, validateTileflowMap as cz, type TileflowMap as d, type TileflowStyleOptions as e, type TileflowInspectedStyle as f, type TileflowPreparedMapAssets as g, type TileflowDataCompatibilityIssue as h, type TileflowDataFieldRequirement as i, type TileflowDataFieldType as j, type TileflowDataLayerRequirement as k, type TileflowObservedDataContractV1 as l, type TileflowStyleInspection as m, type TileflowStyleInspectionContribution as n, type TileflowStyleInspectionLayer as o, type TileflowStyleInspectionRenderOperation as p, collectMapLineage as q, inferTileflowDataRequirements as r, inferTileflowSourceRequirements as s, tileflowStyleInspectionSchemaVersion as t, type TileflowMapScene as u, validateTileflowDataCompatibility as v, type ResolveMapOptions as w, type TileflowIconAppearance as x, type TileflowLayerDomain as y, type OpenMapTilesLayerBindings as z };