@tileflow/core 0.1.0-alpha.40 → 0.1.0-alpha.41

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/dist/build.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { T as TileflowCaptureScene, a as TileflowCaptureShot } from './capture-shot-ChPQvPyi.js';
2
- import { T as TileflowRenderedIconIdentity, a as TileflowIconCompositionV1, R as ResolvedTileflowMap, b as TileflowDataRequirementsV1, c as TileflowSourceRequirementsV1, d as TileflowMap, e as TileflowStyleOptions, f as TileflowInspectedStyle, g as TileflowPreparedMapAssets } from './icon-composition-CcSHApUm.js';
3
- export { h as TileflowDataCompatibilityIssue, i as TileflowDataFieldRequirement, j as TileflowDataFieldType, k as TileflowDataLayerRequirement, l as TileflowObservedDataContractV1, m as TileflowStyleInspection, n as TileflowStyleInspectionContribution, o as TileflowStyleInspectionLayer, p as TileflowStyleInspectionRenderOperation, q as collectMapLineage, r as inferTileflowDataRequirements, s as inferTileflowSourceRequirements, t as tileflowStyleInspectionSchemaVersion, v as validateTileflowDataCompatibility } from './icon-composition-CcSHApUm.js';
2
+ import { T as TileflowRenderedIconIdentity, a as TileflowIconCompositionV1, R as ResolvedTileflowMap, b as TileflowDataRequirementsV1, c as TileflowSourceRequirementsV1, d as TileflowMap, e as TileflowStyleOptions, f as TileflowInspectedStyle, g as TileflowPreparedMapAssets } from './icon-composition-HUh_Lj8Z.js';
3
+ export { h as TileflowDataCompatibilityIssue, i as TileflowDataFieldRequirement, j as TileflowDataFieldType, k as TileflowDataLayerRequirement, l as TileflowObservedDataContractV1, m as TileflowStyleInspection, n as TileflowStyleInspectionContribution, o as TileflowStyleInspectionLayer, p as TileflowStyleInspectionRenderOperation, q as collectMapLineage, r as inferTileflowDataRequirements, s as inferTileflowSourceRequirements, t as tileflowStyleInspectionSchemaVersion, v as validateTileflowDataCompatibility } from './icon-composition-HUh_Lj8Z.js';
4
4
  import { M as MapLibreStyle, f as TileflowTimeOfDayVariants, T as TileflowRuntimeManifest } from './manifest-types-DnhSJjCM.js';
5
5
  import { z } from 'zod';
6
6
 
package/dist/build.js CHANGED
@@ -10898,6 +10898,12 @@ var tileflowModelParts = Object.freeze({
10898
10898
  accent: 3,
10899
10899
  roof: 4
10900
10900
  });
10901
+ var tileflowModelArchitecturalPartNames = Object.freeze(
10902
+ Object.keys(tileflowModelParts)
10903
+ );
10904
+ function isTileflowModelPartName(value) {
10905
+ return typeof value === "string" && value.length <= 32 && /^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$/u.test(value);
10906
+ }
10901
10907
  var tileflowModelLightingRoles = Object.freeze({
10902
10908
  unclassified: 0,
10903
10909
  wall: 1,
@@ -10907,7 +10913,6 @@ var tileflowModelLightingRoles = Object.freeze({
10907
10913
  lamp: 5,
10908
10914
  logo: 6
10909
10915
  });
10910
- var tileflowModelDefaultLightingRoles = Object.freeze([1, 1, 4, 1, 3]);
10911
10916
  var tileflowModelLimits = Object.freeze({
10912
10917
  /** Levels of detail, nearest first. */
10913
10918
  levels: 3,
@@ -10924,7 +10929,9 @@ var tileflowModelLimits = Object.freeze({
10924
10929
  /** Models in one prepared file, as a landmark tile holds them. */
10925
10930
  models: 512,
10926
10931
  /** Bytes of one prepared file. */
10927
- bytes: 16 * 1024 * 1024
10932
+ bytes: 16 * 1024 * 1024,
10933
+ /** Differently named parts of one level. */
10934
+ parts: 16
10928
10935
  });
10929
10936
 
10930
10937
  // src/building-illumination.ts
@@ -14453,13 +14460,14 @@ var buildingsModuleSchema = z5.object({
14453
14460
  }).optional()
14454
14461
  }).strict()
14455
14462
  ).max(256).optional(),
14456
- modelColors: z5.object({
14457
- surface: themeColorValueSchema.optional(),
14458
- secondary: themeColorValueSchema.optional(),
14459
- glass: themeColorValueSchema.optional(),
14460
- accent: themeColorValueSchema.optional(),
14461
- roof: themeColorValueSchema.optional()
14462
- }).strict().optional(),
14463
+ modelColors: z5.record(
14464
+ z5.string().refine(isTileflowModelPartName, {
14465
+ message: "A model part is named in lower-case words joined by hyphens or underscores, at most 32 characters."
14466
+ }),
14467
+ themeColorValueSchema
14468
+ ).refine((colors) => Object.keys(colors).length <= 64, {
14469
+ message: "A map colours at most 64 model parts."
14470
+ }).optional(),
14463
14471
  landmarks: z5.union([
14464
14472
  z5.boolean(),
14465
14473
  z5.object({
@@ -17601,7 +17609,7 @@ function placedModels(value, served) {
17601
17609
  throw new Error(
17602
17610
  `The buildings module places missing 3D models: ${missing.join(", ")}. Add ${missing.map((id2) => `${id2}.glb`).join(
17603
17611
  ", "
17604
- )} to a map.models directory, with materials named surface, secondary, glass, accent or roof, and run the Node build so the directories are prepared.`
17612
+ )} to a map.models directory, with each material named after its part, such as surface, glass, roof or water, and run the Node build so the directories are prepared.`
17605
17613
  );
17606
17614
  return {
17607
17615
  models: placements.map((entry) => ({