mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
Bumping the JS libs to fix the build (#2616)
* bumping the js libs * New linting rules * More linting * More * Done linting * npm >=4.5.0 * Bumping node * Tweaking the build * Fixing the damn build * Fixing the apps
This commit is contained in:
committed by
GitHub
parent
a2b30f35fc
commit
366ecefbaa
@@ -1,10 +1,9 @@
|
||||
/* eslint-disable no-param-reassign */
|
||||
|
||||
import d3 from 'd3';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import MapGL from 'react-map-gl';
|
||||
import ScatterPlotOverlay from 'react-map-gl/dist/overlays/scatterplot.react.js';
|
||||
import ScatterPlotOverlay from 'react-map-gl/dist/overlays/scatterplot.react';
|
||||
import Immutable from 'immutable';
|
||||
import supercluster from 'supercluster';
|
||||
import ViewportMercator from 'viewport-mercator-project';
|
||||
@@ -109,7 +108,7 @@ class ScatterPlotGlowOverlay extends ScatterPlotOverlay {
|
||||
const fontHeight = d3.round(scaledRadius * 0.5, 1);
|
||||
const gradient = ctx.createRadialGradient(
|
||||
pixelRounded[0], pixelRounded[1], scaledRadius,
|
||||
pixelRounded[0], pixelRounded[1], 0
|
||||
pixelRounded[0], pixelRounded[1], 0,
|
||||
);
|
||||
|
||||
gradient.addColorStop(1, 'rgba(' + rgb[1] + ', ' + rgb[2] + ', ' + rgb[3] + ', 0.8)');
|
||||
@@ -277,7 +276,6 @@ function mapbox(slice, json) {
|
||||
const div = d3.select(slice.selector);
|
||||
const DEFAULT_POINT_RADIUS = 60;
|
||||
const DEFAULT_MAX_ZOOM = 16;
|
||||
let clusterer;
|
||||
|
||||
// Validate mapbox color
|
||||
const rgb = /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.exec(json.data.color);
|
||||
@@ -314,7 +312,7 @@ function mapbox(slice, json) {
|
||||
};
|
||||
}
|
||||
|
||||
clusterer = supercluster({
|
||||
const clusterer = supercluster({
|
||||
radius: json.data.clusteringRadius,
|
||||
maxZoom: DEFAULT_MAX_ZOOM,
|
||||
metricKey: 'metric',
|
||||
@@ -333,7 +331,7 @@ function mapbox(slice, json) {
|
||||
pointRadius={DEFAULT_POINT_RADIUS}
|
||||
aggregatorName={aggName}
|
||||
/>,
|
||||
div.node()
|
||||
div.node(),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user