@armyc2.c5isr.renderer/mil-sym-ts-web 2.2.0 → 2.2.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/{dist/armyc2.c5isr.renderer-mil-sym-ts-web-2.2.0.tgz → armyc2.c5isr.renderer-mil-sym-ts-web-2.2.1.tgz} +0 -0
- package/package.json +15 -39
- package/buildNode.bat +0 -2
- package/buildWeb.bat +0 -2
- package/dist/LICENSE +0 -201
- package/dist/README.md +0 -57
- package/dist/package.json +0 -16
- package/index.ts +0 -169
- package/package.bak +0 -50
- package/package.node.json +0 -43
- package/package.pack.json +0 -19
- package/package.packWeb.json +0 -16
- package/package.web.json +0 -40
- package/src/main/ts/android/graphics/Bitmap.ts +0 -7
- package/src/main/ts/android/graphics/Paint.ts +0 -26
- package/src/main/ts/android/graphics/Path.ts +0 -78
- package/src/main/ts/android/graphics/PointF.ts +0 -14
- package/src/main/ts/android/graphics/Rect.ts +0 -18
- package/src/main/ts/android/graphics/RectF.ts +0 -50
- package/src/main/ts/android/graphics/Region.ts +0 -36
- package/src/main/ts/android/graphics/Typeface.ts +0 -11
- package/src/main/ts/armyc2/c5isr/JavaLineArray/BasicShapes.ts +0 -99
- package/src/main/ts/armyc2/c5isr/JavaLineArray/CChannelPoints2.ts +0 -34
- package/src/main/ts/armyc2/c5isr/JavaLineArray/CELineArray.ts +0 -193
- package/src/main/ts/armyc2/c5isr/JavaLineArray/Channels.ts +0 -2971
- package/src/main/ts/armyc2/c5isr/JavaLineArray/DISMSupport.ts +0 -4008
- package/src/main/ts/armyc2/c5isr/JavaLineArray/POINT2.ts +0 -93
- package/src/main/ts/armyc2/c5isr/JavaLineArray/Shape2.ts +0 -89
- package/src/main/ts/armyc2/c5isr/JavaLineArray/TacticalLines.ts +0 -515
- package/src/main/ts/armyc2/c5isr/JavaLineArray/arraysupport.ts +0 -5403
- package/src/main/ts/armyc2/c5isr/JavaLineArray/countsupport.ts +0 -1084
- package/src/main/ts/armyc2/c5isr/JavaLineArray/flot.ts +0 -2173
- package/src/main/ts/armyc2/c5isr/JavaLineArray/lineutility.ts +0 -4934
- package/src/main/ts/armyc2/c5isr/JavaLineArray/ref.ts +0 -7
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/Modifier2.ts +0 -5601
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/P1.ts +0 -14
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/TGLight.ts +0 -648
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/clsChannelUtility.ts +0 -647
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/clsMETOC.ts +0 -2994
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/clsUtility.ts +0 -2663
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/mdlGeodesic.ts +0 -669
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsClipPolygon2.ts +0 -971
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsClipQuad.ts +0 -871
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsRenderer.ts +0 -3507
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsRenderer2.ts +0 -500
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsUtility.ts +0 -1089
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsUtilityCPOF.ts +0 -2656
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsUtilityGE.ts +0 -1419
- package/src/main/ts/armyc2/c5isr/data/genc.json +0 -1407
- package/src/main/ts/armyc2/c5isr/data/msd.json +0 -17311
- package/src/main/ts/armyc2/c5isr/data/mse.json +0 -18500
- package/src/main/ts/armyc2/c5isr/data/svgd.json +0 -31214
- package/src/main/ts/armyc2/c5isr/data/svge.json +0 -30558
- package/src/main/ts/armyc2/c5isr/graphics2d/AffineTransform.ts +0 -10
- package/src/main/ts/armyc2/c5isr/graphics2d/Area.ts +0 -437
- package/src/main/ts/armyc2/c5isr/graphics2d/BasicStroke.ts +0 -429
- package/src/main/ts/armyc2/c5isr/graphics2d/BasicTypes.ts +0 -7
- package/src/main/ts/armyc2/c5isr/graphics2d/BufferedImage.ts +0 -35
- package/src/main/ts/armyc2/c5isr/graphics2d/Font.ts +0 -111
- package/src/main/ts/armyc2/c5isr/graphics2d/FontMetrics.ts +0 -29
- package/src/main/ts/armyc2/c5isr/graphics2d/FontRenderContext.ts +0 -18
- package/src/main/ts/armyc2/c5isr/graphics2d/GeneralPath.ts +0 -211
- package/src/main/ts/armyc2/c5isr/graphics2d/Graphics2D.ts +0 -80
- package/src/main/ts/armyc2/c5isr/graphics2d/IPathIterator.ts +0 -33
- package/src/main/ts/armyc2/c5isr/graphics2d/ImageIO.ts +0 -16
- package/src/main/ts/armyc2/c5isr/graphics2d/Line2D.ts +0 -726
- package/src/main/ts/armyc2/c5isr/graphics2d/PathIterator.ts +0 -141
- package/src/main/ts/armyc2/c5isr/graphics2d/Point.ts +0 -112
- package/src/main/ts/armyc2/c5isr/graphics2d/Point2D.ts +0 -261
- package/src/main/ts/armyc2/c5isr/graphics2d/Polygon.ts +0 -391
- package/src/main/ts/armyc2/c5isr/graphics2d/Rectangle.ts +0 -567
- package/src/main/ts/armyc2/c5isr/graphics2d/Rectangle2D.ts +0 -445
- package/src/main/ts/armyc2/c5isr/graphics2d/Shape.ts +0 -31
- package/src/main/ts/armyc2/c5isr/graphics2d/Stroke.ts +0 -18
- package/src/main/ts/armyc2/c5isr/graphics2d/TextLayout.ts +0 -45
- package/src/main/ts/armyc2/c5isr/graphics2d/TexturePaint.ts +0 -25
- package/src/main/ts/armyc2/c5isr/renderer/IIconRenderer.ts +0 -15
- package/src/main/ts/armyc2/c5isr/renderer/IconRenderer.ts +0 -22
- package/src/main/ts/armyc2/c5isr/renderer/MilStdIconRenderer.ts +0 -269
- package/src/main/ts/armyc2/c5isr/renderer/ModifierRenderer.ts +0 -9882
- package/src/main/ts/armyc2/c5isr/renderer/PatternFillRenderer.ts +0 -146
- package/src/main/ts/armyc2/c5isr/renderer/SinglePointSVGRenderer.ts +0 -1265
- package/src/main/ts/armyc2/c5isr/renderer/shapes/arc.ts +0 -64
- package/src/main/ts/armyc2/c5isr/renderer/shapes/bcurve.ts +0 -95
- package/src/main/ts/armyc2/c5isr/renderer/shapes/ellipse.ts +0 -93
- package/src/main/ts/armyc2/c5isr/renderer/shapes/line.ts +0 -114
- package/src/main/ts/armyc2/c5isr/renderer/shapes/path.ts +0 -555
- package/src/main/ts/armyc2/c5isr/renderer/shapes/pathiterator.ts +0 -62
- package/src/main/ts/armyc2/c5isr/renderer/shapes/point.ts +0 -120
- package/src/main/ts/armyc2/c5isr/renderer/shapes/rectangle.ts +0 -431
- package/src/main/ts/armyc2/c5isr/renderer/shapes/roundedrectangle.ts +0 -99
- package/src/main/ts/armyc2/c5isr/renderer/shapes/types.ts +0 -25
- package/src/main/ts/armyc2/c5isr/renderer/shapes/utilities.ts +0 -203
- package/src/main/ts/armyc2/c5isr/renderer/utilities/AffiliationColors.ts +0 -104
- package/src/main/ts/armyc2/c5isr/renderer/utilities/Color.ts +0 -481
- package/src/main/ts/armyc2/c5isr/renderer/utilities/DistanceUnit.ts +0 -40
- package/src/main/ts/armyc2/c5isr/renderer/utilities/DrawRules.ts +0 -1323
- package/src/main/ts/armyc2/c5isr/renderer/utilities/EntityCode.ts +0 -51
- package/src/main/ts/armyc2/c5isr/renderer/utilities/ErrorLogger.ts +0 -736
- package/src/main/ts/armyc2/c5isr/renderer/utilities/GENCLookup.ts +0 -106
- package/src/main/ts/armyc2/c5isr/renderer/utilities/GeoPixelConversion3D.ts +0 -84
- package/src/main/ts/armyc2/c5isr/renderer/utilities/IMultiPointRenderer.ts +0 -87
- package/src/main/ts/armyc2/c5isr/renderer/utilities/IPointConversion.ts +0 -34
- package/src/main/ts/armyc2/c5isr/renderer/utilities/ImageInfo.ts +0 -324
- package/src/main/ts/armyc2/c5isr/renderer/utilities/LRUCache.ts +0 -127
- package/src/main/ts/armyc2/c5isr/renderer/utilities/LRUEntry.ts +0 -18
- package/src/main/ts/armyc2/c5isr/renderer/utilities/LogLevel.ts +0 -111
- package/src/main/ts/armyc2/c5isr/renderer/utilities/MODrawRules.ts +0 -219
- package/src/main/ts/armyc2/c5isr/renderer/utilities/MSInfo.ts +0 -1008
- package/src/main/ts/armyc2/c5isr/renderer/utilities/MSLookup.ts +0 -882
- package/src/main/ts/armyc2/c5isr/renderer/utilities/MilStdAttributes.ts +0 -380
- package/src/main/ts/armyc2/c5isr/renderer/utilities/MilStdSymbol.ts +0 -797
- package/src/main/ts/armyc2/c5isr/renderer/utilities/Modifiers.ts +0 -1699
- package/src/main/ts/armyc2/c5isr/renderer/utilities/PointConversion.ts +0 -178
- package/src/main/ts/armyc2/c5isr/renderer/utilities/PointConversionDummy.ts +0 -45
- package/src/main/ts/armyc2/c5isr/renderer/utilities/PointConverter3D.ts +0 -126
- package/src/main/ts/armyc2/c5isr/renderer/utilities/RectUtilities.ts +0 -118
- package/src/main/ts/armyc2/c5isr/renderer/utilities/RendererException.ts +0 -11
- package/src/main/ts/armyc2/c5isr/renderer/utilities/RendererSettings.ts +0 -1201
- package/src/main/ts/armyc2/c5isr/renderer/utilities/RendererUtilities.ts +0 -591
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGInfo.ts +0 -29
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGLookup.ts +0 -753
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGSymbolInfo.ts +0 -137
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGTextInfo.ts +0 -438
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SettingsChangedEvent.ts +0 -19
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SettingsChangedEventListener.ts +0 -10
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SettingsEventListener.ts +0 -5
- package/src/main/ts/armyc2/c5isr/renderer/utilities/Shape2SVG.ts +0 -404
- package/src/main/ts/armyc2/c5isr/renderer/utilities/ShapeInfo.ts +0 -525
- package/src/main/ts/armyc2/c5isr/renderer/utilities/ShapeUtilities.ts +0 -55
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SymbolDimensionInfo.ts +0 -36
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SymbolID.ts +0 -1055
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SymbolUtilities.ts +0 -2085
- package/src/main/ts/armyc2/c5isr/renderer/utilities/TextInfo.ts +0 -157
- package/src/main/ts/armyc2/c5isr/web/render/GeoPixelConversion.ts +0 -86
- package/src/main/ts/armyc2/c5isr/web/render/MultiPointHandler.ts +0 -3798
- package/src/main/ts/armyc2/c5isr/web/render/MultiPointHandlerSVG.ts +0 -412
- package/src/main/ts/armyc2/c5isr/web/render/PointConverter.ts +0 -124
- package/src/main/ts/armyc2/c5isr/web/render/SymbolModifiers.ts +0 -26
- package/src/main/ts/armyc2/c5isr/web/render/WebRenderer.ts +0 -677
- package/src/main/ts/armyc2/c5isr/web/render/utilities/JavaRendererUtilities.ts +0 -484
- package/src/main/ts/armyc2/c5isr/web/render/utilities/LineInfo.ts +0 -62
- package/src/main/ts/armyc2/c5isr/web/render/utilities/SymbolInfo.ts +0 -46
- package/src/main/ts/armyc2/c5isr/web/render/utilities/TextInfo.ts +0 -51
- package/src/main/ts/org/gavaghan/geodesy/Angle.ts +0 -31
- package/src/main/ts/org/gavaghan/geodesy/Ellipsoid.ts +0 -71
- package/src/main/ts/org/gavaghan/geodesy/GeodeticCalculator.ts +0 -200
- package/src/main/ts/org/gavaghan/geodesy/GeodeticCurve.ts +0 -55
- package/src/main/ts/org/gavaghan/geodesy/GeodeticMeasurement.ts +0 -68
- package/src/main/ts/org/gavaghan/geodesy/GlobalCoordinates.ts +0 -103
- package/src/main/ts/org/gavaghan/geodesy/GlobalPosition.ts +0 -90
- package/test/ExportSPImages.js +0 -692
- package/test/MPWW.html +0 -556
- package/test/MPWorker.js +0 -318
- package/test/SPWorker.js +0 -233
- package/test/SVGWW.html +0 -363
- package/test/singlePointTester3.html +0 -751
- package/tsconfig.json +0 -54
- package/typedoc.json +0 -30
- package/updateVersion.js +0 -21
- package/webpack.config.js +0 -34
- package/webpackn.config.js +0 -28
- package/webpackr.config.js +0 -47
- package/webpackw.config.js +0 -23
- /package/{dist/C5Ren.d.ts → C5Ren.d.ts} +0 -0
- /package/{dist/C5Ren.js → C5Ren.js} +0 -0
- /package/{dist/C5Ren.js.map → C5Ren.js.map} +0 -0
- /package/{dist/manifest.json → manifest.json} +0 -0
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* To change this template, choose Tools | Templates
|
|
3
|
-
* and open the template in the editor.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { DistanceUnit } from "../../renderer/utilities/DistanceUnit"
|
|
7
|
-
import { Modifiers } from "../../renderer/utilities/Modifiers"
|
|
8
|
-
import { SymbolUtilities } from "../../renderer/utilities/SymbolUtilities"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Symbol attribute constants
|
|
13
|
-
*/
|
|
14
|
-
export class MilStdAttributes {
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Line color of the symbol. hex value.
|
|
18
|
-
*/
|
|
19
|
-
public static readonly LineColor: string = "LINECOLOR";
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Fill color of the symbol. hex value
|
|
23
|
-
*/
|
|
24
|
-
public static readonly FillColor: string = "FILLCOLOR";
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Main color of internal icon. Only relevant to framed symbols. hex value
|
|
28
|
-
*/
|
|
29
|
-
public static readonly IconColor: string = "ICONCOLOR";
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* size of the single point image
|
|
33
|
-
*/
|
|
34
|
-
public static readonly PixelSize: string = "PIXELSIZE";
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* defaults to true
|
|
39
|
-
*/
|
|
40
|
-
public static readonly KeepUnitRatio: string = "KEEPUNITRATIO";
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* transparency value of the symbol with values from 0 - 255.
|
|
44
|
-
*/
|
|
45
|
-
public static readonly Alpha: string = "ALPHA";
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* outline the symbol, true/false
|
|
49
|
-
*/
|
|
50
|
-
public static readonly OutlineSymbol: string = "OUTLINESYMBOL";
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* specify and outline color rather than letting renderer picking
|
|
54
|
-
* the best contrast color. hex value
|
|
55
|
-
*/
|
|
56
|
-
public static readonly OutlineColor: string = "OUTLINECOLOR";
|
|
57
|
-
|
|
58
|
-
/*
|
|
59
|
-
* specifies thickness of the symbol outline
|
|
60
|
-
*/
|
|
61
|
-
//public static final String OutlineWidth = 9;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* just draws the core symbol
|
|
65
|
-
*/
|
|
66
|
-
public static readonly DrawAsIcon: string = "DRAWASICON";
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Specifies the line width of the multipoint symbology
|
|
70
|
-
*/
|
|
71
|
-
public static readonly LineWidth: string = "LINEWIDTH";
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Specifies the color for text labels
|
|
75
|
-
*/
|
|
76
|
-
public static readonly TextColor: string = "TEXTCOLOR";
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Specifies the color for the text background (color outline or fill)
|
|
80
|
-
*/
|
|
81
|
-
public static readonly TextBackgroundColor: string = "TEXTBACKGROUNDCOLOR";
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* If false, the renderer will create a bunch of little lines to create
|
|
85
|
-
* the "dash" effect (expensive but necessary for KML).
|
|
86
|
-
* If true, it will be on the user to create the dash effect using the
|
|
87
|
-
* DashArray from the Stroke object from the ShapeInfo object.
|
|
88
|
-
*/
|
|
89
|
-
public static readonly UseDashArray: string = "USEDASHARRAY";
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* The mode that altitude labels will be displayed in, the default value is AMSL.
|
|
93
|
-
*
|
|
94
|
-
* This value acts as a label, appending whatever string that is passed in to the end of the altitude units.
|
|
95
|
-
* Currently only effective for multi-point graphics.
|
|
96
|
-
*/
|
|
97
|
-
public static readonly AltitudeMode: string = "ALTITUDEMODE";
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* At the moment, this refers to the optional range fan labels.
|
|
101
|
-
*/
|
|
102
|
-
public static readonly HideOptionalLabels: string = "HIDEOPTIONALLABELS";
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* For internal use
|
|
106
|
-
*/
|
|
107
|
-
public static readonly UsePatternFill: string = "USEPATTERNFILL";
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* For internal use
|
|
111
|
-
*/
|
|
112
|
-
public static readonly PatternFillType: string = "PATTERNFILLTYPE";
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* The conversion factor and the label that you want all distances to display in. The conversion factor
|
|
116
|
-
* is converting from meters. The default unit is meters.<br><br>
|
|
117
|
-
*
|
|
118
|
-
* Must be in the form [conversionFactor],[label]. So for example converting to feet would be "3.28084,FT".
|
|
119
|
-
* The helper class {@link DistanceUnit} can be used.
|
|
120
|
-
*/
|
|
121
|
-
public static readonly DistanceUnits: string = "DISTANCEUNITS";
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* The conversion factor and the label that you want all distances to display in.
|
|
125
|
-
* Conventionally, the conversion factor is converting from meters by default,
|
|
126
|
-
* but other values could be passed, like "1,KM" to use an unaltered value in kilometers.<br><br>
|
|
127
|
-
*
|
|
128
|
-
* Must be in the form [conversionFactor],[label]. So for example converting meters to feet would be "3.28084,FT".
|
|
129
|
-
* The helper class {@link DistanceUnit} can be used.
|
|
130
|
-
* Currently only effective for multi-point graphics.
|
|
131
|
-
*/
|
|
132
|
-
public static readonly AltitudeUnits: string = "ALTITUDEUNITS";
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* If the engagement/target amplifier bar is to be used to designate targets, non-targets, and
|
|
136
|
-
* pruned or expired targets, a different coloring schema shall be used. Hostile tracks which
|
|
137
|
-
* are deemed targets shall have a red bar (RGB: 255, 0, 0) to indicate target. For hostile
|
|
138
|
-
* tracks deemed to be non-targets, white (RGB: 255, 255, 255) should be used to indicate non
|
|
139
|
-
* target. Finally, for hostile tracks which have been pruned or have expired shall be colored
|
|
140
|
-
* orange (RGB: 255, 120, 0).
|
|
141
|
-
* This attribute expects a hex string for the color
|
|
142
|
-
*/
|
|
143
|
-
public static readonly EngagementBarColor: string = "ENGAGEMENTBARCOLOR";
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Multipoint features and patterns scale with line width ({@link MilStdAttributes#LineWidth}).
|
|
147
|
-
* {@code PatternScale} is the ratio of how much to increase features and patterns by with line width.
|
|
148
|
-
* default value is {@link RendererSettings#getPatternScale()}
|
|
149
|
-
*/
|
|
150
|
-
public static readonly PatternScale: string = "PATTERNSCALE";
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* No Longer relevant
|
|
155
|
-
* @return
|
|
156
|
-
* @deprecated see {@link GetAttributesList()}
|
|
157
|
-
*/
|
|
158
|
-
public static GetModifierList(): Array<string> {
|
|
159
|
-
let list: Array<string> = new Array();
|
|
160
|
-
|
|
161
|
-
list.push(MilStdAttributes.LineColor);
|
|
162
|
-
list.push(MilStdAttributes.FillColor);
|
|
163
|
-
//list.push(IconColor);
|
|
164
|
-
//list.push(FontSize);
|
|
165
|
-
list.push(MilStdAttributes.PixelSize);
|
|
166
|
-
list.push(MilStdAttributes.KeepUnitRatio);
|
|
167
|
-
list.push(MilStdAttributes.Alpha);
|
|
168
|
-
list.push(MilStdAttributes.OutlineSymbol);
|
|
169
|
-
list.push(MilStdAttributes.OutlineColor);
|
|
170
|
-
//list.push(OutlineWidth);
|
|
171
|
-
list.push(MilStdAttributes.DrawAsIcon);
|
|
172
|
-
list.push(MilStdAttributes.HideOptionalLabels);
|
|
173
|
-
list.push(MilStdAttributes.DistanceUnits);
|
|
174
|
-
list.push(MilStdAttributes.AltitudeUnits);
|
|
175
|
-
list.push(MilStdAttributes.EngagementBarColor);
|
|
176
|
-
|
|
177
|
-
return list;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
public static GetAttributesList(symbolID: string): Array<string> {
|
|
181
|
-
let list: Array<string> = new Array();
|
|
182
|
-
|
|
183
|
-
list.push(MilStdAttributes.LineColor);
|
|
184
|
-
list.push(MilStdAttributes.FillColor);
|
|
185
|
-
//list.push(IconColor);
|
|
186
|
-
list.push(MilStdAttributes.PixelSize);
|
|
187
|
-
|
|
188
|
-
if (SymbolUtilities.isMultiPoint(symbolID) === false) {
|
|
189
|
-
list.push(MilStdAttributes.KeepUnitRatio);
|
|
190
|
-
list.push(MilStdAttributes.OutlineSymbol);
|
|
191
|
-
list.push(MilStdAttributes.OutlineColor);
|
|
192
|
-
list.push(MilStdAttributes.DrawAsIcon);
|
|
193
|
-
if (SymbolUtilities.hasModifier(symbolID, Modifiers.AO_ENGAGEMENT_BAR)) {
|
|
194
|
-
|
|
195
|
-
list.push(MilStdAttributes.EngagementBarColor);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
list.push(MilStdAttributes.LineWidth);
|
|
201
|
-
list.push(MilStdAttributes.HideOptionalLabels);
|
|
202
|
-
list.push(MilStdAttributes.DistanceUnits);
|
|
203
|
-
list.push(MilStdAttributes.AltitudeUnits);
|
|
204
|
-
}
|
|
205
|
-
list.push(MilStdAttributes.Alpha);
|
|
206
|
-
|
|
207
|
-
return list;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* @param attribute constant like MilStdAttributes.LineColor
|
|
212
|
-
* @return attribute name based on attribute constants
|
|
213
|
-
*/
|
|
214
|
-
public static getAttributeName(attribute: string): string {
|
|
215
|
-
switch (attribute) {
|
|
216
|
-
case MilStdAttributes.LineColor: {
|
|
217
|
-
return "Line Color";
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
case MilStdAttributes.FillColor: {
|
|
221
|
-
return "Fill Color";
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
case MilStdAttributes.PixelSize: {
|
|
225
|
-
return "Pixel Size";
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
case MilStdAttributes.KeepUnitRatio: {
|
|
229
|
-
return "Keep Unit Ratio";
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
case MilStdAttributes.Alpha: {
|
|
233
|
-
return "Alpha";
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
case MilStdAttributes.OutlineSymbol: {
|
|
237
|
-
return "Outline Symbol";
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
case MilStdAttributes.OutlineColor: {
|
|
241
|
-
return "Outline Color";
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
case MilStdAttributes.DrawAsIcon: {
|
|
245
|
-
return "Draw as Icon";
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
case MilStdAttributes.LineWidth: {
|
|
249
|
-
return "Line Width";
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
case MilStdAttributes.TextColor: {
|
|
253
|
-
return "Text Color";
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
case MilStdAttributes.TextBackgroundColor: {
|
|
257
|
-
return "Text Background Color";
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
case MilStdAttributes.UseDashArray: {
|
|
261
|
-
return "Use Dash Array";
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
case MilStdAttributes.AltitudeMode: {
|
|
265
|
-
return "Altitude Mode";
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
case MilStdAttributes.HideOptionalLabels: {
|
|
269
|
-
return "Hide Optional Labels";
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
case MilStdAttributes.UsePatternFill: {
|
|
273
|
-
return "Use Pattern Fill";
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
case MilStdAttributes.PatternFillType: {
|
|
277
|
-
return "Pattern Fill Type";
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
case MilStdAttributes.DistanceUnits: {
|
|
281
|
-
return "Distance Units";
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
case MilStdAttributes.AltitudeUnits: {
|
|
285
|
-
return "Altitude Units";
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
default: {
|
|
289
|
-
return "unrecognized attribute";
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Takes a string representation of an attribute and returns the appropriate int key value
|
|
297
|
-
* @param attribute "LINECOLOR" will return MilStdAtttributes.LineColor
|
|
298
|
-
* @return number value representing Attribute constant.
|
|
299
|
-
*/
|
|
300
|
-
public static getAttributeKey(attribute: string): string | null {
|
|
301
|
-
switch (attribute.toUpperCase()) {
|
|
302
|
-
case "LINECOLOR": {
|
|
303
|
-
return MilStdAttributes.LineColor;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
case "FILLCOLOR": {
|
|
307
|
-
return MilStdAttributes.FillColor;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
case "PIXELSIZE": {
|
|
311
|
-
return MilStdAttributes.PixelSize;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
case "KEEPUNITRATIO": {
|
|
315
|
-
return MilStdAttributes.KeepUnitRatio;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
case "ALPHA": {
|
|
319
|
-
return MilStdAttributes.Alpha;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
case "OUTLINESYMBOL": {
|
|
323
|
-
return MilStdAttributes.OutlineSymbol;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
case "OUTLINECOLOR": {
|
|
327
|
-
return MilStdAttributes.OutlineColor;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
case "DRAWASICON": {
|
|
331
|
-
return MilStdAttributes.DrawAsIcon;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
case "LINEWIDTH": {
|
|
335
|
-
return MilStdAttributes.LineWidth;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
case "TEXTCOLOR": {
|
|
339
|
-
return MilStdAttributes.TextColor;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
case "TEXTBACKGROUNDCOLOR": {
|
|
343
|
-
return MilStdAttributes.TextBackgroundColor;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
case "USEDASHARRAY": {
|
|
347
|
-
return MilStdAttributes.UseDashArray;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
case "ALTITUDEMODE": {
|
|
351
|
-
return MilStdAttributes.AltitudeMode;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
case "HIDEOPTIONALLABELS": {
|
|
355
|
-
return MilStdAttributes.HideOptionalLabels;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
case "USEPATTERNFILL": {
|
|
359
|
-
return MilStdAttributes.UsePatternFill;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
case "PATTERNFILLTYPE": {
|
|
363
|
-
return MilStdAttributes.PatternFillType;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
case "DISTANCEUNITS": {
|
|
367
|
-
return MilStdAttributes.DistanceUnits;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
case "ALTITUDEUNITS": {
|
|
371
|
-
return MilStdAttributes.AltitudeUnits;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
default: {
|
|
375
|
-
return null;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
}
|