@armyc2.c5isr.renderer/mil-sym-ts-web 2.2.4 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/C5Ren.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
+ import { Canvas } from 'canvas';
4
+
3
5
  export type int = number;
4
6
  export type float = number;
5
7
  export type double = number;
@@ -1310,6 +1312,26 @@ export declare class MilStdAttributes {
1310
1312
  * default value is {@link RendererSettings#getPatternScale()}
1311
1313
  */
1312
1314
  static readonly PatternScale: string;
1315
+ /**
1316
+ * like "arial"
1317
+ */
1318
+ static readonly FontFamily: string;
1319
+ /**
1320
+ * Like Font.BOLD
1321
+ */
1322
+ static readonly FontStyle: string;
1323
+ static readonly FontSize: string;
1324
+ /**
1325
+ * Strict ("0") for always placing their labels in the specified location
1326
+ * even if there's empty space from other labels that weren't populated
1327
+ * Flexible ("1") to collapse label vertically to the center to eliminate
1328
+ * empty space from labels that weren't populated.
1329
+ * Does not apply to Control Measures or METOCS
1330
+ * Set with values like:
1331
+ * RendererSettings.ModifierPlacement_STRICT ("0")
1332
+ * RendererSettings.ModifierPlacement_FLEXIBLE ("1")
1333
+ */
1334
+ static readonly ModifierPlacement: string;
1313
1335
  /**
1314
1336
  * No Longer relevant
1315
1337
  * @return
@@ -1592,12 +1614,22 @@ export declare class Modifiers {
1592
1614
  * <pre>
1593
1615
  * Lines - Unique Identifier or Primary Purpose
1594
1616
  * An amplifier that uniquely identifies a particular symbol or track number. Identifies acquisitions number when used with SIGINT symbology.
1595
- * Format: Alphanumeric - {1,30}
1596
- * Symbol Set: All
1617
+ * Format: Alphanumeric - Lines: {1,30}, Points: Alphanumeric - {1,7}
1618
+ * Symbol Set: 25
1597
1619
  * Remarks:
1598
1620
  * </pre>
1599
1621
  */
1600
1622
  static readonly T1_UNIQUE_DESIGNATION_2: string;
1623
+ /**
1624
+ * <pre>
1625
+ * Lines - Unique Identifier or Primary Purpose
1626
+ * An amplifier used to provide the designation of the Establishing Headquarters.
1627
+ * Format: Alphanumeric - {1,7}
1628
+ * Symbol Set: 25
1629
+ * Remarks: Used with Fire Support Control Measures only.
1630
+ * </pre>
1631
+ */
1632
+ static readonly T2_UNIQUE_DESIGNATION_3: string;
1601
1633
  /**
1602
1634
  * <pre>
1603
1635
  * Type
@@ -1772,9 +1804,10 @@ export declare class Modifiers {
1772
1804
  * An amplifier that depicts the speed and direction of movement of an object (see 5.3.7.13.3 and figure 18).
1773
1805
  * Format: Graphic
1774
1806
  * Symbol Set: 10, 15, 30, 35
1775
- * Remarks:
1776
- * Land units and equipment use the Direction of Movement and Speed amplifiers for this information.
1777
- * Notes: Not implemented by the renderer
1807
+ * Remarks: Set as "[Speed] [unit of measure] [angle in degrees if 3 characters "045", and in mils if 4 characters "0150]" like [100 KPH 045]
1808
+ * Valid units of measure are: KPH, KPS, MPH, NMH, KTS
1809
+ * Notes: It is recommended users handle this amplifier within their map engine many maps always show icons in the upright position when the map
1810
+ * is rotated, invalidating the line that's render with the symbol.
1778
1811
  * </pre>
1779
1812
  */
1780
1813
  static readonly AJ_SPEED_LEADER: string;
@@ -4033,6 +4066,22 @@ export declare class RendererSettings {
4033
4066
  * end of the staff
4034
4067
  */
4035
4068
  private static _CenterOnHQStaff;
4069
+ /**
4070
+ * Text modifiers/amplifiers are placed where they belong even if there's empty space
4071
+ * from other modifiers that weren't populated
4072
+ */
4073
+ static ModifierPlacement_STRICT: number;
4074
+ /**
4075
+ * Text modifiers/amplifiers will collapse vertically towards the center to eliminate
4076
+ * empty space from modifiers that weren't populated.
4077
+ */
4078
+ static ModifierPlacement_FLEXIBLE: number;
4079
+ /**
4080
+ * Same as flexible but the modifier letter is put at the beginning of the value string
4081
+ * to prevent confusion from modifiers not being in their strict location.
4082
+ * if P (IFF/SIF) is set to "2:1234", it would be rendered as "P:2:1234"
4083
+ */
4084
+ private static _ModifierPlacementApproach;
4036
4085
  static OperationalConditionModifierType_SLASH: int;
4037
4086
  static OperationalConditionModifierType_BAR: int;
4038
4087
  private static _OCMType;
@@ -4286,6 +4335,19 @@ export declare class RendererSettings {
4286
4335
  */
4287
4336
  getMPLabelFont(): Font;
4288
4337
  getKMLLabelScale(): float;
4338
+ getSPModifierPlacement(): number;
4339
+ /**
4340
+ * Strict (0) for always placing their labels in the specified location
4341
+ * even if there's empty space from other labels that weren't populated
4342
+ * Flexible (1) to collapse label vertically to the center to eliminate
4343
+ * empty space from labels that weren't populated.
4344
+ * Does not apply to Control Measures or METOCS
4345
+ * Set with values like:
4346
+ * RendererSettings.ModifierPlacement_STRICT (0)
4347
+ * RendererSettings.ModifierPlacement_FLEXIBLE (1)
4348
+ * @param modifierPlacementApproach
4349
+ */
4350
+ setSPModifierPlacement(modifierPlacementApproach: number): void;
4289
4351
  /**
4290
4352
  * the font name to be used for modifier labels
4291
4353
  * @return name of the label font
@@ -4312,7 +4374,7 @@ export declare class RendererSettings {
4312
4374
  * Set a boolean indicating between the use of supply routes labels in all segments (false) or
4313
4375
  * to only set 2 labels one at the north and the other one at the south of the graphic (true).
4314
4376
  * @param TwoLabelOnly
4315
- * @deprecated
4377
+ * @deprecated functionally disabled
4316
4378
  */
4317
4379
  setTwoLabelOnly(TwoLabelOnly: boolean): void;
4318
4380
  /**
@@ -4603,6 +4665,8 @@ export declare class SymbolID {
4603
4665
  static readonly StandardIdentity_Context_Reality: number;
4604
4666
  static readonly StandardIdentity_Context_Exercise: number;
4605
4667
  static readonly StandardIdentity_Context_Simulation: number;
4668
+ static readonly StandardIdentity_Context_Restricted_Target_Reality: number;
4669
+ static readonly StandardIdentity_Context_No_Strike_Entity_Reality: number;
4606
4670
  static readonly StandardIdentity_Affiliation_Pending: number;
4607
4671
  static readonly StandardIdentity_Affiliation_Unknown: number;
4608
4672
  static readonly StandardIdentity_Affiliation_AssumedFriend: number;
@@ -4689,12 +4753,13 @@ export declare class SymbolID {
4689
4753
  static readonly FrameShape_Space: string;
4690
4754
  static readonly FrameShape_Air: string;
4691
4755
  static readonly FrameShape_LandUnit: string;
4692
- static readonly FrameShape_LandEquipment_SeaSurface: string;
4756
+ static readonly FrameShape_LandEquipment: string;
4693
4757
  static readonly FrameShape_LandInstallation: string;
4694
4758
  static readonly FrameShape_DismountedIndividuals: string;
4695
4759
  static readonly FrameShape_SeaSubsurface: string;
4696
4760
  static readonly FrameShape_Activity_Event: string;
4697
4761
  static readonly FrameShape_Cyberspace: string;
4762
+ static readonly FrameShape_SeaSurface: string;
4698
4763
  /**
4699
4764
  * Attempts to resolve a bad symbol ID into a value that can be found in {@link MSLookup}.
4700
4765
  * If it fails, it will return the symbol code for a invalid symbol which is displayed as
@@ -4854,7 +4919,7 @@ export declare class SymbolID {
4854
4919
  /**
4855
4920
  * Set Sector 1 Modifier at positions 17-18.
4856
4921
  * @param symbolID 30 Character string
4857
- * @param mod1 number 0-255 or string "00" to "FF"
4922
+ * @param mod1 number 0-99 && 161-255 OR string "00" to "FF"
4858
4923
  * @return string
4859
4924
  */
4860
4925
  static setModifier1(symbolID: string, mod1: number | string): string;
@@ -4883,7 +4948,7 @@ export declare class SymbolID {
4883
4948
  * @param mod2 number 0-255 or string "00" to "FF"
4884
4949
  * @return string
4885
4950
  */
4886
- static setModifier2(symbolID: string, mod2: number): string;
4951
+ static setModifier2(symbolID: string, mod2: number | string): string;
4887
4952
  /**
4888
4953
  * Get Common Sector 2 Modifier from position 22.
4889
4954
  * @param symbolID 30 Character string
@@ -4947,6 +5012,13 @@ export declare class SymbolID {
4947
5012
  * @return string (1 character)
4948
5013
  */
4949
5014
  static getDefaultFrameShape(symbolID: string): string;
5015
+ /**
5016
+ *
5017
+ * @param symbolID
5018
+ * @param frameShape like SymbolID.FrameShape_LandEquipment
5019
+ * @return
5020
+ */
5021
+ static setFrameShape(symbolID: string, frameShape: string): string;
4950
5022
  /**
4951
5023
  * Gets the Frame Shape override from position 23.
4952
5024
  * @param symbolID 30 Character string
@@ -6536,6 +6608,13 @@ export declare class RendererUtilities {
6536
6608
  * @return
6537
6609
  */
6538
6610
  static colorToHexString(color: Color, withAlpha: boolean): string;
6611
+ static getCanvas(width: number, height: number): OffscreenCanvas | Canvas;
6612
+ /**
6613
+ *
6614
+ * @param canvas
6615
+ * @returns OffscreenCanvasRenderingContext2D | CanvasRenderingContext2D
6616
+ */
6617
+ static getContext(canvas: OffscreenCanvas | Canvas): any;
6539
6618
  /**
6540
6619
  * Clients should use getTextBounds
6541
6620
  * @param {String} fontName like "Arial" or "Arial, sans-serif" so a backup is