Socket
Socket
Sign inDemoInstall

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.8.0 to 2.8.1

8

dist/markerfactory.esm.js

@@ -315,7 +315,7 @@ var MarkerFactory = {};

var textWidth = context.measureText(options.label);
var textWidth = context.measureText(options.unicodelabel);
// centre the text.
context.fillText(options.label,
context.fillText(options.unicodelabel,
1 + Math.floor((canvas.width / 2) - (textWidth.width / 2)),

@@ -629,4 +629,4 @@ 49 - canvas.height

// This is a charcode specified as an octal number, so I'll decode it
options.label = String.fromCharCode(String(options.label));
options.unicodelabel = String.fromCharCode(String(options.label));
options.label = options.label.slice(2);
if (options.transparent_background === true) {

@@ -633,0 +633,0 @@ // Estilo frontdev

@@ -321,7 +321,7 @@ (function (global, factory) {

var textWidth = context.measureText(options.label);
var textWidth = context.measureText(options.unicodelabel);
// centre the text.
context.fillText(options.label,
context.fillText(options.unicodelabel,
1 + Math.floor((canvas.width / 2) - (textWidth.width / 2)),

@@ -635,4 +635,4 @@ 49 - canvas.height

// This is a charcode specified as an octal number, so I'll decode it
options.label = String.fromCharCode(String(options.label));
options.unicodelabel = String.fromCharCode(String(options.label));
options.label = options.label.slice(2);
if (options.transparent_background === true) {

@@ -639,0 +639,0 @@ // Estilo frontdev

@@ -5,3 +5,3 @@ {

"jsnext:main": "markerfactory.esm.js",
"version": "2.8.0",
"version": "2.8.1",
"license": "MIT",

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

@@ -315,7 +315,7 @@ var MarkerFactory = {};

var textWidth = context.measureText(options.label);
var textWidth = context.measureText(options.unicodelabel);
// centre the text.
context.fillText(options.label,
context.fillText(options.unicodelabel,
1 + Math.floor((canvas.width / 2) - (textWidth.width / 2)),

@@ -629,4 +629,4 @@ 49 - canvas.height

// This is a charcode specified as an octal number, so I'll decode it
options.label = String.fromCharCode(String(options.label));
options.unicodelabel = String.fromCharCode(String(options.label));
options.label = options.label.slice(2);
if (options.transparent_background === true) {

@@ -633,0 +633,0 @@ // Estilo frontdev

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