@planet/dynamic-tiles
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -183,3 +183,5 @@ "use strict"; | ||
var ctx = t.canvas.getContext('2d'); | ||
ctx.putImageData(new ImageData(res, 256), 0, 0); | ||
var imgData = ctx.createImageData(256, 256); | ||
imgData.data.set(res); | ||
ctx.putImageData(imgData, 0, 0); | ||
} | ||
@@ -205,3 +207,5 @@ } | ||
var ctx = target.canvas.getContext('2d'); | ||
ctx.putImageData(new ImageData(message.data.results, 256), 0, 0); | ||
var imgData = ctx.createImageData(256, 256); | ||
imgData.data.set(message.data.results); | ||
ctx.putImageData(imgData, 0, 0); | ||
src.changed(); | ||
@@ -208,0 +212,0 @@ } |
{ | ||
"name": "@planet/dynamic-tiles", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Support for dynamically colored tiles from Planet Inc. tile servers.", | ||
@@ -5,0 +5,0 @@ "main": "./ol.js", |
@@ -39,4 +39,10 @@ "use strict"; | ||
var styleFuncs = Object.assign({}, maths.styleFuncs); | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var styleFuncs = _objectSpread({}, maths.styleFuncs); | ||
function testUserFunctions(functions) { | ||
@@ -313,3 +319,5 @@ var results = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var ctx = canvas.getContext('2d'); | ||
ctx.putImageData(new ImageData(res, 256), 0, 0); | ||
var imgData = ctx.createImageData(256, 256); | ||
imgData.data.set(res); | ||
ctx.putImageData(imgData, 0, 0); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
55787
1254
1