Skip to content

Commit

Permalink
update for globe
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum committed Oct 2, 2024
1 parent 4add8af commit bc91084
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/data/segment.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, test } from 'vitest';

Check failure on line 1 in src/data/segment.test.ts

View workflow job for this annotation

GitHub Actions / Code Hygiene

There should be no space after '{'

Check failure on line 1 in src/data/segment.test.ts

View workflow job for this annotation

GitHub Actions / Code Hygiene

There should be no space before '}'
import {FillLayoutArray, TriangleIndexArray} from './array_types.g';
import {SegmentVector} from './segment';

Expand Down
1 change: 1 addition & 0 deletions src/geo/projection/globe_covering_tiles.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, test } from 'vitest';

Check failure on line 1 in src/geo/projection/globe_covering_tiles.test.ts

View workflow job for this annotation

GitHub Actions / Code Hygiene

There should be no space after '{'

Check failure on line 1 in src/geo/projection/globe_covering_tiles.test.ts

View workflow job for this annotation

GitHub Actions / Code Hygiene

There should be no space before '}'
import {Aabb} from '../../util/primitives';
import {expectToBeCloseToArray} from '../../util/test/util';
import {getTileAABB} from './globe_covering_tiles';
Expand Down
1 change: 1 addition & 0 deletions src/geo/projection/globe_transform.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {angularCoordinatesRadiansToVector, mercatorCoordinatesToAngularCoordinat
import {expectToBeCloseToArray, getGlobeProjectionMock, sleep} from '../../util/test/util';
import {MercatorCoordinate} from '../mercator_coordinate';
import {tileCoordinatesToLocation} from './mercator_utils';
import { describe, expect, test } from 'vitest';

Check failure on line 11 in src/geo/projection/globe_transform.test.ts

View workflow job for this annotation

GitHub Actions / Code Hygiene

There should be no space after '{'

Check failure on line 11 in src/geo/projection/globe_transform.test.ts

View workflow job for this annotation

GitHub Actions / Code Hygiene

There should be no space before '}'

function testPlaneAgainstLngLat(lngDegrees: number, latDegrees: number, plane: Array<number>) {
const lat = latDegrees / 180.0 * Math.PI;
Expand Down
1 change: 1 addition & 0 deletions src/geo/projection/globe_utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, test } from 'vitest';

Check failure on line 1 in src/geo/projection/globe_utils.test.ts

View workflow job for this annotation

GitHub Actions / Code Hygiene

There should be no space after '{'

Check failure on line 1 in src/geo/projection/globe_utils.test.ts

View workflow job for this annotation

GitHub Actions / Code Hygiene

There should be no space before '}'
import {LngLat} from '../lng_lat';
import {getGlobeCircumferencePixels, getZoomAdjustment, globeDistanceOfLocationsPixels} from './globe_utils';

Expand Down
1 change: 1 addition & 0 deletions src/geo/transform_helper.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, test } from 'vitest';
import {LngLat} from './lng_lat';
import {LngLatBounds} from './lng_lat_bounds';
import {scaleZoom, TransformHelper, zoomScale} from './transform_helper';
Expand Down
1 change: 1 addition & 0 deletions src/render/fill_large_mesh_arrays.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {FillLayoutArray, LineIndexArray, TriangleIndexArray} from '../data/array
import {SegmentVector} from '../data/segment';
import {fillLargeMeshArrays} from './fill_large_mesh_arrays';
import {SimpleMesh, getGridMesh, getGridMeshRandom} from '../../test/unit/lib/mesh_utils';
import { describe, expect, test } from 'vitest';

describe('fillArrays', () => {
test('Mesh comparison works', () => {
Expand Down
1 change: 1 addition & 0 deletions src/render/subdivision.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Point from '@mapbox/point-geometry';
import {EXTENT} from '../data/extent';
import {scanlineTriangulateVertexRing, subdividePolygon, subdivideVertexLine} from './subdivision';
import {CanonicalTileID} from '../source/tile_id';
import { describe, expect, test } from 'vitest';

/**
* With this granularity, all geometry should be subdivided along axes divisible by 4.
Expand Down
1 change: 1 addition & 0 deletions src/style/sky.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {Sky} from './sky';
import {latest as styleSpec, SkySpecification} from '@maplibre/maplibre-gl-style-spec';
import {EvaluationParameters} from './evaluation_parameters';
import {TransitionParameters} from './properties';
import { describe, expect, test, vi } from 'vitest';

const spec = styleSpec.sky;

Expand Down

0 comments on commit bc91084

Please sign in to comment.