nanocomponent
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -5,2 +5,3 @@ // // adapted from https://github.com/timwis/choo-leaflet-demo/blob/master/src/map.js | ||
var leaflet = require('leaflet') | ||
var onIdle = require('on-idle') | ||
var html = require('bel') | ||
@@ -23,2 +24,3 @@ | ||
Leaflet.prototype._render = function (coords) { | ||
var self = this | ||
this._coords = coords | ||
@@ -30,3 +32,5 @@ | ||
} else { | ||
this._updateMap() | ||
onIdle(function () { | ||
self._updateMap() | ||
}) | ||
} | ||
@@ -62,4 +66,4 @@ | ||
var map = leaflet.map(element).setView(coords, zoom) | ||
leaflet.tileLayer('http://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.{ext}', { | ||
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>', | ||
leaflet.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.{ext}', { | ||
attribution: 'Map tiles by <a href="https://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>', | ||
subdomains: 'abcd', | ||
@@ -66,0 +70,0 @@ minZoom: 0, |
@@ -1,3 +0,1 @@ | ||
'use strict' | ||
var onload = require('on-load') | ||
@@ -4,0 +2,0 @@ var assert = require('assert') |
{ | ||
"name": "nanocomponent", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Create performant HTML elements", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "bankai build example --optimize", | ||
"deps": "dependency-check . && dependency-check . --extra --no-dev -i yo-yoify", | ||
@@ -32,2 +33,3 @@ "start": "bankai example --open", | ||
"nanologger": "^1.0.2", | ||
"on-idle": "^1.0.0", | ||
"standard": "^8.6.0", | ||
@@ -34,0 +36,0 @@ "tachyons": "^4.6.1", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25224
737
0
16