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

中文文档
2.10.10发布于 2026/11/05Apache-2.0TypeScriptES Module零依赖近 30 天下载 2万

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

原始使用文档
文档目录5 节
  1. About
  2. Ports
  3. MIL-STD-2525
  4. Features
  5. Notes

mil-sym-ts

About

mil-sym-ts is an TypeScript port of the Java-based MIL-STD rendering libraries that have been used in US Army Mission Command software for years. In November 2013 Mission Command was given the approval to release and maintain these libraries as public open source. Eventually work on the MIL-STD-2525C SEC Renderer ended and the project was retired.

This is a continuation of that effort and this library aims to support 2525D, 2525E and potentially more future versions.

Simple Interactive Tester
Multipoint Web Worker Example
SinglePoint Web Worker Example

Wiki
JavaDocs

The old JavaScript 2525C renderer has been retired but the libraries and usage information are still available here:
2525C Renderer Overview

Ports

Java
Android
TypeScript

MIL-STD-2525

The MIL-STD-2525 standard defines how to visualize military symbology. This project provides support for the entire MIL-STD-2525D Change 1 and 2525E Change 1. APP6D support has been added as well. Note that this implementation included the latest change proposals so things may not line up if you're just looking at the base APP6D document.

Features

  • Support for MilStd 2525 Dch1 (11), Ech1(15), NATO APP6D(10) and partial support for APP6Ev2 (16)(icons only)
  • Rendering icons as a BufferedImage (Java), Bitmap (Android), and SVG.
  • Rendering of multipoints as GeoJSON, GeoSVG or as a MilStdSymbol Object with all the information needed to draw on your map.
  • MSLookup class to get information on any symbol such as point count, draw rule, applicable modifier, etc...
  • The ability to add custom icons to an existing symbol set.

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
The web version of the release will be mil-sym-ts-web

The Node version depends on node-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

Pixel

版本与发布记录

@armyc2.c5isr.renderer/mil-sym-ts-web 共发布 41 个版本,首次发布于 2025/06/06;过去 12 个月发布了 30 个版本。

版本发布日期距今
2.10.10latest2026/11/052 天前
2.10.92026/10/2415 天前
2.10.82026/10/0930 天前
2.10.72026/09/291 个月前
2.10.62026/09/251 个月前
2.10.52026/09/181 个月前

关于 @armyc2.c5isr.renderer/mil-sym-ts-web 的常见问题

@armyc2.c5isr.renderer/mil-sym-ts-web 是什么?

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

如何安装 @armyc2.c5isr.renderer/mil-sym-ts-web?

在项目目录运行 npm install @armyc2.c5isr.renderer/mil-sym-ts-web,或使用 pnpm add / yarn add / bun add。

@armyc2.c5isr.renderer/mil-sym-ts-web 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@armyc2.c5isr.renderer/mil-sym-ts-web 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@armyc2.c5isr.renderer/mil-sym-ts-web 可以商用吗?

@armyc2.c5isr.renderer/mil-sym-ts-web 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@armyc2.c5isr.renderer/mil-sym-ts-web 的下载量有多少?

根据 npm 官方下载统计,@armyc2.c5isr.renderer/mil-sym-ts-web 在 2026/10/07 – 2026/11/05 这 30 天内被下载 20,466 次,日均约 682 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@armyc2.c5isr.renderer/mil-sym-ts-web 还在维护吗?

最新版本 2.10.10 发布于 2026/11/05(2 天前);至今共发布 41 个版本,其中过去 12 个月发布了 30 个;首次发布于 2025/06/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。