Skip to content

Commit

Permalink
Run formatter on codebase (#933) (ignore)
Browse files Browse the repository at this point in the history
* Run formatter

* Fix Readme Link
  • Loading branch information
Falke-Design authored Jun 8, 2021
1 parent 5235377 commit 273a6e2
Show file tree
Hide file tree
Showing 81 changed files with 5,358 additions and 4,470 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ Features marked with ⭐ in this documentation are available in Leaflet-Geoman P
- [Removal Mode](#removal-mode)
- [Cut Mode](#cut-mode)
- [Rotation Mode](#rotation-mode)
- [Split Mode ⭐](#split-mode)
- [Scale Mode ⭐](#scale-mode)
- [Split Mode ⭐](#split-mode-)
- [Scale Mode ⭐](#scale-mode-)
- [Options](#options)
- [Snapping](#snapping)
- [Pinning ⭐](#pinning-)
Expand Down Expand Up @@ -393,8 +393,8 @@ See the available options in the table below.
| limitMarkersToViewport | `false` | Shows only markers in the viewport. ⭐ |
| limitMarkersToClick | `false` | Shows markers only after the layer was clicked. ⭐ |
| pinning | `false` | Pin shared vertices/markers together during edit [Details](#pinning-⭐). ⭐ |
| centerScaling | `true` | Scale origin is the center, else it is the opposite corner. If `false` Alt-Key can be used. [Scale Mode](#scale-mode). ⭐ |
| uniformScaling | `true` | Width and height are scaled with the same ratio. If `false` Shift-Key can be used. [Scale Mode](#scale-mode). ⭐ |
| centerScaling | `true` | Scale origin is the center, else it is the opposite corner. If `false` Alt-Key can be used. [Scale Mode](#scale-mode-). ⭐ |
| uniformScaling | `true` | Width and height are scaled with the same ratio. If `false` Shift-Key can be used. [Scale Mode](#scale-mode-). ⭐ |

You can listen to events related to editing on events like this:

Expand Down
44 changes: 17 additions & 27 deletions cypress/fixtures/FeatureCollectionEventFire.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,19 @@
{
"type":"FeatureCollection",
"features":[
{
"type":"Feature",
"geometry":{
"type":"MultiPoint",
"coordinates":[
[
32.83604819,
40.0169319
]
]
}
},
{
"type":"Feature",
"geometry":{
"type":"MultiPoint",
"coordinates":[
[
32.8298979,
40.02567418
]
]
}
}
]
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "MultiPoint",
"coordinates": [[32.83604819, 40.0169319]]
}
},
{
"type": "Feature",
"geometry": {
"type": "MultiPoint",
"coordinates": [[32.8298979, 40.02567418]]
}
}
]
}
168 changes: 84 additions & 84 deletions cypress/fixtures/FeatureCollectionWithCircles.json
Original file line number Diff line number Diff line change
@@ -1,86 +1,86 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": { "customGeometry": { "radius": 50 } },
"geometry": {
"type": "Point",
"coordinates": [-0.152843, 51.486742, 77]
}
},
{
"type": "Feature",
"properties": { "customGeometry": { "radius": 20 } },
"geometry": {
"type": "Point",
"coordinates": [-0.151727, 51.487472, 77]
}
},
{
"type": "Feature",
"properties": { "customGeometry": { "radius": 80 } },
"geometry": {
"type": "Point",
"coordinates": [-0.153636, 51.486562, 77]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-0.15369, 51.486973, 77],
[-0.153853, 51.48686, 77],
[-0.154183, 51.486968, 77],
[-0.154001, 51.487087, 77],
[-0.15369, 51.486973, 77]
]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-0.15252, 51.487201, 77],
[-0.152789, 51.487281, 77],
[-0.153025, 51.487097, 77],
[-0.152633, 51.487002, 77],
[-0.152448, 51.487088, 77],
[-0.15252, 51.487201, 77]
]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-0.154241, 51.487382, 77],
[-0.1545, 51.487608, 77],
[-0.154905, 51.487384, 77],
[-0.154343, 51.487322, 77],
[-0.154241, 51.487382, 77]
]
]
}
},
{
"type": "Feature",
"properties": { "customGeometry": { "radius": 50 } },
"geometry": {
"type": "Point",
"coordinates": [-0.153366, 51.487348, 77]
}
}
]
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": { "customGeometry": { "radius": 50 } },
"geometry": {
"type": "Point",
"coordinates": [-0.152843, 51.486742, 77]
}
},
{
"type": "Feature",
"properties": { "customGeometry": { "radius": 20 } },
"geometry": {
"type": "Point",
"coordinates": [-0.151727, 51.487472, 77]
}
},
{
"type": "Feature",
"properties": { "customGeometry": { "radius": 80 } },
"geometry": {
"type": "Point",
"coordinates": [-0.153636, 51.486562, 77]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-0.15369, 51.486973, 77],
[-0.153853, 51.48686, 77],
[-0.154183, 51.486968, 77],
[-0.154001, 51.487087, 77],
[-0.15369, 51.486973, 77]
]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-0.15252, 51.487201, 77],
[-0.152789, 51.487281, 77],
[-0.153025, 51.487097, 77],
[-0.152633, 51.487002, 77],
[-0.152448, 51.487088, 77],
[-0.15252, 51.487201, 77]
]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-0.154241, 51.487382, 77],
[-0.1545, 51.487608, 77],
[-0.154905, 51.487384, 77],
[-0.154343, 51.487322, 77],
[-0.154241, 51.487382, 77]
]
]
}
},
{
"type": "Feature",
"properties": { "customGeometry": { "radius": 50 } },
"geometry": {
"type": "Point",
"coordinates": [-0.153366, 51.487348, 77]
}
}
]
}
2 changes: 1 addition & 1 deletion cypress/fixtures/MonsterPolygon.json
Original file line number Diff line number Diff line change
Expand Up @@ -9951,4 +9951,4 @@
}
]
}
}
}
23 changes: 21 additions & 2 deletions cypress/fixtures/MultiPolygon.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
{
"type": "MultiPolygon",
"coordinates": [[[[107, 7], [108, 7], [108, 8], [107, 8], [107, 7]]], [[[100, 0], [101, 0], [101, 1], [100, 1], [100, 0]]]]
"type": "MultiPolygon",
"coordinates": [
[
[
[107, 7],
[108, 7],
[108, 8],
[107, 8],
[107, 7]
]
],
[
[
[100, 0],
[101, 0],
[101, 1],
[100, 1],
[100, 0]
]
]
]
}
59 changes: 12 additions & 47 deletions cypress/fixtures/PolygonIntersects.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"type": "Feature",
"properties": {
"shape": "Polygon",
"maps": [
"default-map"
],
"maps": ["default-map"],
"name": "Unnamed Layer",
"category": "default",
"id": "fa4cf31e-38f2-4b00-b1ff-43ccb3b2439e"
Expand All @@ -13,50 +11,17 @@
"type": "Polygon",
"coordinates": [
[
[
4.677076,
49.003375
],
[
4.345093,
48.770672
],
[
4.858284,
48.616297
],
[
5.286592,
48.703378
],
[
5.412889,
48.529065
],
[
4.822592,
48.677995
],
[
5.168533,
48.793928
],
[
5.281101,
48.886121
],
[
4.655112,
48.826486
],
[
4.333881,
48.601769
],
[
4.281715,
49.019589
]
[4.677076, 49.003375],
[4.345093, 48.770672],
[4.858284, 48.616297],
[5.286592, 48.703378],
[5.412889, 48.529065],
[4.822592, 48.677995],
[5.168533, 48.793928],
[5.281101, 48.886121],
[4.655112, 48.826486],
[4.333881, 48.601769],
[4.281715, 49.019589]
]
]
}
Expand Down
Loading

0 comments on commit 273a6e2

Please sign in to comment.