Socket
Socket
Sign inDemoInstall

@math.gl/geospatial

Package Overview
Dependencies
Maintainers
3
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@math.gl/geospatial - npm Package Compare versions

Comparing version 4.0.0-alpha.1 to 4.0.0-alpha.2

2

dist/ellipsoid/ellipsoid.d.ts

@@ -8,3 +8,3 @@ import { Vector3, Matrix4, NumericArray } from '@math.gl/core';

*/
export default class Ellipsoid {
export declare class Ellipsoid {
/** An Ellipsoid instance initialized to the WGS84 standard. */

@@ -11,0 +11,0 @@ static readonly WGS84: Ellipsoid;

@@ -6,4 +6,4 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

import { fromCartographicToRadians, toCartographicFromRadians } from "../type-utils.js";
import localFrameToFixedFrame from "./helpers/ellipsoid-transform.js";
import scaleToGeodeticSurface from "./helpers/scale-to-geodetic-surface.js";
import { localFrameToFixedFrame } from "./helpers/ellipsoid-transform.js";
import { scaleToGeodeticSurface } from "./helpers/scale-to-geodetic-surface.js";
const scratchVector = new Vector3();

@@ -15,3 +15,3 @@ const scratchNormal = new Vector3();

const scratchCartesian = new Vector3();
export default class Ellipsoid {
export class Ellipsoid {
constructor(x = 0.0, y = 0.0, z = 0.0) {

@@ -18,0 +18,0 @@ _defineProperty(this, "radii", void 0);

import { NumericArray } from '@math.gl/core';
import type Ellipsoid from '../ellipsoid';
export type AxisDirection = 'up' | 'down' | 'north' | 'east' | 'south' | 'west';
export default function localFrameToFixedFrame(ellipsoid: Ellipsoid, firstAxis: AxisDirection, secondAxis: AxisDirection, thirdAxis: AxisDirection, cartesianOrigin: Readonly<NumericArray>, result: number[]): number[];
import type { Ellipsoid } from '../ellipsoid';
export declare type AxisDirection = 'up' | 'down' | 'north' | 'east' | 'south' | 'west';
export declare function localFrameToFixedFrame(ellipsoid: Ellipsoid, firstAxis: AxisDirection, secondAxis: AxisDirection, thirdAxis: AxisDirection, cartesianOrigin: Readonly<NumericArray>, result: number[]): number[];
//# sourceMappingURL=ellipsoid-transform.d.ts.map

@@ -61,3 +61,3 @@ import { Vector3, assert, equals as equalsEpsilon } from '@math.gl/core';

const scratchVector3 = new Vector3();
export default function localFrameToFixedFrame(ellipsoid, firstAxis, secondAxis, thirdAxis, cartesianOrigin, result) {
export function localFrameToFixedFrame(ellipsoid, firstAxis, secondAxis, thirdAxis, cartesianOrigin, result) {
const thirdAxisInferred = VECTOR_PRODUCT_LOCAL_FRAME[firstAxis] && VECTOR_PRODUCT_LOCAL_FRAME[firstAxis][secondAxis];

@@ -64,0 +64,0 @@ assert(thirdAxisInferred && (!thirdAxis || thirdAxis === thirdAxisInferred));

@@ -1,3 +0,3 @@

import type Ellipsoid from '../ellipsoid';
export default function scaleToGeodeticSurface(cartesian: number[], ellipsoid: Ellipsoid, result?: number[]): number[];
import type { Ellipsoid } from '../ellipsoid';
export declare function scaleToGeodeticSurface(cartesian: number[], ellipsoid: Ellipsoid, result?: number[]): number[];
//# sourceMappingURL=scale-to-geodetic-surface.d.ts.map

@@ -5,3 +5,3 @@ import { Vector3, _MathUtils } from '@math.gl/core';

const scaleToGeodeticSurfaceGradient = new Vector3();
export default function scaleToGeodeticSurface(cartesian, ellipsoid, result = []) {
export function scaleToGeodeticSurface(cartesian, ellipsoid, result = []) {
const {

@@ -8,0 +8,0 @@ oneOverRadii,

@@ -1,3 +0,3 @@

export { default as Ellipsoid } from './ellipsoid/ellipsoid';
export { Ellipsoid } from './ellipsoid/ellipsoid';
export { isWGS84 } from './type-utils';
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

export { default as Ellipsoid } from "./ellipsoid/ellipsoid.js";
export { Ellipsoid } from "./ellipsoid/ellipsoid.js";
export { isWGS84 } from "./type-utils.js";
//# sourceMappingURL=index.js.map
import type { NumericArray } from '@math.gl/core';
type LngLatHeightObject = {
declare type LngLatHeightObject = {
longitude: number;

@@ -7,3 +7,3 @@ latitude: number;

};
type XYZObject = {
declare type XYZObject = {
x: number;

@@ -13,3 +13,3 @@ y: number;

};
type Cartographic = LngLatHeightObject | XYZObject | NumericArray;
declare type Cartographic = LngLatHeightObject | XYZObject | NumericArray;
export declare function fromCartographic(cartographic: Readonly<Cartographic>): number[];

@@ -16,0 +16,0 @@ export declare function fromCartographic<NumArrayT>(cartographic: Readonly<Cartographic>, result: NumArrayT, map?: (x: number) => number): NumArrayT;

@@ -9,3 +9,3 @@ {

},
"version": "4.0.0-alpha.1",
"version": "4.0.0-alpha.2",
"keywords": [

@@ -37,6 +37,6 @@ "webgl",

"@babel/runtime": "^7.12.0",
"@math.gl/core": "4.0.0-alpha.1",
"@math.gl/core": "4.0.0-alpha.2",
"gl-matrix": "^3.4.3"
},
"gitHead": "66f872ea615a3ef81431595727cdf58dcadf3670"
"gitHead": "2e693639e3cf898fee8e323c93efdd07be7c2ca7"
}

@@ -13,4 +13,4 @@ // This file is derived from the Cesium math library under Apache 2 license

import type {AxisDirection} from './helpers/ellipsoid-transform';
import localFrameToFixedFrame from './helpers/ellipsoid-transform';
import scaleToGeodeticSurface from './helpers/scale-to-geodetic-surface';
import {localFrameToFixedFrame} from './helpers/ellipsoid-transform';
import {scaleToGeodeticSurface} from './helpers/scale-to-geodetic-surface';

@@ -29,3 +29,3 @@ const scratchVector = new Vector3();

*/
export default class Ellipsoid {
export class Ellipsoid {
/** An Ellipsoid instance initialized to the WGS84 standard. */

@@ -32,0 +32,0 @@ static readonly WGS84: Ellipsoid = new Ellipsoid(WGS84_RADIUS_X, WGS84_RADIUS_Y, WGS84_RADIUS_Z);

import {NumericArray, Vector3, assert, equals as equalsEpsilon} from '@math.gl/core';
import type Ellipsoid from '../ellipsoid';
import type {Ellipsoid} from '../ellipsoid';

@@ -79,3 +79,3 @@ const EPSILON14 = 1e-14;

// eslint-disable-next-line max-statements, max-params, complexity
export default function localFrameToFixedFrame(
export function localFrameToFixedFrame(
ellipsoid: Ellipsoid,

@@ -82,0 +82,0 @@ firstAxis: AxisDirection,

/* eslint-disable */
import {Vector3, _MathUtils} from '@math.gl/core';
import type Ellipsoid from '../ellipsoid';
import type {Ellipsoid} from '../ellipsoid';

@@ -12,3 +12,3 @@ const scratchVector = new Vector3();

// at the center of the ellipsoid, this function returns undefined.
export default function scaleToGeodeticSurface(
export function scaleToGeodeticSurface(
cartesian: number[],

@@ -15,0 +15,0 @@ ellipsoid: Ellipsoid,

@@ -1,2 +0,2 @@

export {default as Ellipsoid} from './ellipsoid/ellipsoid';
export {Ellipsoid} from './ellipsoid/ellipsoid';
export {isWGS84} from './type-utils';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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