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

three-conic-polygon-geometry

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

three-conic-polygon-geometry - npm Package Compare versions

Comparing version 1.4.5 to 1.4.6

34

dist/three-conic-polygon-geometry.common.js

@@ -25,2 +25,21 @@ 'use strict';

function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
Object.defineProperty(Constructor, "prototype", {
writable: false
});
return Constructor;
}
function _inherits(subClass, superClass) {

@@ -38,2 +57,5 @@ if (typeof superClass !== "function" && superClass !== null) {

});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) _setPrototypeOf(subClass, superClass);

@@ -251,3 +273,3 @@ }

// earcut triangulation slightly more performing if it's only using the polygon perimeter
var _earcut$flatten = earcut__default['default'].flatten(contour),
var _earcut$flatten = earcut__default["default"].flatten(contour),
vertices = _earcut$flatten.vertices,

@@ -257,7 +279,7 @@ _earcut$flatten$holes = _earcut$flatten.holes,

indices = earcut__default['default'](vertices, holes, 2);
indices = earcut__default["default"](vertices, holes, 2);
} else {
(function () {
// use delaunator
var delaunay = Delaunator__default['default'].from(points);
var delaunay = Delaunator__default["default"].from(points);

@@ -411,3 +433,3 @@ var _loop = function _loop(i, len) {

// turf method is more performing but malfunctions if polygon includes a pole (lat = 90 | -90) or crosses the antimeridian (lng = 180 | -180)
return crossesPoleOrAntimeridian ? d3Geo.geoContains(polygon, pnt) : turfPointInPolygon__default['default'](pnt, polygon);
return crossesPoleOrAntimeridian ? d3Geo.geoContains(polygon, pnt) : turfPointInPolygon__default["default"](pnt, polygon);
}

@@ -497,3 +519,3 @@

return earcut__default['default'].flatten(coords3d);
return earcut__default["default"].flatten(coords3d);
}

@@ -550,3 +572,3 @@

return ConicPolygonBufferGeometry;
return _createClass(ConicPolygonBufferGeometry);
}(THREE.BufferGeometry); //

@@ -553,0 +575,0 @@

2

dist/three-conic-polygon-geometry.d.ts
import { BufferGeometry } from 'three';
type PolygonCoords = number[][];
type PolygonCoords = number[][][];

@@ -5,0 +5,0 @@ type Parameters = {

@@ -15,2 +15,21 @@ import { BufferGeometry, Float32BufferAttribute } from 'three';

function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
Object.defineProperty(Constructor, "prototype", {
writable: false
});
return Constructor;
}
function _inherits(subClass, superClass) {

@@ -28,2 +47,5 @@ if (typeof superClass !== "function" && superClass !== null) {

});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) _setPrototypeOf(subClass, superClass);

@@ -536,3 +558,3 @@ }

return ConicPolygonBufferGeometry;
return _createClass(ConicPolygonBufferGeometry);
}(THREE.BufferGeometry); //

@@ -539,0 +561,0 @@

{
"name": "three-conic-polygon-geometry",
"version": "1.4.5",
"version": "1.4.6",
"description": "ThreeJS geometry for drawing polygons on a sphere",

@@ -45,3 +45,3 @@ "unpkg": "dist/three-conic-polygon-geometry.min.js",

"d3-geo": "1 - 3",
"d3-geo-voronoi": "^1.6",
"d3-geo-voronoi": "^2.0",
"delaunator": "5",

@@ -54,16 +54,16 @@ "earcut": "2"

"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-proposal-object-rest-spread": "^7.14.7",
"@babel/preset-env": "^7.15.0",
"@babel/core": "^7.16.7",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-proposal-object-rest-spread": "^7.16.7",
"@babel/preset-env": "^7.16.7",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.1.2",
"@types/three": ">=0.72.0",
"rimraf": "^3.0.2",
"rollup": "^2.56.3",
"rollup-plugin-dts": "^3.0.2",
"rollup": "^2.62.0",
"rollup-plugin-dts": "^4.1.0",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^4.3.5"
"typescript": "^4.5.4"
}
}
import { BufferGeometry } from 'three';
type PolygonCoords = number[][];
type PolygonCoords = number[][][];

@@ -5,0 +5,0 @@ type Parameters = {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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