8 lines
630 KiB
Plaintext
8 lines
630 KiB
Plaintext
|
{
|
||
|
"version": 3,
|
||
|
"sources": ["../../leaflet/src/core/Util.js", "../../leaflet/src/core/Class.js", "../../leaflet/src/core/Events.js", "../../leaflet/src/geometry/Point.js", "../../leaflet/src/geometry/Bounds.js", "../../leaflet/src/geo/LatLngBounds.js", "../../leaflet/src/geo/LatLng.js", "../../leaflet/src/geo/crs/CRS.js", "../../leaflet/src/geo/crs/CRS.Earth.js", "../../leaflet/src/geo/projection/Projection.SphericalMercator.js", "../../leaflet/src/geometry/Transformation.js", "../../leaflet/src/geo/crs/CRS.EPSG3857.js", "../../leaflet/src/layer/vector/SVG.Util.js", "../../leaflet/src/core/Browser.js", "../../leaflet/src/dom/DomEvent.Pointer.js", "../../leaflet/src/dom/DomEvent.DoubleTap.js", "../../leaflet/src/dom/DomUtil.js", "../../leaflet/src/dom/DomEvent.js", "../../leaflet/src/dom/PosAnimation.js", "../../leaflet/src/map/Map.js", "../../leaflet/src/control/Control.js", "../../leaflet/src/control/Control.Layers.js", "../../leaflet/src/control/Control.Zoom.js", "../../leaflet/src/control/Control.Scale.js", "../../leaflet/src/control/Control.Attribution.js", "../../leaflet/src/control/index.js", "../../leaflet/src/core/Handler.js", "../../leaflet/src/core/index.js", "../../leaflet/src/dom/Draggable.js", "../../leaflet/src/geometry/LineUtil.js", "../../leaflet/src/geometry/PolyUtil.js", "../../leaflet/src/geo/projection/Projection.LonLat.js", "../../leaflet/src/geo/projection/Projection.Mercator.js", "../../leaflet/src/geo/projection/index.js", "../../leaflet/src/geo/crs/CRS.EPSG3395.js", "../../leaflet/src/geo/crs/CRS.EPSG4326.js", "../../leaflet/src/geo/crs/CRS.Simple.js", "../../leaflet/src/geo/crs/index.js", "../../leaflet/src/layer/Layer.js", "../../leaflet/src/layer/LayerGroup.js", "../../leaflet/src/layer/FeatureGroup.js", "../../leaflet/src/layer/marker/Icon.js", "../../leaflet/src/layer/marker/Icon.Default.js", "../../leaflet/src/layer/marker/Marker.Drag.js", "../../leaflet/src/layer/marker/Marker.js", "../../leaflet/src/layer/vector/Path.js", "../../leaflet/src/layer/vector/CircleMarker.js", "../../leaflet/src/layer/vector/Circle.js", "../../leaflet/src/layer/vector/Polyline.js", "../../leaflet/src/layer/vector/Polygon.js", "../../leaflet/src/layer/GeoJSON.js", "../../leaflet/src/layer/ImageOverlay.js", "../../leaflet/src/layer/VideoOverlay.js", "../../leaflet/src/layer/SVGOverlay.js", "../../leaflet/src/layer/DivOverlay.js", "../../leaflet/src/layer/Popup.js", "../../leaflet/src/layer/Tooltip.js", "../../leaflet/src/layer/marker/DivIcon.js", "../../leaflet/src/layer/marker/index.js", "../../leaflet/src/layer/tile/GridLayer.js", "../../leaflet/src/layer/tile/TileLayer.js", "../../leaflet/src/layer/tile/TileLayer.WMS.js", "../../leaflet/src/layer/tile/index.js", "../../leaflet/src/layer/vector/Renderer.js", "../../leaflet/src/layer/vector/Canvas.js", "../../leaflet/src/layer/vector/SVG.VML.js", "../../leaflet/src/layer/vector/SVG.js", "../../leaflet/src/layer/vector/Renderer.getRenderer.js", "../../leaflet/src/layer/vector/Rectangle.js", "../../leaflet/src/layer/vector/index.js", "../../leaflet/src/layer/index.js", "../../leaflet/src/map/handler/Map.BoxZoom.js", "../../leaflet/src/map/handler/Map.DoubleClickZoom.js", "../../leaflet/src/map/handler/Map.Drag.js", "../../leaflet/src/map/handler/Map.Keyboard.js", "../../leaflet/src/map/handler/Map.ScrollWheelZoom.js", "../../leaflet/src/map/handler/Map.TapHold.js", "../../leaflet/src/map/handler/Map.TouchZoom.js", "../../leaflet/src/map/index.js", "dep:svelte-leafletjs__leaflet"],
|
||
|
"sourcesContent": ["/*\r\n * @namespace Util\r\n *\r\n * Various utility functions, used by Leaflet internally.\r\n */\r\n\r\n// @function extend(dest: Object, src?: Object): Object\r\n// Merges the properties of the `src` object (or multiple objects) into `dest` object and returns the latter. Has an `L.extend` shortcut.\r\nexport function extend(dest) {\r\n\tvar i, j, len, src;\r\n\r\n\tfor (j = 1, len = arguments.length; j < len; j++) {\r\n\t\tsrc = arguments[j];\r\n\t\tfor (i in src) {\r\n\t\t\tdest[i] = src[i];\r\n\t\t}\r\n\t}\r\n\treturn dest;\r\n}\r\n\r\n// @function create(proto: Object, properties?: Object): Object\r\n// Compatibility polyfill for [Object.create](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/create)\r\nexport var create = Object.create || (function () {\r\n\tfunction F() {}\r\n\treturn function (proto) {\r\n\t\tF.prototype = proto;\r\n\t\treturn new F();\r\n\t};\r\n})();\r\n\r\n// @function bind(fn: Function, \u2026): Function\r\n// Returns a new function bound to the arguments passed, like [Function.prototype.bind](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).\r\n// Has a `L.bind()` shortcut.\r\nexport function bind(fn, obj) {\r\n\tvar slice = Array.prototype.slice;\r\n\r\n\tif (fn.bind) {\r\n\t\treturn fn.bind.apply(fn, slice.call(arguments, 1));\r\n\t}\r\n\r\n\tvar args = slice.call(arguments, 2);\r\n\r\n\treturn function () {\r\n\t\treturn fn.apply(obj, args.length ? args.concat(slice.call(arguments)) : arguments);\r\n\t};\r\n}\r\n\r\n// @property lastId: Number\r\n// Last unique ID used by [`stamp()`](#util-stamp)\r\nexport var lastId = 0;\r\n\r\n// @function stamp(obj: Object): Number\r\n// Returns the unique ID of an object, assigning it one if it doesn't have it.\r\nexport function stamp(obj) {\r\n\tif (!('_leaflet_id' in obj)) {\r\n\t\tobj['_leaflet_id'] = ++lastId;\r\n\t}\r\n\treturn obj._leaflet_id;\r\n}\r\n\r\n// @function throttle(fn: Function, time: Number, context: Object): Function\r\n// Returns a function which executes function `fn` with the given scope `context`\r\n// (so that the `this` keyword refers to `context` inside `fn`'s code). The function\r\n// `fn` will be called no more than one time per given amount of `time`. The arguments\r\n// received by the bound function will be any arguments passed when binding the\r\n// function, followed by any arguments passed when invoking the bound function.\r\n// Has an `L.throttle` shortcut.\r\nexport function throttle(fn, time, context) {\r\n\tvar lock, args, wrapperFn, later;\r\n\r\n\tlater = function () {\r\n\t\t// reset lock and call if queued\r\n\t\tlock = false;\r\n\t\tif (args) {\r\n\t\t\twrapperFn.apply(context, args);\r\n\t\t\targs = false;\r\n\t\t}\r\n\t};\r\n\r\n\twrapperFn = function () {\r\n\t\tif (lock) {\r\n\t\t\t// called too soon, queue to call later\r\n\t\t\targs = arguments;\r\n\r\n\t\t} else {\r\n\t\t\t// call and lock until later\r\n\t\t\tfn.apply(context, arguments);\r\n\t\t\tsetTimeout(later, time);\r\n\t\t\tlock = true;\r\n\t\t}\r\n\t};\r\n\r\n\treturn wrapperFn;\r\n}\r\n\r\n// @function wrapNum(num: Number, range: Number[], includeMax?: Boolean): Number\r\n// Returns the number `num` modulo `range` in such a way so it lies within\r\n// `range[0]` and `range[1]`. The returned value will be always smaller than\r\n// `range[1]` unless `includeMax` is set to `true`.\r\nexport function wrapNum(x, range, includeMax) {\r\n\tvar max = range[1],\r\n\t min = range[0],\r\n\t d = max - min;\r\n\treturn x === max && includeMax ? x : ((x - min) % d + d) % d + min;\r\n}\r\n\r\n// @function falseFn(): Function\r\n// Returns a function which always returns `false`.\r\nexport function falseFn() { return false; }\r\n\r\n// @function formatNum(num: Number, precision?: Number|false): Number\r\n// Returns the number `num` rounded with specified `precision`.\r\n// The default `precision` value is 6 decimal places.\r\n// `false` can be passed to skip any processing (can be useful to avoid round-off errors).\r\nexport function formatNum(num, prec
|
||
|
"mappings": ";;;;;;;;;;;;AAQO,sBAAgB,MAAM;AAC5B,YAAI,GAAG,GAAG,KAAK;AAEf,aAAK,IAAI,GAAG,MAAM,UAAU,QAAQ,IAAI,KAAK,KAAK;AACjD,gBAAM,UAAU;AAChB,eAAK,KAAK,KAAK;AACd,iBAAK,KAAK,IAAI;UACjB;QACA;AACC,eAAO;MACR;AAIO,UAAI,WAAS,OAAO,UAAW,WAAY;AACjD,qBAAa;QAAA;AACb,eAAO,SAAU,OAAO;AACvB,YAAE,YAAY;A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