@armyc2.c5isr.renderer/mil-sym-ts-web 2.3.0 → 2.4.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 +67 -1
- package/C5Ren.js +1 -1
- package/C5Ren.js.map +1 -1
- package/package.json +1 -1
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
|
|
@@ -4044,6 +4066,22 @@ export declare class RendererSettings {
|
|
|
4044
4066
|
* end of the staff
|
|
4045
4067
|
*/
|
|
4046
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;
|
|
4047
4085
|
static OperationalConditionModifierType_SLASH: int;
|
|
4048
4086
|
static OperationalConditionModifierType_BAR: int;
|
|
4049
4087
|
private static _OCMType;
|
|
@@ -4297,6 +4335,19 @@ export declare class RendererSettings {
|
|
|
4297
4335
|
*/
|
|
4298
4336
|
getMPLabelFont(): Font;
|
|
4299
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;
|
|
4300
4351
|
/**
|
|
4301
4352
|
* the font name to be used for modifier labels
|
|
4302
4353
|
* @return name of the label font
|
|
@@ -4702,12 +4753,13 @@ export declare class SymbolID {
|
|
|
4702
4753
|
static readonly FrameShape_Space: string;
|
|
4703
4754
|
static readonly FrameShape_Air: string;
|
|
4704
4755
|
static readonly FrameShape_LandUnit: string;
|
|
4705
|
-
static readonly
|
|
4756
|
+
static readonly FrameShape_LandEquipment: string;
|
|
4706
4757
|
static readonly FrameShape_LandInstallation: string;
|
|
4707
4758
|
static readonly FrameShape_DismountedIndividuals: string;
|
|
4708
4759
|
static readonly FrameShape_SeaSubsurface: string;
|
|
4709
4760
|
static readonly FrameShape_Activity_Event: string;
|
|
4710
4761
|
static readonly FrameShape_Cyberspace: string;
|
|
4762
|
+
static readonly FrameShape_SeaSurface: string;
|
|
4711
4763
|
/**
|
|
4712
4764
|
* Attempts to resolve a bad symbol ID into a value that can be found in {@link MSLookup}.
|
|
4713
4765
|
* If it fails, it will return the symbol code for a invalid symbol which is displayed as
|
|
@@ -4960,6 +5012,13 @@ export declare class SymbolID {
|
|
|
4960
5012
|
* @return string (1 character)
|
|
4961
5013
|
*/
|
|
4962
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;
|
|
4963
5022
|
/**
|
|
4964
5023
|
* Gets the Frame Shape override from position 23.
|
|
4965
5024
|
* @param symbolID 30 Character string
|
|
@@ -6549,6 +6608,13 @@ export declare class RendererUtilities {
|
|
|
6549
6608
|
* @return
|
|
6550
6609
|
*/
|
|
6551
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;
|
|
6552
6618
|
/**
|
|
6553
6619
|
* Clients should use getTextBounds
|
|
6554
6620
|
* @param {String} fontName like "Arial" or "Arial, sans-serif" so a backup is
|