From aa2b5654e40f47f98565ca6d12607e9471b6f6d9 Mon Sep 17 00:00:00 2001 From: Antonio Vida Date: Mon, 12 Jun 2023 23:48:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#65433=20Extending?= =?UTF-8?q?=20interface=20CircleMarkerOptions=20from=20MarkerOptions=20to?= =?UTF-8?q?=20allow=20access=20'repeatMode'=20option=20by=20@antoniovlx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * If user wants to keep a circleMarker enabled after drawing it, it is necessary to access to 'repeatMode' in MarkerOptions. * adding test to cover the change * fixed problem on dtslint checking --- types/leaflet-draw/index.d.ts | 3 ++- types/leaflet-draw/leaflet-draw-tests.ts | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/types/leaflet-draw/index.d.ts b/types/leaflet-draw/index.d.ts index 5e05e693d6..a58edd8945 100644 --- a/types/leaflet-draw/index.d.ts +++ b/types/leaflet-draw/index.d.ts @@ -4,6 +4,7 @@ // Ryan Blace // Yun Shi // Kevin Richter +// Antonio Vida // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -358,7 +359,7 @@ declare module 'leaflet' { nautic?: boolean | undefined; } - interface CircleMarkerOptions { + interface CircleMarkerOptions extends MarkerOptions { /** * Whether to draw stroke around the circle marker. * diff --git a/types/leaflet-draw/leaflet-draw-tests.ts b/types/leaflet-draw/leaflet-draw-tests.ts index 5c3f540d94..d051eebf08 100644 --- a/types/leaflet-draw/leaflet-draw-tests.ts +++ b/types/leaflet-draw/leaflet-draw-tests.ts @@ -30,7 +30,10 @@ const drawControl = new L.Control.Draw({ shapeOptions: { color: '#662d91' } - } + }, + circlemarker: { + repeatMode: true + }, }, edit: { featureGroup: drawnItems