@mint-ui/map 1.0.0 → 1.1.0
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.
- package/.eslintrc.js +109 -109
- package/LICENSE +21 -21
- package/README.md +81 -81
- package/dist/components/mint-map/MintMap.d.ts +10 -10
- package/dist/components/mint-map/MintMap.js +6 -6
- package/dist/components/mint-map/core/MintMapCanvasRenderer.d.ts +4 -4
- package/dist/components/mint-map/core/MintMapController.d.ts +70 -70
- package/dist/components/mint-map/core/MintMapController.js +10 -62
- package/dist/components/mint-map/core/MintMapCore.d.ts +3 -3
- package/dist/components/mint-map/core/advanced/MapBuildingProjection.d.ts +15 -15
- package/dist/components/mint-map/core/advanced/MapLoadingComponents.d.ts +17 -17
- package/dist/components/mint-map/core/advanced/canvas/CanvasMarker.d.ts +18 -18
- package/dist/components/mint-map/core/advanced/canvas/draw/canvas-util.d.ts +5 -5
- package/dist/components/mint-map/core/advanced/canvas/index.d.ts +1 -1
- package/dist/components/mint-map/core/advanced/index.d.ts +4 -4
- package/dist/components/mint-map/core/advanced/shapes/CircleMarker.d.ts +22 -22
- package/dist/components/mint-map/core/advanced/shapes/CircleMarker.js +6 -6
- package/dist/components/mint-map/core/advanced/shapes/PolygonMarker.d.ts +28 -28
- package/dist/components/mint-map/core/advanced/shapes/PolygonMarker.js +6 -6
- package/dist/components/mint-map/core/advanced/shapes/base/SVGCircle.d.ts +8 -8
- package/dist/components/mint-map/core/advanced/shapes/base/SVGPolygon.d.ts +12 -12
- package/dist/components/mint-map/core/advanced/shapes/base/SVGRect.d.ts +10 -10
- package/dist/components/mint-map/core/advanced/shapes/base/index.d.ts +3 -3
- package/dist/components/mint-map/core/advanced/shapes/index.d.ts +3 -3
- package/dist/components/mint-map/core/hooks/MarkerMovingHook.d.ts +6 -6
- package/dist/components/mint-map/core/hooks/index.d.ts +1 -1
- package/dist/components/mint-map/core/index.d.ts +8 -8
- package/dist/components/mint-map/core/provider/MintMapProvider.d.ts +8 -8
- package/dist/components/mint-map/core/provider/index.d.ts +1 -1
- package/dist/components/mint-map/core/util/animation.d.ts +16 -16
- package/dist/components/mint-map/core/util/cluster.d.ts +18 -18
- package/dist/components/mint-map/core/util/geo.d.ts +38 -38
- package/dist/components/mint-map/core/util/index.d.ts +8 -8
- package/dist/components/mint-map/core/util/log.d.ts +1 -1
- package/dist/components/mint-map/core/util/map.d.ts +2 -2
- package/dist/components/mint-map/core/util/polygon.d.ts +42 -42
- package/dist/components/mint-map/core/util/status.d.ts +9 -9
- package/dist/components/mint-map/core/util/waiting.d.ts +1 -1
- package/dist/components/mint-map/core/wrapper/MapCanvasMarkerWrapper.d.ts +27 -27
- package/dist/components/mint-map/core/wrapper/MapCanvasMarkerWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.d.ts +11 -11
- package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapControlWrapper.d.ts +20 -20
- package/dist/components/mint-map/core/wrapper/MapControlWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.d.ts +51 -51
- package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.d.ts +12 -12
- package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.d.ts +12 -12
- package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/index.d.ts +6 -6
- package/dist/components/mint-map/google/GoogleMintMapController.d.ts +54 -53
- package/dist/components/mint-map/google/GoogleMintMapController.js +25 -1
- package/dist/components/mint-map/index.d.ts +5 -5
- package/dist/components/mint-map/kakao/KakaoMintMapController.js +40 -7
- package/dist/components/mint-map/naver/NaverMintMapController.d.ts +56 -55
- package/dist/components/mint-map/naver/NaverMintMapController.js +45 -7
- package/dist/components/mint-map/types/MapDrawables.d.ts +118 -118
- package/dist/components/mint-map/types/MapDrawables.js +8 -8
- package/dist/components/mint-map/types/MapEventTypes.d.ts +44 -44
- package/dist/components/mint-map/types/MapTypes.d.ts +66 -60
- package/dist/components/mint-map/types/MapTypes.js +22 -13
- package/dist/components/mint-map/types/MintMapEvents.d.ts +25 -25
- package/dist/components/mint-map/types/MintMapProps.d.ts +111 -111
- package/dist/components/mint-map/types/index.d.ts +6 -6
- package/dist/index.d.ts +7 -7
- package/dist/index.es.js +3684 -3665
- package/dist/index.js +1 -0
- package/dist/index.umd.js +3683 -3663
- package/package.json +77 -77
- package/dist/components/mint-map/kakao/KakaoMintMapController.d.ts +0 -57
- package/dist/components/mint-map/types/CommonTypes.d.ts +0 -11
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
declare class PositionMirror {
|
|
2
|
-
lat: number;
|
|
3
|
-
lng: number;
|
|
4
|
-
constructor(lat: number, lng: number);
|
|
5
|
-
}
|
|
6
|
-
export interface NextPositionContext {
|
|
7
|
-
pos1: PositionMirror;
|
|
8
|
-
pos2: PositionMirror;
|
|
9
|
-
velocityKmh: number;
|
|
10
|
-
elapsedTimeMs: number;
|
|
11
|
-
totalDistance: number;
|
|
12
|
-
currDistance: number;
|
|
13
|
-
distanceRemain: number;
|
|
14
|
-
prevPos2: PositionMirror;
|
|
15
|
-
prevVelocityKmh: number;
|
|
16
|
-
vPerMs: number;
|
|
17
|
-
nextPos: PositionMirror;
|
|
18
|
-
}
|
|
19
|
-
export declare class GeoCalulator {
|
|
20
|
-
private static readonly EARTH_EQUATORIAL_RADIUS;
|
|
21
|
-
private static readonly EARTH_EQUATORIAL_RADIUS_KM;
|
|
22
|
-
private static readonly EARTH_ECCENTRICITY;
|
|
23
|
-
private static readonly METER_VALUE_PER_LATITUDE;
|
|
24
|
-
private static readonly LATITUDE_POSITION_VALUE_PER_METER;
|
|
25
|
-
static computeDistanceKiloMeter(pos1: PositionMirror, pos2: PositionMirror): number;
|
|
26
|
-
private static deg2rad;
|
|
27
|
-
static convertMeterToLatitudeValue(meter: number): number;
|
|
28
|
-
static convertLatitudeToMeterValue(lat: number): number;
|
|
29
|
-
static convertLongitudeToMeterValue(lat: number, lng: number): number;
|
|
30
|
-
private static readonly CACHE_OF_LNG_PER_METER;
|
|
31
|
-
private static getCacheUnitOfLongitudeValueWithLatitudeInMeter;
|
|
32
|
-
private static getCacheOfLongitudeValueWithLatitudeInMeter;
|
|
33
|
-
private static setCacheOfLongitudeValueWithLatitudeInMeter;
|
|
34
|
-
static calculateLongitudeValueWithLatitudeInMeter(lat: number): number;
|
|
35
|
-
private static readonly MS_FROM_HOUR;
|
|
36
|
-
static computeNextPositionAndDistances(context: NextPositionContext): NextPositionContext;
|
|
37
|
-
}
|
|
38
|
-
export {};
|
|
1
|
+
declare class PositionMirror {
|
|
2
|
+
lat: number;
|
|
3
|
+
lng: number;
|
|
4
|
+
constructor(lat: number, lng: number);
|
|
5
|
+
}
|
|
6
|
+
export interface NextPositionContext {
|
|
7
|
+
pos1: PositionMirror;
|
|
8
|
+
pos2: PositionMirror;
|
|
9
|
+
velocityKmh: number;
|
|
10
|
+
elapsedTimeMs: number;
|
|
11
|
+
totalDistance: number;
|
|
12
|
+
currDistance: number;
|
|
13
|
+
distanceRemain: number;
|
|
14
|
+
prevPos2: PositionMirror;
|
|
15
|
+
prevVelocityKmh: number;
|
|
16
|
+
vPerMs: number;
|
|
17
|
+
nextPos: PositionMirror;
|
|
18
|
+
}
|
|
19
|
+
export declare class GeoCalulator {
|
|
20
|
+
private static readonly EARTH_EQUATORIAL_RADIUS;
|
|
21
|
+
private static readonly EARTH_EQUATORIAL_RADIUS_KM;
|
|
22
|
+
private static readonly EARTH_ECCENTRICITY;
|
|
23
|
+
private static readonly METER_VALUE_PER_LATITUDE;
|
|
24
|
+
private static readonly LATITUDE_POSITION_VALUE_PER_METER;
|
|
25
|
+
static computeDistanceKiloMeter(pos1: PositionMirror, pos2: PositionMirror): number;
|
|
26
|
+
private static deg2rad;
|
|
27
|
+
static convertMeterToLatitudeValue(meter: number): number;
|
|
28
|
+
static convertLatitudeToMeterValue(lat: number): number;
|
|
29
|
+
static convertLongitudeToMeterValue(lat: number, lng: number): number;
|
|
30
|
+
private static readonly CACHE_OF_LNG_PER_METER;
|
|
31
|
+
private static getCacheUnitOfLongitudeValueWithLatitudeInMeter;
|
|
32
|
+
private static getCacheOfLongitudeValueWithLatitudeInMeter;
|
|
33
|
+
private static setCacheOfLongitudeValueWithLatitudeInMeter;
|
|
34
|
+
static calculateLongitudeValueWithLatitudeInMeter(lat: number): number;
|
|
35
|
+
private static readonly MS_FROM_HOUR;
|
|
36
|
+
static computeNextPositionAndDistances(context: NextPositionContext): NextPositionContext;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './animation';
|
|
2
|
-
export * from './geo';
|
|
3
|
-
export * from './waiting';
|
|
4
|
-
export * from './cluster';
|
|
5
|
-
export * from './polygon';
|
|
6
|
-
export * from './log';
|
|
7
|
-
export * from './status';
|
|
8
|
-
export * from './map';
|
|
1
|
+
export * from './animation';
|
|
2
|
+
export * from './geo';
|
|
3
|
+
export * from './waiting';
|
|
4
|
+
export * from './cluster';
|
|
5
|
+
export * from './polygon';
|
|
6
|
+
export * from './log';
|
|
7
|
+
export * from './status';
|
|
8
|
+
export * from './map';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function log(debug: boolean | undefined, label: string | undefined, ...args: any[]): void;
|
|
1
|
+
export declare function log(debug: boolean | undefined, label: string | undefined, ...args: any[]): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MapType, MapVendorType } from "../../types";
|
|
2
|
-
export declare function getMapOfType<T>(mapType: MapType, map?: MapVendorType | null): T | undefined;
|
|
1
|
+
import { MapType, MapVendorType } from "../../types";
|
|
2
|
+
export declare function getMapOfType<T>(mapType: MapType, map?: MapVendorType | null): T | undefined;
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
declare class PositionMirror {
|
|
2
|
-
lat: number;
|
|
3
|
-
lng: number;
|
|
4
|
-
constructor(lat: number, lng: number);
|
|
5
|
-
}
|
|
6
|
-
declare class OffsetMirror {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
constructor(x: number, y: number);
|
|
10
|
-
equals(other?: OffsetMirror): boolean | undefined;
|
|
11
|
-
}
|
|
12
|
-
export declare class PolygonCalculator {
|
|
13
|
-
static getRegionInfo(positions: PositionMirror[]): {
|
|
14
|
-
maxLat: number | undefined;
|
|
15
|
-
minLat: number | undefined;
|
|
16
|
-
maxLng: number | undefined;
|
|
17
|
-
minLng: number | undefined;
|
|
18
|
-
centerLat: number | undefined;
|
|
19
|
-
centerLng: number | undefined;
|
|
20
|
-
};
|
|
21
|
-
static getRegionStart(positions: PositionMirror[]): PositionMirror;
|
|
22
|
-
static getRegionEnd(positions: PositionMirror[]): PositionMirror;
|
|
23
|
-
static getCenter(positions: PositionMirror[]): PositionMirror;
|
|
24
|
-
static intersects(positions1: PositionMirror[], positions2: PositionMirror[]): boolean;
|
|
25
|
-
static getIncludedPositions(polygon: PositionMirror[], position: PositionMirror | PositionMirror[]): PositionMirror[];
|
|
26
|
-
private static convertPolygonToLinePoints;
|
|
27
|
-
private static convertPositionToPoints;
|
|
28
|
-
private static getCrossPoint;
|
|
29
|
-
private static toFixedPosition;
|
|
30
|
-
private static getCrossPointAll;
|
|
31
|
-
private static findCrossPoint;
|
|
32
|
-
static readonly TOLERANCE_NAVER_STYLE = 1;
|
|
33
|
-
static readonly TOLERANCE_GOOGLE_STYLE = 1;
|
|
34
|
-
static simplifyPoints(polygon: OffsetMirror[], tolerance?: number, _lastRepeated?: boolean): OffsetMirror[];
|
|
35
|
-
private static pathCleaning;
|
|
36
|
-
private static simplify;
|
|
37
|
-
private static perpendicularDistanceDenominator;
|
|
38
|
-
private static perpendicularDistance;
|
|
39
|
-
static calculatePolygonSize(polygon: PositionMirror[], innerPolygons?: PositionMirror[][]): number;
|
|
40
|
-
private static calculatePolygonSizeMain;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
1
|
+
declare class PositionMirror {
|
|
2
|
+
lat: number;
|
|
3
|
+
lng: number;
|
|
4
|
+
constructor(lat: number, lng: number);
|
|
5
|
+
}
|
|
6
|
+
declare class OffsetMirror {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
constructor(x: number, y: number);
|
|
10
|
+
equals(other?: OffsetMirror): boolean | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare class PolygonCalculator {
|
|
13
|
+
static getRegionInfo(positions: PositionMirror[]): {
|
|
14
|
+
maxLat: number | undefined;
|
|
15
|
+
minLat: number | undefined;
|
|
16
|
+
maxLng: number | undefined;
|
|
17
|
+
minLng: number | undefined;
|
|
18
|
+
centerLat: number | undefined;
|
|
19
|
+
centerLng: number | undefined;
|
|
20
|
+
};
|
|
21
|
+
static getRegionStart(positions: PositionMirror[]): PositionMirror;
|
|
22
|
+
static getRegionEnd(positions: PositionMirror[]): PositionMirror;
|
|
23
|
+
static getCenter(positions: PositionMirror[]): PositionMirror;
|
|
24
|
+
static intersects(positions1: PositionMirror[], positions2: PositionMirror[]): boolean;
|
|
25
|
+
static getIncludedPositions(polygon: PositionMirror[], position: PositionMirror | PositionMirror[]): PositionMirror[];
|
|
26
|
+
private static convertPolygonToLinePoints;
|
|
27
|
+
private static convertPositionToPoints;
|
|
28
|
+
private static getCrossPoint;
|
|
29
|
+
private static toFixedPosition;
|
|
30
|
+
private static getCrossPointAll;
|
|
31
|
+
private static findCrossPoint;
|
|
32
|
+
static readonly TOLERANCE_NAVER_STYLE = 1;
|
|
33
|
+
static readonly TOLERANCE_GOOGLE_STYLE = 1;
|
|
34
|
+
static simplifyPoints(polygon: OffsetMirror[], tolerance?: number, _lastRepeated?: boolean): OffsetMirror[];
|
|
35
|
+
private static pathCleaning;
|
|
36
|
+
private static simplify;
|
|
37
|
+
private static perpendicularDistanceDenominator;
|
|
38
|
+
private static perpendicularDistance;
|
|
39
|
+
static calculatePolygonSize(polygon: PositionMirror[], innerPolygons?: PositionMirror[][]): number;
|
|
40
|
+
private static calculatePolygonSizeMain;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare class MintMapStatus {
|
|
2
|
-
marker: number;
|
|
3
|
-
byLabel: Map<string, number>;
|
|
4
|
-
init(): void;
|
|
5
|
-
print(): void;
|
|
6
|
-
setMarker(inc: number, label?: string): void;
|
|
7
|
-
}
|
|
8
|
-
export declare const Status: MintMapStatus;
|
|
9
|
-
export {};
|
|
1
|
+
declare class MintMapStatus {
|
|
2
|
+
marker: number;
|
|
3
|
+
byLabel: Map<string, number>;
|
|
4
|
+
init(): void;
|
|
5
|
+
print(): void;
|
|
6
|
+
setMarker(inc: number, label?: string): void;
|
|
7
|
+
}
|
|
8
|
+
export declare const Status: MintMapStatus;
|
|
9
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function waiting(evaluation: () => boolean, timeoutSeconds?: number): Promise<boolean>;
|
|
1
|
+
export declare function waiting(evaluation: () => boolean, timeoutSeconds?: number): Promise<boolean>;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MarkerOptions } from "../../types/MapDrawables";
|
|
3
|
-
import { Offset } from "../../types/MapTypes";
|
|
4
|
-
import { MintMapCanvasRenderer } from "../MintMapCanvasRenderer";
|
|
5
|
-
export declare type CanvasMarkerRenderer<T> = (ctx: MintMapCanvasRenderer, offset: Offset, payload?: T) => void;
|
|
6
|
-
export interface CanvasMarkerMouseEvent {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
}
|
|
10
|
-
export declare type CanvasMarkerMouseEventCallback = (e: CanvasMarkerMouseEvent) => boolean | undefined | void;
|
|
11
|
-
export interface MapCanvasMarkerWrapperProps<T> extends MarkerOptions {
|
|
12
|
-
renderer: CanvasMarkerRenderer<T>;
|
|
13
|
-
payload?: T;
|
|
14
|
-
boxWidth: number;
|
|
15
|
-
boxHeight: number;
|
|
16
|
-
onClick?: CanvasMarkerMouseEventCallback;
|
|
17
|
-
onMouseOver?: CanvasMarkerMouseEventCallback;
|
|
18
|
-
onMouseOut?: CanvasMarkerMouseEventCallback;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Mint Map 컴포넌트
|
|
22
|
-
*
|
|
23
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
24
|
-
*
|
|
25
|
-
* @returns {JSX.Element} JSX
|
|
26
|
-
*/
|
|
27
|
-
export declare function MapCanvasMarkerWrapper<T>(_props: MapCanvasMarkerWrapperProps<T>): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MarkerOptions } from "../../types/MapDrawables";
|
|
3
|
+
import { Offset } from "../../types/MapTypes";
|
|
4
|
+
import { MintMapCanvasRenderer } from "../MintMapCanvasRenderer";
|
|
5
|
+
export declare type CanvasMarkerRenderer<T> = (ctx: MintMapCanvasRenderer, offset: Offset, payload?: T) => void;
|
|
6
|
+
export interface CanvasMarkerMouseEvent {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
}
|
|
10
|
+
export declare type CanvasMarkerMouseEventCallback = (e: CanvasMarkerMouseEvent) => boolean | undefined | void;
|
|
11
|
+
export interface MapCanvasMarkerWrapperProps<T> extends MarkerOptions {
|
|
12
|
+
renderer: CanvasMarkerRenderer<T>;
|
|
13
|
+
payload?: T;
|
|
14
|
+
boxWidth: number;
|
|
15
|
+
boxHeight: number;
|
|
16
|
+
onClick?: CanvasMarkerMouseEventCallback;
|
|
17
|
+
onMouseOver?: CanvasMarkerMouseEventCallback;
|
|
18
|
+
onMouseOut?: CanvasMarkerMouseEventCallback;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Mint Map 컴포넌트
|
|
22
|
+
*
|
|
23
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
24
|
+
*
|
|
25
|
+
* @returns {JSX.Element} JSX
|
|
26
|
+
*/
|
|
27
|
+
export declare function MapCanvasMarkerWrapper<T>(_props: MapCanvasMarkerWrapperProps<T>): JSX.Element;
|
|
@@ -8,12 +8,12 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
8
8
|
|
|
9
9
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* Mint Map 컴포넌트
|
|
13
|
-
*
|
|
14
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
15
|
-
*
|
|
16
|
-
* @returns {JSX.Element} JSX
|
|
11
|
+
/**
|
|
12
|
+
* Mint Map 컴포넌트
|
|
13
|
+
*
|
|
14
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
15
|
+
*
|
|
16
|
+
* @returns {JSX.Element} JSX
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
function MapCanvasMarkerWrapper(_props) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface MapCanvasWrapperProps {
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* Mint Map 컴포넌트
|
|
6
|
-
*
|
|
7
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
8
|
-
*
|
|
9
|
-
* @returns {JSX.Element} JSX
|
|
10
|
-
*/
|
|
11
|
-
export declare function MapCanvasWrapper<T>({ children, ...props }: React.PropsWithChildren<MapCanvasWrapperProps>): JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface MapCanvasWrapperProps {
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Mint Map 컴포넌트
|
|
6
|
+
*
|
|
7
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
8
|
+
*
|
|
9
|
+
* @returns {JSX.Element} JSX
|
|
10
|
+
*/
|
|
11
|
+
export declare function MapCanvasWrapper<T>({ children, ...props }: React.PropsWithChildren<MapCanvasWrapperProps>): JSX.Element;
|
|
@@ -16,12 +16,12 @@ var console = {
|
|
|
16
16
|
log: function () {
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
/**
|
|
20
|
-
* Mint Map 컴포넌트
|
|
21
|
-
*
|
|
22
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
23
|
-
*
|
|
24
|
-
* @returns {JSX.Element} JSX
|
|
19
|
+
/**
|
|
20
|
+
* Mint Map 컴포넌트
|
|
21
|
+
*
|
|
22
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
23
|
+
*
|
|
24
|
+
* @returns {JSX.Element} JSX
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
function MapCanvasWrapper(_a) {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
2
|
-
declare type AlignHorizontal = 'left' | 'right' | 'center';
|
|
3
|
-
declare type AlignVertical = 'top' | 'bottom' | 'center';
|
|
4
|
-
export interface MapControlWrapperProps {
|
|
5
|
-
width?: string | number;
|
|
6
|
-
height?: string | number;
|
|
7
|
-
zIndex?: number;
|
|
8
|
-
positionHorizontal?: AlignHorizontal;
|
|
9
|
-
positionVertical?: AlignVertical;
|
|
10
|
-
disablePointerEvent?: boolean;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Mint Map 컴포넌트
|
|
14
|
-
*
|
|
15
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
16
|
-
*
|
|
17
|
-
* @returns {JSX.Element} JSX
|
|
18
|
-
*/
|
|
19
|
-
export declare function MapControlWrapper({ width, height, positionHorizontal, positionVertical, disablePointerEvent, zIndex, children }: PropsWithChildren<MapControlWrapperProps>): JSX.Element;
|
|
20
|
-
export {};
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
declare type AlignHorizontal = 'left' | 'right' | 'center';
|
|
3
|
+
declare type AlignVertical = 'top' | 'bottom' | 'center';
|
|
4
|
+
export interface MapControlWrapperProps {
|
|
5
|
+
width?: string | number;
|
|
6
|
+
height?: string | number;
|
|
7
|
+
zIndex?: number;
|
|
8
|
+
positionHorizontal?: AlignHorizontal;
|
|
9
|
+
positionVertical?: AlignVertical;
|
|
10
|
+
disablePointerEvent?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Mint Map 컴포넌트
|
|
14
|
+
*
|
|
15
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
16
|
+
*
|
|
17
|
+
* @returns {JSX.Element} JSX
|
|
18
|
+
*/
|
|
19
|
+
export declare function MapControlWrapper({ width, height, positionHorizontal, positionVertical, disablePointerEvent, zIndex, children }: PropsWithChildren<MapControlWrapperProps>): JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -12,12 +12,12 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
12
12
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
13
13
|
|
|
14
14
|
var cn = classNames__default["default"].bind(MintMapWrapper_module);
|
|
15
|
-
/**
|
|
16
|
-
* Mint Map 컴포넌트
|
|
17
|
-
*
|
|
18
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
19
|
-
*
|
|
20
|
-
* @returns {JSX.Element} JSX
|
|
15
|
+
/**
|
|
16
|
+
* Mint Map 컴포넌트
|
|
17
|
+
*
|
|
18
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
19
|
+
*
|
|
20
|
+
* @returns {JSX.Element} JSX
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
function MapControlWrapper(_a) {
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
2
|
-
import { MarkerOptions } from "../../types/MapDrawables";
|
|
3
|
-
import { Position } from "../../types/MapTypes";
|
|
4
|
-
export declare type MovingEventFunciton = () => void;
|
|
5
|
-
export interface MapMarkerMoving {
|
|
6
|
-
positions?: Position[];
|
|
7
|
-
positionClosed?: boolean;
|
|
8
|
-
startPositionIndex?: number;
|
|
9
|
-
velocity?: number;
|
|
10
|
-
loop?: boolean;
|
|
11
|
-
delay?: number;
|
|
12
|
-
autoStart?: boolean;
|
|
13
|
-
fps?: number;
|
|
14
|
-
onMovingStart?: MovingEventFunciton;
|
|
15
|
-
onMovingEnd?: MovingEventFunciton;
|
|
16
|
-
}
|
|
17
|
-
export interface AutoAdjustAnchorConfig {
|
|
18
|
-
marginLeft?: number;
|
|
19
|
-
marginRight?: number;
|
|
20
|
-
marginTop?: number;
|
|
21
|
-
marginBottom?: number;
|
|
22
|
-
}
|
|
23
|
-
export interface MapMarkerWrapperProps extends MarkerOptions {
|
|
24
|
-
topOnClick?: boolean;
|
|
25
|
-
topOnHover?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* 메모리 누수의 위험성이 존재하여 삭제될 예정
|
|
28
|
-
* animation 은 marker wrapper 의 children 레벨에서 구현하는것을 기본으로 한다.
|
|
29
|
-
* @deprecated
|
|
30
|
-
*/
|
|
31
|
-
startAnimationClassName?: string;
|
|
32
|
-
/**
|
|
33
|
-
* 메모리 누수의 위험성이 존재하여 삭제될 예정
|
|
34
|
-
* animation 은 marker wrapper 의 children 레벨에서 구현하는것을 기본으로 한다.
|
|
35
|
-
* @deprecated
|
|
36
|
-
*/
|
|
37
|
-
endAnimationClassName?: string;
|
|
38
|
-
movingAnimation?: MapMarkerMoving;
|
|
39
|
-
disablePointerEvent?: boolean;
|
|
40
|
-
autoFitToViewport?: boolean;
|
|
41
|
-
autoAdjustAnchor?: boolean;
|
|
42
|
-
autoAdjustAnchorConfig?: AutoAdjustAnchorConfig;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Mint Map 컴포넌트
|
|
46
|
-
*
|
|
47
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
48
|
-
*
|
|
49
|
-
* @returns {JSX.Element} JSX
|
|
50
|
-
*/
|
|
51
|
-
export declare function MapMarkerWrapper({ startAnimationClassName, endAnimationClassName, autoFitToViewport, autoAdjustAnchor, autoAdjustAnchorConfig, topOnClick, topOnHover, movingAnimation, disablePointerEvent, children, ...options }: PropsWithChildren<MapMarkerWrapperProps>): JSX.Element;
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import { MarkerOptions } from "../../types/MapDrawables";
|
|
3
|
+
import { Position } from "../../types/MapTypes";
|
|
4
|
+
export declare type MovingEventFunciton = () => void;
|
|
5
|
+
export interface MapMarkerMoving {
|
|
6
|
+
positions?: Position[];
|
|
7
|
+
positionClosed?: boolean;
|
|
8
|
+
startPositionIndex?: number;
|
|
9
|
+
velocity?: number;
|
|
10
|
+
loop?: boolean;
|
|
11
|
+
delay?: number;
|
|
12
|
+
autoStart?: boolean;
|
|
13
|
+
fps?: number;
|
|
14
|
+
onMovingStart?: MovingEventFunciton;
|
|
15
|
+
onMovingEnd?: MovingEventFunciton;
|
|
16
|
+
}
|
|
17
|
+
export interface AutoAdjustAnchorConfig {
|
|
18
|
+
marginLeft?: number;
|
|
19
|
+
marginRight?: number;
|
|
20
|
+
marginTop?: number;
|
|
21
|
+
marginBottom?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface MapMarkerWrapperProps extends MarkerOptions {
|
|
24
|
+
topOnClick?: boolean;
|
|
25
|
+
topOnHover?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 메모리 누수의 위험성이 존재하여 삭제될 예정
|
|
28
|
+
* animation 은 marker wrapper 의 children 레벨에서 구현하는것을 기본으로 한다.
|
|
29
|
+
* @deprecated
|
|
30
|
+
*/
|
|
31
|
+
startAnimationClassName?: string;
|
|
32
|
+
/**
|
|
33
|
+
* 메모리 누수의 위험성이 존재하여 삭제될 예정
|
|
34
|
+
* animation 은 marker wrapper 의 children 레벨에서 구현하는것을 기본으로 한다.
|
|
35
|
+
* @deprecated
|
|
36
|
+
*/
|
|
37
|
+
endAnimationClassName?: string;
|
|
38
|
+
movingAnimation?: MapMarkerMoving;
|
|
39
|
+
disablePointerEvent?: boolean;
|
|
40
|
+
autoFitToViewport?: boolean;
|
|
41
|
+
autoAdjustAnchor?: boolean;
|
|
42
|
+
autoAdjustAnchorConfig?: AutoAdjustAnchorConfig;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Mint Map 컴포넌트
|
|
46
|
+
*
|
|
47
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
48
|
+
*
|
|
49
|
+
* @returns {JSX.Element} JSX
|
|
50
|
+
*/
|
|
51
|
+
export declare function MapMarkerWrapper({ startAnimationClassName, endAnimationClassName, autoFitToViewport, autoAdjustAnchor, autoAdjustAnchorConfig, topOnClick, topOnHover, movingAnimation, disablePointerEvent, children, ...options }: PropsWithChildren<MapMarkerWrapperProps>): JSX.Element;
|
|
@@ -86,12 +86,12 @@ var getMarkersFitPosition = function (containerPosition, containerSize, markerPo
|
|
|
86
86
|
|
|
87
87
|
return 0;
|
|
88
88
|
};
|
|
89
|
-
/**
|
|
90
|
-
* Mint Map 컴포넌트
|
|
91
|
-
*
|
|
92
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
93
|
-
*
|
|
94
|
-
* @returns {JSX.Element} JSX
|
|
89
|
+
/**
|
|
90
|
+
* Mint Map 컴포넌트
|
|
91
|
+
*
|
|
92
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
93
|
+
*
|
|
94
|
+
* @returns {JSX.Element} JSX
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
97
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
2
|
-
import { PolygonOptions } from "../../types/MapDrawables";
|
|
3
|
-
export interface MapPolygonWrapperProps extends PolygonOptions {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Mint Map 컴포넌트
|
|
7
|
-
*
|
|
8
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
9
|
-
*
|
|
10
|
-
* @returns {JSX.Element} JSX
|
|
11
|
-
*/
|
|
12
|
-
export declare function MapPolygonWrapper({ children, ...options }: PropsWithChildren<MapPolygonWrapperProps>): JSX.Element;
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import { PolygonOptions } from "../../types/MapDrawables";
|
|
3
|
+
export interface MapPolygonWrapperProps extends PolygonOptions {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Mint Map 컴포넌트
|
|
7
|
+
*
|
|
8
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
9
|
+
*
|
|
10
|
+
* @returns {JSX.Element} JSX
|
|
11
|
+
*/
|
|
12
|
+
export declare function MapPolygonWrapper({ children, ...options }: PropsWithChildren<MapPolygonWrapperProps>): JSX.Element;
|
|
@@ -11,12 +11,12 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* Mint Map 컴포넌트
|
|
16
|
-
*
|
|
17
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
18
|
-
*
|
|
19
|
-
* @returns {JSX.Element} JSX
|
|
14
|
+
/**
|
|
15
|
+
* Mint Map 컴포넌트
|
|
16
|
+
*
|
|
17
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
18
|
+
*
|
|
19
|
+
* @returns {JSX.Element} JSX
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
function MapPolygonWrapper(_a) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
2
|
-
import { PolylineOptions } from "../../types/MapDrawables";
|
|
3
|
-
export interface MapPolylineWrapperProps extends PolylineOptions {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Mint Map 컴포넌트
|
|
7
|
-
*
|
|
8
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
9
|
-
*
|
|
10
|
-
* @returns {JSX.Element} JSX
|
|
11
|
-
*/
|
|
12
|
-
export declare function MapPolylineWrapper({ children, ...options }: PropsWithChildren<MapPolylineWrapperProps>): JSX.Element;
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import { PolylineOptions } from "../../types/MapDrawables";
|
|
3
|
+
export interface MapPolylineWrapperProps extends PolylineOptions {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Mint Map 컴포넌트
|
|
7
|
+
*
|
|
8
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
9
|
+
*
|
|
10
|
+
* @returns {JSX.Element} JSX
|
|
11
|
+
*/
|
|
12
|
+
export declare function MapPolylineWrapper({ children, ...options }: PropsWithChildren<MapPolylineWrapperProps>): JSX.Element;
|
|
@@ -11,12 +11,12 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* Mint Map 컴포넌트
|
|
16
|
-
*
|
|
17
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
18
|
-
*
|
|
19
|
-
* @returns {JSX.Element} JSX
|
|
14
|
+
/**
|
|
15
|
+
* Mint Map 컴포넌트
|
|
16
|
+
*
|
|
17
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
18
|
+
*
|
|
19
|
+
* @returns {JSX.Element} JSX
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
function MapPolylineWrapper(_a) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './MapControlWrapper';
|
|
2
|
-
export * from './MapMarkerWrapper';
|
|
3
|
-
export * from './MapPolygonWrapper';
|
|
4
|
-
export * from './MapPolylineWrapper';
|
|
5
|
-
export * from './MapCanvasWrapper';
|
|
6
|
-
export * from './MapCanvasMarkerWrapper';
|
|
1
|
+
export * from './MapControlWrapper';
|
|
2
|
+
export * from './MapMarkerWrapper';
|
|
3
|
+
export * from './MapPolygonWrapper';
|
|
4
|
+
export * from './MapPolylineWrapper';
|
|
5
|
+
export * from './MapCanvasWrapper';
|
|
6
|
+
export * from './MapCanvasMarkerWrapper';
|