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

ig_markerfactory

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ig_markerfactory - npm Package Compare versions

Comparing version 2.9.3 to 2.9.4

examples/example2.js

18

dist/markerfactory.esm.js

@@ -434,2 +434,4 @@ var MarkerFactory = {};

var createTransparentMarkerIcon = function (theoptions) {

@@ -441,3 +443,3 @@

font = options.font || 'fontello',
fontsize = options.fontsize || 40,
fontsize = options.fontsize || 30,
color0, color1;

@@ -449,2 +451,6 @@

/*context.rect(1, 1, canvas.width - 2, canvas.height - 2);
context.lineWidth = 1;
context.strokeStyle = 'black';
context.stroke();*/

@@ -496,6 +502,9 @@ if (options.index !== undefined && options.count > 0) {

context.shadowColor = '#FFFFFF';
context.fillStyle = color0;
context.fillText(options.unicodelabel, text_x + 1, 0);
context.shadowOffsetX = 2;
context.shadowOffsetY = 2;
context.shadowBlur = 1;
context.shadowColor = '#FFFFFF';
context.strokeStyle = color1;

@@ -512,5 +521,7 @@ context.strokeText(options.unicodelabel, text_x + 1, 0);

var markerCanvas = generateTransparentCanvas(theoptions);
theoptions.scale = theoptions.scale || 1;
theoptions.fontsize = theoptions.fontsize || 30;
var markerCanvas = generateTransparentCanvas(theoptions);
var scale = theoptions.scale;

@@ -541,2 +552,3 @@ if (theoptions.shadow) {

MarkerFactory.toDecColor = toDecColor;

@@ -543,0 +555,0 @@

@@ -440,2 +440,4 @@ (function (global, factory) {

var createTransparentMarkerIcon = function (theoptions) {

@@ -447,3 +449,3 @@

font = options.font || 'fontello',
fontsize = options.fontsize || 40,
fontsize = options.fontsize || 30,
color0, color1;

@@ -455,2 +457,6 @@

/*context.rect(1, 1, canvas.width - 2, canvas.height - 2);
context.lineWidth = 1;
context.strokeStyle = 'black';
context.stroke();*/

@@ -502,6 +508,9 @@ if (options.index !== undefined && options.count > 0) {

context.shadowColor = '#FFFFFF';
context.fillStyle = color0;
context.fillText(options.unicodelabel, text_x + 1, 0);
context.shadowOffsetX = 2;
context.shadowOffsetY = 2;
context.shadowBlur = 1;
context.shadowColor = '#FFFFFF';
context.strokeStyle = color1;

@@ -518,5 +527,7 @@ context.strokeText(options.unicodelabel, text_x + 1, 0);

var markerCanvas = generateTransparentCanvas(theoptions);
theoptions.scale = theoptions.scale || 1;
theoptions.fontsize = theoptions.fontsize || 30;
var markerCanvas = generateTransparentCanvas(theoptions);
var scale = theoptions.scale;

@@ -547,2 +558,3 @@ if (theoptions.shadow) {

MarkerFactory.toDecColor = toDecColor;

@@ -549,0 +561,0 @@

2

package.json

@@ -6,3 +6,3 @@ {

"description": "Uses canvas to generate google.maps.Marker Icons from graphic fonts (i.e. font-awesome) on the fly",
"version": "2.9.3",
"version": "2.9.4",
"license": "MIT",

@@ -9,0 +9,0 @@ "repository": {

@@ -434,2 +434,4 @@ var MarkerFactory = {};

var createTransparentMarkerIcon = function (theoptions) {

@@ -441,3 +443,3 @@

font = options.font || 'fontello',
fontsize = options.fontsize || 40,
fontsize = options.fontsize || 30,
color0, color1;

@@ -449,2 +451,6 @@

/*context.rect(1, 1, canvas.width - 2, canvas.height - 2);
context.lineWidth = 1;
context.strokeStyle = 'black';
context.stroke();*/

@@ -496,6 +502,9 @@ if (options.index !== undefined && options.count > 0) {

context.shadowColor = '#FFFFFF';
context.fillStyle = color0;
context.fillText(options.unicodelabel, text_x + 1, 0);
context.shadowOffsetX = 2;
context.shadowOffsetY = 2;
context.shadowBlur = 1;
context.shadowColor = '#FFFFFF';
context.strokeStyle = color1;

@@ -512,5 +521,7 @@ context.strokeText(options.unicodelabel, text_x + 1, 0);

var markerCanvas = generateTransparentCanvas(theoptions);
theoptions.scale = theoptions.scale || 1;
theoptions.fontsize = theoptions.fontsize || 30;
var markerCanvas = generateTransparentCanvas(theoptions);
var scale = theoptions.scale;

@@ -541,2 +552,3 @@ if (theoptions.shadow) {

MarkerFactory.toDecColor = toDecColor;

@@ -543,0 +555,0 @@

Sorry, the diff of this file is not supported yet

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