@armyc2.c5isr.renderer/mil-sym-ts-web 2.5.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;
@@ -4104,6 +4143,7 @@ export declare class RendererSettings {
4104
4143
  private _TwoLabelOnly;
4105
4144
  private _scaleMainIconWithoutSectorMods;
4106
4145
  private _patternScale;
4146
+ private _overscanScale;
4107
4147
  private _friendlyUnitFillColor;
4108
4148
  private _hostileUnitFillColor;
4109
4149
  private _neutralUnitFillColor;
@@ -4395,6 +4435,15 @@ export declare class RendererSettings {
4395
4435
  */
4396
4436
  setPatternScale(patternScale: double): void;
4397
4437
  getPatternScale(): double;
4438
+ /**
4439
+ * Optionally expand multipoint rendering outside bounding box by a scale factor.
4440
+ * Useful when panning map before rendering with updated bounding box.
4441
+ * Only referenced when bounding box is a valid rectangle.
4442
+ * For example, setting overscanScale to 3 would render all shapes within range 3 * the width and 3 * the height of the bounding box
4443
+ * @param overscanScale default is 1 and minimum is 1
4444
+ */
4445
+ setOverscanScale(overscanScale: double): void;
4446
+ getOverscanScale(): double;
4398
4447
  /**
4399
4448
  * get the preferred fill affiliation color for units.
4400
4449
  *
@@ -4691,11 +4740,30 @@ export declare class SymbolID {
4691
4740
  static readonly SymbolSet_Atmospheric: number;
4692
4741
  static readonly SymbolSet_Oceanographic: number;
4693
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
+ */
4694
4747
  static readonly SymbolSet_SignalsIntelligence: number;
4748
+ /**
4749
+ * 2525D/Dch1 only
4750
+ */
4695
4751
  static readonly SymbolSet_SignalsIntelligence_Space: number;
4752
+ /**
4753
+ * 2525D/Dch1 only
4754
+ */
4696
4755
  static readonly SymbolSet_SignalsIntelligence_Air: number;
4756
+ /**
4757
+ * 2525D/Dch1 only
4758
+ */
4697
4759
  static readonly SymbolSet_SignalsIntelligence_Land: number;
4760
+ /**
4761
+ * 2525D/Dch1 only
4762
+ */
4698
4763
  static readonly SymbolSet_SignalsIntelligence_SeaSurface: number;
4764
+ /**
4765
+ * 2525D/Dch1 only
4766
+ */
4699
4767
  static readonly SymbolSet_SignalsIntelligence_SeaSubsurface: number;
4700
4768
  static readonly SymbolSet_CyberSpace: number;
4701
4769
  static readonly SymbolSet_InvalidSymbol: number;
@@ -6710,7 +6778,18 @@ export declare class RendererUtilities {
6710
6778
  */
6711
6779
  static setSVGSPCMColors(symbolID: string, svg: string, strokeColor: Color, fillColor: Color, isOutline: boolean): string;
6712
6780
  static findWidestStrokeWidth(svg: string): float;
6781
+ static findInstIndIndex(svg: string): number;
6713
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;
6714
6793
  static scaleIcon(symbolID: string, icon: SVGInfo): SVGInfo;
6715
6794
  static getData(path: string): Promise<any>;
6716
6795
  }