@mapless/react 0.0.1 → 0.0.4
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 +5 -2
- package/dist/index.js +40 -5
- package/dist/types/WithMap/WithMapBase.d.ts.map +1 -1
- package/dist/types/components/CoordinateTrans/components/index.d.ts +2 -1
- package/dist/types/components/CoordinateTrans/components/index.d.ts.map +1 -1
- package/dist/types/components/CoordinateTrans/index.d.ts +2 -2
- package/dist/types/components/CoordinateTrans/index.d.ts.map +1 -1
- package/dist/types/components/Float/index.d.ts +1 -1
- package/dist/types/components/Float/index.d.ts.map +1 -1
- package/dist/types/components/Float/store.d.ts +5 -0
- package/dist/types/components/Float/store.d.ts.map +1 -0
- package/dist/types/core.d.ts +5 -0
- package/dist/types/core.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +5 -4
package/dist/index.css
CHANGED
|
@@ -173,6 +173,7 @@
|
|
|
173
173
|
|
|
174
174
|
.container-IqB0iy {
|
|
175
175
|
background-color: var(--theme-bg-second);
|
|
176
|
+
box-sizing: border-box;
|
|
176
177
|
width: 100%;
|
|
177
178
|
min-width: 320px;
|
|
178
179
|
padding: 8px;
|
|
@@ -250,10 +251,11 @@
|
|
|
250
251
|
}
|
|
251
252
|
|
|
252
253
|
.root-ChMEHr {
|
|
253
|
-
z-index:
|
|
254
|
+
z-index: 1000;
|
|
254
255
|
border: 1px solid var(--theme-border-base);
|
|
255
256
|
background-color: var(--theme-bg-base);
|
|
256
257
|
box-shadow: var(--theme-color-second) 0px 0px 10px;
|
|
258
|
+
box-sizing: border-box;
|
|
257
259
|
border-radius: 8px;
|
|
258
260
|
flex-direction: column;
|
|
259
261
|
display: flex;
|
|
@@ -271,7 +273,8 @@
|
|
|
271
273
|
|
|
272
274
|
.title-Ikuh0j {
|
|
273
275
|
cursor: move;
|
|
274
|
-
|
|
276
|
+
box-sizing: border-box;
|
|
277
|
+
height: 40px;
|
|
275
278
|
padding: 4px 8px;
|
|
276
279
|
position: relative;
|
|
277
280
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import react, { forwardRef, memo, useCallback, useContext, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
2
|
+
import react, { forwardRef, memo, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import "mapbox-gl/dist/mapbox-gl.css";
|
|
4
|
-
import { Draw, Lang, LngLat, Mapless, Marker, PaintBoard, Popup, PositionMarker, PositionMouse, QuickTrans, Singleton, attachMarker, attachOldStation as core_attachOldStation, calculateObjectsInPolygon, darkSource, defaultSource, detachOldStation, getCoordDisplayName, getMarker, getNewStation, getOldStation, getPaintCenter, lightSource, maplessPreset, sourcesMap, throttle, transformCoordinate } from "@mapless/core";
|
|
4
|
+
import { Draw, Lang, LngLat, Mapless, Marker, PaintBoard, Popup, PositionMarker, PositionMouse, QuickTrans, Singleton, attachBoundary, attachCluster, attachCurve, attachHeatmap, attachImageData, attachLine, attachMarker, attachMovable, attachNewStation as core_attachNewStation, attachNode, attachOldStation as core_attachOldStation, attachPolygon, attachRoutes, attachShape, attachStep, attachTrack, calculateObjectsInPolygon, darkSource, defaultSource, detachBoundary, detachCluster, detachCurve, detachHeatmap, detachImageData, detachLine, detachMarker, detachMovable, detachNewStation, detachNode, detachOldStation, detachPolygon, detachRoutes, detachShape, detachStep, detachTrack, ellipse, genPrefixId, getBoundary, getCluster, getCoordDisplayName, getCurve, getHeatmap, getImageData, getLine, getMarker, getMovable, getNewStation, getNode, getOldStation, getPaintCenter, getPaintCenterNRadius, getPolygon, getRoutes, getShape, getStep, getTrack, lightSource, maplessPreset, propwmsTransformRequest, sourcesMap, test2Point, throttle, transformCoordinate } from "@mapless/core";
|
|
5
5
|
import { Button, Flex, FloatButton, Input, InputNumber, Popover, Select, Space, Tooltip, Typography, message } from "antd";
|
|
6
6
|
import _ant_design_icons, { ArrowRightOutlined, ClearOutlined, CloseOutlined, DeleteOutlined, EnvironmentOutlined, EyeInvisibleOutlined, EyeOutlined, FlagOutlined, InfoCircleOutlined, MoonOutlined, QuestionCircleOutlined, StopOutlined, SunOutlined } from "@ant-design/icons";
|
|
7
7
|
import { createPortal } from "react-dom";
|
|
8
|
+
import guangzhou from "@mapless/core/assets/guangzhou.json";
|
|
8
9
|
const popup_module = {
|
|
9
10
|
"map-popup": "map-popup-_D5VrV",
|
|
10
11
|
mapPopup: "map-popup-_D5VrV"
|
|
@@ -2046,8 +2047,25 @@ const Float_index_module = {
|
|
|
2046
2047
|
title: "title-Ikuh0j",
|
|
2047
2048
|
close: "close-og7mQm"
|
|
2048
2049
|
};
|
|
2050
|
+
const floatState = {
|
|
2051
|
+
activeFloatId: null,
|
|
2052
|
+
setActiveFloatId (id) {
|
|
2053
|
+
if (this.activeFloatId) {
|
|
2054
|
+
const { style } = document.getElementById(this.activeFloatId) || {};
|
|
2055
|
+
style?.setProperty('z-index', '1000');
|
|
2056
|
+
}
|
|
2057
|
+
this.activeFloatId = id;
|
|
2058
|
+
if (id) {
|
|
2059
|
+
const { style } = document.getElementById(id) || {};
|
|
2060
|
+
style?.setProperty('z-index', '1001');
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
};
|
|
2064
|
+
const useFloatStore = ()=>floatState;
|
|
2049
2065
|
const Float = (props)=>{
|
|
2050
2066
|
const { title, open, children, onCancel } = props;
|
|
2067
|
+
const id = useId();
|
|
2068
|
+
const floatStore = useFloatStore();
|
|
2051
2069
|
const [position, setPosition] = useState({
|
|
2052
2070
|
top: '10px',
|
|
2053
2071
|
right: '400px'
|
|
@@ -2062,6 +2080,7 @@ const Float = (props)=>{
|
|
|
2062
2080
|
const handleMouseDown = (e)=>{
|
|
2063
2081
|
e.preventDefault();
|
|
2064
2082
|
setHasMoved(false);
|
|
2083
|
+
floatStore.setActiveFloatId(id);
|
|
2065
2084
|
if (containerRef.current) {
|
|
2066
2085
|
const rect = containerRef.current.getBoundingClientRect();
|
|
2067
2086
|
setOffset({
|
|
@@ -2093,6 +2112,12 @@ const Float = (props)=>{
|
|
|
2093
2112
|
const handleMouseUp = useCallback(()=>{
|
|
2094
2113
|
setIsDragging(false);
|
|
2095
2114
|
}, []);
|
|
2115
|
+
const handleContainerClick = useCallback(()=>{
|
|
2116
|
+
floatStore.setActiveFloatId(id);
|
|
2117
|
+
}, [
|
|
2118
|
+
id,
|
|
2119
|
+
floatStore
|
|
2120
|
+
]);
|
|
2096
2121
|
useEffect(()=>{
|
|
2097
2122
|
if (isDragging) {
|
|
2098
2123
|
document.addEventListener('mousemove', handleMouseMove);
|
|
@@ -2107,7 +2132,15 @@ const Float = (props)=>{
|
|
|
2107
2132
|
handleMouseMove,
|
|
2108
2133
|
handleMouseUp
|
|
2109
2134
|
]);
|
|
2110
|
-
|
|
2135
|
+
useEffect(()=>{
|
|
2136
|
+
if (open) floatStore.setActiveFloatId(id);
|
|
2137
|
+
}, [
|
|
2138
|
+
open,
|
|
2139
|
+
id,
|
|
2140
|
+
floatStore
|
|
2141
|
+
]);
|
|
2142
|
+
return /*#__PURE__*/ createPortal(/*#__PURE__*/ jsxs("div", {
|
|
2143
|
+
id: id,
|
|
2111
2144
|
ref: containerRef,
|
|
2112
2145
|
className: `${Float_index_module.root} ${isDragging ? Float_index_module.dragging : ''}`,
|
|
2113
2146
|
style: {
|
|
@@ -2115,6 +2148,7 @@ const Float = (props)=>{
|
|
|
2115
2148
|
right: position.right,
|
|
2116
2149
|
display: open ? 'flex' : 'none'
|
|
2117
2150
|
},
|
|
2151
|
+
onClick: handleContainerClick,
|
|
2118
2152
|
children: [
|
|
2119
2153
|
/*#__PURE__*/ jsxs(Flex, {
|
|
2120
2154
|
className: Float_index_module.title,
|
|
@@ -2137,7 +2171,7 @@ const Float = (props)=>{
|
|
|
2137
2171
|
}),
|
|
2138
2172
|
children
|
|
2139
2173
|
]
|
|
2140
|
-
});
|
|
2174
|
+
}), document.body);
|
|
2141
2175
|
};
|
|
2142
2176
|
const MapboxMarker_index_module = {
|
|
2143
2177
|
"react-marker": "react-marker-DS7aRO",
|
|
@@ -3768,6 +3802,7 @@ const WithMapBase = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
3768
3802
|
type: 'ready',
|
|
3769
3803
|
target: instance
|
|
3770
3804
|
});
|
|
3805
|
+
maplessInstanceRef.current?.resize();
|
|
3771
3806
|
},
|
|
3772
3807
|
onMapZoom (zoom) {
|
|
3773
3808
|
props.onChange?.({
|
|
@@ -4153,4 +4188,4 @@ const CoordSystemTransDemo = ()=>{
|
|
|
4153
4188
|
]
|
|
4154
4189
|
});
|
|
4155
4190
|
};
|
|
4156
|
-
export { CoordSystemTrans, CoordSystemTransDemo, CoordinateInput, CoordinateParser, components_CoordinateTrans_CoordinateTrans as CoordinateTrans, DZ_MAP_STYLE_NAMES, DraggableMarker_DraggableMarker as DraggableMarker, ErrorBoundary_ErrorBoundary as ErrorBoundary, Float, Format, components_FormatChange as FormatChange, src_MapView as MapView, components_MapboxMarker_MapboxMarker as MapboxMarker, components_MapboxPopup_MapboxPopup as MapboxPopup, WithMap_components as MaplessControlPanel, StationMana, StationsClickPanelMarker, TestPopup_TestPopup as TestPopup, WithMap_WithMapBase as WithMapBase, _2D as _2dSvg, _3D as _3dSvg, Angle as angleSvg, Area as areaSvg, CircleSelect as circleSelectSvg, Copy as copySvg, Cyber as cyberSvg, degree2DM, degree2DMS, FreedomSelect as freedomSelectSvg, getAllMapState, getDDMM, getDDMMSS, getFloat, getFormatStr, getMapState, getNextFormat, GetPosition as getPositionSvg, gps2Degree, Hand as handSvg, Line as lineSvg, generated_Marker as markerSvg, Measure as measureSvg, Mode as modeSvg, onDefaultEvent, OriginPosition as originPositionSvg, Point as pointSvg, PointerSelect as pointerSelectSvg, Receiver as receiverSvg, RectangleSelect as rectangleSelectSvg, Satellite as satelliteSvg, SelectTool as selectToolSvg, storeMapState, Streets as streetsSvg, hooks_useCoordSystem as useCoordSystem, hooks_useSize as useSize, hooks_useTest as useTest, with_withMapboxMarker as withMapboxMarker, with_withMapboxPopup as withMapboxPopup };
|
|
4191
|
+
export { CoordSystemTrans, CoordSystemTransDemo, CoordinateInput, CoordinateParser, components_CoordinateTrans_CoordinateTrans as CoordinateTrans, DZ_MAP_STYLE_NAMES, DraggableMarker_DraggableMarker as DraggableMarker, Draw, ErrorBoundary_ErrorBoundary as ErrorBoundary, Float, Format, components_FormatChange as FormatChange, Lang, LngLat, src_MapView as MapView, components_MapboxMarker_MapboxMarker as MapboxMarker, components_MapboxPopup_MapboxPopup as MapboxPopup, Mapless, WithMap_components as MaplessControlPanel, PaintBoard, StationMana, StationsClickPanelMarker, TestPopup_TestPopup as TestPopup, WithMap_WithMapBase as WithMapBase, _2D as _2dSvg, _3D as _3dSvg, Angle as angleSvg, Area as areaSvg, attachBoundary, attachCluster, attachCurve, attachHeatmap, attachImageData, attachLine, attachMarker, attachMovable, core_attachNewStation as attachNewStation, attachNode, core_attachOldStation as attachOldStation, attachPolygon, attachRoutes, attachShape, attachStep, attachTrack, calculateObjectsInPolygon, CircleSelect as circleSelectSvg, Copy as copySvg, Cyber as cyberSvg, degree2DM, degree2DMS, detachBoundary, detachCluster, detachCurve, detachHeatmap, detachImageData, detachLine, detachMarker, detachMovable, detachNewStation, detachNode, detachOldStation, detachPolygon, detachRoutes, detachShape, detachStep, detachTrack, ellipse, FreedomSelect as freedomSelectSvg, genPrefixId, getAllMapState, getBoundary, getCluster, getCurve, getDDMM, getDDMMSS, getFloat, getFormatStr, getHeatmap, getImageData, getLine, getMapState, getMovable, getNewStation, getNextFormat, getNode, getOldStation, getPaintCenterNRadius, getPolygon, GetPosition as getPositionSvg, getRoutes, getShape, getStep, getTrack, gps2Degree, guangzhou, Hand as handSvg, Line as lineSvg, maplessPreset, generated_Marker as markerSvg, Measure as measureSvg, Mode as modeSvg, onDefaultEvent, OriginPosition as originPositionSvg, Point as pointSvg, PointerSelect as pointerSelectSvg, propwmsTransformRequest, Receiver as receiverSvg, RectangleSelect as rectangleSelectSvg, Satellite as satelliteSvg, SelectTool as selectToolSvg, storeMapState, Streets as streetsSvg, test2Point, throttle, hooks_useCoordSystem as useCoordSystem, hooks_useSize as useSize, hooks_useTest as useTest, with_withMapboxMarker as withMapboxMarker, with_withMapboxPopup as withMapboxPopup };
|
|
@@ -1 +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,CA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AAE,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,qFAkJf,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { parseCoordinate } from './CoordinateInput/parseMethods';
|
|
1
2
|
import FormatChange from './FormatChange';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
DDD: (props: {
|
|
@@ -33,5 +34,5 @@ declare const _default: {
|
|
|
33
34
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
34
35
|
};
|
|
35
36
|
export default _default;
|
|
36
|
-
export { FormatChange };
|
|
37
|
+
export { FormatChange, parseCoordinate };
|
|
37
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CoordinateTrans/components/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CoordinateTrans/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAIjE,OAAO,YAAY,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAG1C,wBAAsC;AACtC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import CoordinateTrans from './CoordinateTrans';
|
|
2
|
-
import { FormatChange } from './components';
|
|
2
|
+
import { FormatChange, parseCoordinate } from './components';
|
|
3
3
|
import { CoordinateInput } from './components/CoordinateInput';
|
|
4
4
|
export default CoordinateTrans;
|
|
5
|
-
export { CoordinateTrans, CoordinateInput, FormatChange };
|
|
5
|
+
export { CoordinateTrans, CoordinateInput, FormatChange, parseCoordinate };
|
|
6
6
|
export * from './weapon';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CoordinateTrans/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CoordinateTrans/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,eAAe,eAAe,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE3E,cAAc,UAAU,CAAC"}
|
|
@@ -4,7 +4,7 @@ type FloatProps = {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
onCancel: () => void;
|
|
6
6
|
};
|
|
7
|
-
declare const Float: (props: FloatProps) => import("react
|
|
7
|
+
declare const Float: (props: FloatProps) => import("react").ReactPortal;
|
|
8
8
|
export default Float;
|
|
9
9
|
export { Float };
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Float/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Float/index.tsx"],"names":[],"mappings":"AAOA,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,KAAK,GAAI,OAAO,UAAU,gCAiH/B,CAAC;AAEF,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/components/Float/store.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,aAAa;mBAdD,MAAM,GAAG,IAAI;yBACf,MAAM,GAAG,IAAI;CAaS,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { attachBoundary, attachCluster, attachCurve, attachHeatmap, attachImageData, attachLine, attachMarker, attachMovable, attachNewStation, attachNode, attachOldStation, attachPolygon, attachRoutes, attachShape, attachStep, attachTrack, type Coordinates, type CoordSystem, calculateObjectsInPolygon, Draw, detachBoundary, detachCluster, detachCurve, detachHeatmap, detachImageData, detachLine, detachMarker, detachMovable, detachNewStation, detachNode, detachOldStation, detachPolygon, detachRoutes, detachShape, detachStep, detachTrack, ellipse, genPrefixId, getBoundary, getCluster, getCurve, getHeatmap, getImageData, getLine, getMovable, getNewStation, getNode, getOldStation, getPaintCenterNRadius, getPolygon, getRoutes, getShape, getStep, getTrack, Lang, type Line, LngLat, type LngLatLike, Mapless, type MapMode, type MapMouseEvent, type MapSourceConfig, type Station as MapStation, type Movable, maplessPreset, type Paint, PaintBoard, type PaintMode, propwmsTransformRequest, type Route, type Station, type StationManagerEvents, type Step, type Test2Point, test2Point, throttle } from '@mapless/core';
|
|
2
|
+
import guangzhou from '@mapless/core/assets/guangzhou.json';
|
|
3
|
+
export { attachBoundary, attachCluster, attachCurve, attachHeatmap, attachImageData, attachLine, attachMarker, attachMovable, attachNewStation, attachNode, attachOldStation, attachPolygon, attachRoutes, attachShape, attachStep, attachTrack, type Coordinates, type CoordSystem, calculateObjectsInPolygon, Draw, detachBoundary, detachCluster, detachCurve, detachHeatmap, detachImageData, detachLine, detachMarker, detachMovable, detachNewStation, detachNode, detachOldStation, detachPolygon, detachRoutes, detachShape, detachStep, detachTrack, ellipse, genPrefixId, getBoundary, getCluster, getCurve, getHeatmap, getImageData, getLine, getMovable, getNewStation, getNode, getOldStation, getPaintCenterNRadius, getPolygon, getRoutes, getShape, getStep, getTrack, Lang, type Line, LngLat, type LngLatLike, Mapless, type MapMode, type MapMouseEvent, type MapSourceConfig, type MapStation, type Movable, type Step, maplessPreset, type Paint, PaintBoard, type PaintMode, propwmsTransformRequest, type Route, type Station, type StationManagerEvents, type Test2Point, test2Point, throttle };
|
|
4
|
+
export { guangzhou };
|
|
5
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/core.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,aAAa,EACb,WAAW,EACX,aAAa,EACb,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ChB,yBAAyB,EACzB,IAAI,EACJ,cAAc,EACd,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,EACf,UAAU,EACV,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,UAAU,EACV,WAAW,EACX,OAAO,EACP,WAAW,EACX,WAAW,EACX,UAAU,EACV,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,OAAO,EACP,UAAU,EACV,aAAa,EACb,OAAO,EACP,aAAa,EACb,qBAAqB,EACrB,UAAU,EACV,SAAS,EACT,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,KAAK,IAAI,EACT,MAAM,EACN,KAAK,UAAU,EACf,OAAO,EACP,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,aAAa,EACb,KAAK,KAAK,EACV,UAAU,EACV,KAAK,SAAS,EACd,uBAAuB,EACvB,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,UAAU,EACf,UAAU,EACV,QAAQ,EACT,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { MapView };
|
|
|
3
3
|
export type { MapChangeEventArgs };
|
|
4
4
|
export * from './components';
|
|
5
5
|
export { CoordSystemTransDemo } from './components/CoordSystemTrans/demo';
|
|
6
|
+
export * from './core';
|
|
6
7
|
export * from './hooks';
|
|
7
8
|
export * from './WithMap';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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"}
|
|
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,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapless/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React components for mapless library",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,7 +30,9 @@
|
|
|
30
30
|
"react",
|
|
31
31
|
"typescript"
|
|
32
32
|
],
|
|
33
|
-
"dependencies": {
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@mapless/core": "^0.0.2"
|
|
35
|
+
},
|
|
34
36
|
"devDependencies": {
|
|
35
37
|
"@rsbuild/plugin-less": "^1.5.0",
|
|
36
38
|
"@rsbuild/plugin-react": "^1.4.2",
|
|
@@ -47,14 +49,13 @@
|
|
|
47
49
|
"license": "MIT",
|
|
48
50
|
"repository": {
|
|
49
51
|
"type": "git",
|
|
50
|
-
"url": "https://github.com/mapless-io/mapless.git"
|
|
52
|
+
"url": "git+https://github.com/mapless-io/mapless.git"
|
|
51
53
|
},
|
|
52
54
|
"homepage": "https://github.com/mapless-io/mapless",
|
|
53
55
|
"bugs": {
|
|
54
56
|
"url": "https://github.com/mapless-io/mapless/issues"
|
|
55
57
|
},
|
|
56
58
|
"peerDependencies": {
|
|
57
|
-
"@mapless/core": "^0.0.1",
|
|
58
59
|
"@ant-design/icons": "^6.1.0",
|
|
59
60
|
"antd": "^6.1.1",
|
|
60
61
|
"mapbox-gl": "^3.17.0",
|