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

aframe-globe-component

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aframe-globe-component - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

8

index.js

@@ -83,3 +83,4 @@ /* global AFRAME */

polygonStrokeColor: { parse: parseAccessor, default: null },
polygonAltitude: { parse: parseAccessor, default: 0.1 },
polygonAltitude: { parse: parseAccessor, default: 0.01 },
polygonCapCurvatureResolution: { parse: parseAccessor, default: 10 },
polygonsTransitionDuration: { type: 'number', default: 1000 },

@@ -105,2 +106,3 @@ pathsData: { parse: parseJson, default: [] },

hexMargin: { parse: parseAccessor, default: 0.2 },
hexTopCurvatureResolution: { type: 'number', default: 10 },
hexTopColor: { parse: parseAccessor, default: function () { return '#ffffaa'; } },

@@ -117,2 +119,3 @@ hexSideColor: { parse: parseAccessor, default: function () { return '#ffffaa'; } },

hexPolygonMargin: { parse: parseAccessor, default: 0.2 },
hexPolygonCurvatureResolution: { parse: parseAccessor, default: 10 },
hexPolygonsTransitionDuration: { type: 'number', default: 0 },

@@ -261,2 +264,3 @@ labelsData: { parse: parseJson, default: [] },

'polygonAltitude',
'polygonCapCurvatureResolution',
'polygonsTransitionDuration',

@@ -282,2 +286,3 @@ 'pathsData',

'hexMargin',
'hexTopCurvatureResolution',
'hexTopColor',

@@ -294,2 +299,3 @@ 'hexSideColor',

'hexPolygonMargin',
'hexPolygonCurvatureResolution',
'hexPolygonsTransitionDuration',

@@ -296,0 +302,0 @@ 'labelsData',

46

package.json
{
"name": "aframe-globe-component",
"version": "1.2.1",
"version": "1.3.0",
"description": "A 3D Globe component for A-Frame.",

@@ -49,24 +49,24 @@ "main": "index.js",

"accessor-fn": "^1.3.0",
"three-globe": "^2.7.0"
"three-globe": "^2.8.0"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-decorators": "^7.8.3",
"@babel/plugin-proposal-do-expressions": "^7.8.3",
"@babel/plugin-proposal-export-default-from": "^7.8.3",
"@babel/plugin-proposal-export-namespace-from": "^7.8.3",
"@babel/plugin-proposal-function-bind": "^7.8.3",
"@babel/plugin-proposal-function-sent": "^7.8.3",
"@babel/plugin-proposal-json-strings": "^7.8.3",
"@babel/plugin-proposal-logical-assignment-operators": "^7.8.3",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
"@babel/plugin-proposal-numeric-separator": "^7.8.3",
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@babel/plugin-proposal-pipeline-operator": "^7.8.3",
"@babel/plugin-proposal-throw-expressions": "^7.8.3",
"@babel/cli": "^7.10.5",
"@babel/core": "^7.10.5",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-decorators": "^7.10.5",
"@babel/plugin-proposal-do-expressions": "^7.10.4",
"@babel/plugin-proposal-export-default-from": "^7.10.4",
"@babel/plugin-proposal-export-namespace-from": "^7.10.4",
"@babel/plugin-proposal-function-bind": "^7.10.5",
"@babel/plugin-proposal-function-sent": "^7.10.4",
"@babel/plugin-proposal-json-strings": "^7.10.4",
"@babel/plugin-proposal-logical-assignment-operators": "^7.10.4",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
"@babel/plugin-proposal-numeric-separator": "^7.10.4",
"@babel/plugin-proposal-optional-chaining": "^7.10.4",
"@babel/plugin-proposal-pipeline-operator": "^7.10.5",
"@babel/plugin-proposal-throw-expressions": "^7.10.4",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-import-meta": "^7.8.3",
"@babel/preset-env": "^7.9.5",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"aframe": "*",

@@ -96,7 +96,7 @@ "babel-loader": "^8.1.0",

"snazzy": "^8.0.0",
"superagent": "^5.2.2",
"superagent": "^5.3.1",
"three": "*",
"webpack": "^4.42.1",
"webpack": "^4.43.0",
"webpack-cli": "*",
"webpack-dev-server": "^3.10.3",
"webpack-dev-server": "^3.11.0",
"webpack-sources": "1.4.3"

@@ -103,0 +103,0 @@ },

@@ -70,3 +70,4 @@ ## aframe-globe-component

| polygon-stroke-color | Polygon object accessor function or attribute for the color to stroke the polygon perimeter. A falsy value will disable the stroking. | - |
| polygon-altitude | Polygon object accessor function, attribute or a numeric constant for the polygon cone's altitude in terms of globe radius units (`0` = 0 altitude (flat polygon), `1` = globe radius). | 0.1 |
| polygon-altitude | Polygon object accessor function, attribute or a numeric constant for the polygon cone's altitude in terms of globe radius units (`0` = 0 altitude (flat polygon), `1` = globe radius). | 0.01 |
| polygon-cap-curvature-resolution | Polygon object accessor function, attribute or a numeric constant for the resolution (in angular degrees) of the cap surface curvature. The finer the resolution, the more the polygon is fragmented into smaller faces to approximate the spheric surface, at the cost of performance. | 10 |
| polygons-transition-duration | Getter/setter for duration (ms) of the transition to animate polygon altitude changes. A value of `0` will size the cone immediately to their final altitude. New polygons are animated by rising them from the ground up. | 1000 |

@@ -103,2 +104,3 @@

| hex-altitude | The altitude of each hexagon, in terms of globe radius units (`0` = 0 altitude (flat hexagon), `1` = globe radius). This property also supports using an accessor method based on the hexagon's aggregated data, following the syntax: `hex-altitude(({ points, sumWeight, center: { lat, lng }}) => ...)`. This method should return a numeric constant. | `({ sumWeight }) => sumWeight * 0.01` |
| hex-top-curvature-resolution | The resolution (in angular degrees) of the top surface curvature. The finer the resolution, the more the top area is fragmented into smaller faces to approximate the spheric surface, at the cost of performance. | 10 |
| hex-top-color | Accessor method for each hexagon's top color. The method should follow the signature: `hexTopColor(({ points, sumWeight, center: { lat, lng }}) => ...)` and return a color string. | `() => '#ffffaa'` |

@@ -119,2 +121,3 @@ | hex-side-color | Accessor method for each hexagon's side color. The method should follow the signature: `hexSideColor(({ points, sumWeight, center: { lat, lng }}) => ...)` and return a color string. | `() => '#ffffaa'` |

| hex-polygon-margin | Hexed polygon object accessor function, attribute or a numeric constant for the radial margin of each hexagon. Margins above `0` will create gaps between adjacent hexagons within a polygon. The margin is specified in terms of fraction of the hexagon's surface diameter. Values below `0` or above `1` are disadvised. | 0.2 |
| hex-polygon-curvature-resolution | Hexed polygon object accessor function, attribute or a numeric constant for the resolution (in angular degrees) of each hexed polygon surface curvature. The finer the resolution, the more the polygon hexes are fragmented into smaller faces to approximate the spheric surface, at the cost of performance. | 10 |
| hex-polygons-transition-duration | Getter/setter for duration (ms) of the transition to animate hexed polygons altitude and margin changes. A value of `0` will move the hexagons immediately to their final state. New hexed polygons are animated by sizing each hexagon from `0` radius. | 0 |

@@ -121,0 +124,0 @@

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

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