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 Compare versions

Comparing version 1.3.2 to 1.3.3

examples/unitgenerator.html

2

bower.json
{
"name": "milsymbol",
"version": "1.3.2",
"version": "1.3.3",
"homepage": "https://github.com/spatialillusions/milsymbol",

@@ -5,0 +5,0 @@ "authors": ["Måns Beckman (http://www.spatialillusions.com)"],

# Change Log
## 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 hqStafLength 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

@@ -4,0 +25,0 @@

{
"name": "milsymbol",
"version": "1.3.2",
"version": "1.3.3",
"description": "Milsymbol.js is a small library in pure javascript that creates symbols according to MIL-STD-2525 and APP6.",

@@ -5,0 +5,0 @@ "main": "dist/milsymbol.js",

@@ -53,3 +53,3 @@ /*!

this.autoSVG = false;
this.version = "1.3.2";
this.version = "1.3.3";

@@ -56,0 +56,0 @@ if (typeof console === "object") {

@@ -20,2 +20,3 @@ var ms = require("./ms.js");

this.style.frame = true; // Should the icon be framed
this.style.hqStafLength = 0; // The default length of the HQ staf
this.style.strokeWidth = 4; // The stroke width of he icon frame.

@@ -28,2 +29,3 @@ this.style.outlineColor = "rgb(239, 239, 239)"; // Color of the outline

this.style.colorMode = "Light"; // 2525C Allows you to use Dark; Medium or Light colors. The values you can set are "Dark";"Medium" or "Light"
this.style.infoColor = ""; // Changes the color of the info fields
this.style.infoFields = true; // If you have set all info fields but don't want the displayed; then just set this to false.

@@ -30,0 +32,0 @@ this.style.infoSize = 40; // Relative size of the info fields

@@ -53,2 +53,3 @@ var ms = require("../ms.js");

ctx.fill(d);
if (ctx.globalAlpha != 1) ctx.globalAlpha = 1; //We never have transparent strokes
if (

@@ -69,2 +70,3 @@ typeof instruction[i].stroke === "undefined" ||

ctx.fill();
if (ctx.globalAlpha != 1) ctx.globalAlpha = 1;
if (

@@ -71,0 +73,0 @@ typeof instruction[i].stroke === "undefined" ||

@@ -13,3 +13,3 @@ //Symbol Modifiers #######################################################################

var y = 100;
var hqStafLength = this.hqStafLength || ms._hqStafLength;
var hqStafLength = Number(this.style.hqStafLength || ms._hqStafLength);
if (

@@ -16,0 +16,0 @@ [

@@ -9,3 +9,3 @@ //Text Fields ############################################################################

var fontColor =
this.properties.infoColor ||
this.style.infoColor ||
this.colors.iconColor[this.properties.affiliation] ||

@@ -12,0 +12,0 @@ this.colors.iconColor["Friend"];

Sorry, the diff of this file is too big to display

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