leaflet-rotate 0.1.3 → 0.2.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/README.md +3 -3
- package/build/rollup.config.js +4 -4
- package/dist/leaflet-rotate-src.js +626 -311
- package/dist/leaflet-rotate-src.js.map +1 -1
- package/dist/leaflet-rotate.js +1660 -1
- package/dist/leaflet-rotate.js.map +1 -1
- package/lib/debug.js +219 -25
- package/lib/debug.min.js +1 -9
- package/package.json +10 -7
- package/src/control/Rotate.js +10 -7
- package/src/dom/DomUtil.js +4 -1
- package/src/dom/Draggable.js +8 -5
- package/src/geometry/Point.js +22 -18
- package/src/index.js +5 -3
- package/src/layer/DivOverlay.js +13 -21
- package/src/layer/Popup.js +30 -10
- package/src/layer/Tooltip.js +10 -7
- package/src/layer/marker/Icon.js +5 -2
- package/src/layer/marker/Marker.js +42 -37
- package/src/layer/tile/GridLayer.js +5 -14
- package/src/layer/vector/Canvas.js +18 -15
- package/src/layer/vector/Renderer.js +21 -30
- package/src/layer/vector/SVG.js +10 -7
- package/src/map/Map.js +363 -93
- package/src/map/handler/CompassBearing.js +7 -11
- package/src/map/handler/ContainerMutation.js +12 -8
- package/src/map/handler/ShiftKeyRotate.js +6 -3
- package/src/map/handler/TouchGestures.js +16 -11
- package/src/map/handler/TouchRotate.js +4 -2
- package/src/map/handler/TouchZoom.js +16 -4
- package/test/index.html +29 -6
- package/build/rollup.config.min.js +0 -2
package/README.md
CHANGED
|
@@ -23,13 +23,13 @@ _For a working example see the following [demo](https://raruto.github.io/leaflet
|
|
|
23
23
|
|
|
24
24
|
**Side notes:**
|
|
25
25
|
|
|
26
|
-
Be aware that this is a proof of concept that shows how to alter the core leaflet library and make rotation feature usable as a standalone plugin. Check out fnicollet's [rotate-master](https://github.com/fnicollet/Leaflet/tree/rotate-master) branch if you prefer to use a
|
|
26
|
+
Be aware that this is a proof of concept that shows how to alter the core leaflet library and make rotation feature usable as a standalone plugin. Check out fnicollet's [rotate-master](https://github.com/fnicollet/Leaflet/tree/rotate-master) branch if you prefer to use a reliable all-in-one solution.
|
|
27
27
|
|
|
28
|
-
Latest changes to this project have been updated comparing on the following: [https://github.com/Leaflet/Leaflet/compare/
|
|
28
|
+
Latest changes to this project have been updated comparing on the following: [https://github.com/Leaflet/Leaflet/compare/main...fnicollet:rotate-master](https://github.com/Leaflet/Leaflet/compare/main...fnicollet:rotate-master) (ref: [bac6c7d](https://github.com/fnicollet/Leaflet/tree/4ab6342f74516e7087dcd2ae786c721f36addf9e))
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
|
|
32
32
|
**Compatibile with:**
|
|
33
|
-
[](http://leafletjs.com/reference.html)
|
|
34
34
|
|
|
35
35
|
**Contributors:** [IvanSanchez](https://github.com/IvanSanchez), [Fnicollet](https://github.com/fnicollet/Leaflet/tree/rotate-master), [Hyperknot](https://github.com/hyperknot), [Raruto](https://github.com/Raruto/leaflet-rotate)
|
package/build/rollup.config.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import resolve from 'rollup
|
|
3
|
-
import commonJS from 'rollup
|
|
1
|
+
import terser from "@rollup/plugin-commonjs";
|
|
2
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
3
|
+
import commonJS from '@rollup/plugin-commonjs';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import plugin from '../package.json' assert { type: "json" };
|
|
6
6
|
|
|
7
7
|
let input = "src/index.js";
|
|
8
8
|
let output = {
|