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

@doodle3d/clipper-js

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@doodle3d/clipper-js - npm Package Compare versions

Comparing version 1.0.4 to 1.0.6

4

lib/index.js

@@ -477,3 +477,3 @@ 'use strict';

return new _clipperLib2.default.IntPoint(x, y);
return { X: x, Y: y };
}

@@ -489,3 +489,3 @@

return new _clipperLib2.default.IntPoint(Math.round(X), Math.round(Y));
return { X: Math.round(X), Y: Math.round(Y) };
}

@@ -492,0 +492,0 @@

@@ -477,3 +477,3 @@ 'use strict';

return new _clipperLib2.default.IntPoint(x, y);
return { X: x, Y: y };
}

@@ -489,3 +489,3 @@

return new _clipperLib2.default.IntPoint(Math.round(X), Math.round(Y));
return { X: Math.round(X), Y: Math.round(Y) };
}

@@ -492,0 +492,0 @@

{
"name": "@doodle3d/clipper-js",
"version": "1.0.4",
"version": "1.0.6",
"description": "Clipper-lib abstraction layer (simplified API)",

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

@@ -310,3 +310,3 @@ import ClipperLib from 'clipper-lib';

function vectorToCapital({ x, y }) {
return new ClipperLib.IntPoint(x, y);
return { X: x, Y: y };
}

@@ -319,3 +319,3 @@

function roundVector({ X, Y }) {
return new ClipperLib.IntPoint(Math.round(X), Math.round(Y));
return { X: Math.round(X), Y: Math.round(Y) };
}

@@ -322,0 +322,0 @@

Sorry, the diff of this file is not supported yet

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