Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Aug 3, 2024
1 parent db604f0 commit 8bd1d9c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = getESLintConfig({
{
files: ['modules/**/*.ts', 'modules/**/*.js'],
rules: {
'no-use-before-define': 0,
'import/no-unresolved': 0,
'@typescript-eslint/ban-ts-comment': 0 // We do need our ts-ignores
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This file is derived from the Cesium math library under Apache 2 license
// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md

import {Vector3, Matrix3, Matrix4, Quaternion, NumericArray} from '@math.gl/core';
import {NumericArray} from '@math.gl/types';
import {Vector3, Matrix3, Matrix4, Quaternion} from '@math.gl/core';
import type {BoundingVolume} from './bounding-volume';
import {BoundingSphere} from './bounding-sphere';
import type {Plane} from '../plane';
Expand Down
3 changes: 2 additions & 1 deletion modules/culling/src/lib/perspective-frustum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
// - It has not been fully adapted to math.gl conventions
// - Documentation has not been ported

import {assert, Matrix4, NumericArray, Vector2} from '@math.gl/core';
import {NumericArray} from '@math.gl/types';
import {assert, Matrix4, Vector2} from '@math.gl/core';
import {PerspectiveOffCenterFrustum} from './perspective-off-center-frustum';
import {CullingVolume} from './culling-volume';

Expand Down
2 changes: 1 addition & 1 deletion modules/culling/src/lib/perspective-off-center-frustum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// - It has not been fully adapted to math.gl conventions
// - Documentation has not been ported

import {Vector3, Vector2, Matrix4, assert, NumericArray} from '@math.gl/core';
import {Vector3, Vector2, Matrix4, assert, NumberArray} from '@math.gl/core';
import {CullingVolume} from './culling-volume';
import {Plane} from './plane';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {NumericArray, Vector3, assert, equals as equalsEpsilon} from '@math.gl/core';
import {NumericArray} from '@math.gl/types';
import {Vector3, assert, equals as equalsEpsilon} from '@math.gl/core';

import type {Ellipsoid} from '../ellipsoid';

Expand Down
1 change: 1 addition & 0 deletions modules/web-mercator/src/web-mercator-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export function addMetersToLngLat(lngLatZ: number[], xyz: number[]): number[] {
const [longitude, latitude, z0] = lngLatZ;
const [x, y, z] = xyz;

// eslint-disable-next-line no-shadow
const {unitsPerMeter, unitsPerMeter2} = getDistanceScales({
longitude,
latitude,
Expand Down

0 comments on commit 8bd1d9c

Please sign in to comment.