@orbat-mapper/tactical-draw 0.8.1 → 0.8.2

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/index.d.mts CHANGED
@@ -228,8 +228,9 @@ declare const DEFAULT_TEXT_SIZE_MAX_PIXELS = 24;
228
228
  * Within the band the text scales with its graphic; past either edge it pins
229
229
  * to the bound, so zooming out never yields unreadable smudges and zooming in
230
230
  * never yields screen-covering text. Shared by the adapters that resolve text
231
- * size in code (OpenLayers, Leaflet); the MapLibre adapter evaluates the same
232
- * clamp inside its per-zoom-stop style expression.
231
+ * size in code (OpenLayers, Leaflet); the MapLibre adapter reproduces the same
232
+ * clamp as a native camera expression whose stops are the two clamp
233
+ * boundaries, so it stays exact at fractional zooms.
233
234
  */
234
235
  declare function resolveGroundTextSizePixels(textSizeMeters: number, resolution: number, text?: Pick<TextStyleOptions, "textSizeMinPixels" | "textSizeMaxPixels">): number;
235
236
  /**
package/dist/index.mjs CHANGED
@@ -655,8 +655,9 @@ const DEFAULT_TEXT_SIZE_MAX_PIXELS = 24;
655
655
  * Within the band the text scales with its graphic; past either edge it pins
656
656
  * to the bound, so zooming out never yields unreadable smudges and zooming in
657
657
  * never yields screen-covering text. Shared by the adapters that resolve text
658
- * size in code (OpenLayers, Leaflet); the MapLibre adapter evaluates the same
659
- * clamp inside its per-zoom-stop style expression.
658
+ * size in code (OpenLayers, Leaflet); the MapLibre adapter reproduces the same
659
+ * clamp as a native camera expression whose stops are the two clamp
660
+ * boundaries, so it stays exact at fractional zooms.
660
661
  */
661
662
  function resolveGroundTextSizePixels(textSizeMeters, resolution, text) {
662
663
  const min = text?.textSizeMinPixels ?? 8;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbat-mapper/tactical-draw",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Engine-agnostic draw/edit core for tactical control measures (MIL-STD-2525 / APP-6). The MapAdapter ABI and bring-your-own-engine entry point for the tactical-draw package family.",
5
5
  "license": "MIT",
6
6
  "author": "Orbat Mapper",
@@ -39,7 +39,7 @@
39
39
  "access": "public"
40
40
  },
41
41
  "dependencies": {
42
- "@orbat-mapper/control-measures": "^0.25.0"
42
+ "@orbat-mapper/control-measures": "^0.26.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "vitest": ">=4.0.0"