@orbat-mapper/tactical-map-sheet 0.6.9 → 0.8.0

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/README.md CHANGED
@@ -296,7 +296,26 @@ Application stores and map-engine output are not part of the public request cont
296
296
 
297
297
  Each layer has a stable `id`, ordered `{ graphic }[]`, and optional shared portrayal defaults for
298
298
  color, line/dash/cap/join, and label size/clamp. A graphic is a control-measure `ControlMeasure`, a
299
- `MapSheetPointSymbol`, or a `MapSheetCustomSymbol`.
299
+ `MapSheetPointSymbol`, a `MapSheetCustomSymbol`, or a `MapSheetNote`.
300
+
301
+ A `MapSheetNote` is the printable subset of tactical-draw's `note` Graphic (ADR-0066, ADR-0067):
302
+ `id`, `kind: "note"`, `position` (box centre), `rotation` (radians clockwise from north),
303
+ `emSize` (Web Mercator metres per em, like the map), and the `@orbat-mapper/tactical-notes`
304
+ content (`width`, `frame`, `content`). A Note prints as one raster, rotated with the Note, so its
305
+ text isn't vector or selectable. The sheet renders synchronously and never rasterises, so the host
306
+ prepares the rasters first, in a browser, from the same fonts and images the map uses:
307
+
308
+ ```ts
309
+ const notes = await prepareMapSheetNotes(
310
+ { layers, scaleDenominator },
311
+ { fonts: fontProvider, images: imageCapability, dpi: 300 },
312
+ );
313
+ createTacticalMapSheet({ ...request, layers, scaleDenominator, notes });
314
+ ```
315
+
316
+ `dpi` defaults to 300, and the longest side of a raster is capped at 8192 px. A Note whose image
317
+ can't be resolved rejects, naming the Note. A missing capability, or a Note with no prepared raster,
318
+ throws when the sheet is created.
300
319
 
301
320
  Control-measure label sizes and Text sizes authored in metres retain their existing Web Mercator
302
321
  construction-unit meaning. The renderer converts the sheet's true-ground scale at each graphic's