aframe-globe-component
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -84,3 +84,3 @@ /* global AFRAME */ | ||
polygonAltitude: { parse: parseAccessor, default: 0.01 }, | ||
polygonCapCurvatureResolution: { parse: parseAccessor, default: 10 }, | ||
polygonCapCurvatureResolution: { parse: parseAccessor, default: 5 }, | ||
polygonsTransitionDuration: { type: 'number', default: 1000 }, | ||
@@ -106,3 +106,3 @@ pathsData: { parse: parseJson, default: [] }, | ||
hexMargin: { parse: parseAccessor, default: 0.2 }, | ||
hexTopCurvatureResolution: { type: 'number', default: 10 }, | ||
hexTopCurvatureResolution: { type: 'number', default: 5 }, | ||
hexTopColor: { parse: parseAccessor, default: function () { return '#ffffaa'; } }, | ||
@@ -119,3 +119,3 @@ hexSideColor: { parse: parseAccessor, default: function () { return '#ffffaa'; } }, | ||
hexPolygonMargin: { parse: parseAccessor, default: 0.2 }, | ||
hexPolygonCurvatureResolution: { parse: parseAccessor, default: 10 }, | ||
hexPolygonCurvatureResolution: { parse: parseAccessor, default: 5 }, | ||
hexPolygonsTransitionDuration: { type: 'number', default: 0 }, | ||
@@ -122,0 +122,0 @@ labelsData: { parse: parseJson, default: [] }, |
{ | ||
"name": "aframe-globe-component", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A 3D Globe component for A-Frame.", | ||
@@ -49,3 +49,3 @@ "main": "index.js", | ||
"accessor-fn": "^1.3.0", | ||
"three-globe": "^2.8.0" | ||
"three-globe": "^2.8.1" | ||
}, | ||
@@ -52,0 +52,0 @@ "devDependencies": { |
@@ -71,3 +71,3 @@ ## aframe-globe-component | ||
| 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 | | ||
| 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. | 5 | | ||
| 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 | | ||
@@ -104,3 +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-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. | 5 | | ||
| 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'` | | ||
@@ -121,3 +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-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. | 5 | | ||
| 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 | | ||
@@ -124,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8711147
14146
Updatedthree-globe@^2.8.1