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

@anvaka/streamlines

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anvaka/streamlines - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

6

index.js

@@ -56,2 +56,3 @@ /**

options.stepsPerIteration = protoOptions.stepsPerIteration > 0 ? protoOptions.stepsPerIteration : 10;
options.maxTimePerIteration = protoOptions.maxTimePerIteration > 0 ? protoOptions.maxTimePerIteration : 1000;

@@ -93,2 +94,4 @@ var stepsPerIteration = options.stepsPerIteration;

if (disposed) return;
var maxTimePerIteration = options.maxTimePerIteration;
var start = window.performance.now();

@@ -100,2 +103,3 @@ for (var i = 0; i < stepsPerIteration; ++i) {

if (state === STATE_SEED_STREAMLINE) seedStreamline();
if (window.performance.now() - start > maxTimePerIteration) break;

@@ -174,3 +178,3 @@ if (state === STATE_DONE) {

function assertNumber(x, msg) {
if (typeof x !== 'number') throw new Error(msg);
if (typeof x !== 'number' || Number.isNaN(x)) throw new Error(msg);
}

2

package.json
{
"name": "@anvaka/streamlines",
"version": "1.0.2",
"version": "1.1.0",
"description": "Streamlines calculator",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -15,2 +15,5 @@ # streamlines

More advanced example is [wind-map](https://anvaka.github.io/wind-lines/) - visualization of the winds
map with evenly spaced streamlines.
## get it

@@ -17,0 +20,0 @@

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