428 lines
10 KiB
Markdown
428 lines
10 KiB
Markdown
# Change Log
|
|
|
|
## 2.0.0
|
|
|
|
### Added
|
|
|
|
- Added support for Engagement Bars
|
|
|
|
- Use the option engagementBar to set the bar text
|
|
- Use the option engagementType to define "TARGET", "NON-TARGET", or "EXPIRED" as type
|
|
|
|
- Added support for the field country as specified in APP-6 D
|
|
- Added support for the field installationComposition as specified in APP-6 D
|
|
- Added possiblity to control more color on symbol level
|
|
- Support for speed leaders
|
|
- Support for text background color using infoBackground and infoBackgroundFrame options
|
|
|
|
### Changed
|
|
|
|
- `symbol.getProperties()` is removed and `symbol.getMetadata()` should be used instead.
|
|
|
|
- ms.getHqStafLength changed to ms.getHqStaffLength, fixed spelling
|
|
|
|
- ms.setHqStafLength changed to ms.setHqStaffLength, fixed spelling
|
|
|
|
- Thanks to @okwolf we moved from webpack to rollup for development
|
|
|
|
- Where there are multiple text fields in the same position, they are now joined
|
|
by a / instead of a space
|
|
|
|
- Changed location of feint/dummy indicator to be more similar to images in
|
|
standard documents
|
|
|
|
- Make it possible to set infoColor to a Color Mode
|
|
|
|
### Deprecated
|
|
|
|
### Removed
|
|
|
|
- `symbol.getProperties()` is removed (use `symbol.getMetadata()` instead)
|
|
|
|
- `ms.setAutoSVG` has now been removed.
|
|
|
|
### Fixed
|
|
|
|
- Fields commonIdentifier (AF) and equipmentTeardownTime (AE) had swiched
|
|
places, now corrected
|
|
|
|
- The condition bar is now drawn below the headquartersElement field
|
|
|
|
- Some natural events in 2525C was framed even if they shouldn't be
|
|
|
|
### Security
|
|
|
|
- Prevented XSS issue where malicious code could be inserted into text fields of SVG symbols, all < and > are now encoded to prevent this.
|
|
|
|
## 1.3.3 14 NOV 2017
|
|
|
|
### Added
|
|
|
|
### Changed
|
|
|
|
- Updated and moved the unit generator from dev to examples.
|
|
|
|
### Deprecated
|
|
|
|
### Removed
|
|
|
|
### Fixed
|
|
|
|
- The option infoColor was not set when used, this is now fixed, again.
|
|
- The option hqStaffLength was not set when used, this is now fixed.
|
|
- Fill opacity affected outline opacity as well in canvas output.
|
|
|
|
### Security
|
|
|
|
## 1.3.2 13 NOV 2017
|
|
|
|
### Added
|
|
|
|
### Changed
|
|
|
|
### Deprecated
|
|
|
|
### Removed
|
|
|
|
### Fixed
|
|
|
|
- Following symbols were drawn as fixed wing instead of rotary wing
|
|
|
|
- WAR.SOFUNT.AVN.ROT.ATK
|
|
- WAR.SOFUNT.AVN.ROT.UTY
|
|
- WAR.SOFUNT.AVN.ROT.UTY.LIT
|
|
- WAR.SOFUNT.AVN.ROT.UTY.MDM
|
|
- WAR.SOFUNT.AVN.ROT.UTY.HVY
|
|
|
|
- The option infoColor was not set when used, this is now fixed.
|
|
|
|
### Security
|
|
|
|
## 1.3.1 17 OCT 2017
|
|
|
|
### Added
|
|
|
|
### Changed
|
|
|
|
### Deprecated
|
|
|
|
### Removed
|
|
|
|
### Fixed
|
|
|
|
- Fixed canvas output in Microsoft Edge 14
|
|
|
|
### Security
|
|
|
|
## 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
|
|
|
|
## 1.2.1 12 JUN 2017
|
|
|
|
### Added
|
|
|
|
### Changed
|
|
|
|
### Deprecated
|
|
|
|
### Removed
|
|
|
|
### Fixed
|
|
|
|
- Altitude/Depth was sometimes not labeled on 2525D symbols
|
|
|
|
- Typo in Changelog
|
|
|
|
### Security
|
|
|
|
## 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
|
|
|
|
## 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
|
|
|
|
## 1.0.0 03 MAR 2017
|
|
|
|
- Milsymbol is now split into several modules and built with
|
|
[webpack](https://webpack.github.io/), 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
|
|
|
|
## 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
|
|
|
|
## 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
|
|
|
|
## 0.5.5 13 JAN 2016
|
|
|
|
### Added
|
|
|
|
- Native Canvas output
|
|
|
|
### Changed
|
|
|
|
- Made several changes to the code to reduce the code size
|
|
|
|
## 0.5.1 24 JUL 2015
|
|
|
|
### Changed
|
|
|
|
- Minor documentation updates
|
|
|
|
## 0.5.0 - 20 JUL 2015
|
|
|
|
### Added
|
|
|
|
- New API
|
|
- Much faster
|
|
- Support point symbols from MIL-STD-2525D
|
|
- New examples
|
|
|
|
## 0.4.5 - 24 NOV 2014
|
|
|
|
### Added
|
|
|
|
- Now supports MIL-STD-2525C Emergency Management Symbols
|
|
- Speeeeed, the code now runs 3-5 times faster when you are creating a lot of
|
|
symbols. (1000 random symbols can be created in less than 1 second, my test
|
|
record is 0.25 seconds on a modern iMac running Safari.)
|
|
- Added an example showing generation of 1000 random symbols.
|