@mapless/react 0.0.1 → 0.0.2
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 +6 -4
- package/dist/types/WithMap/WithMapBase.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/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
2
|
import react, { forwardRef, memo, useCallback, useContext, useEffect, 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"
|
|
@@ -2107,7 +2108,7 @@ const Float = (props)=>{
|
|
|
2107
2108
|
handleMouseMove,
|
|
2108
2109
|
handleMouseUp
|
|
2109
2110
|
]);
|
|
2110
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
2111
|
+
return /*#__PURE__*/ createPortal(/*#__PURE__*/ jsxs("div", {
|
|
2111
2112
|
ref: containerRef,
|
|
2112
2113
|
className: `${Float_index_module.root} ${isDragging ? Float_index_module.dragging : ''}`,
|
|
2113
2114
|
style: {
|
|
@@ -2137,7 +2138,7 @@ const Float = (props)=>{
|
|
|
2137
2138
|
}),
|
|
2138
2139
|
children
|
|
2139
2140
|
]
|
|
2140
|
-
});
|
|
2141
|
+
}), document.body);
|
|
2141
2142
|
};
|
|
2142
2143
|
const MapboxMarker_index_module = {
|
|
2143
2144
|
"react-marker": "react-marker-DS7aRO",
|
|
@@ -3768,6 +3769,7 @@ const WithMapBase = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
3768
3769
|
type: 'ready',
|
|
3769
3770
|
target: instance
|
|
3770
3771
|
});
|
|
3772
|
+
maplessInstanceRef.current?.resize();
|
|
3771
3773
|
},
|
|
3772
3774
|
onMapZoom (zoom) {
|
|
3773
3775
|
props.onChange?.({
|
|
@@ -4153,4 +4155,4 @@ const CoordSystemTransDemo = ()=>{
|
|
|
4153
4155
|
]
|
|
4154
4156
|
});
|
|
4155
4157
|
};
|
|
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 };
|
|
4158
|
+
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,SAA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AAI,CAAC;CAC7D,CAAC;AAEF,QAAA,MAAM,WAAW,qFAkJf,CAAC;AAEH,eAAe,WAAW,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":"AAMA,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,gCAiG/B,CAAC;AAEF,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,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,eAAe,EACf,UAAU,EACV,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,UAAU,EACV,WAAW,EACX,KAAK,WAAW,EAChB,KAAK,WAAW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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.2",
|
|
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",
|