@orbat-mapper/control-measures 0.2.0-alpha.31 → 0.2.0-alpha.33
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 +3 -0
- package/dist/{index-c_3HSN3X.d.mts → index-DtgRm_dz.d.mts} +105 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/preview/index.d.mts +9 -5
- package/dist/preview/index.mjs +14 -9
- package/dist/{renderControlMeasure-EdeAQZIo.mjs → renderControlMeasure-CAfC2nEw.mjs} +586 -72
- package/media/breach.svg +1 -1
- package/media/bypass.svg +1 -1
- package/media/canalize.svg +1 -1
- package/media/clear.svg +1 -1
- package/media/counterattack.svg +1 -0
- package/media/forward-edge-of-battle-area.svg +1 -0
- package/media/frontal-attack.svg +1 -1
- package/media/limited-access-area.svg +1 -1
- package/media/no-fire-area-irregular.svg +1 -1
- package/media/secondary-direction-of-fire.svg +1 -0
- package/media/turning-movement.svg +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -112,9 +112,11 @@ code.
|
|
|
112
112
|
| --- | --- | --- | --- |
|
|
113
113
|
| <img src="media/flot.svg" width="96" height="48" alt=""> | `flot` | Forward line of own troops (FLOT) | `140100` |
|
|
114
114
|
| <img src="media/phase-line.svg" width="96" height="48" alt=""> | `phase-line` | Phase line | `140300` |
|
|
115
|
+
| <img src="media/forward-edge-of-battle-area.svg" width="96" height="48" alt=""> | `forward-edge-of-battle-area` | Forward edge of the battle area | `140400` |
|
|
115
116
|
| <img src="media/final-protective-fire-left.svg" width="96" height="48" alt=""> | `final-protective-fire-left` | Final Protective Fire (Left) | `140501` |
|
|
116
117
|
| <img src="media/final-protective-fire-right.svg" width="96" height="48" alt=""> | `final-protective-fire-right` | Final Protective Fire (Right) | `140502` |
|
|
117
118
|
| <img src="media/principal-direction-of-fire.svg" width="96" height="48" alt=""> | `principal-direction-of-fire` | Principal Direction of Fire | `140503` |
|
|
119
|
+
| <img src="media/secondary-direction-of-fire.svg" width="96" height="48" alt=""> | `secondary-direction-of-fire` | Secondary Direction of Fire | `140504` |
|
|
118
120
|
| <img src="media/direction-of-attack-aviation.svg" width="96" height="48" alt=""> | `direction-of-attack-aviation` | Direction of Attack — Airborne/Aviation | `140601` |
|
|
119
121
|
| <img src="media/direction-of-main-attack.svg" width="96" height="48" alt=""> | `direction-of-main-attack` | Direction of Main Attack | `140602` |
|
|
120
122
|
| <img src="media/direction-of-supporting-attack.svg" width="96" height="48" alt=""> | `direction-of-supporting-attack` | Direction of Supporting Attack | `140603` |
|
|
@@ -190,6 +192,7 @@ code.
|
|
|
190
192
|
| <img src="media/bypass.svg" width="96" height="48" alt=""> | `bypass` | Bypass | `340300` |
|
|
191
193
|
| <img src="media/canalize.svg" width="96" height="48" alt=""> | `canalize` | Canalize | `340400` |
|
|
192
194
|
| <img src="media/clear.svg" width="96" height="48" alt=""> | `clear` | Clear | `340500` |
|
|
195
|
+
| <img src="media/counterattack.svg" width="96" height="48" alt=""> | `counterattack` | Counterattack | `340600` |
|
|
193
196
|
| <img src="media/delay.svg" width="96" height="48" alt=""> | `delay` | Delay | `340800` |
|
|
194
197
|
| <img src="media/isolate.svg" width="96" height="48" alt=""> | `isolate` | Isolate | `341500` |
|
|
195
198
|
| <img src="media/cover.svg" width="96" height="48" alt=""> | `cover` | Cover | `342201` |
|
|
@@ -1007,6 +1007,27 @@ declare const DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS: Required<PrincipalDir
|
|
|
1007
1007
|
*/
|
|
1008
1008
|
declare function createPrincipalDirectionOfFire(coordinates: Position[], options?: PrincipalDirectionOfFireOptions): FeatureCollection<MultiLineString, Record<string, never>>;
|
|
1009
1009
|
//#endregion
|
|
1010
|
+
//#region src/generators/cm14-maneuver-lines/secondaryDirectionOfFire.d.ts
|
|
1011
|
+
/** Configuration options for the Secondary Direction of Fire tactical symbol. */
|
|
1012
|
+
type SecondaryDirectionOfFireOptions = PrincipalDirectionOfFireOptions;
|
|
1013
|
+
declare const DEFAULT_SECONDARY_DIRECTION_OF_FIRE_OPTIONS: Required<SecondaryDirectionOfFireOptions>;
|
|
1014
|
+
/** Dash and gap lengths used by the two fire-direction arms. */
|
|
1015
|
+
declare const SECONDARY_DIRECTION_OF_FIRE_DASH: readonly [6, 4];
|
|
1016
|
+
interface SecondaryDirectionOfFireProperties extends Record<string, unknown> {
|
|
1017
|
+
part: "arms" | "arrowheads";
|
|
1018
|
+
style: {
|
|
1019
|
+
strokeDash: number[];
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* Creates the same V-shaped field-of-fire geometry as Principal Direction of
|
|
1024
|
+
* Fire, with dashed arms and solid open arrowheads.
|
|
1025
|
+
*
|
|
1026
|
+
* @param coordinates - [PT 1 (vertex), PT 2 (tip), PT 3 (tip)]
|
|
1027
|
+
* @param options - Arrowhead sizing parameters
|
|
1028
|
+
*/
|
|
1029
|
+
declare function createSecondaryDirectionOfFire(coordinates: Position[], options?: SecondaryDirectionOfFireOptions): FeatureCollection<MultiLineString, SecondaryDirectionOfFireProperties>;
|
|
1030
|
+
//#endregion
|
|
1010
1031
|
//#region src/rendered.d.ts
|
|
1011
1032
|
/**
|
|
1012
1033
|
* Per-feature style hints carried on `properties.style`.
|
|
@@ -1884,6 +1905,70 @@ declare const DEFAULT_PHASE_LINE_OPTIONS: PhaseLineOptions;
|
|
|
1884
1905
|
*/
|
|
1885
1906
|
declare function createPhaseLine(positions: Position[], options?: PhaseLineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
1886
1907
|
//#endregion
|
|
1908
|
+
//#region src/generators/cm14-maneuver-lines/forward-edge-of-battle-area.d.ts
|
|
1909
|
+
/** Configuration options for the Forward edge of the battle area control measure. */
|
|
1910
|
+
interface ForwardEdgeOfBattleAreaOptions extends LineLabelOptions, SmoothLineOptions {
|
|
1911
|
+
/**
|
|
1912
|
+
* Optional phase line naming: renders `PL <name>` just beyond each end of
|
|
1913
|
+
* the line, additive to the fixed "FEBA" labels. Empty or whitespace-only
|
|
1914
|
+
* renders no label.
|
|
1915
|
+
* @default none
|
|
1916
|
+
*/
|
|
1917
|
+
phaseLineName?: string;
|
|
1918
|
+
/**
|
|
1919
|
+
* Prefix the `phaseLineName` label with "PL" (`"PL MOCHA"`, or a bare
|
|
1920
|
+
* "MOCHA" when `false`). No effect when `phaseLineName` is empty.
|
|
1921
|
+
* @default true
|
|
1922
|
+
*/
|
|
1923
|
+
includePrefix?: boolean;
|
|
1924
|
+
}
|
|
1925
|
+
/** Default options for the Forward edge of the battle area control measure. */
|
|
1926
|
+
declare const DEFAULT_FORWARD_EDGE_OF_BATTLE_AREA_OPTIONS: ForwardEdgeOfBattleAreaOptions;
|
|
1927
|
+
/**
|
|
1928
|
+
* Creates a Forward edge of the battle area control measure: a polyline
|
|
1929
|
+
* through `positions` labeled "FEBA" above the line near each end.
|
|
1930
|
+
*/
|
|
1931
|
+
declare function createForwardEdgeOfBattleArea(positions: Position[], options?: ForwardEdgeOfBattleAreaOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
1932
|
+
//#endregion
|
|
1933
|
+
//#region src/generators/cm14-maneuver-lines/bridgehead-line.d.ts
|
|
1934
|
+
/** Configuration options for the Bridgehead line control measure. */
|
|
1935
|
+
interface BridgeheadLineOptions extends LineLabelOptions, SmoothLineOptions {
|
|
1936
|
+
/** Optional phase-line name rendered beyond both ends of the line. */
|
|
1937
|
+
phaseLineName?: string;
|
|
1938
|
+
/** Prefix the phase-line name with "PL". @default true */
|
|
1939
|
+
includePrefix?: boolean;
|
|
1940
|
+
}
|
|
1941
|
+
/** Default options for the Bridgehead line control measure. */
|
|
1942
|
+
declare const DEFAULT_BRIDGEHEAD_LINE_OPTIONS: BridgeheadLineOptions;
|
|
1943
|
+
/** Creates a Bridgehead line labeled "BL" above both ends. */
|
|
1944
|
+
declare function createBridgeheadLine(positions: Position[], options?: BridgeheadLineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
1945
|
+
//#endregion
|
|
1946
|
+
//#region src/generators/cm14-maneuver-lines/holding-line.d.ts
|
|
1947
|
+
/** Configuration options for the Holding line control measure. */
|
|
1948
|
+
interface HoldingLineOptions extends LineLabelOptions, SmoothLineOptions {
|
|
1949
|
+
/** Optional phase-line name rendered beyond both ends of the line. */
|
|
1950
|
+
phaseLineName?: string;
|
|
1951
|
+
/** Prefix the phase-line name with "PL". @default true */
|
|
1952
|
+
includePrefix?: boolean;
|
|
1953
|
+
}
|
|
1954
|
+
/** Default options for the Holding line control measure. */
|
|
1955
|
+
declare const DEFAULT_HOLDING_LINE_OPTIONS: HoldingLineOptions;
|
|
1956
|
+
/** Creates a Holding line labeled "HL" above both ends. */
|
|
1957
|
+
declare function createHoldingLine(positions: Position[], options?: HoldingLineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
1958
|
+
//#endregion
|
|
1959
|
+
//#region src/generators/cm14-maneuver-lines/release-line.d.ts
|
|
1960
|
+
/** Configuration options for the Release line control measure. */
|
|
1961
|
+
interface ReleaseLineOptions extends LineLabelOptions, SmoothLineOptions {
|
|
1962
|
+
/** Optional phase-line name rendered beyond both ends of the line. */
|
|
1963
|
+
phaseLineName?: string;
|
|
1964
|
+
/** Prefix the phase-line name with "PL". @default true */
|
|
1965
|
+
includePrefix?: boolean;
|
|
1966
|
+
}
|
|
1967
|
+
/** Default options for the Release line control measure. */
|
|
1968
|
+
declare const DEFAULT_RELEASE_LINE_OPTIONS: ReleaseLineOptions;
|
|
1969
|
+
/** Creates a Release line labeled "RL" above both ends. */
|
|
1970
|
+
declare function createReleaseLine(positions: Position[], options?: ReleaseLineOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
1971
|
+
//#endregion
|
|
1887
1972
|
//#region src/generators/cm14-maneuver-lines/handover-line.d.ts
|
|
1888
1973
|
/** Configuration options for the Handover line control measure. */
|
|
1889
1974
|
interface HandoverLineOptions extends LineLabelOptions, SmoothLineOptions {
|
|
@@ -2106,6 +2191,15 @@ declare const DEFAULT_CLEAR_OPTIONS: Required<Omit<ClearOptions, "labelSize" | "
|
|
|
2106
2191
|
*/
|
|
2107
2192
|
declare function createClearSymbol(coordinates: Position[], options?: ClearOptions): FeatureCollection<MultiLineString | Point>;
|
|
2108
2193
|
//#endregion
|
|
2194
|
+
//#region src/generators/cm34-mission-tasks/counterattack.d.ts
|
|
2195
|
+
interface CounterattackOptions extends AttackOptions, LabelSizeOptions {
|
|
2196
|
+
/** CATK label position along the shaft, from tail (0) to arrowhead base (1). */
|
|
2197
|
+
labelPosition?: number;
|
|
2198
|
+
}
|
|
2199
|
+
declare const DEFAULT_COUNTERATTACK_OPTIONS: Required<Omit<CounterattackOptions, keyof LabelSizeOptions>>;
|
|
2200
|
+
/** Generates the Counterattack mission task (340600). */
|
|
2201
|
+
declare function createCounterattack(coordinates: Position[], options?: CounterattackOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<LineString | Point>;
|
|
2202
|
+
//#endregion
|
|
2109
2203
|
//#region src/generators/cm15-maneuver-areas/searchArea.d.ts
|
|
2110
2204
|
/**
|
|
2111
2205
|
* Configuration options to tweak the tactical arrow's geometry.
|
|
@@ -2355,7 +2449,10 @@ declare const DEFAULT_FRONTAL_ATTACK_OPTIONS: FrontalAttackOptions;
|
|
|
2355
2449
|
declare function createFrontalAttack(coordinates: Position[], options?: FrontalAttackOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<MultiLineString | Point>;
|
|
2356
2450
|
//#endregion
|
|
2357
2451
|
//#region src/generators/cm15-maneuver-areas/turning-movement.d.ts
|
|
2358
|
-
|
|
2452
|
+
interface TurningMovementOptions extends ManeuverArrowTaskOptions {
|
|
2453
|
+
/** Crossbar position along the shaft, from tail (0) to arrowhead base (1). */
|
|
2454
|
+
crossbarPosition?: number;
|
|
2455
|
+
}
|
|
2359
2456
|
declare const DEFAULT_TURNING_MOVEMENT_OPTIONS: TurningMovementOptions;
|
|
2360
2457
|
declare function createTurningMovement(coordinates: Position[], options?: TurningMovementOptions, textAmplifiers?: CanonicalTextAmplifiers): FeatureCollection<MultiLineString | Point>;
|
|
2361
2458
|
//#endregion
|
|
@@ -2513,6 +2610,7 @@ declare const DEFINITIONS: {
|
|
|
2513
2610
|
"direction-of-main-attack": ControlMeasureDefinition<"direction-of-main-attack", typeof createDirectionOfMainAttack>;
|
|
2514
2611
|
"direction-of-supporting-attack": ControlMeasureDefinition<"direction-of-supporting-attack", typeof createDirectionOfSupportingAttack>;
|
|
2515
2612
|
"principal-direction-of-fire": ControlMeasureDefinition<"principal-direction-of-fire", typeof createPrincipalDirectionOfFire>;
|
|
2613
|
+
"secondary-direction-of-fire": ControlMeasureDefinition<"secondary-direction-of-fire", typeof createSecondaryDirectionOfFire>;
|
|
2516
2614
|
"final-protective-fire-left": ControlMeasureDefinition<"final-protective-fire-left", typeof createFinalProtectiveFireLeft>;
|
|
2517
2615
|
"final-protective-fire-right": ControlMeasureDefinition<"final-protective-fire-right", typeof createFinalProtectiveFireRight>;
|
|
2518
2616
|
"search-area": ControlMeasureDefinition<"search-area", (controlPoints: import("geojson").Position[], options?: TacticalArrowOptions) => import("geojson").FeatureCollection<import("geojson").MultiLineString | import("geojson").MultiPolygon, {
|
|
@@ -2558,6 +2656,10 @@ declare const DEFINITIONS: {
|
|
|
2558
2656
|
"attack-by-fire": ControlMeasureDefinition<"attack-by-fire", typeof createAttackByFire>;
|
|
2559
2657
|
flot: ControlMeasureDefinition<"flot", typeof createFLOT>;
|
|
2560
2658
|
"phase-line": ControlMeasureDefinition<"phase-line", typeof createPhaseLine>;
|
|
2659
|
+
"forward-edge-of-battle-area": ControlMeasureDefinition<"forward-edge-of-battle-area", typeof createForwardEdgeOfBattleArea>;
|
|
2660
|
+
"bridgehead-line": ControlMeasureDefinition<"bridgehead-line", typeof createBridgeheadLine>;
|
|
2661
|
+
"holding-line": ControlMeasureDefinition<"holding-line", typeof createHoldingLine>;
|
|
2662
|
+
"release-line": ControlMeasureDefinition<"release-line", typeof createReleaseLine>;
|
|
2561
2663
|
"handover-line": ControlMeasureDefinition<"handover-line", typeof createHandoverLine>;
|
|
2562
2664
|
"battle-handover-line": ControlMeasureDefinition<"battle-handover-line", typeof createBattleHandoverLine>;
|
|
2563
2665
|
"block-mission-task": ControlMeasureDefinition<"block-mission-task", typeof createBlockMissionTaskSymbol>;
|
|
@@ -2565,6 +2667,7 @@ declare const DEFINITIONS: {
|
|
|
2565
2667
|
bypass: ControlMeasureDefinition<"bypass", typeof createBypassSymbol>;
|
|
2566
2668
|
canalize: ControlMeasureDefinition<"canalize", typeof createCanalizeSymbol>;
|
|
2567
2669
|
clear: ControlMeasureDefinition<"clear", typeof createClearSymbol>;
|
|
2670
|
+
counterattack: ControlMeasureDefinition<"counterattack", typeof createCounterattack>;
|
|
2568
2671
|
cover: ControlMeasureDefinition<"cover", typeof createCoverSymbol>;
|
|
2569
2672
|
delay: ControlMeasureDefinition<"delay", typeof createDelaySymbol>;
|
|
2570
2673
|
guard: ControlMeasureDefinition<"guard", typeof createGuardSymbol>;
|
|
@@ -2936,4 +3039,4 @@ interface AmbushOptions {
|
|
|
2936
3039
|
}
|
|
2937
3040
|
declare const DEFAULT_AMBUSH_OPTIONS: Required<AmbushOptions>;
|
|
2938
3041
|
//#endregion
|
|
2939
|
-
export { DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS as $,
|
|
3042
|
+
export { DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS as $, ControlMeasureRender as $n, AnchorTransformEvent as $r, BridgeheadLineOptions as $t, roundToFixed as A, DEFAULT_CLASSIC_ARROW_OPTIONS as An, unproject as Ar, DEFAULT_COVER_OPTIONS as At, cloneControlMeasure as B, PickupZoneOptions as Bn, TextAmplifierDescriptor as Br, DEFAULT_BYPASS_OPTIONS as Bt, BaselineFrame as C, DEFAULT_GENERIC_LINE_OPTIONS as Cn, EngineerWorkLineOptions as Cr, DEFAULT_SCREEN_OPTIONS as Ct, createBaselineFrame as D, DEFAULT_BLOCK_ARROW_OPTIONS as Dn, Point2D as Dr, DEFAULT_DELAY_OPTIONS as Dt, BaselineFrameOrigin as E, BlockArrowOptions as En, LabelSizeOptions as Er, GuardOptions as Et, applyBoxTransformOptions as F, calculateMetrics as Fn, ControlMeasureGeometry as Fr, ClearOptions as Ft, ControlMeasureKind as G, AssemblyAreaOptions as Gn, LabelPlacementOverride as Gr, BattleHandoverLineOptions as Gt, CONTROL_MEASURE_IDS as H, LandingZoneOptions as Hn, AmplifierPlacements as Hr, DEFAULT_BREACH_OPTIONS as Ht, freezeOrientationOptions as I, computeInitialWidthPoint as In, ControlMeasureGeometryType as Ir, DEFAULT_CLEAR_OPTIONS as It, getControlMeasureMetadataByValue as J, DEFAULT_AREA_DEFENSE_OPTIONS as Jn, TextAmplifierKey as Jr, HandoverLineOptions as Jt, OptionsByKind as K, DEFAULT_ASSEMBLY_AREA_OPTIONS as Kn, TEXT_AMPLIFIER_FIELDS as Kr, DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS as Kt, RenderOptions as L, AreaOfOperationsOptions as Ln, ControlMeasureMetadata as Lr, CanalizeOptions as Lt, SimpleStyleRender as M, SupportingAttackOptions as Mn, DEFAULT_BOUNDARY_OPTIONS as Mr, TacticalArrowOptions as Mt, toSimpleStyle as N, DEFAULT_MAIN_ATTACK_OPTIONS as Nn, BoxTransformDelta as Nr, CounterattackOptions as Nt, EPSILON as O, ClassicArrowHeadStyle as On, haversineDistance as Or, DelayOptions as Ot, resolveStyleHints as P, MainAttackOptions as Pn, ControlMeasureFillCapability as Pr, DEFAULT_COUNTERATTACK_OPTIONS as Pt, ObstacleBypassImpossibleOptions as Q, FinalProtectiveFireOptions as Qn, resolveAmplifierPlacement as Qr, HoldingLineOptions as Qt, renderControlMeasure as R, DEFAULT_AREA_OF_OPERATIONS_OPTIONS as Rn, ControlMeasurePaintCapability as Rr, DEFAULT_CANALIZE_OPTIONS as Rt, snapToMidpointPerpendicular as S, GenericPolygonOptions as Sn, DEFAULT_ENGINEER_WORK_LINE_OPTIONS as Sr, DEFAULT_ANTITANK_DITCH_OPTIONS as St, BaselineFrameOptions as T, BlockArrowHeadStyle as Tn, LightLineOptions as Tr, DEFAULT_GUARD_OPTIONS as Tt, CONTROL_MEASURE_METADATA as U, DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS as Un, CanonicalTextAmplifiers as Ur, BlockMissionTaskOptions as Ut, isKind as V, DEFAULT_LANDING_ZONE_OPTIONS as Vn, AmplifierPlacement as Vr, BreachOptions as Vt, ControlMeasureId as W, JointTacticalActionAreaOptions as Wn, GeneratedLabelKey as Wr, DEFAULT_BLOCK_MISSION_TASK_OPTIONS as Wt, listControlMeasureMetadata as X, EncirclementOptions as Xn, canonicalTextAmplifierKey as Xr, ReleaseLineOptions as Xt, getDefaultOptions as Y, DEFAULT_ENCIRCLEMENT_OPTIONS as Yn, TextAmplifiers as Yr, DEFAULT_RELEASE_LINE_OPTIONS as Yt, DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS as Z, DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS as Zn, normalizeTextAmplifiers as Zr, DEFAULT_HOLDING_LINE_OPTIONS as Zt, MidpointPerpendicularDrawRuleOptions as _, DEFAULT_GENERIC_CIRCLE_OPTIONS as _n, DEFAULT_BATTLE_POSITION_OPTIONS as _r, DEFAULT_FORTIFIED_LINE_OPTIONS as _t, supportByFireDrawRule as a, DEFAULT_FLOT_OPTIONS as an, SecondaryDirectionOfFireOptions as ar, DEFAULT_FIX_OPTIONS as at, getMidpointPerpendicularSignedDistance as b, GenericRectangleOptions as bn, DEFAULT_GENERIC_C2_LINE_OPTIONS as br, DEFAULT_ANTITANK_WALL_OPTIONS as bt, line23DrawRule as c, DEFAULT_ATTACK_BY_FIRE_OPTIONS as cn, DEFAULT_DIRECTION_OF_SUPPORTING_ATTACK_OPTIONS as cr, DisruptOptions as ct, ambushDrawRule as d, AttackHelicopterOptions as dn, DirectionOfMainAttackOptions as dr, DEFAULT_TURNING_MOVEMENT_OPTIONS as dt, ControlMeasureDrawRule as ei, DEFAULT_BRIDGEHEAD_LINE_OPTIONS as en, FeaturePartProps as er, ObstacleBypassDifficultOptions as et, attackByFireDrawRule as f, DEFAULT_ATTACK_HELICOPTER_OPTIONS as fn, DEFAULT_DIRECTION_OF_ATTACK_AVIATION_OPTIONS as fr, TurningMovementOptions as ft, blockDrawRule as g, GenericTextOptions as gn, BattlePositionOptions as gr, FortifiedAreaOptions as gt, disruptDrawRule as h, DEFAULT_GENERIC_TEXT_OPTIONS as hn, StrongPointOptions as hr, DEFAULT_FORTIFIED_AREA_OPTIONS as ht, axis1DrawRule as i, PhaseLineOptions as in, SECONDARY_DIRECTION_OF_FIRE_DASH as ir, TurnOptions as it, SimpleStyleProps as j, DEFAULT_SUPPORTING_ATTACK_OPTIONS as jn, BoundaryOptions as jr, DEFAULT_TACTICAL_ARROW_OPTIONS as jt, getMetersPerPixel as k, ClassicArrowOptions as kn, project as kr, CoverOptions as kt, turnDrawRule as l, DEFAULT_SUPPORT_BY_FIRE_OPTIONS as ln, DirectionOfSupportingAttackOptions as lr, BlockOptions as lt, centerRadiusDrawRule as m, DEFAULT_AIRBORNE_ATTACK_OPTIONS as mn, DEFAULT_STRONG_POINT_OPTIONS as mr, FrontalAttackOptions as mt, DEFAULT_AMBUSH_OPTIONS as n, ForwardEdgeOfBattleAreaOptions as nn, controlMeasureIdFromFeature as nr, ObstacleBypassEasyOptions as nt, line26DrawRule as o, FLOTOptions as on, DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS as or, FixOptions as ot, point12DrawRule as p, AirborneAttackOptions as pn, DirectionOfAttackAviationOptions as pr, DEFAULT_FRONTAL_ATTACK_OPTIONS as pt, getControlMeasureMetadata as q, AreaDefenseOptions as qn, TextAmplifierField as qr, DEFAULT_HANDOVER_LINE_OPTIONS as qt, rectangleDrawRule as r, DEFAULT_PHASE_LINE_OPTIONS as rn, DEFAULT_SECONDARY_DIRECTION_OF_FIRE_OPTIONS as rr, DEFAULT_TURN_OPTIONS as rt, line24DrawRule as s, AttackByFireOptions as sn, PrincipalDirectionOfFireOptions as sr, DEFAULT_DISRUPT_OPTIONS as st, AmbushOptions as t, DEFAULT_FORWARD_EDGE_OF_BATTLE_AREA_OPTIONS as tn, StyleHints as tr, DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS as tt, line1DrawRule as u, SupportByFireOptions as un, DEFAULT_DIRECTION_OF_MAIN_ATTACK_OPTIONS as ur, DEFAULT_BLOCK_OPTIONS as ut, computeDefaultMidpointPerpendicularPoint as v, GenericCircleOptions as vn, ControlMeasureStyle as vr, FortifiedLineOptions as vt, BaselineFrameNormal as w, GenericLineOptions as wn, DEFAULT_LIGHT_LINE_OPTIONS as wr, ScreenOptions as wt, pointOnMidpointPerpendicularAxis as x, DEFAULT_GENERIC_POLYGON_OPTIONS as xn, GenericC2LineOptions as xr, AntitankDitchOptions as xt, createMidpointPerpendicularDrawRule as y, DEFAULT_GENERIC_RECTANGLE_OPTIONS as yn, FillPattern as yr, AntitankWallOptions as yt, ControlMeasure as z, DEFAULT_PICKUP_ZONE_OPTIONS as zn, ParamDescriptor as zr, BypassOptions as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, $n as
|
|
2
|
-
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 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 ControlMeasureStyle, 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_BYPASS_OPTIONS, DEFAULT_CANALIZE_OPTIONS, DEFAULT_CLASSIC_ARROW_OPTIONS, DEFAULT_CLEAR_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_DISRUPT_OPTIONS, DEFAULT_ENCIRCLEMENT_OPTIONS, DEFAULT_ENGINEER_WORK_LINE_OPTIONS, DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS, DEFAULT_FIX_OPTIONS, DEFAULT_FLOT_OPTIONS, DEFAULT_FORTIFIED_AREA_OPTIONS, DEFAULT_FORTIFIED_LINE_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_TEXT_OPTIONS, DEFAULT_GUARD_OPTIONS, DEFAULT_HANDOVER_LINE_OPTIONS, DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS, DEFAULT_LANDING_ZONE_OPTIONS, DEFAULT_LIGHT_LINE_OPTIONS, DEFAULT_MAIN_ATTACK_OPTIONS, DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, DEFAULT_PHASE_LINE_OPTIONS, DEFAULT_PICKUP_ZONE_OPTIONS, DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, DEFAULT_SCREEN_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, type DelayOptions, type DirectionOfAttackAviationOptions, type DirectionOfMainAttackOptions, type DirectionOfSupportingAttackOptions, type DisruptOptions, EPSILON, type EncirclementOptions, type EngineerWorkLineOptions, type FLOTOptions, type FeaturePartProps, type FillPattern, type FinalProtectiveFireOptions, type FixOptions, type FortifiedAreaOptions, type FortifiedLineOptions, type FrontalAttackOptions, type GeneratedLabelKey, type GenericC2LineOptions, type GenericCircleOptions, type GenericLineOptions, type GenericPolygonOptions, type GenericRectangleOptions, type GenericTextOptions, type GuardOptions, type HandoverLineOptions, type JointTacticalActionAreaOptions, type LabelPlacementOverride, type LabelSizeOptions, type LandingZoneOptions, type LightLineOptions, type MainAttackOptions, type MidpointPerpendicularDrawRuleOptions, type ObstacleBypassDifficultOptions, type ObstacleBypassEasyOptions, type ObstacleBypassImpossibleOptions, type OptionsByKind, type ParamDescriptor, type PhaseLineOptions, type PickupZoneOptions, type Point2D, type PrincipalDirectionOfFireOptions, type RenderOptions, type ScreenOptions, 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, ambushDrawRule, applyBoxTransformOptions, attackByFireDrawRule, axis1DrawRule, blockDrawRule, calculateMetrics, canonicalTextAmplifierKey, centerRadiusDrawRule, cloneControlMeasure, computeDefaultMidpointPerpendicularPoint, computeInitialWidthPoint, controlMeasureIdFromFeature, createBaselineFrame, createMidpointPerpendicularDrawRule, disruptDrawRule, freezeOrientationOptions, getControlMeasureMetadata, getControlMeasureMetadataByValue, getDefaultOptions, getMetersPerPixel, getMidpointPerpendicularSignedDistance, haversineDistance, isKind, line1DrawRule, line23DrawRule, line24DrawRule, line26DrawRule, listControlMeasureMetadata, normalizeTextAmplifiers, point12DrawRule, pointOnMidpointPerpendicularAxis, project, rectangleDrawRule, renderControlMeasure, resolveAmplifierPlacement, resolveStyleHints, roundToFixed, snapToMidpointPerpendicular, supportByFireDrawRule, toSimpleStyle, turnDrawRule, unproject };
|
|
1
|
+
import { $ as DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, $n as ControlMeasureRender, $r as AnchorTransformEvent, $t as BridgeheadLineOptions, A as roundToFixed, An as DEFAULT_CLASSIC_ARROW_OPTIONS, Ar as unproject, At as DEFAULT_COVER_OPTIONS, B as cloneControlMeasure, Bn as PickupZoneOptions, Br as TextAmplifierDescriptor, Bt as DEFAULT_BYPASS_OPTIONS, C as BaselineFrame, Cn as DEFAULT_GENERIC_LINE_OPTIONS, Cr as EngineerWorkLineOptions, Ct as DEFAULT_SCREEN_OPTIONS, D as createBaselineFrame, Dn as DEFAULT_BLOCK_ARROW_OPTIONS, Dr as Point2D, Dt as DEFAULT_DELAY_OPTIONS, E as BaselineFrameOrigin, En as BlockArrowOptions, Er as LabelSizeOptions, Et as GuardOptions, F as applyBoxTransformOptions, Fn as calculateMetrics, Fr as ControlMeasureGeometry, Ft as ClearOptions, G as ControlMeasureKind, Gn as AssemblyAreaOptions, Gr as LabelPlacementOverride, Gt as BattleHandoverLineOptions, H as CONTROL_MEASURE_IDS, Hn as LandingZoneOptions, Hr as AmplifierPlacements, Ht as DEFAULT_BREACH_OPTIONS, I as freezeOrientationOptions, In as computeInitialWidthPoint, Ir as ControlMeasureGeometryType, It as DEFAULT_CLEAR_OPTIONS, J as getControlMeasureMetadataByValue, Jn as DEFAULT_AREA_DEFENSE_OPTIONS, Jr as TextAmplifierKey, Jt as HandoverLineOptions, K as OptionsByKind, Kn as DEFAULT_ASSEMBLY_AREA_OPTIONS, Kr as TEXT_AMPLIFIER_FIELDS, Kt as DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS, L as RenderOptions, Ln as AreaOfOperationsOptions, Lr as ControlMeasureMetadata, Lt as CanalizeOptions, M as SimpleStyleRender, Mn as SupportingAttackOptions, Mr as DEFAULT_BOUNDARY_OPTIONS, Mt as TacticalArrowOptions, N as toSimpleStyle, Nn as DEFAULT_MAIN_ATTACK_OPTIONS, Nr as BoxTransformDelta, Nt as CounterattackOptions, O as EPSILON, On as ClassicArrowHeadStyle, Or as haversineDistance, Ot as DelayOptions, P as resolveStyleHints, Pn as MainAttackOptions, Pr as ControlMeasureFillCapability, Pt as DEFAULT_COUNTERATTACK_OPTIONS, Q as ObstacleBypassImpossibleOptions, Qn as FinalProtectiveFireOptions, Qr as resolveAmplifierPlacement, Qt as HoldingLineOptions, R as renderControlMeasure, Rn as DEFAULT_AREA_OF_OPERATIONS_OPTIONS, Rr as ControlMeasurePaintCapability, Rt as DEFAULT_CANALIZE_OPTIONS, S as snapToMidpointPerpendicular, Sn as GenericPolygonOptions, Sr as DEFAULT_ENGINEER_WORK_LINE_OPTIONS, St as DEFAULT_ANTITANK_DITCH_OPTIONS, T as BaselineFrameOptions, Tn as BlockArrowHeadStyle, Tr as LightLineOptions, Tt as DEFAULT_GUARD_OPTIONS, U as CONTROL_MEASURE_METADATA, Un as DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS, Ur as CanonicalTextAmplifiers, Ut as BlockMissionTaskOptions, V as isKind, Vn as DEFAULT_LANDING_ZONE_OPTIONS, Vr as AmplifierPlacement, Vt as BreachOptions, W as ControlMeasureId, Wn as JointTacticalActionAreaOptions, Wr as GeneratedLabelKey, Wt as DEFAULT_BLOCK_MISSION_TASK_OPTIONS, X as listControlMeasureMetadata, Xn as EncirclementOptions, Xr as canonicalTextAmplifierKey, Xt as ReleaseLineOptions, Y as getDefaultOptions, Yn as DEFAULT_ENCIRCLEMENT_OPTIONS, Yr as TextAmplifiers, Yt as DEFAULT_RELEASE_LINE_OPTIONS, Z as DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, Zn as DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS, Zr as normalizeTextAmplifiers, Zt as DEFAULT_HOLDING_LINE_OPTIONS, _ as MidpointPerpendicularDrawRuleOptions, _n as DEFAULT_GENERIC_CIRCLE_OPTIONS, _r as DEFAULT_BATTLE_POSITION_OPTIONS, _t as DEFAULT_FORTIFIED_LINE_OPTIONS, a as supportByFireDrawRule, an as DEFAULT_FLOT_OPTIONS, ar as SecondaryDirectionOfFireOptions, at as DEFAULT_FIX_OPTIONS, b as getMidpointPerpendicularSignedDistance, bn as GenericRectangleOptions, br as DEFAULT_GENERIC_C2_LINE_OPTIONS, bt as DEFAULT_ANTITANK_WALL_OPTIONS, c as line23DrawRule, cn as DEFAULT_ATTACK_BY_FIRE_OPTIONS, cr as DEFAULT_DIRECTION_OF_SUPPORTING_ATTACK_OPTIONS, ct as DisruptOptions, d as ambushDrawRule, dn as AttackHelicopterOptions, dr as DirectionOfMainAttackOptions, dt as DEFAULT_TURNING_MOVEMENT_OPTIONS, ei as ControlMeasureDrawRule, en as DEFAULT_BRIDGEHEAD_LINE_OPTIONS, er as FeaturePartProps, et as ObstacleBypassDifficultOptions, f as attackByFireDrawRule, fn as DEFAULT_ATTACK_HELICOPTER_OPTIONS, fr as DEFAULT_DIRECTION_OF_ATTACK_AVIATION_OPTIONS, ft as TurningMovementOptions, g as blockDrawRule, gn as GenericTextOptions, gr as BattlePositionOptions, gt as FortifiedAreaOptions, h as disruptDrawRule, hn as DEFAULT_GENERIC_TEXT_OPTIONS, hr as StrongPointOptions, ht as DEFAULT_FORTIFIED_AREA_OPTIONS, i as axis1DrawRule, in as PhaseLineOptions, ir as SECONDARY_DIRECTION_OF_FIRE_DASH, it as TurnOptions, j as SimpleStyleProps, jn as DEFAULT_SUPPORTING_ATTACK_OPTIONS, jr as BoundaryOptions, jt as DEFAULT_TACTICAL_ARROW_OPTIONS, k as getMetersPerPixel, kn as ClassicArrowOptions, kr as project, kt as CoverOptions, l as turnDrawRule, ln as DEFAULT_SUPPORT_BY_FIRE_OPTIONS, lr as DirectionOfSupportingAttackOptions, lt as BlockOptions, m as centerRadiusDrawRule, mn as DEFAULT_AIRBORNE_ATTACK_OPTIONS, mr as DEFAULT_STRONG_POINT_OPTIONS, mt as FrontalAttackOptions, n as DEFAULT_AMBUSH_OPTIONS, nn as ForwardEdgeOfBattleAreaOptions, nr as controlMeasureIdFromFeature, nt as ObstacleBypassEasyOptions, o as line26DrawRule, on as FLOTOptions, or as DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, ot as FixOptions, p as point12DrawRule, pn as AirborneAttackOptions, pr as DirectionOfAttackAviationOptions, pt as DEFAULT_FRONTAL_ATTACK_OPTIONS, q as getControlMeasureMetadata, qn as AreaDefenseOptions, qr as TextAmplifierField, qt as DEFAULT_HANDOVER_LINE_OPTIONS, r as rectangleDrawRule, rn as DEFAULT_PHASE_LINE_OPTIONS, rr as DEFAULT_SECONDARY_DIRECTION_OF_FIRE_OPTIONS, rt as DEFAULT_TURN_OPTIONS, s as line24DrawRule, sn as AttackByFireOptions, sr as PrincipalDirectionOfFireOptions, st as DEFAULT_DISRUPT_OPTIONS, t as AmbushOptions, tn as DEFAULT_FORWARD_EDGE_OF_BATTLE_AREA_OPTIONS, tr as StyleHints, tt as DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, u as line1DrawRule, un as SupportByFireOptions, ur as DEFAULT_DIRECTION_OF_MAIN_ATTACK_OPTIONS, ut as DEFAULT_BLOCK_OPTIONS, v as computeDefaultMidpointPerpendicularPoint, vn as GenericCircleOptions, vr as ControlMeasureStyle, vt as FortifiedLineOptions, w as BaselineFrameNormal, wn as GenericLineOptions, wr as DEFAULT_LIGHT_LINE_OPTIONS, wt as ScreenOptions, x as pointOnMidpointPerpendicularAxis, xn as DEFAULT_GENERIC_POLYGON_OPTIONS, xr as GenericC2LineOptions, xt as AntitankDitchOptions, y as createMidpointPerpendicularDrawRule, yn as DEFAULT_GENERIC_RECTANGLE_OPTIONS, yr as FillPattern, yt as AntitankWallOptions, z as ControlMeasure, zn as DEFAULT_PICKUP_ZONE_OPTIONS, zr as ParamDescriptor, zt as BypassOptions } from "./index-DtgRm_dz.mjs";
|
|
2
|
+
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 ControlMeasureStyle, 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_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_DISRUPT_OPTIONS, DEFAULT_ENCIRCLEMENT_OPTIONS, DEFAULT_ENGINEER_WORK_LINE_OPTIONS, DEFAULT_FINAL_PROTECTIVE_FIRE_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_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_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, DEFAULT_PHASE_LINE_OPTIONS, DEFAULT_PICKUP_ZONE_OPTIONS, DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, DEFAULT_RELEASE_LINE_OPTIONS, DEFAULT_SCREEN_OPTIONS, DEFAULT_SECONDARY_DIRECTION_OF_FIRE_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, type DelayOptions, type DirectionOfAttackAviationOptions, type DirectionOfMainAttackOptions, type DirectionOfSupportingAttackOptions, type DisruptOptions, EPSILON, type EncirclementOptions, type EngineerWorkLineOptions, type FLOTOptions, type FeaturePartProps, type FillPattern, type FinalProtectiveFireOptions, type FixOptions, type FortifiedAreaOptions, type FortifiedLineOptions, type ForwardEdgeOfBattleAreaOptions, type FrontalAttackOptions, type GeneratedLabelKey, type GenericC2LineOptions, type GenericCircleOptions, type GenericLineOptions, type GenericPolygonOptions, type GenericRectangleOptions, type GenericTextOptions, type GuardOptions, type HandoverLineOptions, type HoldingLineOptions, type JointTacticalActionAreaOptions, type LabelPlacementOverride, type LabelSizeOptions, type LandingZoneOptions, type LightLineOptions, type MainAttackOptions, type MidpointPerpendicularDrawRuleOptions, type ObstacleBypassDifficultOptions, type ObstacleBypassEasyOptions, type ObstacleBypassImpossibleOptions, type OptionsByKind, type ParamDescriptor, type PhaseLineOptions, type PickupZoneOptions, type Point2D, type PrincipalDirectionOfFireOptions, type ReleaseLineOptions, type RenderOptions, SECONDARY_DIRECTION_OF_FIRE_DASH, type ScreenOptions, type SecondaryDirectionOfFireOptions, 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, ambushDrawRule, applyBoxTransformOptions, attackByFireDrawRule, axis1DrawRule, blockDrawRule, calculateMetrics, canonicalTextAmplifierKey, centerRadiusDrawRule, cloneControlMeasure, computeDefaultMidpointPerpendicularPoint, computeInitialWidthPoint, controlMeasureIdFromFeature, createBaselineFrame, createMidpointPerpendicularDrawRule, disruptDrawRule, freezeOrientationOptions, getControlMeasureMetadata, getControlMeasureMetadataByValue, getDefaultOptions, getMetersPerPixel, getMidpointPerpendicularSignedDistance, haversineDistance, isKind, line1DrawRule, line23DrawRule, line24DrawRule, line26DrawRule, listControlMeasureMetadata, normalizeTextAmplifiers, point12DrawRule, pointOnMidpointPerpendicularAxis, project, rectangleDrawRule, renderControlMeasure, resolveAmplifierPlacement, resolveStyleHints, roundToFixed, snapToMidpointPerpendicular, supportByFireDrawRule, toSimpleStyle, turnDrawRule, unproject };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as DEFAULT_CANALIZE_OPTIONS, $t as roundToFixed, A as DEFAULT_FORWARD_EDGE_OF_BATTLE_AREA_OPTIONS, At as line24DrawRule, B as DEFAULT_GUARD_OPTIONS, Bt as computeDefaultMidpointPerpendicularPoint, C as DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS, Ct as resolveAmplifierPlacement, D as DEFAULT_FORTIFIED_LINE_OPTIONS, Dt as axis1DrawRule, E as DEFAULT_FORTIFIED_AREA_OPTIONS, Et as rectangleDrawRule, F as DEFAULT_FLOT_OPTIONS, Ft as attackByFireDrawRule, G as DEFAULT_SUPPORTING_ATTACK_OPTIONS, Gt as createBaselineFrame, H as DEFAULT_COVER_OPTIONS, Ht as getMidpointPerpendicularSignedDistance, I as DEFAULT_FIX_OPTIONS, It as point12DrawRule, J as DEFAULT_GENERIC_RECTANGLE_OPTIONS, Jt as haversineDistance, K as DEFAULT_CLEAR_OPTIONS, Kt as calculateMetrics, L as DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS, Lt as centerRadiusDrawRule, M as DEFAULT_HOLDING_LINE_OPTIONS, Mt as turnDrawRule, N as DEFAULT_BRIDGEHEAD_LINE_OPTIONS, Nt as line1DrawRule, O as DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS, Ot as supportByFireDrawRule, P as DEFAULT_PHASE_LINE_OPTIONS, Pt as ambushDrawRule, Q as DEFAULT_CLASSIC_ARROW_OPTIONS, Qt as getMetersPerPixel, R as DEFAULT_ENCIRCLEMENT_OPTIONS, Rt as disruptDrawRule, S as DEFAULT_LANDING_ZONE_OPTIONS, St as normalizeTextAmplifiers, T as DEFAULT_FRONTAL_ATTACK_OPTIONS, Tt as DEFAULT_AIRBORNE_ATTACK_OPTIONS, U as DEFAULT_TACTICAL_ARROW_OPTIONS, Ut as pointOnMidpointPerpendicularAxis, V as DEFAULT_DELAY_OPTIONS, Vt as createMidpointPerpendicularDrawRule, W as DEFAULT_COUNTERATTACK_OPTIONS, Wt as snapToMidpointPerpendicular, X as DEFAULT_GENERIC_LINE_OPTIONS, Xt as unproject, Y as DEFAULT_GENERIC_POLYGON_OPTIONS, Yt as project, Z as DEFAULT_GENERIC_CIRCLE_OPTIONS, Zt as EPSILON, _ as DEFAULT_PICKUP_ZONE_OPTIONS, _t as DEFAULT_DIRECTION_OF_SUPPORTING_ATTACK_OPTIONS, a as DEFINITIONS, at as DEFAULT_LIGHT_LINE_OPTIONS, b as DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, bt as TEXT_AMPLIFIER_FIELDS, c as getDefaultOptions, ct as DEFAULT_BLOCK_OPTIONS, d as DEFAULT_TURN_OPTIONS, dt as DEFAULT_ATTACK_BY_FIRE_OPTIONS, et as DEFAULT_BYPASS_OPTIONS, f as DEFAULT_SUPPORT_BY_FIRE_OPTIONS, ft as DEFAULT_ANTITANK_WALL_OPTIONS, g as DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, gt as DEFAULT_AREA_DEFENSE_OPTIONS, h as SECONDARY_DIRECTION_OF_FIRE_DASH, ht as DEFAULT_AREA_OF_OPERATIONS_OPTIONS, i as CONTROL_MEASURE_METADATA, it as DEFAULT_ENGINEER_WORK_LINE_OPTIONS, j as DEFAULT_RELEASE_LINE_OPTIONS, jt as line23DrawRule, k as DEFAULT_HANDOVER_LINE_OPTIONS, kt as line26DrawRule, l as listControlMeasureMetadata, lt as DEFAULT_BATTLE_POSITION_OPTIONS, m as DEFAULT_SECONDARY_DIRECTION_OF_FIRE_OPTIONS, mt as DEFAULT_ASSEMBLY_AREA_OPTIONS, n as resolveStyleHints, nt as DEFAULT_BLOCK_MISSION_TASK_OPTIONS, o as getControlMeasureMetadata, ot as DEFAULT_BOUNDARY_OPTIONS, p as DEFAULT_STRONG_POINT_OPTIONS, pt as DEFAULT_ANTITANK_DITCH_OPTIONS, q as DEFAULT_GENERIC_TEXT_OPTIONS, qt as computeInitialWidthPoint, r as CONTROL_MEASURE_IDS, rt as DEFAULT_GENERIC_C2_LINE_OPTIONS, s as getControlMeasureMetadataByValue, st as DEFAULT_BLOCK_ARROW_OPTIONS, t as renderControlMeasure, tt as DEFAULT_BREACH_OPTIONS, u as DEFAULT_TURNING_MOVEMENT_OPTIONS, ut as DEFAULT_ATTACK_HELICOPTER_OPTIONS, v as DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, vt as DEFAULT_DIRECTION_OF_MAIN_ATTACK_OPTIONS, w as DEFAULT_SCREEN_OPTIONS, wt as DEFAULT_AMBUSH_OPTIONS, x as DEFAULT_MAIN_ATTACK_OPTIONS, xt as canonicalTextAmplifierKey, y as DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, yt as DEFAULT_DIRECTION_OF_ATTACK_AVIATION_OPTIONS, z as DEFAULT_DISRUPT_OPTIONS, zt as blockDrawRule } from "./renderControlMeasure-CAfC2nEw.mjs";
|
|
2
2
|
//#region src/freeze-orientation.ts
|
|
3
3
|
/**
|
|
4
4
|
* Dispatches to a measure kind's `freezeOrientation` hook (see
|
|
@@ -129,4 +129,4 @@ function toHexChannel(value) {
|
|
|
129
129
|
return Math.max(0, Math.min(255, Math.round(value))).toString(16).padStart(2, "0");
|
|
130
130
|
}
|
|
131
131
|
//#endregion
|
|
132
|
-
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_BYPASS_OPTIONS, DEFAULT_CANALIZE_OPTIONS, DEFAULT_CLASSIC_ARROW_OPTIONS, DEFAULT_CLEAR_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_DISRUPT_OPTIONS, DEFAULT_ENCIRCLEMENT_OPTIONS, DEFAULT_ENGINEER_WORK_LINE_OPTIONS, DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS, DEFAULT_FIX_OPTIONS, DEFAULT_FLOT_OPTIONS, DEFAULT_FORTIFIED_AREA_OPTIONS, DEFAULT_FORTIFIED_LINE_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_TEXT_OPTIONS, DEFAULT_GUARD_OPTIONS, DEFAULT_HANDOVER_LINE_OPTIONS, DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS, DEFAULT_LANDING_ZONE_OPTIONS, DEFAULT_LIGHT_LINE_OPTIONS, DEFAULT_MAIN_ATTACK_OPTIONS, DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, DEFAULT_PHASE_LINE_OPTIONS, DEFAULT_PICKUP_ZONE_OPTIONS, DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, DEFAULT_SCREEN_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, EPSILON, TEXT_AMPLIFIER_FIELDS, ambushDrawRule, applyBoxTransformOptions, attackByFireDrawRule, axis1DrawRule, blockDrawRule, calculateMetrics, canonicalTextAmplifierKey, centerRadiusDrawRule, cloneControlMeasure, computeDefaultMidpointPerpendicularPoint, computeInitialWidthPoint, controlMeasureIdFromFeature, createBaselineFrame, createMidpointPerpendicularDrawRule, disruptDrawRule, freezeOrientationOptions, getControlMeasureMetadata, getControlMeasureMetadataByValue, getDefaultOptions, getMetersPerPixel, getMidpointPerpendicularSignedDistance, haversineDistance, isKind, line1DrawRule, line23DrawRule, line24DrawRule, line26DrawRule, listControlMeasureMetadata, normalizeTextAmplifiers, point12DrawRule, pointOnMidpointPerpendicularAxis, project, rectangleDrawRule, renderControlMeasure, resolveAmplifierPlacement, resolveStyleHints, roundToFixed, snapToMidpointPerpendicular, supportByFireDrawRule, toSimpleStyle, turnDrawRule, unproject };
|
|
132
|
+
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_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_DISRUPT_OPTIONS, DEFAULT_ENCIRCLEMENT_OPTIONS, DEFAULT_ENGINEER_WORK_LINE_OPTIONS, DEFAULT_FINAL_PROTECTIVE_FIRE_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_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_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, DEFAULT_PHASE_LINE_OPTIONS, DEFAULT_PICKUP_ZONE_OPTIONS, DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, DEFAULT_RELEASE_LINE_OPTIONS, DEFAULT_SCREEN_OPTIONS, DEFAULT_SECONDARY_DIRECTION_OF_FIRE_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, EPSILON, SECONDARY_DIRECTION_OF_FIRE_DASH, TEXT_AMPLIFIER_FIELDS, ambushDrawRule, applyBoxTransformOptions, attackByFireDrawRule, axis1DrawRule, blockDrawRule, calculateMetrics, canonicalTextAmplifierKey, centerRadiusDrawRule, cloneControlMeasure, computeDefaultMidpointPerpendicularPoint, computeInitialWidthPoint, controlMeasureIdFromFeature, createBaselineFrame, createMidpointPerpendicularDrawRule, disruptDrawRule, freezeOrientationOptions, getControlMeasureMetadata, getControlMeasureMetadataByValue, getDefaultOptions, getMetersPerPixel, getMidpointPerpendicularSignedDistance, haversineDistance, isKind, line1DrawRule, line23DrawRule, line24DrawRule, line26DrawRule, listControlMeasureMetadata, normalizeTextAmplifiers, point12DrawRule, pointOnMidpointPerpendicularAxis, project, rectangleDrawRule, renderControlMeasure, resolveAmplifierPlacement, resolveStyleHints, roundToFixed, snapToMidpointPerpendicular, supportByFireDrawRule, toSimpleStyle, turnDrawRule, unproject };
|
package/dist/preview/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { W as ControlMeasureId, Yr as TextAmplifiers, yr as FillPattern } from "../index-DtgRm_dz.mjs";
|
|
2
2
|
import { FeatureCollection, Geometry } from "geojson";
|
|
3
3
|
|
|
4
4
|
//#region src/preview/index.d.ts
|
|
@@ -42,6 +42,8 @@ interface PreviewShape {
|
|
|
42
42
|
type: "polyline" | "polygon" | "circle" | "text";
|
|
43
43
|
/** SVG path data for `polyline`/`polygon`. */
|
|
44
44
|
d?: string;
|
|
45
|
+
/** Intrinsic dash pattern carried by a stroked feature. Empty means solid. */
|
|
46
|
+
strokeDash?: number[];
|
|
45
47
|
/** Center for `circle`/`text`. */
|
|
46
48
|
cx?: number;
|
|
47
49
|
cy?: number;
|
|
@@ -114,7 +116,7 @@ declare function previewLabelBackgroundWidth(text: string | undefined, fontSize:
|
|
|
114
116
|
* itself, placed per `textAnchor` horizontally and centered on `cy`
|
|
115
117
|
* vertically (SVG text uses `dominant-baseline="central"`), rotates its
|
|
116
118
|
* corners around `(cx, cy)` by the same angle the SVG transform applies
|
|
117
|
-
* (`renderedAngle = PI - rotation
|
|
119
|
+
* (`renderedAngle = PI - rotation` — see
|
|
118
120
|
* {@link svgTextTransform}; labels commonly carry `rotation = PI`,
|
|
119
121
|
* which renders flat, so an undefined rotation must not be treated as
|
|
120
122
|
* rotated), and unions the result with the base `[0, 0, width, height]` box.
|
|
@@ -143,9 +145,11 @@ declare function viewBoxString(shapes: PreviewShape[], dims: {
|
|
|
143
145
|
/**
|
|
144
146
|
* The SVG `transform` attribute that rotates a `text` shape into place, or
|
|
145
147
|
* `undefined` for an unrotated/incomplete shape. Text rotations use the same
|
|
146
|
-
* generator convention as the map adapters (`renderedAngle = PI - rotation`)
|
|
147
|
-
*
|
|
148
|
-
*
|
|
148
|
+
* generator convention as the map adapters (`renderedAngle = PI - rotation`).
|
|
149
|
+
* The stored convention already accounts for projected Y-up coordinates being
|
|
150
|
+
* displayed in SVG's Y-down space, so no additional sign flip is needed.
|
|
151
|
+
* Shared by every SVG preview consumer (sidebar gallery, docs catalog, README
|
|
152
|
+
* generator).
|
|
149
153
|
*/
|
|
150
154
|
declare function svgTextTransform(s: PreviewShape): string | undefined;
|
|
151
155
|
//#endregion
|
package/dist/preview/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DEFINITIONS, t as renderControlMeasure } from "../renderControlMeasure-
|
|
1
|
+
import { a as DEFINITIONS, t as renderControlMeasure } from "../renderControlMeasure-CAfC2nEw.mjs";
|
|
2
2
|
//#region src/preview/index.ts
|
|
3
3
|
/** Side length (SVG units) of the repeating hatch tile in {@link PREVIEW_FILL_PATTERNS}. */
|
|
4
4
|
const PREVIEW_PATTERN_TILE = 8;
|
|
@@ -222,7 +222,7 @@ const MAX_TEXT_HEIGHT_RATIO = .16;
|
|
|
222
222
|
* itself, placed per `textAnchor` horizontally and centered on `cy`
|
|
223
223
|
* vertically (SVG text uses `dominant-baseline="central"`), rotates its
|
|
224
224
|
* corners around `(cx, cy)` by the same angle the SVG transform applies
|
|
225
|
-
* (`renderedAngle = PI - rotation
|
|
225
|
+
* (`renderedAngle = PI - rotation` — see
|
|
226
226
|
* {@link svgTextTransform}; labels commonly carry `rotation = PI`,
|
|
227
227
|
* which renders flat, so an undefined rotation must not be treated as
|
|
228
228
|
* rotated), and unions the result with the base `[0, 0, width, height]` box.
|
|
@@ -244,7 +244,7 @@ function viewBoxWithLabels(shapes, dims, fontSize) {
|
|
|
244
244
|
const right = left + w;
|
|
245
245
|
const top = s.cy - h / 2;
|
|
246
246
|
const bottom = s.cy + h / 2;
|
|
247
|
-
const theta = s.rotation === void 0 ? 0 :
|
|
247
|
+
const theta = s.rotation === void 0 ? 0 : Math.PI - s.rotation;
|
|
248
248
|
const cos = Math.cos(theta);
|
|
249
249
|
const sin = Math.sin(theta);
|
|
250
250
|
for (const [x, y] of [
|
|
@@ -280,13 +280,15 @@ function viewBoxString(shapes, dims, fontSize) {
|
|
|
280
280
|
/**
|
|
281
281
|
* The SVG `transform` attribute that rotates a `text` shape into place, or
|
|
282
282
|
* `undefined` for an unrotated/incomplete shape. Text rotations use the same
|
|
283
|
-
* generator convention as the map adapters (`renderedAngle = PI - rotation`)
|
|
284
|
-
*
|
|
285
|
-
*
|
|
283
|
+
* generator convention as the map adapters (`renderedAngle = PI - rotation`).
|
|
284
|
+
* The stored convention already accounts for projected Y-up coordinates being
|
|
285
|
+
* displayed in SVG's Y-down space, so no additional sign flip is needed.
|
|
286
|
+
* Shared by every SVG preview consumer (sidebar gallery, docs catalog, README
|
|
287
|
+
* generator).
|
|
286
288
|
*/
|
|
287
289
|
function svgTextTransform(s) {
|
|
288
290
|
if (s.rotation === void 0 || s.cx === void 0 || s.cy === void 0) return void 0;
|
|
289
|
-
return `rotate(${(
|
|
291
|
+
return `rotate(${((Math.PI - s.rotation) * 180 / Math.PI).toFixed(3)} ${s.cx.toFixed(3)} ${s.cy.toFixed(3)})`;
|
|
290
292
|
}
|
|
291
293
|
/**
|
|
292
294
|
* Resolves a label's SVG-unit text height from its `textSizeMeters` property
|
|
@@ -351,6 +353,7 @@ function collectShapes(g, tx, out, bboxArea, textLimits, props) {
|
|
|
351
353
|
const textStyle = labelProps.textStyle === "regular" || labelProps.textStyle === "italic" || labelProps.textStyle === "light" || labelProps.textStyle === "caps" ? labelProps.textStyle : void 0;
|
|
352
354
|
const styleProps = labelProps.style && typeof labelProps.style === "object" ? labelProps.style : {};
|
|
353
355
|
const fillPattern = PREVIEW_FILL_PATTERNS.some((p) => p.id === styleProps.fillPattern) ? styleProps.fillPattern : void 0;
|
|
356
|
+
const strokeDash = Array.isArray(styleProps.strokeDash) ? styleProps.strokeDash.filter((value) => typeof value === "number") : void 0;
|
|
354
357
|
const explicitlyFilled = typeof styleProps.fillColor === "string";
|
|
355
358
|
const polygonFilled = (ring) => bboxArea > 0 && ringArea(ring) / bboxArea < .25;
|
|
356
359
|
switch (g.type) {
|
|
@@ -391,13 +394,15 @@ function collectShapes(g, tx, out, bboxArea, textLimits, props) {
|
|
|
391
394
|
case "LineString":
|
|
392
395
|
out.push({
|
|
393
396
|
type: "polyline",
|
|
394
|
-
d: pathFromRing(g.coordinates, tx, false)
|
|
397
|
+
d: pathFromRing(g.coordinates, tx, false),
|
|
398
|
+
strokeDash
|
|
395
399
|
});
|
|
396
400
|
break;
|
|
397
401
|
case "MultiLineString":
|
|
398
402
|
g.coordinates.forEach((line) => out.push({
|
|
399
403
|
type: "polyline",
|
|
400
|
-
d: pathFromRing(line, tx, false)
|
|
404
|
+
d: pathFromRing(line, tx, false),
|
|
405
|
+
strokeDash
|
|
401
406
|
}));
|
|
402
407
|
break;
|
|
403
408
|
case "Polygon":
|