@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,6 @@
|
|
|
1
|
+
/** biome-ignore-all assist/source/organizeImports: off */
|
|
2
|
+
/** biome-ignore-all lint/a11y/noSvgWithoutTitle: off */
|
|
3
|
+
import type { SVGProps } from "react";
|
|
4
|
+
declare const SvgSelectTool: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default SvgSelectTool;
|
|
6
|
+
//# sourceMappingURL=SelectTool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectTool.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icons/generated/SelectTool.tsx"],"names":[],"mappings":"AACA,0DAA0D;AAC1D,wDAAwD;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,QAAA,MAAM,aAAa,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,4CAapD,CAAC;AACF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** biome-ignore-all assist/source/organizeImports: off */
|
|
2
|
+
/** biome-ignore-all lint/a11y/noSvgWithoutTitle: off */
|
|
3
|
+
import type { SVGProps } from "react";
|
|
4
|
+
declare const SvgStreets: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default SvgStreets;
|
|
6
|
+
//# sourceMappingURL=Streets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Streets.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icons/generated/Streets.tsx"],"names":[],"mappings":"AACA,0DAA0D;AAC1D,wDAAwD;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,QAAA,MAAM,UAAU,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,4CAajD,CAAC;AACF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { default as _2dSvg } from './2D';
|
|
2
|
+
export { default as _3dSvg } from './3D';
|
|
3
|
+
export { default as angleSvg } from './Angle';
|
|
4
|
+
export { default as areaSvg } from './Area';
|
|
5
|
+
export { default as circleSelectSvg } from './CircleSelect';
|
|
6
|
+
export { default as copySvg } from './Copy';
|
|
7
|
+
export { default as cyberSvg } from './Cyber';
|
|
8
|
+
export { default as freedomSelectSvg } from './FreedomSelect';
|
|
9
|
+
export { default as getPositionSvg } from './GetPosition';
|
|
10
|
+
export { default as handSvg } from './Hand';
|
|
11
|
+
export { default as lineSvg } from './Line';
|
|
12
|
+
export { default as markerSvg } from './Marker';
|
|
13
|
+
export { default as measureSvg } from './Measure';
|
|
14
|
+
export { default as modeSvg } from './Mode';
|
|
15
|
+
export { default as originPositionSvg } from './OriginPosition';
|
|
16
|
+
export { default as pointSvg } from './Point';
|
|
17
|
+
export { default as pointerSelectSvg } from './PointerSelect';
|
|
18
|
+
export { default as receiverSvg } from './Receiver';
|
|
19
|
+
export { default as rectangleSelectSvg } from './RectangleSelect';
|
|
20
|
+
export { default as satelliteSvg } from './Satellite';
|
|
21
|
+
export { default as selectToolSvg } from './SelectTool';
|
|
22
|
+
export { default as streetsSvg } from './Streets';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icons/generated/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Icons/index.ts"],"names":[],"mappings":"AAkDA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Icons/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CAChC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Anchor, type Mapless, type PointLike } from '@mapless/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type MapboxMarkerProps = {
|
|
4
|
+
maplessRef?: React.RefObject<Mapless | undefined>;
|
|
5
|
+
lngLat: mapboxgl.LngLatLike;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
offset?: PointLike;
|
|
9
|
+
offsetX?: number;
|
|
10
|
+
offsetY?: number;
|
|
11
|
+
anchor?: Anchor;
|
|
12
|
+
transparent?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export interface MapboxMarkerRef {
|
|
15
|
+
show: () => void;
|
|
16
|
+
showOnce: () => void;
|
|
17
|
+
hide: () => void;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<MapboxMarkerProps & React.RefAttributes<unknown>>>;
|
|
20
|
+
export default _default;
|
|
21
|
+
//# sourceMappingURL=MapboxMarker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapboxMarker.d.ts","sourceRoot":"","sources":["../../../../src/components/MapboxMarker/MapboxMarker.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,OAAO,EAEZ,KAAK,SAAS,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,KAMN,MAAM,OAAO,CAAC;AAOf,KAAK,iBAAiB,GAAG;IACvB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAClD,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB;;AAiHD,wBAAwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/MapboxMarker/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Mapless } from '@mapless/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type MapboxPopupProps = {
|
|
4
|
+
maplessRef?: React.RefObject<Mapless | undefined>;
|
|
5
|
+
lngLat: mapboxgl.LngLatLike;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
};
|
|
9
|
+
export interface MapboxPopupRef {
|
|
10
|
+
show: () => void;
|
|
11
|
+
hide: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<MapboxPopupProps & React.RefAttributes<unknown>>>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=MapboxPopup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapboxPopup.d.ts","sourceRoot":"","sources":["../../../../src/components/MapboxPopup/MapboxPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAS,MAAM,eAAe,CAAC;AACpD,OAAO,KAON,MAAM,OAAO,CAAC;AAOf,KAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAClD,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB;;AAsFD,wBAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/MapboxPopup/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Station } from '@mapless/core';
|
|
2
|
+
interface StationManaProps {
|
|
3
|
+
id: string;
|
|
4
|
+
stations: Station[];
|
|
5
|
+
}
|
|
6
|
+
declare function StationMana({ id, stations }: StationManaProps): null;
|
|
7
|
+
export default StationMana;
|
|
8
|
+
export { StationMana };
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/StationMana/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,OAAO,EAAE,MAAM,eAAe,CAAC;AAShE,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AAMD,iBAAS,WAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,gBAAgB,QA8BtD;AAED,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Station } from '@mapless/core';
|
|
2
|
+
type StationsClickPanelProps = {
|
|
3
|
+
stations: Station[] | undefined | null;
|
|
4
|
+
onSelected?: (stations: Station[] | undefined | null) => void;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare const StationsClickPanel: (props: StationsClickPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default StationsClickPanel;
|
|
9
|
+
//# sourceMappingURL=StationsClickPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StationsClickPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/StationsClickPanel/StationsClickPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAM7C,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,IAAI,CAAC;IACvC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,4CAqGzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { LngLatLike, Station, StationManagerEvents } from '@mapless/core';
|
|
2
|
+
import { withMapboxMarker } from '../../WithMap';
|
|
3
|
+
declare const StationClickPanelMarker: import("react").FC<withMapboxMarker<{
|
|
4
|
+
stations: Station[] | undefined | null;
|
|
5
|
+
onSelected?: (stations: Station[] | undefined | null) => void;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
}>>;
|
|
8
|
+
export default StationClickPanelMarker;
|
|
9
|
+
declare const onDefaultEvent: (e: StationManagerEvents["stationsSelected"][0], stations: Station[] | undefined | null) => {
|
|
10
|
+
props: {
|
|
11
|
+
stations: Station[];
|
|
12
|
+
};
|
|
13
|
+
lngLat: LngLatLike;
|
|
14
|
+
} | null;
|
|
15
|
+
export { onDefaultEvent };
|
|
16
|
+
//# sourceMappingURL=StationsClickPanelMarker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StationsClickPanelMarker.d.ts","sourceRoot":"","sources":["../../../../src/components/StationsClickPanel/StationsClickPanelMarker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGjD,QAAA,MAAM,uBAAuB;;;;GAAuC,CAAC;AACrE,eAAe,uBAAuB,CAAC;AAEvC,QAAA,MAAM,cAAc,GAClB,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,EAC9C,UAAU,OAAO,EAAE,GAAG,SAAS,GAAG,IAAI;;;;;QAuBvC,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import StationsClickPanel from './StationsClickPanel';
|
|
2
|
+
import StationsClickPanelMarker, { onDefaultEvent } from './StationsClickPanelMarker';
|
|
3
|
+
export default StationsClickPanel;
|
|
4
|
+
export { StationsClickPanelMarker, onDefaultEvent };
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/StationsClickPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,wBAAwB,EAAE,EAC/B,cAAc,EACf,MAAM,4BAA4B,CAAC;AAEpC,eAAe,kBAAkB,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
type MapboxPopupProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
lngLat: mapboxgl.LngLatLike;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: React.NamedExoticComponent<MapboxPopupProps>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=TestPopup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestPopup.d.ts","sourceRoot":"","sources":["../../../../src/components/TestPopup/TestPopup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,KAAK,gBAAgB,GAAG;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC;CAC7B,CAAC;;AAqCF,wBAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TestPopup/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,eAAe,SAAS,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './CoordinateTrans';
|
|
2
|
+
export * from './CoordSystemTrans';
|
|
3
|
+
export * from './DraggableMarker';
|
|
4
|
+
export * from './ErrorBoundary';
|
|
5
|
+
export * from './Float';
|
|
6
|
+
export * from './Icons';
|
|
7
|
+
export * from './MapboxMarker';
|
|
8
|
+
export * from './MapboxPopup';
|
|
9
|
+
export * from './StationMana';
|
|
10
|
+
export * from './StationsClickPanel';
|
|
11
|
+
export * from './TestPopup';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Mapless } from '@mapless/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface MapContextType {
|
|
4
|
+
mapless: Mapless | undefined;
|
|
5
|
+
isMapReady: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const MapContext: React.Context<MapContextType>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=MapContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapContext.d.ts","sourceRoot":"","sources":["../../../src/context/MapContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,cAAc;IACtB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,+BAGrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CoordSystem, Mapless } from '@mapless/core';
|
|
2
|
+
declare const useCoordSystem: (mapless?: Mapless) => {
|
|
3
|
+
coordSystem: CoordSystem | undefined;
|
|
4
|
+
prevCoordSystem: CoordSystem | undefined;
|
|
5
|
+
};
|
|
6
|
+
export default useCoordSystem;
|
|
7
|
+
//# sourceMappingURL=useCoordSystem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCoordSystem.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCoordSystem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG1D,QAAA,MAAM,cAAc,GAAI,UAAU,OAAO;;;CAyBxC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Mapless } from '@mapless/core';
|
|
2
|
+
type SizeProps = {
|
|
3
|
+
resizable: boolean;
|
|
4
|
+
mapviewRef: React.RefObject<HTMLDivElement | null>;
|
|
5
|
+
mapContainer: React.RefObject<HTMLDivElement | null>;
|
|
6
|
+
maplessInstanceRef: React.RefObject<Mapless | undefined>;
|
|
7
|
+
};
|
|
8
|
+
declare const useSize: (sizeProps: SizeProps) => {
|
|
9
|
+
resizeOnce: () => void;
|
|
10
|
+
};
|
|
11
|
+
export default useSize;
|
|
12
|
+
//# sourceMappingURL=useSize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSize.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,KAAK,SAAS,GAAG;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACnD,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACrD,kBAAkB,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CAC1D,CAAC;AAEF,QAAA,MAAM,OAAO,GAAI,WAAW,SAAS;;CAiCpC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTest.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTest.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO,YAQZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import MapView, { type MapChangeEventArgs } from './MapView';
|
|
2
|
+
export { MapView };
|
|
3
|
+
export type { MapChangeEventArgs };
|
|
4
|
+
export * from './components';
|
|
5
|
+
export { CoordSystemTransDemo } from './components/CoordSystemTrans/demo';
|
|
6
|
+
export * from './hooks';
|
|
7
|
+
export * from './WithMap';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,KAAK,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE7D,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mapless/react",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "React components for mapless library",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./styles": "./dist/index.css"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "rslib build",
|
|
22
|
+
"dev": "rslib build --watch",
|
|
23
|
+
"clean": "rimraf dist",
|
|
24
|
+
"generate:svgs": "node ./scripts/generate-svgs.js",
|
|
25
|
+
"prebuild": "pnpm run generate:svgs"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"mapbox",
|
|
29
|
+
"mapless",
|
|
30
|
+
"react",
|
|
31
|
+
"typescript"
|
|
32
|
+
],
|
|
33
|
+
"dependencies": {},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@rsbuild/plugin-less": "^1.5.0",
|
|
36
|
+
"@rsbuild/plugin-react": "^1.4.2",
|
|
37
|
+
"@rsbuild/plugin-svgr": "^1.2.3",
|
|
38
|
+
"@rslib/core": "^0.18.4",
|
|
39
|
+
"@svgr/cli": "^8.1.0",
|
|
40
|
+
"@svgr/core": "^8.1.0",
|
|
41
|
+
"@types/node": "^22.19.2",
|
|
42
|
+
"rimraf": "^5.0.1"
|
|
43
|
+
},
|
|
44
|
+
"author": {
|
|
45
|
+
"name": "Mapless Team"
|
|
46
|
+
},
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "https://github.com/mapless-io/mapless.git"
|
|
51
|
+
},
|
|
52
|
+
"homepage": "https://github.com/mapless-io/mapless",
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "https://github.com/mapless-io/mapless/issues"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"@mapless/core": "^0.0.1",
|
|
58
|
+
"@ant-design/icons": "^6.1.0",
|
|
59
|
+
"antd": "^6.1.1",
|
|
60
|
+
"mapbox-gl": "^3.17.0",
|
|
61
|
+
"react": "^19.0.0",
|
|
62
|
+
"react-dom": "^19.0.0"
|
|
63
|
+
}
|
|
64
|
+
}
|