@orbat-mapper/control-measures 0.2.0-alpha.19 → 0.2.0-alpha.20
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-BJwZXCKb.d.mts → index-C1NE59Nx.d.mts} +115 -99
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -3
- package/dist/preview/index.d.mts +1 -1
- package/dist/preview/index.mjs +1 -1
- package/dist/{renderControlMeasure-1e_k10Kq.mjs → renderControlMeasure-DURyfLXo.mjs} +58 -24
- package/package.json +1 -1
|
@@ -863,6 +863,114 @@ declare const DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS: Required<PrincipalDir
|
|
|
863
863
|
*/
|
|
864
864
|
declare function createPrincipalDirectionOfFire(coordinates: Position[], options?: PrincipalDirectionOfFireOptions): FeatureCollection<MultiLineString, Record<string, never>>;
|
|
865
865
|
//#endregion
|
|
866
|
+
//#region src/style.d.ts
|
|
867
|
+
/**
|
|
868
|
+
* Framework-agnostic style hints attached to a `ControlMeasure`.
|
|
869
|
+
*
|
|
870
|
+
* Mirrors the per-feature subset of what map adapters render. The renderer
|
|
871
|
+
* fans these into each emitted feature's `properties.style` ([[StyleHints]]).
|
|
872
|
+
* Adapters merge them over their layer-level style; generator-emitted hints
|
|
873
|
+
* on individual features win over both.
|
|
874
|
+
*/
|
|
875
|
+
interface ControlMeasureStyle {
|
|
876
|
+
/**
|
|
877
|
+
* The single symbol color. Control measures are monocolor: one color paints
|
|
878
|
+
* every part, stroked or filled. Input-only — resolved into concrete
|
|
879
|
+
* `strokeColor` / `fillColor` per feature by the renderer and never emitted
|
|
880
|
+
* on output. `strokeColor` / `fillColor` act as optional per-channel
|
|
881
|
+
* overrides. See ADR-0011.
|
|
882
|
+
*/
|
|
883
|
+
color?: string;
|
|
884
|
+
strokeColor?: string;
|
|
885
|
+
strokeWidth?: number;
|
|
886
|
+
strokeDash?: number[];
|
|
887
|
+
fillColor?: string;
|
|
888
|
+
/**
|
|
889
|
+
* How a filled part's interior is painted. `"solid"` is explicit so a
|
|
890
|
+
* measure can override a patterned layer default (e.g. a hachure fill set
|
|
891
|
+
* at the façade). Pattern lines are drawn in the resolved fill color —
|
|
892
|
+
* alpha included, there is no separate opacity field. Renderers that
|
|
893
|
+
* cannot draw a pattern degrade to solid.
|
|
894
|
+
*/
|
|
895
|
+
fillPattern?: FillPattern;
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
* How a filled part's interior is painted. See `ControlMeasureStyle.fillPattern`.
|
|
899
|
+
*/
|
|
900
|
+
type FillPattern = "solid" | "hachure" | "cross";
|
|
901
|
+
//#endregion
|
|
902
|
+
//#region src/rendered.d.ts
|
|
903
|
+
/**
|
|
904
|
+
* Per-feature style hints carried on `properties.style`.
|
|
905
|
+
*
|
|
906
|
+
* These are *resolved*: `renderControlMeasure` cascades `graphicsStyle` →
|
|
907
|
+
* `cm.style` → any generator pattern hint, then expands the monocolor `color`
|
|
908
|
+
* into concrete `strokeColor` / `fillColor` per feature (see ADR-0011 and
|
|
909
|
+
* `resolveSymbolColor`). Output therefore carries concrete colors, never the
|
|
910
|
+
* input-only `color` key, and a `fillColor` only on parts the generator
|
|
911
|
+
* marked filled.
|
|
912
|
+
*
|
|
913
|
+
* Generators contribute paint *role* and *pattern* (a part is filled; a
|
|
914
|
+
* sub-line is dashed regardless of the user's stroke), never a hue. Adapters
|
|
915
|
+
* merge the resulting `StyleHints` over their layer-level style at draw time.
|
|
916
|
+
*/
|
|
917
|
+
interface StyleHints extends ControlMeasureStyle {}
|
|
918
|
+
/**
|
|
919
|
+
* Per-feature properties emitted by `renderControlMeasure`.
|
|
920
|
+
*
|
|
921
|
+
* Stable-id contract — every feature produced by the renderer has:
|
|
922
|
+
* - `feature.id` of the form `${cmId}:${part}:${index}`
|
|
923
|
+
* - `properties.part` matching the `part` segment of the id
|
|
924
|
+
* - `properties.index` matching the `index` segment of the id
|
|
925
|
+
*
|
|
926
|
+
* Adapters rely on this contract to diff renders in place without keeping
|
|
927
|
+
* their own bookkeeping. Use `controlMeasureIdFromFeature` to recover the
|
|
928
|
+
* `cmId` from a picked feature.
|
|
929
|
+
*/
|
|
930
|
+
interface FeaturePartProps {
|
|
931
|
+
part: string;
|
|
932
|
+
index: number;
|
|
933
|
+
style?: StyleHints;
|
|
934
|
+
/** Label text emitted by generators (e.g. breach "B"). */
|
|
935
|
+
text?: string;
|
|
936
|
+
/** Label rotation in radians, emitted by generators. */
|
|
937
|
+
rotation?: number;
|
|
938
|
+
/**
|
|
939
|
+
* Horizontal text alignment relative to the label point: `"start"` = the
|
|
940
|
+
* text begins at the point, `"end"` = it ends there. Absent = centered.
|
|
941
|
+
*/
|
|
942
|
+
textAnchor?: "start" | "end";
|
|
943
|
+
/** Canonical field key for a text-amplifier label that may be repositioned. */
|
|
944
|
+
amplifierField?: TextAmplifierKey;
|
|
945
|
+
/** Stable key used to persist a user-adjusted anchor for any rendered label. */
|
|
946
|
+
labelPlacementKey?: string;
|
|
947
|
+
/**
|
|
948
|
+
* Screen-anchored label size in CSS pixels — held constant on screen
|
|
949
|
+
* (ADR-0028). Mutually exclusive with `textSizeMeters`; absent both,
|
|
950
|
+
* adapters render their engine default, screen-fixed.
|
|
951
|
+
*/
|
|
952
|
+
textSizePixels?: number;
|
|
953
|
+
/**
|
|
954
|
+
* Ground-anchored label text height in projected meters (ADR-0028).
|
|
955
|
+
* Adapters render `clamp(textSizeMeters / resolution, min, max)` px, per
|
|
956
|
+
* their configured clamp band.
|
|
957
|
+
*/
|
|
958
|
+
textSizeMeters?: number;
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Output of `renderControlMeasure`. A GeoJSON `FeatureCollection` whose
|
|
962
|
+
* features satisfy the `FeaturePartProps` stable-id contract. See ADR-0010.
|
|
963
|
+
*/
|
|
964
|
+
type ControlMeasureRender = FeatureCollection<Geometry, FeaturePartProps>;
|
|
965
|
+
/**
|
|
966
|
+
* Recover the originating control measure id (`cmId`) from a feature emitted
|
|
967
|
+
* by `renderControlMeasure`. The feature id must match the stable-id contract
|
|
968
|
+
* `${cmId}:${part}:${index}`; otherwise this throws.
|
|
969
|
+
*/
|
|
970
|
+
declare function controlMeasureIdFromFeature(feature: Feature<Geometry, FeaturePartProps> | {
|
|
971
|
+
id?: string | number;
|
|
972
|
+
}): string;
|
|
973
|
+
//#endregion
|
|
866
974
|
//#region src/generators/cm14-maneuver-lines/finalProtectiveFire.d.ts
|
|
867
975
|
/**
|
|
868
976
|
* Configuration options for the Final Protective Fire tactical symbols.
|
|
@@ -885,6 +993,7 @@ declare const DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS: Required<FinalProtectiveFir
|
|
|
885
993
|
type FpfProps = {
|
|
886
994
|
part?: string;
|
|
887
995
|
fill?: true;
|
|
996
|
+
style?: StyleHints;
|
|
888
997
|
};
|
|
889
998
|
declare function createFinalProtectiveFireLeft(coordinates: Position[], options?: FinalProtectiveFireOptions): FeatureCollection<MultiLineString | Polygon, FpfProps>;
|
|
890
999
|
declare function createFinalProtectiveFireRight(coordinates: Position[], options?: FinalProtectiveFireOptions): FeatureCollection<MultiLineString | Polygon, FpfProps>;
|
|
@@ -1340,6 +1449,7 @@ declare const DEFAULT_CLASSIC_ARROW_OPTIONS: Required<ClassicArrowOptions>;
|
|
|
1340
1449
|
declare function createClassicArrow(coordinates: Position[], options?: ClassicArrowOptions): FeatureCollection<LineString | Polygon, {
|
|
1341
1450
|
part: "shaft" | "head";
|
|
1342
1451
|
fill?: boolean;
|
|
1452
|
+
style?: StyleHints;
|
|
1343
1453
|
}>;
|
|
1344
1454
|
//#endregion
|
|
1345
1455
|
//#region src/generators/cm99-generic-arrows/blockArrow.d.ts
|
|
@@ -2215,6 +2325,7 @@ declare const DEFINITIONS: {
|
|
|
2215
2325
|
"search-area": ControlMeasureDefinition<"search-area", (controlPoints: import("geojson").Position[], options?: TacticalArrowOptions) => import("geojson").FeatureCollection<import("geojson").MultiLineString | import("geojson").MultiPolygon, {
|
|
2216
2326
|
part: "shaft" | "head";
|
|
2217
2327
|
fill?: boolean;
|
|
2328
|
+
style?: StyleHints;
|
|
2218
2329
|
}>>;
|
|
2219
2330
|
encirclement: ControlMeasureDefinition<"encirclement", typeof createEncirclement>;
|
|
2220
2331
|
area: ControlMeasureDefinition<"area", typeof createArea>;
|
|
@@ -2303,30 +2414,6 @@ declare function getControlMeasureMetadata(id: ControlMeasureId): ControlMeasure
|
|
|
2303
2414
|
declare function getControlMeasureMetadataByValue(value: string): ControlMeasureMetadata | undefined;
|
|
2304
2415
|
declare function getDefaultOptions<K extends ControlMeasureKind>(kind: K): OptionsByKind[K];
|
|
2305
2416
|
//#endregion
|
|
2306
|
-
//#region src/style.d.ts
|
|
2307
|
-
/**
|
|
2308
|
-
* Framework-agnostic style hints attached to a `ControlMeasure`.
|
|
2309
|
-
*
|
|
2310
|
-
* Mirrors the per-feature subset of what map adapters render. The renderer
|
|
2311
|
-
* fans these into each emitted feature's `properties.style` ([[StyleHints]]).
|
|
2312
|
-
* Adapters merge them over their layer-level style; generator-emitted hints
|
|
2313
|
-
* on individual features win over both.
|
|
2314
|
-
*/
|
|
2315
|
-
interface ControlMeasureStyle {
|
|
2316
|
-
/**
|
|
2317
|
-
* The single symbol color. Control measures are monocolor: one color paints
|
|
2318
|
-
* every part, stroked or filled. Input-only — resolved into concrete
|
|
2319
|
-
* `strokeColor` / `fillColor` per feature by the renderer and never emitted
|
|
2320
|
-
* on output. `strokeColor` / `fillColor` act as optional per-channel
|
|
2321
|
-
* overrides. See ADR-0011.
|
|
2322
|
-
*/
|
|
2323
|
-
color?: string;
|
|
2324
|
-
strokeColor?: string;
|
|
2325
|
-
strokeWidth?: number;
|
|
2326
|
-
strokeDash?: number[];
|
|
2327
|
-
fillColor?: string;
|
|
2328
|
-
}
|
|
2329
|
-
//#endregion
|
|
2330
2417
|
//#region src/instance.d.ts
|
|
2331
2418
|
interface ControlMeasure<K extends ControlMeasureKind = ControlMeasureKind> {
|
|
2332
2419
|
id: string;
|
|
@@ -2356,78 +2443,6 @@ declare function isKind<K extends ControlMeasureKind>(cm: ControlMeasure, kind:
|
|
|
2356
2443
|
*/
|
|
2357
2444
|
declare function cloneControlMeasure<K extends ControlMeasureKind>(cm: ControlMeasure<K>): ControlMeasure<K>;
|
|
2358
2445
|
//#endregion
|
|
2359
|
-
//#region src/rendered.d.ts
|
|
2360
|
-
/**
|
|
2361
|
-
* Per-feature style hints carried on `properties.style`.
|
|
2362
|
-
*
|
|
2363
|
-
* These are *resolved*: `renderControlMeasure` cascades `graphicsStyle` →
|
|
2364
|
-
* `cm.style` → any generator pattern hint, then expands the monocolor `color`
|
|
2365
|
-
* into concrete `strokeColor` / `fillColor` per feature (see ADR-0011 and
|
|
2366
|
-
* `resolveSymbolColor`). Output therefore carries concrete colors, never the
|
|
2367
|
-
* input-only `color` key, and a `fillColor` only on parts the generator
|
|
2368
|
-
* marked filled.
|
|
2369
|
-
*
|
|
2370
|
-
* Generators contribute paint *role* and *pattern* (a part is filled; a
|
|
2371
|
-
* sub-line is dashed regardless of the user's stroke), never a hue. Adapters
|
|
2372
|
-
* merge the resulting `StyleHints` over their layer-level style at draw time.
|
|
2373
|
-
*/
|
|
2374
|
-
interface StyleHints extends ControlMeasureStyle {}
|
|
2375
|
-
/**
|
|
2376
|
-
* Per-feature properties emitted by `renderControlMeasure`.
|
|
2377
|
-
*
|
|
2378
|
-
* Stable-id contract — every feature produced by the renderer has:
|
|
2379
|
-
* - `feature.id` of the form `${cmId}:${part}:${index}`
|
|
2380
|
-
* - `properties.part` matching the `part` segment of the id
|
|
2381
|
-
* - `properties.index` matching the `index` segment of the id
|
|
2382
|
-
*
|
|
2383
|
-
* Adapters rely on this contract to diff renders in place without keeping
|
|
2384
|
-
* their own bookkeeping. Use `controlMeasureIdFromFeature` to recover the
|
|
2385
|
-
* `cmId` from a picked feature.
|
|
2386
|
-
*/
|
|
2387
|
-
interface FeaturePartProps {
|
|
2388
|
-
part: string;
|
|
2389
|
-
index: number;
|
|
2390
|
-
style?: StyleHints;
|
|
2391
|
-
/** Label text emitted by generators (e.g. breach "B"). */
|
|
2392
|
-
text?: string;
|
|
2393
|
-
/** Label rotation in radians, emitted by generators. */
|
|
2394
|
-
rotation?: number;
|
|
2395
|
-
/**
|
|
2396
|
-
* Horizontal text alignment relative to the label point: `"start"` = the
|
|
2397
|
-
* text begins at the point, `"end"` = it ends there. Absent = centered.
|
|
2398
|
-
*/
|
|
2399
|
-
textAnchor?: "start" | "end";
|
|
2400
|
-
/** Canonical field key for a text-amplifier label that may be repositioned. */
|
|
2401
|
-
amplifierField?: TextAmplifierKey;
|
|
2402
|
-
/** Stable key used to persist a user-adjusted anchor for any rendered label. */
|
|
2403
|
-
labelPlacementKey?: string;
|
|
2404
|
-
/**
|
|
2405
|
-
* Screen-anchored label size in CSS pixels — held constant on screen
|
|
2406
|
-
* (ADR-0028). Mutually exclusive with `textSizeMeters`; absent both,
|
|
2407
|
-
* adapters render their engine default, screen-fixed.
|
|
2408
|
-
*/
|
|
2409
|
-
textSizePixels?: number;
|
|
2410
|
-
/**
|
|
2411
|
-
* Ground-anchored label text height in projected meters (ADR-0028).
|
|
2412
|
-
* Adapters render `clamp(textSizeMeters / resolution, min, max)` px, per
|
|
2413
|
-
* their configured clamp band.
|
|
2414
|
-
*/
|
|
2415
|
-
textSizeMeters?: number;
|
|
2416
|
-
}
|
|
2417
|
-
/**
|
|
2418
|
-
* Output of `renderControlMeasure`. A GeoJSON `FeatureCollection` whose
|
|
2419
|
-
* features satisfy the `FeaturePartProps` stable-id contract. See ADR-0010.
|
|
2420
|
-
*/
|
|
2421
|
-
type ControlMeasureRender = FeatureCollection<Geometry, FeaturePartProps>;
|
|
2422
|
-
/**
|
|
2423
|
-
* Recover the originating control measure id (`cmId`) from a feature emitted
|
|
2424
|
-
* by `renderControlMeasure`. The feature id must match the stable-id contract
|
|
2425
|
-
* `${cmId}:${part}:${index}`; otherwise this throws.
|
|
2426
|
-
*/
|
|
2427
|
-
declare function controlMeasureIdFromFeature(feature: Feature<Geometry, FeaturePartProps> | {
|
|
2428
|
-
id?: string | number;
|
|
2429
|
-
}): string;
|
|
2430
|
-
//#endregion
|
|
2431
2446
|
//#region src/renderControlMeasure.d.ts
|
|
2432
2447
|
interface RenderOptions {
|
|
2433
2448
|
validationMode?: ValidationMode;
|
|
@@ -2504,8 +2519,9 @@ type SimpleStyleRender = FeatureCollection<Geometry, SimpleStyleProps>;
|
|
|
2504
2519
|
* three-layer merge and stays a pure post-processing step.
|
|
2505
2520
|
*
|
|
2506
2521
|
* Lossy mapping, by design:
|
|
2507
|
-
* - `strokeDash`
|
|
2508
|
-
*
|
|
2522
|
+
* - `strokeDash` and `fillPattern` have no simplestyle equivalent and are
|
|
2523
|
+
* dropped — dashed sub-lines and patterned fills render solid in
|
|
2524
|
+
* simplestyle consumers.
|
|
2509
2525
|
* - colors must be hex or `rgb()/rgba()`; alpha becomes `*-opacity`. Other
|
|
2510
2526
|
* color forms (named, `hsl()`) are omitted rather than guessed.
|
|
2511
2527
|
*/
|
|
@@ -2712,4 +2728,4 @@ interface AmbushOptions {
|
|
|
2712
2728
|
}
|
|
2713
2729
|
declare const DEFAULT_AMBUSH_OPTIONS: Required<AmbushOptions>;
|
|
2714
2730
|
//#endregion
|
|
2715
|
-
export {
|
|
2731
|
+
export { ObstacleBypassDifficultOptions as $, DirectionOfAttackAviationOptions as $n, SupportByFireOptions as $t, roundToFixed as A, DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS as An, canonicalTextAmplifierKey as Ar, DEFAULT_TACTICAL_ARROW_OPTIONS as At, isKind as B, ControlMeasureRender as Bn, BlockMissionTaskOptions as Bt, BaselineFrame as C, computeInitialWidthPoint as Cn, CanonicalTextAmplifiers as Cr, ScreenOptions as Ct, createBaselineFrame as D, PickupZoneOptions as Dn, TextAmplifierField as Dr, DelayOptions as Dt, BaselineFrameOrigin as E, DEFAULT_PICKUP_ZONE_OPTIONS as En, TEXT_AMPLIFIER_FIELDS as Er, DEFAULT_DELAY_OPTIONS as Et, freezeOrientationOptions as F, DEFAULT_AREA_DEFENSE_OPTIONS as Fn, DEFAULT_CANALIZE_OPTIONS as Ft, OptionsByKind as G, FillPattern as Gn, HandoverLineOptions as Gt, CONTROL_MEASURE_METADATA as H, StyleHints as Hn, BattleHandoverLineOptions as Ht, RenderOptions as I, DEFAULT_ENCIRCLEMENT_OPTIONS as In, BypassOptions as It, getDefaultOptions as J, DEFAULT_DIRECTION_OF_SUPPORTING_ATTACK_OPTIONS as Jn, DEFAULT_FLOT_OPTIONS as Jt, getControlMeasureMetadata as K, DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS as Kn, DEFAULT_PHASE_LINE_OPTIONS as Kt, renderControlMeasure as L, EncirclementOptions as Ln, DEFAULT_BYPASS_OPTIONS as Lt, SimpleStyleRender as M, AssemblyAreaOptions as Mn, resolveAmplifierPlacement as Mr, ClearOptions as Mt, toSimpleStyle as N, DEFAULT_ASSEMBLY_AREA_OPTIONS as Nn, AnchorTransformEvent as Nr, DEFAULT_CLEAR_OPTIONS as Nt, EPSILON as O, DEFAULT_LANDING_ZONE_OPTIONS as On, TextAmplifierKey as Or, CoverOptions as Ot, resolveStyleHints as P, AreaDefenseOptions as Pn, ControlMeasureDrawRule as Pr, CanalizeOptions as Pt, DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS as Q, DEFAULT_DIRECTION_OF_ATTACK_AVIATION_OPTIONS as Qn, DEFAULT_SUPPORT_BY_FIRE_OPTIONS as Qt, ControlMeasure as R, DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS as Rn, BreachOptions as Rt, snapToMidpointPerpendicular as S, calculateMetrics as Sn, AmplifierPlacements as Sr, DEFAULT_SCREEN_OPTIONS as St, BaselineFrameOptions as T, DEFAULT_AREA_OF_OPERATIONS_OPTIONS as Tn, LabelPlacementOverride as Tr, GuardOptions as Tt, ControlMeasureId as U, controlMeasureIdFromFeature as Un, DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS as Ut, CONTROL_MEASURE_IDS as V, FeaturePartProps as Vn, DEFAULT_BLOCK_MISSION_TASK_OPTIONS as Vt, ControlMeasureKind as W, ControlMeasureStyle as Wn, DEFAULT_HANDOVER_LINE_OPTIONS as Wt, DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS as X, DEFAULT_DIRECTION_OF_MAIN_ATTACK_OPTIONS as Xn, AttackByFireOptions as Xt, listControlMeasureMetadata as Y, DirectionOfSupportingAttackOptions as Yn, FLOTOptions as Yt, ObstacleBypassImpossibleOptions as Z, DirectionOfMainAttackOptions as Zn, DEFAULT_ATTACK_BY_FIRE_OPTIONS as Zt, MidpointPerpendicularDrawRuleOptions as _, DEFAULT_CLASSIC_ARROW_OPTIONS as _n, ControlMeasureGeometryType as _r, FortifiedLineOptions as _t, supportByFireDrawRule as a, GenericCircleOptions as an, GenericC2LineOptions as ar, FixOptions as at, getMidpointPerpendicularSignedDistance as b, DEFAULT_MAIN_ATTACK_OPTIONS as bn, TextAmplifierDescriptor as br, AntitankDitchOptions as bt, line23DrawRule as c, DEFAULT_GENERIC_POLYGON_OPTIONS as cn, DEFAULT_LIGHT_LINE_OPTIONS as cr, BlockOptions as ct, ambushDrawRule as d, GenericLineOptions as dn, Point2D as dr, TurningMovementOptions as dt, AttackHelicopterOptions as en, DEFAULT_STRONG_POINT_OPTIONS as er, DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS as et, attackByFireDrawRule as f, BlockArrowHeadStyle as fn, project as fr, DEFAULT_FRONTAL_ATTACK_OPTIONS as ft, blockDrawRule as g, ClassicArrowOptions as gn, ControlMeasureGeometry as gr, DEFAULT_FORTIFIED_LINE_OPTIONS as gt, disruptDrawRule as h, ClassicArrowHeadStyle as hn, DEFAULT_BOUNDARY_OPTIONS as hr, FortifiedAreaOptions as ht, axis1DrawRule as i, DEFAULT_GENERIC_CIRCLE_OPTIONS as in, DEFAULT_GENERIC_C2_LINE_OPTIONS as ir, DEFAULT_FIX_OPTIONS as it, SimpleStyleProps as j, JointTacticalActionAreaOptions as jn, normalizeTextAmplifiers as jr, TacticalArrowOptions as jt, getMetersPerPixel as k, LandingZoneOptions as kn, TextAmplifiers as kr, DEFAULT_COVER_OPTIONS as kt, turnDrawRule as l, GenericPolygonOptions as ln, LightLineOptions as lr, DEFAULT_BLOCK_OPTIONS as lt, centerRadiusDrawRule as m, DEFAULT_BLOCK_ARROW_OPTIONS as mn, BoundaryOptions as mr, DEFAULT_FORTIFIED_AREA_OPTIONS as mt, DEFAULT_AMBUSH_OPTIONS as n, AirborneAttackOptions as nn, BattlePositionOptions as nr, DEFAULT_TURN_OPTIONS as nt, line26DrawRule as o, DEFAULT_GENERIC_RECTANGLE_OPTIONS as on, DEFAULT_ENGINEER_WORK_LINE_OPTIONS as or, DEFAULT_DISRUPT_OPTIONS as ot, point12DrawRule as p, BlockArrowOptions as pn, unproject as pr, FrontalAttackOptions as pt, getControlMeasureMetadataByValue as q, PrincipalDirectionOfFireOptions as qn, PhaseLineOptions as qt, rectangleDrawRule as r, DEFAULT_AIRBORNE_ATTACK_OPTIONS as rn, DEFAULT_BATTLE_POSITION_OPTIONS as rr, TurnOptions as rt, line24DrawRule as s, GenericRectangleOptions as sn, EngineerWorkLineOptions as sr, DisruptOptions as st, AmbushOptions as t, DEFAULT_ATTACK_HELICOPTER_OPTIONS as tn, StrongPointOptions as tr, ObstacleBypassEasyOptions as tt, line1DrawRule as u, DEFAULT_GENERIC_LINE_OPTIONS as un, LabelSizeOptions as ur, DEFAULT_TURNING_MOVEMENT_OPTIONS as ut, computeDefaultMidpointPerpendicularPoint as v, DEFAULT_SUPPORTING_ATTACK_OPTIONS as vn, ControlMeasureMetadata as vr, AntitankWallOptions as vt, BaselineFrameNormal as w, AreaOfOperationsOptions as wn, GeneratedLabelKey as wr, DEFAULT_GUARD_OPTIONS as wt, pointOnMidpointPerpendicularAxis as x, MainAttackOptions as xn, AmplifierPlacement as xr, DEFAULT_ANTITANK_DITCH_OPTIONS as xt, createMidpointPerpendicularDrawRule as y, SupportingAttackOptions as yn, ParamDescriptor as yr, DEFAULT_ANTITANK_WALL_OPTIONS as yt, cloneControlMeasure as z, FinalProtectiveFireOptions as zn, DEFAULT_BREACH_OPTIONS as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ 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 BreachOptions, type BypassOptions, CONTROL_MEASURE_IDS, CONTROL_MEASURE_METADATA, type CanalizeOptions, type CanonicalTextAmplifiers, type ClassicArrowHeadStyle, type ClassicArrowOptions, type ClearOptions, type ControlMeasure, type ControlMeasureDrawRule, type ControlMeasureGeometry, type ControlMeasureGeometryType, type ControlMeasureId, type ControlMeasureKind, type ControlMeasureMetadata, 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_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 FinalProtectiveFireOptions, type FixOptions, type FortifiedAreaOptions, type FortifiedLineOptions, type FrontalAttackOptions, type GeneratedLabelKey, type GenericC2LineOptions, type GenericCircleOptions, type GenericLineOptions, type GenericPolygonOptions, type GenericRectangleOptions, 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, attackByFireDrawRule, axis1DrawRule, blockDrawRule, calculateMetrics, canonicalTextAmplifierKey, centerRadiusDrawRule, cloneControlMeasure, computeDefaultMidpointPerpendicularPoint, computeInitialWidthPoint, controlMeasureIdFromFeature, createBaselineFrame, createMidpointPerpendicularDrawRule, disruptDrawRule, freezeOrientationOptions, getControlMeasureMetadata, getControlMeasureMetadataByValue, getDefaultOptions, getMetersPerPixel, getMidpointPerpendicularSignedDistance, isKind, line1DrawRule, line23DrawRule, line24DrawRule, line26DrawRule, listControlMeasureMetadata, normalizeTextAmplifiers, point12DrawRule, pointOnMidpointPerpendicularAxis, project, rectangleDrawRule, renderControlMeasure, resolveAmplifierPlacement, resolveStyleHints, roundToFixed, snapToMidpointPerpendicular, supportByFireDrawRule, toSimpleStyle, turnDrawRule, unproject };
|
|
1
|
+
import { $ as ObstacleBypassDifficultOptions, $n as DirectionOfAttackAviationOptions, $t as SupportByFireOptions, A as roundToFixed, An as DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS, Ar as canonicalTextAmplifierKey, At as DEFAULT_TACTICAL_ARROW_OPTIONS, B as isKind, Bn as ControlMeasureRender, Bt as BlockMissionTaskOptions, C as BaselineFrame, Cn as computeInitialWidthPoint, Cr as CanonicalTextAmplifiers, Ct as ScreenOptions, D as createBaselineFrame, Dn as PickupZoneOptions, Dr as TextAmplifierField, Dt as DelayOptions, E as BaselineFrameOrigin, En as DEFAULT_PICKUP_ZONE_OPTIONS, Er as TEXT_AMPLIFIER_FIELDS, Et as DEFAULT_DELAY_OPTIONS, F as freezeOrientationOptions, Fn as DEFAULT_AREA_DEFENSE_OPTIONS, Ft as DEFAULT_CANALIZE_OPTIONS, G as OptionsByKind, Gn as FillPattern, Gt as HandoverLineOptions, H as CONTROL_MEASURE_METADATA, Hn as StyleHints, Ht as BattleHandoverLineOptions, I as RenderOptions, In as DEFAULT_ENCIRCLEMENT_OPTIONS, It as BypassOptions, J as getDefaultOptions, Jn as DEFAULT_DIRECTION_OF_SUPPORTING_ATTACK_OPTIONS, Jt as DEFAULT_FLOT_OPTIONS, K as getControlMeasureMetadata, Kn as DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, Kt as DEFAULT_PHASE_LINE_OPTIONS, L as renderControlMeasure, Ln as EncirclementOptions, Lt as DEFAULT_BYPASS_OPTIONS, M as SimpleStyleRender, Mn as AssemblyAreaOptions, Mr as resolveAmplifierPlacement, Mt as ClearOptions, N as toSimpleStyle, Nn as DEFAULT_ASSEMBLY_AREA_OPTIONS, Nr as AnchorTransformEvent, Nt as DEFAULT_CLEAR_OPTIONS, O as EPSILON, On as DEFAULT_LANDING_ZONE_OPTIONS, Or as TextAmplifierKey, Ot as CoverOptions, P as resolveStyleHints, Pn as AreaDefenseOptions, Pr as ControlMeasureDrawRule, Pt as CanalizeOptions, Q as DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, Qn as DEFAULT_DIRECTION_OF_ATTACK_AVIATION_OPTIONS, Qt as DEFAULT_SUPPORT_BY_FIRE_OPTIONS, R as ControlMeasure, Rn as DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS, Rt as BreachOptions, S as snapToMidpointPerpendicular, Sn as calculateMetrics, Sr as AmplifierPlacements, St as DEFAULT_SCREEN_OPTIONS, T as BaselineFrameOptions, Tn as DEFAULT_AREA_OF_OPERATIONS_OPTIONS, Tr as LabelPlacementOverride, Tt as GuardOptions, U as ControlMeasureId, Un as controlMeasureIdFromFeature, Ut as DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS, V as CONTROL_MEASURE_IDS, Vn as FeaturePartProps, Vt as DEFAULT_BLOCK_MISSION_TASK_OPTIONS, W as ControlMeasureKind, Wn as ControlMeasureStyle, Wt as DEFAULT_HANDOVER_LINE_OPTIONS, X as DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, Xn as DEFAULT_DIRECTION_OF_MAIN_ATTACK_OPTIONS, Xt as AttackByFireOptions, Y as listControlMeasureMetadata, Yn as DirectionOfSupportingAttackOptions, Yt as FLOTOptions, Z as ObstacleBypassImpossibleOptions, Zn as DirectionOfMainAttackOptions, Zt as DEFAULT_ATTACK_BY_FIRE_OPTIONS, _ as MidpointPerpendicularDrawRuleOptions, _n as DEFAULT_CLASSIC_ARROW_OPTIONS, _r as ControlMeasureGeometryType, _t as FortifiedLineOptions, a as supportByFireDrawRule, an as GenericCircleOptions, ar as GenericC2LineOptions, at as FixOptions, b as getMidpointPerpendicularSignedDistance, bn as DEFAULT_MAIN_ATTACK_OPTIONS, br as TextAmplifierDescriptor, bt as AntitankDitchOptions, c as line23DrawRule, cn as DEFAULT_GENERIC_POLYGON_OPTIONS, cr as DEFAULT_LIGHT_LINE_OPTIONS, ct as BlockOptions, d as ambushDrawRule, dn as GenericLineOptions, dr as Point2D, dt as TurningMovementOptions, en as AttackHelicopterOptions, er as DEFAULT_STRONG_POINT_OPTIONS, et as DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, f as attackByFireDrawRule, fn as BlockArrowHeadStyle, fr as project, ft as DEFAULT_FRONTAL_ATTACK_OPTIONS, g as blockDrawRule, gn as ClassicArrowOptions, gr as ControlMeasureGeometry, gt as DEFAULT_FORTIFIED_LINE_OPTIONS, h as disruptDrawRule, hn as ClassicArrowHeadStyle, hr as DEFAULT_BOUNDARY_OPTIONS, ht as FortifiedAreaOptions, i as axis1DrawRule, in as DEFAULT_GENERIC_CIRCLE_OPTIONS, ir as DEFAULT_GENERIC_C2_LINE_OPTIONS, it as DEFAULT_FIX_OPTIONS, j as SimpleStyleProps, jn as JointTacticalActionAreaOptions, jr as normalizeTextAmplifiers, jt as TacticalArrowOptions, k as getMetersPerPixel, kn as LandingZoneOptions, kr as TextAmplifiers, kt as DEFAULT_COVER_OPTIONS, l as turnDrawRule, ln as GenericPolygonOptions, lr as LightLineOptions, lt as DEFAULT_BLOCK_OPTIONS, m as centerRadiusDrawRule, mn as DEFAULT_BLOCK_ARROW_OPTIONS, mr as BoundaryOptions, mt as DEFAULT_FORTIFIED_AREA_OPTIONS, n as DEFAULT_AMBUSH_OPTIONS, nn as AirborneAttackOptions, nr as BattlePositionOptions, nt as DEFAULT_TURN_OPTIONS, o as line26DrawRule, on as DEFAULT_GENERIC_RECTANGLE_OPTIONS, or as DEFAULT_ENGINEER_WORK_LINE_OPTIONS, ot as DEFAULT_DISRUPT_OPTIONS, p as point12DrawRule, pn as BlockArrowOptions, pr as unproject, pt as FrontalAttackOptions, q as getControlMeasureMetadataByValue, qn as PrincipalDirectionOfFireOptions, qt as PhaseLineOptions, r as rectangleDrawRule, rn as DEFAULT_AIRBORNE_ATTACK_OPTIONS, rr as DEFAULT_BATTLE_POSITION_OPTIONS, rt as TurnOptions, s as line24DrawRule, sn as GenericRectangleOptions, sr as EngineerWorkLineOptions, st as DisruptOptions, t as AmbushOptions, tn as DEFAULT_ATTACK_HELICOPTER_OPTIONS, tr as StrongPointOptions, tt as ObstacleBypassEasyOptions, u as line1DrawRule, un as DEFAULT_GENERIC_LINE_OPTIONS, ur as LabelSizeOptions, ut as DEFAULT_TURNING_MOVEMENT_OPTIONS, v as computeDefaultMidpointPerpendicularPoint, vn as DEFAULT_SUPPORTING_ATTACK_OPTIONS, vr as ControlMeasureMetadata, vt as AntitankWallOptions, w as BaselineFrameNormal, wn as AreaOfOperationsOptions, wr as GeneratedLabelKey, wt as DEFAULT_GUARD_OPTIONS, x as pointOnMidpointPerpendicularAxis, xn as MainAttackOptions, xr as AmplifierPlacement, xt as DEFAULT_ANTITANK_DITCH_OPTIONS, y as createMidpointPerpendicularDrawRule, yn as SupportingAttackOptions, yr as ParamDescriptor, yt as DEFAULT_ANTITANK_WALL_OPTIONS, z as cloneControlMeasure, zn as FinalProtectiveFireOptions, zt as DEFAULT_BREACH_OPTIONS } from "./index-C1NE59Nx.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 BreachOptions, type BypassOptions, CONTROL_MEASURE_IDS, CONTROL_MEASURE_METADATA, type CanalizeOptions, type CanonicalTextAmplifiers, type ClassicArrowHeadStyle, type ClassicArrowOptions, type ClearOptions, type ControlMeasure, type ControlMeasureDrawRule, type ControlMeasureGeometry, type ControlMeasureGeometryType, type ControlMeasureId, type ControlMeasureKind, type ControlMeasureMetadata, 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_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 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, attackByFireDrawRule, axis1DrawRule, blockDrawRule, calculateMetrics, canonicalTextAmplifierKey, centerRadiusDrawRule, cloneControlMeasure, computeDefaultMidpointPerpendicularPoint, computeInitialWidthPoint, controlMeasureIdFromFeature, createBaselineFrame, createMidpointPerpendicularDrawRule, disruptDrawRule, freezeOrientationOptions, getControlMeasureMetadata, getControlMeasureMetadataByValue, getDefaultOptions, getMetersPerPixel, getMidpointPerpendicularSignedDistance, 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 DEFAULT_BLOCK_ARROW_OPTIONS, A as DEFAULT_FLOT_OPTIONS, At as disruptDrawRule, B as DEFAULT_GENERIC_RECTANGLE_OPTIONS, Bt as project, C as DEFAULT_SCREEN_OPTIONS, Ct as line23DrawRule, D as DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS, Dt as attackByFireDrawRule, E as DEFAULT_FORTIFIED_LINE_OPTIONS, Et as ambushDrawRule, F as DEFAULT_GUARD_OPTIONS, Ft as pointOnMidpointPerpendicularAxis, G as DEFAULT_CANALIZE_OPTIONS, H as DEFAULT_GENERIC_LINE_OPTIONS, Ht as EPSILON, I as DEFAULT_DELAY_OPTIONS, It as snapToMidpointPerpendicular, J as DEFAULT_BLOCK_MISSION_TASK_OPTIONS, K as DEFAULT_BYPASS_OPTIONS, L as DEFAULT_COVER_OPTIONS, Lt as createBaselineFrame, M as DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS, Mt as computeDefaultMidpointPerpendicularPoint, N as DEFAULT_ENCIRCLEMENT_OPTIONS, Nt as createMidpointPerpendicularDrawRule, O as DEFAULT_HANDOVER_LINE_OPTIONS, Ot as point12DrawRule, P as DEFAULT_DISRUPT_OPTIONS, Pt as getMidpointPerpendicularSignedDistance, Q as DEFAULT_BOUNDARY_OPTIONS, R as DEFAULT_TACTICAL_ARROW_OPTIONS, Rt as calculateMetrics, S as DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS, St as line24DrawRule, T as DEFAULT_FORTIFIED_AREA_OPTIONS, Tt as line1DrawRule, U as DEFAULT_GENERIC_CIRCLE_OPTIONS, Ut as getMetersPerPixel, V as DEFAULT_GENERIC_POLYGON_OPTIONS, Vt as unproject, W as DEFAULT_CLASSIC_ARROW_OPTIONS, Wt as roundToFixed, X as DEFAULT_ENGINEER_WORK_LINE_OPTIONS, Y as DEFAULT_GENERIC_C2_LINE_OPTIONS, Z as DEFAULT_LIGHT_LINE_OPTIONS, _ as DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, _t as DEFAULT_AIRBORNE_ATTACK_OPTIONS, a as DEFINITIONS, at as DEFAULT_ANTITANK_DITCH_OPTIONS, b as DEFAULT_MAIN_ATTACK_OPTIONS, bt as supportByFireDrawRule, c as getDefaultOptions, ct as DEFAULT_AREA_DEFENSE_OPTIONS, d as DEFAULT_TURN_OPTIONS, dt as normalizeTextAmplifiers, et as DEFAULT_BLOCK_OPTIONS, f as DEFAULT_SUPPORTING_ATTACK_OPTIONS, ft as resolveAmplifierPlacement, g as DEFAULT_PICKUP_ZONE_OPTIONS, gt as DEFAULT_AMBUSH_OPTIONS, h as DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, ht as DEFAULT_DIRECTION_OF_ATTACK_AVIATION_OPTIONS, i as CONTROL_MEASURE_METADATA, it as DEFAULT_ANTITANK_WALL_OPTIONS, j as DEFAULT_FIX_OPTIONS, jt as blockDrawRule, k as DEFAULT_PHASE_LINE_OPTIONS, kt as centerRadiusDrawRule, l as listControlMeasureMetadata, lt as TEXT_AMPLIFIER_FIELDS, m as DEFAULT_STRONG_POINT_OPTIONS, mt as DEFAULT_DIRECTION_OF_MAIN_ATTACK_OPTIONS, n as resolveStyleHints, nt as DEFAULT_ATTACK_HELICOPTER_OPTIONS, o as getControlMeasureMetadata, ot as DEFAULT_ASSEMBLY_AREA_OPTIONS, p as DEFAULT_SUPPORT_BY_FIRE_OPTIONS, pt as DEFAULT_DIRECTION_OF_SUPPORTING_ATTACK_OPTIONS, q as DEFAULT_BREACH_OPTIONS, r as CONTROL_MEASURE_IDS, rt as DEFAULT_ATTACK_BY_FIRE_OPTIONS, s as getControlMeasureMetadataByValue, st as DEFAULT_AREA_OF_OPERATIONS_OPTIONS, t as renderControlMeasure, tt as DEFAULT_BATTLE_POSITION_OPTIONS, u as DEFAULT_TURNING_MOVEMENT_OPTIONS, ut as canonicalTextAmplifierKey, v as DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, vt as rectangleDrawRule, w as DEFAULT_FRONTAL_ATTACK_OPTIONS, wt as turnDrawRule, x as DEFAULT_LANDING_ZONE_OPTIONS, xt as line26DrawRule, y as DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, yt as axis1DrawRule, z as DEFAULT_CLEAR_OPTIONS, zt as computeInitialWidthPoint } from "./renderControlMeasure-
|
|
1
|
+
import { $ as DEFAULT_BLOCK_ARROW_OPTIONS, A as DEFAULT_FLOT_OPTIONS, At as disruptDrawRule, B as DEFAULT_GENERIC_RECTANGLE_OPTIONS, Bt as project, C as DEFAULT_SCREEN_OPTIONS, Ct as line23DrawRule, D as DEFAULT_BATTLE_HANDOVER_LINE_OPTIONS, Dt as attackByFireDrawRule, E as DEFAULT_FORTIFIED_LINE_OPTIONS, Et as ambushDrawRule, F as DEFAULT_GUARD_OPTIONS, Ft as pointOnMidpointPerpendicularAxis, G as DEFAULT_CANALIZE_OPTIONS, H as DEFAULT_GENERIC_LINE_OPTIONS, Ht as EPSILON, I as DEFAULT_DELAY_OPTIONS, It as snapToMidpointPerpendicular, J as DEFAULT_BLOCK_MISSION_TASK_OPTIONS, K as DEFAULT_BYPASS_OPTIONS, L as DEFAULT_COVER_OPTIONS, Lt as createBaselineFrame, M as DEFAULT_FINAL_PROTECTIVE_FIRE_OPTIONS, Mt as computeDefaultMidpointPerpendicularPoint, N as DEFAULT_ENCIRCLEMENT_OPTIONS, Nt as createMidpointPerpendicularDrawRule, O as DEFAULT_HANDOVER_LINE_OPTIONS, Ot as point12DrawRule, P as DEFAULT_DISRUPT_OPTIONS, Pt as getMidpointPerpendicularSignedDistance, Q as DEFAULT_BOUNDARY_OPTIONS, R as DEFAULT_TACTICAL_ARROW_OPTIONS, Rt as calculateMetrics, S as DEFAULT_JOINT_TACTICAL_ACTION_AREA_OPTIONS, St as line24DrawRule, T as DEFAULT_FORTIFIED_AREA_OPTIONS, Tt as line1DrawRule, U as DEFAULT_GENERIC_CIRCLE_OPTIONS, Ut as getMetersPerPixel, V as DEFAULT_GENERIC_POLYGON_OPTIONS, Vt as unproject, W as DEFAULT_CLASSIC_ARROW_OPTIONS, Wt as roundToFixed, X as DEFAULT_ENGINEER_WORK_LINE_OPTIONS, Y as DEFAULT_GENERIC_C2_LINE_OPTIONS, Z as DEFAULT_LIGHT_LINE_OPTIONS, _ as DEFAULT_OBSTACLE_BYPASS_IMPOSSIBLE_OPTIONS, _t as DEFAULT_AIRBORNE_ATTACK_OPTIONS, a as DEFINITIONS, at as DEFAULT_ANTITANK_DITCH_OPTIONS, b as DEFAULT_MAIN_ATTACK_OPTIONS, bt as supportByFireDrawRule, c as getDefaultOptions, ct as DEFAULT_AREA_DEFENSE_OPTIONS, d as DEFAULT_TURN_OPTIONS, dt as normalizeTextAmplifiers, et as DEFAULT_BLOCK_OPTIONS, f as DEFAULT_SUPPORTING_ATTACK_OPTIONS, ft as resolveAmplifierPlacement, g as DEFAULT_PICKUP_ZONE_OPTIONS, gt as DEFAULT_AMBUSH_OPTIONS, h as DEFAULT_PRINCIPAL_DIRECTION_OF_FIRE_OPTIONS, ht as DEFAULT_DIRECTION_OF_ATTACK_AVIATION_OPTIONS, i as CONTROL_MEASURE_METADATA, it as DEFAULT_ANTITANK_WALL_OPTIONS, j as DEFAULT_FIX_OPTIONS, jt as blockDrawRule, k as DEFAULT_PHASE_LINE_OPTIONS, kt as centerRadiusDrawRule, l as listControlMeasureMetadata, lt as TEXT_AMPLIFIER_FIELDS, m as DEFAULT_STRONG_POINT_OPTIONS, mt as DEFAULT_DIRECTION_OF_MAIN_ATTACK_OPTIONS, n as resolveStyleHints, nt as DEFAULT_ATTACK_HELICOPTER_OPTIONS, o as getControlMeasureMetadata, ot as DEFAULT_ASSEMBLY_AREA_OPTIONS, p as DEFAULT_SUPPORT_BY_FIRE_OPTIONS, pt as DEFAULT_DIRECTION_OF_SUPPORTING_ATTACK_OPTIONS, q as DEFAULT_BREACH_OPTIONS, r as CONTROL_MEASURE_IDS, rt as DEFAULT_ATTACK_BY_FIRE_OPTIONS, s as getControlMeasureMetadataByValue, st as DEFAULT_AREA_OF_OPERATIONS_OPTIONS, t as renderControlMeasure, tt as DEFAULT_BATTLE_POSITION_OPTIONS, u as DEFAULT_TURNING_MOVEMENT_OPTIONS, ut as canonicalTextAmplifierKey, v as DEFAULT_OBSTACLE_BYPASS_EASY_OPTIONS, vt as rectangleDrawRule, w as DEFAULT_FRONTAL_ATTACK_OPTIONS, wt as turnDrawRule, x as DEFAULT_LANDING_ZONE_OPTIONS, xt as line26DrawRule, y as DEFAULT_OBSTACLE_BYPASS_DIFFICULT_OPTIONS, yt as axis1DrawRule, z as DEFAULT_CLEAR_OPTIONS, zt as computeInitialWidthPoint } from "./renderControlMeasure-DURyfLXo.mjs";
|
|
2
2
|
//#region src/freeze-orientation.ts
|
|
3
3
|
/**
|
|
4
4
|
* Dispatches to a measure kind's `freezeOrientation` hook (see
|
|
@@ -57,8 +57,9 @@ function controlMeasureIdFromFeature(feature) {
|
|
|
57
57
|
* three-layer merge and stays a pure post-processing step.
|
|
58
58
|
*
|
|
59
59
|
* Lossy mapping, by design:
|
|
60
|
-
* - `strokeDash`
|
|
61
|
-
*
|
|
60
|
+
* - `strokeDash` and `fillPattern` have no simplestyle equivalent and are
|
|
61
|
+
* dropped — dashed sub-lines and patterned fills render solid in
|
|
62
|
+
* simplestyle consumers.
|
|
62
63
|
* - colors must be hex or `rgb()/rgba()`; alpha becomes `*-opacity`. Other
|
|
63
64
|
* color forms (named, `hsl()`) are omitted rather than guessed.
|
|
64
65
|
*/
|
package/dist/preview/index.d.mts
CHANGED
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-DURyfLXo.mjs";
|
|
2
2
|
//#region src/preview/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* Unitless `previewSample` points (~`[-1, 1]`) are scaled by this degree offset
|
|
@@ -3460,6 +3460,23 @@ const AREA = defineControlMeasure({
|
|
|
3460
3460
|
}
|
|
3461
3461
|
});
|
|
3462
3462
|
//#endregion
|
|
3463
|
+
//#region src/style.ts
|
|
3464
|
+
/**
|
|
3465
|
+
* Per-feature style hint pinning a filled part to a solid interior. Attach to
|
|
3466
|
+
* a generator's intrinsic doctrinal accents — arrowheads, teeth, echelon
|
|
3467
|
+
* glyphs, barbs, blades — so a `hachure`/`cross` fill set at the graphicsStyle
|
|
3468
|
+
* or measure layer never bleeds into a small silhouette and ruins its
|
|
3469
|
+
* legibility. The renderer only reads style hints, so one shared instance is
|
|
3470
|
+
* safe to reuse across every accent feature.
|
|
3471
|
+
*/
|
|
3472
|
+
const SOLID_ACCENT_FILL = { fillPattern: "solid" };
|
|
3473
|
+
/**
|
|
3474
|
+
* Ultimate fallback for the symbol color when no `color` or per-channel
|
|
3475
|
+
* override is supplied at any layer. Keeps a zero-config render monocolor
|
|
3476
|
+
* black and guarantees filled parts still render filled. See ADR-0011.
|
|
3477
|
+
*/
|
|
3478
|
+
const DEFAULT_SYMBOL_COLOR = "#000000";
|
|
3479
|
+
//#endregion
|
|
3463
3480
|
//#region src/generators/cm15-maneuver-areas/area-defense.ts
|
|
3464
3481
|
const DEFAULT_AREA_DEFENSE_OPTIONS = {
|
|
3465
3482
|
arrowOpeningAngle: 30,
|
|
@@ -3622,7 +3639,8 @@ function createAreaDefense(coordinates, options = {}) {
|
|
|
3622
3639
|
type: "Feature",
|
|
3623
3640
|
properties: {
|
|
3624
3641
|
part: "barbs",
|
|
3625
|
-
fill: true
|
|
3642
|
+
fill: true,
|
|
3643
|
+
style: SOLID_ACCENT_FILL
|
|
3626
3644
|
},
|
|
3627
3645
|
geometry: {
|
|
3628
3646
|
type: "MultiPolygon",
|
|
@@ -3982,7 +4000,8 @@ function echelonLabeledAreaFeatures(positions, options, texts, amplifierPlacemen
|
|
|
3982
4000
|
type: "Feature",
|
|
3983
4001
|
properties: {
|
|
3984
4002
|
part: "echelon",
|
|
3985
|
-
fill: true
|
|
4003
|
+
fill: true,
|
|
4004
|
+
style: SOLID_ACCENT_FILL
|
|
3986
4005
|
},
|
|
3987
4006
|
geometry: {
|
|
3988
4007
|
type: "MultiPolygon",
|
|
@@ -4409,7 +4428,8 @@ function createAntitankDitchCompleted(positions, options = {}, textAmplifiers =
|
|
|
4409
4428
|
type: "Feature",
|
|
4410
4429
|
properties: {
|
|
4411
4430
|
part: "teeth",
|
|
4412
|
-
fill: true
|
|
4431
|
+
fill: true,
|
|
4432
|
+
style: SOLID_ACCENT_FILL
|
|
4413
4433
|
},
|
|
4414
4434
|
geometry: {
|
|
4415
4435
|
type: "MultiPolygon",
|
|
@@ -4946,7 +4966,8 @@ function createBattlePosition(positions, options = {}, textAmplifiers = {}, cont
|
|
|
4946
4966
|
type: "Feature",
|
|
4947
4967
|
properties: {
|
|
4948
4968
|
part: "echelon",
|
|
4949
|
-
fill: true
|
|
4969
|
+
fill: true,
|
|
4970
|
+
style: SOLID_ACCENT_FILL
|
|
4950
4971
|
},
|
|
4951
4972
|
geometry: {
|
|
4952
4973
|
type: "MultiPolygon",
|
|
@@ -5599,7 +5620,8 @@ function createBoundary(positions, options = {}, textAmplifiers = {}) {
|
|
|
5599
5620
|
type: "Feature",
|
|
5600
5621
|
properties: {
|
|
5601
5622
|
part: "echelon",
|
|
5602
|
-
fill: true
|
|
5623
|
+
fill: true,
|
|
5624
|
+
style: SOLID_ACCENT_FILL
|
|
5603
5625
|
},
|
|
5604
5626
|
geometry: {
|
|
5605
5627
|
type: "MultiPolygon",
|
|
@@ -6716,7 +6738,8 @@ function createClassicArrow(coordinates, options = {}) {
|
|
|
6716
6738
|
type: "Feature",
|
|
6717
6739
|
properties: {
|
|
6718
6740
|
part: "head",
|
|
6719
|
-
fill: true
|
|
6741
|
+
fill: true,
|
|
6742
|
+
style: SOLID_ACCENT_FILL
|
|
6720
6743
|
},
|
|
6721
6744
|
geometry: {
|
|
6722
6745
|
type: "Polygon",
|
|
@@ -7369,7 +7392,8 @@ function createSearchArea(coordinates, options = {}) {
|
|
|
7369
7392
|
type: "Feature",
|
|
7370
7393
|
properties: {
|
|
7371
7394
|
part: "head",
|
|
7372
|
-
fill: true
|
|
7395
|
+
fill: true,
|
|
7396
|
+
style: SOLID_ACCENT_FILL
|
|
7373
7397
|
},
|
|
7374
7398
|
geometry: {
|
|
7375
7399
|
type: "MultiPolygon",
|
|
@@ -7918,7 +7942,10 @@ function createDisrupt(coordinates, options = {}) {
|
|
|
7918
7942
|
}
|
|
7919
7943
|
}, {
|
|
7920
7944
|
type: "Feature",
|
|
7921
|
-
properties: {
|
|
7945
|
+
properties: {
|
|
7946
|
+
fill: true,
|
|
7947
|
+
style: SOLID_ACCENT_FILL
|
|
7948
|
+
},
|
|
7922
7949
|
geometry: {
|
|
7923
7950
|
type: "MultiPolygon",
|
|
7924
7951
|
coordinates: polygons
|
|
@@ -8326,7 +8353,8 @@ function createFinalProtectiveFire(coordinates, bladedArm, options = {}) {
|
|
|
8326
8353
|
type: "Feature",
|
|
8327
8354
|
properties: {
|
|
8328
8355
|
part: "blade",
|
|
8329
|
-
fill: true
|
|
8356
|
+
fill: true,
|
|
8357
|
+
style: SOLID_ACCENT_FILL
|
|
8330
8358
|
},
|
|
8331
8359
|
geometry: {
|
|
8332
8360
|
type: "Polygon",
|
|
@@ -9826,7 +9854,10 @@ function createObstacleBypassDifficult(coordinates, options = {}) {
|
|
|
9826
9854
|
}
|
|
9827
9855
|
}, {
|
|
9828
9856
|
type: "Feature",
|
|
9829
|
-
properties: {
|
|
9857
|
+
properties: {
|
|
9858
|
+
fill: true,
|
|
9859
|
+
style: SOLID_ACCENT_FILL
|
|
9860
|
+
},
|
|
9830
9861
|
geometry: {
|
|
9831
9862
|
type: "MultiPolygon",
|
|
9832
9863
|
coordinates: polygonRings
|
|
@@ -9947,7 +9978,10 @@ function createObstacleBypassEasy(coordinates, options = {}) {
|
|
|
9947
9978
|
}
|
|
9948
9979
|
}, {
|
|
9949
9980
|
type: "Feature",
|
|
9950
|
-
properties: {
|
|
9981
|
+
properties: {
|
|
9982
|
+
fill: true,
|
|
9983
|
+
style: SOLID_ACCENT_FILL
|
|
9984
|
+
},
|
|
9951
9985
|
geometry: {
|
|
9952
9986
|
type: "MultiPolygon",
|
|
9953
9987
|
coordinates: polygonRings
|
|
@@ -10083,7 +10117,10 @@ function createObstacleBypassImpossible(coordinates, options = {}) {
|
|
|
10083
10117
|
}
|
|
10084
10118
|
}, {
|
|
10085
10119
|
type: "Feature",
|
|
10086
|
-
properties: {
|
|
10120
|
+
properties: {
|
|
10121
|
+
fill: true,
|
|
10122
|
+
style: SOLID_ACCENT_FILL
|
|
10123
|
+
},
|
|
10087
10124
|
geometry: {
|
|
10088
10125
|
type: "MultiPolygon",
|
|
10089
10126
|
coordinates: polygonRings
|
|
@@ -10485,7 +10522,8 @@ function createStrongPoint(positions, options = {}, textAmplifiers = {}, context
|
|
|
10485
10522
|
type: "Feature",
|
|
10486
10523
|
properties: {
|
|
10487
10524
|
part: "echelon",
|
|
10488
|
-
fill: true
|
|
10525
|
+
fill: true,
|
|
10526
|
+
style: SOLID_ACCENT_FILL
|
|
10489
10527
|
},
|
|
10490
10528
|
geometry: {
|
|
10491
10529
|
type: "MultiPolygon",
|
|
@@ -10931,7 +10969,8 @@ function createTurn(coordinates, options = {}) {
|
|
|
10931
10969
|
type: "Feature",
|
|
10932
10970
|
properties: {
|
|
10933
10971
|
part: "arrowhead",
|
|
10934
|
-
fill: true
|
|
10972
|
+
fill: true,
|
|
10973
|
+
style: SOLID_ACCENT_FILL
|
|
10935
10974
|
},
|
|
10936
10975
|
geometry: {
|
|
10937
10976
|
type: "MultiPolygon",
|
|
@@ -11114,14 +11153,6 @@ function getDefaultOptions(kind) {
|
|
|
11114
11153
|
return structuredClone(DEFINITIONS[kind].defaultOptions);
|
|
11115
11154
|
}
|
|
11116
11155
|
//#endregion
|
|
11117
|
-
//#region src/style.ts
|
|
11118
|
-
/**
|
|
11119
|
-
* Ultimate fallback for the symbol color when no `color` or per-channel
|
|
11120
|
-
* override is supplied at any layer. Keeps a zero-config render monocolor
|
|
11121
|
-
* black and guarantees filled parts still render filled. See ADR-0011.
|
|
11122
|
-
*/
|
|
11123
|
-
const DEFAULT_SYMBOL_COLOR = "#000000";
|
|
11124
|
-
//#endregion
|
|
11125
11156
|
//#region src/styleResolver.ts
|
|
11126
11157
|
/**
|
|
11127
11158
|
* Three-layer style precedence for `renderControlMeasure`.
|
|
@@ -11164,12 +11195,15 @@ function resolveStyleHints(graphicsStyle, measureStyle, generatorStyle) {
|
|
|
11164
11195
|
* Pure: the input is not mutated; a fresh object is always returned.
|
|
11165
11196
|
*/
|
|
11166
11197
|
function resolveSymbolColor(merged, filled) {
|
|
11167
|
-
const { color, strokeColor, fillColor, ...rest } = merged ?? {};
|
|
11198
|
+
const { color, strokeColor, fillColor, fillPattern, ...rest } = merged ?? {};
|
|
11168
11199
|
const resolved = {
|
|
11169
11200
|
...rest,
|
|
11170
11201
|
strokeColor: firstColor(strokeColor, color)
|
|
11171
11202
|
};
|
|
11172
|
-
if (filled)
|
|
11203
|
+
if (filled) {
|
|
11204
|
+
resolved.fillColor = firstColor(fillColor, color);
|
|
11205
|
+
if (fillPattern !== void 0) resolved.fillPattern = fillPattern;
|
|
11206
|
+
}
|
|
11173
11207
|
return resolved;
|
|
11174
11208
|
}
|
|
11175
11209
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orbat-mapper/control-measures",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.20",
|
|
4
4
|
"description": "Library for drawing tactical graphics and control measures according to MIL-STD-2525 and APP-6 standards.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Orbat Mapper",
|