mapixa 1.0.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/LICENSE +21 -0
- package/README.md +276 -0
- package/dist/components/DrawTools/DrawCircleControl.d.ts +18 -0
- package/dist/components/DrawTools/DrawLineControl.d.ts +17 -0
- package/dist/components/DrawTools/DrawMarkerControl.d.ts +19 -0
- package/dist/components/DrawTools/DrawPolygonControl.d.ts +18 -0
- package/dist/components/DrawTools/DrawRectangleControl.d.ts +19 -0
- package/dist/components/DrawTools/FreeDrawControl.d.ts +8 -0
- package/dist/components/DrawTools/IntersectionControl.d.ts +8 -0
- package/dist/components/DrawTools/MapDrawTools.d.ts +9 -0
- package/dist/components/ExpandableBox.d.ts +11 -0
- package/dist/components/ExtraActionButtons.d.ts +7 -0
- package/dist/components/ExtraTools/CaptureAreaControl.d.ts +8 -0
- package/dist/components/ExtraTools/DrawRulerControl.d.ts +8 -0
- package/dist/components/ExtraTools/ExtraMapTools.d.ts +9 -0
- package/dist/components/ExtraTools/GoToControl.d.ts +7 -0
- package/dist/components/ExtraTools/ImageOverlayControl.d.ts +18 -0
- package/dist/components/LayerVisibilityControl/LayerVisibilityControl.d.ts +6 -0
- package/dist/components/MapControlBox.d.ts +14 -0
- package/dist/components/MapLibreTools.d.ts +85 -0
- package/dist/components/NavigationTools/CoordinateDisplay.d.ts +7 -0
- package/dist/components/NavigationTools/MapFlatViewEnforcer.d.ts +5 -0
- package/dist/components/NavigationTools/MapNavigator.d.ts +7 -0
- package/dist/components/NavigationTools/MapResizeHandler.d.ts +5 -0
- package/dist/components/NavigationTools/MapViewControl.d.ts +3 -0
- package/dist/components/ui/Icons.d.ts +36 -0
- package/dist/components/ui/Modal.d.ts +11 -0
- package/dist/components/ui/Popover.d.ts +10 -0
- package/dist/context/AccordionGroupContext.d.ts +8 -0
- package/dist/context/LayerVisibilityContext.d.ts +20 -0
- package/dist/context/MapToolContext.d.ts +32 -0
- package/dist/index.cjs +9311 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.js +52894 -0
- package/dist/index.js.map +1 -0
- package/dist/mapixa.css +1 -0
- package/dist/types/events.d.ts +32 -0
- package/dist/types/tools.d.ts +59 -0
- package/dist/utils/exportUtils.d.ts +17 -0
- package/dist/utils/generateMarkerSvg.d.ts +12 -0
- package/dist/utils/geoCalculations.d.ts +25 -0
- package/dist/utils/mapToolButtonStyles.d.ts +4 -0
- package/package.json +99 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { default as MapLibreTools } from './components/MapLibreTools';
|
|
2
|
+
export { MapLibreTools, MapLibreTools as Mapixa } from './components/MapLibreTools';
|
|
3
|
+
export type { MapLibreToolsProps, MapLibreToolsProps as MapixaProps, } from './components/MapLibreTools';
|
|
4
|
+
export { MapControlBox } from './components/MapControlBox';
|
|
5
|
+
export type { MapControlBoxProps } from './components/MapControlBox';
|
|
6
|
+
export { ExpandableBox } from './components/ExpandableBox';
|
|
7
|
+
export type { ExpandableBoxProps } from './components/ExpandableBox';
|
|
8
|
+
export { ExtraActionButtons } from './components/ExtraActionButtons';
|
|
9
|
+
export type { ExtraActionButtonsProps } from './components/ExtraActionButtons';
|
|
10
|
+
export { LayerVisibilityControl } from './components/LayerVisibilityControl/LayerVisibilityControl';
|
|
11
|
+
export type { LayerVisibilityControlProps } from './components/LayerVisibilityControl/LayerVisibilityControl';
|
|
12
|
+
export { MapDrawTools } from './components/DrawTools/MapDrawTools';
|
|
13
|
+
export type { MapDrawToolsProps } from './components/DrawTools/MapDrawTools';
|
|
14
|
+
export { DrawMarkerControl } from './components/DrawTools/DrawMarkerControl';
|
|
15
|
+
export type { DrawMarkerControlProps, MarkerItem } from './components/DrawTools/DrawMarkerControl';
|
|
16
|
+
export { DrawLineControl } from './components/DrawTools/DrawLineControl';
|
|
17
|
+
export type { DrawLineControlProps, LineItem } from './components/DrawTools/DrawLineControl';
|
|
18
|
+
export { DrawPolygonControl } from './components/DrawTools/DrawPolygonControl';
|
|
19
|
+
export type { DrawPolygonControlProps, PolygonItem } from './components/DrawTools/DrawPolygonControl';
|
|
20
|
+
export { DrawCircleControl } from './components/DrawTools/DrawCircleControl';
|
|
21
|
+
export type { DrawCircleControlProps, CircleItem } from './components/DrawTools/DrawCircleControl';
|
|
22
|
+
export { DrawRectangleControl } from './components/DrawTools/DrawRectangleControl';
|
|
23
|
+
export type { DrawRectangleControlProps, RectangleItem } from './components/DrawTools/DrawRectangleControl';
|
|
24
|
+
export { FreeDrawControl } from './components/DrawTools/FreeDrawControl';
|
|
25
|
+
export type { FreeDrawControlProps } from './components/DrawTools/FreeDrawControl';
|
|
26
|
+
export { IntersectionControl } from './components/DrawTools/IntersectionControl';
|
|
27
|
+
export type { IntersectionControlProps } from './components/DrawTools/IntersectionControl';
|
|
28
|
+
export { ExtraMapTools } from './components/ExtraTools/ExtraMapTools';
|
|
29
|
+
export type { ExtraMapToolsProps } from './components/ExtraTools/ExtraMapTools';
|
|
30
|
+
export { DrawRulerControl } from './components/ExtraTools/DrawRulerControl';
|
|
31
|
+
export type { DrawRulerControlProps } from './components/ExtraTools/DrawRulerControl';
|
|
32
|
+
export { CaptureAreaControl } from './components/ExtraTools/CaptureAreaControl';
|
|
33
|
+
export type { CaptureAreaControlProps } from './components/ExtraTools/CaptureAreaControl';
|
|
34
|
+
export { GoToControl } from './components/ExtraTools/GoToControl';
|
|
35
|
+
export type { GoToControlProps } from './components/ExtraTools/GoToControl';
|
|
36
|
+
export { ImageOverlayControl } from './components/ExtraTools/ImageOverlayControl';
|
|
37
|
+
export type { ImageOverlayControlProps, OverlayImageItem } from './components/ExtraTools/ImageOverlayControl';
|
|
38
|
+
export { MapNavigator } from './components/NavigationTools/MapNavigator';
|
|
39
|
+
export type { MapNavigatorProps } from './components/NavigationTools/MapNavigator';
|
|
40
|
+
export { CoordinateDisplay } from './components/NavigationTools/CoordinateDisplay';
|
|
41
|
+
export type { CoordinateDisplayProps } from './components/NavigationTools/CoordinateDisplay';
|
|
42
|
+
export { MapViewControl } from './components/NavigationTools/MapViewControl';
|
|
43
|
+
export { MapFlatViewEnforcer } from './components/NavigationTools/MapFlatViewEnforcer';
|
|
44
|
+
export { MapResizeHandler } from './components/NavigationTools/MapResizeHandler';
|
|
45
|
+
export { MapToolProvider, useMapTool, useExclusiveTool, } from './context/MapToolContext';
|
|
46
|
+
export type { ActiveTool, MapToolContextValue, MapToolProviderProps, } from './context/MapToolContext';
|
|
47
|
+
export { LayerVisibilityProvider, useLayerVisibility, TOOL_LAYER_MAP, } from './context/LayerVisibilityContext';
|
|
48
|
+
export type { LayerVisibilityContextValue, LayerVisibilityProviderProps, } from './context/LayerVisibilityContext';
|
|
49
|
+
export { AccordionGroupProvider, useAccordionGroupItem, } from './context/AccordionGroupContext';
|
|
50
|
+
export type { ToolType, AfterDrawMode, ToolMetrics, ActionContext, ExtraActionItem, LayerVisibilityState, ToolConfig, ToolsConfiguration, } from './types/tools';
|
|
51
|
+
export type { DrawEndEvent, DrawChangeEvent, DrawDeleteEvent, LayerVisibilityChangeEvent, } from './types/events';
|
|
52
|
+
export { calculateDistanceKm, calculateLineDistanceKm, calculatePolygonAreaSqM, createGeoJSONCircle, getMidpoint, getLineIntersection, } from './utils/geoCalculations';
|
|
53
|
+
export { downloadGeoJSON, copyToClipboard, downloadCanvasArea, } from './utils/exportUtils';
|
|
54
|
+
export { generateMarkerSvg } from './utils/generateMarkerSvg';
|
|
55
|
+
export type { MarkerSvgConfig } from './utils/generateMarkerSvg';
|
|
56
|
+
export { getMapToolButtonStyle, getMapToolButtonSx, getMapToolAccordionButtonSx, } from './utils/mapToolButtonStyles';
|
|
57
|
+
export { Modal } from './components/ui/Modal';
|
|
58
|
+
export type { ModalProps } from './components/ui/Modal';
|
|
59
|
+
export { Popover } from './components/ui/Popover';
|
|
60
|
+
export type { PopoverProps } from './components/ui/Popover';
|
|
61
|
+
export * from './components/ui/Icons';
|
|
62
|
+
export default MapLibreTools;
|