Skip to content

Commit

Permalink
타입 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
QuadFlask committed Jun 3, 2021
1 parent 37d2ec5 commit c8507ba
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
26 changes: 23 additions & 3 deletions example/map/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export interface NaverMapViewProps {
latitude: number;
longitude: number;
zoom: number;
contentsRegion: [Coord, Coord, Coord, Coord, Coord];
coveringRegion: [Coord, Coord, Coord, Coord, Coord];
}) => void;
onMapClick?: (event: {
x: number;
Expand All @@ -100,9 +102,10 @@ export interface NaverMapViewProps {
tiltGesturesEnabled?: boolean;
rotateGesturesEnabled?: boolean;
stopGesturesEnabled?: boolean;
liteModeEnabled?: boolean;
useTextureView?: boolean;
}
export default class NaverMapView extends Component<NaverMapViewProps> {
export default class NaverMapView extends Component<NaverMapViewProps, {}> {
ref?: RNNaverMapView;
nodeHandle?: null | number;
private resolveRef;
Expand All @@ -123,6 +126,8 @@ export default class NaverMapView extends Component<NaverMapViewProps> {
latitude: number;
longitude: number;
zoom: number;
contentsRegion: [Coord, Coord, Coord, Coord, Coord];
coveringRegion: [Coord, Coord, Coord, Coord, Coord];
}>) => void;
handleOnMapClick: (event: React.SyntheticEvent<{}, {
x: number;
Expand Down Expand Up @@ -150,19 +155,34 @@ export interface MarkerProps extends MapOverlay {
width?: number;
height?: number;
alpha?: number;
angle?: number;
hidden?: boolean;
zIndex?: number;
iconPerspectiveEnabled?: boolean;
isHideCollidedSymbols?: boolean;
isHideCollidedMarkers?: boolean;
isHideCollidedCaptions?: boolean;
isForceShowIcon?: boolean;
animated?: boolean;
caption?: {
text?: string;
align?: Align;
textSize?: number;
color?: string;
haloColor?: string;
offset?: number;
requestedWidth?: number;
minZoom?: number;
maxZoom?: number;
};
subCaption?: {
text?: string;
textSize?: number;
color?: number;
haloColor?: number;
color?: string;
haloColor?: string;
requestedWidth?: number;
minZoom?: number;
maxZoom?: number;
};
}
export declare class Marker extends Component<MarkerProps> {
Expand Down
4 changes: 2 additions & 2 deletions example/map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ export default class NaverMapView extends Component {
}
export class Marker extends Component {
render() {
var _a;
return React.createElement(RNNaverMapMarker, Object.assign({}, this.props, { image: getImageUri(this.props.image), caption: this.props.caption && Object.assign(Object.assign({}, this.props.caption), { textSize: (_a = this.props.caption.textSize) !== null && _a !== void 0 ? _a : 12, color: parseColor(this.props.caption.color), haloColor: parseColor(this.props.caption.haloColor) }) }));
var _a, _b;
return React.createElement(RNNaverMapMarker, Object.assign({}, this.props, { image: getImageUri(this.props.image), caption: this.props.caption && Object.assign(Object.assign({}, this.props.caption), { textSize: (_a = this.props.caption.textSize) !== null && _a !== void 0 ? _a : 12, color: parseColor(this.props.caption.color), haloColor: parseColor(this.props.caption.haloColor) }), subCaption: this.props.subCaption && Object.assign(Object.assign({}, this.props.subCaption), { textSize: (_b = this.props.subCaption.textSize) !== null && _b !== void 0 ? _b : 12, color: parseColor(this.props.subCaption.color), haloColor: parseColor(this.props.subCaption.haloColor) }) }));
}
}
export class Circle extends Component {
Expand Down
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export interface NaverMapViewProps {
latitude: number;
longitude: number;
zoom: number;
contentsRegion: [Coord, Coord, Coord, Coord, Coord];
coveringRegion: [Coord, Coord, Coord, Coord, Coord];
}) => void;
onMapClick?: (event: {
x: number;
Expand Down Expand Up @@ -124,6 +126,8 @@ export default class NaverMapView extends Component<NaverMapViewProps, {}> {
latitude: number;
longitude: number;
zoom: number;
contentsRegion: [Coord, Coord, Coord, Coord, Coord];
coveringRegion: [Coord, Coord, Coord, Coord, Coord];
}>) => void;
handleOnMapClick: (event: React.SyntheticEvent<{}, {
x: number;
Expand Down
2 changes: 2 additions & 0 deletions index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ export default class NaverMapView extends Component<NaverMapViewProps, {}> {
latitude: number;
longitude: number;
zoom: number;
contentsRegion: [Coord, Coord, Coord, Coord, Coord];
coveringRegion: [Coord, Coord, Coord, Coord, Coord];
}>) => this.props.onCameraChange && this.props.onCameraChange(event.nativeEvent);

handleOnMapClick = (event: SyntheticEvent<{}, {
Expand Down

0 comments on commit c8507ba

Please sign in to comment.