@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
package/package.json CHANGED
@@ -1,40 +1,16 @@
1
- {
2
- "name": "@armyc2.c5isr.renderer/mil-sym-ts-web",
3
- "version": "2.2.0",
4
- "description": "MIL-STD-2525 D/E symbol rendering TypeScript library",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "resolveJsonModule": true,
8
- "scripts": {
9
- "test": "echo \"Error: no test specified\" && exit 1",
10
- "clean": "rd /S /Q dist",
11
- "build": "tsc --build tsconfig.json",
12
- "docs": "npx typedoc",
13
- "bundleWPW": "webpack --config webpackw.config.js --no-watch",
14
- "bundleDTS": "npx dts-bundle-generator -o dist/C5Ren.d.ts index.ts",
15
- "packWeb": "copy package.packWeb.json dist\\package.json && copy README.md dist\\README.md && copy LICENSE dist\\LICENSE && cd dist && del index.* && del tsconfig.tsbuildinfo && rd /s /q src && npm pack",
16
- "buildWeb": "npm run clean && npm run build && npm run bundleWPW && npm run bundleDTS && npm run packWeb"
17
- },
18
- "author": "C5ISR ESI",
19
- "license": "Apache-2.0",
20
- "keywords": [
21
- "military",
22
- "symbology",
23
- "MIL-STD-2525",
24
- "rendering",
25
- "visualization"
26
- ],
27
- "devDependencies": {
28
- "copy-webpack-plugin": "^12.0.2",
29
- "dts-bundle-generator": "^9.5.1",
30
- "file-loader": "^6.2.0",
31
- "jszip": "^3.10.1",
32
- "node-loader": "^2.1.0",
33
- "ts-loader": "^9.5.1",
34
- "tslib": "^2.6.3",
35
- "typedoc": "^0.26.3",
36
- "webpack": "^5.92.1",
37
- "webpack-cli": "^5.1.4",
38
- "webpack-manifest-plugin": "^5.0.1"
39
- }
1
+ {
2
+ "name": "@armyc2.c5isr.renderer/mil-sym-ts-web",
3
+ "version": "2.2.1",
4
+ "description": "MIL-STD-2525 D/E symbol rendering TypeScript library",
5
+ "main": "C5Ren.js",
6
+ "types": "C5Ren.d.ts",
7
+ "author": "C5ISR ESI",
8
+ "license": "Apache-2.0",
9
+ "keywords": [
10
+ "military",
11
+ "symbology",
12
+ "MIL-STD-2525",
13
+ "rendering",
14
+ "visualization"
15
+ ]
40
16
  }
package/buildNode.bat DELETED
@@ -1,2 +0,0 @@
1
- copy package.node.json package.json
2
- npm run buildNode
package/buildWeb.bat DELETED
@@ -1,2 +0,0 @@
1
- copy package.web.json package.json
2
- npm run buildWeb
package/dist/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
package/dist/README.md DELETED
@@ -1,57 +0,0 @@
1
- [Simple Interactive Tester](https://missioncommand.github.io/js-samples/singlePointTester3.html)
2
- [Multipoint Web Worker Example](https://missioncommand.github.io/js-samples/MPWW.html)
3
- [SinglePoint Web Worker Example](https://missioncommand.github.io/js-samples/SVGWW.html)
4
-
5
- [Wiki](https://github.com/missioncommand/mil-sym-ts/wiki)
6
- [JavaDocs](https://missioncommand.github.io/javadoc/2525D/typescript/index.html)
7
-
8
- The old 2525C renderer has been retired but the libraries and usage information are still available here:
9
- [2525C Renderer Overview](https://github.com/missioncommand/mil-sym-ts/wiki/2525C-Renderer-Overview)
10
-
11
- Notes:
12
-
13
- Starting with version 2.2.0, support for running in NodeJS was added.
14
- The node release will be the baseline version on [npmjs.com](https://www.npmjs.com/package/@armyc2.c5isr.renderer/mil-sym-ts?activeTab=versions)
15
- The web version of the release will be [mil-sym-ts-web](https://www.npmjs.com/package/@armyc2.c5isr.renderer/mil-sym-ts-web?activeTab=versions)
16
-
17
- The Node version depends on [node-canvas](https://www.npmjs.com/package/canvas).
18
- ```
19
- npm install canvas
20
- ```
21
-
22
- The Web version leverage the canvas in the browser.
23
-
24
- Compilation Options:
25
- ```
26
- //For Web Target
27
- buildWeb.bat
28
- //For Node Target
29
- buildNode.bat
30
- ```
31
-
32
- The following classes are exported by the module:
33
-
34
- Point
35
- Point2D
36
- Rectangle2D
37
- Font
38
- Color
39
- AffiliationColors
40
- DistanceUnit
41
- LogLevel
42
- ErrorLogger
43
- MilStdAttributes
44
- Modifiers
45
- DrawRules
46
- MODrawRules
47
- GENCLookup
48
- MSLookup
49
- MSInfo
50
- SVGInfo
51
- SVGSymbolInfo
52
- SymbolUtilities
53
- RendererSettings
54
- SymbolID
55
- MilStdSymbol
56
- MilStdIconRenderer
57
- WebRenderer
package/dist/package.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "name": "@armyc2.c5isr.renderer/mil-sym-ts-web",
3
- "version": "2.2.0",
4
- "description": "MIL-STD-2525 D/E symbol rendering TypeScript library",
5
- "main": "C5Ren.js",
6
- "types": "C5Ren.d.ts",
7
- "author": "C5ISR ESI",
8
- "license": "Apache-2.0",
9
- "keywords": [
10
- "military",
11
- "symbology",
12
- "MIL-STD-2525",
13
- "rendering",
14
- "visualization"
15
- ]
16
- }
package/index.ts DELETED
@@ -1,169 +0,0 @@
1
- import { ErrorLogger } from "./src/main/ts/armyc2/c5isr/renderer/utilities/ErrorLogger";
2
- import { GENCLookup } from "./src/main/ts/armyc2/c5isr/renderer/utilities/GENCLookup";
3
- import { MSLookup } from "./src/main/ts/armyc2/c5isr/renderer/utilities/MSLookup";
4
- import { SVGLookup } from "./src/main/ts/armyc2/c5isr/renderer/utilities/SVGLookup";
5
-
6
- export { Point } from "./src/main/ts/armyc2/c5isr/graphics2d/Point";
7
- export { Point2D } from "./src/main/ts/armyc2/c5isr/graphics2d/Point2D";
8
- export { Rectangle2D } from "./src/main/ts/armyc2/c5isr/graphics2d/Rectangle2D";
9
- export { Font } from "./src/main/ts/armyc2/c5isr/graphics2d/Font";
10
- export { Color } from "./src/main/ts/armyc2/c5isr/renderer/utilities/Color";
11
- export { AffiliationColors } from "./src/main/ts/armyc2/c5isr/renderer/utilities/AffiliationColors";
12
- export { DistanceUnit } from "./src/main/ts/armyc2/c5isr/renderer/utilities/DistanceUnit";
13
- export { LogLevel } from "./src/main/ts/armyc2/c5isr/renderer/utilities/LogLevel";
14
- export { ErrorLogger } from "./src/main/ts/armyc2/c5isr/renderer/utilities/ErrorLogger";
15
- export { MilStdAttributes } from "./src/main/ts/armyc2/c5isr/renderer/utilities/MilStdAttributes";
16
- export { Modifiers } from "./src/main/ts/armyc2/c5isr/renderer/utilities/Modifiers";
17
- export { DrawRules } from "./src/main/ts/armyc2/c5isr/renderer/utilities/DrawRules";
18
- export { MODrawRules } from "./src/main/ts/armyc2/c5isr/renderer/utilities/MODrawRules";
19
- export { GENCLookup } from "./src/main/ts/armyc2/c5isr/renderer/utilities/GENCLookup";
20
- export { MSLookup } from "./src/main/ts/armyc2/c5isr/renderer/utilities/MSLookup";
21
- export { MSInfo } from "./src/main/ts/armyc2/c5isr/renderer/utilities/MSInfo";
22
- export { SVGInfo } from "./src/main/ts/armyc2/c5isr/renderer/utilities/SVGInfo";
23
- export { SVGLookup } from "./src/main/ts/armyc2/c5isr/renderer/utilities/SVGLookup";
24
- export { SVGSymbolInfo } from "./src/main/ts/armyc2/c5isr/renderer/utilities/SVGSymbolInfo";
25
- export { SymbolUtilities } from "./src/main/ts/armyc2/c5isr/renderer/utilities/SymbolUtilities";
26
- export { RendererSettings } from "./src/main/ts/armyc2/c5isr/renderer/utilities/RendererSettings";
27
- export { SymbolID } from "./src/main/ts/armyc2/c5isr/renderer/utilities/SymbolID";
28
- export { ShapeInfo } from "./src/main/ts/armyc2/c5isr/renderer/utilities/ShapeInfo";
29
- export { MilStdSymbol } from "./src/main/ts/armyc2/c5isr/renderer/utilities/MilStdSymbol";
30
-
31
- export { BasicShapes } from "./src/main/ts/armyc2/c5isr/JavaLineArray/BasicShapes"
32
-
33
- export type { IPointConversion } from "./src/main/ts/armyc2/c5isr/renderer/utilities/IPointConversion";
34
- export { PointConverter3D } from "./src/main/ts/armyc2/c5isr/renderer/utilities/PointConverter3D";
35
- export { clsRenderer } from "./src/main/ts/armyc2/c5isr/RenderMultipoints/clsRenderer";
36
- export { RendererUtilities } from "./src/main/ts/armyc2/c5isr/renderer/utilities/RendererUtilities";
37
-
38
- export { MilStdIconRenderer } from "./src/main/ts/armyc2/c5isr/renderer/MilStdIconRenderer";
39
- export { WebRenderer } from "./src/main/ts/armyc2/c5isr/web/render/WebRenderer";
40
-
41
- /**
42
- * Module for rendering 2525D/E symbology
43
- */
44
-
45
- let initialized:boolean = false;
46
- let initializing:boolean = false;
47
- /**
48
- * Loads files needed by the renderer and initializes its data.
49
- * Required call before any rendering.
50
- * Must wait for the returned promise to resolve before any rendering.
51
- * @param location where renderer and asset files are location. So if location is "127.0.0.1:8080/dist/C5Ren.js"
52
- * pass in "/dist/". This is needed when all the files aren't in the same location. When the renderer gets imported, it thinks it's
53
- * in the location of the file that imported it, not where it actually exists and then it can't find the asset files. If location is not
54
- * set, the renderer assumes the json asset files are in the same location as where the C5Ren script is being run.
55
- * Additionally, if your build process hashes the manifest.json file, you should include the new name like "/dist/manifest.[hash].json"
56
- * @deprecated
57
- */
58
- export async function initialize(location?:string):Promise<any>
59
- {
60
- initializing = true;
61
- /*
62
- try
63
- {
64
- if(!initialized)
65
- {
66
- let promises:Array<Promise<any>> = new Array<Promise<any>>()
67
- let manifestName:string = 'manifest.json';
68
- let manifestIndex:number = -1;
69
-
70
- //Load data from specific path
71
- let path:string = "";
72
- if(location)
73
- {
74
- if(location.startsWith('/')==false)
75
- location = '/' + location;
76
- manifestIndex = location.indexOf("manifest");
77
- if(location.endsWith("json") && manifestIndex >= 0)
78
- {
79
- manifestName = location.substring(manifestIndex);
80
- location = location.substring(0,manifestIndex);
81
- }
82
- if(location.endsWith('/')==true)
83
- location = location.substring(0,location.length-1);
84
- path = location;
85
- }
86
-
87
-
88
- //load data from path provided in manifest file/////////////////////
89
- // Fetch Webpack manifest to get the hashed filename
90
- const manifestResponse = await fetch(location + "/" + manifestName);
91
- const manifest = await manifestResponse.json();
92
-
93
- // Get the hashed JSON file URL
94
- const gencUrl = path + manifest['data/genc.json'];
95
- const msdUrl = path + manifest['data/msd.json'];
96
- const mseUrl = path + manifest['data/mse.json'];
97
- const svgdUrl = path + manifest['data/svgd.json'];
98
- const svgeUrl = path + manifest['data/svge.json'];
99
-
100
- promises.push(GENCLookup.setData(gencUrl));
101
- promises.push(MSLookup.setData([msdUrl,mseUrl]));
102
- promises.push(SVGLookup.setData([svgdUrl,svgeUrl]));
103
-
104
- await Promise.all(promises).then(values => {GENCLookup.getInstance();MSLookup.getInstance();SVGLookup.getInstance()}).catch(error => {throw error;});
105
- initialized=true;
106
- }
107
- }
108
- catch(e)
109
- {
110
- throw e;
111
- }
112
- finally
113
- {
114
- initializing = false;
115
- }//*/
116
- initializing = false;
117
- initialized=true;
118
- }
119
-
120
- /**
121
- *
122
- * @param location
123
- * @deprecated
124
- */
125
- export async function init(location?:string)
126
- {
127
- /*initializing = true;
128
- try
129
- {
130
- if(!initialized)
131
- {
132
- GENCLookup.setDataObject();//(genc);
133
- MSLookup.setDataObject();//(msd,mse);
134
- SVGLookup.setDataObject();//(svgd,svge);
135
-
136
- if(GENCLookup.getInstance() && MSLookup.getInstance() && SVGLookup.getInstance())
137
- initialized=true;
138
- }
139
- }
140
- catch(e)
141
- {
142
- throw e;
143
- }
144
- finally
145
- {
146
- initializing = false;
147
- }//*/
148
- initialized=true;
149
- }
150
-
151
- /**
152
- * Returns true if renderer files are loaded and initialized.
153
- * @returns boolean
154
- */
155
- export function isReady():boolean
156
- {
157
- try
158
- {
159
- if(GENCLookup.getInstance() && MSLookup.getInstance() && SVGLookup.getInstance())
160
- return (GENCLookup.getInstance().isReady() && MSLookup.getInstance().isReady() && SVGLookup.getInstance().isReady());
161
- else
162
- return false;
163
- }
164
- catch(e)
165
- {
166
- ErrorLogger.LogException("C5Ren","isReady()",e);
167
- return false;
168
- }
169
- }
package/package.bak DELETED
@@ -1,50 +0,0 @@
1
- {
2
- "name": "@armyc2.c5isr.renderer/mil-sym-ts",
3
- "version": "2.2.0",
4
- "description": "MIL-STD-2525 D/E symbol rendering TypeScript library",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "resolveJsonModule": true,
8
- "scripts": {
9
- "test": "echo \"Error: no test specified\" && exit 1",
10
- "clean": "rd /S /Q dist",
11
- "build": "tsc --build tsconfig.json",
12
- "docs": "npx typedoc",
13
- "bundleES": "node buildES.js",
14
- "bundleESR": "node buildESR.js",
15
- "bundleWP": "webpack --config webpack.config.js",
16
- "bundleWPR": "webpack --config webpackr.config.js",
17
- "bundleWPW": "webpack --config webpackw.config.js --no-watch",
18
- "bundleWPN": "webpack --config webpackn.config.js --no-watch",
19
- "bundleDTS": "npx dts-bundle-generator -o dist/C5Ren.d.ts index.ts",
20
- "pack": "copy package.pack.json dist\\package.json && copy README.md dist\\README.md && copy LICENSE dist\\LICENSE && cd dist && del index.* && del tsconfig.tsbuildinfo && rd /s /q src && npm pack",
21
- "packWeb": "copy package.web.json dist\\package.json && copy README.md dist\\README.md && copy LICENSE dist\\LICENSE && cd dist && del index.* && del tsconfig.tsbuildinfo && rd /s /q src && npm pack",
22
- "buildNode": "npm run clean && npm run build && npm run bundleWPN && npm run bundleDTS && npm run pack",
23
- "buildWeb": "npm run clean && npm run build && npm run bundleWPW && npm run bundleDTS && npm run packWeb"
24
- },
25
- "author": "C5ISR ESI",
26
- "license": "Apache-2.0",
27
- "keywords": [
28
- "military",
29
- "symbology",
30
- "MIL-STD-2525",
31
- "rendering",
32
- "visualization"
33
- ],
34
- "devDependencies": {
35
- "copy-webpack-plugin": "^12.0.2",
36
- "dts-bundle-generator": "^9.5.1",
37
- "file-loader": "^6.2.0",
38
- "jszip": "^3.10.1",
39
- "node-loader": "^2.1.0",
40
- "ts-loader": "^9.5.1",
41
- "tslib": "^2.6.3",
42
- "typedoc": "^0.26.3",
43
- "webpack": "^5.92.1",
44
- "webpack-cli": "^5.1.4",
45
- "webpack-manifest-plugin": "^5.0.1"
46
- },
47
- "dependencies": {
48
- "canvas": "^3.1.0"
49
- }
50
- }
package/package.node.json DELETED
@@ -1,43 +0,0 @@
1
- {
2
- "name": "@armyc2.c5isr.renderer/mil-sym-ts",
3
- "version": "2.2.0",
4
- "description": "MIL-STD-2525 D/E symbol rendering TypeScript library",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "resolveJsonModule": true,
8
- "scripts": {
9
- "test": "echo \"Error: no test specified\" && exit 1",
10
- "clean": "rd /S /Q dist",
11
- "build": "tsc --build tsconfig.json",
12
- "docs": "npx typedoc",
13
- "bundleWPN": "webpack --config webpackn.config.js --no-watch",
14
- "bundleDTS": "npx dts-bundle-generator -o dist/C5Ren.d.ts index.ts",
15
- "pack": "copy package.pack.json dist\\package.json && copy README.md dist\\README.md && copy LICENSE dist\\LICENSE && cd dist && del index.* && del tsconfig.tsbuildinfo && rd /s /q src && npm pack",
16
- "buildNode": "npm run clean && npm run build && npm run bundleWPN && npm run bundleDTS && npm run pack"
17
- },
18
- "author": "C5ISR ESI",
19
- "license": "Apache-2.0",
20
- "keywords": [
21
- "military",
22
- "symbology",
23
- "MIL-STD-2525",
24
- "rendering",
25
- "visualization"
26
- ],
27
- "devDependencies": {
28
- "copy-webpack-plugin": "^12.0.2",
29
- "dts-bundle-generator": "^9.5.1",
30
- "file-loader": "^6.2.0",
31
- "jszip": "^3.10.1",
32
- "node-loader": "^2.1.0",
33
- "ts-loader": "^9.5.1",
34
- "tslib": "^2.6.3",
35
- "typedoc": "^0.26.3",
36
- "webpack": "^5.92.1",
37
- "webpack-cli": "^5.1.4",
38
- "webpack-manifest-plugin": "^5.0.1"
39
- },
40
- "dependencies": {
41
- "canvas": "^3.1.0"
42
- }
43
- }
package/package.pack.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "name": "@armyc2.c5isr.renderer/mil-sym-ts",
3
- "version": "2.2.0",
4
- "description": "MIL-STD-2525 D/E symbol rendering TypeScript library",
5
- "main": "C5Ren.js",
6
- "types": "C5Ren.d.ts",
7
- "author": "C5ISR ESI",
8
- "license": "Apache-2.0",
9
- "keywords": [
10
- "military",
11
- "symbology",
12
- "MIL-STD-2525",
13
- "rendering",
14
- "visualization"
15
- ],
16
- "dependencies": {
17
- "canvas": "^3.1.0"
18
- }
19
- }
@@ -1,16 +0,0 @@
1
- {
2
- "name": "@armyc2.c5isr.renderer/mil-sym-ts-web",
3
- "version": "2.2.0",
4
- "description": "MIL-STD-2525 D/E symbol rendering TypeScript library",
5
- "main": "C5Ren.js",
6
- "types": "C5Ren.d.ts",
7
- "author": "C5ISR ESI",
8
- "license": "Apache-2.0",
9
- "keywords": [
10
- "military",
11
- "symbology",
12
- "MIL-STD-2525",
13
- "rendering",
14
- "visualization"
15
- ]
16
- }