@orbat-mapper/tactical-draw 0.2.0-alpha.6 → 0.2.0-alpha.7
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 +8 -4
- package/dist/index.mjs +5 -5
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -759,8 +759,10 @@ interface EditOptions {
|
|
|
759
759
|
* polyline sourced from the working control points alongside the working
|
|
760
760
|
* geometry preview. For `geometry === "area"` kinds, a separate
|
|
761
761
|
* closing-segment `LineString` is also emitted once `workingPoints.length >= 3`.
|
|
762
|
-
* The guide is suppressed mechanically when `geometry === "point"
|
|
763
|
-
* `minCoordinates === maxCoordinates
|
|
762
|
+
* The guide is suppressed mechanically when `geometry === "point"`, and for
|
|
763
|
+
* fixed-length kinds (`minCoordinates === maxCoordinates` or `canonicalPointCount`
|
|
764
|
+
* set) unless the kind's draw rule opts back in via `showGuide`, regardless of
|
|
765
|
+
* this flag. See ADR-0004.
|
|
764
766
|
*/
|
|
765
767
|
guide?: boolean;
|
|
766
768
|
/**
|
|
@@ -829,8 +831,10 @@ interface DrawOptions {
|
|
|
829
831
|
* polyline alongside the kind's generator preview. For `geometry === "area"`
|
|
830
832
|
* kinds, a separate closing-segment `LineString` is also emitted once the
|
|
831
833
|
* total point count (cursor included) is ≥ 3. The guide is suppressed
|
|
832
|
-
* mechanically when `geometry === "point"
|
|
833
|
-
*
|
|
834
|
+
* mechanically when `geometry === "point"`, and for fixed-length kinds
|
|
835
|
+
* (`minCoordinates === maxCoordinates` or `canonicalPointCount` set) unless
|
|
836
|
+
* the kind's draw rule opts back in via `showGuide`, regardless of this
|
|
837
|
+
* flag. See ADR-0004.
|
|
834
838
|
*/
|
|
835
839
|
guide?: boolean;
|
|
836
840
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -528,12 +528,12 @@ const PIXEL_SIZE_OPTIONS = {
|
|
|
528
528
|
meters: "radius"
|
|
529
529
|
},
|
|
530
530
|
"fortified-line": {
|
|
531
|
-
pixels: "
|
|
532
|
-
meters: "
|
|
531
|
+
pixels: "toothSizePixels",
|
|
532
|
+
meters: "toothSize"
|
|
533
533
|
},
|
|
534
534
|
"fortified-area": {
|
|
535
|
-
pixels: "
|
|
536
|
-
meters: "
|
|
535
|
+
pixels: "toothSizePixels",
|
|
536
|
+
meters: "toothSize"
|
|
537
537
|
},
|
|
538
538
|
"antitank-ditch-under-construction": {
|
|
539
539
|
pixels: "toothHeightPixels",
|
|
@@ -600,7 +600,7 @@ function bakePixelSizeToGround(measure, adapter) {
|
|
|
600
600
|
/**
|
|
601
601
|
* Stamp the adapter's current `metersPerPixel` onto a measure that sizes itself
|
|
602
602
|
* in pixels, so the generator resolves pixel options (`radiusPixels`,
|
|
603
|
-
* `
|
|
603
|
+
* `toothSizePixels`, `toothHeightPixels`) against the live map zoom. Returns the
|
|
604
604
|
* measure unchanged when the adapter has no usable resolution or the
|
|
605
605
|
* kind/options don't opt into pixel sizing.
|
|
606
606
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orbat-mapper/tactical-draw",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.7",
|
|
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",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@orbat-mapper/control-measures": "^0.2.0-alpha.
|
|
41
|
+
"@orbat-mapper/control-measures": "^0.2.0-alpha.8"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@arethetypeswrong/core": "^0.18.3",
|