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

ldmap

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldmap - npm Package Compare versions

Comparing version 0.0.79 to 0.0.81

2

core/l_utils.js

@@ -1,1 +0,1 @@

function a(a,f,g){f=f||'#0cc',g=g||'#bbb';var c='',b,d,h='display:inline-block;white-space:nowrap;',j=h+'color:'+g+';margin-right:5px;',i=h+'color:'+f+';font-weight:normal';if(Array.isArray(a))a.forEach(function(a,d){typeof a=='string'&&(b='<a style="'+i+'">'+a+'</a><br>',c+=b)});else if(typeof a==='object')for(var e in a){var b=a[e];typeof b==='string'&&(d='<a style="'+j+'">'+e+': </a><a style="'+i+'">'+b+'</a><br>',c+=d)}return c}function b(a){return typeof a[0]==='object'?!1:!0}function c(a){return a===undefined}function d(c,a){return a=a||{},c.forEach(function(f){if(b(f)){var c=f[0],e=f[1];a.latMax=Math.max(a.latMax||e,e),a.lngMax=Math.max(a.lngMax||c,c),a.latMin=Math.min(a.latMin||e,e),a.lngMin=Math.min(a.lngMin||c,c)}else d(f,a)}),a}function e(b){var a={};return b.forEach(function(e){var c=e.geometry.coordinates,b=d(c);a.latMax=Math.max(a.latMax||b.latMax,b.latMax),a.lngMax=Math.max(a.lngMax||b.lngMax,b.lngMax),a.latMin=Math.min(a.latMin||b.latMin,b.latMin),a.lngMin=Math.min(a.lngMin||b.lngMin,b.lngMin)}),a}function f(a){if(a.features)return e(a.features);if(a.type&&a.type.toLowerCase()==='feature'){var b=a.geometry;if(!b)return;var c=b.coordinates;return c?d(c):void 0}}function g(c,a){return a=a||[],c.forEach(function(c){if(b(c)){var e=c[0],d=c[1];(a[0]===undefined||a[0]===null)&&(a=c),d>a[1]&&(a[0]=c[0],a[1]=c[1])}else a=g(c,a)}),a}function h(b){var a=g(b.map(function(a){return g(a.geometry.coordinates)}));return a}function i(a){if(a.features)return h(a.features);if(a.type&&a.type.toLowerCase()==='feature'){var b=a.geometry;if(!b)return;var c=b.coordinates;return c?g(c):void 0}return g(a)}module.exports={parseContent:a,getTopPoint:i,getBBox:f}
function a(a,f,g){f=f||'#0cc',g=g||'#bbb';var c='',b,d,h='display:inline-block;white-space:nowrap;',j=h+'color:'+g+';margin-right:5px;',i=h+'color:'+f+';font-weight:normal';if(Array.isArray(a))a.forEach(function(a,b){typeof a=='string'&&(d='<a style="'+i+'">'+a+'</a><br>',c+=d)});else if(typeof a==='object')for(var e in a){var b=a[e];typeof b==='string'&&(d='<a style="'+j+'">'+e+': </a><a style="'+i+'">'+b+'</a><br>',c+=d)}return c}function b(a){return typeof a[0]==='object'?!1:!0}function c(a){return a===undefined}function d(c,a){return a=a||{},c.forEach(function(f){if(b(f)){var c=f[0],e=f[1];a.latMax=Math.max(a.latMax||e,e),a.lngMax=Math.max(a.lngMax||c,c),a.latMin=Math.min(a.latMin||e,e),a.lngMin=Math.min(a.lngMin||c,c)}else d(f,a)}),a}function e(b){var a={};return b.forEach(function(e){var c=e.geometry.coordinates,b=d(c);a.latMax=Math.max(a.latMax||b.latMax,b.latMax),a.lngMax=Math.max(a.lngMax||b.lngMax,b.lngMax),a.latMin=Math.min(a.latMin||b.latMin,b.latMin),a.lngMin=Math.min(a.lngMin||b.lngMin,b.lngMin)}),a}function f(a){if(a.features)return e(a.features);if(a.type&&a.type.toLowerCase()==='feature'){var b=a.geometry;if(!b)return;var c=b.coordinates;return c?d(c):void 0}}function g(c,a){return a=a||[],c.forEach(function(c){if(b(c)){var e=c[0],d=c[1];(a[0]===undefined||a[0]===null)&&(a=c),d>a[1]&&(a[0]=c[0],a[1]=c[1])}else a=g(c,a)}),a}function h(b){var a=g(b.map(function(a){return g(a.geometry.coordinates)}));return a}function i(a){if(a.features)return h(a.features);if(a.type&&a.type.toLowerCase()==='feature'){var b=a.geometry;if(!b)return;var c=b.coordinates;return c?g(c):void 0}return g(a)}module.exports={parseContent:a,getTopPoint:i,getBBox:f}

@@ -1,1 +0,1 @@

function a(a,b,c,d){return typeof a==='function'?a(b,c,d):a}var b=require('./../leaflet'),c=require('konva'),d=require('lodash'),e=require('./../render/leaflet_layer_konva'),f=require('./../core/utils'),g=f.getSprite,h=f.fireEvent,a=f.getValue,i=b.Class.extend({includes:[b.Mixin.Events],initialize:function(a){a=this.options=f.deepMerge(i.options,a),this.resetVariables()},resetVariables:function(){this.isable=!0},disable:function(){this.isable=!1,this.kLeafLayer.disable()},enable:function(){this.isable=!0,this.kLeafLayer.enable()},addTo:function(a){if(this._map||!a)return;this._map=a,this.initCanvas(),this.initEventsMap(),this.initEventsShapes()},initEventsShapes:function(){var d=this,b=this.options.hoverScale||1,a,c=this.kLeafLayer.onKonva('dragstart',function(a){}).onKonva('mouseover touchstart',function(c){a=c.target,a.setAttrs({scale:{x:b,y:b}}),a.parent.draw()}).onKonva('mouseout',function(b){a=b.target,a.setAttrs({scale:{x:1,y:1}}),a.parent.draw()}).onKonva('mouseout mouseup touchend',function(a){setTimeout(function(){c.enableMapEvents()})}).onKonva('mousedown touchstart',this.onMouseDown.bind(this)),e=['mouseout','mousedown','mouseover','mouseout','touchstart','touchend','touchup'];e.forEach(function(a){c.onKonva(a,function(b){h(a,b,d)})})},onMouseDown:function(g){var c=this.options,e=this._map,d=g.target,f=d.__data,a=c.popup;if(a&&(a=a.bind(c)),a||(a=c.child.popup,a&&(a=a.bind(c.child))),!a)return;popupText=a(f),setTimeout(function(){if(f){var a=f.getClientRect(),d=a.x+a.width/2,e=a.y,c=g.containerPointToLatLng(b.point(d,e));g.openPopup(popupText,b.latLng(c.lat,c.lng))}}.bind(this)),this.kLeafLayer.disableMapEvents()},initCanvas:function(){var b=this._map,a=this.options,d=b.getSize(),f=new c.Stage({container:a.container,width:d.x,height:d.y}),g=this.kLeafLayer=new e(f,{transition:a.lazyFresh.transition,blending:a.blending,ptNPerLayer:a.ptNPerLayer});g.addTo(b),this.initEditor()},data:function(c){this._data=c;var a=this.options,b=a.zIndex||a.child.zIndex;b&&(this._data=d.sortBy(c,b))},updateOptions:function(a){var b=this.kLeafLayer;b.resetOffset(),a&&(this.options=f.deepMerge(this.options,a)),b.hideLayers(),b.updateOptions({transition:a.lazyFresh.transition,blending:a.blending,ptNPerLayer:a.ptNPerLayer}),this.draw()},updateFilter:function(a){if(!a||typeof a!=='function')return;this.options.filter=a,this.draw()},render:function(a){a&&this.data(a),a&&this.kLeafLayer.beginDraw(),this.draw(),a&&this.kLeafLayer.endDraw()},createShapeAttr:function(e,n){if(!this.isable)return;var d=this.options,i=d.lat.bind(d),l=d.lng.bind(d),k=a(d.id.bind(d),e),f=a(d.size,e)||1,m=i(e),j=l(e),h=this._map.latLngToContainerPoint(b.latLng(m,j));return{data:e,Constructor:c.Image,index:n,id:k,attrs:{x:h.x,y:h.y,offset:{x:f/2,y:f/2},image:g(d.sprite||d.child.sprite,e),width:f,height:f,draggable:!1}}},draw:function(){var b=this._data;if(!b)return;if(!this.isable)return;var d,f,c=this.kLeafLayer,e=this.options.filter;for(var a=b.length-1;a>-1;a--){if(d=b[a],e&&!e(d,a))continue;f=this.createShapeAttr(d,a),c.addOrSetShape(f)}c.stopLazyFresh(),c.lazyFresh()},initEventsMap:function(){this._map.on('zoomend',this.draw.bind(this)).on('moveend',this.draw.bind(this))},destroy:function(){this.kLeafLayer.destroy()},initEditor:function(){this.eidtList=[],this.kLeafLayer.initEditor(),this.initEventEditor()},enableEditor:function(){this.kLeafLayer.enableEditor()},disableEditor:function(){this.kLeafLayer.disableEditor()},initEventEditor:function(){var a=this;this.kLeafLayer.on('shape-dragged',function(b){a.onShapeDragged(b.shape)})},onShapeDragged:function(e){var a=e.getClientRect(),f=a.x+a.width/2,g=a.y+a.height/2,h=this._map.containerPointToLatLng(b.point(f,g)),i=this.options,d=i.editor.setLatLng;if(!d)return console.log('请设置options.editor.setLatLng');var c=e.__data;d(h,c),this.kLeafLayer.addOrSetShape(c,null,!0),this.eidtList.push(c),this.fire('data-edited',c)},isEdited:function(){return this.eidtList.length>0},submitEdit:function(){var a=this.options,b=this.eidtList}});i.options={lng:f.getLng,lat:f.getLat,refreshInterval:1,ptNPerLayer:1e3,lazyFresh:{transition:'opacity 0.4s'},size:function(a){return 40},id:function(a,b){return a.id||b},hoverScale:1.2,blending:'lighter',container:'tilePane',sprite:{drawN:1.15,color:{from:'rgba(245,230,0,1)',to:'rgba(205,0,0, 0.6)',easing:'Linear.None.1.7',space:'rgb'}},child:{},editor:{setLatLng:function(b,a){if(!a)return;a.lat=b.lat,a.lng=b.lng}}};var j=b.dmap=b.dmap||{};j.ScatterKonva=i,j.scatterKonva=function(a){return new i(a)},module.exports=i
function a(a,b,c,d){return typeof a==='function'?a(b,c,d):a}var b=require('./../leaflet'),c=require('konva'),d=require('lodash'),e=require('./../render/leaflet_layer_konva'),f=require('./../core/utils'),g=f.getSprite,h=f.fireEvent,a=f.getValue,i=b.Class.extend({includes:[b.Mixin.Events],initialize:function(a){a=this.options=f.deepMerge(i.options,a),this.resetVariables()},resetVariables:function(){this.isable=!0},disable:function(){this.isable=!1,this.kLeafLayer.disable()},enable:function(){this.isable=!0,this.kLeafLayer.enable()},addTo:function(a){if(this._map||!a)return;this._map=a,this.initCanvas(),this.initEventsMap(),this.initEventsShapes()},initEventsShapes:function(){var d=this,b=this.options.hoverScale||1,a,c=this.kLeafLayer.onKonva('dragstart',function(a){}).onKonva('mouseover touchstart',function(c){a=c.target,a.setAttrs({scale:{x:b,y:b}}),a.parent.draw()}).onKonva('mouseout',function(b){a=b.target,a.setAttrs({scale:{x:1,y:1}}),a.parent.draw()}).onKonva('mouseout mouseup touchend',function(a){setTimeout(function(){c.enableMapEvents()})}).onKonva('mousedown touchstart',this.onMouseDown.bind(this)),e=['mouseout','mousedown','mouseover','mouseout','touchstart','touchend','touchup'];e.forEach(function(a){c.onKonva(a,function(b){h(a,b,d)})})},onMouseDown:function(g){var c=this.options,e=this._map,d=g.target,f=d.__data,a=c.popup;if(a&&(a=a.bind(c)),a||(a=c.child.popup,a&&(a=a.bind(c.child))),!a)return;popupText=a(f),setTimeout(function(){if(d){console.log(d);var a=d.getClientRect(),f=a.x+a.width/2,g=a.y,c=e.containerPointToLatLng(b.point(f,g));e.openPopup(popupText,b.latLng(c.lat,c.lng))}}.bind(this)),this.kLeafLayer.disableMapEvents()},initCanvas:function(){var b=this._map,a=this.options,d=b.getSize(),f=new c.Stage({container:a.container,width:d.x,height:d.y}),g=this.kLeafLayer=new e(f,{transition:a.lazyFresh.transition,blending:a.blending,ptNPerLayer:a.ptNPerLayer});g.addTo(b),this.initEditor()},data:function(c){this._data=c;var a=this.options,b=a.zIndex||a.child.zIndex;b&&(this._data=d.sortBy(c,b))},updateOptions:function(a){var b=this.kLeafLayer;b.resetOffset(),a&&(this.options=f.deepMerge(this.options,a)),b.hideLayers(),b.updateOptions({transition:a.lazyFresh.transition,blending:a.blending,ptNPerLayer:a.ptNPerLayer}),this.draw()},updateFilter:function(a){if(!a||typeof a!=='function')return;this.options.filter=a,this.draw()},render:function(a){a&&this.data(a),a&&this.kLeafLayer.beginDraw(),this.draw(),a&&this.kLeafLayer.endDraw()},createShapeAttr:function(e,n){if(!this.isable)return;var d=this.options,i=d.lat.bind(d),l=d.lng.bind(d),k=a(d.id.bind(d),e),f=a(d.size,e)||1,m=i(e),j=l(e),h=this._map.latLngToContainerPoint(b.latLng(m,j));return{data:e,Constructor:c.Image,index:n,id:k,attrs:{x:h.x,y:h.y,offset:{x:f/2,y:f/2},image:g(d.sprite||d.child.sprite,e),width:f,height:f,draggable:!1}}},draw:function(){var b=this._data;if(!b)return;if(!this.isable)return;var d,f,c=this.kLeafLayer,e=this.options.filter;for(var a=b.length-1;a>-1;a--){if(d=b[a],e&&!e(d,a))continue;f=this.createShapeAttr(d,a),c.addOrSetShape(f)}c.stopLazyFresh(),c.lazyFresh()},initEventsMap:function(){this._map.on('zoomend',this.draw.bind(this)).on('moveend',this.draw.bind(this))},destroy:function(){this.kLeafLayer.destroy()},initEditor:function(){this.eidtList=[],this.kLeafLayer.initEditor(),this.initEventEditor()},enableEditor:function(){this.kLeafLayer.enableEditor()},disableEditor:function(){this.kLeafLayer.disableEditor()},initEventEditor:function(){var a=this;this.kLeafLayer.on('shape-dragged',function(b){a.onShapeDragged(b.shape)})},onShapeDragged:function(e){var a=e.getClientRect(),f=a.x+a.width/2,g=a.y+a.height/2,h=this._map.containerPointToLatLng(b.point(f,g)),i=this.options,d=i.editor.setLatLng;if(!d)return console.log('请设置options.editor.setLatLng');var c=e.__data;d(h,c),this.kLeafLayer.addOrSetShape(c,null,!0),this.eidtList.push(c),this.fire('data-edited',c)},isEdited:function(){return this.eidtList.length>0},submitEdit:function(){var a=this.options,b=this.eidtList}});i.options={lng:f.getLng,lat:f.getLat,refreshInterval:1,ptNPerLayer:1e3,lazyFresh:{transition:'opacity 0.4s'},size:function(a){return 40},id:function(a,b){return a.id||b},hoverScale:1.2,blending:'lighter',container:'tilePane',sprite:{drawN:1.15,color:{from:'rgba(245,230,0,1)',to:'rgba(205,0,0, 0.6)',easing:'Linear.None.1.7',space:'rgb'}},child:{},editor:{setLatLng:function(b,a){if(!a)return;a.lat=b.lat,a.lng=b.lng}}};var j=b.dmap=b.dmap||{};j.ScatterKonva=i,j.scatterKonva=function(a){return new i(a)},module.exports=i

@@ -1,1 +0,1 @@

function a(c){c=this.options=b.deepMerge(a.options,c),this.initialize(c)}var c=require('./../leaflet');require('./../render/canvas');var b=require('./../core/utils'),d=c.dmap=c.dmap||{},b=d.Utils,e=require('bcore/event'),f=b.EVENTS;require('./../index.css'),require('./scatter_marker.css');var g=c.Marker,a=e.extend(a,{initialize:function(a){this.initDom()},initDom:function(){var b=this.options,a=c.divIcon({className:'circle-node'}),d=this.marker=new g([0,0],{icon:a})},addTo:function(a){if(!a)return;this._map=a,this.marker.addTo(a),this.initDomIcon(),this.initEvents()},initEvents:function(){var a=this,b=this.marker;f.forEach(function(c){b.on(c,function(){a.emit(c,{id:a.id,layer:a,data:a._data})})})},initDomIcon:function(){var a=this.options.shape.html.bind(this);if(!a)return;var b=this.marker,c=this.container=b._icon;a(c)},updateOptions:function(a){this.options=b.deepMerge(this.options,a)},data:function(a){if(!a)return;this._data=a,this.updateData(a)},updateData:function(b){b=b||this._data;var a=this.options,n=a.id,c=this.id=n(b);c!==null&&c!==undefined&&(this.id=c);var l=a.lng,m=a.lat,h=m(b),i=l(b);this.updateCenter(h,i);var d=a.text.bind(a);if(d){var k=d(b,this.textNode);this.updateText(k)}var e=(a.css||a.applyCss).bind(this),f=a.range||[];e&&e(b,this.textNode,f[0],f[1]);var g=a.popup.bind(this);if(g){var j=g(b);this.marker.__popup=j}},updateZIndex:function(){this._zIndex&&(this.container.style.zIndex=this._zIndex)},updateText:function(a){if(a===this._text)return;this._text=a;var b=this.textNode;b&&(b.innerHTML=a)},updateCenter:function(a,b){if(!(a&&b)||a===this._clat&&b===this._clng)return;this._clat=a,this._clng=b,this.marker.setLatLng(c.latLng(a,b))},render:function(a){a&&this.data(a)},destroy:function(){this.marker.off(),this._map.removeLayer(this.marker)}});a.options={lat:b.getLat,lng:b.getLng,id:function(a){return a.id},css:function(c,d){var a=10,b='#fff';return{background:b,left:-a,top:-a,width:2*a,height:2*a,'line-height':2*a+'px','border-radius':2*a}},text:function(a){return a.count},popup:function(a){return},shape:{html:function(b){var a=document.createElement('div');a.className='alarm-circle interactive-circle',b.appendChild(a),this.textNode=a}}},d.ScatterMarker=a,d.scatterMarker=function(b){return new a(b)},module.exports=a
function a(c){c=this.options=b.deepMerge(a.options,c),this.initialize(c)}var c=require('./../leaflet');require('./../render/canvas');var b=require('./../core/utils'),d=c.dmap=c.dmap||{},b=d.Utils,e=require('bcore/event'),f=b.EVENTS;require('./../index.css'),require('./scatter_marker.css');var g=c.Marker,a=e.extend(a,{initialize:function(a){this.initDom()},initDom:function(){var b=this.options,a=c.divIcon({className:'circle-node'}),d=this.marker=new g([0,0],{icon:a})},addTo:function(a){if(!a)return;this._map=a,this.marker.addTo(a),this.initDomIcon(),this.initEvents()},initEvents:function(){var a=this,b=this.marker;f.forEach(function(c){b.on(c,function(){a.emit(c,{id:a.id,layer:a,data:a._data})})})},initDomIcon:function(){var a=this.options.shape.html.bind(this);if(!a)return;var b=this.marker,c=this.container=b._icon;a(c)},updateOptions:function(a){this.options=b.deepMerge(this.options,a)},data:function(a){if(!a)return;this._data=a,this.updateData(a)},updateData:function(c){c=c||this._data;var a=this.options,n=a.id,d=this.id=n(c);d!==null&&d!==undefined&&(this.id=d);var l=a.lng,m=a.lat,j=m(c),i=l(c);this.updateCenter(j,i);var e=a.text.bind(a);if(e){var k=e(c,this.textNode);this.updateText(k)}var f=(a.css||a.applyCss).bind(this),g=a.range||[];f&&f(c,this.textNode,g[0],g[1]);var h=a.popup.bind(this);if(h){var b=h(c);if(this.marker.__popup=b,b===undefined||b===null)return;if(typeof b==='string'||typeof b==='number')return this.marker.bindPopup(b);this.marker.bindPopup(b.text,{offset:[0,10]})}},updateZIndex:function(){this._zIndex&&(this.container.style.zIndex=this._zIndex)},updateText:function(a){if(a===this._text)return;this._text=a;var b=this.textNode;b&&(b.innerHTML=a)},updateCenter:function(a,b){if(!(a&&b)||a===this._clat&&b===this._clng)return;this._clat=a,this._clng=b,this.marker.setLatLng(c.latLng(a,b))},render:function(a){a&&this.data(a)},destroy:function(){this.marker.off(),this._map.removeLayer(this.marker)}});a.options={lat:b.getLat,lng:b.getLng,id:function(a){return a.id},css:function(c,d){var a=10,b='#fff';return{background:b,left:-a,top:-a,width:2*a,height:2*a,'line-height':2*a+'px','border-radius':2*a}},text:function(a){return a.count},popup:function(a){return},shape:{html:function(b){var a=document.createElement('div');a.className='alarm-circle interactive-circle',b.appendChild(a),this.textNode=a}}},d.ScatterMarker=a,d.scatterMarker=function(b){return new a(b)},module.exports=a

@@ -1,1 +0,1 @@

function a(b){b=this.options=c.deepMerge(a.options,b),this.initialize(b)}var b=require('leaflet'),c=require('./../core/utils'),d=require('bcore/event'),e=require('./scatter_marker'),f=b.dmap=b.dmap||{};a.options={lat:c.getLat,lng:c.getLng,filter:function(a,b){return!0},range:[0,1],id:function(a,b){return a.id||b},text:function(a){return a.text},value:function(a){return a.value||a.num||a[0]},zoom:{max:15,min:3},child:{size:function(a,b,c){return 15},shape:{normal:{}}}},a=d.extend(a,{initialize:function(a){this.cache={},this.isable=!0},addTo:function(a){if(!a)return;this._map=a,this.initEventsMap()},initPopUp:function(){var a=this._map},data:function(a){this._data=a},clean:function(){var a=this.cache,c,b;if(!a)return;for(var d in a)c=a[d],b=c.visual,b&&b.destroy&&(b.destroy(),delete c.visual)},updateData:function(a){this.processing(a),this.cleanOld()},updateFilter:function(a){if(typeof a!=='function')return;this.options.filter=a,this.updateMap()},cleanOld:function(){var c=this.versionID,b=this.cache,d,a,f;if(!(c&&b))return;for(var e in b)d=b[e],f=d.versionID,f!==c&&(a=d.visual,a&&(a.off&&a.off(),a.destroy&&a.destroy()),delete b[e])},processing:function(y){var t=this.versionID=Math.random(),j=this._map;if(!j)return;var c=this.options,w=this.getChildOptions(),a,i,u,v,d,b,n=this.isInZoom(),o=this._map.getZoom(),p=c.id,q=c.lat,r=c.lng,s=c.filter,g=c.groups,k,h,l=this.cache,m=this.isable;for(var f in y){if(a=y[f],c.processing&&c.processing(a),i=p(a,f),u=q(a),v=r(a),d=l[i],k=!0,k=s(a,o),h=!0,g){h=!1;for(var f in g){var x=g[f];if(x.filter(a)){h=!0;break}}}if(d?d.data=a:d=l[i]={data:a},d.versionID=t,n&&k&&h&&this.isInView(u,v)&&m){var b=d.visual;b?b.updateData(a):m&&(b=d.visual=new e(w),b.addTo(j),b.render(a),this.initEventsScatter(b))}}this.updateRange()},render:function(a){a&&this.data(a),a=this._data,this.updateData(a)},enable:function(){this.isable=!0},disable:function(){this.isable=!1},isInZoom:function(){var a=this.options.zoom;if(!a)return!0;var c=this._map,d=a.max,e=a.min,b=c.getZoom();return b>d||b<e?!1:!0},isInView:function(b,c,a){a=a||this._map.getBounds();var d=a._northEast.lng,e=a._northEast.lat,f=a._southWest.lng,g=a._southWest.lat;return b<e&&b>g&&c<d&&c>f},each:function(c){var a=this.cache;for(var b in a)c(a[b])},getChildOptions:function(){var a=this.options;return{id:a.child.id||a.id,text:a.child.text||a.text,lat:a.child.lat||a.lat,lng:a.child.lng||a.lng,range:a.child.range||a.range,value:a.child.value||a.value,css:a.child.css||a.css,popup:a.child.popup||a.popup}},updateOptions:function(a){a=this.options=c.deepMerge(this.options,a);var b=this.getChildOptions();this.each(function(a){a.visual&&a.visual.updateOptions(b)}),this.draw()},draw:function(){var f=this.options,g=this.cache,d,a,l,h,b,j=f.lng,k=f.lat,c,m,n=f.filter,o=this._map.getZoom(),p,q=this.isInZoom(),t=f.groups;if(!q)return this.clean();if(!g)return;if(!this.isable)return;var s=this.getChildOptions(),r=this._map;for(var i in g)d=g[i],b=d.data,l=k(b),h=j(b),p=this.isInView(l,h),c=!0,c=n(b,o),m=!0,c=c&&m,a=d.visual,p&&c?a?(a.updateData(b),a.updateZIndex()):(a=d.visual=new e(s),a.addTo(r),a.render(b),this.initEventsScatter(a)):a&&(a.off&&a.off(),a.destroy&&a.destroy(),delete d.visual)},updateMap:function(){this.draw()},updateRange:function(){var c=this.cache,d=this.ranges=this.ranges||{},e=this.options.value,a=d.value=[];for(var f in c){var g=c[f].data,b=e(g);a[0]||(a=[b,b]),b<a[0]&&(a[0]=b),b>a[1]&&(a[1]=b)}},initEventsMap:function(){this._map.on('moveend',this.updateMap.bind(this))},initEventsScatter:function(b){var a=this;b.on('click',function(b){console.log(b),a.emit('click-scatter',b)})},initEvents:function(){},destroy:function(){this.clean(),this.cache={}}}),f.ScatterMarkers=a,f.scatterMarkers=function(b){return new a(b)},module.exports=a
function a(b){b=this.options=c.deepMerge(a.options,b),this.initialize(b)}var b=require('leaflet'),c=require('./../core/utils'),d=c.EVENTS,e=require('bcore/event'),f=require('./scatter_marker'),g=b.dmap=b.dmap||{};a.options={lat:c.getLat,lng:c.getLng,filter:function(a,b){return!0},range:[0,1],id:function(a,b){return a.id||b},text:function(a){return a.text},value:function(a){return a.value||a.num||a[0]},zoom:{max:15,min:3},child:{size:function(a,b,c){return 15},shape:{normal:{}}}},a=e.extend(a,{initialize:function(a){this.cache={},this.isable=!0},addTo:function(a){if(!a)return;this._map=a,this.initEventsMap(),this.initPopUp()},initPopUp:function(){var a=this._map;a||(a._popup=b.popup('...'))},data:function(a){this._data=a},clean:function(){var a=this.cache,c,b;if(!a)return;for(var d in a)c=a[d],b=c.visual,b&&b.destroy&&(b.destroy(),delete c.visual)},updateData:function(a){this.processing(a),this.cleanOld()},updateFilter:function(a){if(typeof a!=='function')return;this.options.filter=a,this.updateMap()},cleanOld:function(){var c=this.versionID,b=this.cache,d,a,f;if(!(c&&b))return;for(var e in b)d=b[e],f=d.versionID,f!==c&&(a=d.visual,a&&(a.off&&a.off(),a.destroy&&a.destroy()),delete b[e])},processing:function(y){var t=this.versionID=Math.random(),j=this._map;if(!j)return;var c=this.options,w=this.getChildOptions(),a,i,u,v,d,b,n=this.isInZoom(),o=this._map.getZoom(),p=c.id,q=c.lat,r=c.lng,s=c.filter,g=c.groups,k,h,l=this.cache,m=this.isable;for(var e in y){if(a=y[e],c.processing&&c.processing(a),i=p(a,e),u=q(a),v=r(a),d=l[i],k=!0,k=s(a,o),h=!0,g){h=!1;for(var e in g){var x=g[e];if(x.filter(a)){h=!0;break}}}if(d?d.data=a:d=l[i]={data:a},d.versionID=t,n&&k&&h&&this.isInView(u,v)&&m){var b=d.visual;b?b.updateData(a):m&&(b=d.visual=new f(w),b.addTo(j),b.render(a),this.initEventsScatter(b))}}this.updateRange()},render:function(a){a&&this.data(a),a=this._data,this.updateData(a)},enable:function(){this.isable=!0},disable:function(){this.isable=!1},isInZoom:function(){var a=this.options.zoom;if(!a)return!0;var c=this._map,d=a.max,e=a.min,b=c.getZoom();return b>d||b<e?!1:!0},isInView:function(b,c,a){a=a||this._map.getBounds();var d=a._northEast.lng,e=a._northEast.lat,f=a._southWest.lng,g=a._southWest.lat;return b<e&&b>g&&c<d&&c>f},each:function(c){var a=this.cache;for(var b in a)c(a[b])},getChildOptions:function(){var a=this.options;return{id:a.child.id||a.id,text:a.child.text||a.text,lat:a.child.lat||a.lat,lng:a.child.lng||a.lng,range:a.child.range||a.range,value:a.child.value||a.value,css:a.child.css||a.css,popup:a.child.popup||a.popup}},updateOptions:function(a){a=this.options=c.deepMerge(this.options,a);var b=this.getChildOptions();this.each(function(a){a.visual&&a.visual.updateOptions(b)}),this.draw()},draw:function(){var e=this.options,g=this.cache,d,a,l,h,b,j=e.lng,k=e.lat,c,m,n=e.filter,o=this._map.getZoom(),p,q=this.isInZoom(),t=e.groups;if(!q)return this.clean();if(!g)return;if(!this.isable)return;var s=this.getChildOptions(),r=this._map;for(var i in g)d=g[i],b=d.data,l=k(b),h=j(b),p=this.isInView(l,h),c=!0,c=n(b,o),m=!0,c=c&&m,a=d.visual,p&&c?a?(a.updateData(b),a.updateZIndex()):(a=d.visual=new f(s),a.addTo(r),a.render(b),this.initEventsScatter(a)):a&&(a.off&&a.off(),a.destroy&&a.destroy(),delete d.visual)},updateMap:function(){this.draw()},updateRange:function(){var c=this.cache,d=this.ranges=this.ranges||{},e=this.options.value,a=d.value=[];for(var f in c){var g=c[f].data,b=e(g);a[0]||(a=[b,b]),b<a[0]&&(a[0]=b),b>a[1]&&(a[1]=b)}},initEventsMap:function(){this._map.on('moveend',this.updateMap.bind(this))},initEventsScatter:function(a){var b=this;d.forEach(function(c){a.on(c,function(a){b.emit('child-'+c,a)})}),a.on('click',function(a){console.log(a)})},initEvents:function(){},destroy:function(){this.clean(),this.cache={}}}),g.ScatterMarkers=a,g.scatterMarkers=function(b){return new a(b)},module.exports=a

@@ -1,1 +0,1 @@

function a(a){this.initialize(a)}var b=require('bcore/event'),c=require('./../core/utils'),d=require('./../render/leaflet_layer_konva'),e=require('konva'),f=require('./../leaflet'),g=require('lodash'),h=c.fireEvent,i=c.getValue;a.options={ptNPerLayer:2e3,lazyFresh:{transition:'opacity 0.4s'},blending:'lighter',lng:c.getLng,lat:c.getLat,id:function(a,b){return a.id||b},radius:10,angle:10,rotation:0,stroke:'transparent',strokeWidth:0,fill:'rgba(0,190,190,0.2)',hoverScale:1.2,zIndex:function(a){return-a.value}},a=b.extend(a,{addTo:function(a){this._map=a,this.initCanvas(),this.initEventsMap(),this.initEventsShapes()},initialize:function(b){b=this.options=c.deepMerge(a.options,b),this.resetVariables()},resetVariables:function(){this.isable=!0},disable:function(){this.isable=!1,this.kLeafLayer.disable()},enable:function(){this.isable=!0,this.kLeafLayer.enable()},initCanvas:function(){var b=this._map,a=this.options,c=b.getSize(),f=new e.Stage({container:a.container,width:c.x,height:c.y}),g=this.kLeafLayer=new d(f,{transition:a.lazyFresh.transition,blending:a.blending,ptNPerLayer:a.ptNPerLayer});g.addTo(b)},data:function(c){this._data=c;var a=this.options,b=a.zIndex||a.child.zIndex;b&&(this._data=g.sortBy(c,b))},createShapeAttr:function(b,g){if(!this.isable)return;var a=this.options,c=this._map.getZoom(),h=i(a.lat,b),j=i(a.lng,b),k=i(a.id.bind(a),b,g),l=i(a.radius,b,c)||1,m=i(a.angle,b,c)||1,n=i(a.rotation,b,c),o=i(a.fill,b,c),p=i(a.stroke,b,c),q=i(a.strokeWidth,b,c),d=this._map.latLngToContainerPoint(f.latLng(h,j));return{data:b,Constructor:e.Wedge,index:g,id:k,attrs:{x:d.x,y:d.y,radius:l,rotation:n,angle:m,stroke:p,strokeWidth:q,fill:o}}},draw:function(){var b=this._data;if(!b)return;if(!this.isable)return;var d,f,c=this.kLeafLayer,e=this.options.filter;for(var a=b.length-1;a>-1;a--){if(d=b[a],e&&!e(d,a))continue;f=this.createShapeAttr(d,a),c.addOrSetShape(f)}c.stopLazyFresh(),c.lazyFresh()},render:function(a){a&&this.data(a),a&&this.kLeafLayer.beginDraw(),this.draw(),a&&this.kLeafLayer.endDraw()},initEventsMap:function(){this._map.on('zoomend',this.draw.bind(this)).on('moveend',this.draw.bind(this))},onMouseDown:function(g){var b=this.options,c=this._map,d=g.target,e=d.__data,a=b.popup;if(a&&(a=a.bind(b)),a||(a=b.child.popup,a&&(a=a.bind(b.child))),!a)return;popupText=a(e),setTimeout(function(){var a=e.getClientRect(),d=a.x+a.width/2,g=a.y+a.height/2,b=c.containerPointToLatLng(f.point(d,g));c.openPopup(popupText,f.latLng(b.lat,b.lng))}.bind(this)),this.kLeafLayer.disableMapEvents()},initEventsShapes:function(){var d=this,b=this.options.hoverScale||1,a,c=this.kLeafLayer.onKonva('mouseover touchstart',function(c){a=c.target,a.setAttrs({scale:{x:b,y:b}}),a.parent.draw()}).onKonva('mouseout',function(b){a=b.target,a.setAttrs({scale:{x:1,y:1}}),a.parent.draw()}).onKonva('mouseout mouseup touchend',function(a){setTimeout(function(){c.enableMapEvents()})}).onKonva('mousedown touchstart',this.onMouseDown.bind(this)),e=['mouseout','mousedown','mouseover','mouseout','touchstart','touchend','touchup'];e.forEach(function(a){c.onKonva(a,function(b){h(a,b,d)})})}}),module.exports=a
function a(a){this.initialize(a)}var b=require('bcore/event'),c=require('./../core/utils'),d=require('./../render/leaflet_layer_konva'),e=require('konva'),f=require('./../leaflet'),g=require('lodash'),h=c.fireEvent,i=c.getValue;a.options={ptNPerLayer:2e3,lazyFresh:{transition:'opacity 0.4s'},blending:'lighter',lng:c.getLng,lat:c.getLat,id:function(a,b){return a.id||b},radius:10,angle:10,rotation:0,stroke:'transparent',strokeWidth:0,fill:'rgba(0,190,190,0.2)',hoverScale:1.2,zIndex:function(a){return-a.value}},a=b.extend(a,{addTo:function(a){this._map=a,this.initCanvas(),this.initEventsMap(),this.initEventsShapes()},initialize:function(b){b=this.options=c.deepMerge(a.options,b),this.resetVariables()},resetVariables:function(){this.isable=!0},disable:function(){this.isable=!1,this.kLeafLayer.disable()},enable:function(){this.isable=!0,this.kLeafLayer.enable()},initCanvas:function(){var b=this._map,a=this.options,c=b.getSize(),f=new e.Stage({container:a.container,width:c.x,height:c.y}),g=this.kLeafLayer=new d(f,{transition:a.lazyFresh.transition,blending:a.blending,ptNPerLayer:a.ptNPerLayer});g.addTo(b)},data:function(c){this._data=c;var a=this.options,b=a.zIndex||a.child.zIndex;b&&(this._data=g.sortBy(c,b))},createShapeAttr:function(b,g){if(!this.isable)return;var a=this.options,c=this._map.getZoom(),h=i(a.lat,b),j=i(a.lng,b),k=i(a.id.bind(a),b,g),l=i(a.radius,b,c)||1,m=i(a.angle,b,c)||1,n=i(a.rotation,b,c),o=i(a.fill,b,c),p=i(a.stroke,b,c),q=i(a.strokeWidth,b,c),d=this._map.latLngToContainerPoint(f.latLng(h,j));return{data:b,Constructor:e.Wedge,index:g,id:k,attrs:{x:d.x,y:d.y,radius:l,rotation:n,angle:m,stroke:p,strokeWidth:q,fill:o}}},draw:function(){var b=this._data;if(!b)return;if(!this.isable)return;var d,f,c=this.kLeafLayer,e=this.options.filter;for(var a=b.length-1;a>-1;a--){if(d=b[a],e&&!e(d,a))continue;f=this.createShapeAttr(d,a),c.addOrSetShape(f)}c.stopLazyFresh(),c.lazyFresh()},render:function(a){a&&this.data(a),a&&this.kLeafLayer.beginDraw(),this.draw(),a&&this.kLeafLayer.endDraw()},initEventsMap:function(){this._map.on('zoomend',this.draw.bind(this)).on('moveend',this.draw.bind(this))},onMouseDown:function(g){var b=this.options,c=this._map,d=g.target,e=d.__data,a=b.popup;if(a&&(a=a.bind(b)),a||(a=b.child.popup,a&&(a=a.bind(b.child))),!a)return;popupText=a(e),setTimeout(function(){var a=d.getClientRect(),e=a.x+a.width/2,g=a.y+a.height/2,b=c.containerPointToLatLng(f.point(e,g));c.openPopup(popupText,f.latLng(b.lat,b.lng))}.bind(this)),this.kLeafLayer.disableMapEvents()},initEventsShapes:function(){var d=this,b=this.options.hoverScale||1,a,c=this.kLeafLayer.onKonva('mouseover touchstart',function(c){a=c.target,a.setAttrs({scale:{x:b,y:b}}),a.parent.draw()}).onKonva('mouseout',function(b){a=b.target,a.setAttrs({scale:{x:1,y:1}}),a.parent.draw()}).onKonva('mouseout mouseup touchend',function(a){setTimeout(function(){c.enableMapEvents()})}).onKonva('mousedown touchstart',this.onMouseDown.bind(this)),e=['mouseout','mousedown','mouseover','mouseout','touchstart','touchend','touchup'];e.forEach(function(a){c.onKonva(a,function(b){h(a,b,d)})})}}),module.exports=a

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

"description": "2d map visualization lib",
"version": "0.0.79",
"version": "0.0.81",
"scripts": {

@@ -24,4 +24,4 @@ "test": "mocha -r jscoverage test"

"keyanim": "0.0.2",
"konva": "0.12.2",
"leaflet": "0.7.3",
"konva": "0.12.4",
"leaflet": "^0.7.7",
"lodash": "3.10.0",

@@ -28,0 +28,0 @@ "ngeohash": "0.6.0",

@@ -1,1 +0,1 @@

function a(b,d){this.options=c.deepMerge(a.options,d),this.stage=b}var b=require('bcore/event'),c=require('bcore/utils'),d=require('./../leaflet');a.options={transition:'opacity 0.4s',blending:'lighter',lazyFresh:!0,ptNPerLayer:1e3},a=b.extend(a,{beginDraw:function(){this.versionID=Math.random()},endDraw:function(){var a=this.shapes;for(var b in a){var c=a[b];c.__versionID!==this.versionID&&(c.destroy(),delete a[b])}this.lazyFresh()},cleanOld:function(){var c=this.versionID,b=this.cache,d,a,f;if(!(c&&b))return;for(var e in b)d=b[e],f=d.versionID,f!==c&&(a=d.visual,a&&(a.off&&a.off(),a.destroy&&a.destroy()),delete b[e])},addTo:function(a){this._map=a,this.resetVariables(),this.initEventsMap()},resetOffset:function(){this.pOffset=this.offset},disable:function(){this.isable=!1,this.stage.content.style.display='none'},enable:function(){this.isable=!0,this.stage.content.style.display='block'},resetVariables:function(){this.isable=!0,this.shapes={},this.layers=[],this.offset={x:0,y:0},this.pOffset={x:0,y:0}},add:function(a){this.stage.add(a)},addOrSetShape:function(a){var g=a.Constructor,h=a.index,e=a.attrs,i=a.data,c=a.id,d=this.shapes;if(d[c])return d[c].setAttrs(e);var b=new g(e),f=this.getOrAddLayer(h);f.getCanvas().getContext('2d').globalCompositeOperation=this.options.blending,f.add(b),d[c]=b,b.__versionID=this.versionID,b.__data=i},getOrAddLayer:function(b){if(!this.isable)return;b=Math.floor(b/this.options.ptNPerLayer);var c=this.layers,a=c[b];return a?a:(a=new Konva.Layer({'z-index':1e4-b}),c[b]=a,this.stage.add(a),a)},fresh:function(){this.layers.forEach(function(a){a.draw()})},lazyFresh:function(){if(!this.isable)return;this.lazyFreshDraw(0)},lazyFreshDraw:function(b){var c=this;b=b||0;var a=this.layers[b];if(!a)return window.requestAnimationFrame(this.lazyFreshDone.bind(this));a.draw(),this.resetPos(a.canvas._canvas,{x:c.offset.x-c.pOffset.x,y:c.offset.y-c.pOffset.y}),a.canvas._canvas.style.opacity=1,a.canvas._canvas.style.transition=this.options.lazyFresh.transition,b++,this.lazyFreshId=window.requestAnimationFrame(function(){this.lazyFreshDraw(b)}.bind(this))},lazyFreshDone:function(){this.resetPos(this.stage.content),this.layers.forEach(function(a){d.DomUtil.setPosition(a.canvas._canvas,{x:0,y:0})})},resetPos:function(b,a){if(a=a||d.DomUtil.getPosition(this._map.getPanes().mapPane),!a)return;d.DomUtil.setPosition(b,{x:-a.x,y:-a.y})},stopLazyFresh:function(){if(!this.lazyFreshId)return;window.cancelAnimationFrame(this.lazyFreshId),this.lazyFreshId=null},hideLayers:function(){this.layers.forEach(function(a){a.canvas._canvas.style.opacity=0})},updateOptions:function(a){this.options=c.deepMerge(this.options,a),this.updateBlending()},updateBlending:function(b){var a=this.options;this.layers.forEach(function(b){b.getCanvas().getContext('2d').globalCompositeOperation=a.blending})},initEventsMap:function(){var a=this,b=this._map;b.on('zoomstart',function(){a.hideLayers(),a.stopLazyFresh()}).on('movestart',function(){a.stopLazyFresh()}).on('moveend',function(){a.pOffset=a.offset,a.offset=d.DomUtil.getPosition(b.getPanes().mapPane)}).on('resize',function(){console.log('resize')})},onKonva:function(a,b){return this.stage.on(a,b),this},enableMapEvents:function(){var a=this.stage.content;d.DomEvent.off(a,'click',d.DomEvent._fakeStop),d.DomEvent.off(a,'mousedown',d.DomEvent.stopPropagation),d.DomEvent.off(a,'mousemove',d.DomEvent.stopPropagation),this._map.dragging.enable()},disableMapEvents:function(){var a=this.stage.content;d.DomEvent.on(a,'click',d.DomEvent._fakeStop),d.DomEvent.on(a,'mousedown',d.DomEvent.stopPropagation),d.DomEvent.on(a,'mousemove',d.DomEvent.stopPropagation),this._map.dragging.disable()},destroy:function(){this.stage.clearCache(),this.stage.clear()}}),a.prototype=c.merge(a.prototype,require('./leaflet_layer_konva.editor')),module.exports=a
function a(b,d){b.content.style.zIndex=1e3,this.options=c.deepMerge(a.options,d),this.stage=b}var b=require('bcore/event'),c=require('bcore/utils'),d=require('./../leaflet');a.options={transition:'opacity 0.4s',blending:'lighter',lazyFresh:!0,ptNPerLayer:1e3},a=b.extend(a,{beginDraw:function(){this.versionID=Math.random()},endDraw:function(){var a=this.shapes;for(var b in a){var c=a[b];c.__versionID!==this.versionID&&(c.destroy(),delete a[b])}this.lazyFresh()},cleanOld:function(){var c=this.versionID,b=this.cache,d,a,f;if(!(c&&b))return;for(var e in b)d=b[e],f=d.versionID,f!==c&&(a=d.visual,a&&(a.off&&a.off(),a.destroy&&a.destroy()),delete b[e])},addTo:function(a){this._map=a,this.resetVariables(),this.initEventsMap()},resetOffset:function(){this.pOffset=this.offset},disable:function(){this.isable=!1,this.stage.content.style.display='none'},enable:function(){this.isable=!0,this.stage.content.style.display='block'},resetVariables:function(){this.isable=!0,this.shapes={},this.layers=[],this.offset={x:0,y:0},this.pOffset={x:0,y:0}},add:function(a){this.stage.add(a)},addOrSetShape:function(a){var g=a.Constructor,h=a.index,e=a.attrs,i=a.data,c=a.id,d=this.shapes;if(d[c])return d[c].setAttrs(e);var b=new g(e),f=this.getOrAddLayer(h);f.getCanvas().getContext('2d').globalCompositeOperation=this.options.blending,f.add(b),d[c]=b,b.__versionID=this.versionID,b.__data=i},getOrAddLayer:function(b){if(!this.isable)return;b=Math.floor(b/this.options.ptNPerLayer);var c=this.layers,a=c[b];return a?a:(a=new Konva.Layer({'z-index':1e4-b}),c[b]=a,this.stage.add(a),a)},fresh:function(){this.layers.forEach(function(a){a.draw()})},lazyFresh:function(){if(!this.isable)return;this.lazyFreshDraw(0)},lazyFreshDraw:function(b){var c=this;b=b||0;var a=this.layers[b];if(!a)return window.requestAnimationFrame(this.lazyFreshDone.bind(this));a.draw(),this.resetPos(a.canvas._canvas,{x:c.offset.x-c.pOffset.x,y:c.offset.y-c.pOffset.y}),a.canvas._canvas.style.opacity=1,a.canvas._canvas.style.transition=this.options.lazyFresh.transition,b++,this.lazyFreshId=window.requestAnimationFrame(function(){this.lazyFreshDraw(b)}.bind(this))},lazyFreshDone:function(){this.resetPos(this.stage.content),this.layers.forEach(function(a){d.DomUtil.setPosition(a.canvas._canvas,{x:0,y:0})})},resetPos:function(b,a){if(a=a||d.DomUtil.getPosition(this._map.getPanes().mapPane),!a)return;d.DomUtil.setPosition(b,{x:-a.x,y:-a.y})},stopLazyFresh:function(){if(!this.lazyFreshId)return;window.cancelAnimationFrame(this.lazyFreshId),this.lazyFreshId=null},hideLayers:function(){this.layers.forEach(function(a){a.canvas._canvas.style.opacity=0})},updateOptions:function(a){this.options=c.deepMerge(this.options,a),this.updateBlending()},updateBlending:function(b){var a=this.options;this.layers.forEach(function(b){b.getCanvas().getContext('2d').globalCompositeOperation=a.blending})},initEventsMap:function(){var a=this,b=this._map;b.on('zoomstart',function(){a.hideLayers(),a.stopLazyFresh()}).on('movestart',function(){a.stopLazyFresh()}).on('moveend',function(){a.pOffset=a.offset,a.offset=d.DomUtil.getPosition(b.getPanes().mapPane)}).on('resize',function(){console.log('resize')})},onKonva:function(a,b){return this.stage.on(a,b),this},enableMapEvents:function(){var a=this.stage.content;d.DomEvent.off(a,'click',d.DomEvent._fakeStop),d.DomEvent.off(a,'mousedown',d.DomEvent.stopPropagation),d.DomEvent.off(a,'mousemove',d.DomEvent.stopPropagation),this._map.dragging.enable()},disableMapEvents:function(){var a=this.stage.content;d.DomEvent.on(a,'click',d.DomEvent._fakeStop),d.DomEvent.on(a,'mousedown',d.DomEvent.stopPropagation),d.DomEvent.on(a,'mousemove',d.DomEvent.stopPropagation),this._map.dragging.disable()},destroy:function(){this.stage.clearCache(),this.stage.clear()}}),a.prototype=c.merge(a.prototype,require('./leaflet_layer_konva.editor')),module.exports=a
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