@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.
Files changed (168) hide show
  1. 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
  2. package/package.json +15 -39
  3. package/buildNode.bat +0 -2
  4. package/buildWeb.bat +0 -2
  5. package/dist/LICENSE +0 -201
  6. package/dist/README.md +0 -57
  7. package/dist/package.json +0 -16
  8. package/index.ts +0 -169
  9. package/package.bak +0 -50
  10. package/package.node.json +0 -43
  11. package/package.pack.json +0 -19
  12. package/package.packWeb.json +0 -16
  13. package/package.web.json +0 -40
  14. package/src/main/ts/android/graphics/Bitmap.ts +0 -7
  15. package/src/main/ts/android/graphics/Paint.ts +0 -26
  16. package/src/main/ts/android/graphics/Path.ts +0 -78
  17. package/src/main/ts/android/graphics/PointF.ts +0 -14
  18. package/src/main/ts/android/graphics/Rect.ts +0 -18
  19. package/src/main/ts/android/graphics/RectF.ts +0 -50
  20. package/src/main/ts/android/graphics/Region.ts +0 -36
  21. package/src/main/ts/android/graphics/Typeface.ts +0 -11
  22. package/src/main/ts/armyc2/c5isr/JavaLineArray/BasicShapes.ts +0 -99
  23. package/src/main/ts/armyc2/c5isr/JavaLineArray/CChannelPoints2.ts +0 -34
  24. package/src/main/ts/armyc2/c5isr/JavaLineArray/CELineArray.ts +0 -193
  25. package/src/main/ts/armyc2/c5isr/JavaLineArray/Channels.ts +0 -2971
  26. package/src/main/ts/armyc2/c5isr/JavaLineArray/DISMSupport.ts +0 -4008
  27. package/src/main/ts/armyc2/c5isr/JavaLineArray/POINT2.ts +0 -93
  28. package/src/main/ts/armyc2/c5isr/JavaLineArray/Shape2.ts +0 -89
  29. package/src/main/ts/armyc2/c5isr/JavaLineArray/TacticalLines.ts +0 -515
  30. package/src/main/ts/armyc2/c5isr/JavaLineArray/arraysupport.ts +0 -5403
  31. package/src/main/ts/armyc2/c5isr/JavaLineArray/countsupport.ts +0 -1084
  32. package/src/main/ts/armyc2/c5isr/JavaLineArray/flot.ts +0 -2173
  33. package/src/main/ts/armyc2/c5isr/JavaLineArray/lineutility.ts +0 -4934
  34. package/src/main/ts/armyc2/c5isr/JavaLineArray/ref.ts +0 -7
  35. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/Modifier2.ts +0 -5601
  36. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/P1.ts +0 -14
  37. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/TGLight.ts +0 -648
  38. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/clsChannelUtility.ts +0 -647
  39. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/clsMETOC.ts +0 -2994
  40. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/clsUtility.ts +0 -2663
  41. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/mdlGeodesic.ts +0 -669
  42. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsClipPolygon2.ts +0 -971
  43. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsClipQuad.ts +0 -871
  44. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsRenderer.ts +0 -3507
  45. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsRenderer2.ts +0 -500
  46. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsUtility.ts +0 -1089
  47. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsUtilityCPOF.ts +0 -2656
  48. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsUtilityGE.ts +0 -1419
  49. package/src/main/ts/armyc2/c5isr/data/genc.json +0 -1407
  50. package/src/main/ts/armyc2/c5isr/data/msd.json +0 -17311
  51. package/src/main/ts/armyc2/c5isr/data/mse.json +0 -18500
  52. package/src/main/ts/armyc2/c5isr/data/svgd.json +0 -31214
  53. package/src/main/ts/armyc2/c5isr/data/svge.json +0 -30558
  54. package/src/main/ts/armyc2/c5isr/graphics2d/AffineTransform.ts +0 -10
  55. package/src/main/ts/armyc2/c5isr/graphics2d/Area.ts +0 -437
  56. package/src/main/ts/armyc2/c5isr/graphics2d/BasicStroke.ts +0 -429
  57. package/src/main/ts/armyc2/c5isr/graphics2d/BasicTypes.ts +0 -7
  58. package/src/main/ts/armyc2/c5isr/graphics2d/BufferedImage.ts +0 -35
  59. package/src/main/ts/armyc2/c5isr/graphics2d/Font.ts +0 -111
  60. package/src/main/ts/armyc2/c5isr/graphics2d/FontMetrics.ts +0 -29
  61. package/src/main/ts/armyc2/c5isr/graphics2d/FontRenderContext.ts +0 -18
  62. package/src/main/ts/armyc2/c5isr/graphics2d/GeneralPath.ts +0 -211
  63. package/src/main/ts/armyc2/c5isr/graphics2d/Graphics2D.ts +0 -80
  64. package/src/main/ts/armyc2/c5isr/graphics2d/IPathIterator.ts +0 -33
  65. package/src/main/ts/armyc2/c5isr/graphics2d/ImageIO.ts +0 -16
  66. package/src/main/ts/armyc2/c5isr/graphics2d/Line2D.ts +0 -726
  67. package/src/main/ts/armyc2/c5isr/graphics2d/PathIterator.ts +0 -141
  68. package/src/main/ts/armyc2/c5isr/graphics2d/Point.ts +0 -112
  69. package/src/main/ts/armyc2/c5isr/graphics2d/Point2D.ts +0 -261
  70. package/src/main/ts/armyc2/c5isr/graphics2d/Polygon.ts +0 -391
  71. package/src/main/ts/armyc2/c5isr/graphics2d/Rectangle.ts +0 -567
  72. package/src/main/ts/armyc2/c5isr/graphics2d/Rectangle2D.ts +0 -445
  73. package/src/main/ts/armyc2/c5isr/graphics2d/Shape.ts +0 -31
  74. package/src/main/ts/armyc2/c5isr/graphics2d/Stroke.ts +0 -18
  75. package/src/main/ts/armyc2/c5isr/graphics2d/TextLayout.ts +0 -45
  76. package/src/main/ts/armyc2/c5isr/graphics2d/TexturePaint.ts +0 -25
  77. package/src/main/ts/armyc2/c5isr/renderer/IIconRenderer.ts +0 -15
  78. package/src/main/ts/armyc2/c5isr/renderer/IconRenderer.ts +0 -22
  79. package/src/main/ts/armyc2/c5isr/renderer/MilStdIconRenderer.ts +0 -269
  80. package/src/main/ts/armyc2/c5isr/renderer/ModifierRenderer.ts +0 -9882
  81. package/src/main/ts/armyc2/c5isr/renderer/PatternFillRenderer.ts +0 -146
  82. package/src/main/ts/armyc2/c5isr/renderer/SinglePointSVGRenderer.ts +0 -1265
  83. package/src/main/ts/armyc2/c5isr/renderer/shapes/arc.ts +0 -64
  84. package/src/main/ts/armyc2/c5isr/renderer/shapes/bcurve.ts +0 -95
  85. package/src/main/ts/armyc2/c5isr/renderer/shapes/ellipse.ts +0 -93
  86. package/src/main/ts/armyc2/c5isr/renderer/shapes/line.ts +0 -114
  87. package/src/main/ts/armyc2/c5isr/renderer/shapes/path.ts +0 -555
  88. package/src/main/ts/armyc2/c5isr/renderer/shapes/pathiterator.ts +0 -62
  89. package/src/main/ts/armyc2/c5isr/renderer/shapes/point.ts +0 -120
  90. package/src/main/ts/armyc2/c5isr/renderer/shapes/rectangle.ts +0 -431
  91. package/src/main/ts/armyc2/c5isr/renderer/shapes/roundedrectangle.ts +0 -99
  92. package/src/main/ts/armyc2/c5isr/renderer/shapes/types.ts +0 -25
  93. package/src/main/ts/armyc2/c5isr/renderer/shapes/utilities.ts +0 -203
  94. package/src/main/ts/armyc2/c5isr/renderer/utilities/AffiliationColors.ts +0 -104
  95. package/src/main/ts/armyc2/c5isr/renderer/utilities/Color.ts +0 -481
  96. package/src/main/ts/armyc2/c5isr/renderer/utilities/DistanceUnit.ts +0 -40
  97. package/src/main/ts/armyc2/c5isr/renderer/utilities/DrawRules.ts +0 -1323
  98. package/src/main/ts/armyc2/c5isr/renderer/utilities/EntityCode.ts +0 -51
  99. package/src/main/ts/armyc2/c5isr/renderer/utilities/ErrorLogger.ts +0 -736
  100. package/src/main/ts/armyc2/c5isr/renderer/utilities/GENCLookup.ts +0 -106
  101. package/src/main/ts/armyc2/c5isr/renderer/utilities/GeoPixelConversion3D.ts +0 -84
  102. package/src/main/ts/armyc2/c5isr/renderer/utilities/IMultiPointRenderer.ts +0 -87
  103. package/src/main/ts/armyc2/c5isr/renderer/utilities/IPointConversion.ts +0 -34
  104. package/src/main/ts/armyc2/c5isr/renderer/utilities/ImageInfo.ts +0 -324
  105. package/src/main/ts/armyc2/c5isr/renderer/utilities/LRUCache.ts +0 -127
  106. package/src/main/ts/armyc2/c5isr/renderer/utilities/LRUEntry.ts +0 -18
  107. package/src/main/ts/armyc2/c5isr/renderer/utilities/LogLevel.ts +0 -111
  108. package/src/main/ts/armyc2/c5isr/renderer/utilities/MODrawRules.ts +0 -219
  109. package/src/main/ts/armyc2/c5isr/renderer/utilities/MSInfo.ts +0 -1008
  110. package/src/main/ts/armyc2/c5isr/renderer/utilities/MSLookup.ts +0 -882
  111. package/src/main/ts/armyc2/c5isr/renderer/utilities/MilStdAttributes.ts +0 -380
  112. package/src/main/ts/armyc2/c5isr/renderer/utilities/MilStdSymbol.ts +0 -797
  113. package/src/main/ts/armyc2/c5isr/renderer/utilities/Modifiers.ts +0 -1699
  114. package/src/main/ts/armyc2/c5isr/renderer/utilities/PointConversion.ts +0 -178
  115. package/src/main/ts/armyc2/c5isr/renderer/utilities/PointConversionDummy.ts +0 -45
  116. package/src/main/ts/armyc2/c5isr/renderer/utilities/PointConverter3D.ts +0 -126
  117. package/src/main/ts/armyc2/c5isr/renderer/utilities/RectUtilities.ts +0 -118
  118. package/src/main/ts/armyc2/c5isr/renderer/utilities/RendererException.ts +0 -11
  119. package/src/main/ts/armyc2/c5isr/renderer/utilities/RendererSettings.ts +0 -1201
  120. package/src/main/ts/armyc2/c5isr/renderer/utilities/RendererUtilities.ts +0 -591
  121. package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGInfo.ts +0 -29
  122. package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGLookup.ts +0 -753
  123. package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGSymbolInfo.ts +0 -137
  124. package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGTextInfo.ts +0 -438
  125. package/src/main/ts/armyc2/c5isr/renderer/utilities/SettingsChangedEvent.ts +0 -19
  126. package/src/main/ts/armyc2/c5isr/renderer/utilities/SettingsChangedEventListener.ts +0 -10
  127. package/src/main/ts/armyc2/c5isr/renderer/utilities/SettingsEventListener.ts +0 -5
  128. package/src/main/ts/armyc2/c5isr/renderer/utilities/Shape2SVG.ts +0 -404
  129. package/src/main/ts/armyc2/c5isr/renderer/utilities/ShapeInfo.ts +0 -525
  130. package/src/main/ts/armyc2/c5isr/renderer/utilities/ShapeUtilities.ts +0 -55
  131. package/src/main/ts/armyc2/c5isr/renderer/utilities/SymbolDimensionInfo.ts +0 -36
  132. package/src/main/ts/armyc2/c5isr/renderer/utilities/SymbolID.ts +0 -1055
  133. package/src/main/ts/armyc2/c5isr/renderer/utilities/SymbolUtilities.ts +0 -2085
  134. package/src/main/ts/armyc2/c5isr/renderer/utilities/TextInfo.ts +0 -157
  135. package/src/main/ts/armyc2/c5isr/web/render/GeoPixelConversion.ts +0 -86
  136. package/src/main/ts/armyc2/c5isr/web/render/MultiPointHandler.ts +0 -3798
  137. package/src/main/ts/armyc2/c5isr/web/render/MultiPointHandlerSVG.ts +0 -412
  138. package/src/main/ts/armyc2/c5isr/web/render/PointConverter.ts +0 -124
  139. package/src/main/ts/armyc2/c5isr/web/render/SymbolModifiers.ts +0 -26
  140. package/src/main/ts/armyc2/c5isr/web/render/WebRenderer.ts +0 -677
  141. package/src/main/ts/armyc2/c5isr/web/render/utilities/JavaRendererUtilities.ts +0 -484
  142. package/src/main/ts/armyc2/c5isr/web/render/utilities/LineInfo.ts +0 -62
  143. package/src/main/ts/armyc2/c5isr/web/render/utilities/SymbolInfo.ts +0 -46
  144. package/src/main/ts/armyc2/c5isr/web/render/utilities/TextInfo.ts +0 -51
  145. package/src/main/ts/org/gavaghan/geodesy/Angle.ts +0 -31
  146. package/src/main/ts/org/gavaghan/geodesy/Ellipsoid.ts +0 -71
  147. package/src/main/ts/org/gavaghan/geodesy/GeodeticCalculator.ts +0 -200
  148. package/src/main/ts/org/gavaghan/geodesy/GeodeticCurve.ts +0 -55
  149. package/src/main/ts/org/gavaghan/geodesy/GeodeticMeasurement.ts +0 -68
  150. package/src/main/ts/org/gavaghan/geodesy/GlobalCoordinates.ts +0 -103
  151. package/src/main/ts/org/gavaghan/geodesy/GlobalPosition.ts +0 -90
  152. package/test/ExportSPImages.js +0 -692
  153. package/test/MPWW.html +0 -556
  154. package/test/MPWorker.js +0 -318
  155. package/test/SPWorker.js +0 -233
  156. package/test/SVGWW.html +0 -363
  157. package/test/singlePointTester3.html +0 -751
  158. package/tsconfig.json +0 -54
  159. package/typedoc.json +0 -30
  160. package/updateVersion.js +0 -21
  161. package/webpack.config.js +0 -34
  162. package/webpackn.config.js +0 -28
  163. package/webpackr.config.js +0 -47
  164. package/webpackw.config.js +0 -23
  165. /package/{dist/C5Ren.d.ts → C5Ren.d.ts} +0 -0
  166. /package/{dist/C5Ren.js → C5Ren.js} +0 -0
  167. /package/{dist/C5Ren.js.map → C5Ren.js.map} +0 -0
  168. /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
- }