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({
category: t('Map'),
credits: ['https://uber.github.io/deck.gl'],
description:
t('Plot the distance (like flight paths) between origin and destination.'),
description: t('Plot the distance (like flight paths) between origin and destination.'),
name: t('deck.gl Arc'),
thumbnail,
useLegacyApi: true,

View File

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

View File

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

View File

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

View File

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

View File

@ -77,8 +77,8 @@ function getStepSeconds(step, start) {
}
export function getPlaySliderParams(timestamps, timeGrain) {
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 minTimestamp = 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 reference;