-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: 透出组件类型定义 * chore: 修复类型导出问题 * chore: 代码格式化
- Loading branch information
Showing
7 changed files
with
58 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
import Control from './control/BaseControl'; | ||
import Layers, { ILayerControlOption } from './control/layer'; | ||
import Layers from './control/layer'; | ||
import Logo from './control/logo'; | ||
import Scale, { IScaleControlOption } from './control/scale'; | ||
import Zoom, { IZoomControlOption } from './control/zoom'; | ||
import Scale from './control/scale'; | ||
import Zoom from './control/zoom'; | ||
import Marker from './marker'; | ||
import MarkerLayer, { IMarkerLayerOption } from './markerlayer'; | ||
import MarkerLayer from './marker-layer'; | ||
import Popup from './popup'; | ||
|
||
// 引入样式 | ||
// TODO: 使用 Less 或者 Sass,每个组件单独引用自身样式 | ||
import './css/l7.css'; | ||
|
||
export { | ||
Control, | ||
Logo, | ||
Scale, | ||
IScaleControlOption, | ||
Zoom, | ||
IZoomControlOption, | ||
Layers, | ||
ILayerControlOption, | ||
Marker, | ||
Popup, | ||
MarkerLayer, | ||
IMarkerLayerOption, | ||
}; | ||
export { Control, Logo, Scale, Zoom, Layers, Marker, Popup, MarkerLayer }; | ||
|
||
export * from './interface'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { IControlOption } from '@antv/l7-core'; | ||
|
||
export interface ILayerControlOption extends IControlOption { | ||
collapsed: boolean; | ||
autoZIndex: boolean; | ||
hideSingleBase: boolean; | ||
sortLayers: boolean; | ||
|
||
sortFunction: (...args: any[]) => any; | ||
} | ||
|
||
export interface IScaleControlOption extends IControlOption { | ||
maxWidth: number; | ||
metric: boolean; | ||
updateWhenIdle: boolean; | ||
imperial: boolean; | ||
} | ||
|
||
export interface IZoomControlOption extends IControlOption { | ||
zoomInText: string; | ||
zoomInTitle: string; | ||
zoomOutText: string; | ||
zoomOutTitle: string; | ||
} | ||
|
||
export interface IMarkerStyleOption { | ||
element?: (...args: any[]) => any; | ||
style: { [key: string]: any } | ((...args: any[]) => any); | ||
className: string; | ||
field?: string; | ||
method?: 'sum' | 'max' | 'min' | 'mean'; | ||
radius: number; | ||
maxZoom: number; | ||
minZoom: number; | ||
zoom: number; | ||
} | ||
|
||
export interface IMarkerLayerOption { | ||
cluster: boolean; | ||
clusterOption: Partial<IMarkerStyleOption>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters