Skip to content

Commit 772c47c

Browse files
authored
Rename everywehre resizableCircle to resizeableCircle (#1518) (patch)
1 parent c8961ef commit 772c47c

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

cypress/integration/circle.spec.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@ describe('Draw Circle', () => {
348348
});
349349
});
350350

351-
it('creates circles (non-resizableCircle)', () => {
351+
it('creates circles (non-resizeableCircle)', () => {
352352
cy.window().then(({ map }) => {
353353
map.pm.setGlobalOptions({
354-
resizableCircle: false,
354+
resizeableCircle: false,
355355
continueDrawing: true,
356356
});
357357
});
@@ -373,9 +373,9 @@ describe('Draw Circle', () => {
373373
cy.hasCircleLayers(3);
374374
});
375375

376-
it('disable dragging correctly (non-resizableCircle)', () => {
376+
it('disable dragging correctly (non-resizeableCircle)', () => {
377377
cy.window().then(({ map }) => {
378-
map.pm.setGlobalOptions({ resizableCircle: false });
378+
map.pm.setGlobalOptions({ resizeableCircle: false });
379379
});
380380

381381
cy.toolbarButton('circle')
@@ -397,9 +397,9 @@ describe('Draw Circle', () => {
397397
});
398398
});
399399

400-
it('deletes no circles by right-click (non-resizableCircle)', () => {
400+
it('deletes no circles by right-click (non-resizeableCircle)', () => {
401401
cy.window().then(({ map }) => {
402-
map.pm.setGlobalOptions({ resizableCircle: false });
402+
map.pm.setGlobalOptions({ resizeableCircle: false });
403403
});
404404

405405
cy.toolbarButton('circle')
@@ -421,9 +421,9 @@ describe('Draw Circle', () => {
421421
cy.hasCircleLayers(1);
422422
});
423423

424-
it('change color of circleMarker while drawing (non-resizableCircle)', () => {
424+
it('change color of circleMarker while drawing (non-resizeableCircle)', () => {
425425
cy.window().then(({ map }) => {
426-
map.pm.setGlobalOptions({ resizableCircle: false });
426+
map.pm.setGlobalOptions({ resizeableCircle: false });
427427
});
428428

429429
cy.toolbarButton('circle')

leaflet-geoman.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ declare module 'leaflet' {
12971297
editable?: boolean;
12981298

12991299
/** Enables radius editing while drawing a Circle (default:true). */
1300-
resizableCircle?: boolean;
1300+
resizeableCircle?: boolean;
13011301

13021302
/** Enables radius editing while drawing a CircleMarker (default:false). */
13031303
resizeableCircleMarker?: boolean;

src/js/Draw/L.PM.Draw.Circle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Draw.Circle = Draw.CircleMarker.extend({
88
this._BaseCircleClass = L.Circle;
99
this._minRadiusOption = 'minRadiusCircle';
1010
this._maxRadiusOption = 'maxRadiusCircle';
11-
this._editableOption = 'resizableCircle';
11+
this._editableOption = 'resizeableCircle';
1212
this._defaultRadius = 100;
1313
},
1414
_extendingEnable() {},

src/js/Draw/L.PM.Draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const Draw = L.Class.extend({
2828
minRadiusCircleMarker: null,
2929
maxRadiusCircleMarker: null,
3030
resizeableCircleMarker: false,
31-
resizableCircle: true,
31+
resizeableCircle: true,
3232
markerEditable: true,
3333
continueDrawing: false,
3434
snapSegment: true,

src/js/Edit/L.PM.Edit.Circle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Edit.Circle = Edit.CircleMarker.extend({
88

99
this._minRadiusOption = 'minRadiusCircle';
1010
this._maxRadiusOption = 'maxRadiusCircle';
11-
this._editableOption = 'resizableCircle';
11+
this._editableOption = 'resizeableCircle';
1212
// create polygon around the circle border
1313
this._updateHiddenPolyCircle();
1414
},

src/js/Edit/L.PM.Edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Edit = L.Class.extend({
2727
addVertexValidation: undefined,
2828
moveVertexValidation: undefined,
2929
resizeableCircleMarker: false,
30-
resizableCircle: true,
30+
resizeableCircle: true,
3131
},
3232
setOptions(options) {
3333
L.Util.setOptions(this, options);

src/js/L.PM.Map.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ const Map = L.Class.extend({
152152
let reenableCircle = false;
153153
if (
154154
this.map.pm.Draw.Circle.enabled() &&
155-
!!this.map.pm.Draw.Circle.options.resizableCircle !==
156-
!!options.resizableCircle
155+
!!this.map.pm.Draw.Circle.options.resizeableCircle !==
156+
!!options.resizeableCircle
157157
) {
158158
this.map.pm.Draw.Circle.disable();
159159
reenableCircle = true;

src/js/Mixins/Dragging.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ const DragMixin = {
198198
if (this._layer instanceof L.CircleMarker) {
199199
let _editableOption = 'resizeableCircleMarker';
200200
if (this._layer instanceof L.Circle) {
201-
_editableOption = 'resizableCircle';
201+
_editableOption = 'resizeableCircle';
202202
}
203203

204204
if (this.options.snappable && !fromLayerSync && !layersToSyncFound) {
@@ -369,7 +369,7 @@ const DragMixin = {
369369

370370
if (
371371
(this._layer instanceof L.Circle &&
372-
this._layer.options.resizableCircle) ||
372+
this._layer.options.resizeableCircle) ||
373373
(this._layer instanceof L.CircleMarker &&
374374
this._layer.options.resizeableCircleMarker)
375375
) {

0 commit comments

Comments
 (0)