@orbat-mapper/control-measures 0.2.0-alpha.3 → 0.2.0-alpha.30

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.
Files changed (87) hide show
  1. package/README.md +55 -3
  2. package/dist/index-DmAFButD.d.mts +2930 -0
  3. package/dist/index.d.mts +2 -2
  4. package/dist/index.mjs +38 -8
  5. package/dist/preview/index.d.mts +110 -3
  6. package/dist/preview/index.mjs +235 -21
  7. package/dist/renderControlMeasure-CzhJJJHO.mjs +12587 -0
  8. package/media/airborne-attack.svg +1 -1
  9. package/media/airfield-zone.svg +1 -0
  10. package/media/ambush.svg +1 -1
  11. package/media/antitank-ditch-completed.svg +1 -1
  12. package/media/antitank-ditch-under-construction.svg +1 -1
  13. package/media/antitank-wall.svg +1 -1
  14. package/media/area-defense.svg +1 -0
  15. package/media/area-of-operations.svg +1 -0
  16. package/media/area.svg +1 -0
  17. package/media/assault-position.svg +1 -0
  18. package/media/assembly-area.svg +1 -0
  19. package/media/attack-by-fire.svg +1 -1
  20. package/media/attack-helicopter.svg +1 -1
  21. package/media/attack-position.svg +1 -0
  22. package/media/base-camp.svg +1 -0
  23. package/media/battle-handover-line.svg +1 -0
  24. package/media/battle-position.svg +1 -1
  25. package/media/block-arrow.svg +1 -1
  26. package/media/block-mission-task.svg +1 -1
  27. package/media/block.svg +1 -1
  28. package/media/boundary.svg +1 -1
  29. package/media/breach.svg +1 -1
  30. package/media/bypass.svg +1 -1
  31. package/media/canalize.svg +1 -1
  32. package/media/circle.svg +1 -0
  33. package/media/classic-arrow.svg +1 -1
  34. package/media/clear.svg +1 -1
  35. package/media/cover.svg +1 -0
  36. package/media/delay.svg +1 -1
  37. package/media/direction-of-attack-aviation.svg +1 -0
  38. package/media/direction-of-main-attack.svg +1 -0
  39. package/media/direction-of-supporting-attack.svg +1 -0
  40. package/media/disrupt.svg +1 -1
  41. package/media/drop-zone.svg +1 -0
  42. package/media/encirclement.svg +1 -0
  43. package/media/engineer-work-line.svg +1 -0
  44. package/media/extraction-zone.svg +1 -0
  45. package/media/final-protective-fire-left.svg +1 -1
  46. package/media/final-protective-fire-right.svg +1 -1
  47. package/media/fix.svg +1 -1
  48. package/media/flot.svg +1 -1
  49. package/media/fortified-area.svg +1 -1
  50. package/media/fortified-line.svg +1 -1
  51. package/media/frontal-attack.svg +1 -0
  52. package/media/generic-c2-area.svg +1 -0
  53. package/media/generic-c2-line.svg +1 -0
  54. package/media/guard.svg +1 -0
  55. package/media/guerrilla-base.svg +1 -0
  56. package/media/handover-line.svg +1 -0
  57. package/media/isolate.svg +1 -1
  58. package/media/joint-tactical-action-area.svg +1 -0
  59. package/media/landing-zone.svg +1 -0
  60. package/media/light-line.svg +1 -0
  61. package/media/limited-access-area.svg +1 -0
  62. package/media/line.svg +1 -0
  63. package/media/main-attack.svg +1 -1
  64. package/media/named-area-of-interest.svg +1 -0
  65. package/media/no-fire-area-irregular.svg +1 -0
  66. package/media/objective-area.svg +1 -0
  67. package/media/obstacle-bypass-difficult.svg +1 -1
  68. package/media/obstacle-bypass-easy.svg +1 -1
  69. package/media/obstacle-bypass-impossible.svg +1 -1
  70. package/media/phase-line.svg +1 -0
  71. package/media/pickup-zone.svg +1 -0
  72. package/media/polygon.svg +1 -0
  73. package/media/principal-direction-of-fire.svg +1 -1
  74. package/media/rectangle.svg +1 -0
  75. package/media/screen.svg +1 -0
  76. package/media/search-area.svg +1 -1
  77. package/media/strong-point.svg +1 -0
  78. package/media/submarine-action-area.svg +1 -0
  79. package/media/submarine-generated-action-area.svg +1 -0
  80. package/media/support-by-fire.svg +1 -1
  81. package/media/supporting-attack.svg +1 -1
  82. package/media/target-area-of-interest.svg +1 -0
  83. package/media/turn.svg +1 -1
  84. package/media/turning-movement.svg +1 -0
  85. package/package.json +1 -1
  86. package/dist/index-BJYbQlzo.d.mts +0 -1713
  87. package/dist/renderControlMeasure-DkXDSrLz.mjs +0 -6877
package/README.md CHANGED
@@ -75,8 +75,8 @@ controls how invalid coordinate input is handled:
75
75
 
76
76
  - `validationMode: "silent" | "warn" | "throw"`
77
77
 
78
- When omitted, validation follows each measure's built-in default. `"throw"` is
79
- useful for strict integrations and tests.
78
+ When omitted, validation defaults to `silent` mode — invalid input yields an
79
+ empty render. `"throw"` is useful for strict integrations and tests.
80
80
 
81
81
  ## Supported control measures
82
82
 
@@ -90,30 +90,75 @@ code.
90
90
  | Preview | `kind` | Measure | 2525E Value |
91
91
  | --- | --- | --- | --- |
92
92
  | <img src="media/boundary.svg" width="96" height="48" alt=""> | `boundary` | Boundary | `110100` |
93
+ | <img src="media/light-line.svg" width="96" height="48" alt=""> | `light-line` | Light line | `110200` |
94
+ | <img src="media/engineer-work-line.svg" width="96" height="48" alt=""> | `engineer-work-line` | Engineer work line | `110300` |
95
+ | <img src="media/generic-c2-line.svg" width="96" height="48" alt=""> | `generic-c2-line` | Generic command and control line | `110400` |
96
+
97
+ ### Command and Control Areas
98
+
99
+ | Preview | `kind` | Measure | 2525E Value |
100
+ | --- | --- | --- | --- |
101
+ | <img src="media/area-of-operations.svg" width="96" height="48" alt=""> | `area-of-operations` | Area of operations | `120100` |
102
+ | <img src="media/named-area-of-interest.svg" width="96" height="48" alt=""> | `named-area-of-interest` | Named area of interest | `120200` |
103
+ | <img src="media/target-area-of-interest.svg" width="96" height="48" alt=""> | `target-area-of-interest` | Target area of interest | `120300` |
104
+ | <img src="media/airfield-zone.svg" width="96" height="48" alt=""> | `airfield-zone` | Airfield zone | `120400` |
105
+ | <img src="media/base-camp.svg" width="96" height="48" alt=""> | `base-camp` | Base camp | `120500` |
106
+ | <img src="media/guerrilla-base.svg" width="96" height="48" alt=""> | `guerrilla-base` | Guerrilla base | `120600` |
107
+ | <img src="media/generic-c2-area.svg" width="96" height="48" alt=""> | `generic-c2-area` | Generic command and control area | `120700` |
93
108
 
94
109
  ### Maneuver Lines
95
110
 
96
111
  | Preview | `kind` | Measure | 2525E Value |
97
112
  | --- | --- | --- | --- |
98
113
  | <img src="media/flot.svg" width="96" height="48" alt=""> | `flot` | Forward line of own troops (FLOT) | `140100` |
114
+ | <img src="media/phase-line.svg" width="96" height="48" alt=""> | `phase-line` | Phase line | `140300` |
99
115
  | <img src="media/final-protective-fire-left.svg" width="96" height="48" alt=""> | `final-protective-fire-left` | Final Protective Fire (Left) | `140501` |
100
116
  | <img src="media/final-protective-fire-right.svg" width="96" height="48" alt=""> | `final-protective-fire-right` | Final Protective Fire (Right) | `140502` |
101
117
  | <img src="media/principal-direction-of-fire.svg" width="96" height="48" alt=""> | `principal-direction-of-fire` | Principal Direction of Fire | `140503` |
118
+ | <img src="media/direction-of-attack-aviation.svg" width="96" height="48" alt=""> | `direction-of-attack-aviation` | Direction of Attack — Airborne/Aviation | `140601` |
119
+ | <img src="media/direction-of-main-attack.svg" width="96" height="48" alt=""> | `direction-of-main-attack` | Direction of Main Attack | `140602` |
120
+ | <img src="media/direction-of-supporting-attack.svg" width="96" height="48" alt=""> | `direction-of-supporting-attack` | Direction of Supporting Attack | `140603` |
102
121
  | <img src="media/ambush.svg" width="96" height="48" alt=""> | `ambush` | Ambush | `141700` |
122
+ | <img src="media/handover-line.svg" width="96" height="48" alt=""> | `handover-line` | Handover line | `141800` |
123
+ | <img src="media/battle-handover-line.svg" width="96" height="48" alt=""> | `battle-handover-line` | Battle handover line | `141900` |
103
124
 
104
125
  ### Maneuver Areas
105
126
 
106
127
  | Preview | `kind` | Measure | 2525E Value |
107
128
  | --- | --- | --- | --- |
129
+ | <img src="media/area.svg" width="96" height="48" alt=""> | `area` | Area | `150100` |
130
+ | <img src="media/assembly-area.svg" width="96" height="48" alt=""> | `assembly-area` | Assembly area | `150200` |
131
+ | <img src="media/joint-tactical-action-area.svg" width="96" height="48" alt=""> | `joint-tactical-action-area` | Joint tactical action area | `150501` |
132
+ | <img src="media/submarine-action-area.svg" width="96" height="48" alt=""> | `submarine-action-area` | Submarine action area | `150502` |
133
+ | <img src="media/submarine-generated-action-area.svg" width="96" height="48" alt=""> | `submarine-generated-action-area` | Submarine-generated action area | `150503` |
134
+ | <img src="media/drop-zone.svg" width="96" height="48" alt=""> | `drop-zone` | Drop zone | `150600` |
135
+ | <img src="media/extraction-zone.svg" width="96" height="48" alt=""> | `extraction-zone` | Extraction zone | `150700` |
136
+ | <img src="media/landing-zone.svg" width="96" height="48" alt=""> | `landing-zone` | Landing zone | `150800` |
137
+ | <img src="media/pickup-zone.svg" width="96" height="48" alt=""> | `pickup-zone` | Pickup zone | `150900` |
108
138
  | <img src="media/fortified-area.svg" width="96" height="48" alt=""> | `fortified-area` | Fortified Area | `151000` |
139
+ | <img src="media/limited-access-area.svg" width="96" height="48" alt=""> | `limited-access-area` | Limited Access Area | `151100` |
109
140
  | <img src="media/battle-position.svg" width="96" height="48" alt=""> | `battle-position` | Battle Position | `151200` |
141
+ | <img src="media/strong-point.svg" width="96" height="48" alt=""> | `strong-point` | Strong Point | `151203` |
110
142
  | <img src="media/airborne-attack.svg" width="96" height="48" alt=""> | `airborne-attack` | Airborne Attack | `151401` |
111
143
  | <img src="media/attack-helicopter.svg" width="96" height="48" alt=""> | `attack-helicopter` | Attack Helicopter | `151402` |
112
144
  | <img src="media/main-attack.svg" width="96" height="48" alt=""> | `main-attack` | Main Attack | `151403` |
113
145
  | <img src="media/supporting-attack.svg" width="96" height="48" alt=""> | `supporting-attack` | Supporting Attack | `151404` |
146
+ | <img src="media/assault-position.svg" width="96" height="48" alt=""> | `assault-position` | Assault position | `151500` |
147
+ | <img src="media/attack-position.svg" width="96" height="48" alt=""> | `attack-position` | Attack position | `151600` |
148
+ | <img src="media/objective-area.svg" width="96" height="48" alt=""> | `objective-area` | Objective area | `151700` |
149
+ | <img src="media/encirclement.svg" width="96" height="48" alt=""> | `encirclement` | Encirclement | `151800` |
114
150
  | <img src="media/attack-by-fire.svg" width="96" height="48" alt=""> | `attack-by-fire` | Attack by Fire | `152000` |
115
151
  | <img src="media/support-by-fire.svg" width="96" height="48" alt=""> | `support-by-fire` | Support By Fire | `152100` |
116
152
  | <img src="media/search-area.svg" width="96" height="48" alt=""> | `search-area` | Search Area | `152200` |
153
+ | <img src="media/area-defense.svg" width="96" height="48" alt=""> | `area-defense` | Area Defense | `152600` |
154
+ | <img src="media/frontal-attack.svg" width="96" height="48" alt=""> | `frontal-attack` | Frontal Attack | `152700` |
155
+ | <img src="media/turning-movement.svg" width="96" height="48" alt=""> | `turning-movement` | Turning Movement | `152900` |
156
+
157
+ ### Fire Areas
158
+
159
+ | Preview | `kind` | Measure | 2525E Value |
160
+ | --- | --- | --- | --- |
161
+ | <img src="media/no-fire-area-irregular.svg" width="96" height="48" alt=""> | `no-fire-area-irregular` | No Fire Area (NFA) – Irregular | `240301` |
117
162
 
118
163
  ### Protection Areas
119
164
 
@@ -147,13 +192,20 @@ code.
147
192
  | <img src="media/clear.svg" width="96" height="48" alt=""> | `clear` | Clear | `340500` |
148
193
  | <img src="media/delay.svg" width="96" height="48" alt=""> | `delay` | Delay | `340800` |
149
194
  | <img src="media/isolate.svg" width="96" height="48" alt=""> | `isolate` | Isolate | `341500` |
195
+ | <img src="media/cover.svg" width="96" height="48" alt=""> | `cover` | Cover | `342201` |
196
+ | <img src="media/guard.svg" width="96" height="48" alt=""> | `guard` | Guard | `342202` |
197
+ | <img src="media/screen.svg" width="96" height="48" alt=""> | `screen` | Screen | `342203` |
150
198
 
151
- ### Generic Arrows
199
+ ### Generic Graphics
152
200
 
153
201
  | Preview | `kind` | Measure | 2525E Value |
154
202
  | --- | --- | --- | --- |
155
203
  | <img src="media/block-arrow.svg" width="96" height="48" alt=""> | `block-arrow` | Block Arrow | `990001` |
156
204
  | <img src="media/classic-arrow.svg" width="96" height="48" alt=""> | `classic-arrow` | Classic Arrow | `990002` |
205
+ | <img src="media/line.svg" width="96" height="48" alt=""> | `line` | Line | `990101` |
206
+ | <img src="media/polygon.svg" width="96" height="48" alt=""> | `polygon` | Polygon | `990102` |
207
+ | <img src="media/rectangle.svg" width="96" height="48" alt=""> | `rectangle` | Rectangle | `990103` |
208
+ | <img src="media/circle.svg" width="96" height="48" alt=""> | `circle` | Circle | `990104` |
157
209
 
158
210
  <!-- /AUTO-GENERATED:measures-table -->
159
211