Skip to content

Commit

Permalink
v2.6.3 feat(DrawingManager): support events. (#321) b9b6d37
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 1, 2023
1 parent dc65035 commit 3bf7be8
Show file tree
Hide file tree
Showing 106 changed files with 194 additions and 156 deletions.
14 changes: 7 additions & 7 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/static/css/main.a778f35e.css",
"main.js": "/static/js/main.79f4e39b.js",
"main.js": "/static/js/main.f0ed7c20.js",
"static/js/221.49458ca2.chunk.js": "/static/js/221.49458ca2.chunk.js",
"static/js/837.afda5431.chunk.js": "/static/js/837.afda5431.chunk.js",
"static/js/727.77838484.chunk.js": "/static/js/727.77838484.chunk.js",
Expand All @@ -28,16 +28,16 @@
"static/js/359.374ff5fb.chunk.js": "/static/js/359.374ff5fb.chunk.js",
"static/js/467.9ffb262c.chunk.js": "/static/js/467.9ffb262c.chunk.js",
"static/js/502.6fae4133.chunk.js": "/static/js/502.6fae4133.chunk.js",
"static/js/45.6e724c9b.chunk.js": "/static/js/45.6e724c9b.chunk.js",
"static/js/45.106a6338.chunk.js": "/static/js/45.106a6338.chunk.js",
"refractor-vendor.js": "/static/js/refractor-vendor.3248bcab.js",
"uiw-vendor.js": "/static/js/uiw-vendor.bd5d8c86.js",
"parse5-vendor.js": "/static/js/parse5-vendor.77e48597.js",
"react-vendor.js": "/static/js/react-vendor.ef3775ea.js",
"babel-standalone-vendor.js": "/static/js/babel-standalone-vendor.59aba135.js",
"static/js/952.d4a94cf7.chunk.js": "/static/js/952.d4a94cf7.chunk.js",
"static/js/952.d0fcf048.chunk.js": "/static/js/952.d0fcf048.chunk.js",
"index.html": "/index.html",
"main.a778f35e.css.map": "/static/css/main.a778f35e.css.map",
"main.79f4e39b.js.map": "/static/js/main.79f4e39b.js.map",
"main.f0ed7c20.js.map": "/static/js/main.f0ed7c20.js.map",
"221.49458ca2.chunk.js.map": "/static/js/221.49458ca2.chunk.js.map",
"837.afda5431.chunk.js.map": "/static/js/837.afda5431.chunk.js.map",
"727.77838484.chunk.js.map": "/static/js/727.77838484.chunk.js.map",
Expand All @@ -64,13 +64,13 @@
"359.374ff5fb.chunk.js.map": "/static/js/359.374ff5fb.chunk.js.map",
"467.9ffb262c.chunk.js.map": "/static/js/467.9ffb262c.chunk.js.map",
"502.6fae4133.chunk.js.map": "/static/js/502.6fae4133.chunk.js.map",
"45.6e724c9b.chunk.js.map": "/static/js/45.6e724c9b.chunk.js.map",
"45.106a6338.chunk.js.map": "/static/js/45.106a6338.chunk.js.map",
"refractor-vendor.3248bcab.js.map": "/static/js/refractor-vendor.3248bcab.js.map",
"uiw-vendor.bd5d8c86.js.map": "/static/js/uiw-vendor.bd5d8c86.js.map",
"parse5-vendor.77e48597.js.map": "/static/js/parse5-vendor.77e48597.js.map",
"react-vendor.ef3775ea.js.map": "/static/js/react-vendor.ef3775ea.js.map",
"babel-standalone-vendor.59aba135.js.map": "/static/js/babel-standalone-vendor.59aba135.js.map",
"952.d4a94cf7.chunk.js.map": "/static/js/952.d4a94cf7.chunk.js.map"
"952.d0fcf048.chunk.js.map": "/static/js/952.d0fcf048.chunk.js.map"
},
"entrypoints": [
"static/js/refractor-vendor.3248bcab.js",
Expand All @@ -79,6 +79,6 @@
"static/js/react-vendor.ef3775ea.js",
"static/js/babel-standalone-vendor.59aba135.js",
"static/css/main.a778f35e.css",
"static/js/main.79f4e39b.js"
"static/js/main.f0ed7c20.js"
]
}
16 changes: 8 additions & 8 deletions badges.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions baidu.js
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,7 @@ function useDrawingManager(props) {
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [map, loadMapLib, bMapLib, drawingManager]);
useEventProperties(drawingManager, props, ['CircleComplete', 'MarkerComplete', 'OverlayComplete', 'PolygonComplete', 'PolylineComplete', 'RectangleComplete']);
return {
drawingManager,
setDrawingManager,
Expand Down
2 changes: 1 addition & 1 deletion baidu.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions coverage/coverage-summary.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{"total": {"lines":{"total":844,"covered":325,"skipped":0,"pct":38.5},"statements":{"total":902,"covered":326,"skipped":0,"pct":36.14},"functions":{"total":236,"covered":56,"skipped":0,"pct":23.72},"branches":{"total":584,"covered":55,"skipped":0,"pct":9.41},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
{"total": {"lines":{"total":845,"covered":326,"skipped":0,"pct":38.57},"statements":{"total":903,"covered":327,"skipped":0,"pct":36.21},"functions":{"total":236,"covered":56,"skipped":0,"pct":23.72},"branches":{"total":584,"covered":55,"skipped":0,"pct":9.41},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/react-baidu-map/react-baidu-map/packages/api-loader/src/index.tsx": {"lines":{"total":66,"covered":0,"skipped":0,"pct":0},"functions":{"total":15,"covered":0,"skipped":0,"pct":0},"statements":{"total":69,"covered":0,"skipped":0,"pct":0},"branches":{"total":73,"covered":0,"skipped":0,"pct":0}}
,"/home/runner/work/react-baidu-map/react-baidu-map/packages/baidu-map/.kktrc.ts": {"lines":{"total":4,"covered":0,"skipped":0,"pct":0},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"statements":{"total":4,"covered":0,"skipped":0,"pct":0},"branches":{"total":2,"covered":0,"skipped":0,"pct":0}}
,"/home/runner/work/react-baidu-map/react-baidu-map/packages/baidu-map/src/index.tsx": {"lines":{"total":0,"covered":0,"skipped":0,"pct":0},"functions":{"total":0,"covered":0,"skipped":0,"pct":0},"statements":{"total":0,"covered":0,"skipped":0,"pct":0},"branches":{"total":0,"covered":0,"skipped":0,"pct":0}}
Expand All @@ -17,7 +17,7 @@
,"/home/runner/work/react-baidu-map/react-baidu-map/packages/custom-overlay/src/index.tsx": {"lines":{"total":5,"covered":4,"skipped":0,"pct":80},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":6,"covered":4,"skipped":0,"pct":66.66},"branches":{"total":2,"covered":1,"skipped":0,"pct":50}}
,"/home/runner/work/react-baidu-map/react-baidu-map/packages/custom-overlay/src/useCustomOverlay.tsx": {"lines":{"total":59,"covered":14,"skipped":0,"pct":23.72},"functions":{"total":14,"covered":3,"skipped":0,"pct":21.42},"statements":{"total":59,"covered":14,"skipped":0,"pct":23.72},"branches":{"total":28,"covered":4,"skipped":0,"pct":14.28}}
,"/home/runner/work/react-baidu-map/react-baidu-map/packages/drawing-manager/src/index.tsx": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":4,"covered":3,"skipped":0,"pct":75},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/react-baidu-map/react-baidu-map/packages/drawing-manager/src/useDrawingManager.tsx": {"lines":{"total":27,"covered":15,"skipped":0,"pct":55.55},"functions":{"total":8,"covered":2,"skipped":0,"pct":25},"statements":{"total":27,"covered":15,"skipped":0,"pct":55.55},"branches":{"total":23,"covered":10,"skipped":0,"pct":43.47}}
,"/home/runner/work/react-baidu-map/react-baidu-map/packages/drawing-manager/src/useDrawingManager.tsx": {"lines":{"total":28,"covered":16,"skipped":0,"pct":57.14},"functions":{"total":8,"covered":2,"skipped":0,"pct":25},"statements":{"total":28,"covered":16,"skipped":0,"pct":57.14},"branches":{"total":23,"covered":10,"skipped":0,"pct":43.47}}
,"/home/runner/work/react-baidu-map/react-baidu-map/packages/geolocation-control/src/index.tsx": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":4,"covered":3,"skipped":0,"pct":75},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/react-baidu-map/react-baidu-map/packages/geolocation-control/src/useGeolocationControl.tsx": {"lines":{"total":16,"covered":8,"skipped":0,"pct":50},"functions":{"total":3,"covered":1,"skipped":0,"pct":33.33},"statements":{"total":16,"covered":8,"skipped":0,"pct":50},"branches":{"total":11,"covered":0,"skipped":0,"pct":0}}
,"/home/runner/work/react-baidu-map/react-baidu-map/packages/ground-overlay/src/index.tsx": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":4,"covered":3,"skipped":0,"pct":75},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/api-loader/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> api-loader/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/api-loader/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">api-loader/s
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/baidu-map/.kktrc.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">baidu-map</a> .
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/baidu-map/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../index.html">All files</a> baidu-map</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/baidu-map/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> baidu-map/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/baidu-map/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">baidu-map/sr
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/canvas-layer/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1><a href="../../index.html">All files</a> canvas-layer/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/canvas-layer/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">canvas-layer
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">canvas-layer
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/circle/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1><a href="../../index.html">All files</a> circle/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/circle/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">circle/src</
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/circle/src/useCircle.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">circle/src</
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/control/src/getControl.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">control/src<
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/control/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1><a href="../../index.html">All files</a> control/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/control/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">control/src<
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/control/src/useControl.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">control/src<
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/copyright-control/src/Item.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">copyright-co
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/copyright-control/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1><a href="../../index.html">All files</a> copyright-control/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/copyright-control/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">copyright-co
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">copyright-co
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/curve-line/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1><a href="../../index.html">All files</a> curve-line/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/curve-line/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">curve-line/s
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-01T02:31:54.484Z
at 2023-12-01T06:22:05.557Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit 3bf7be8

Please sign in to comment.