@mapless/react 0.0.1
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/dist/index.css +622 -0
- package/dist/index.js +4156 -0
- package/dist/types/MapView/index.d.ts +24 -0
- package/dist/types/MapView/index.d.ts.map +1 -0
- package/dist/types/WithMap/WithMapBase.d.ts +33 -0
- package/dist/types/WithMap/WithMapBase.d.ts.map +1 -0
- package/dist/types/WithMap/components/ControlItems/2D3D.d.ts +6 -0
- package/dist/types/WithMap/components/ControlItems/2D3D.d.ts.map +1 -0
- package/dist/types/WithMap/components/ControlItems/DrawTool.d.ts +7 -0
- package/dist/types/WithMap/components/ControlItems/DrawTool.d.ts.map +1 -0
- package/dist/types/WithMap/components/ControlItems/LngLat.d.ts +8 -0
- package/dist/types/WithMap/components/ControlItems/LngLat.d.ts.map +1 -0
- package/dist/types/WithMap/components/ControlItems/MapHand.d.ts +5 -0
- package/dist/types/WithMap/components/ControlItems/MapHand.d.ts.map +1 -0
- package/dist/types/WithMap/components/ControlItems/MapOrigin.d.ts +5 -0
- package/dist/types/WithMap/components/ControlItems/MapOrigin.d.ts.map +1 -0
- package/dist/types/WithMap/components/ControlItems/PositionMkr.d.ts +7 -0
- package/dist/types/WithMap/components/ControlItems/PositionMkr.d.ts.map +1 -0
- package/dist/types/WithMap/components/ControlItems/PositionMus.d.ts +6 -0
- package/dist/types/WithMap/components/ControlItems/PositionMus.d.ts.map +1 -0
- package/dist/types/WithMap/components/ControlItems/SelectTool.d.ts +12 -0
- package/dist/types/WithMap/components/ControlItems/SelectTool.d.ts.map +1 -0
- package/dist/types/WithMap/components/ControlItems/ShowCategory.d.ts +6 -0
- package/dist/types/WithMap/components/ControlItems/ShowCategory.d.ts.map +1 -0
- package/dist/types/WithMap/components/ControlItems/ShowHide.d.ts +8 -0
- package/dist/types/WithMap/components/ControlItems/ShowHide.d.ts.map +1 -0
- package/dist/types/WithMap/components/ControlItems/StyleNames.d.ts +6 -0
- package/dist/types/WithMap/components/ControlItems/StyleNames.d.ts.map +1 -0
- package/dist/types/WithMap/components/ControlItems/StyleSources.d.ts +8 -0
- package/dist/types/WithMap/components/ControlItems/StyleSources.d.ts.map +1 -0
- package/dist/types/WithMap/components/MaplessControlPanel/MaplessControlPanel.d.ts +51 -0
- package/dist/types/WithMap/components/MaplessControlPanel/MaplessControlPanel.d.ts.map +1 -0
- package/dist/types/WithMap/components/MaplessControlPanel/MaplessControlPanelSimple.d.ts +7 -0
- package/dist/types/WithMap/components/MaplessControlPanel/MaplessControlPanelSimple.d.ts.map +1 -0
- package/dist/types/WithMap/components/index.d.ts +19 -0
- package/dist/types/WithMap/components/index.d.ts.map +1 -0
- package/dist/types/WithMap/index.d.ts +9 -0
- package/dist/types/WithMap/index.d.ts.map +1 -0
- package/dist/types/WithMap/utils/StationFuncAdapter.d.ts +3 -0
- package/dist/types/WithMap/utils/StationFuncAdapter.d.ts.map +1 -0
- package/dist/types/WithMap/utils/store.mapState.d.ts +8 -0
- package/dist/types/WithMap/utils/store.mapState.d.ts.map +1 -0
- package/dist/types/WithMap/with/withMapboxMarker.d.ts +30 -0
- package/dist/types/WithMap/with/withMapboxMarker.d.ts.map +1 -0
- package/dist/types/WithMap/with/withMapboxPopup.d.ts +28 -0
- package/dist/types/WithMap/with/withMapboxPopup.d.ts.map +1 -0
- package/dist/types/components/CoordSystemTrans/CoordSystemTrans.d.ts +8 -0
- package/dist/types/components/CoordSystemTrans/CoordSystemTrans.d.ts.map +1 -0
- package/dist/types/components/CoordSystemTrans/demo.d.ts +6 -0
- package/dist/types/components/CoordSystemTrans/demo.d.ts.map +1 -0
- package/dist/types/components/CoordSystemTrans/index.d.ts +4 -0
- package/dist/types/components/CoordSystemTrans/index.d.ts.map +1 -0
- package/dist/types/components/CoordSystemTrans/types.d.ts +45 -0
- package/dist/types/components/CoordSystemTrans/types.d.ts.map +1 -0
- package/dist/types/components/CoordSystemTrans/utils.d.ts +67 -0
- package/dist/types/components/CoordSystemTrans/utils.d.ts.map +1 -0
- package/dist/types/components/CoordinateTrans/CoordinateTrans.d.ts +16 -0
- package/dist/types/components/CoordinateTrans/CoordinateTrans.d.ts.map +1 -0
- package/dist/types/components/CoordinateTrans/components/CoordinateInput/Tips.d.ts +3 -0
- package/dist/types/components/CoordinateTrans/components/CoordinateInput/Tips.d.ts.map +1 -0
- package/dist/types/components/CoordinateTrans/components/CoordinateInput/index.d.ts +5 -0
- package/dist/types/components/CoordinateTrans/components/CoordinateInput/index.d.ts.map +1 -0
- package/dist/types/components/CoordinateTrans/components/CoordinateInput/parseMethods.d.ts +2 -0
- package/dist/types/components/CoordinateTrans/components/CoordinateInput/parseMethods.d.ts.map +1 -0
- package/dist/types/components/CoordinateTrans/components/DDD/index.d.ts +10 -0
- package/dist/types/components/CoordinateTrans/components/DDD/index.d.ts.map +1 -0
- package/dist/types/components/CoordinateTrans/components/DM/index.d.ts +11 -0
- package/dist/types/components/CoordinateTrans/components/DM/index.d.ts.map +1 -0
- package/dist/types/components/CoordinateTrans/components/DMS/index.d.ts +11 -0
- package/dist/types/components/CoordinateTrans/components/DMS/index.d.ts.map +1 -0
- package/dist/types/components/CoordinateTrans/components/FormatChange/index.d.ts +9 -0
- package/dist/types/components/CoordinateTrans/components/FormatChange/index.d.ts.map +1 -0
- package/dist/types/components/CoordinateTrans/components/NWSE/index.d.ts +11 -0
- package/dist/types/components/CoordinateTrans/components/NWSE/index.d.ts.map +1 -0
- package/dist/types/components/CoordinateTrans/components/index.d.ts +37 -0
- package/dist/types/components/CoordinateTrans/components/index.d.ts.map +1 -0
- package/dist/types/components/CoordinateTrans/index.d.ts +7 -0
- package/dist/types/components/CoordinateTrans/index.d.ts.map +1 -0
- package/dist/types/components/CoordinateTrans/weapon.d.ts +35 -0
- package/dist/types/components/CoordinateTrans/weapon.d.ts.map +1 -0
- package/dist/types/components/DraggableMarker/DefaultMarkerChild.d.ts +10 -0
- package/dist/types/components/DraggableMarker/DefaultMarkerChild.d.ts.map +1 -0
- package/dist/types/components/DraggableMarker/DraggableMarker.d.ts +29 -0
- package/dist/types/components/DraggableMarker/DraggableMarker.d.ts.map +1 -0
- package/dist/types/components/DraggableMarker/Group.d.ts +14 -0
- package/dist/types/components/DraggableMarker/Group.d.ts.map +1 -0
- package/dist/types/components/DraggableMarker/index.d.ts +4 -0
- package/dist/types/components/DraggableMarker/index.d.ts.map +1 -0
- package/dist/types/components/DraggableMarker/types.d.ts +11 -0
- package/dist/types/components/DraggableMarker/types.d.ts.map +1 -0
- package/dist/types/components/DraggableMarker/utils.d.ts +6 -0
- package/dist/types/components/DraggableMarker/utils.d.ts.map +1 -0
- package/dist/types/components/ErrorBoundary/ErrorBoundary.d.ts +16 -0
- package/dist/types/components/ErrorBoundary/ErrorBoundary.d.ts.map +1 -0
- package/dist/types/components/ErrorBoundary/index.d.ts +4 -0
- package/dist/types/components/ErrorBoundary/index.d.ts.map +1 -0
- package/dist/types/components/Float/index.d.ts +10 -0
- package/dist/types/components/Float/index.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/2D.d.ts +6 -0
- package/dist/types/components/Icons/generated/2D.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/3D.d.ts +6 -0
- package/dist/types/components/Icons/generated/3D.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/Angle.d.ts +6 -0
- package/dist/types/components/Icons/generated/Angle.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/Area.d.ts +6 -0
- package/dist/types/components/Icons/generated/Area.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/CircleSelect.d.ts +6 -0
- package/dist/types/components/Icons/generated/CircleSelect.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/Copy.d.ts +6 -0
- package/dist/types/components/Icons/generated/Copy.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/Cyber.d.ts +6 -0
- package/dist/types/components/Icons/generated/Cyber.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/FreedomSelect.d.ts +6 -0
- package/dist/types/components/Icons/generated/FreedomSelect.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/GetPosition.d.ts +6 -0
- package/dist/types/components/Icons/generated/GetPosition.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/Hand.d.ts +6 -0
- package/dist/types/components/Icons/generated/Hand.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/Line.d.ts +6 -0
- package/dist/types/components/Icons/generated/Line.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/Marker.d.ts +6 -0
- package/dist/types/components/Icons/generated/Marker.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/Measure.d.ts +6 -0
- package/dist/types/components/Icons/generated/Measure.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/Mode.d.ts +6 -0
- package/dist/types/components/Icons/generated/Mode.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/OriginPosition.d.ts +6 -0
- package/dist/types/components/Icons/generated/OriginPosition.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/Point.d.ts +6 -0
- package/dist/types/components/Icons/generated/Point.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/PointerSelect.d.ts +6 -0
- package/dist/types/components/Icons/generated/PointerSelect.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/Receiver.d.ts +6 -0
- package/dist/types/components/Icons/generated/Receiver.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/RectangleSelect.d.ts +6 -0
- package/dist/types/components/Icons/generated/RectangleSelect.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/Satellite.d.ts +6 -0
- package/dist/types/components/Icons/generated/Satellite.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/SelectTool.d.ts +6 -0
- package/dist/types/components/Icons/generated/SelectTool.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/Streets.d.ts +6 -0
- package/dist/types/components/Icons/generated/Streets.d.ts.map +1 -0
- package/dist/types/components/Icons/generated/index.d.ts +23 -0
- package/dist/types/components/Icons/generated/index.d.ts.map +1 -0
- package/dist/types/components/Icons/index.d.ts +3 -0
- package/dist/types/components/Icons/index.d.ts.map +1 -0
- package/dist/types/components/Icons/types.d.ts +4 -0
- package/dist/types/components/Icons/types.d.ts.map +1 -0
- package/dist/types/components/MapboxMarker/MapboxMarker.d.ts +21 -0
- package/dist/types/components/MapboxMarker/MapboxMarker.d.ts.map +1 -0
- package/dist/types/components/MapboxMarker/index.d.ts +5 -0
- package/dist/types/components/MapboxMarker/index.d.ts.map +1 -0
- package/dist/types/components/MapboxPopup/MapboxPopup.d.ts +15 -0
- package/dist/types/components/MapboxPopup/MapboxPopup.d.ts.map +1 -0
- package/dist/types/components/MapboxPopup/index.d.ts +5 -0
- package/dist/types/components/MapboxPopup/index.d.ts.map +1 -0
- package/dist/types/components/StationMana/index.d.ts +9 -0
- package/dist/types/components/StationMana/index.d.ts.map +1 -0
- package/dist/types/components/StationsClickPanel/StationsClickPanel.d.ts +9 -0
- package/dist/types/components/StationsClickPanel/StationsClickPanel.d.ts.map +1 -0
- package/dist/types/components/StationsClickPanel/StationsClickPanelMarker.d.ts +16 -0
- package/dist/types/components/StationsClickPanel/StationsClickPanelMarker.d.ts.map +1 -0
- package/dist/types/components/StationsClickPanel/index.d.ts +5 -0
- package/dist/types/components/StationsClickPanel/index.d.ts.map +1 -0
- package/dist/types/components/TestPopup/TestPopup.d.ts +8 -0
- package/dist/types/components/TestPopup/TestPopup.d.ts.map +1 -0
- package/dist/types/components/TestPopup/index.d.ts +4 -0
- package/dist/types/components/TestPopup/index.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +12 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/context/MapContext.d.ts +9 -0
- package/dist/types/context/MapContext.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +5 -0
- package/dist/types/hooks/index.d.ts.map +1 -0
- package/dist/types/hooks/useCoordSystem.d.ts +7 -0
- package/dist/types/hooks/useCoordSystem.d.ts.map +1 -0
- package/dist/types/hooks/useSize.d.ts +12 -0
- package/dist/types/hooks/useSize.d.ts.map +1 -0
- package/dist/types/hooks/useTest.d.ts +3 -0
- package/dist/types/hooks/useTest.d.ts.map +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import 'mapbox-gl/dist/mapbox-gl.css';
|
|
3
|
+
import { Mapless, type MapStyle } from '@mapless/core';
|
|
4
|
+
export type MapChangeEvent = 'zoom' | 'ready' | (string & {});
|
|
5
|
+
export type MapChangeEventArgs = {
|
|
6
|
+
type: MapChangeEvent;
|
|
7
|
+
target: Mapless;
|
|
8
|
+
others?: Record<string, unknown>;
|
|
9
|
+
};
|
|
10
|
+
export type MapViewProps = {
|
|
11
|
+
accessToken?: string;
|
|
12
|
+
style?: MapStyle;
|
|
13
|
+
className?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
center?: [number, number];
|
|
16
|
+
zoom?: number;
|
|
17
|
+
onLoad?: (map: Mapless) => void;
|
|
18
|
+
onChange?: (e: MapChangeEventArgs) => void;
|
|
19
|
+
resizable?: boolean;
|
|
20
|
+
};
|
|
21
|
+
declare const MapView: React.FC<MapViewProps>;
|
|
22
|
+
export default MapView;
|
|
23
|
+
export { MapView };
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/MapView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,eAAe,CAAC;AAItE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAkEnC,CAAC;AAGF,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import 'mapbox-gl/dist/mapbox-gl.css';
|
|
3
|
+
import { Mapless, type MapStyle } from '@mapless/core';
|
|
4
|
+
export type WithMapChangeEvent = 'init' | 'zoom' | 'ready' | (string & {});
|
|
5
|
+
export type ThemeMode = 'dark' | 'light' | undefined;
|
|
6
|
+
export type LocaleKey = 'zh-CN' | 'en-US' | undefined;
|
|
7
|
+
export declare const DZ_MAP_STYLE_NAMES: string[];
|
|
8
|
+
export type setMapStateKey = 'zoom' | 'withStyleName' | 'localeKey' | 'themeMode';
|
|
9
|
+
export type WithMapChangeEventArgs = {
|
|
10
|
+
type: WithMapChangeEvent;
|
|
11
|
+
target: Mapless;
|
|
12
|
+
others?: Record<string, unknown>;
|
|
13
|
+
};
|
|
14
|
+
export type WithMapProps = {
|
|
15
|
+
accessToken?: string;
|
|
16
|
+
center?: [number, number];
|
|
17
|
+
zoom?: number;
|
|
18
|
+
mapStyle?: MapStyle;
|
|
19
|
+
defaultThemeMode?: ThemeMode;
|
|
20
|
+
themeMode?: ThemeMode;
|
|
21
|
+
localeKey?: LocaleKey;
|
|
22
|
+
resizable?: boolean;
|
|
23
|
+
onChange?: (e: WithMapChangeEventArgs) => void;
|
|
24
|
+
className?: string;
|
|
25
|
+
style?: React.CSSProperties;
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
};
|
|
28
|
+
export type WithMapBaseRef = {
|
|
29
|
+
setMapState?: (key: setMapStateKey, value: unknown) => void;
|
|
30
|
+
};
|
|
31
|
+
declare const WithMapBase: React.ForwardRefExoticComponent<WithMapProps & React.RefAttributes<WithMapBaseRef>>;
|
|
32
|
+
export default WithMapBase;
|
|
33
|
+
//# sourceMappingURL=WithMapBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithMapBase.d.ts","sourceRoot":"","sources":["../../../src/WithMap/WithMapBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,8BAA8B,CAAC;AACtC,OAAO,EAKL,OAAO,EACP,KAAK,QAAQ,EAEd,MAAM,eAAe,CAAC;AAIvB,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAE3E,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAErD,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;AAEtD,eAAO,MAAM,kBAAkB,UAM9B,CAAC;AAEF,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,eAAe,GACf,WAAW,GACX,WAAW,CAAC;AAEhB,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,kBAAkB,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7D,CAAC;AAEF,QAAA,MAAM,WAAW,qFAiJf,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2D3D.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/ControlItems/2D3D.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAiCA,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawTool.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/ControlItems/DrawTool.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAalE,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;IACvB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf,CAyIA,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LngLat.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/ControlItems/LngLat.tsx"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,MAAM,EACX,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,KAA8B,MAAM,OAAO,CAAC;;aAWxC,OAAO,GAAG,SAAS;aACnB,MAAM;;AA+KjB,wBAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapHand.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/ControlItems/MapHand.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAwBA,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapOrigin.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/ControlItems/MapOrigin.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAwBA,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PositionMkr.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/ControlItems/PositionMkr.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,eAAe,CAAC;AAO7D,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf,CA4GA,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PositionMus.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/ControlItems/PositionMus.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,OAAO,EAAiB,MAAM,eAAe,CAAC;AAOpE,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B,CA4FA,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Mapless, type Station } from '@mapless/core';
|
|
2
|
+
declare const SelectTool: React.FC<{
|
|
3
|
+
mapless: Mapless | undefined;
|
|
4
|
+
statioinFuncPrefix?: string;
|
|
5
|
+
relativeManagerIds?: string[] | undefined;
|
|
6
|
+
reset?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onSelectionChange?: (selected: Station[] | undefined) => void;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}>;
|
|
11
|
+
export default SelectTool;
|
|
12
|
+
//# sourceMappingURL=SelectTool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectTool.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/ControlItems/SelectTool.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,OAAO,EAIZ,KAAK,OAAO,EAEb,MAAM,eAAe,CAAC;AAgBvB,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IACzB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,SAAS,KAAK,IAAI,CAAC;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAsPA,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShowCategory.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/ControlItems/ShowCategory.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CA2CA,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Mapless } from '@mapless/core';
|
|
2
|
+
type ShowHideProps = {
|
|
3
|
+
manaId: string;
|
|
4
|
+
mapless: Mapless | undefined;
|
|
5
|
+
};
|
|
6
|
+
declare const ShowHide: ({ manaId, mapless }: ShowHideProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ShowHide;
|
|
8
|
+
//# sourceMappingURL=ShowHide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShowHide.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/ControlItems/ShowHide.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAM7C,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B,CAAC;AAGF,QAAA,MAAM,QAAQ,GAAI,qBAAqB,aAAa,4CAiCnD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StyleNames.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/ControlItems/StyleNames.tsx"],"names":[],"mappings":"AAiBA,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAChD,CAkEA,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type LiteType } from '@mapless/core';
|
|
2
|
+
declare const StyleSources: React.FC<{
|
|
3
|
+
defaultStyleSource: string;
|
|
4
|
+
styleSource: string;
|
|
5
|
+
onStyleSourceClick: (source: string, sourceItem?: LiteType) => void;
|
|
6
|
+
}>;
|
|
7
|
+
export default StyleSources;
|
|
8
|
+
//# sourceMappingURL=StyleSources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StyleSources.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/ControlItems/StyleSources.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,QAAQ,EAId,MAAM,eAAe,CAAC;AAMvB,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;CACrE,CAuJA,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type Mapless, type Station as MapStation } from '@mapless/core';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import type { setMapStateKey } from '../..';
|
|
4
|
+
type PartProps = {
|
|
5
|
+
show: boolean;
|
|
6
|
+
};
|
|
7
|
+
type MaplessControlPanelProps = {
|
|
8
|
+
mapless: Mapless | undefined;
|
|
9
|
+
setMapState?: (key: setMapStateKey, value: unknown) => void;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
positionMkr?: PartProps;
|
|
12
|
+
lngLatTool?: PartProps;
|
|
13
|
+
drawTool?: {
|
|
14
|
+
show: boolean;
|
|
15
|
+
};
|
|
16
|
+
selectTool?: {
|
|
17
|
+
show: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
statioinFuncPrefix?: string;
|
|
20
|
+
relativeManagerIds?: string[];
|
|
21
|
+
onSelectionChange?: (selected: MapStation[] | undefined) => void;
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
};
|
|
24
|
+
styleSwitcher?: {
|
|
25
|
+
show: boolean;
|
|
26
|
+
};
|
|
27
|
+
xdMode?: {
|
|
28
|
+
show: boolean;
|
|
29
|
+
};
|
|
30
|
+
mapOrigin?: {
|
|
31
|
+
show: boolean;
|
|
32
|
+
onClick?: () => void;
|
|
33
|
+
};
|
|
34
|
+
showHide?: {
|
|
35
|
+
show: boolean;
|
|
36
|
+
manaId: string;
|
|
37
|
+
};
|
|
38
|
+
mapHand?: {
|
|
39
|
+
show: boolean;
|
|
40
|
+
onClick?: () => void;
|
|
41
|
+
};
|
|
42
|
+
showCategory?: {
|
|
43
|
+
show: boolean;
|
|
44
|
+
};
|
|
45
|
+
positionMus?: {
|
|
46
|
+
show: boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
declare const MaplessControlPanel: (props: MaplessControlPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export default MaplessControlPanel;
|
|
51
|
+
//# sourceMappingURL=MaplessControlPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaplessControlPanel.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/MaplessControlPanel/MaplessControlPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EAEZ,KAAK,OAAO,IAAI,UAAU,EAE3B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,SAAS,EAA0C,MAAM,OAAO,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAmBhD,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAGF,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE;QACT,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;IACF,UAAU,CAAC,EAAE;QACX,IAAI,EAAE,OAAO,CAAC;QACd,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;QAC9B,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,SAAS,KAAK,IAAI,CAAC;QACjE,QAAQ,CAAC,EAAE,SAAS,CAAC;KACtB,CAAC;IACF,aAAa,CAAC,EAAE;QACd,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;IACF,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;IACF,SAAS,CAAC,EAAE;QACV,IAAI,EAAE,OAAO,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,IAAI,EAAE,OAAO,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,CAAC,EAAE;QACR,IAAI,EAAE,OAAO,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;IACF,YAAY,CAAC,EAAE;QACb,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;IACF,WAAW,CAAC,EAAE;QACZ,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;CACH,CAAC;AAIF,QAAA,MAAM,mBAAmB,GAAI,OAAO,wBAAwB,4CA6I3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type MaplessControlPanelProps = {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
};
|
|
5
|
+
declare const MaplessControlPanel: (props: MaplessControlPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default MaplessControlPanel;
|
|
7
|
+
//# sourceMappingURL=MaplessControlPanelSimple.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaplessControlPanelSimple.d.ts","sourceRoot":"","sources":["../../../../../src/WithMap/components/MaplessControlPanel/MaplessControlPanelSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,mBAAmB,GAAI,OAAO,wBAAwB,4CAE3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { LiteType } from '@mapless/core';
|
|
2
|
+
import XDMode from './ControlItems/2D3D';
|
|
3
|
+
import DrawTool from './ControlItems/DrawTool';
|
|
4
|
+
import LngLat from './ControlItems/LngLat';
|
|
5
|
+
import MapHand from './ControlItems/MapHand';
|
|
6
|
+
import MapOrigin from './ControlItems/MapOrigin';
|
|
7
|
+
import PositionMkr from './ControlItems/PositionMkr';
|
|
8
|
+
import PositionMus from './ControlItems/PositionMus';
|
|
9
|
+
import SelectTool from './ControlItems/SelectTool';
|
|
10
|
+
import ShowCategory from './ControlItems/ShowCategory';
|
|
11
|
+
import ShowHide from './ControlItems/ShowHide';
|
|
12
|
+
import StyleNames from './ControlItems/StyleNames';
|
|
13
|
+
import StyleSources from './ControlItems/StyleSources';
|
|
14
|
+
import MaplessControlPanel from './MaplessControlPanel/MaplessControlPanel';
|
|
15
|
+
import MaplessControlPanelSimple from './MaplessControlPanel/MaplessControlPanelSimple';
|
|
16
|
+
export default MaplessControlPanel;
|
|
17
|
+
export { MaplessControlPanelSimple };
|
|
18
|
+
export { XDMode, DrawTool, LngLat, MapHand, MapOrigin, PositionMkr, PositionMus, SelectTool, ShowCategory, ShowHide, StyleNames, StyleSources, type LiteType };
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/WithMap/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAC7C,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,mBAAmB,MAAM,2CAA2C,CAAC;AAC5E,OAAO,yBAAyB,MAAM,iDAAiD,CAAC;AAExF,eAAe,mBAAmB,CAAC;AACnC,OAAO,EAAE,yBAAyB,EAAE,CAAC;AACrC,OAAO,EACL,MAAM,EACN,QAAQ,EACR,MAAM,EACN,OAAO,EACP,SAAS,EACT,WAAW,EACX,WAAW,EACX,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,KAAK,QAAQ,EACd,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import MaplessControlPanel from './components';
|
|
2
|
+
import WithMapBase from './WithMapBase';
|
|
3
|
+
import withMapboxMarker from './with/withMapboxMarker';
|
|
4
|
+
import withMapboxPopup from './with/withMapboxPopup';
|
|
5
|
+
export { WithMapBase };
|
|
6
|
+
export { withMapboxPopup, withMapboxMarker, MaplessControlPanel };
|
|
7
|
+
export * from './utils/store.mapState';
|
|
8
|
+
export * from './WithMapBase';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/WithMap/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,cAAc,CAAC;AAC/C,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AACvD,OAAO,eAAe,MAAM,wBAAwB,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,CAAC;AAClE,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const getFunc: (prefix: string) => ((mapless: import("@mapless/core").Mapless | undefined | null, name?: string) => import("@mapless/core").OldStationManager | undefined) | ((mapless: import("@mapless/core").Mapless | undefined | null, name?: string) => import("node_modules/@mapless/core/dist/types/Mapless/mana/newstation").default | undefined);
|
|
2
|
+
export declare const attachFunc: (prefix: string) => ((mapless: import("@mapless/core").Mapless | undefined | null, name?: string) => import("@mapless/core").OldStationManager | undefined) | ((mapless: import("@mapless/core").Mapless | undefined, name?: string, options?: import("@mapless/core").NewStationManagerOptions) => import("node_modules/@mapless/core/dist/types/Mapless/mana/newstation").default | undefined);
|
|
3
|
+
//# sourceMappingURL=StationFuncAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StationFuncAdapter.d.ts","sourceRoot":"","sources":["../../../../src/WithMap/utils/StationFuncAdapter.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,4TAGrC,CAAC;AAUF,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,iXAGxC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type MapStateTag = 'mapStyleName' | 'mapXDMode';
|
|
2
|
+
export declare const storeMapState: (tag: MapStateTag, value: string) => void;
|
|
3
|
+
export declare const getMapState: (tag: MapStateTag) => string | null;
|
|
4
|
+
export declare const getAllMapState: () => {
|
|
5
|
+
mapStyleName: string | null;
|
|
6
|
+
mapXDMode: string | null;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=store.mapState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.mapState.d.ts","sourceRoot":"","sources":["../../../../src/WithMap/utils/store.mapState.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,WAAW,CAAC;AAEvD,eAAO,MAAM,aAAa,GAAI,KAAK,WAAW,EAAE,OAAO,MAAM,SAE5D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,KAAK,WAAW,kBAE3C,CAAC;AAEF,eAAO,MAAM,cAAc;;;CAK1B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { LngLatLike, ManagerEvents, Mapless } from '@mapless/core';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
type SupportedEvents = 'stationsSelected';
|
|
4
|
+
type withMapboxMarker<P> = P & {
|
|
5
|
+
/** Mapless实例 */
|
|
6
|
+
mapless: Mapless | undefined;
|
|
7
|
+
/** 地图是否就绪 */
|
|
8
|
+
isMapReady: boolean;
|
|
9
|
+
/** mana名称 */
|
|
10
|
+
manaName: string;
|
|
11
|
+
/** 事件处理函数,返回弹窗内容组件所需的props和位置 */
|
|
12
|
+
onEvent: (eventData: ManagerEvents[SupportedEvents][0]) => {
|
|
13
|
+
props: Partial<P>;
|
|
14
|
+
lngLat: LngLatLike;
|
|
15
|
+
} | null;
|
|
16
|
+
excludeManaNames?: string[];
|
|
17
|
+
eventName?: SupportedEvents;
|
|
18
|
+
destroyOnClose?: boolean;
|
|
19
|
+
markerClassName?: string;
|
|
20
|
+
onClose?: () => void;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* TODO 实验性组件
|
|
24
|
+
* 创建一个高阶组件,用于将任意组件包装为Mapbox弹窗
|
|
25
|
+
* @param WrappedComponent 要包装的组件
|
|
26
|
+
* @returns 包装后的组件
|
|
27
|
+
*/
|
|
28
|
+
declare function withMapboxMarker<P>(WrappedComponent: React.ComponentType<P>): React.FC<withMapboxMarker<P>>;
|
|
29
|
+
export default withMapboxMarker;
|
|
30
|
+
//# sourceMappingURL=withMapboxMarker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withMapboxMarker.d.ts","sourceRoot":"","sources":["../../../../src/WithMap/with/withMapboxMarker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,UAAU,EACV,aAAa,EACb,OAAO,EACR,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,eAAe,GAAG,kBAAkB,CAAC;AAE1C,KAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,GAAG;IAC7B,gBAAgB;IAChB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,aAAa;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,OAAO,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAK;QACzD,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;QAClB,MAAM,EAAE,UAAU,CAAC;KACpB,GAAG,IAAI,CAAC;IACT,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF;;;;;GAKG;AACH,iBAAS,gBAAgB,CAAC,CAAC,EAAE,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,iCA2FpE;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { LngLatLike, ManagerEvents, Mapless } from '@mapless/core';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
type SupportedEvents = 'stationsSelected' | 'nodeClick' | 'movablesSelected';
|
|
4
|
+
type WithMapboxPopupProps<P> = P & {
|
|
5
|
+
/** Mapless实例 */
|
|
6
|
+
mapless: Mapless | undefined;
|
|
7
|
+
/** 地图是否就绪 */
|
|
8
|
+
isMapReady: boolean;
|
|
9
|
+
/** mana名称 */
|
|
10
|
+
manaName: string;
|
|
11
|
+
/** 事件处理函数,返回弹窗内容组件所需的props和位置 */
|
|
12
|
+
onEvent: (eventData: ManagerEvents[SupportedEvents][0]) => {
|
|
13
|
+
props: Partial<P>;
|
|
14
|
+
lngLat: LngLatLike;
|
|
15
|
+
} | null;
|
|
16
|
+
excludeManaNames?: string[];
|
|
17
|
+
eventName?: SupportedEvents;
|
|
18
|
+
destroyOnClose?: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* TODO 实验性组件
|
|
22
|
+
* 创建一个高阶组件,用于将任意组件包装为Mapbox弹窗
|
|
23
|
+
* @param WrappedComponent 要包装的组件
|
|
24
|
+
* @returns 包装后的组件
|
|
25
|
+
*/
|
|
26
|
+
declare function withMapboxPopup<P>(WrappedComponent: React.ComponentType<P>): React.FC<WithMapboxPopupProps<P>>;
|
|
27
|
+
export default withMapboxPopup;
|
|
28
|
+
//# sourceMappingURL=withMapboxPopup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withMapboxPopup.d.ts","sourceRoot":"","sources":["../../../../src/WithMap/with/withMapboxPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,UAAU,EAEV,aAAa,EACb,OAAO,EAER,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,KAAK,eAAe,GAAG,kBAAkB,GAAG,WAAW,GAAG,kBAAkB,CAAC;AAE7E,KAAK,oBAAoB,CAAC,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,aAAa;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,OAAO,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAK;QACzD,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;QAClB,MAAM,EAAE,UAAU,CAAC;KACpB,GAAG,IAAI,CAAC;IACT,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;;GAKG;AACH,iBAAS,eAAe,CAAC,CAAC,EAAE,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,qCAoHnE;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { CoordSystemTransProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* 坐标系统转换组件
|
|
5
|
+
*/
|
|
6
|
+
export declare const CoordSystemTrans: React.FC<CoordSystemTransProps>;
|
|
7
|
+
export default CoordSystemTrans;
|
|
8
|
+
//# sourceMappingURL=CoordSystemTrans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoordSystemTrans.d.ts","sourceRoot":"","sources":["../../../../src/components/CoordSystemTrans/CoordSystemTrans.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAyB,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAa5E;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAoQ5D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"demo.d.ts","sourceRoot":"","sources":["../../../../src/components/CoordSystemTrans/demo.tsx"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAgFxC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CoordSystemTrans/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { CoordSystem } from '@mapless/core';
|
|
2
|
+
/**
|
|
3
|
+
* 支持的坐标输入格式
|
|
4
|
+
*/
|
|
5
|
+
export type CoordinateInputFormat = 'lng,lat' | 'lat,lng' | 'lng lat' | 'lat lng' | 'lng°lat°' | 'lat°lng°' | 'lng° lat°' | 'lat° lng°';
|
|
6
|
+
/**
|
|
7
|
+
* 坐标解析结果
|
|
8
|
+
*/
|
|
9
|
+
export interface CoordinateParseResult {
|
|
10
|
+
lng: number;
|
|
11
|
+
lat: number;
|
|
12
|
+
isValid: boolean;
|
|
13
|
+
error?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 坐标转换配置
|
|
17
|
+
*/
|
|
18
|
+
export interface CoordTransformConfig {
|
|
19
|
+
sourceSystem: CoordSystem;
|
|
20
|
+
targetSystem: CoordSystem;
|
|
21
|
+
inputFormat: CoordinateInputFormat;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 组件Props
|
|
25
|
+
*/
|
|
26
|
+
export interface CoordSystemTransProps {
|
|
27
|
+
/** 初始源坐标系 */
|
|
28
|
+
initialSourceSystem?: CoordSystem;
|
|
29
|
+
/** 初始目标坐标系 */
|
|
30
|
+
initialTargetSystem?: CoordSystem;
|
|
31
|
+
/** 初始输入格式 */
|
|
32
|
+
initialInputFormat?: CoordinateInputFormat;
|
|
33
|
+
/** 是否显示输入格式选择器 */
|
|
34
|
+
showFormatSelector?: boolean;
|
|
35
|
+
/** 自定义样式类名 */
|
|
36
|
+
className?: string;
|
|
37
|
+
/** 坐标转换回调 */
|
|
38
|
+
onTransform?: (result: {
|
|
39
|
+
sourceCoord: [number, number];
|
|
40
|
+
targetCoord: [number, number];
|
|
41
|
+
sourceSystem: CoordSystem;
|
|
42
|
+
targetSystem: CoordSystem;
|
|
43
|
+
}) => void;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/CoordSystemTrans/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAC7B,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,CAAC;AAEhB;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,WAAW,CAAC;IAC1B,YAAY,EAAE,WAAW,CAAC;IAC1B,WAAW,EAAE,qBAAqB,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,aAAa;IACb,mBAAmB,CAAC,EAAE,WAAW,CAAC;IAClC,cAAc;IACd,mBAAmB,CAAC,EAAE,WAAW,CAAC;IAClC,aAAa;IACb,kBAAkB,CAAC,EAAE,qBAAqB,CAAC;IAC3C,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa;IACb,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE;QACrB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC9B,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC9B,YAAY,EAAE,WAAW,CAAC;QAC1B,YAAY,EAAE,WAAW,CAAC;KAC3B,KAAK,IAAI,CAAC;CACZ"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { CoordinateParseResult } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* 坐标解析器 - 支持多种输入格式
|
|
4
|
+
*/
|
|
5
|
+
export declare class CoordinateParser {
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
constructor();
|
|
10
|
+
/**
|
|
11
|
+
* 解析坐标字符串(自动识别格式,默认前数字为经度,后数字为纬度)
|
|
12
|
+
*/
|
|
13
|
+
static parse(input: string): CoordinateParseResult;
|
|
14
|
+
/**
|
|
15
|
+
* 智能解析(自动识别格式,默认前数字为经度,后数字为纬度)
|
|
16
|
+
*/
|
|
17
|
+
private static parseSmart;
|
|
18
|
+
/**
|
|
19
|
+
* 基于分隔符的智能解析(默认前数字为经度,后数字为纬度)
|
|
20
|
+
*/
|
|
21
|
+
private static parseSmartBySeparator;
|
|
22
|
+
/**
|
|
23
|
+
* 自动解析(尝试多种格式)
|
|
24
|
+
*/
|
|
25
|
+
private static parseAuto;
|
|
26
|
+
/**
|
|
27
|
+
* 使用指定格式解析(内部方法)
|
|
28
|
+
*/
|
|
29
|
+
private static parseWithFormat;
|
|
30
|
+
/**
|
|
31
|
+
* 解析 "经度,纬度" 格式
|
|
32
|
+
*/
|
|
33
|
+
private static parseLngLatComma;
|
|
34
|
+
/**
|
|
35
|
+
* 解析 "纬度,经度" 格式
|
|
36
|
+
*/
|
|
37
|
+
private static parseLatLngComma;
|
|
38
|
+
/**
|
|
39
|
+
* 解析 "经度 纬度" 格式
|
|
40
|
+
*/
|
|
41
|
+
private static parseLngLatSpace;
|
|
42
|
+
/**
|
|
43
|
+
* 解析 "纬度 经度" 格式
|
|
44
|
+
*/
|
|
45
|
+
private static parseLatLngSpace;
|
|
46
|
+
/**
|
|
47
|
+
* 解析带中文标签的格式(如:经度: 104.044124, 纬度: 30.677825)
|
|
48
|
+
*/
|
|
49
|
+
private static parseChineseLabelFormat;
|
|
50
|
+
/**
|
|
51
|
+
* 解析度分秒格式
|
|
52
|
+
*/
|
|
53
|
+
private static parseLngLatDegree;
|
|
54
|
+
/**
|
|
55
|
+
* 解析 "纬度°经度°" 格式
|
|
56
|
+
*/
|
|
57
|
+
private static parseLatLngDegree;
|
|
58
|
+
/**
|
|
59
|
+
* 验证坐标有效性并返回结果
|
|
60
|
+
*/
|
|
61
|
+
private static validateAndReturn;
|
|
62
|
+
/**
|
|
63
|
+
* 格式化坐标显示
|
|
64
|
+
*/
|
|
65
|
+
static format(lng: number, lat: number, precision?: number): string;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/CoordSystemTrans/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAyB,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE5E;;GAEG;AACH,qBAAa,gBAAgB;IAC3B;;OAEG;;IAKH;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,qBAAqB;IAoBlD;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,UAAU;IAWzB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,qBAAqB;IA+CpC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,SAAS;IAuBxB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IA0B9B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAY/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAY/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAY/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAY/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,uBAAuB;IA0BtC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAkBhC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAkBhC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAmBhC;;OAEG;IACH,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,GAAE,MAAU,GAAG,MAAM;CAGvE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Format } from './weapon';
|
|
2
|
+
export type FormatValue = (typeof Format)[keyof typeof Format];
|
|
3
|
+
type CoordinateTransProps = {
|
|
4
|
+
maximum: number;
|
|
5
|
+
minimum: number;
|
|
6
|
+
value: number | null;
|
|
7
|
+
units: string[];
|
|
8
|
+
onChange: (val: number | null) => void;
|
|
9
|
+
showFormat?: FormatValue;
|
|
10
|
+
showFormatChangeBtn?: boolean;
|
|
11
|
+
onFormatChange?: (format: FormatValue) => void;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
};
|
|
14
|
+
declare const CoordinateTrans: (props: CoordinateTransProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default CoordinateTrans;
|
|
16
|
+
//# sourceMappingURL=CoordinateTrans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoordinateTrans.d.ts","sourceRoot":"","sources":["../../../../src/components/CoordinateTrans/CoordinateTrans.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAA+B,MAAM,UAAU,CAAC;AAO/D,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAE/D,KAAK,oBAAoB,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACvC,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,OAAO,oBAAoB,4CA+EnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tips.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CoordinateTrans/components/CoordinateInput/Tips.tsx"],"names":[],"mappings":";AAiCA,wBAA0B"}
|