Skip to content

Commit

Permalink
fix: source 聚合方法接口定义问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxue committed Dec 17, 2019
1 parent 6c1f934 commit 27bdd02
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/services/source/ISourceService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export interface ISource {
clusterOptions: Partial<IClusterOptions>;
updateClusterData(zoom: number): void;
getFeatureById(id: number): unknown;
getClusters(zoom: number): unknown;
getClustersLeaves(id: string): unknown;
getClusters(zoom: number): any;
getClustersLeaves(id: number): any;
}
export interface IRasterCfg {
extent: [number, number, number, number];
Expand Down
4 changes: 2 additions & 2 deletions packages/source/src/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ export default class Source extends EventEmitter {
});
this.init();
}
public getClusters(zoom: number) {
public getClusters(zoom: number): any {
return this.clusterIndex.getClusters(this.extent, zoom);
}
public getClustersLeaves(id: number) {
public getClustersLeaves(id: number): any {
return this.clusterIndex.getLeaves(id, Infinity);
}
public updateClusterData(zoom: number): void {
Expand Down
2 changes: 1 addition & 1 deletion stories/Layers/components/Point.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class Point3D extends React.Component {
type: 'quantile',
})
.size('point_count', [5, 10, 15, 20, 25])
// .size(10)
.active(true)
.color('red')
.style({
opacity: 0.3,
Expand Down

0 comments on commit 27bdd02

Please sign in to comment.