Skip to content

Commit

Permalink
feat(Icon): 移除不存在的类型
Browse files Browse the repository at this point in the history
Icon 并未实现 Event 相关接口
  • Loading branch information
xyy94813 committed Mar 22, 2024
1 parent 5ba9f86 commit cf549c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
3 changes: 1 addition & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
} from './animates/MoveAnimation';

import { Text, TextOptions, TextEventType } from './overlays/Text';
import { Icon, IconOptions, IconEventType } from './overlays/Icon';
import { Icon, IconOptions } from './overlays/Icon';
import {
LabelMarker,
LabelMarkerOptions,
Expand Down Expand Up @@ -242,7 +242,6 @@ declare global {
type TextEventType,
Icon,
type IconOptions,
type IconEventType,
LabelMarker,
type LabelMarkerOptions,
type LabelMarkerEventType,
Expand Down
11 changes: 0 additions & 11 deletions types/overlays/Icon.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@ export type IconOptions = {
imageOffset?: PixelLike;
};

export type IconEventType =
| 'click'
| 'mousemove'
| 'mouseover'
| 'mouseout'
| 'mousedown'
| 'mouseup'
| 'touchstart'
| 'touchmove'
| 'touchend';

/**
* Icon类 表示点标记的图标 用于添加复杂点标记,即在普通点标记的基础上,
* 添加Icon类,通过在Icon表示的大图上截取其中一部分作为标注的图标
Expand Down

0 comments on commit cf549c1

Please sign in to comment.