Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

milsymbol

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

milsymbol - npm Package Versions

1

1.3.0

Diff

Changelog

Source

1.3.0 21 AUG 2017

Added

  • symbol.getOptions(includeStyle) will return the options that are set on the symbol.

  • symbol.getStyle() will return the style options that are set on the symbol.

  • Added files for intellisense when used in Visual Studio Code

Changed

  • Options and Style are now stored in separate Objects on the symbol for better structure.

  • ms.Symbol and setOptions can now take any number of arguments from 0 to n.

Deprecated

Removed

Fixed

  • ArcGIS example had to be updated because of change of how Options and Style are stored.

  • monoColor was initialized as false instead of an empty string, this is now corrected and makes the correct status modifiers to be used by default.

  • 10031000001104000000 was drawn with an icon IW instead of IO (Since it is IW in 2525C, but that is now fiexed.)

  • Fixed the size of the sensor icon used in 2525D

Security

spatialillusions
published 1.2.1 •

Changelog

Source

1.2.1 12 JUN 2017

Added

Changed

Deprecated

Removed

Fixed

  • Altitude/Depth was sometimes not labeled on 2525D symbols

  • Typo in Changelog

Security

spatialillusions
published 1.2.0 •

Changelog

Source

1.2.0 11 JUN 2017

Added

  • Added build-amd, to build an AMD only module you can now run npm run build-amd

Changed

  • isValid(option) can now take an bolean input that makes it return a validaton object with extended information about the vadility.

  • isValid now validates the mobility modifier as well as the symbol icon.

  • Updated ENERGY FACITILIES INFRASTRUCTURE to better representation of the standard.

Deprecated

Removed

  • Removed all methods that was deprecated in milsymbol 1.0.0

Fixed

  • The quantiy field would be cut if the content was wider than the symbol, this is now fixed so that the symbol size adopts to to width of the quantity field.

  • Fixed Land Unit M1 10 command and control that was displayed in as a Y instead of C2.

  • Some modifiers on Signals Intelligence symbols in 2525C was incorrect

Security

spatialillusions
published 1.1.0 •

Changelog

Source

1.1.0 16 APR 2017

I would like to thank @okwolf that has contributed with unit tests and some code reorganization.

Added

  • It is now possible to use sidc or SIDC in an options object.

  • It is now possible to initiate a symbol with just an options object ms.Symbol({options}).

  • ms.Symbol().isValid() now returns a boolean representing if it was possible to find the symbol icon for the provided SIDC.

  • The source code for the unit generator is now provided in the dev folder.

  • Added 2525B symbols that are missing in 2525C, so now we have full support for 2525B as well.

  • Initial unit tests added to the repository.

Changed

Deprecated

Removed

Fixed

  • Fix for that tactical points with labels with large font sizes might draw too narrow so that part of the label can't be seen.

  • Fix for that units with invalid icon part in the SIDC did not get the upside down question mark when canvas output was used.

  • G-F-PTS--- TACGRP.FSUPP.PNT.TGT.PTGT and G-C-FSTP-- 2.X.2.3.1.1.1 POINT/SINGLE TARGET now uses altitudeDepth instead of additionalInformation1 to display the target altitude.

  • Made sure that tactical points that dosen't have labels in the specifications don't get labels even if they are set.

Security

spatialillusions
published 1.0.0 •

Changelog

Source

1.0.0 03 MAR 2017

  • Milsymbol is now split into several modules and built with webpack, this makes the code easier to maintain.

  • Avoid getting and setting properties directly, use methods for this when they are available, in the future properties might change names.

Added

  • colorMode property can now be set to a string representing the name of a registered color mode.

  • symbol.getSize() returns an object with the width and height of the symbol.

  • symbol.getAnchor() returns an object with the x and y offset of the symbol.

  • symbol.getOctagonAnchor() returns an object with the x and y offset of the octagon center.

  • bbox.merge(another-bbox), use this instead of MS.bboxMax for merging bounding boxes.

  • Milsymbol can now be used as a AMD/CommonJS/etc... module, by requiering milsymbol, the global var is called ms.

  • ms.getVersion() that returns the version as a string.

  • ms.addSIDCicons(sidcFunction, type) for adding sidc functions.

  • ms.addLabelOverrides(labelFunction, type) for adding label functions.

  • ms.addSymbolPart(part) should be used instead of MS.addMarkerParts(part)

  • ms.getSymbolParts() should be used instead of MS.getMarkerParts()

  • ms.setSymbolParts(parts) should be used instead of MS.setMarkerParts(parts)

  • ms.BBox() should be used instead of MS.bbox(). (Since it is a class...)

  • ms.ColorMode() should be used instead of MS.colorMode(). (Since it is a class...)

  • ms.Symbol() should be used instead of MS.symbol(). (Since it is a class...)

  • Tactical points is now part of /dist/milsymbol.js, no need to include any extra files.

  • Tactical points now supports APP6-B ANNEX E.

  • Symbols with an invalid icon in the SIDC will now be rendered with an upside down ?. (According to MIL-STD-2525D)

Changed

  • Global variable is now ms instead of MS.

  • Feint/Dummy indicator drawn as specified in MIL-STD-2525D change 1.

Deprecated

  • Avoid setting properties directly, use setOptions(options) instead.

  • Do not use .XML anymore, use asSVG() instead, if needed set ms.autoSVG = true. ms.autoSVG will be removed in a future version.

  • getMarker(), it's not needed anymore, symbols are automatically updated when options are updated using setOptions().

  • MS.bboxMax(), use bbox.merge() instead.

  • MS.addLetterSIDCicons(), use ms.addSIDCicons() instead.

  • MS.addNumberSIDCicons(), use ms.addSIDCicons() instead.

  • MS.addLetterLabelOverrides(), use ms.addLabelOverrides() instead.

  • MS.addNumberLabelOverrides(), use ms.addLabelOverrides() instead.

  • MS.buildingBlock() return an object instead.

  • MS.addMarkerParts(part) use ms.addSymbolPart(part) instead.

  • MS.getMarkerParts() use ms.getSymbolParts() instead.

  • MS.setMarkerParts(parts) use ms.setSymbolParts(parts) instead.

  • MS.bbox() use ms.BBox() instead. (Since it is a class...)

  • MS.colorMode() use ms.ColorMode() instead. (Since it is a class...)

  • MS.symbol() use ms.Symbol instead. (Since it is a class...)

Removed

  • MS.rotate() has been removed, use json drawInstruction instead.

  • MS.scale() has been removed, use json drawInstruction instead.

  • MS.translate() has been removed, use json drawInstruction instead.

Fixed

  • Fixed a bug that prevented specialHeadquarters to be drawn on Canvas output.

Security

spatialillusions
published 0.6.0 •

Changelog

Source

0.6.0 25 DEC 2016

Added

  • Support for outlines on symbols using properties outlineColor and outlineWidth.

  • toDataURL() that returns a base 64 encoding of the SVG symbol. (See deprication of asImage())

  • Possibility to Add/Update existing SIDC.

  • Possibility to Add/Update the icon parts that constructs the icons.

  • Support for tactical point symbols in MIL-STD-2525C.

Changed

Deprecated

  • asImage() since it returns a data url and not an image.

Removed

Fixed

Security

spatialillusions
published 0.5.6 •

Changelog

Source

0.5.6 14 MAY 2016

Added

  • asCanvas() is now also supported in Internet Explorer 11, this makes it simpler to integrate with Open Layers 3 and Cesium
  • Added back the possibility to create effects with SVG filters in custom extensions
spatialillusions
published 0.5.5 •

Changelog

Source

0.5.5 13 JAN 2016

Added

  • Native Canvas output

Changed

  • Made several changes to the code to reduce the code size
spatialillusions
published 0.5.1 •

Changelog

Source

0.5.1 24 JUL 2015

Changed

  • Minor documentation updates
spatialillusions
published 0.5.0 •

Changelog

Source

0.5.0 - 20 JUL 2015

Added

  • New API
  • Much faster
  • Support point symbols from MIL-STD-2525D
  • New examples
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc