chore: fix lint

This commit is contained in:
Ville Brofeldt 2021-08-05 10:34:02 +03:00 committed by Yongjie Zhao
parent f0369fda6e
commit 3d54d19723
6 changed files with 14 additions and 24 deletions

View File

@ -24,8 +24,7 @@ import controlPanel from './controlPanel';
const metadata = new ChartMetadata({ const metadata = new ChartMetadata({
category: t('Map'), category: t('Map'),
credits: ['https://uber.github.io/deck.gl'], credits: ['https://uber.github.io/deck.gl'],
description: description: t('Plot the distance (like flight paths) between origin and destination.'),
t('Plot the distance (like flight paths) between origin and destination.'),
name: t('deck.gl Arc'), name: t('deck.gl Arc'),
thumbnail, thumbnail,
useLegacyApi: true, useLegacyApi: true,

View File

@ -24,8 +24,9 @@ import controlPanel from './controlPanel';
const metadata = new ChartMetadata({ const metadata = new ChartMetadata({
category: t('Map'), category: t('Map'),
credits: ['https://uber.github.io/deck.gl'], credits: ['https://uber.github.io/deck.gl'],
description: description: t(
t('Overlays a hexagonal grid on a map, and aggregates data within the boundary of each cell.'), 'Overlays a hexagonal grid on a map, and aggregates data within the boundary of each cell.',
),
name: t('deck.gl 3D Hexagon'), name: t('deck.gl 3D Hexagon'),
thumbnail, thumbnail,
useLegacyApi: true, useLegacyApi: true,

View File

@ -28,13 +28,7 @@ const metadata = new ChartMetadata({
name: t('deck.gl Polygon'), name: t('deck.gl Polygon'),
thumbnail, thumbnail,
useLegacyApi: true, useLegacyApi: true,
tags: [ tags: [t('3D'), t('Experimental'), t('Geo'), t('Multi-Dimensions'), t('deckGL')],
t('3D'),
t('Experimental'),
t('Geo'),
t('Multi-Dimensions'),
t('deckGL'),
],
}); });
export default class PolygonChartPlugin extends ChartPlugin { export default class PolygonChartPlugin extends ChartPlugin {

View File

@ -24,8 +24,9 @@ import controlPanel from './controlPanel';
const metadata = new ChartMetadata({ const metadata = new ChartMetadata({
category: t('Map'), category: t('Map'),
credits: ['https://uber.github.io/deck.gl'], credits: ['https://uber.github.io/deck.gl'],
description: description: t(
t('A map that takes rendering circles with a variable radius at latitude/longitude coordinates'), 'A map that takes rendering circles with a variable radius at latitude/longitude coordinates',
),
name: t('deck.gl Scatterplot'), name: t('deck.gl Scatterplot'),
thumbnail, thumbnail,
useLegacyApi: true, useLegacyApi: true,

View File

@ -24,18 +24,13 @@ import controlPanel from './controlPanel';
const metadata = new ChartMetadata({ const metadata = new ChartMetadata({
category: t('Map'), category: t('Map'),
credits: ['https://uber.github.io/deck.gl'], credits: ['https://uber.github.io/deck.gl'],
description: description: t(
t('Aggregates data within the boundary of grid cells and maps the aggregated values to a dynamic color scale'), 'Aggregates data within the boundary of grid cells and maps the aggregated values to a dynamic color scale',
),
name: t('deck.gl Screen Grid'), name: t('deck.gl Screen Grid'),
thumbnail, thumbnail,
useLegacyApi: true, useLegacyApi: true,
tags: [ tags: [t('Comparison'), t('Experimental'), t('Intensity'), t('Density'), t('deckGL')],
t('Comparison'),
t('Experimental'),
t('Intensity'),
t('Density'),
t('deckGL'),
],
}); });
export default class ScreengridChartPlugin extends ChartPlugin { export default class ScreengridChartPlugin extends ChartPlugin {

View File

@ -77,8 +77,8 @@ function getStepSeconds(step, start) {
} }
export function getPlaySliderParams(timestamps, timeGrain) { export function getPlaySliderParams(timestamps, timeGrain) {
const minTimestamp = moment(Number(timestamps.reduce((a,b) => a < b ? a : b))); const minTimestamp = moment(Number(timestamps.reduce((a, b) => (a < b ? a : b))));
const maxTimestamp = moment(Number(timestamps.reduce((a,b) => a > b ? a : b))); const maxTimestamp = moment(Number(timestamps.reduce((a, b) => (a > b ? a : b))));
let step; let step;
let reference; let reference;