1-
21import { ComponentStory , ComponentMeta } from '@storybook/react'
3- import { GoogleMap , MarkerF , GoogleMapsMarkerClusterer as gm } from '../..'
2+ import { GoogleMap , MarkerF , GoogleMapsMarkerClusterer as gm } from '../..'
43import GoogleMarkerClusterer from './GoogleMarkerClusterer'
54
6-
7- const { DBScanAlgorithm, GridAlgorithm, KmeansAlgorithm, NoopAlgorithm } = gm
5+ const { GridAlgorithm, NoopAlgorithm } = gm
86
97const mapContainerStyle = {
108 height : '400px' ,
@@ -54,7 +52,11 @@ const Template: ComponentStory<typeof GoogleMarkerClusterer> = (args) => {
5452 < GoogleMarkerClusterer { ...args } >
5553 { ( clusterer ) =>
5654 locations . map ( ( location ) => (
57- < MarkerF key = { createKey ( location ) } position = { location } clusterer = { clusterer } />
55+ < MarkerF
56+ key = { createKey ( location ) }
57+ position = { location }
58+ clusterer = { clusterer }
59+ />
5860 ) ) as any
5961 }
6062 </ GoogleMarkerClusterer >
@@ -64,21 +66,11 @@ const Template: ComponentStory<typeof GoogleMarkerClusterer> = (args) => {
6466
6567export const Default = Template . bind ( { } )
6668
67- export const DBScan = Template . bind ( { } )
68- DBScan . args = {
69- options : { algorithm : new DBScanAlgorithm ( { } ) } ,
70- }
71-
7269export const Grid = Template . bind ( { } )
7370Grid . args = {
7471 options : { algorithm : new GridAlgorithm ( { maxDistance : 40000 } ) } ,
7572}
7673
77- export const Kmeans = Template . bind ( { } )
78- Kmeans . args = {
79- options : { algorithm : new KmeansAlgorithm ( { numberOfClusters : 10 } ) } ,
80- }
81-
8274export const Noop = Template . bind ( { } )
8375Noop . args = {
8476 options : { algorithm : new NoopAlgorithm ( { } ) } ,
0 commit comments