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

dmap

Package Overview
Dependencies
Maintainers
5
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dmap - npm Package Compare versions

Comparing version 0.1.68 to 0.1.69

2

layer/flow_field/flow_field.js

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

'use strict';const e=require('three');const a=require('bcore/event');const b=require('./../../core/utils');const c=require('./flow_field_buffer');const f=require('../../demo/data/winds.js');const d={};class g extends a{constructor(a){super(),this.options=b.deepMerge(d,a)}addTo(a){if(!a)return console.warn('map is necessary...');this.map=a,this.three3D=a.three3D,this.projection=a.projection}setData(a){if(!a)return;this._data=a}_parsePtString(a){if(typeof a==='string'&&a.indexOf(',')!==-1){a=a.split(',');let b=+a[1]||0;let c=+a[0]||0;return{lat:b,lng:c}}return a}render(){let a=this.ffBuffer=new c({});a.addTo(this.map),console.log(this.three3D)}loop(){window.requestAnimationFrame(this.loop.bind(this))}updateOptions(){}remove(){}}module.exports=g
'use strict';const e=require('three');const a=require('bcore/event');const b=require('./../../core/utils');const c=require('./flow_field_buffer');const d={};class f extends a{constructor(a){super(),this.options=b.deepMerge(d,a)}addTo(a){if(!a)return console.warn('map is necessary...');this.map=a,this.three3D=a.three3D,this.projection=a.projection}setData(a){if(!a)return;this._data=a}_parsePtString(a){if(typeof a==='string'&&a.indexOf(',')!==-1){a=a.split(',');let b=+a[1]||0;let c=+a[0]||0;return{lat:b,lng:c}}return a}render(){let a=this.ffBuffer=new c({});a.addTo(this.map),console.log(this.three3D)}loop(){window.requestAnimationFrame(this.loop.bind(this))}updateOptions(){}remove(){}}module.exports=f

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

"description": "3d map visualization lib",
"version": "0.1.68",
"version": "0.1.69",
"scripts": {

@@ -8,0 +8,0 @@ "test": "mocha -r jscoverage test"

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