@orbat-mapper/control-measures 0.6.0 → 0.7.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/dist/{index-DCgWC2Q8.d.mts → index-B3LgMKpn.d.mts} +109 -86
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +3 -2
- package/dist/patterns-CcQmmOuJ.d.mts +116 -0
- package/dist/patterns.d.mts +2 -0
- package/dist/patterns.mjs +205 -0
- package/dist/preview/index.d.mts +15 -11
- package/dist/preview/index.mjs +67 -84
- package/dist/{renderControlMeasure-D6VScGE0.mjs → renderControlMeasure-GsV4DV3r.mjs} +437 -199
- package/media/limited-access-area.svg +1 -1
- package/media/mined-area.svg +1 -0
- package/media/minefield-dynamic.svg +1 -0
- package/media/minefield.svg +1 -0
- package/media/no-fire-area-irregular.svg +1 -1
- package/package.json +2 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { d as ControlMeasureStyle } from "./patterns-CcQmmOuJ.mjs";
|
|
1
2
|
import { Feature, FeatureCollection, Geometry, LineString, MultiLineString, MultiPolygon, Point, Polygon, Position } from "geojson";
|
|
2
3
|
|
|
3
4
|
//#region src/internal/api-utils.d.ts
|
|
@@ -218,7 +219,7 @@ declare function normalizeTextAmplifiers(input: TextAmplifiers | undefined): Can
|
|
|
218
219
|
//#region src/metadata.d.ts
|
|
219
220
|
type ControlMeasureGeometryType = Geometry["type"];
|
|
220
221
|
type ControlMeasureGeometry = "point" | "line" | "area";
|
|
221
|
-
declare const DRAW_RULE_IDS: readonly ["Area1", "Area7", "Area8", "Area11", "Area12", "Area15", "Area17", "Area21", "Axis1", "Line1", "Line3", "Line9", "Line10", "Line23", "Line24", "Line26", "Line27", "Line29", "Point1", "Point2", "Point12", "Rectangle", "Sector"];
|
|
222
|
+
declare const DRAW_RULE_IDS: readonly ["Area1", "Area7", "Area8", "Area11", "Area12", "Area15", "Area17", "Area21", "Axis1", "Line1", "Line3", "Line9", "Line10", "Line23", "Line24", "Line26", "Line27", "Line29", "Point1", "Point2", "Point12", "Point18", "Rectangle", "Sector"];
|
|
222
223
|
type DrawRuleId = (typeof DRAW_RULE_IDS)[number];
|
|
223
224
|
declare const PARAMETER_PRESENTATION_TIERS: readonly ["primary", "standard", "advanced"];
|
|
224
225
|
type ParameterPresentationTier = (typeof PARAMETER_PRESENTATION_TIERS)[number];
|
|
@@ -352,6 +353,50 @@ interface ControlMeasurePaintCapability {
|
|
|
352
353
|
text: boolean;
|
|
353
354
|
}
|
|
354
355
|
//#endregion
|
|
356
|
+
//#region src/portrayal.d.ts
|
|
357
|
+
type LogicalTextStyle = "regular" | "italic" | "light" | "caps";
|
|
358
|
+
/** Logical typography request understood by renderer-neutral text measurers. */
|
|
359
|
+
interface MeasureTextRequest {
|
|
360
|
+
text: string;
|
|
361
|
+
style: LogicalTextStyle;
|
|
362
|
+
sizeCssPixels: number;
|
|
363
|
+
}
|
|
364
|
+
/** Logical text extent in CSS reference pixels. */
|
|
365
|
+
interface MeasuredText {
|
|
366
|
+
widthCssPixels: number;
|
|
367
|
+
heightCssPixels: number;
|
|
368
|
+
}
|
|
369
|
+
/** Renderer-owned portrayal state supplied for one pure render operation. */
|
|
370
|
+
interface ControlMeasureRenderContext {
|
|
371
|
+
/** True-ground metres represented by one CSS reference pixel. */
|
|
372
|
+
groundMetersPerCssPixel?: number;
|
|
373
|
+
/** Clamp band applied to ground-anchored labels before logical measurement. */
|
|
374
|
+
labelSizeClampCssPixels?: {
|
|
375
|
+
min: number;
|
|
376
|
+
max: number;
|
|
377
|
+
};
|
|
378
|
+
/** Synchronous, renderer-neutral logical text measurement capability. */
|
|
379
|
+
measureText?: (request: MeasureTextRequest) => MeasuredText;
|
|
380
|
+
}
|
|
381
|
+
declare const DEFAULT_STROKE_WIDTH_CSS_PIXELS = 2;
|
|
382
|
+
declare const DEFAULT_STROKE_DASH_CSS_PIXELS: readonly number[];
|
|
383
|
+
declare const DEFAULT_LINE_CAP = "round";
|
|
384
|
+
declare const DEFAULT_LINE_JOIN = "round";
|
|
385
|
+
declare const DEFAULT_LABEL_HEIGHT_CSS_PIXELS = 14;
|
|
386
|
+
declare const DEFAULT_LABEL_SIZE_CLAMP_CSS_PIXELS: {
|
|
387
|
+
readonly min: 8;
|
|
388
|
+
readonly max: 24;
|
|
389
|
+
};
|
|
390
|
+
/** Shared absent-value portrayal defaults; render output remains sparse. */
|
|
391
|
+
declare const DEFAULT_PORTRAYAL: Readonly<{
|
|
392
|
+
symbolColor: "#000000";
|
|
393
|
+
strokeWidthCssPixels: 2;
|
|
394
|
+
strokeDashCssPixels: readonly number[];
|
|
395
|
+
lineCap: "round";
|
|
396
|
+
lineJoin: "round";
|
|
397
|
+
labelHeightCssPixels: 14;
|
|
398
|
+
}>;
|
|
399
|
+
//#endregion
|
|
355
400
|
//#region src/define.d.ts
|
|
356
401
|
/**
|
|
357
402
|
* The loosest `FeatureCollection` a control-measure generator may emit: any
|
|
@@ -361,6 +406,13 @@ type AnyFeatureCollection = FeatureCollection<Geometry, Record<string, unknown>
|
|
|
361
406
|
/** Read-only instance state that can affect generated geometry. */
|
|
362
407
|
interface ControlMeasureGeneratorContext {
|
|
363
408
|
amplifierPlacements?: AmplifierPlacements;
|
|
409
|
+
/** Web Mercator construction metres represented by one CSS reference pixel. */
|
|
410
|
+
constructionMetersPerCssPixel?: number;
|
|
411
|
+
labelSizeClampCssPixels?: {
|
|
412
|
+
min: number;
|
|
413
|
+
max: number;
|
|
414
|
+
};
|
|
415
|
+
measureText?: (request: MeasureTextRequest) => MeasuredText;
|
|
364
416
|
}
|
|
365
417
|
/**
|
|
366
418
|
* A generator's call signature, constrained only by its inputs and output. The
|
|
@@ -506,6 +558,7 @@ interface BoundaryOptions {
|
|
|
506
558
|
* measure is screen-anchored; required to resolve `echelonSizePixels` and to
|
|
507
559
|
* lock the T/AS text size to the glyph height.
|
|
508
560
|
*/
|
|
561
|
+
/** @deprecated Supply `RenderOptions.context.groundMetersPerCssPixel` instead. */
|
|
509
562
|
metersPerPixel?: number;
|
|
510
563
|
/**
|
|
511
564
|
* Number of label groups (echelon + designators), spaced evenly by cumulative
|
|
@@ -580,7 +633,7 @@ declare const DEFAULT_BOUNDARY_OPTIONS: BoundaryOptions;
|
|
|
580
633
|
* @param textAmplifiers - Normalized text amplifiers (ADR-0027): `T`/`AS` label
|
|
581
634
|
* unit 1 (left-of-travel side), `T1`/`AS1` label unit 2 (right-of-travel side).
|
|
582
635
|
*/
|
|
583
|
-
declare function createBoundary(positions: Position[], options?: BoundaryOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<MultiLineString | MultiPolygon | Point>;
|
|
636
|
+
declare function createBoundary(positions: Position[], options?: BoundaryOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<MultiLineString | MultiPolygon | Point>;
|
|
584
637
|
//#endregion
|
|
585
638
|
//#region src/projection.d.ts
|
|
586
639
|
type Point2D = [number, number];
|
|
@@ -648,6 +701,7 @@ interface LabelSizeOptions {
|
|
|
648
701
|
* Meters-per-pixel at the current view. Stamped by the host when the labels
|
|
649
702
|
* are screen-anchored; resolves `labelSizePixels` to the projected-meter
|
|
650
703
|
* height that meter-denominated placement (offsets, gaps, row pitch) needs.
|
|
704
|
+
* @deprecated Supply `RenderOptions.context.groundMetersPerCssPixel` instead.
|
|
651
705
|
*/
|
|
652
706
|
metersPerPixel?: number;
|
|
653
707
|
}
|
|
@@ -689,7 +743,7 @@ declare const DEFAULT_LIGHT_LINE_OPTIONS: LightLineOptions;
|
|
|
689
743
|
* Creates a Light line control measure: a polyline through `positions`
|
|
690
744
|
* labeled "LL" above the line near each end.
|
|
691
745
|
*/
|
|
692
|
-
declare function createLightLine(positions: Position[], options?: LightLineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
746
|
+
declare function createLightLine(positions: Position[], options?: LightLineOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<LineString | Point>;
|
|
693
747
|
//#endregion
|
|
694
748
|
//#region src/generators/cm11-command-control-lines/engineer-work-line.d.ts
|
|
695
749
|
/** Configuration options for the Engineer work line control measure. */
|
|
@@ -720,7 +774,7 @@ declare const DEFAULT_ENGINEER_WORK_LINE_OPTIONS: EngineerWorkLineOptions;
|
|
|
720
774
|
* above the line, T1/AS1 below). No center group is emitted when all four
|
|
721
775
|
* amplifiers are empty.
|
|
722
776
|
*/
|
|
723
|
-
declare function createEngineerWorkLine(positions: Position[], options?: EngineerWorkLineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
777
|
+
declare function createEngineerWorkLine(positions: Position[], options?: EngineerWorkLineOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<LineString | Point>;
|
|
724
778
|
//#endregion
|
|
725
779
|
//#region src/generators/cm11-command-control-lines/generic-c2-line.d.ts
|
|
726
780
|
/** Configuration options for the Generic command and control line. */
|
|
@@ -751,70 +805,7 @@ declare const DEFAULT_GENERIC_C2_LINE_OPTIONS: GenericC2LineOptions;
|
|
|
751
805
|
* (inset from the tip, anchored toward the line's interior), one at
|
|
752
806
|
* `base + perp·offset` and the other at `base − perp·offset`.
|
|
753
807
|
*/
|
|
754
|
-
declare function createGenericC2Line(positions: Position[], options?: GenericC2LineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
755
|
-
//#endregion
|
|
756
|
-
//#region src/style.d.ts
|
|
757
|
-
/**
|
|
758
|
-
* Framework-agnostic style hints attached to a `ControlMeasure`.
|
|
759
|
-
*
|
|
760
|
-
* Mirrors the per-feature subset of what map adapters render. The renderer
|
|
761
|
-
* fans these into each emitted feature's `properties.style` ([[StyleHints]]).
|
|
762
|
-
* Adapters merge them over their layer-level style; generator-emitted hints
|
|
763
|
-
* on individual features win over both.
|
|
764
|
-
*/
|
|
765
|
-
interface ControlMeasureStyle {
|
|
766
|
-
/**
|
|
767
|
-
* The single symbol color. Control measures are monocolor: one color paints
|
|
768
|
-
* every part, stroked or filled. Input-only — resolved into concrete
|
|
769
|
-
* `strokeColor` / `fillColor` per feature by the renderer and never emitted
|
|
770
|
-
* on output. `strokeColor` / `fillColor` act as optional per-channel
|
|
771
|
-
* overrides. See ADR-0011.
|
|
772
|
-
*/
|
|
773
|
-
color?: string;
|
|
774
|
-
strokeColor?: string;
|
|
775
|
-
strokeWidth?: number;
|
|
776
|
-
strokeDash?: number[];
|
|
777
|
-
fillColor?: string;
|
|
778
|
-
/**
|
|
779
|
-
* How a filled part's interior is painted. `"solid"` is explicit so a
|
|
780
|
-
* measure can override a patterned layer default (e.g. a hatch fill set
|
|
781
|
-
* at the façade). Pattern lines are drawn in the resolved fill color —
|
|
782
|
-
* alpha included, there is no separate opacity field. Renderers that
|
|
783
|
-
* cannot draw a pattern degrade to solid.
|
|
784
|
-
*/
|
|
785
|
-
fillPattern?: FillPattern;
|
|
786
|
-
/**
|
|
787
|
-
* Display-time graphic opacity multiplier in `[0, 1]`; absent = fully
|
|
788
|
-
* opaque. Unlike `color`'s alpha, this fades the whole graphic — stroke,
|
|
789
|
-
* fill, patterns, and baked labels — as one knob, independent of the
|
|
790
|
-
* authored color. The resolver folds it into each resolved part's color
|
|
791
|
-
* alpha (`final alpha = opacity × color alpha`) rather than adding a new
|
|
792
|
-
* paint channel, so adapters and `toSimpleStyle` need no changes.
|
|
793
|
-
* Display-only: hit-testing and selection reason about color alpha, not
|
|
794
|
-
* this multiplier, so a graphic at `opacity: 0` stays fully selectable.
|
|
795
|
-
* Out-of-range values clamp to `[0, 1]`. See ADR-0040.
|
|
796
|
-
*/
|
|
797
|
-
opacity?: number;
|
|
798
|
-
/**
|
|
799
|
-
* Render a contrast-aware halo behind label glyphs so text stays legible on
|
|
800
|
-
* busy backgrounds. Cascades like any other hint (graphicsStyle → measure →
|
|
801
|
-
* generator), letting a host switch halos on for every labeled measure
|
|
802
|
-
* rather than only the generic Text graphic.
|
|
803
|
-
*
|
|
804
|
-
* Text-only: the renderer applies it to features that carry `text` and drops
|
|
805
|
-
* it everywhere else, so a layer-level `true` never leaks onto plain stroked
|
|
806
|
-
* or filled parts. The halo *color* is not authored here — it is derived per
|
|
807
|
-
* feature from the resolved text color, so each label gets a halo that
|
|
808
|
-
* actually contrasts with it. Unlike the other hints this one is consumed by
|
|
809
|
-
* the renderer and lifted to a top-level `textHalo` feature property; it is
|
|
810
|
-
* never emitted on `properties.style`. See ADR-0042.
|
|
811
|
-
*/
|
|
812
|
-
textHalo?: boolean;
|
|
813
|
-
}
|
|
814
|
-
/**
|
|
815
|
-
* How a filled part's interior is painted. See `ControlMeasureStyle.fillPattern`.
|
|
816
|
-
*/
|
|
817
|
-
type FillPattern = "solid" | "hatch" | "reverse-hatch" | "cross-hatch" | "horizontal" | "vertical" | "dots" | "mine-unspecified" | "mine-antipersonnel" | "mine-antipersonnel-directional" | "mine-antitank" | "mine-antitank-antihandling" | "mine-wide-area-antitank" | "mine-cluster";
|
|
808
|
+
declare function createGenericC2Line(positions: Position[], options?: GenericC2LineOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<LineString | Point>;
|
|
818
809
|
//#endregion
|
|
819
810
|
//#region src/internal/area-labels.d.ts
|
|
820
811
|
/** Shared placement options for the centered-label area measures. */
|
|
@@ -908,6 +899,7 @@ interface BattlePositionOptions extends AreaLabelOptions {
|
|
|
908
899
|
* Meters-per-pixel at the current zoom/latitude. Stamped by the host when the
|
|
909
900
|
* measure is screen-anchored; required to resolve `echelonSizePixels`.
|
|
910
901
|
*/
|
|
902
|
+
/** @deprecated Supply `RenderOptions.context.groundMetersPerCssPixel` instead. */
|
|
911
903
|
metersPerPixel?: number;
|
|
912
904
|
/**
|
|
913
905
|
* Round the area's corners by curving the boundary through the control points
|
|
@@ -1510,6 +1502,7 @@ interface EchelonLabeledAreaOptions extends LabeledAreaOptions {
|
|
|
1510
1502
|
* Meters-per-pixel at the current zoom/latitude. Stamped by the host when
|
|
1511
1503
|
* the measure is screen-anchored; required to resolve `echelonSizePixels`.
|
|
1512
1504
|
*/
|
|
1505
|
+
/** @deprecated Supply `RenderOptions.context.groundMetersPerCssPixel` instead. */
|
|
1513
1506
|
metersPerPixel?: number;
|
|
1514
1507
|
}
|
|
1515
1508
|
//#endregion
|
|
@@ -1713,10 +1706,6 @@ interface FilledAreaOptions {
|
|
|
1713
1706
|
/** Fill the polygon interior; false renders only its outline. */
|
|
1714
1707
|
filled?: boolean;
|
|
1715
1708
|
}
|
|
1716
|
-
interface ArcResolutionOptions {
|
|
1717
|
-
/** Number of segments in a full 360° sweep. */
|
|
1718
|
-
resolution?: number;
|
|
1719
|
-
}
|
|
1720
1709
|
//#endregion
|
|
1721
1710
|
//#region src/generators/cm99-generic-graphics/line.d.ts
|
|
1722
1711
|
type GenericLineOptions = SmoothPathOptions;
|
|
@@ -1739,6 +1728,12 @@ declare function createGenericRectangle(coordinates: Position[], options?: Gener
|
|
|
1739
1728
|
fill: boolean;
|
|
1740
1729
|
}>;
|
|
1741
1730
|
//#endregion
|
|
1731
|
+
//#region src/generators/arc-params.d.ts
|
|
1732
|
+
interface ArcResolutionOptions {
|
|
1733
|
+
/** Number of segments in a full 360° sweep. */
|
|
1734
|
+
resolution?: number;
|
|
1735
|
+
}
|
|
1736
|
+
//#endregion
|
|
1742
1737
|
//#region src/generators/cm99-generic-graphics/circle.d.ts
|
|
1743
1738
|
interface GenericCircleOptions extends FilledAreaOptions, ArcResolutionOptions {}
|
|
1744
1739
|
declare const DEFAULT_GENERIC_CIRCLE_OPTIONS: Required<GenericCircleOptions>;
|
|
@@ -1798,6 +1793,16 @@ interface GenericTextOptions {
|
|
|
1798
1793
|
declare const DEFAULT_GENERIC_TEXT_OPTIONS: GenericTextOptions;
|
|
1799
1794
|
declare function createGenericText(coordinates: Position[], options?: GenericTextOptions): FeatureCollection<Point, Record<string, unknown>>;
|
|
1800
1795
|
//#endregion
|
|
1796
|
+
//#region src/generators/cm20-maritime-control-areas/radar-search-doctrine.d.ts
|
|
1797
|
+
interface RadarSearchDoctrineOptions extends ArcResolutionOptions, LabelSizeOptions {}
|
|
1798
|
+
declare const DEFAULT_RADAR_SEARCH_DOCTRINE_OPTIONS: {
|
|
1799
|
+
resolution: number;
|
|
1800
|
+
};
|
|
1801
|
+
/** Doctrinal RSD colors from the symbol specification. */
|
|
1802
|
+
declare const RADAR_SEARCH_DOCTRINE_STROKE_COLOR = "rgb(51, 136, 136)";
|
|
1803
|
+
declare const RADAR_SEARCH_DOCTRINE_FILL_COLOR = "rgba(51, 136, 136, 0.25)";
|
|
1804
|
+
declare function createRadarSearchDoctrine(coordinates: Position[], options?: RadarSearchDoctrineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<Polygon | Point>;
|
|
1805
|
+
//#endregion
|
|
1801
1806
|
//#region src/generators/cm15-maneuver-areas/airborneAttack.d.ts
|
|
1802
1807
|
type AirborneAttackOptions = AttackOptions;
|
|
1803
1808
|
declare const DEFAULT_AIRBORNE_ATTACK_OPTIONS: Required<AirborneAttackOptions>;
|
|
@@ -1898,6 +1903,7 @@ interface FLOTOptions extends SmoothLineOptions, LineLabelOptions {
|
|
|
1898
1903
|
* Required when using radiusPixels for zoom-aware sizing.
|
|
1899
1904
|
* Can be obtained from the map view's resolution or calculated using getMetersPerPixel().
|
|
1900
1905
|
*/
|
|
1906
|
+
/** @deprecated Supply `RenderOptions.context.groundMetersPerCssPixel` instead. */
|
|
1901
1907
|
metersPerPixel?: number;
|
|
1902
1908
|
/**
|
|
1903
1909
|
* The number of points used to render each individual semi-circle.
|
|
@@ -1929,7 +1935,7 @@ declare const DEFAULT_FLOT_OPTIONS: Required<Omit<FLOTOptions, keyof LineLabelOp
|
|
|
1929
1935
|
* );
|
|
1930
1936
|
* ```
|
|
1931
1937
|
*/
|
|
1932
|
-
declare function createFLOT(positions: Position[], options?: FLOTOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
1938
|
+
declare function createFLOT(positions: Position[], options?: FLOTOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<LineString | Point>;
|
|
1933
1939
|
//#endregion
|
|
1934
1940
|
//#region src/generators/cm14-maneuver-lines/phase-line.d.ts
|
|
1935
1941
|
/** Configuration options for the Phase line control measure. */
|
|
@@ -1948,7 +1954,7 @@ declare const DEFAULT_PHASE_LINE_OPTIONS: PhaseLineOptions;
|
|
|
1948
1954
|
* Creates a Phase line control measure: a polyline through `positions`
|
|
1949
1955
|
* labeled at each end with `T` (optionally "PL"-prefixed).
|
|
1950
1956
|
*/
|
|
1951
|
-
declare function createPhaseLine(positions: Position[], options?: PhaseLineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
1957
|
+
declare function createPhaseLine(positions: Position[], options?: PhaseLineOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<LineString | Point>;
|
|
1952
1958
|
//#endregion
|
|
1953
1959
|
//#region src/generators/cm14-maneuver-lines/forward-edge-of-battle-area.d.ts
|
|
1954
1960
|
/** Configuration options for the Forward edge of the battle area control measure. */
|
|
@@ -1973,7 +1979,7 @@ declare const DEFAULT_FORWARD_EDGE_OF_BATTLE_AREA_OPTIONS: ForwardEdgeOfBattleAr
|
|
|
1973
1979
|
* Creates a Forward edge of the battle area control measure: a polyline
|
|
1974
1980
|
* through `positions` labeled "FEBA" above the line near each end.
|
|
1975
1981
|
*/
|
|
1976
|
-
declare function createForwardEdgeOfBattleArea(positions: Position[], options?: ForwardEdgeOfBattleAreaOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
1982
|
+
declare function createForwardEdgeOfBattleArea(positions: Position[], options?: ForwardEdgeOfBattleAreaOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<LineString | Point>;
|
|
1977
1983
|
//#endregion
|
|
1978
1984
|
//#region src/generators/cm14-maneuver-lines/bridgehead-line.d.ts
|
|
1979
1985
|
/** Configuration options for the Bridgehead line control measure. */
|
|
@@ -1986,7 +1992,7 @@ interface BridgeheadLineOptions extends LineLabelOptions, SmoothLineOptions {
|
|
|
1986
1992
|
/** Default options for the Bridgehead line control measure. */
|
|
1987
1993
|
declare const DEFAULT_BRIDGEHEAD_LINE_OPTIONS: BridgeheadLineOptions;
|
|
1988
1994
|
/** Creates a Bridgehead line labeled "BL" above both ends. */
|
|
1989
|
-
declare function createBridgeheadLine(positions: Position[], options?: BridgeheadLineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
1995
|
+
declare function createBridgeheadLine(positions: Position[], options?: BridgeheadLineOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<LineString | Point>;
|
|
1990
1996
|
//#endregion
|
|
1991
1997
|
//#region src/generators/cm14-maneuver-lines/holding-line.d.ts
|
|
1992
1998
|
/** Configuration options for the Holding line control measure. */
|
|
@@ -1999,7 +2005,7 @@ interface HoldingLineOptions extends LineLabelOptions, SmoothLineOptions {
|
|
|
1999
2005
|
/** Default options for the Holding line control measure. */
|
|
2000
2006
|
declare const DEFAULT_HOLDING_LINE_OPTIONS: HoldingLineOptions;
|
|
2001
2007
|
/** Creates a Holding line labeled "HL" above both ends. */
|
|
2002
|
-
declare function createHoldingLine(positions: Position[], options?: HoldingLineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
2008
|
+
declare function createHoldingLine(positions: Position[], options?: HoldingLineOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<LineString | Point>;
|
|
2003
2009
|
//#endregion
|
|
2004
2010
|
//#region src/generators/cm14-maneuver-lines/release-line.d.ts
|
|
2005
2011
|
/** Configuration options for the Release line control measure. */
|
|
@@ -2012,7 +2018,7 @@ interface ReleaseLineOptions extends LineLabelOptions, SmoothLineOptions {
|
|
|
2012
2018
|
/** Default options for the Release line control measure. */
|
|
2013
2019
|
declare const DEFAULT_RELEASE_LINE_OPTIONS: ReleaseLineOptions;
|
|
2014
2020
|
/** Creates a Release line labeled "RL" above both ends. */
|
|
2015
|
-
declare function createReleaseLine(positions: Position[], options?: ReleaseLineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
2021
|
+
declare function createReleaseLine(positions: Position[], options?: ReleaseLineOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<LineString | Point>;
|
|
2016
2022
|
//#endregion
|
|
2017
2023
|
//#region src/generators/cm14-maneuver-lines/handover-line.d.ts
|
|
2018
2024
|
/** Configuration options for the Handover line control measure. */
|
|
@@ -2039,7 +2045,7 @@ declare const DEFAULT_HANDOVER_LINE_OPTIONS: HandoverLineOptions;
|
|
|
2039
2045
|
* Creates a Handover line control measure: a polyline through `positions`
|
|
2040
2046
|
* labeled "HOL" above the line near each end.
|
|
2041
2047
|
*/
|
|
2042
|
-
declare function createHandoverLine(positions: Position[], options?: HandoverLineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
2048
|
+
declare function createHandoverLine(positions: Position[], options?: HandoverLineOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<LineString | Point>;
|
|
2043
2049
|
//#endregion
|
|
2044
2050
|
//#region src/generators/cm14-maneuver-lines/battle-handover-line.d.ts
|
|
2045
2051
|
/** Configuration options for the Battle handover line control measure. */
|
|
@@ -2066,7 +2072,7 @@ declare const DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS: BattleHandoverLineOptions;
|
|
|
2066
2072
|
* Creates a Battle handover line control measure: a polyline through
|
|
2067
2073
|
* `positions` labeled "BHL" above the line near each end.
|
|
2068
2074
|
*/
|
|
2069
|
-
declare function createBattleHandoverLine(positions: Position[], options?: BattleHandoverLineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
2075
|
+
declare function createBattleHandoverLine(positions: Position[], options?: BattleHandoverLineOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<LineString | Point>;
|
|
2070
2076
|
//#endregion
|
|
2071
2077
|
//#region src/generators/cm34-mission-tasks/block.d.ts
|
|
2072
2078
|
interface BlockMissionTaskOptions {
|
|
@@ -2456,11 +2462,12 @@ interface AntitankDitchOptions extends SmoothLineOptions, LineLabelOptions {
|
|
|
2456
2462
|
* The meters-per-pixel ratio at the current zoom level and latitude. Required
|
|
2457
2463
|
* when using toothHeightPixels for zoom-aware sizing.
|
|
2458
2464
|
*/
|
|
2465
|
+
/** @deprecated Supply `RenderOptions.context.groundMetersPerCssPixel` instead. */
|
|
2459
2466
|
metersPerPixel?: number;
|
|
2460
2467
|
}
|
|
2461
2468
|
declare const DEFAULT_ANTITANK_DITCH_OPTIONS: Required<Omit<AntitankDitchOptions, keyof LineLabelOptions>>;
|
|
2462
|
-
declare function createAntitankDitchUnderConstruction(positions: Position[], options?: AntitankDitchOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<MultiLineString | Point>;
|
|
2463
|
-
declare function createAntitankDitchCompleted(positions: Position[], options?: AntitankDitchOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<MultiPolygon | Point>;
|
|
2469
|
+
declare function createAntitankDitchUnderConstruction(positions: Position[], options?: AntitankDitchOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<MultiLineString | Point>;
|
|
2470
|
+
declare function createAntitankDitchCompleted(positions: Position[], options?: AntitankDitchOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<MultiPolygon | Point>;
|
|
2464
2471
|
//#endregion
|
|
2465
2472
|
//#region src/generators/cm29-protection-lines/antitankWall.d.ts
|
|
2466
2473
|
interface AntitankWallOptions extends AntitankDitchOptions {
|
|
@@ -2472,7 +2479,7 @@ interface AntitankWallOptions extends AntitankDitchOptions {
|
|
|
2472
2479
|
toothSpacingRatio?: number;
|
|
2473
2480
|
}
|
|
2474
2481
|
declare const DEFAULT_ANTITANK_WALL_OPTIONS: Required<Omit<AntitankWallOptions, keyof LineLabelOptions>>;
|
|
2475
|
-
declare function createAntitankWall(positions: Position[], options?: AntitankWallOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<MultiLineString | Point>;
|
|
2482
|
+
declare function createAntitankWall(positions: Position[], options?: AntitankWallOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<MultiLineString | Point>;
|
|
2476
2483
|
//#endregion
|
|
2477
2484
|
//#region src/generators/cm29-protection-lines/fortifiedLine.d.ts
|
|
2478
2485
|
/**
|
|
@@ -2498,6 +2505,7 @@ interface FortifiedLineOptions extends LineLabelOptions {
|
|
|
2498
2505
|
* The meters-per-pixel ratio at the current zoom level and latitude.
|
|
2499
2506
|
* Required when using toothSizePixels for zoom-aware sizing.
|
|
2500
2507
|
*/
|
|
2508
|
+
/** @deprecated Supply `RenderOptions.context.groundMetersPerCssPixel` instead. */
|
|
2501
2509
|
metersPerPixel?: number;
|
|
2502
2510
|
/**
|
|
2503
2511
|
* Round the line's corners by curving the base path through the control
|
|
@@ -2529,7 +2537,7 @@ declare const DEFAULT_FORTIFIED_LINE_OPTIONS: Required<Omit<FortifiedLineOptions
|
|
|
2529
2537
|
* @param options - Configuration options for the graphic
|
|
2530
2538
|
* @returns A GeoJSON FeatureCollection containing the castellated LineString
|
|
2531
2539
|
*/
|
|
2532
|
-
declare function createFortifiedLine(positions: Position[], options?: FortifiedLineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
2540
|
+
declare function createFortifiedLine(positions: Position[], options?: FortifiedLineOptions, textAmplifiers?: CanonicalTextAmplifiers, context?: ControlMeasureGeneratorContext): FeatureCollection<LineString | Point>;
|
|
2533
2541
|
//#endregion
|
|
2534
2542
|
//#region src/generators/cm15-maneuver-areas/fortifiedArea.d.ts
|
|
2535
2543
|
/**
|
|
@@ -2697,7 +2705,10 @@ interface MinefieldOptions {
|
|
|
2697
2705
|
sizeMeters?: number;
|
|
2698
2706
|
/** Draw-time frame width in screen pixels; baked to `sizeMeters` on commit. @default 32 */
|
|
2699
2707
|
sizePixels?: number;
|
|
2700
|
-
/**
|
|
2708
|
+
/**
|
|
2709
|
+
* Live map resolution used to resolve `sizePixels` into projected meters.
|
|
2710
|
+
* @deprecated Supply `RenderOptions.context.groundMetersPerCssPixel` instead.
|
|
2711
|
+
*/
|
|
2701
2712
|
metersPerPixel?: number;
|
|
2702
2713
|
/** Clockwise rotation in degrees. @default 0 */
|
|
2703
2714
|
rotation?: number;
|
|
@@ -2829,6 +2840,7 @@ declare const DEFINITIONS: {
|
|
|
2829
2840
|
circle: ControlMeasureDefinition<"circle", typeof createGenericCircle>;
|
|
2830
2841
|
sector: ControlMeasureDefinition<"sector", typeof createGenericSector>;
|
|
2831
2842
|
text: ControlMeasureDefinition<"text", typeof createGenericText>;
|
|
2843
|
+
"radar-search-doctrine": ControlMeasureDefinition<"radar-search-doctrine", typeof createRadarSearchDoctrine>;
|
|
2832
2844
|
"airborne-attack": ControlMeasureDefinition<"airborne-attack", typeof createAirborneAttack>;
|
|
2833
2845
|
"attack-helicopter": ControlMeasureDefinition<"attack-helicopter", typeof createAttackHelicopter>;
|
|
2834
2846
|
"support-by-fire": ControlMeasureDefinition<"support-by-fire", typeof createSupportByFire>;
|
|
@@ -2941,6 +2953,8 @@ interface RenderOptions {
|
|
|
2941
2953
|
* omitted, style resolution matches the prior two-layer behavior.
|
|
2942
2954
|
*/
|
|
2943
2955
|
graphicsStyle?: ControlMeasureStyle;
|
|
2956
|
+
/** Renderer-owned portrayal inputs that must not become authored Graphic state. */
|
|
2957
|
+
context?: ControlMeasureRenderContext;
|
|
2944
2958
|
}
|
|
2945
2959
|
/**
|
|
2946
2960
|
* Pure render: `ControlMeasure` → `ControlMeasureRender` (a
|
|
@@ -3166,6 +3180,15 @@ declare const point12DrawRule: ControlMeasureDrawRule;
|
|
|
3166
3180
|
*/
|
|
3167
3181
|
declare const staticPointDrawRule: ControlMeasureDrawRule;
|
|
3168
3182
|
//#endregion
|
|
3183
|
+
//#region src/draw-rules/point18.d.ts
|
|
3184
|
+
/**
|
|
3185
|
+
* Point18 — doctrinally a numeric, single-anchor symbol. The interactive
|
|
3186
|
+
* authoring model exposes those dimensions as Sector-style radial handles:
|
|
3187
|
+
* P1 is the anchor, P2 fixes the start range/left bearing, and P3 fixes the
|
|
3188
|
+
* stop range/right bearing.
|
|
3189
|
+
*/
|
|
3190
|
+
declare const dynamicPointDrawRule: ControlMeasureDrawRule;
|
|
3191
|
+
//#endregion
|
|
3169
3192
|
//#region src/draw-rules/area7.d.ts
|
|
3170
3193
|
/**
|
|
3171
3194
|
* Area7 anchor draw rule for Attack By Fire.
|
|
@@ -3275,4 +3298,4 @@ interface AmbushOptions {
|
|
|
3275
3298
|
}
|
|
3276
3299
|
declare const DEFAULT_AMBUSH_OPTIONS: Required<AmbushOptions>;
|
|
3277
3300
|
//#endregion
|
|
3278
|
-
export {
|
|
3301
|
+
export { getControlMeasureMetadata as $, DEFAULT_GENERIC_RECTANGLE_OPTIONS as $n, DEFAULT_GENERIC_C2_LINE_OPTIONS as $r, DEFAULT_DELAY_OPTIONS as $t, BaselineFrameOptions as A, PARAMETER_PRESENTATION_TIERS as Ai, ForwardEdgeOfBattleAreaOptions as An, DEFAULT_ENCIRCLEMENT_OPTIONS as Ar, DEFAULT_ANTITANK_WALL_OPTIONS as At, applyBoxTransformOptions as B, CanonicalTextAmplifiers as Bi, DEFAULT_ATTACK_HELICOPTER_OPTIONS as Bn, SecondaryDirectionOfFireOptions as Br, ScreenOptions as Bt, computeDefaultMidpointPerpendicularPoint as C, MeasureTextRequest as Ci, DEFAULT_RELEASE_LINE_OPTIONS as Cn, LandingZoneOptions as Cr, DEFAULT_FRONTAL_ATTACK_OPTIONS as Ct, snapToMidpointPerpendicular as D, ControlMeasureGeometryType as Di, BridgeheadLineOptions as Dn, DEFAULT_ASSEMBLY_AREA_OPTIONS as Dr, DEFAULT_FORTIFIED_LINE_OPTIONS as Dt, pointOnMidpointPerpendicularAxis as E, ControlMeasureGeometry as Ei, HoldingLineOptions as En, AssemblyAreaOptions as Er, FortifiedAreaOptions as Et, roundToFixed as F, parameterPresentationTierRank as Fi, AttackByFireOptions as Fn, FeaturePartProps as Fr, DEFAULT_WITHDRAW_OPTIONS as Ft, ControlMeasure as G, TextAmplifierKey as Gi, RADAR_SEARCH_DOCTRINE_STROKE_COLOR as Gn, DEFAULT_DIRECTION_OF_MAIN_ATTACK_OPTIONS as Gr, DEFAULT_PENETRATE_OPTIONS as Gt, freezeOrientationOptions as H, LabelPlacementOverride as Hi, DEFAULT_AIRBORNE_ATTACK_OPTIONS as Hn, PrincipalDirectionOfFireOptions as Hr, RetireOptions as Ht, SimpleStyleProps as I, resolveParameterPresentationTier as Ii, DEFAULT_ATTACK_BY_FIRE_OPTIONS as In, StyleHints as Ir, WithdrawOptions as It, CONTROL_MEASURE_IDS as J, normalizeTextAmplifiers as Ji, GenericTextOptions as Jn, DirectionOfAttackAviationOptions as Jr, GuardOptions as Jt, cloneControlMeasure as K, TextAmplifiers as Ki, RadarSearchDoctrineOptions as Kn, DirectionOfMainAttackOptions as Kr, PenetrateOptions as Kt, SimpleStyleRender as L, resolveParameterSemanticRole as Li, DEFAULT_SUPPORT_BY_FIRE_OPTIONS as Ln, controlMeasureIdFromFeature as Lr, DEFAULT_SEIZE_OPTIONS as Lt, createBaselineFrame as M, ParameterPresentationTier as Mi, PhaseLineOptions as Mn, DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS as Mr, DEFAULT_ANTITANK_DITCH_OPTIONS as Mt, EPSILON as N, ParameterSemanticRole as Ni, DEFAULT_FLOT_OPTIONS as Nn, FinalProtectiveFireOptions as Nr, DEFAULT_WITHDRAW_UNDER_PRESSURE_OPTIONS as Nt, BaselineFrame as O, ControlMeasureMetadata as Oi, DEFAULT_BRIDGEHEAD_LINE_OPTIONS as On, AreaDefenseOptions as Or, FortifiedLineOptions as Ot, getMetersPerPixel as P, TextAmplifierDescriptor as Pi, FLOTOptions as Pn, ControlMeasureRender as Pr, WithdrawUnderPressureOptions as Pt, OptionsByKind as Q, GenericCircleOptions as Qn, DEFAULT_BATTLE_POSITION_OPTIONS as Qr, DisengageOptions as Qt, toSimpleStyle as R, AmplifierPlacement as Ri, SupportByFireOptions as Rn, DEFAULT_SECONDARY_DIRECTION_OF_FIRE_OPTIONS as Rr, SeizeOptions as Rt, MidpointPerpendicularDrawRuleOptions as S, LogicalTextStyle as Si, HandoverLineOptions as Sn, DEFAULT_LANDING_ZONE_OPTIONS as Sr, TurningMovementOptions as St, getMidpointPerpendicularSignedDistance as T, ControlMeasureFillCapability as Ti, DEFAULT_HOLDING_LINE_OPTIONS as Tn, JointTacticalActionAreaOptions as Tr, DEFAULT_FORTIFIED_AREA_OPTIONS as Tt, RenderOptions as U, TEXT_AMPLIFIER_FIELDS as Ui, DEFAULT_RADAR_SEARCH_DOCTRINE_OPTIONS as Un, DEFAULT_DIRECTION_OF_SUPPORTING_ATTACK_OPTIONS as Ur, DEFAULT_REARWARD_PASSAGE_OF_LINES_OPTIONS as Ut, foldsBoxTransformOptions as V, GeneratedLabelKey as Vi, AirborneAttackOptions as Vn, DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS as Vr, DEFAULT_RETIRE_OPTIONS as Vt, renderControlMeasure as W, TextAmplifierField as Wi, RADAR_SEARCH_DOCTRINE_FILL_COLOR as Wn, DirectionOfSupportingAttackOptions as Wr, RearwardPassageOfLinesOptions as Wt, ControlMeasureId as X, AnchorTransformEvent as Xi, GenericSectorOptions as Xn, StrongPointOptions as Xr, DisruptMissionTaskOptions as Xt, CONTROL_MEASURE_METADATA as Y, resolveAmplifierPlacement as Yi, DEFAULT_GENERIC_SECTOR_OPTIONS as Yn, DEFAULT_STRONG_POINT_OPTIONS as Yr, DEFAULT_DISRUPT_MISSION_TASK_OPTIONS as Yt, ControlMeasureKind as Z, ControlMeasureDrawRule as Zi, DEFAULT_GENERIC_CIRCLE_OPTIONS as Zn, BattlePositionOptions as Zr, DEFAULT_DISENGAGE_OPTIONS as Zt, point12DrawRule as _, DEFAULT_LINE_CAP as _i, BlockMissionTaskOptions as _n, AreaOfOperationsOptions as _r, DEFAULT_DISRUPT_OPTIONS as _t, axis1DrawRule as a, LabelSizeOptions as ai, CounterattackByFireOptions as an, BlockArrowHeadStyle as ar, DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS as at, disruptDrawRule as b, DEFAULT_STROKE_DASH_CSS_PIXELS as bi, DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS as bn, PickupZoneOptions as br, DEFAULT_BLOCK_OPTIONS as bt, line26DrawRule as c, project as ci, DEFAULT_COUNTERATTACK_OPTIONS as cn, ClassicArrowHeadStyle as cr, ObstacleBypassEasyOptions as ct, turnDrawRule as d, BoundaryOptions as di, CanalizeOptions as dn, DEFAULT_SUPPORTING_ATTACK_OPTIONS as dr, DEFAULT_TURN_OPTIONS as dt, GenericC2LineOptions as ei, DelayOptions as en, GenericRectangleOptions as er, getControlMeasureMetadataByValue as et, line1DrawRule as f, DEFAULT_BOUNDARY_OPTIONS as fi, DEFAULT_CANALIZE_OPTIONS as fn, SupportingAttackOptions as fr, TurnOptions as ft, staticPointDrawRule as g, DEFAULT_LABEL_SIZE_CLAMP_CSS_PIXELS as gi, DEFAULT_BREACH_OPTIONS as gn, computeInitialWidthPoint as gr, FixOptions as gt, dynamicPointDrawRule as h, DEFAULT_LABEL_HEIGHT_CSS_PIXELS as hi, BreachOptions as hn, calculateMetrics as hr, DEFAULT_FIX_OPTIONS as ht, rectangleDrawRule as i, LightLineOptions as ii, TacticalArrowOptions as in, GenericLineOptions as ir, ObstacleBypassImpossibleOptions as it, BaselineFrameOrigin as j, ParamDescriptor as ji, DEFAULT_PHASE_LINE_OPTIONS as jn, EncirclementOptions as jr, AntitankDitchOptions as jt, BaselineFrameNormal as k, ControlMeasurePaintCapability as ki, DEFAULT_FORWARD_EDGE_OF_BATTLE_AREA_OPTIONS as kn, DEFAULT_AREA_DEFENSE_OPTIONS as kr, AntitankWallOptions as kt, line24DrawRule as l, sphericalBearing as li, ClearOptions as ln, ClassicArrowOptions as lr, DEFAULT_MINEFIELD_OPTIONS as lt, attackByFireDrawRule as m, ControlMeasureRenderContext as mi, DEFAULT_BYPASS_OPTIONS as mn, MainAttackOptions as mr, FixMissionTaskOptions as mt, DEFAULT_AMBUSH_OPTIONS as n, EngineerWorkLineOptions as ni, DEFAULT_COVER_OPTIONS as nn, GenericPolygonOptions as nr, listControlMeasureMetadata as nt, supportByFireDrawRule as o, Point2D as oi, DEFAULT_COUNTERATTACK_BY_FIRE_OPTIONS as on, BlockArrowOptions as or, ObstacleBypassDifficultOptions as ot, ambushDrawRule as p, BoxTransformDelta as pi, BypassOptions as pn, DEFAULT_MAIN_ATTACK_OPTIONS as pr, DEFAULT_FIX_MISSION_TASK_OPTIONS as pt, isKind as q, canonicalTextAmplifierKey as qi, DEFAULT_GENERIC_TEXT_OPTIONS as qn, DEFAULT_DIRECTION_OF_ATTACK_AVIATION_OPTIONS as qr, DEFAULT_GUARD_OPTIONS as qt, sectorDrawRule as r, DEFAULT_LIGHT_LINE_OPTIONS as ri, DEFAULT_TACTICAL_ARROW_OPTIONS as rn, DEFAULT_GENERIC_LINE_OPTIONS as rr, DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS as rt, line27DrawRule as s, haversineDistance as si, CounterattackOptions as sn, DEFAULT_BLOCK_ARROW_OPTIONS as sr, DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS as st, AmbushOptions as t, DEFAULT_ENGINEER_WORK_LINE_OPTIONS as ti, CoverOptions as tn, DEFAULT_GENERIC_POLYGON_OPTIONS as tr, getDefaultOptions as tt, line23DrawRule as u, unproject as ui, DEFAULT_CLEAR_OPTIONS as un, DEFAULT_CLASSIC_ARROW_OPTIONS as ur, MinefieldOptions as ut, penetrateDrawRule as v, DEFAULT_LINE_JOIN as vi, DEFAULT_BLOCK_MISSION_TASK_OPTIONS as vn, DEFAULT_AREA_OF_OPERATIONS_OPTIONS as vr, DisruptOptions as vt, createMidpointPerpendicularDrawRule as w, MeasuredText as wi, ReleaseLineOptions as wn, DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS as wr, FrontalAttackOptions as wt, blockDrawRule as x, DEFAULT_STROKE_WIDTH_CSS_PIXELS as xi, DEFAULT_HANDOVER_LINE_OPTIONS as xn, MineType as xr, DEFAULT_TURNING_MOVEMENT_OPTIONS as xt, centerRadiusDrawRule as y, DEFAULT_PORTRAYAL as yi, BattleHandoverLineOptions as yn, DEFAULT_PICKUP_ZONE_OPTIONS as yr, BlockOptions as yt, resolveStyleHints as z, AmplifierPlacements as zi, AttackHelicopterOptions as zn, SECONDARY_DIRECTION_OF_FIRE_DASH as zr, DEFAULT_SCREEN_OPTIONS as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
|
|
1
|
+
import { $ as getControlMeasureMetadata, $n as DEFAULT_GENERIC_RECTANGLE_OPTIONS, $r as DEFAULT_GENERIC_C2_LINE_OPTIONS, $t as DEFAULT_DELAY_OPTIONS, A as BaselineFrameOptions, Ai as PARAMETER_PRESENTATION_TIERS, An as ForwardEdgeOfBattleAreaOptions, Ar as DEFAULT_ENCIRCLEMENT_OPTIONS, At as DEFAULT_ANTITANK_WALL_OPTIONS, B as applyBoxTransformOptions, Bi as CanonicalTextAmplifiers, Bn as DEFAULT_ATTACK_HELICOPTER_OPTIONS, Br as SecondaryDirectionOfFireOptions, Bt as ScreenOptions, C as computeDefaultMidpointPerpendicularPoint, Ci as MeasureTextRequest, Cn as DEFAULT_RELEASE_LINE_OPTIONS, Cr as LandingZoneOptions, Ct as DEFAULT_FRONTAL_ATTACK_OPTIONS, D as snapToMidpointPerpendicular, Di as ControlMeasureGeometryType, Dn as BridgeheadLineOptions, Dr as DEFAULT_ASSEMBLY_AREA_OPTIONS, Dt as DEFAULT_FORTIFIED_LINE_OPTIONS, E as pointOnMidpointPerpendicularAxis, Ei as ControlMeasureGeometry, En as HoldingLineOptions, Er as AssemblyAreaOptions, Et as FortifiedAreaOptions, F as roundToFixed, Fi as parameterPresentationTierRank, Fn as AttackByFireOptions, Fr as FeaturePartProps, Ft as DEFAULT_WITHDRAW_OPTIONS, G as ControlMeasure, Gi as TextAmplifierKey, Gn as RADAR_SEARCH_DOCTRINE_STROKE_COLOR, Gr as DEFAULT_DIRECTION_OF_MAIN_ATTACK_OPTIONS, Gt as DEFAULT_PENETRATE_OPTIONS, H as freezeOrientationOptions, Hi as LabelPlacementOverride, Hn as DEFAULT_AIRBORNE_ATTACK_OPTIONS, Hr as PrincipalDirectionOfFireOptions, Ht as RetireOptions, I as SimpleStyleProps, Ii as resolveParameterPresentationTier, In as DEFAULT_ATTACK_BY_FIRE_OPTIONS, Ir as StyleHints, It as WithdrawOptions, J as CONTROL_MEASURE_IDS, Ji as normalizeTextAmplifiers, Jn as GenericTextOptions, Jr as DirectionOfAttackAviationOptions, Jt as GuardOptions, K as cloneControlMeasure, Ki as TextAmplifiers, Kn as RadarSearchDoctrineOptions, Kr as DirectionOfMainAttackOptions, Kt as PenetrateOptions, L as SimpleStyleRender, Li as resolveParameterSemanticRole, Ln as DEFAULT_SUPPORT_BY_FIRE_OPTIONS, Lr as controlMeasureIdFromFeature, Lt as DEFAULT_SEIZE_OPTIONS, M as createBaselineFrame, Mi as ParameterPresentationTier, Mn as PhaseLineOptions, Mr as DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS, Mt as DEFAULT_ANTITANK_DITCH_OPTIONS, N as EPSILON, Ni as ParameterSemanticRole, Nn as DEFAULT_FLOT_OPTIONS, Nr as FinalProtectiveFireOptions, Nt as DEFAULT_WITHDRAW_UNDER_PRESSURE_OPTIONS, O as BaselineFrame, Oi as ControlMeasureMetadata, On as DEFAULT_BRIDGEHEAD_LINE_OPTIONS, Or as AreaDefenseOptions, Ot as FortifiedLineOptions, P as getMetersPerPixel, Pi as TextAmplifierDescriptor, Pn as FLOTOptions, Pr as ControlMeasureRender, Pt as WithdrawUnderPressureOptions, Q as OptionsByKind, Qn as GenericCircleOptions, Qr as DEFAULT_BATTLE_POSITION_OPTIONS, Qt as DisengageOptions, R as toSimpleStyle, Ri as AmplifierPlacement, Rn as SupportByFireOptions, Rr as DEFAULT_SECONDARY_DIRECTION_OF_FIRE_OPTIONS, Rt as SeizeOptions, S as MidpointPerpendicularDrawRuleOptions, Si as LogicalTextStyle, Sn as HandoverLineOptions, Sr as DEFAULT_LANDING_ZONE_OPTIONS, St as TurningMovementOptions, T as getMidpointPerpendicularSignedDistance, Ti as ControlMeasureFillCapability, Tn as DEFAULT_HOLDING_LINE_OPTIONS, Tr as JointTacticalActionAreaOptions, Tt as DEFAULT_FORTIFIED_AREA_OPTIONS, U as RenderOptions, Ui as TEXT_AMPLIFIER_FIELDS, Un as DEFAULT_RADAR_SEARCH_DOCTRINE_OPTIONS, Ur as DEFAULT_DIRECTION_OF_SUPPORTING_ATTACK_OPTIONS, Ut as DEFAULT_REARWARD_PASSAGE_OF_LINES_OPTIONS, V as foldsBoxTransformOptions, Vi as GeneratedLabelKey, Vn as AirborneAttackOptions, Vr as DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, Vt as DEFAULT_RETIRE_OPTIONS, W as renderControlMeasure, Wi as TextAmplifierField, Wn as RADAR_SEARCH_DOCTRINE_FILL_COLOR, Wr as DirectionOfSupportingAttackOptions, Wt as RearwardPassageOfLinesOptions, X as ControlMeasureId, Xi as AnchorTransformEvent, Xn as GenericSectorOptions, Xr as StrongPointOptions, Xt as DisruptMissionTaskOptions, Y as CONTROL_MEASURE_METADATA, Yi as resolveAmplifierPlacement, Yn as DEFAULT_GENERIC_SECTOR_OPTIONS, Yr as DEFAULT_STRONG_POINT_OPTIONS, Yt as DEFAULT_DISRUPT_MISSION_TASK_OPTIONS, Z as ControlMeasureKind, Zi as ControlMeasureDrawRule, Zn as DEFAULT_GENERIC_CIRCLE_OPTIONS, Zr as BattlePositionOptions, Zt as DEFAULT_DISENGAGE_OPTIONS, _ as point12DrawRule, _i as DEFAULT_LINE_CAP, _n as BlockMissionTaskOptions, _r as AreaOfOperationsOptions, _t as DEFAULT_DISRUPT_OPTIONS, a as axis1DrawRule, ai as LabelSizeOptions, an as CounterattackByFireOptions, ar as BlockArrowHeadStyle, at as DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, b as disruptDrawRule, bi as DEFAULT_STROKE_DASH_CSS_PIXELS, bn as DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS, br as PickupZoneOptions, bt as DEFAULT_BLOCK_OPTIONS, c as line26DrawRule, ci as project, cn as DEFAULT_COUNTERATTACK_OPTIONS, cr as ClassicArrowHeadStyle, ct as ObstacleBypassEasyOptions, d as turnDrawRule, di as BoundaryOptions, dn as CanalizeOptions, dr as DEFAULT_SUPPORTING_ATTACK_OPTIONS, dt as DEFAULT_TURN_OPTIONS, ei as GenericC2LineOptions, en as DelayOptions, er as GenericRectangleOptions, et as getControlMeasureMetadataByValue, f as line1DrawRule, fi as DEFAULT_BOUNDARY_OPTIONS, fn as DEFAULT_CANALIZE_OPTIONS, fr as SupportingAttackOptions, ft as TurnOptions, g as staticPointDrawRule, gi as DEFAULT_LABEL_SIZE_CLAMP_CSS_PIXELS, gn as DEFAULT_BREACH_OPTIONS, gr as computeInitialWidthPoint, gt as FixOptions, h as dynamicPointDrawRule, hi as DEFAULT_LABEL_HEIGHT_CSS_PIXELS, hn as BreachOptions, hr as calculateMetrics, ht as DEFAULT_FIX_OPTIONS, i as rectangleDrawRule, ii as LightLineOptions, in as TacticalArrowOptions, ir as GenericLineOptions, it as ObstacleBypassImpossibleOptions, j as BaselineFrameOrigin, ji as ParamDescriptor, jn as DEFAULT_PHASE_LINE_OPTIONS, jr as EncirclementOptions, jt as AntitankDitchOptions, k as BaselineFrameNormal, ki as ControlMeasurePaintCapability, kn as DEFAULT_FORWARD_EDGE_OF_BATTLE_AREA_OPTIONS, kr as DEFAULT_AREA_DEFENSE_OPTIONS, kt as AntitankWallOptions, l as line24DrawRule, li as sphericalBearing, ln as ClearOptions, lr as ClassicArrowOptions, lt as DEFAULT_MINEFIELD_OPTIONS, m as attackByFireDrawRule, mi as ControlMeasureRenderContext, mn as DEFAULT_BYPASS_OPTIONS, mr as MainAttackOptions, mt as FixMissionTaskOptions, n as DEFAULT_AMBUSH_OPTIONS, ni as EngineerWorkLineOptions, nn as DEFAULT_COVER_OPTIONS, nr as GenericPolygonOptions, nt as listControlMeasureMetadata, o as supportByFireDrawRule, oi as Point2D, on as DEFAULT_COUNTERATTACK_BY_FIRE_OPTIONS, or as BlockArrowOptions, ot as ObstacleBypassDifficultOptions, p as ambushDrawRule, pi as BoxTransformDelta, pn as BypassOptions, pr as DEFAULT_MAIN_ATTACK_OPTIONS, pt as DEFAULT_FIX_MISSION_TASK_OPTIONS, q as isKind, qi as canonicalTextAmplifierKey, qn as DEFAULT_GENERIC_TEXT_OPTIONS, qr as DEFAULT_DIRECTION_OF_ATTACK_AVIATION_OPTIONS, qt as DEFAULT_GUARD_OPTIONS, r as sectorDrawRule, ri as DEFAULT_LIGHT_LINE_OPTIONS, rn as DEFAULT_TACTICAL_ARROW_OPTIONS, rr as DEFAULT_GENERIC_LINE_OPTIONS, rt as DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, s as line27DrawRule, si as haversineDistance, sn as CounterattackOptions, sr as DEFAULT_BLOCK_ARROW_OPTIONS, st as DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, t as AmbushOptions, ti as DEFAULT_ENGINEER_WORK_LINE_OPTIONS, tn as CoverOptions, tr as DEFAULT_GENERIC_POLYGON_OPTIONS, tt as getDefaultOptions, u as line23DrawRule, ui as unproject, un as DEFAULT_CLEAR_OPTIONS, ur as DEFAULT_CLASSIC_ARROW_OPTIONS, ut as MinefieldOptions, v as penetrateDrawRule, vi as DEFAULT_LINE_JOIN, vn as DEFAULT_BLOCK_MISSION_TASK_OPTIONS, vr as DEFAULT_AREA_OF_OPERATIONS_OPTIONS, vt as DisruptOptions, w as createMidpointPerpendicularDrawRule, wi as MeasuredText, wn as ReleaseLineOptions, wr as DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS, wt as FrontalAttackOptions, x as blockDrawRule, xi as DEFAULT_STROKE_WIDTH_CSS_PIXELS, xn as DEFAULT_HANDOVER_LINE_OPTIONS, xr as MineType, xt as DEFAULT_TURNING_MOVEMENT_OPTIONS, y as centerRadiusDrawRule, yi as DEFAULT_PORTRAYAL, yn as BattleHandoverLineOptions, yr as DEFAULT_PICKUP_ZONE_OPTIONS, yt as BlockOptions, z as resolveStyleHints, zi as AmplifierPlacements, zn as AttackHelicopterOptions, zr as SECONDARY_DIRECTION_OF_FIRE_DASH, zt as DEFAULT_SCREEN_OPTIONS } from "./index-B3LgMKpn.mjs";
|
|
2
|
+
import { a as PatternId, c as PatternPoint, d as ControlMeasureStyle, f as FillPattern, i as NON_SOLID_FILL_PATTERNS, l as PatternStroke, n as FillPatternCommand, o as PatternPaint, r as FillPatternDefinition, s as PatternPathOperation, t as FILL_PATTERN_DEFINITIONS, u as getFillPatternDefinition } from "./patterns-CcQmmOuJ.mjs";
|
|
3
|
+
export { type AirborneAttackOptions, type AmbushOptions, type AmplifierPlacement, type AmplifierPlacements, type AnchorTransformEvent, type AntitankDitchOptions, type AntitankWallOptions, type AreaDefenseOptions, type AreaOfOperationsOptions, type AssemblyAreaOptions, type AttackByFireOptions, type AttackHelicopterOptions, type BaselineFrame, type BaselineFrameNormal, type BaselineFrameOptions, type BaselineFrameOrigin, type BattleHandoverLineOptions, type BattlePositionOptions, type BlockArrowHeadStyle, type BlockArrowOptions, type BlockMissionTaskOptions, type BlockOptions, type BoundaryOptions, type BoxTransformDelta, type BreachOptions, type BridgeheadLineOptions, type BypassOptions, CONTROL_MEASURE_IDS, CONTROL_MEASURE_METADATA, type CanalizeOptions, type CanonicalTextAmplifiers, type ClassicArrowHeadStyle, type ClassicArrowOptions, type ClearOptions, type ControlMeasure, type ControlMeasureDrawRule, type ControlMeasureFillCapability, type ControlMeasureGeometry, type ControlMeasureGeometryType, type ControlMeasureId, type ControlMeasureKind, type ControlMeasureMetadata, type ControlMeasurePaintCapability, type ControlMeasureRender, type ControlMeasureRenderContext, type ControlMeasureStyle, type CounterattackByFireOptions, type CounterattackOptions, type CoverOptions, DEFAULT_AIRBORNE_ATTACK_OPTIONS, DEFAULT_AMBUSH_OPTIONS, DEFAULT_ANTITANK_DITCH_OPTIONS, DEFAULT_ANTITANK_WALL_OPTIONS, DEFAULT_AREA_DEFENSE_OPTIONS, DEFAULT_AREA_OF_OPERATIONS_OPTIONS, DEFAULT_ASSEMBLY_AREA_OPTIONS, DEFAULT_ATTACK_BY_FIRE_OPTIONS, DEFAULT_ATTACK_HELICOPTER_OPTIONS, DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS, DEFAULT_BATTLE_POSITION_OPTIONS, DEFAULT_BLOCK_ARROW_OPTIONS, DEFAULT_BLOCK_MISSION_TASK_OPTIONS, DEFAULT_BLOCK_OPTIONS, DEFAULT_BOUNDARY_OPTIONS, DEFAULT_BREACH_OPTIONS, DEFAULT_BRIDGEHEAD_LINE_OPTIONS, DEFAULT_BYPASS_OPTIONS, DEFAULT_CANALIZE_OPTIONS, DEFAULT_CLASSIC_ARROW_OPTIONS, DEFAULT_CLEAR_OPTIONS, DEFAULT_COUNTERATTACK_BY_FIRE_OPTIONS, DEFAULT_COUNTERATTACK_OPTIONS, DEFAULT_COVER_OPTIONS, DEFAULT_DELAY_OPTIONS, DEFAULT_DIRECTION_OF_ATTACK_AVIATION_OPTIONS, DEFAULT_DIRECTION_OF_MAIN_ATTACK_OPTIONS, DEFAULT_DIRECTION_OF_SUPPORTING_ATTACK_OPTIONS, DEFAULT_DISENGAGE_OPTIONS, DEFAULT_DISRUPT_MISSION_TASK_OPTIONS, DEFAULT_DISRUPT_OPTIONS, DEFAULT_ENCIRCLEMENT_OPTIONS, DEFAULT_ENGINEER_WORK_LINE_OPTIONS, DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS, DEFAULT_FIX_MISSION_TASK_OPTIONS, DEFAULT_FIX_OPTIONS, DEFAULT_FLOT_OPTIONS, DEFAULT_FORTIFIED_AREA_OPTIONS, DEFAULT_FORTIFIED_LINE_OPTIONS, DEFAULT_FORWARD_EDGE_OF_BATTLE_AREA_OPTIONS, DEFAULT_FRONTAL_ATTACK_OPTIONS, DEFAULT_GENERIC_C2_LINE_OPTIONS, DEFAULT_GENERIC_CIRCLE_OPTIONS, DEFAULT_GENERIC_LINE_OPTIONS, DEFAULT_GENERIC_POLYGON_OPTIONS, DEFAULT_GENERIC_RECTANGLE_OPTIONS, DEFAULT_GENERIC_SECTOR_OPTIONS, DEFAULT_GENERIC_TEXT_OPTIONS, DEFAULT_GUARD_OPTIONS, DEFAULT_HANDOVER_LINE_OPTIONS, DEFAULT_HOLDING_LINE_OPTIONS, DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS, DEFAULT_LABEL_HEIGHT_CSS_PIXELS, DEFAULT_LABEL_SIZE_CLAMP_CSS_PIXELS, DEFAULT_LANDING_ZONE_OPTIONS, DEFAULT_LIGHT_LINE_OPTIONS, DEFAULT_LINE_CAP, DEFAULT_LINE_JOIN, DEFAULT_MAIN_ATTACK_OPTIONS, DEFAULT_MINEFIELD_OPTIONS, DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, DEFAULT_PENETRATE_OPTIONS, DEFAULT_PHASE_LINE_OPTIONS, DEFAULT_PICKUP_ZONE_OPTIONS, DEFAULT_PORTRAYAL, DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, DEFAULT_RADAR_SEARCH_DOCTRINE_OPTIONS, DEFAULT_REARWARD_PASSAGE_OF_LINES_OPTIONS, DEFAULT_RELEASE_LINE_OPTIONS, DEFAULT_RETIRE_OPTIONS, DEFAULT_SCREEN_OPTIONS, DEFAULT_SECONDARY_DIRECTION_OF_FIRE_OPTIONS, DEFAULT_SEIZE_OPTIONS, DEFAULT_STROKE_DASH_CSS_PIXELS, DEFAULT_STROKE_WIDTH_CSS_PIXELS, DEFAULT_STRONG_POINT_OPTIONS, DEFAULT_SUPPORTING_ATTACK_OPTIONS, DEFAULT_SUPPORT_BY_FIRE_OPTIONS, DEFAULT_TACTICAL_ARROW_OPTIONS, DEFAULT_TURNING_MOVEMENT_OPTIONS, DEFAULT_TURN_OPTIONS, DEFAULT_WITHDRAW_OPTIONS, DEFAULT_WITHDRAW_UNDER_PRESSURE_OPTIONS, type DelayOptions, type DirectionOfAttackAviationOptions, type DirectionOfMainAttackOptions, type DirectionOfSupportingAttackOptions, type DisengageOptions, type DisruptMissionTaskOptions, type DisruptOptions, EPSILON, type EncirclementOptions, type EngineerWorkLineOptions, FILL_PATTERN_DEFINITIONS, type FLOTOptions, type FeaturePartProps, type FillPattern, type FillPatternCommand, type FillPatternDefinition, type FinalProtectiveFireOptions, type FixMissionTaskOptions, type FixOptions, type FortifiedAreaOptions, type FortifiedLineOptions, type ForwardEdgeOfBattleAreaOptions, type FrontalAttackOptions, type GeneratedLabelKey, type GenericC2LineOptions, type GenericCircleOptions, type GenericLineOptions, type GenericPolygonOptions, type GenericRectangleOptions, type GenericSectorOptions, type GenericTextOptions, type GuardOptions, type HandoverLineOptions, type HoldingLineOptions, type JointTacticalActionAreaOptions, type LabelPlacementOverride, type LabelSizeOptions, type LandingZoneOptions, type LightLineOptions, type LogicalTextStyle, type MainAttackOptions, type MeasureTextRequest, type MeasuredText, type MidpointPerpendicularDrawRuleOptions, type MineType, type MinefieldOptions, NON_SOLID_FILL_PATTERNS, type ObstacleBypassDifficultOptions, type ObstacleBypassEasyOptions, type ObstacleBypassImpossibleOptions, type OptionsByKind, PARAMETER_PRESENTATION_TIERS, type ParamDescriptor, type ParameterPresentationTier, type ParameterSemanticRole, type PatternId, type PatternPaint, type PatternPathOperation, type PatternPoint, type PatternStroke, type PenetrateOptions, type PhaseLineOptions, type PickupZoneOptions, type Point2D, type PrincipalDirectionOfFireOptions, RADAR_SEARCH_DOCTRINE_FILL_COLOR, RADAR_SEARCH_DOCTRINE_STROKE_COLOR, type RadarSearchDoctrineOptions, type RearwardPassageOfLinesOptions, type ReleaseLineOptions, type RenderOptions, type RetireOptions, SECONDARY_DIRECTION_OF_FIRE_DASH, type ScreenOptions, type SecondaryDirectionOfFireOptions, type SeizeOptions, type SimpleStyleProps, type SimpleStyleRender, type StrongPointOptions, type StyleHints, type SupportByFireOptions, type SupportingAttackOptions, TEXT_AMPLIFIER_FIELDS, type TacticalArrowOptions, type TextAmplifierDescriptor, type TextAmplifierField, type TextAmplifierKey, type TextAmplifiers, type TurnOptions, type TurningMovementOptions, type WithdrawOptions, type WithdrawUnderPressureOptions, ambushDrawRule, applyBoxTransformOptions, attackByFireDrawRule, axis1DrawRule, blockDrawRule, calculateMetrics, canonicalTextAmplifierKey, centerRadiusDrawRule, cloneControlMeasure, computeDefaultMidpointPerpendicularPoint, computeInitialWidthPoint, controlMeasureIdFromFeature, createBaselineFrame, createMidpointPerpendicularDrawRule, disruptDrawRule, dynamicPointDrawRule, foldsBoxTransformOptions, freezeOrientationOptions, getControlMeasureMetadata, getControlMeasureMetadataByValue, getDefaultOptions, getFillPatternDefinition, getMetersPerPixel, getMidpointPerpendicularSignedDistance, haversineDistance, isKind, line1DrawRule, line23DrawRule, line24DrawRule, line26DrawRule, line27DrawRule, listControlMeasureMetadata, normalizeTextAmplifiers, parameterPresentationTierRank, penetrateDrawRule, point12DrawRule, pointOnMidpointPerpendicularAxis, project, rectangleDrawRule, renderControlMeasure, resolveAmplifierPlacement, resolveParameterPresentationTier, resolveParameterSemanticRole, resolveStyleHints, roundToFixed, sectorDrawRule, snapToMidpointPerpendicular, sphericalBearing, staticPointDrawRule, supportByFireDrawRule, toSimpleStyle, turnDrawRule, unproject };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { $ as DEFAULT_TACTICAL_ARROW_OPTIONS, $t as
|
|
1
|
+
import { $ as DEFAULT_TACTICAL_ARROW_OPTIONS, $t as line26DrawRule, A as DEFAULT_REARWARD_PASSAGE_OF_LINES_OPTIONS, At as DEFAULT_AREA_OF_OPERATIONS_OPTIONS, B as DEFAULT_BRIDGEHEAD_LINE_OPTIONS, Bt as DEFAULT_LABEL_SIZE_CLAMP_CSS_PIXELS, C as DEFAULT_LANDING_ZONE_OPTIONS, Cn as project, Ct as DEFAULT_BLOCK_OPTIONS, D as DEFAULT_SEIZE_OPTIONS, Dn as getMetersPerPixel, Dt as DEFAULT_ANTITANK_WALL_OPTIONS, E as DEFAULT_WITHDRAW_OPTIONS, En as EPSILON, Et as DEFAULT_ATTACK_BY_FIRE_OPTIONS, F as DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS, Ft as TEXT_AMPLIFIER_FIELDS, G as DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS, Gt as DEFAULT_STROKE_WIDTH_CSS_PIXELS, H as DEFAULT_FLOT_OPTIONS, Ht as DEFAULT_LINE_JOIN, I as DEFAULT_HANDOVER_LINE_OPTIONS, It as canonicalTextAmplifierKey, J as DEFAULT_GUARD_OPTIONS, Jt as DEFAULT_AIRBORNE_ATTACK_OPTIONS, K as DEFAULT_ENCIRCLEMENT_OPTIONS, L as DEFAULT_FORWARD_EDGE_OF_BATTLE_AREA_OPTIONS, Lt as normalizeTextAmplifiers, M as DEFAULT_FRONTAL_ATTACK_OPTIONS, Mt as DEFAULT_DIRECTION_OF_SUPPORTING_ATTACK_OPTIONS, N as DEFAULT_FORTIFIED_AREA_OPTIONS, Nt as DEFAULT_DIRECTION_OF_MAIN_ATTACK_OPTIONS, O as DEFAULT_SCREEN_OPTIONS, On as roundToFixed, Ot as DEFAULT_ANTITANK_DITCH_OPTIONS, P as DEFAULT_FORTIFIED_LINE_OPTIONS, Pt as DEFAULT_DIRECTION_OF_ATTACK_AVIATION_OPTIONS, Q as DEFAULT_COVER_OPTIONS, Qt as line27DrawRule, R as DEFAULT_RELEASE_LINE_OPTIONS, Rt as resolveAmplifierPlacement, S as DEFAULT_MAIN_ATTACK_OPTIONS, Sn as haversineDistance, St as DEFAULT_BLOCK_ARROW_OPTIONS, T as DEFAULT_WITHDRAW_UNDER_PRESSURE_OPTIONS, Tn as unproject, Tt as DEFAULT_ATTACK_HELICOPTER_OPTIONS, U as DEFAULT_FIX_MISSION_TASK_OPTIONS, Ut as DEFAULT_PORTRAYAL, V as DEFAULT_PHASE_LINE_OPTIONS, Vt as DEFAULT_LINE_CAP, W as DEFAULT_FIX_OPTIONS, Wt as DEFAULT_STROKE_DASH_CSS_PIXELS, X as DEFAULT_DISENGAGE_OPTIONS, Xt as axis1DrawRule, Y as DEFAULT_DISRUPT_MISSION_TASK_OPTIONS, Yt as rectangleDrawRule, Z as DEFAULT_DELAY_OPTIONS, Zt as supportByFireDrawRule, _ as DEFAULT_PICKUP_ZONE_OPTIONS, _n as pointOnMidpointPerpendicularAxis, _t as DEFAULT_BLOCK_MISSION_TASK_OPTIONS, a as DEFINITIONS, an as attackByFireDrawRule, at as RADAR_SEARCH_DOCTRINE_FILL_COLOR, b as DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, bn as calculateMetrics, bt as DEFAULT_LIGHT_LINE_OPTIONS, c as getDefaultOptions, cn as staticPointDrawRule, ct as DEFAULT_GENERIC_SECTOR_OPTIONS, d as DEFAULT_TURN_OPTIONS, dn as centerRadiusDrawRule, dt as DEFAULT_GENERIC_LINE_OPTIONS, en as line24DrawRule, et as DEFAULT_COUNTERATTACK_BY_FIRE_OPTIONS, f as DEFAULT_SUPPORT_BY_FIRE_OPTIONS, fn as disruptDrawRule, ft as DEFAULT_GENERIC_CIRCLE_OPTIONS, g as DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, gn as getMidpointPerpendicularSignedDistance, gt as DEFAULT_BREACH_OPTIONS, h as SECONDARY_DIRECTION_OF_FIRE_DASH, hn as createMidpointPerpendicularDrawRule, ht as DEFAULT_BYPASS_OPTIONS, i as CONTROL_MEASURE_METADATA, in as ambushDrawRule, it as DEFAULT_RADAR_SEARCH_DOCTRINE_OPTIONS, j as DEFAULT_PENETRATE_OPTIONS, jt as DEFAULT_AREA_DEFENSE_OPTIONS, k as DEFAULT_RETIRE_OPTIONS, kt as DEFAULT_ASSEMBLY_AREA_OPTIONS, l as listControlMeasureMetadata, ln as point12DrawRule, lt as DEFAULT_GENERIC_RECTANGLE_OPTIONS, m as DEFAULT_SECONDARY_DIRECTION_OF_FIRE_OPTIONS, mn as computeDefaultMidpointPerpendicularPoint, mt as DEFAULT_CANALIZE_OPTIONS, n as resolveStyleHints, nn as turnDrawRule, nt as DEFAULT_SUPPORTING_ATTACK_OPTIONS, o as getControlMeasureMetadata, on as dynamicPointDrawRule, ot as RADAR_SEARCH_DOCTRINE_STROKE_COLOR, p as DEFAULT_STRONG_POINT_OPTIONS, pn as blockDrawRule, pt as DEFAULT_CLASSIC_ARROW_OPTIONS, q as DEFAULT_DISRUPT_OPTIONS, qt as DEFAULT_AMBUSH_OPTIONS, r as CONTROL_MEASURE_IDS, rn as line1DrawRule, rt as DEFAULT_CLEAR_OPTIONS, s as getControlMeasureMetadataByValue, sn as sectorDrawRule, st as DEFAULT_GENERIC_TEXT_OPTIONS, t as renderControlMeasure, tn as line23DrawRule, tt as DEFAULT_COUNTERATTACK_OPTIONS, u as DEFAULT_TURNING_MOVEMENT_OPTIONS, un as penetrateDrawRule, ut as DEFAULT_GENERIC_POLYGON_OPTIONS, v as DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, vn as snapToMidpointPerpendicular, vt as DEFAULT_GENERIC_C2_LINE_OPTIONS, w as DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS, wn as sphericalBearing, wt as DEFAULT_BATTLE_POSITION_OPTIONS, x as DEFAULT_MINEFIELD_OPTIONS, xn as computeInitialWidthPoint, xt as DEFAULT_BOUNDARY_OPTIONS, y as DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, yn as createBaselineFrame, yt as DEFAULT_ENGINEER_WORK_LINE_OPTIONS, z as DEFAULT_HOLDING_LINE_OPTIONS, zt as DEFAULT_LABEL_HEIGHT_CSS_PIXELS } from "./renderControlMeasure-GsV4DV3r.mjs";
|
|
2
|
+
import { FILL_PATTERN_DEFINITIONS, NON_SOLID_FILL_PATTERNS, getFillPatternDefinition } from "./patterns.mjs";
|
|
2
3
|
//#region src/metadata.ts
|
|
3
4
|
const PARAMETER_PRESENTATION_TIERS = [
|
|
4
5
|
"primary",
|
|
@@ -156,4 +157,4 @@ function toHexChannel(value) {
|
|
|
156
157
|
return Math.max(0, Math.min(255, Math.round(value))).toString(16).padStart(2, "0");
|
|
157
158
|
}
|
|
158
159
|
//#endregion
|
|
159
|
-
export { CONTROL_MEASURE_IDS, CONTROL_MEASURE_METADATA, DEFAULT_AIRBORNE_ATTACK_OPTIONS, DEFAULT_AMBUSH_OPTIONS, DEFAULT_ANTITANK_DITCH_OPTIONS, DEFAULT_ANTITANK_WALL_OPTIONS, DEFAULT_AREA_DEFENSE_OPTIONS, DEFAULT_AREA_OF_OPERATIONS_OPTIONS, DEFAULT_ASSEMBLY_AREA_OPTIONS, DEFAULT_ATTACK_BY_FIRE_OPTIONS, DEFAULT_ATTACK_HELICOPTER_OPTIONS, DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS, DEFAULT_BATTLE_POSITION_OPTIONS, DEFAULT_BLOCK_ARROW_OPTIONS, DEFAULT_BLOCK_MISSION_TASK_OPTIONS, DEFAULT_BLOCK_OPTIONS, DEFAULT_BOUNDARY_OPTIONS, DEFAULT_BREACH_OPTIONS, DEFAULT_BRIDGEHEAD_LINE_OPTIONS, DEFAULT_BYPASS_OPTIONS, DEFAULT_CANALIZE_OPTIONS, DEFAULT_CLASSIC_ARROW_OPTIONS, DEFAULT_CLEAR_OPTIONS, DEFAULT_COUNTERATTACK_BY_FIRE_OPTIONS, DEFAULT_COUNTERATTACK_OPTIONS, DEFAULT_COVER_OPTIONS, DEFAULT_DELAY_OPTIONS, DEFAULT_DIRECTION_OF_ATTACK_AVIATION_OPTIONS, DEFAULT_DIRECTION_OF_MAIN_ATTACK_OPTIONS, DEFAULT_DIRECTION_OF_SUPPORTING_ATTACK_OPTIONS, DEFAULT_DISENGAGE_OPTIONS, DEFAULT_DISRUPT_MISSION_TASK_OPTIONS, DEFAULT_DISRUPT_OPTIONS, DEFAULT_ENCIRCLEMENT_OPTIONS, DEFAULT_ENGINEER_WORK_LINE_OPTIONS, DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS, DEFAULT_FIX_MISSION_TASK_OPTIONS, DEFAULT_FIX_OPTIONS, DEFAULT_FLOT_OPTIONS, DEFAULT_FORTIFIED_AREA_OPTIONS, DEFAULT_FORTIFIED_LINE_OPTIONS, DEFAULT_FORWARD_EDGE_OF_BATTLE_AREA_OPTIONS, DEFAULT_FRONTAL_ATTACK_OPTIONS, DEFAULT_GENERIC_C2_LINE_OPTIONS, DEFAULT_GENERIC_CIRCLE_OPTIONS, DEFAULT_GENERIC_LINE_OPTIONS, DEFAULT_GENERIC_POLYGON_OPTIONS, DEFAULT_GENERIC_RECTANGLE_OPTIONS, DEFAULT_GENERIC_SECTOR_OPTIONS, DEFAULT_GENERIC_TEXT_OPTIONS, DEFAULT_GUARD_OPTIONS, DEFAULT_HANDOVER_LINE_OPTIONS, DEFAULT_HOLDING_LINE_OPTIONS, DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS, DEFAULT_LANDING_ZONE_OPTIONS, DEFAULT_LIGHT_LINE_OPTIONS, DEFAULT_MAIN_ATTACK_OPTIONS, DEFAULT_MINEFIELD_OPTIONS, DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, DEFAULT_PENETRATE_OPTIONS, DEFAULT_PHASE_LINE_OPTIONS, DEFAULT_PICKUP_ZONE_OPTIONS, DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, DEFAULT_REARWARD_PASSAGE_OF_LINES_OPTIONS, DEFAULT_RELEASE_LINE_OPTIONS, DEFAULT_RETIRE_OPTIONS, DEFAULT_SCREEN_OPTIONS, DEFAULT_SECONDARY_DIRECTION_OF_FIRE_OPTIONS, DEFAULT_SEIZE_OPTIONS, DEFAULT_STRONG_POINT_OPTIONS, DEFAULT_SUPPORTING_ATTACK_OPTIONS, DEFAULT_SUPPORT_BY_FIRE_OPTIONS, DEFAULT_TACTICAL_ARROW_OPTIONS, DEFAULT_TURNING_MOVEMENT_OPTIONS, DEFAULT_TURN_OPTIONS, DEFAULT_WITHDRAW_OPTIONS, DEFAULT_WITHDRAW_UNDER_PRESSURE_OPTIONS, EPSILON, PARAMETER_PRESENTATION_TIERS, SECONDARY_DIRECTION_OF_FIRE_DASH, TEXT_AMPLIFIER_FIELDS, ambushDrawRule, applyBoxTransformOptions, attackByFireDrawRule, axis1DrawRule, blockDrawRule, calculateMetrics, canonicalTextAmplifierKey, centerRadiusDrawRule, cloneControlMeasure, computeDefaultMidpointPerpendicularPoint, computeInitialWidthPoint, controlMeasureIdFromFeature, createBaselineFrame, createMidpointPerpendicularDrawRule, disruptDrawRule, foldsBoxTransformOptions, freezeOrientationOptions, getControlMeasureMetadata, getControlMeasureMetadataByValue, getDefaultOptions, getMetersPerPixel, getMidpointPerpendicularSignedDistance, haversineDistance, isKind, line1DrawRule, line23DrawRule, line24DrawRule, line26DrawRule, line27DrawRule, listControlMeasureMetadata, normalizeTextAmplifiers, parameterPresentationTierRank, penetrateDrawRule, point12DrawRule, pointOnMidpointPerpendicularAxis, project, rectangleDrawRule, renderControlMeasure, resolveAmplifierPlacement, resolveParameterPresentationTier, resolveParameterSemanticRole, resolveStyleHints, roundToFixed, sectorDrawRule, snapToMidpointPerpendicular, sphericalBearing, staticPointDrawRule, supportByFireDrawRule, toSimpleStyle, turnDrawRule, unproject };
|
|
160
|
+
export { CONTROL_MEASURE_IDS, CONTROL_MEASURE_METADATA, DEFAULT_AIRBORNE_ATTACK_OPTIONS, DEFAULT_AMBUSH_OPTIONS, DEFAULT_ANTITANK_DITCH_OPTIONS, DEFAULT_ANTITANK_WALL_OPTIONS, DEFAULT_AREA_DEFENSE_OPTIONS, DEFAULT_AREA_OF_OPERATIONS_OPTIONS, DEFAULT_ASSEMBLY_AREA_OPTIONS, DEFAULT_ATTACK_BY_FIRE_OPTIONS, DEFAULT_ATTACK_HELICOPTER_OPTIONS, DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS, DEFAULT_BATTLE_POSITION_OPTIONS, DEFAULT_BLOCK_ARROW_OPTIONS, DEFAULT_BLOCK_MISSION_TASK_OPTIONS, DEFAULT_BLOCK_OPTIONS, DEFAULT_BOUNDARY_OPTIONS, DEFAULT_BREACH_OPTIONS, DEFAULT_BRIDGEHEAD_LINE_OPTIONS, DEFAULT_BYPASS_OPTIONS, DEFAULT_CANALIZE_OPTIONS, DEFAULT_CLASSIC_ARROW_OPTIONS, DEFAULT_CLEAR_OPTIONS, DEFAULT_COUNTERATTACK_BY_FIRE_OPTIONS, DEFAULT_COUNTERATTACK_OPTIONS, DEFAULT_COVER_OPTIONS, DEFAULT_DELAY_OPTIONS, DEFAULT_DIRECTION_OF_ATTACK_AVIATION_OPTIONS, DEFAULT_DIRECTION_OF_MAIN_ATTACK_OPTIONS, DEFAULT_DIRECTION_OF_SUPPORTING_ATTACK_OPTIONS, DEFAULT_DISENGAGE_OPTIONS, DEFAULT_DISRUPT_MISSION_TASK_OPTIONS, DEFAULT_DISRUPT_OPTIONS, DEFAULT_ENCIRCLEMENT_OPTIONS, DEFAULT_ENGINEER_WORK_LINE_OPTIONS, DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS, DEFAULT_FIX_MISSION_TASK_OPTIONS, DEFAULT_FIX_OPTIONS, DEFAULT_FLOT_OPTIONS, DEFAULT_FORTIFIED_AREA_OPTIONS, DEFAULT_FORTIFIED_LINE_OPTIONS, DEFAULT_FORWARD_EDGE_OF_BATTLE_AREA_OPTIONS, DEFAULT_FRONTAL_ATTACK_OPTIONS, DEFAULT_GENERIC_C2_LINE_OPTIONS, DEFAULT_GENERIC_CIRCLE_OPTIONS, DEFAULT_GENERIC_LINE_OPTIONS, DEFAULT_GENERIC_POLYGON_OPTIONS, DEFAULT_GENERIC_RECTANGLE_OPTIONS, DEFAULT_GENERIC_SECTOR_OPTIONS, DEFAULT_GENERIC_TEXT_OPTIONS, DEFAULT_GUARD_OPTIONS, DEFAULT_HANDOVER_LINE_OPTIONS, DEFAULT_HOLDING_LINE_OPTIONS, DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS, DEFAULT_LABEL_HEIGHT_CSS_PIXELS, DEFAULT_LABEL_SIZE_CLAMP_CSS_PIXELS, DEFAULT_LANDING_ZONE_OPTIONS, DEFAULT_LIGHT_LINE_OPTIONS, DEFAULT_LINE_CAP, DEFAULT_LINE_JOIN, DEFAULT_MAIN_ATTACK_OPTIONS, DEFAULT_MINEFIELD_OPTIONS, DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, DEFAULT_PENETRATE_OPTIONS, DEFAULT_PHASE_LINE_OPTIONS, DEFAULT_PICKUP_ZONE_OPTIONS, DEFAULT_PORTRAYAL, DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, DEFAULT_RADAR_SEARCH_DOCTRINE_OPTIONS, DEFAULT_REARWARD_PASSAGE_OF_LINES_OPTIONS, DEFAULT_RELEASE_LINE_OPTIONS, DEFAULT_RETIRE_OPTIONS, DEFAULT_SCREEN_OPTIONS, DEFAULT_SECONDARY_DIRECTION_OF_FIRE_OPTIONS, DEFAULT_SEIZE_OPTIONS, DEFAULT_STROKE_DASH_CSS_PIXELS, DEFAULT_STROKE_WIDTH_CSS_PIXELS, DEFAULT_STRONG_POINT_OPTIONS, DEFAULT_SUPPORTING_ATTACK_OPTIONS, DEFAULT_SUPPORT_BY_FIRE_OPTIONS, DEFAULT_TACTICAL_ARROW_OPTIONS, DEFAULT_TURNING_MOVEMENT_OPTIONS, DEFAULT_TURN_OPTIONS, DEFAULT_WITHDRAW_OPTIONS, DEFAULT_WITHDRAW_UNDER_PRESSURE_OPTIONS, EPSILON, FILL_PATTERN_DEFINITIONS, NON_SOLID_FILL_PATTERNS, PARAMETER_PRESENTATION_TIERS, RADAR_SEARCH_DOCTRINE_FILL_COLOR, RADAR_SEARCH_DOCTRINE_STROKE_COLOR, SECONDARY_DIRECTION_OF_FIRE_DASH, TEXT_AMPLIFIER_FIELDS, ambushDrawRule, applyBoxTransformOptions, attackByFireDrawRule, axis1DrawRule, blockDrawRule, calculateMetrics, canonicalTextAmplifierKey, centerRadiusDrawRule, cloneControlMeasure, computeDefaultMidpointPerpendicularPoint, computeInitialWidthPoint, controlMeasureIdFromFeature, createBaselineFrame, createMidpointPerpendicularDrawRule, disruptDrawRule, dynamicPointDrawRule, foldsBoxTransformOptions, freezeOrientationOptions, getControlMeasureMetadata, getControlMeasureMetadataByValue, getDefaultOptions, getFillPatternDefinition, getMetersPerPixel, getMidpointPerpendicularSignedDistance, haversineDistance, isKind, line1DrawRule, line23DrawRule, line24DrawRule, line26DrawRule, line27DrawRule, listControlMeasureMetadata, normalizeTextAmplifiers, parameterPresentationTierRank, penetrateDrawRule, point12DrawRule, pointOnMidpointPerpendicularAxis, project, rectangleDrawRule, renderControlMeasure, resolveAmplifierPlacement, resolveParameterPresentationTier, resolveParameterSemanticRole, resolveStyleHints, roundToFixed, sectorDrawRule, snapToMidpointPerpendicular, sphericalBearing, staticPointDrawRule, supportByFireDrawRule, toSimpleStyle, turnDrawRule, unproject };
|