@orbat-mapper/tactical-map-sheet 0.8.3 → 0.8.4
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/{create-tactical-map-sheet-nkwRfvRc.mjs → create-tactical-map-sheet-DGg2sSvm.mjs}
RENAMED
|
@@ -2157,6 +2157,11 @@ function renderGraphic(layerId, authored, portrayal, context) {
|
|
|
2157
2157
|
layerId,
|
|
2158
2158
|
graphicId: graphic.id
|
|
2159
2159
|
}] };
|
|
2160
|
+
if (elements.length === 0 && featureOutOfRange.some(Boolean)) return { warnings: [{
|
|
2161
|
+
code: "graphic-outside-frame",
|
|
2162
|
+
layerId,
|
|
2163
|
+
graphicId: graphic.id
|
|
2164
|
+
}] };
|
|
2160
2165
|
if (elements.length === 0) throw new Error(`Cannot render Graphic "${graphic.id}": rendering produced no content`);
|
|
2161
2166
|
return {
|
|
2162
2167
|
graphic: {
|
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, p as prepareMapSheetNotes, r as mapSheetRasterPointToGeographic, s as mgrsToProjected, t as createTacticalMapSheet, u as projectedToMgrs } from "./create-tactical-map-sheet-
|
|
1
|
+
import { a as geographicToMgrs, c as normalizeMgrsReference, d as snapGeographicToMgrs, f as snapProjectedToMgrs, i as resolveMapSheetRasterPlan, l as parseMgrsReference, o as mgrsToGeographic, p as prepareMapSheetNotes, r as mapSheetRasterPointToGeographic, s as mgrsToProjected, t as createTacticalMapSheet, u as projectedToMgrs } from "./create-tactical-map-sheet-DGg2sSvm.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 openSansCentralBaselineOffset, g as POINTS_PER_MILLIMETRE, h as MILLIMETRES_PER_CSS_PIXEL, m as formatDecimal, n as createTacticalMapSheetDocument, v as openSansMiddleBaselineOffset } from "./create-tactical-map-sheet-
|
|
1
|
+
import { _ as openSansCentralBaselineOffset, g as POINTS_PER_MILLIMETRE, h as MILLIMETRES_PER_CSS_PIXEL, m as formatDecimal, n as createTacticalMapSheetDocument, v as openSansMiddleBaselineOffset } from "./create-tactical-map-sheet-DGg2sSvm.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.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Scale-accurate projected vector tactical map-sheet renderer.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Orbat Mapper",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"opentype.js": "2.0.0",
|
|
32
32
|
"saxes": "6.0.0",
|
|
33
33
|
"@orbat-mapper/tactical-draw": "^0.32.0",
|
|
34
|
-
"@orbat-mapper/
|
|
35
|
-
"@orbat-mapper/
|
|
34
|
+
"@orbat-mapper/tactical-notes": "^0.2.0",
|
|
35
|
+
"@orbat-mapper/control-measures": "^0.46.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@napi-rs/canvas": "1.0.7",
|