Skip to content

Commit

Permalink
Merge fc6d8bf into a9fe9c6
Browse files Browse the repository at this point in the history
  • Loading branch information
Xintong Xia committed Mar 16, 2020
2 parents a9fe9c6 + fc6d8bf commit 9ae4eec
Show file tree
Hide file tree
Showing 21 changed files with 77 additions and 619 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
// This means lint will not find the imported files and generate false warnings
{
// scripts use devDependencies
files: ['**/test/**/*.js', 'scripts/**/*.js'],
files: ['**/test/**/*.js', '**/scripts/**/*.js', '*.config.js', '*.config.local.js'],
rules: {
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0
Expand Down
1 change: 1 addition & 0 deletions examples/babel.config.local.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
const getBabelConfig = require('ocular-dev-tools/config/babel.config');

module.exports = api => {
Expand Down
4 changes: 2 additions & 2 deletions examples/basis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"start-local": "webpack-dev-server --env.local --progress --hot --open"
},
"dependencies": {
"@loaders.gl/basis": "^2.1.0-alpha.1",
"@loaders.gl/core": "^2.1.0-alpha.1"
"@loaders.gl/basis": "^2.1.0-beta.2",
"@loaders.gl/core": "^2.1.0-beta.2"
},
"devDependencies": {
"babel-plugin-inline-import": "^3.0.0",
Expand Down
6 changes: 3 additions & 3 deletions examples/cesium/3d-tiles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"start-local": "webpack-dev-server --env.local --env.esnext --progress --hot --open"
},
"dependencies": {
"@loaders.gl/3d-tiles": "^2.1.0-alpha.1",
"@loaders.gl/core": "^2.1.0-alpha.1",
"@loaders.gl/draco": "^2.1.0-alpha.1",
"@loaders.gl/3d-tiles": "^2.1.0-beta.2",
"@loaders.gl/core": "^2.1.0-beta.2",
"@loaders.gl/draco": "^2.1.0-beta.2",
"@math.gl/culling": "^3.1.2",
"math.gl": "^3.1.2"
},
Expand Down
8 changes: 3 additions & 5 deletions examples/deck.gl/3d-tiles/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
import React, {PureComponent} from 'react';
import {render} from 'react-dom';
import {StaticMap} from 'react-map-gl';

import {lumaStats} from '@luma.gl/core';
import DeckGL from '@deck.gl/react';
import {MapController, FlyToInterpolator} from '@deck.gl/core';
// import {Tile3DLayer} from '@deck.gl/geo-layers';
// TODO bring back to deck.gl
// remove after deck.gl release a new version of tile-3d-layer
import Tile3DLayer from './tile-3d-layer';
import {lumaStats} from '@luma.gl/core';
import {Tile3DLayer} from '@deck.gl/geo-layers';
import {StatsWidget} from '@probe.gl/stats-widget';

// To manage dependencies and bundle size, the app must decide which supporting loaders to bring in
Expand Down
5 changes: 4 additions & 1 deletion examples/deck.gl/3d-tiles/components/control-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ export default class ControlPanel extends PureComponent {
return null;
}

const {description, credits: {attributions}} = this.props.tileset || {};
const {
description,
credits: {attributions}
} = this.props.tileset || {};
if (!attributions || attributions.length === 0 || !description) {
return null;
}
Expand Down
8 changes: 5 additions & 3 deletions examples/deck.gl/3d-tiles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
"@deck.gl/layers": "^8.1.0-beta.3",
"@deck.gl/mesh-layers": "^8.1.0-beta.3",
"@deck.gl/react": "^8.1.0-beta.3",
"@loaders.gl/core": "^2.1.0-alpha.1",
"@loaders.gl/draco": "^2.1.0-alpha.1",
"@loaders.gl/gltf": "^2.1.0-alpha.1",
"@loaders.gl/3d-tiles": "^2.1.0-beta.2",
"@loaders.gl/core": "^2.1.0-beta.2",
"@loaders.gl/draco": "^2.1.0-beta.2",
"@loaders.gl/gltf": "^2.1.0-beta.2",
"@luma.gl/core": "^8.1.0-beta.4",
"@probe.gl/stats-widget": "^3.2.0",
"marked": "^0.7.0",
"probe.gl": "^3.2.0",
Expand Down
282 changes: 0 additions & 282 deletions examples/deck.gl/3d-tiles/tile-3d-layer.js

This file was deleted.

7 changes: 4 additions & 3 deletions examples/deck.gl/gltf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
"@deck.gl/core": "^8.1.0-beta.3",
"@deck.gl/mesh-layers": "^8.1.0-beta.3",
"@deck.gl/react": "^8.1.0-beta.3",
"@loaders.gl/core": "^2.1.0-alpha.1",
"@loaders.gl/gltf": "^2.1.0-alpha.1",
"@loaders.gl/draco": "^2.1.0-alpha.1",
"@loaders.gl/core": "^2.1.0-beta.2",
"@loaders.gl/gltf": "^2.1.0-beta.2",
"@loaders.gl/draco": "^2.1.0-beta.2",
"@luma.gl/constants": "^8.1.0-beta.4",
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react-map-gl": "^5.0.0"
Expand Down
Loading

0 comments on commit 9ae4eec

Please sign in to comment.