UNPKG

@armyc2.c5isr.renderer/mil-sym-ts

Version:

MIL-STD-2525 D/E symbol rendering TypeScript library

58 lines (48 loc) 1.7 kB
[Simple Interactive Tester](https://missioncommand.github.io/js-samples/singlePointTester3.html) [Multipoint Web Worker Example](https://missioncommand.github.io/js-samples/MPWW.html) [SinglePoint Web Worker Example](https://missioncommand.github.io/js-samples/SVGWW.html) [Wiki](https://github.com/missioncommand/mil-sym-ts/wiki) [JavaDocs](https://missioncommand.github.io/javadoc/2525D/typescript/index.html) The old 2525C renderer has been retired but the libraries and usage information are still available here: [2525C Renderer Overview](https://github.com/missioncommand/mil-sym-ts/wiki/2525C-Renderer-Overview) Notes: Starting with version 2.2.0, support for running in NodeJS was added. The node release will be the baseline version on [npmjs.com](https://www.npmjs.com/package/@armyc2.c5isr.renderer/mil-sym-ts?activeTab=versions) 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) The Node version depends on [node-canvas](https://www.npmjs.com/package/canvas). ``` npm install canvas ``` The Web version leverage the canvas in the browser. Compilation Options: ``` //For Web Target buildWeb.bat //For Node Target buildNode.bat ``` The following classes are exported by the module: Point Point2D Rectangle2D Font Color AffiliationColors DistanceUnit LogLevel ErrorLogger MilStdAttributes Modifiers DrawRules MODrawRules GENCLookup MSLookup MSInfo SVGInfo SVGSymbolInfo SymbolUtilities RendererSettings SymbolID MilStdSymbol MilStdIconRenderer WebRenderer