@armyc2.c5isr.renderer/mil-sym-ts-web 2.6.0 → 2.6.1

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
@@ -648,8 +648,8 @@ export declare class Rectangle2D {
648
648
  isEmpty(): boolean;
649
649
  setRect(r: Rectangle2D): void;
650
650
  setRect(x1: double, y1: double, width1: double, height1: double): void;
651
- grow(size: int): any;
652
- grow(h: int, v: int): any;
651
+ grow(size: int): void;
652
+ grow(h: int, v: int): void;
653
653
  stroke(context: OffscreenCanvasRenderingContext2D): void;
654
654
  fill(context: OffscreenCanvasRenderingContext2D): void;
655
655
  clone(): Rectangle2D;
@@ -3624,6 +3624,45 @@ export declare class MSLookup {
3624
3624
  getIDList(version: number): Array<string>;
3625
3625
  addCustomSymbol(msInfo: MSInfo): boolean;
3626
3626
  }
3627
+ /**
3628
+ *
3629
+ */
3630
+ export declare class SectorModUtils {
3631
+ private static _instance;
3632
+ private static _initCalled;
3633
+ private static _isReady;
3634
+ private static _sectorMods;
3635
+ private static _sectorModLists;
3636
+ private static smd;
3637
+ private static sme;
3638
+ /**
3639
+ *
3640
+ * @param url
3641
+ * @deprecated
3642
+ */
3643
+ static setData(url: string): Promise<void>;
3644
+ private constructor();
3645
+ static getInstance(): SectorModUtils;
3646
+ isReady(): boolean;
3647
+ private init;
3648
+ private loadData;
3649
+ /**
3650
+ *
3651
+ * @param version like SymbolID.Version_2525Dch1 or SymbolID.Version_2525Ech1 Only tracks sector mods for these 2 versions.
3652
+ * @param symbolSet like SymbolID.SymbolSet_Air; use 0 for Common Modifiers as they are not tied to a symbol set.
3653
+ * @param location 1 for top, 2 for bottom
3654
+ * @return and ArrayList of String[] like ["00","Unspecified"],["01","Attack/Strike"]
3655
+ */
3656
+ getSectorModList(version: number, symbolSet: number, location: number): Array<string[]>;
3657
+ /**
3658
+ *
3659
+ * @param version like SymbolID.Version_2525Dch1 or SymbolID.Version_2525Ech1 Only tracks sector mods for these 2 versions.
3660
+ * @param symbolSet like SymbolID.SymbolSet_Air; use 0 for Common Modifiers as they are not tied to a symbol set.
3661
+ * @param location 1 for top, 2 for bottom
3662
+ * @param code like "01" or "100"
3663
+ */
3664
+ getName(version: number, symbolSet: number, location: number, code: string): string;
3665
+ }
3627
3666
  export declare class SVGInfo {
3628
3667
  private _ID;
3629
3668
  private _Bbox;
@@ -4701,11 +4740,30 @@ export declare class SymbolID {
4701
4740
  static readonly SymbolSet_Atmospheric: number;
4702
4741
  static readonly SymbolSet_Oceanographic: number;
4703
4742
  static readonly SymbolSet_MeteorologicalSpace: number;
4743
+ /**
4744
+ * in 2525E+, there is only SymbolSet_SignalsIntelligence and the frame shape position is required to be populated.
4745
+ * Valid frames are space, air, land, land equipment, sea surface, sea subsurface and cyberspace.
4746
+ */
4704
4747
  static readonly SymbolSet_SignalsIntelligence: number;
4748
+ /**
4749
+ * 2525D/Dch1 only
4750
+ */
4705
4751
  static readonly SymbolSet_SignalsIntelligence_Space: number;
4752
+ /**
4753
+ * 2525D/Dch1 only
4754
+ */
4706
4755
  static readonly SymbolSet_SignalsIntelligence_Air: number;
4756
+ /**
4757
+ * 2525D/Dch1 only
4758
+ */
4707
4759
  static readonly SymbolSet_SignalsIntelligence_Land: number;
4760
+ /**
4761
+ * 2525D/Dch1 only
4762
+ */
4708
4763
  static readonly SymbolSet_SignalsIntelligence_SeaSurface: number;
4764
+ /**
4765
+ * 2525D/Dch1 only
4766
+ */
4709
4767
  static readonly SymbolSet_SignalsIntelligence_SeaSubsurface: number;
4710
4768
  static readonly SymbolSet_CyberSpace: number;
4711
4769
  static readonly SymbolSet_InvalidSymbol: number;
@@ -6720,7 +6778,18 @@ export declare class RendererUtilities {
6720
6778
  */
6721
6779
  static setSVGSPCMColors(symbolID: string, svg: string, strokeColor: Color, fillColor: Color, isOutline: boolean): string;
6722
6780
  static findWidestStrokeWidth(svg: string): float;
6781
+ static findInstIndIndex(svg: string): number;
6723
6782
  static getDistanceBetweenPoints(pt1: Point2D, pt2: Point2D): int;
6783
+ /**
6784
+ * A starting point for calculating map scale.
6785
+ * The User may prefer a different calculation depending on how their maps works.
6786
+ * @param mapPixelWidth Width of your map in pixels
6787
+ * @param eastLon East Longitude of your map
6788
+ * @param westLon West Longitude of your map
6789
+ * @param dpi Dots Per Inch of your device. If not included, will use default renderer value.
6790
+ * @return Map scale value to use in the RenderSymbol function {@link armyc2.c5isr.web.render.WebRenderer#RenderSymbol(String, String, String, String, String, String, double, String, Map, Map, int)}
6791
+ */
6792
+ static calculateMapScale(mapPixelWidth: number, eastLon: number, westLon: number, dpi?: number): number;
6724
6793
  static scaleIcon(symbolID: string, icon: SVGInfo): SVGInfo;
6725
6794
  static getData(path: string): Promise<any>;
6726
6795
  }