From 18a1665e16d7a8db55211f29563b8b1f0f677f11 Mon Sep 17 00:00:00 2001 From: Nick Ng Date: Tue, 23 Jan 2024 11:21:14 +0800 Subject: [PATCH] chore: updated dist files --- dist/svelte-leafletjs.js | 880 +++++++++++++++++------------------ dist/svelte-leafletjs.js.map | 2 +- 2 files changed, 441 insertions(+), 441 deletions(-) diff --git a/dist/svelte-leafletjs.js b/dist/svelte-leafletjs.js index f85e38d..a08af34 100644 --- a/dist/svelte-leafletjs.js +++ b/dist/svelte-leafletjs.js @@ -4,10 +4,10 @@ var __publicField = (obj, key, value) => { __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); return value; }; -import { SvelteComponent, init, safe_not_equal, element, set_style, insert, action_destroyer, transition_in, group_outros, transition_out, check_outros, detach, create_slot, update_slot_base, get_all_dirty_from_scope, get_slot_changes, binding_callbacks, append } from "svelte/internal"; +import { SvelteComponent, init, safe_not_equal, element, insert, transition_in, group_outros, transition_out, check_outros, detach, create_slot, update_slot_base, get_all_dirty_from_scope, get_slot_changes, binding_callbacks, set_style, action_destroyer, append } from "svelte/internal"; import "svelte/internal/disclose-version"; -import { createEventDispatcher, setContext, getContext, onDestroy } from "svelte"; -import { Map, Layer, Circle, CircleMarker, GeoJSON, Marker, Icon, DivIcon, ImageOverlay, Polyline, Polygon, Popup, Rectangle, Control, TileLayer, Tooltip } from "leaflet"; +import { createEventDispatcher, getContext, setContext, onDestroy } from "svelte"; +import { Map, Layer, Circle, CircleMarker, Marker, DivIcon, GeoJSON, Icon, ImageOverlay, Polygon, Polyline, Popup, Rectangle, Control, TileLayer, Tooltip } from "leaflet"; class EventBridge { constructor(entity, dispatch, events = []) { __publicField(this, "entity"); @@ -33,191 +33,6 @@ class EventBridge { } } function create_if_block$7(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[6].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[5], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 32)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[5], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[5] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[5], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment$a(ctx) { - let div; - let current; - let mounted; - let dispose; - let if_block = ( - /*map*/ - ctx[0] && create_if_block$7(ctx) - ); - return { - c() { - div = element("div"); - if (if_block) - if_block.c(); - set_style(div, "height", "100%"); - set_style(div, "width", "100%"); - }, - m(target, anchor) { - insert(target, div, anchor); - if (if_block) - if_block.m(div, null); - current = true; - if (!mounted) { - dispose = action_destroyer( - /*initialize*/ - ctx[1].call(null, div) - ); - mounted = true; - } - }, - p(ctx2, [dirty]) { - if ( - /*map*/ - ctx2[0] - ) { - if (if_block) { - if_block.p(ctx2, dirty); - if (dirty & /*map*/ - 1) { - transition_in(if_block, 1); - } - } else { - if_block = create_if_block$7(ctx2); - if_block.c(); - transition_in(if_block, 1); - if_block.m(div, null); - } - } else if (if_block) { - group_outros(); - transition_out(if_block, 1, 1, () => { - if_block = null; - }); - check_outros(); - } - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - if (if_block) - if_block.d(); - mounted = false; - dispose(); - } - }; -} -function instance$f($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const dispatch = createEventDispatcher(); - let { options = {} } = $$props; - let { events = [] } = $$props; - let map; - let eventBridge; - setContext(Map, () => map); - function initialize(container, parameters) { - if (container.getBoundingClientRect().width === 0 && container.getBoundingClientRect().height === 0) { - console.log("[WARNING] skipped map initialization, container width and height is 0"); - return {}; - } - $$invalidate(0, map = new Map(container, options)); - eventBridge = new EventBridge(map, dispatch, events); - return { - destroy: () => { - eventBridge.unregister(); - map.remove(); - } - }; - } - function getMap() { - return map; - } - $$self.$$set = ($$props2) => { - if ("options" in $$props2) - $$invalidate(2, options = $$props2.options); - if ("events" in $$props2) - $$invalidate(3, events = $$props2.events); - if ("$$scope" in $$props2) - $$invalidate(5, $$scope = $$props2.$$scope); - }; - return [map, initialize, options, events, getMap, $$scope, slots]; -} -class LeafletMap extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance$f, create_fragment$a, safe_not_equal, { options: 2, events: 3, getMap: 4 }); - } - get getMap() { - return this.$$.ctx[4]; - } -} -function create_if_block$6(ctx) { let current; const default_slot_template = ( /*#slots*/ @@ -282,12 +97,12 @@ function create_if_block$6(ctx) { } }; } -function create_fragment$9(ctx) { +function create_fragment$a(ctx) { let div; let current; let if_block = ( /*circle*/ - ctx[0] && create_if_block$6(ctx) + ctx[0] && create_if_block$7(ctx) ); return { c() { @@ -313,7 +128,7 @@ function create_fragment$9(ctx) { transition_in(if_block, 1); } } else { - if_block = create_if_block$6(ctx2); + if_block = create_if_block$7(ctx2); if_block.c(); transition_in(if_block, 1); if_block.m(div, null); @@ -345,7 +160,7 @@ function create_fragment$9(ctx) { } }; } -function instance$e($$self, $$props, $$invalidate) { +function instance$f($$self, $$props, $$invalidate) { let { $$slots: slots = {}, $$scope } = $$props; const dispatch = createEventDispatcher(); const mapProvider = getContext(Map); @@ -459,7 +274,7 @@ function instance$e($$self, $$props, $$invalidate) { class Circle_1 extends SvelteComponent { constructor(options) { super(); - init(this, options, instance$e, create_fragment$9, safe_not_equal, { + init(this, options, instance$f, create_fragment$a, safe_not_equal, { latLng: 1, radius: 2, color: 3, @@ -482,7 +297,7 @@ class Circle_1 extends SvelteComponent { return this.$$.ctx[16]; } } -function create_if_block$5(ctx) { +function create_if_block$6(ctx) { let current; const default_slot_template = ( /*#slots*/ @@ -547,12 +362,12 @@ function create_if_block$5(ctx) { } }; } -function create_fragment$8(ctx) { +function create_fragment$9(ctx) { let div; let current; let if_block = ( /*circleMarker*/ - ctx[0] && create_if_block$5(ctx) + ctx[0] && create_if_block$6(ctx) ); return { c() { @@ -578,7 +393,7 @@ function create_fragment$8(ctx) { transition_in(if_block, 1); } } else { - if_block = create_if_block$5(ctx2); + if_block = create_if_block$6(ctx2); if_block.c(); transition_in(if_block, 1); if_block.m(div, null); @@ -610,7 +425,7 @@ function create_fragment$8(ctx) { } }; } -function instance$d($$self, $$props, $$invalidate) { +function instance$e($$self, $$props, $$invalidate) { let { $$slots: slots = {}, $$scope } = $$props; const dispatch = createEventDispatcher(); const mapProvider = getContext(Map); @@ -724,7 +539,7 @@ function instance$d($$self, $$props, $$invalidate) { class CircleMarker_1 extends SvelteComponent { constructor(options) { super(); - init(this, options, instance$d, create_fragment$8, safe_not_equal, { + init(this, options, instance$e, create_fragment$9, safe_not_equal, { latLng: 1, radius: 2, color: 3, @@ -747,47 +562,51 @@ class CircleMarker_1 extends SvelteComponent { return this.$$.ctx[16]; } } -function create_if_block$4(ctx) { +function create_fragment$8(ctx) { + let div; let current; const default_slot_template = ( /*#slots*/ - ctx[6].default + ctx[5].default ); const default_slot = create_slot( default_slot_template, ctx, /*$$scope*/ - ctx[5], + ctx[4], null ); return { c() { + div = element("div"); if (default_slot) default_slot.c(); }, m(target, anchor) { + insert(target, div, anchor); if (default_slot) { - default_slot.m(target, anchor); + default_slot.m(div, null); } + ctx[6](div); current = true; }, - p(ctx2, dirty) { + p(ctx2, [dirty]) { if (default_slot) { if (default_slot.p && (!current || dirty & /*$$scope*/ - 32)) { + 16)) { update_slot_base( default_slot, default_slot_template, ctx2, /*$$scope*/ - ctx2[5], + ctx2[4], !current ? get_all_dirty_from_scope( /*$$scope*/ - ctx2[5] + ctx2[4] ) : get_slot_changes( default_slot_template, /*$$scope*/ - ctx2[5], + ctx2[4], dirty, null ), @@ -807,43 +626,157 @@ function create_if_block$4(ctx) { current = false; }, d(detaching) { + if (detaching) { + detach(div); + } if (default_slot) default_slot.d(detaching); + ctx[6](null); } }; } -function create_fragment$7(ctx) { - let div; - let current; - let if_block = ( - /*geojson*/ - ctx[0] && create_if_block$4(ctx) - ); - return { - c() { - div = element("div"); - if (if_block) - if_block.c(); - }, - m(target, anchor) { - insert(target, div, anchor); - if (if_block) - if_block.m(div, null); - current = true; - }, - p(ctx2, [dirty]) { - if ( - /*geojson*/ - ctx2[0] - ) { - if (if_block) { - if_block.p(ctx2, dirty); +function instance$d($$self, $$props, $$invalidate) { + let { $$slots: slots = {}, $$scope } = $$props; + const markerProvider = getContext(Marker); + let { options = {} } = $$props; + let icon; + let element2; + function getDivIcon() { + return icon; + } + function div_binding($$value) { + binding_callbacks[$$value ? "unshift" : "push"](() => { + element2 = $$value; + $$invalidate(0, element2); + }); + } + $$self.$$set = ($$props2) => { + if ("options" in $$props2) + $$invalidate(1, options = $$props2.options); + if ("$$scope" in $$props2) + $$invalidate(4, $$scope = $$props2.$$scope); + }; + $$self.$$.update = () => { + if ($$self.$$.dirty & /*options, element, icon*/ + 11) { + { + let adjustedOptions = options; + if (!adjustedOptions.html) { + adjustedOptions.html = element2; + } + $$invalidate(3, icon = new DivIcon(adjustedOptions)); + markerProvider().setIcon(icon); + } + } + }; + return [element2, options, getDivIcon, icon, $$scope, slots, div_binding]; +} +class DivIcon_1 extends SvelteComponent { + constructor(options) { + super(); + init(this, options, instance$d, create_fragment$8, safe_not_equal, { options: 1, getDivIcon: 2 }); + } + get getDivIcon() { + return this.$$.ctx[2]; + } +} +function create_if_block$5(ctx) { + let current; + const default_slot_template = ( + /*#slots*/ + ctx[6].default + ); + const default_slot = create_slot( + default_slot_template, + ctx, + /*$$scope*/ + ctx[5], + null + ); + return { + c() { + if (default_slot) + default_slot.c(); + }, + m(target, anchor) { + if (default_slot) { + default_slot.m(target, anchor); + } + current = true; + }, + p(ctx2, dirty) { + if (default_slot) { + if (default_slot.p && (!current || dirty & /*$$scope*/ + 32)) { + update_slot_base( + default_slot, + default_slot_template, + ctx2, + /*$$scope*/ + ctx2[5], + !current ? get_all_dirty_from_scope( + /*$$scope*/ + ctx2[5] + ) : get_slot_changes( + default_slot_template, + /*$$scope*/ + ctx2[5], + dirty, + null + ), + null + ); + } + } + }, + i(local) { + if (current) + return; + transition_in(default_slot, local); + current = true; + }, + o(local) { + transition_out(default_slot, local); + current = false; + }, + d(detaching) { + if (default_slot) + default_slot.d(detaching); + } + }; +} +function create_fragment$7(ctx) { + let div; + let current; + let if_block = ( + /*geojson*/ + ctx[0] && create_if_block$5(ctx) + ); + return { + c() { + div = element("div"); + if (if_block) + if_block.c(); + }, + m(target, anchor) { + insert(target, div, anchor); + if (if_block) + if_block.m(div, null); + current = true; + }, + p(ctx2, [dirty]) { + if ( + /*geojson*/ + ctx2[0] + ) { + if (if_block) { + if_block.p(ctx2, dirty); if (dirty & /*geojson*/ 1) { transition_in(if_block, 1); } } else { - if_block = create_if_block$4(ctx2); + if_block = create_if_block$5(ctx2); if_block.c(); transition_in(if_block, 1); if_block.m(div, null); @@ -972,51 +905,121 @@ class Icon_1 extends SvelteComponent { return this.$$.ctx[2]; } } -function create_fragment$6(ctx) { - let div; +function instance$a($$self, $$props, $$invalidate) { + const dispatch = createEventDispatcher(); + const mapProvider = getContext(Map); + let { imageUrl } = $$props; + let { bounds } = $$props; + let { opacity = 1 } = $$props; + let { zIndex = 1 } = $$props; + let { options = {} } = $$props; + let { events = [] } = $$props; + let imageOverlay; + let eventBridge; + onDestroy(() => { + eventBridge.unregister(); + imageOverlay.removeFrom(mapProvider()); + }); + function getImageOverlay() { + return imageOverlay; + } + $$self.$$set = ($$props2) => { + if ("imageUrl" in $$props2) + $$invalidate(0, imageUrl = $$props2.imageUrl); + if ("bounds" in $$props2) + $$invalidate(1, bounds = $$props2.bounds); + if ("opacity" in $$props2) + $$invalidate(2, opacity = $$props2.opacity); + if ("zIndex" in $$props2) + $$invalidate(3, zIndex = $$props2.zIndex); + if ("options" in $$props2) + $$invalidate(4, options = $$props2.options); + if ("events" in $$props2) + $$invalidate(5, events = $$props2.events); + }; + $$self.$$.update = () => { + if ($$self.$$.dirty & /*imageOverlay, imageUrl, bounds, options, events, opacity, zIndex*/ + 191) { + { + if (!imageOverlay) { + $$invalidate(7, imageOverlay = new ImageOverlay(imageUrl, bounds, options).addTo(mapProvider())); + eventBridge = new EventBridge(imageOverlay, dispatch, events); + } + imageOverlay.setUrl(imageUrl); + imageOverlay.setOpacity(opacity); + imageOverlay.setZIndex(zIndex); + } + } + }; + return [ + imageUrl, + bounds, + opacity, + zIndex, + options, + events, + getImageOverlay, + imageOverlay + ]; +} +class ImageOverlay_1 extends SvelteComponent { + constructor(options) { + super(); + init(this, options, instance$a, null, safe_not_equal, { + imageUrl: 0, + bounds: 1, + opacity: 2, + zIndex: 3, + options: 4, + events: 5, + getImageOverlay: 6 + }); + } + get getImageOverlay() { + return this.$$.ctx[6]; + } +} +function create_if_block$4(ctx) { let current; const default_slot_template = ( /*#slots*/ - ctx[5].default + ctx[6].default ); const default_slot = create_slot( default_slot_template, ctx, /*$$scope*/ - ctx[4], + ctx[5], null ); return { c() { - div = element("div"); if (default_slot) default_slot.c(); }, m(target, anchor) { - insert(target, div, anchor); if (default_slot) { - default_slot.m(div, null); + default_slot.m(target, anchor); } - ctx[6](div); current = true; }, - p(ctx2, [dirty]) { + p(ctx2, dirty) { if (default_slot) { if (default_slot.p && (!current || dirty & /*$$scope*/ - 16)) { + 32)) { update_slot_base( default_slot, default_slot_template, ctx2, /*$$scope*/ - ctx2[4], + ctx2[5], !current ? get_all_dirty_from_scope( /*$$scope*/ - ctx2[4] + ctx2[5] ) : get_slot_changes( default_slot_template, /*$$scope*/ - ctx2[4], + ctx2[5], dirty, null ), @@ -1036,132 +1039,129 @@ function create_fragment$6(ctx) { current = false; }, d(detaching) { - if (detaching) { - detach(div); - } if (default_slot) default_slot.d(detaching); - ctx[6](null); } }; } -function instance$a($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const markerProvider = getContext(Marker); - let { options = {} } = $$props; - let icon; - let element2; - function getDivIcon() { - return icon; - } - function div_binding($$value) { - binding_callbacks[$$value ? "unshift" : "push"](() => { - element2 = $$value; - $$invalidate(0, element2); - }); - } - $$self.$$set = ($$props2) => { - if ("options" in $$props2) - $$invalidate(1, options = $$props2.options); - if ("$$scope" in $$props2) - $$invalidate(4, $$scope = $$props2.$$scope); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*options, element, icon*/ - 11) { - { - let adjustedOptions = options; - if (!adjustedOptions.html) { - adjustedOptions.html = element2; +function create_fragment$6(ctx) { + let div; + let current; + let mounted; + let dispose; + let if_block = ( + /*map*/ + ctx[0] && create_if_block$4(ctx) + ); + return { + c() { + div = element("div"); + if (if_block) + if_block.c(); + set_style(div, "height", "100%"); + set_style(div, "width", "100%"); + }, + m(target, anchor) { + insert(target, div, anchor); + if (if_block) + if_block.m(div, null); + current = true; + if (!mounted) { + dispose = action_destroyer( + /*initialize*/ + ctx[1].call(null, div) + ); + mounted = true; + } + }, + p(ctx2, [dirty]) { + if ( + /*map*/ + ctx2[0] + ) { + if (if_block) { + if_block.p(ctx2, dirty); + if (dirty & /*map*/ + 1) { + transition_in(if_block, 1); + } + } else { + if_block = create_if_block$4(ctx2); + if_block.c(); + transition_in(if_block, 1); + if_block.m(div, null); } - $$invalidate(3, icon = new DivIcon(adjustedOptions)); - markerProvider().setIcon(icon); + } else if (if_block) { + group_outros(); + transition_out(if_block, 1, 1, () => { + if_block = null; + }); + check_outros(); + } + }, + i(local) { + if (current) + return; + transition_in(if_block); + current = true; + }, + o(local) { + transition_out(if_block); + current = false; + }, + d(detaching) { + if (detaching) { + detach(div); } + if (if_block) + if_block.d(); + mounted = false; + dispose(); } }; - return [element2, options, getDivIcon, icon, $$scope, slots, div_binding]; -} -class DivIcon_1 extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance$a, create_fragment$6, safe_not_equal, { options: 1, getDivIcon: 2 }); - } - get getDivIcon() { - return this.$$.ctx[2]; - } } function instance$9($$self, $$props, $$invalidate) { + let { $$slots: slots = {}, $$scope } = $$props; const dispatch = createEventDispatcher(); - const mapProvider = getContext(Map); - let { imageUrl } = $$props; - let { bounds } = $$props; - let { opacity = 1 } = $$props; - let { zIndex = 1 } = $$props; let { options = {} } = $$props; let { events = [] } = $$props; - let imageOverlay; + let map; let eventBridge; - onDestroy(() => { - eventBridge.unregister(); - imageOverlay.removeFrom(mapProvider()); - }); - function getImageOverlay() { - return imageOverlay; + setContext(Map, () => map); + function initialize(container, parameters) { + if (container.getBoundingClientRect().width === 0 && container.getBoundingClientRect().height === 0) { + console.log("[WARNING] skipped map initialization, container width and height is 0"); + return {}; + } + $$invalidate(0, map = new Map(container, options)); + eventBridge = new EventBridge(map, dispatch, events); + return { + destroy: () => { + eventBridge.unregister(); + map.remove(); + } + }; + } + function getMap() { + return map; } $$self.$$set = ($$props2) => { - if ("imageUrl" in $$props2) - $$invalidate(0, imageUrl = $$props2.imageUrl); - if ("bounds" in $$props2) - $$invalidate(1, bounds = $$props2.bounds); - if ("opacity" in $$props2) - $$invalidate(2, opacity = $$props2.opacity); - if ("zIndex" in $$props2) - $$invalidate(3, zIndex = $$props2.zIndex); if ("options" in $$props2) - $$invalidate(4, options = $$props2.options); + $$invalidate(2, options = $$props2.options); if ("events" in $$props2) - $$invalidate(5, events = $$props2.events); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*imageOverlay, imageUrl, bounds, options, events, opacity, zIndex*/ - 191) { - { - if (!imageOverlay) { - $$invalidate(7, imageOverlay = new ImageOverlay(imageUrl, bounds, options).addTo(mapProvider())); - eventBridge = new EventBridge(imageOverlay, dispatch, events); - } - imageOverlay.setUrl(imageUrl); - imageOverlay.setOpacity(opacity); - imageOverlay.setZIndex(zIndex); - } - } + $$invalidate(3, events = $$props2.events); + if ("$$scope" in $$props2) + $$invalidate(5, $$scope = $$props2.$$scope); }; - return [ - imageUrl, - bounds, - opacity, - zIndex, - options, - events, - getImageOverlay, - imageOverlay - ]; + return [map, initialize, options, events, getMap, $$scope, slots]; } -class ImageOverlay_1 extends SvelteComponent { +class LeafletMap extends SvelteComponent { constructor(options) { super(); - init(this, options, instance$9, null, safe_not_equal, { - imageUrl: 0, - bounds: 1, - opacity: 2, - zIndex: 3, - options: 4, - events: 5, - getImageOverlay: 6 - }); + init(this, options, instance$9, create_fragment$6, safe_not_equal, { options: 2, events: 3, getMap: 4 }); } - get getImageOverlay() { - return this.$$.ctx[6]; + get getMap() { + return this.$$.ctx[4]; } } function create_if_block$3(ctx) { @@ -1389,13 +1389,13 @@ function create_if_block$2(ctx) { let current; const default_slot_template = ( /*#slots*/ - ctx[13].default + ctx[17].default ); const default_slot = create_slot( default_slot_template, ctx, /*$$scope*/ - ctx[12], + ctx[16], null ); return { @@ -1412,20 +1412,20 @@ function create_if_block$2(ctx) { p(ctx2, dirty) { if (default_slot) { if (default_slot.p && (!current || dirty & /*$$scope*/ - 4096)) { + 65536)) { update_slot_base( default_slot, default_slot_template, ctx2, /*$$scope*/ - ctx2[12], + ctx2[16], !current ? get_all_dirty_from_scope( /*$$scope*/ - ctx2[12] + ctx2[16] ) : get_slot_changes( default_slot_template, /*$$scope*/ - ctx2[12], + ctx2[16], dirty, null ), @@ -1454,7 +1454,7 @@ function create_fragment$4(ctx) { let div; let current; let if_block = ( - /*polyline*/ + /*polygon*/ ctx[0] && create_if_block$2(ctx) ); return { @@ -1471,12 +1471,12 @@ function create_fragment$4(ctx) { }, p(ctx2, [dirty]) { if ( - /*polyline*/ + /*polygon*/ ctx2[0] ) { if (if_block) { if_block.p(ctx2, dirty); - if (dirty & /*polyline*/ + if (dirty & /*polygon*/ 1) { transition_in(if_block, 1); } @@ -1525,17 +1525,21 @@ function instance$7($$self, $$props, $$invalidate) { let { lineJoin = "round" } = $$props; let { dashArray = void 0 } = $$props; let { dashOffset = void 0 } = $$props; + let { fill = true } = $$props; + let { fillColor = "#3388ff" } = $$props; + let { fillOpacity = 0.2 } = $$props; + let { fillRule = "evenodd" } = $$props; let { options = {} } = $$props; let { events = [] } = $$props; - let polyline; + let polygon; let eventBridge; - setContext(Layer, () => polyline); + setContext(Layer, () => polygon); onDestroy(() => { eventBridge.unregister(); - polyline.removeFrom(mapProvider()); + polygon.removeFrom(mapProvider()); }); - function getPolyline() { - return polyline; + function getPolygon() { + return polygon; } $$self.$$set = ($$props2) => { if ("latLngs" in $$props2) @@ -1554,36 +1558,48 @@ function instance$7($$self, $$props, $$invalidate) { $$invalidate(7, dashArray = $$props2.dashArray); if ("dashOffset" in $$props2) $$invalidate(8, dashOffset = $$props2.dashOffset); + if ("fill" in $$props2) + $$invalidate(9, fill = $$props2.fill); + if ("fillColor" in $$props2) + $$invalidate(10, fillColor = $$props2.fillColor); + if ("fillOpacity" in $$props2) + $$invalidate(11, fillOpacity = $$props2.fillOpacity); + if ("fillRule" in $$props2) + $$invalidate(12, fillRule = $$props2.fillRule); if ("options" in $$props2) - $$invalidate(9, options = $$props2.options); + $$invalidate(13, options = $$props2.options); if ("events" in $$props2) - $$invalidate(10, events = $$props2.events); + $$invalidate(14, events = $$props2.events); if ("$$scope" in $$props2) - $$invalidate(12, $$scope = $$props2.$$scope); + $$invalidate(16, $$scope = $$props2.$$scope); }; $$self.$$.update = () => { - if ($$self.$$.dirty & /*polyline, latLngs, options, events, color, weight, opacity, lineCap, lineJoin, dashArray, dashOffset*/ - 2047) { + if ($$self.$$.dirty & /*polygon, latLngs, options, events, color, weight, opacity, lineCap, lineJoin, dashArray, dashOffset, fill, fillColor, fillOpacity, fillRule*/ + 32767) { { - if (!polyline) { - $$invalidate(0, polyline = new Polyline(latLngs, options).addTo(mapProvider())); - eventBridge = new EventBridge(polyline, dispatch, events); + if (!polygon) { + $$invalidate(0, polygon = new Polygon(latLngs, options).addTo(mapProvider())); + eventBridge = new EventBridge(polygon, dispatch, events); } - polyline.setLatLngs(latLngs); - polyline.setStyle({ + polygon.setLatLngs(latLngs); + polygon.setStyle({ color, weight, opacity, lineCap, lineJoin, dashArray, - dashOffset + dashOffset, + fill, + fillColor, + fillOpacity, + fillRule }); } } }; return [ - polyline, + polygon, latLngs, color, weight, @@ -1592,14 +1608,18 @@ function instance$7($$self, $$props, $$invalidate) { lineJoin, dashArray, dashOffset, + fill, + fillColor, + fillOpacity, + fillRule, options, events, - getPolyline, + getPolygon, $$scope, slots ]; } -class Polyline_1 extends SvelteComponent { +class Polygon_1 extends SvelteComponent { constructor(options) { super(); init(this, options, instance$7, create_fragment$4, safe_not_equal, { @@ -1611,26 +1631,30 @@ class Polyline_1 extends SvelteComponent { lineJoin: 6, dashArray: 7, dashOffset: 8, - options: 9, - events: 10, - getPolyline: 11 + fill: 9, + fillColor: 10, + fillOpacity: 11, + fillRule: 12, + options: 13, + events: 14, + getPolygon: 15 }); } - get getPolyline() { - return this.$$.ctx[11]; + get getPolygon() { + return this.$$.ctx[15]; } } function create_if_block$1(ctx) { let current; const default_slot_template = ( /*#slots*/ - ctx[17].default + ctx[13].default ); const default_slot = create_slot( default_slot_template, ctx, /*$$scope*/ - ctx[16], + ctx[12], null ); return { @@ -1647,20 +1671,20 @@ function create_if_block$1(ctx) { p(ctx2, dirty) { if (default_slot) { if (default_slot.p && (!current || dirty & /*$$scope*/ - 65536)) { + 4096)) { update_slot_base( default_slot, default_slot_template, ctx2, /*$$scope*/ - ctx2[16], + ctx2[12], !current ? get_all_dirty_from_scope( /*$$scope*/ - ctx2[16] + ctx2[12] ) : get_slot_changes( default_slot_template, /*$$scope*/ - ctx2[16], + ctx2[12], dirty, null ), @@ -1689,7 +1713,7 @@ function create_fragment$3(ctx) { let div; let current; let if_block = ( - /*polygon*/ + /*polyline*/ ctx[0] && create_if_block$1(ctx) ); return { @@ -1706,12 +1730,12 @@ function create_fragment$3(ctx) { }, p(ctx2, [dirty]) { if ( - /*polygon*/ + /*polyline*/ ctx2[0] ) { if (if_block) { if_block.p(ctx2, dirty); - if (dirty & /*polygon*/ + if (dirty & /*polyline*/ 1) { transition_in(if_block, 1); } @@ -1760,21 +1784,17 @@ function instance$6($$self, $$props, $$invalidate) { let { lineJoin = "round" } = $$props; let { dashArray = void 0 } = $$props; let { dashOffset = void 0 } = $$props; - let { fill = true } = $$props; - let { fillColor = "#3388ff" } = $$props; - let { fillOpacity = 0.2 } = $$props; - let { fillRule = "evenodd" } = $$props; let { options = {} } = $$props; let { events = [] } = $$props; - let polygon; + let polyline; let eventBridge; - setContext(Layer, () => polygon); + setContext(Layer, () => polyline); onDestroy(() => { eventBridge.unregister(); - polygon.removeFrom(mapProvider()); + polyline.removeFrom(mapProvider()); }); - function getPolygon() { - return polygon; + function getPolyline() { + return polyline; } $$self.$$set = ($$props2) => { if ("latLngs" in $$props2) @@ -1793,48 +1813,36 @@ function instance$6($$self, $$props, $$invalidate) { $$invalidate(7, dashArray = $$props2.dashArray); if ("dashOffset" in $$props2) $$invalidate(8, dashOffset = $$props2.dashOffset); - if ("fill" in $$props2) - $$invalidate(9, fill = $$props2.fill); - if ("fillColor" in $$props2) - $$invalidate(10, fillColor = $$props2.fillColor); - if ("fillOpacity" in $$props2) - $$invalidate(11, fillOpacity = $$props2.fillOpacity); - if ("fillRule" in $$props2) - $$invalidate(12, fillRule = $$props2.fillRule); if ("options" in $$props2) - $$invalidate(13, options = $$props2.options); + $$invalidate(9, options = $$props2.options); if ("events" in $$props2) - $$invalidate(14, events = $$props2.events); + $$invalidate(10, events = $$props2.events); if ("$$scope" in $$props2) - $$invalidate(16, $$scope = $$props2.$$scope); + $$invalidate(12, $$scope = $$props2.$$scope); }; $$self.$$.update = () => { - if ($$self.$$.dirty & /*polygon, latLngs, options, events, color, weight, opacity, lineCap, lineJoin, dashArray, dashOffset, fill, fillColor, fillOpacity, fillRule*/ - 32767) { + if ($$self.$$.dirty & /*polyline, latLngs, options, events, color, weight, opacity, lineCap, lineJoin, dashArray, dashOffset*/ + 2047) { { - if (!polygon) { - $$invalidate(0, polygon = new Polygon(latLngs, options).addTo(mapProvider())); - eventBridge = new EventBridge(polygon, dispatch, events); + if (!polyline) { + $$invalidate(0, polyline = new Polyline(latLngs, options).addTo(mapProvider())); + eventBridge = new EventBridge(polyline, dispatch, events); } - polygon.setLatLngs(latLngs); - polygon.setStyle({ + polyline.setLatLngs(latLngs); + polyline.setStyle({ color, weight, opacity, lineCap, lineJoin, dashArray, - dashOffset, - fill, - fillColor, - fillOpacity, - fillRule + dashOffset }); } } }; return [ - polygon, + polyline, latLngs, color, weight, @@ -1843,18 +1851,14 @@ function instance$6($$self, $$props, $$invalidate) { lineJoin, dashArray, dashOffset, - fill, - fillColor, - fillOpacity, - fillRule, options, events, - getPolygon, + getPolyline, $$scope, slots ]; } -class Polygon_1 extends SvelteComponent { +class Polyline_1 extends SvelteComponent { constructor(options) { super(); init(this, options, instance$6, create_fragment$3, safe_not_equal, { @@ -1866,17 +1870,13 @@ class Polygon_1 extends SvelteComponent { lineJoin: 6, dashArray: 7, dashOffset: 8, - fill: 9, - fillColor: 10, - fillOpacity: 11, - fillRule: 12, - options: 13, - events: 14, - getPolygon: 15 + options: 9, + events: 10, + getPolyline: 11 }); } - get getPolygon() { - return this.$$.ctx[15]; + get getPolyline() { + return this.$$.ctx[11]; } } function create_fragment$2(ctx) { diff --git a/dist/svelte-leafletjs.js.map b/dist/svelte-leafletjs.js.map index 2e23bbf..8869987 100644 --- a/dist/svelte-leafletjs.js.map +++ b/dist/svelte-leafletjs.js.map @@ -1 +1 @@ -{"version":3,"file":"svelte-leafletjs.js","sources":["../src/lib/EventBridge.ts","../src/components/LeafletMap.svelte","../src/components/Circle.svelte","../src/components/CircleMarker.svelte","../src/components/GeoJSON.svelte","../src/components/Icon.svelte","../src/components/DivIcon.svelte","../src/components/ImageOverlay.svelte","../src/components/Marker.svelte","../src/components/Polyline.svelte","../src/components/Polygon.svelte","../src/components/Popup.svelte","../src/components/Rectangle.svelte","../src/components/ScaleControl.svelte","../src/components/TileLayer.svelte","../src/components/TileLayerWMS.svelte","../src/components/Tooltip.svelte"],"sourcesContent":["import type {Evented, LeafletEvent, LeafletEventHandlerFn} from 'leaflet';\nimport type {EventDispatcher} from 'svelte';\n\nexport default class EventBridge {\n private entity: Evented;\n private eventMap: Record = {};\n\n constructor(entity: Evented, dispatch: EventDispatcher, events: string[] = []) {\n this.entity = entity;\n\n if (events) {\n events.forEach(event => {\n if (event in this.eventMap) {\n return;\n }\n const handler = function (e: LeafletEvent): void {\n dispatch(event, e);\n };\n entity.on(event, handler);\n this.eventMap[event] = handler;\n });\n }\n }\n\n unregister(): void {\n Object.entries(this.eventMap).forEach(([event, handler]) => {\n this.entity.off(event, handler);\n });\n }\n}","\n\n
\n {#if map}\n \n {/if}\n
\n","\n\n
\n {#if circle}\n \n {/if}\n
\n","\n\n
\n {#if circleMarker}\n \n {/if}\n
\n","\n\n
\n {#if geojson}\n \n {/if}\n
\n","\n","\n\n
\n \n
\n","\n","\n\n
\n {#if marker}\n \n {/if}\n
\n","\n\n
\n {#if polyline}\n \n {/if}\n
\n","\n\n
\n {#if polygon}\n \n {/if}\n
\n","\n\n
\n
\n \n
\n
","\n\n
\n {#if rectangle}\n \n {/if}\n
\n","\n","\n","\n","\n\n
\n
\n \n
\n
\n"],"names":["create_if_block","ctx","element"],"mappings":";;;;;;;;;;AAGA,MAAqB,YAAY;AAAA,EAI7B,YAAY,QAAiB,UAAgC,SAAmB,CAAA,GAAI;AAH5E;AACA,oCAAkD,CAAA;AAGtD,SAAK,SAAS;AAEd,QAAI,QAAQ;AACR,aAAO,QAAQ,CAAS,UAAA;AAChB,YAAA,SAAS,KAAK,UAAU;AACxB;AAAA,QACJ;AACM,cAAA,UAAU,SAAU,GAAuB;AAC7C,mBAAS,OAAO,CAAC;AAAA,QAAA;AAEd,eAAA,GAAG,OAAO,OAAO;AACnB,aAAA,SAAS,KAAK,IAAI;AAAA,MAAA,CAC1B;AAAA,IACL;AAAA,EACJ;AAAA,EAE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KK,MAAAA,WAAO;;;;;;;;;;;;;;;AAnBvB;AACS,YAAA,CAAA,SAAA;AACD,uBAAA,GAAA,UAAA,IAAc,QAAQ,OAAO,CAAA;AAC7B,wBAAkB,IAAA,YAAY,SAAS,UAAU,MAAM;AACvD,wBAAA,EAAgB,YAAY,OAAO;AAAA;AAEvC,gBAAQ,WAAWA,QAAO;AAAA;;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"svelte-leafletjs.js","sources":["../src/lib/EventBridge.ts","../src/components/Circle.svelte","../src/components/CircleMarker.svelte","../src/components/DivIcon.svelte","../src/components/GeoJSON.svelte","../src/components/Icon.svelte","../src/components/ImageOverlay.svelte","../src/components/LeafletMap.svelte","../src/components/Marker.svelte","../src/components/Polygon.svelte","../src/components/Polyline.svelte","../src/components/Popup.svelte","../src/components/Rectangle.svelte","../src/components/ScaleControl.svelte","../src/components/TileLayer.svelte","../src/components/TileLayerWMS.svelte","../src/components/Tooltip.svelte"],"sourcesContent":["import type {Evented, LeafletEvent, LeafletEventHandlerFn} from 'leaflet';\nimport type {EventDispatcher} from 'svelte';\n\nexport default class EventBridge {\n private entity: Evented;\n private eventMap: Record = {};\n\n constructor(entity: Evented, dispatch: EventDispatcher, events: string[] = []) {\n this.entity = entity;\n\n if (events) {\n events.forEach(event => {\n if (event in this.eventMap) {\n return;\n }\n const handler = function (e: LeafletEvent): void {\n dispatch(event, e);\n };\n entity.on(event, handler);\n this.eventMap[event] = handler;\n });\n }\n }\n\n unregister(): void {\n Object.entries(this.eventMap).forEach(([event, handler]) => {\n this.entity.off(event, handler);\n });\n }\n}","\n\n
\n {#if circle}\n \n {/if}\n
\n","\n\n
\n {#if circleMarker}\n \n {/if}\n
\n","\n\n
\n \n
\n","\n\n
\n {#if geojson}\n \n {/if}\n
\n","\n","\n","\n\n
\n {#if map}\n \n {/if}\n
\n","\n\n
\n {#if marker}\n \n {/if}\n
\n","\n\n
\n {#if polygon}\n \n {/if}\n
\n","\n\n
\n {#if polyline}\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