@rousen/react-naver-maps 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ declare const EVENT_TO_PROP: {
2
+ readonly click: "onClick";
3
+ readonly dblclick: "onDblclick";
4
+ readonly rightclick: "onRightclick";
5
+ readonly mousedown: "onMouseDown";
6
+ readonly mouseup: "onMouseUp";
7
+ readonly mouseover: "onMouseOver";
8
+ readonly mouseout: "onMouseOut";
9
+ readonly mouseenter: "onMouseEnter";
10
+ readonly mouseleave: "onMouseLeave";
11
+ };
12
+ type EventKey = keyof typeof EVENT_TO_PROP;
13
+ type PropKey = (typeof EVENT_TO_PROP)[EventKey];
14
+ interface CircleCallbacks {
15
+ click?: (event: naver.maps.PointerEvent) => void;
16
+ dblclick?: (event: naver.maps.PointerEvent) => void;
17
+ rightclick?: (event: naver.maps.PointerEvent) => void;
18
+ mousedown?: (event: naver.maps.PointerEvent) => void;
19
+ mouseup?: (event: naver.maps.PointerEvent) => void;
20
+ mouseover?: (event: naver.maps.PointerEvent) => void;
21
+ mouseout?: (event: naver.maps.PointerEvent) => void;
22
+ mouseenter?: (event: naver.maps.PointerEvent) => void;
23
+ mouseleave?: (event: naver.maps.PointerEvent) => void;
24
+ }
25
+ type HandlerOfProp<P extends PropKey> = CircleCallbacks[{
26
+ [E in EventKey]: (typeof EVENT_TO_PROP)[E] extends P ? E : never;
27
+ }[EventKey]];
28
+ type CircleEventProps = {
29
+ [P in PropKey]?: HandlerOfProp<P>;
30
+ };
31
+ type BaseCircleProps = Omit<naver.maps.CircleOptions, "map">;
32
+ export interface CircleProps extends BaseCircleProps, CircleEventProps {
33
+ }
34
+ declare const Circle: import("react").ForwardRefExoticComponent<CircleProps & import("react").RefAttributes<naver.maps.Circle>>;
35
+ export default Circle;
36
+ //# sourceMappingURL=Circle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Circle.d.ts","sourceR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,QAAQ,CAAC,CAAC,CAAC;AAEb,KAAK,gBAAgB,GAAG;KACrB,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC;CAClC,CAAC;AAEF,KAAK,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AAE7D,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,gBAAgB;CAAG;AAEzE,QAAA,MAAM,MAAM,2GAiFX,CAAC;AAIF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,36 @@
1
+ declare const EVENT_TO_PROP: {
2
+ readonly click: "onClick";
3
+ readonly dblclick: "onDblclick";
4
+ readonly rightclick: "onRightclick";
5
+ readonly mousedown: "onMouseDown";
6
+ readonly mouseup: "onMouseUp";
7
+ readonly mouseover: "onMouseOver";
8
+ readonly mouseout: "onMouseOut";
9
+ readonly mouseenter: "onMouseEnter";
10
+ readonly mouseleave: "onMouseLeave";
11
+ };
12
+ type EventKey = keyof typeof EVENT_TO_PROP;
13
+ type PropKey = (typeof EVENT_TO_PROP)[EventKey];
14
+ interface EllipseCallbacks {
15
+ click?: (event: naver.maps.PointerEvent) => void;
16
+ dblclick?: (event: naver.maps.PointerEvent) => void;
17
+ rightclick?: (event: naver.maps.PointerEvent) => void;
18
+ mousedown?: (event: naver.maps.PointerEvent) => void;
19
+ mouseup?: (event: naver.maps.PointerEvent) => void;
20
+ mouseover?: (event: naver.maps.PointerEvent) => void;
21
+ mouseout?: (event: naver.maps.PointerEvent) => void;
22
+ mouseenter?: (event: naver.maps.PointerEvent) => void;
23
+ mouseleave?: (event: naver.maps.PointerEvent) => void;
24
+ }
25
+ type HandlerOfProp<P extends PropKey> = EllipseCallbacks[{
26
+ [E in EventKey]: (typeof EVENT_TO_PROP)[E] extends P ? E : never;
27
+ }[EventKey]];
28
+ type EllipseEventProps = {
29
+ [P in PropKey]?: HandlerOfProp<P>;
30
+ };
31
+ type BaseEllipseProps = Omit<naver.maps.EllipseOptions, "map">;
32
+ export interface EllipseProps extends BaseEllipseProps, EllipseEventProps {
33
+ }
34
+ declare const Ellipse: import("react").ForwardRefExoticComponent<EllipseProps & import("react").RefAttributes<naver.maps.Ellipse>>;
35
+ export default Ellipse;
36
+ //# sourceMappingURL=Ellipse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Ellipse.d.ts","sourceRoot":"","sources":["../../src/components/Ellipse.tsx"],"names":[],"mappings":"AAUA,QAAA,MAAM,aAAa;;;;;;;;;;CAUT,CAAC;AAEX,KAAK,QAAQ,GAAG,MAAM,OAAO,aAAa,CAAC;AAC3C,KAAK,OAAO,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,QAAQ,CAAC,CAAC;AAEhD,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACpD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACtD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACrD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACnD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACpD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACtD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;CACvD;AAED,KAAK,aAAa,CAAC,CAAC,SAAS,OAAO,IAAI,gBAAgB,CAAC;KACtD,CAAC,IAAI,QAAQ,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK;CACjE,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEb,KAAK,iBAAiB,GAAG;KACtB,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC;CAClC,CAAC;AAEF,KAAK,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;AAE/D,MAAM,WAAW,YAAa,SAAQ,gBAAgB,EAAE,iBAAiB;CAAG;AAE5E,QAAA,MAAM,OAAO,6GAiFZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
@@ -1,11 +1,36 @@
1
- export interface PolygonProps extends naver.maps.PolygonOptions {
2
- onClick?: PolygonCallbacks["click"];
3
- onMouseEnter?: PolygonCallbacks["mouseenter"];
4
- }
1
+ declare const EVENT_TO_PROP: {
2
+ readonly click: "onClick";
3
+ readonly dblclick: "onDblclick";
4
+ readonly rightclick: "onRightclick";
5
+ readonly mousedown: "onMouseDown";
6
+ readonly mouseup: "onMouseUp";
7
+ readonly mouseover: "onMouseOver";
8
+ readonly mouseout: "onMouseOut";
9
+ readonly mouseenter: "onMouseEnter";
10
+ readonly mouseleave: "onMouseLeave";
11
+ };
12
+ type EventKey = keyof typeof EVENT_TO_PROP;
13
+ type PropKey = (typeof EVENT_TO_PROP)[EventKey];
5
14
  interface PolygonCallbacks {
6
- click?: (event: unknown) => void;
7
- mouseenter?: (event: unknown) => void;
15
+ click?: (event: naver.maps.PointerEvent) => void;
16
+ dblclick?: (event: naver.maps.PointerEvent) => void;
17
+ rightclick?: (event: naver.maps.PointerEvent) => void;
18
+ mousedown?: (event: naver.maps.PointerEvent) => void;
19
+ mouseup?: (event: naver.maps.PointerEvent) => void;
20
+ mouseover?: (event: naver.maps.PointerEvent) => void;
21
+ mouseout?: (event: naver.maps.PointerEvent) => void;
22
+ mouseenter?: (event: naver.maps.PointerEvent) => void;
23
+ mouseleave?: (event: naver.maps.PointerEvent) => void;
24
+ }
25
+ type HandlerOfProp<P extends PropKey> = PolygonCallbacks[{
26
+ [E in EventKey]: (typeof EVENT_TO_PROP)[E] extends P ? E : never;
27
+ }[EventKey]];
28
+ type PolygonEventProps = {
29
+ [P in PropKey]?: HandlerOfProp<P>;
30
+ };
31
+ type BasePolygonProps = Omit<naver.maps.PolygonOptions, "map">;
32
+ export interface PolygonProps extends BasePolygonProps, PolygonEventProps {
8
33
  }
9
- declare const Polygon: ({ onClick, onMouseEnter, ...options }: PolygonProps) => null;
34
+ declare const Polygon: import("react").ForwardRefExoticComponent<PolygonProps & import("react").RefAttributes<naver.maps.Polygon>>;
10
35
  export default Polygon;
11
36
  //# sourceMappingURL=Polygon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Polygon.d.ts","sourceRoot":"","sources":["../../src/components/Polygon.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,IAAI,CAAC,cAAc;IAC7D,OAAO,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;CAC/C;AAED,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC;AACD,QAAA,MAAM,OAAO,GAAI,uCAId,YAAY,SAwCd,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Polygon.d.ts","sourceRoot":"","sources":["../../src/components/Pol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CAAC,CAAC;AAEb,KAAK,iBAAiB,GAAG;KACtB,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC;CAClC,CAAC;AAEF,KAAK,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;AAE/D,MAAM,WAAW,YAAa,SAAQ,gBAAgB,EAAE,iBAAiB;CAAG;AAE5E,QAAA,MAAM,OAAO,6GAiFZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,36 @@
1
+ declare const EVENT_TO_PROP: {
2
+ readonly click: "onClick";
3
+ readonly dblclick: "onDblclick";
4
+ readonly rightclick: "onRightclick";
5
+ readonly mousedown: "onMouseDown";
6
+ readonly mouseup: "onMouseUp";
7
+ readonly mouseover: "onMouseOver";
8
+ readonly mouseout: "onMouseOut";
9
+ readonly mouseenter: "onMouseEnter";
10
+ readonly mouseleave: "onMouseLeave";
11
+ };
12
+ type EventKey = keyof typeof EVENT_TO_PROP;
13
+ type PropKey = (typeof EVENT_TO_PROP)[EventKey];
14
+ interface RectangleCallbacks {
15
+ click?: (event: naver.maps.PointerEvent) => void;
16
+ dblclick?: (event: naver.maps.PointerEvent) => void;
17
+ rightclick?: (event: naver.maps.PointerEvent) => void;
18
+ mousedown?: (event: naver.maps.PointerEvent) => void;
19
+ mouseup?: (event: naver.maps.PointerEvent) => void;
20
+ mouseover?: (event: naver.maps.PointerEvent) => void;
21
+ mouseout?: (event: naver.maps.PointerEvent) => void;
22
+ mouseenter?: (event: naver.maps.PointerEvent) => void;
23
+ mouseleave?: (event: naver.maps.PointerEvent) => void;
24
+ }
25
+ type HandlerOfProp<P extends PropKey> = RectangleCallbacks[{
26
+ [E in EventKey]: (typeof EVENT_TO_PROP)[E] extends P ? E : never;
27
+ }[EventKey]];
28
+ type RectangleEventProps = {
29
+ [P in PropKey]?: HandlerOfProp<P>;
30
+ };
31
+ type BaseRectangleProps = Omit<naver.maps.RectangleOptions, "map">;
32
+ export interface RectangleProps extends BaseRectangleProps, RectangleEventProps {
33
+ }
34
+ declare const Rectangle: import("react").ForwardRefExoticComponent<RectangleProps & import("react").RefAttributes<naver.maps.Rectangle>>;
35
+ export default Rectangle;
36
+ //# sourceMappingURL=Rectangle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rectangle.d.ts","sourceRoot":"","sources":["../../src/components/Rectangle.tsx"],"names":[],"mappings":"AAUA,QAAA,MAAM,aAAa;;;;;;;;;;CAUT,CAAC;AAEX,KAAK,QAAQ,GAAG,MAAM,OAAO,aAAa,CAAC;AAC3C,KAAK,OAAO,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,QAAQ,CAAC,CAAC;AAEhD,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACpD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACtD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACrD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACnD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACpD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;IACtD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC;CACvD;AAED,KAAK,aAAa,CAAC,CAAC,SAAS,OAAO,IAAI,kBAAkB,CAAC;KACxD,CAAC,IAAI,QAAQ,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK;CACjE,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEb,KAAK,mBAAmB,GAAG;KACxB,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC;CAClC,CAAC;AAEF,KAAK,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;AAEnE,MAAM,WAAW,cACf,SAAQ,kBAAkB,EACxB,mBAAmB;CAAG;AAE1B,QAAA,MAAM,SAAS,iHAiFd,CAAC;AAIF,eAAe,SAAS,CAAC"}
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
 
5
5
  type NaverMapsSubmodule = "traffic" | "transit" | "drawing" | "event" | "heatmap" | "marker";
6
6
 
7
- declare const EVENT_TO_PROP$2: {
7
+ declare const EVENT_TO_PROP$6: {
8
8
  readonly init: "onInit";
9
9
  readonly zoomstart: "onZoomStart";
10
10
  readonly zoomend: "onZoomEnd";
@@ -34,8 +34,8 @@ declare const EVENT_TO_PROP$2: {
34
34
  readonly removeLayer: "onRemoveLayer";
35
35
  readonly size_changed: "onSizeChanged";
36
36
  };
37
- type EventKey$2 = keyof typeof EVENT_TO_PROP$2;
38
- type PropKey$2 = (typeof EVENT_TO_PROP$2)[EventKey$2];
37
+ type EventKey$6 = keyof typeof EVENT_TO_PROP$6;
38
+ type PropKey$6 = (typeof EVENT_TO_PROP$6)[EventKey$6];
39
39
  interface MapCallbacks {
40
40
  addLayer?: (layer: naver.maps.Layer) => void;
41
41
  center_changed?: (center: naver.maps.Coord) => void;
@@ -78,11 +78,11 @@ interface MapCallbacks {
78
78
  resize?: () => void;
79
79
  size_changed?: (size: naver.maps.Size) => void;
80
80
  }
81
- type HandlerOfProp$2<P extends PropKey$2> = MapCallbacks[{
82
- [E in EventKey$2]: (typeof EVENT_TO_PROP$2)[E] extends P ? E : never;
83
- }[EventKey$2]];
81
+ type HandlerOfProp$6<P extends PropKey$6> = MapCallbacks[{
82
+ [E in EventKey$6]: (typeof EVENT_TO_PROP$6)[E] extends P ? E : never;
83
+ }[EventKey$6]];
84
84
  type MapEventProps = {
85
- [P in PropKey$2]?: HandlerOfProp$2<P>;
85
+ [P in PropKey$6]?: HandlerOfProp$6<P>;
86
86
  };
87
87
  interface MapProps extends MapEventProps {
88
88
  ncpKeyId: string;
@@ -106,7 +106,7 @@ type MapCollection = {
106
106
  };
107
107
  declare const useMap: () => MapCollection;
108
108
 
109
- declare const EVENT_TO_PROP$1: {
109
+ declare const EVENT_TO_PROP$5: {
110
110
  readonly click: "onClick";
111
111
  readonly position_changed: "onPositionChanged";
112
112
  readonly rightclick: "onRightclick";
@@ -125,8 +125,8 @@ declare const EVENT_TO_PROP$1: {
125
125
  readonly mouseover: "onMouseOver";
126
126
  readonly mouseout: "onMouseOut";
127
127
  };
128
- type EventKey$1 = keyof typeof EVENT_TO_PROP$1;
129
- type PropKey$1 = (typeof EVENT_TO_PROP$1)[EventKey$1];
128
+ type EventKey$5 = keyof typeof EVENT_TO_PROP$5;
129
+ type PropKey$5 = (typeof EVENT_TO_PROP$5)[EventKey$5];
130
130
  interface MarkerCallbacks {
131
131
  click?: (event: naver.maps.PointerEvent) => void;
132
132
  clickable_changed?: (clickable: boolean) => void;
@@ -146,11 +146,11 @@ interface MarkerCallbacks {
146
146
  mouseover?: (event: naver.maps.PointerEvent) => void;
147
147
  mouseout?: (event: naver.maps.PointerEvent) => void;
148
148
  }
149
- type HandlerOfProp$1<P extends PropKey$1> = MarkerCallbacks[{
150
- [E in EventKey$1]: (typeof EVENT_TO_PROP$1)[E] extends P ? E : never;
151
- }[EventKey$1]];
149
+ type HandlerOfProp$5<P extends PropKey$5> = MarkerCallbacks[{
150
+ [E in EventKey$5]: (typeof EVENT_TO_PROP$5)[E] extends P ? E : never;
151
+ }[EventKey$5]];
152
152
  type MarkerEventProps = {
153
- [P in PropKey$1]?: HandlerOfProp$1<P>;
153
+ [P in PropKey$5]?: HandlerOfProp$5<P>;
154
154
  };
155
155
  type BaseMarkerProps = Omit<naver.maps.MarkerOptions, "map">;
156
156
  interface MarkerProps extends BaseMarkerProps, MarkerEventProps {
@@ -167,15 +167,145 @@ interface Props {
167
167
  }
168
168
  declare const Overlay: ({ children, ...options }: Props) => react_jsx_runtime.JSX.Element;
169
169
 
170
- interface PolygonProps extends naver.maps.PolygonOptions {
171
- onClick?: PolygonCallbacks["click"];
172
- onMouseEnter?: PolygonCallbacks["mouseenter"];
173
- }
170
+ declare const EVENT_TO_PROP$4: {
171
+ readonly click: "onClick";
172
+ readonly dblclick: "onDblclick";
173
+ readonly rightclick: "onRightclick";
174
+ readonly mousedown: "onMouseDown";
175
+ readonly mouseup: "onMouseUp";
176
+ readonly mouseover: "onMouseOver";
177
+ readonly mouseout: "onMouseOut";
178
+ readonly mouseenter: "onMouseEnter";
179
+ readonly mouseleave: "onMouseLeave";
180
+ };
181
+ type EventKey$4 = keyof typeof EVENT_TO_PROP$4;
182
+ type PropKey$4 = (typeof EVENT_TO_PROP$4)[EventKey$4];
174
183
  interface PolygonCallbacks {
175
- click?: (event: unknown) => void;
176
- mouseenter?: (event: unknown) => void;
184
+ click?: (event: naver.maps.PointerEvent) => void;
185
+ dblclick?: (event: naver.maps.PointerEvent) => void;
186
+ rightclick?: (event: naver.maps.PointerEvent) => void;
187
+ mousedown?: (event: naver.maps.PointerEvent) => void;
188
+ mouseup?: (event: naver.maps.PointerEvent) => void;
189
+ mouseover?: (event: naver.maps.PointerEvent) => void;
190
+ mouseout?: (event: naver.maps.PointerEvent) => void;
191
+ mouseenter?: (event: naver.maps.PointerEvent) => void;
192
+ mouseleave?: (event: naver.maps.PointerEvent) => void;
177
193
  }
178
- declare const Polygon: ({ onClick, onMouseEnter, ...options }: PolygonProps) => null;
194
+ type HandlerOfProp$4<P extends PropKey$4> = PolygonCallbacks[{
195
+ [E in EventKey$4]: (typeof EVENT_TO_PROP$4)[E] extends P ? E : never;
196
+ }[EventKey$4]];
197
+ type PolygonEventProps = {
198
+ [P in PropKey$4]?: HandlerOfProp$4<P>;
199
+ };
200
+ type BasePolygonProps = Omit<naver.maps.PolygonOptions, "map">;
201
+ interface PolygonProps extends BasePolygonProps, PolygonEventProps {
202
+ }
203
+ declare const Polygon: react.ForwardRefExoticComponent<PolygonProps & react.RefAttributes<naver.maps.Polygon>>;
204
+
205
+ declare const EVENT_TO_PROP$3: {
206
+ readonly click: "onClick";
207
+ readonly dblclick: "onDblclick";
208
+ readonly rightclick: "onRightclick";
209
+ readonly mousedown: "onMouseDown";
210
+ readonly mouseup: "onMouseUp";
211
+ readonly mouseover: "onMouseOver";
212
+ readonly mouseout: "onMouseOut";
213
+ readonly mouseenter: "onMouseEnter";
214
+ readonly mouseleave: "onMouseLeave";
215
+ };
216
+ type EventKey$3 = keyof typeof EVENT_TO_PROP$3;
217
+ type PropKey$3 = (typeof EVENT_TO_PROP$3)[EventKey$3];
218
+ interface PolylineCallbacks {
219
+ click?: (event: naver.maps.PointerEvent) => void;
220
+ dblclick?: (event: naver.maps.PointerEvent) => void;
221
+ rightclick?: (event: naver.maps.PointerEvent) => void;
222
+ mousedown?: (event: naver.maps.PointerEvent) => void;
223
+ mouseup?: (event: naver.maps.PointerEvent) => void;
224
+ mouseover?: (event: naver.maps.PointerEvent) => void;
225
+ mouseout?: (event: naver.maps.PointerEvent) => void;
226
+ mouseenter?: (event: naver.maps.PointerEvent) => void;
227
+ mouseleave?: (event: naver.maps.PointerEvent) => void;
228
+ }
229
+ type HandlerOfProp$3<P extends PropKey$3> = PolylineCallbacks[{
230
+ [E in EventKey$3]: (typeof EVENT_TO_PROP$3)[E] extends P ? E : never;
231
+ }[EventKey$3]];
232
+ type PolylineEventProps = {
233
+ [P in PropKey$3]?: HandlerOfProp$3<P>;
234
+ };
235
+ type BasePolylineProps = Omit<naver.maps.PolylineOptions, "map">;
236
+ interface PolylineProps extends BasePolylineProps, PolylineEventProps {
237
+ }
238
+ declare const Polyline: react.ForwardRefExoticComponent<PolylineProps & react.RefAttributes<naver.maps.Polyline>>;
239
+
240
+ declare const EVENT_TO_PROP$2: {
241
+ readonly click: "onClick";
242
+ readonly dblclick: "onDblclick";
243
+ readonly rightclick: "onRightclick";
244
+ readonly mousedown: "onMouseDown";
245
+ readonly mouseup: "onMouseUp";
246
+ readonly mouseover: "onMouseOver";
247
+ readonly mouseout: "onMouseOut";
248
+ readonly mouseenter: "onMouseEnter";
249
+ readonly mouseleave: "onMouseLeave";
250
+ };
251
+ type EventKey$2 = keyof typeof EVENT_TO_PROP$2;
252
+ type PropKey$2 = (typeof EVENT_TO_PROP$2)[EventKey$2];
253
+ interface RectangleCallbacks {
254
+ click?: (event: naver.maps.PointerEvent) => void;
255
+ dblclick?: (event: naver.maps.PointerEvent) => void;
256
+ rightclick?: (event: naver.maps.PointerEvent) => void;
257
+ mousedown?: (event: naver.maps.PointerEvent) => void;
258
+ mouseup?: (event: naver.maps.PointerEvent) => void;
259
+ mouseover?: (event: naver.maps.PointerEvent) => void;
260
+ mouseout?: (event: naver.maps.PointerEvent) => void;
261
+ mouseenter?: (event: naver.maps.PointerEvent) => void;
262
+ mouseleave?: (event: naver.maps.PointerEvent) => void;
263
+ }
264
+ type HandlerOfProp$2<P extends PropKey$2> = RectangleCallbacks[{
265
+ [E in EventKey$2]: (typeof EVENT_TO_PROP$2)[E] extends P ? E : never;
266
+ }[EventKey$2]];
267
+ type RectangleEventProps = {
268
+ [P in PropKey$2]?: HandlerOfProp$2<P>;
269
+ };
270
+ type BaseRectangleProps = Omit<naver.maps.RectangleOptions, "map">;
271
+ interface RectangleProps extends BaseRectangleProps, RectangleEventProps {
272
+ }
273
+ declare const Rectangle: react.ForwardRefExoticComponent<RectangleProps & react.RefAttributes<naver.maps.Rectangle>>;
274
+
275
+ declare const EVENT_TO_PROP$1: {
276
+ readonly click: "onClick";
277
+ readonly dblclick: "onDblclick";
278
+ readonly rightclick: "onRightclick";
279
+ readonly mousedown: "onMouseDown";
280
+ readonly mouseup: "onMouseUp";
281
+ readonly mouseover: "onMouseOver";
282
+ readonly mouseout: "onMouseOut";
283
+ readonly mouseenter: "onMouseEnter";
284
+ readonly mouseleave: "onMouseLeave";
285
+ };
286
+ type EventKey$1 = keyof typeof EVENT_TO_PROP$1;
287
+ type PropKey$1 = (typeof EVENT_TO_PROP$1)[EventKey$1];
288
+ interface CircleCallbacks {
289
+ click?: (event: naver.maps.PointerEvent) => void;
290
+ dblclick?: (event: naver.maps.PointerEvent) => void;
291
+ rightclick?: (event: naver.maps.PointerEvent) => void;
292
+ mousedown?: (event: naver.maps.PointerEvent) => void;
293
+ mouseup?: (event: naver.maps.PointerEvent) => void;
294
+ mouseover?: (event: naver.maps.PointerEvent) => void;
295
+ mouseout?: (event: naver.maps.PointerEvent) => void;
296
+ mouseenter?: (event: naver.maps.PointerEvent) => void;
297
+ mouseleave?: (event: naver.maps.PointerEvent) => void;
298
+ }
299
+ type HandlerOfProp$1<P extends PropKey$1> = CircleCallbacks[{
300
+ [E in EventKey$1]: (typeof EVENT_TO_PROP$1)[E] extends P ? E : never;
301
+ }[EventKey$1]];
302
+ type CircleEventProps = {
303
+ [P in PropKey$1]?: HandlerOfProp$1<P>;
304
+ };
305
+ type BaseCircleProps = Omit<naver.maps.CircleOptions, "map">;
306
+ interface CircleProps extends BaseCircleProps, CircleEventProps {
307
+ }
308
+ declare const Circle: react.ForwardRefExoticComponent<CircleProps & react.RefAttributes<naver.maps.Circle>>;
179
309
 
180
310
  declare const EVENT_TO_PROP: {
181
311
  readonly click: "onClick";
@@ -190,7 +320,7 @@ declare const EVENT_TO_PROP: {
190
320
  };
191
321
  type EventKey = keyof typeof EVENT_TO_PROP;
192
322
  type PropKey = (typeof EVENT_TO_PROP)[EventKey];
193
- interface PolylineCallbacks {
323
+ interface EllipseCallbacks {
194
324
  click?: (event: naver.maps.PointerEvent) => void;
195
325
  dblclick?: (event: naver.maps.PointerEvent) => void;
196
326
  rightclick?: (event: naver.maps.PointerEvent) => void;
@@ -201,16 +331,16 @@ interface PolylineCallbacks {
201
331
  mouseenter?: (event: naver.maps.PointerEvent) => void;
202
332
  mouseleave?: (event: naver.maps.PointerEvent) => void;
203
333
  }
204
- type HandlerOfProp<P extends PropKey> = PolylineCallbacks[{
334
+ type HandlerOfProp<P extends PropKey> = EllipseCallbacks[{
205
335
  [E in EventKey]: (typeof EVENT_TO_PROP)[E] extends P ? E : never;
206
336
  }[EventKey]];
207
- type PolylineEventProps = {
337
+ type EllipseEventProps = {
208
338
  [P in PropKey]?: HandlerOfProp<P>;
209
339
  };
210
- type BasePolylineProps = Omit<naver.maps.PolylineOptions, "map">;
211
- interface PolylineProps extends BasePolylineProps, PolylineEventProps {
340
+ type BaseEllipseProps = Omit<naver.maps.EllipseOptions, "map">;
341
+ interface EllipseProps extends BaseEllipseProps, EllipseEventProps {
212
342
  }
213
- declare const Polyline: react.ForwardRefExoticComponent<PolylineProps & react.RefAttributes<naver.maps.Polyline>>;
343
+ declare const Ellipse: react.ForwardRefExoticComponent<EllipseProps & react.RefAttributes<naver.maps.Ellipse>>;
214
344
 
215
- export { Map, MapProvider, Marker, Overlay, Polygon, Polyline, useMap };
216
- export type { MapProps, MarkerProps, PolylineProps };
345
+ export { Circle, Ellipse, Map, MapProvider, Marker, Overlay, Polygon, Polyline, Rectangle, useMap };
346
+ export type { CircleProps, EllipseProps, MapProps, MarkerProps, PolylineProps, RectangleProps };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MA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