Skip to content

Commit

Permalink
chore(legacy-plugin-chart-map-box): bump supercluster to v8 (apache#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum authored Sep 26, 2024
1 parent 20b1eab commit 0fdcd8b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 27 deletions.
54 changes: 30 additions & 24 deletions superset-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"prop-types": "^15.8.1",
"react-map-gl": "^6.1.19",
"supercluster": "^4.1.1",
"supercluster": "^8.0.1",
"viewport-mercator-project": "^6.1.1"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import supercluster from 'supercluster';
import Supercluster from 'supercluster';
import { DEFAULT_POINT_RADIUS, DEFAULT_MAX_ZOOM } from './MapBox';

const NOOP = () => {};
Expand Down Expand Up @@ -72,7 +72,7 @@ export default function transformProps(chartProps) {
/* eslint-enable no-param-reassign */
};
}
const clusterer = supercluster(opts);
const clusterer = new Supercluster(opts);
clusterer.load(geoJSON.features);

return {
Expand Down

0 comments on commit 0fdcd8b

Please sign in to comment.