@orbat-mapper/tactical-map-sheet 0.4.0 → 0.4.1

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as geographicToMgrs, c as normalizeMgrsReference, d as snapGeographicToMgrs, f as snapProjectedToMgrs, i as resolveMapSheetRasterPlan, l as parseMgrsReference, o as mgrsToGeographic, r as mapSheetRasterPointToGeographic, s as mgrsToProjected, t as createTacticalMapSheet, u as projectedToMgrs } from "./create-tactical-map-sheet-DCUo2mKe.mjs";
1
+ import { a as geographicToMgrs, c as normalizeMgrsReference, d as snapGeographicToMgrs, f as snapProjectedToMgrs, i as resolveMapSheetRasterPlan, l as parseMgrsReference, o as mgrsToGeographic, r as mapSheetRasterPointToGeographic, s as mgrsToProjected, t as createTacticalMapSheet, u as projectedToMgrs } from "./create-tactical-map-sheet-Dm9IiFHP.mjs";
2
2
  //#region src/paper.ts
3
3
  const A0 = Object.freeze({
4
4
  widthMm: 841,
package/dist/pdf.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as openSansMiddleBaselineOffset, g as openSansCentralBaselineOffset, h as POINTS_PER_MILLIMETRE, m as MILLIMETRES_PER_CSS_PIXEL, n as createTacticalMapSheetDocument, p as formatDecimal } from "./create-tactical-map-sheet-DCUo2mKe.mjs";
1
+ import { _ as openSansMiddleBaselineOffset, g as openSansCentralBaselineOffset, h as POINTS_PER_MILLIMETRE, m as MILLIMETRES_PER_CSS_PIXEL, n as createTacticalMapSheetDocument, p as formatDecimal } from "./create-tactical-map-sheet-Dm9IiFHP.mjs";
2
2
  import { jsPDF } from "jspdf";
3
3
  //#region src/pdf-transparency.ts
4
4
  const FORM_DICTIONARY_MARKER = new TextEncoder().encode("/Subtype /Form\n/BBox");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbat-mapper/tactical-map-sheet",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Scale-accurate projected vector tactical map-sheet renderer.",
5
5
  "license": "MIT",
6
6
  "author": "Orbat Mapper",
@@ -30,8 +30,8 @@
30
30
  "jspdf": "4.2.1",
31
31
  "opentype.js": "2.0.0",
32
32
  "saxes": "6.0.0",
33
- "@orbat-mapper/control-measures": "^0.24.0",
34
- "@orbat-mapper/tactical-draw": "^0.8.0"
33
+ "@orbat-mapper/control-measures": "^0.25.0",
34
+ "@orbat-mapper/tactical-draw": "^0.8.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@napi-rs/canvas": "1.0.7",
@@ -45,7 +45,7 @@
45
45
  "typescript": "~5.9.3",
46
46
  "vite": "^8.0.16",
47
47
  "vitest": "^4.1.8",
48
- "@orbat-mapper/point-symbols": "0.2.0"
48
+ "@orbat-mapper/point-symbols": "0.2.1"
49
49
  },
50
50
  "inlinedDependencies": {
51
51
  "@types/geojson": "7946.0.16"
@@ -1924,7 +1924,7 @@ function splitGridCoordinates(reference) {
1924
1924
  function createCoordinateLabels(reference, point, id) {
1925
1925
  const [easting, northing] = splitGridCoordinates(reference);
1926
1926
  return [createRegularSceneText({
1927
- text: easting,
1927
+ text: northing,
1928
1928
  xMm: point.xMm - CROSSHAIR_HALF_SIZE_MM - LABEL_GAP_MM,
1929
1929
  yMm: point.yMm,
1930
1930
  sizeCssPixels: LABEL_SIZE_CSS_PIXELS,
@@ -1932,19 +1932,19 @@ function createCoordinateLabels(reference, point, id) {
1932
1932
  anchor: "end",
1933
1933
  attributes: {
1934
1934
  "data-registration-id": id,
1935
- "data-registration-label": easting,
1936
- "data-registration-coordinate": "easting"
1935
+ "data-registration-label": northing,
1936
+ "data-registration-coordinate": "northing"
1937
1937
  }
1938
1938
  }), createRegularSceneText({
1939
- text: northing,
1939
+ text: easting,
1940
1940
  xMm: point.xMm,
1941
1941
  yMm: point.yMm + CROSSHAIR_HALF_SIZE_MM + LABEL_GAP_MM,
1942
1942
  sizeCssPixels: LABEL_SIZE_CSS_PIXELS,
1943
1943
  color: "#000000",
1944
1944
  attributes: {
1945
1945
  "data-registration-id": id,
1946
- "data-registration-label": northing,
1947
- "data-registration-coordinate": "northing"
1946
+ "data-registration-label": easting,
1947
+ "data-registration-coordinate": "easting"
1948
1948
  }
1949
1949
  })];
1950
1950
  }