@inlog/inlog-maps 1.0.0 → 1.1.0-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DOCUMENTATION.md +1813 -0
- package/README.md +46 -591
- package/_bundles/inlog-maps.js +3 -0
- package/_bundles/inlog-maps.js.LICENSE.txt +20 -0
- package/_bundles/inlog-maps.js.map +1 -0
- package/_bundles/inlog-maps.min.js +3 -0
- package/_bundles/inlog-maps.min.js.LICENSE.txt +20 -0
- package/_bundles/inlog-maps.min.js.map +1 -0
- package/bower.json +23 -0
- package/lib/index.d.ts +46 -0
- package/lib/index.js +47 -0
- package/lib/index.js.map +1 -0
- package/lib/map.d.ts +519 -0
- package/lib/map.js +1137 -0
- package/lib/map.js.map +1 -0
- package/lib/models/apis/google/google-circles.d.ts +18 -0
- package/lib/models/apis/google/google-circles.js +134 -0
- package/lib/models/apis/google/google-circles.js.map +1 -0
- package/lib/models/apis/google/google-geojson.d.ts +9 -0
- package/lib/models/apis/google/google-geojson.js +73 -0
- package/lib/models/apis/google/google-geojson.js.map +1 -0
- package/lib/models/apis/google/google-map.d.ts +16 -0
- package/lib/models/apis/google/google-map.js +174 -0
- package/lib/models/apis/google/google-map.js.map +1 -0
- package/lib/models/apis/google/google-markers.d.ts +29 -0
- package/lib/models/apis/google/google-markers.js +325 -0
- package/lib/models/apis/google/google-markers.js.map +1 -0
- package/lib/models/apis/google/google-overlay.d.ts +11 -0
- package/lib/models/apis/google/google-overlay.js +102 -0
- package/lib/models/apis/google/google-overlay.js.map +1 -0
- package/lib/models/apis/google/google-polygons.d.ts +29 -0
- package/lib/models/apis/google/google-polygons.js +301 -0
- package/lib/models/apis/google/google-polygons.js.map +1 -0
- package/lib/models/apis/google/google-polylines.d.ts +55 -0
- package/lib/models/apis/google/google-polylines.js +707 -0
- package/lib/models/apis/google/google-polylines.js.map +1 -0
- package/lib/models/apis/google/google-popup.d.ts +10 -0
- package/lib/models/apis/google/google-popup.js +59 -0
- package/lib/models/apis/google/google-popup.js.map +1 -0
- package/lib/models/apis/googleMaps.d.ts +97 -0
- package/lib/models/apis/googleMaps.js +449 -0
- package/lib/models/apis/googleMaps.js.map +1 -0
- package/lib/models/apis/leaflet/leaflet-circle.d.ts +18 -0
- package/lib/models/apis/leaflet/leaflet-circle.js +163 -0
- package/lib/models/apis/leaflet/leaflet-circle.js.map +1 -0
- package/lib/models/apis/leaflet/leaflet-geojson.d.ts +9 -0
- package/lib/models/apis/leaflet/leaflet-geojson.js +73 -0
- package/lib/models/apis/leaflet/leaflet-geojson.js.map +1 -0
- package/lib/models/apis/leaflet/leaflet-map.d.ts +16 -0
- package/lib/models/apis/leaflet/leaflet-map.js +140 -0
- package/lib/models/apis/leaflet/leaflet-map.js.map +1 -0
- package/lib/models/apis/leaflet/leaflet-markers.d.ts +29 -0
- package/lib/models/apis/leaflet/leaflet-markers.js +294 -0
- package/lib/models/apis/leaflet/leaflet-markers.js.map +1 -0
- package/lib/models/apis/leaflet/leaflet-overlay.d.ts +10 -0
- package/lib/models/apis/leaflet/leaflet-overlay.js +35 -0
- package/lib/models/apis/leaflet/leaflet-overlay.js.map +1 -0
- package/lib/models/apis/leaflet/leaflet-polygons.d.ts +23 -0
- package/lib/models/apis/leaflet/leaflet-polygons.js +211 -0
- package/lib/models/apis/leaflet/leaflet-polygons.js.map +1 -0
- package/lib/models/apis/leaflet/leaflet-polylines.d.ts +55 -0
- package/lib/models/apis/leaflet/leaflet-polylines.js +721 -0
- package/lib/models/apis/leaflet/leaflet-polylines.js.map +1 -0
- package/lib/models/apis/leaflet/leaflet-popup.d.ts +11 -0
- package/lib/models/apis/leaflet/leaflet-popup.js +74 -0
- package/lib/models/apis/leaflet/leaflet-popup.js.map +1 -0
- package/lib/models/apis/leaflet.d.ts +99 -0
- package/lib/models/apis/leaflet.js +464 -0
- package/lib/models/apis/leaflet.js.map +1 -0
- package/lib/models/apis/mapFunctions.d.ts +85 -0
- package/lib/models/apis/mapFunctions.js +2 -0
- package/lib/models/apis/mapFunctions.js.map +1 -0
- package/lib/models/dto/event-type.d.ts +33 -0
- package/lib/models/dto/event-type.js +39 -0
- package/lib/models/dto/event-type.js.map +1 -0
- package/lib/models/dto/map-type.d.ts +4 -0
- package/lib/models/dto/map-type.js +6 -0
- package/lib/models/dto/map-type.js.map +1 -0
- package/lib/models/dto/polyline-type.d.ts +5 -0
- package/lib/models/dto/polyline-type.js +7 -0
- package/lib/models/dto/polyline-type.js.map +1 -0
- package/lib/models/features/circle/circle-alter-options.d.ts +12 -0
- package/lib/models/features/circle/circle-alter-options.js +14 -0
- package/lib/models/features/circle/circle-alter-options.js.map +1 -0
- package/lib/models/features/circle/circle-options.d.ts +15 -0
- package/lib/models/features/circle/circle-options.js +19 -0
- package/lib/models/features/circle/circle-options.js.map +1 -0
- package/lib/models/features/events/event-return.d.ts +4 -0
- package/lib/models/features/events/event-return.js +8 -0
- package/lib/models/features/events/event-return.js.map +1 -0
- package/lib/models/features/geojson/geojson-options.d.ts +5 -0
- package/lib/models/features/geojson/geojson-options.js +9 -0
- package/lib/models/features/geojson/geojson-options.js.map +1 -0
- package/lib/models/features/marker/circle-marker-options.d.ts +9 -0
- package/lib/models/features/marker/circle-marker-options.js +12 -0
- package/lib/models/features/marker/circle-marker-options.js.map +1 -0
- package/lib/models/features/marker/circle-marker-style.d.ts +8 -0
- package/lib/models/features/marker/circle-marker-style.js +12 -0
- package/lib/models/features/marker/circle-marker-style.js.map +1 -0
- package/lib/models/features/marker/marker-alter-options.d.ts +8 -0
- package/lib/models/features/marker/marker-alter-options.js +10 -0
- package/lib/models/features/marker/marker-alter-options.js.map +1 -0
- package/lib/models/features/marker/marker-icon.d.ts +6 -0
- package/lib/models/features/marker/marker-icon.js +10 -0
- package/lib/models/features/marker/marker-icon.js.map +1 -0
- package/lib/models/features/marker/marker-options.d.ts +11 -0
- package/lib/models/features/marker/marker-options.js +18 -0
- package/lib/models/features/marker/marker-options.js.map +1 -0
- package/lib/models/features/marker-clusterer/marker-clusterer-config.d.ts +6 -0
- package/lib/models/features/marker-clusterer/marker-clusterer-config.js +10 -0
- package/lib/models/features/marker-clusterer/marker-clusterer-config.js.map +1 -0
- package/lib/models/features/overlay/overlay-options.d.ts +11 -0
- package/lib/models/features/overlay/overlay-options.js +15 -0
- package/lib/models/features/overlay/overlay-options.js.map +1 -0
- package/lib/models/features/polygons/polygon-alter-options.d.ts +13 -0
- package/lib/models/features/polygons/polygon-alter-options.js +14 -0
- package/lib/models/features/polygons/polygon-alter-options.js.map +1 -0
- package/lib/models/features/polygons/polygon-options.d.ts +15 -0
- package/lib/models/features/polygons/polygon-options.js +19 -0
- package/lib/models/features/polygons/polygon-options.js.map +1 -0
- package/lib/models/features/polyline/navigations-options.d.ts +11 -0
- package/lib/models/features/polyline/navigations-options.js +16 -0
- package/lib/models/features/polyline/navigations-options.js.map +1 -0
- package/lib/models/features/polyline/polyline-options.d.ts +18 -0
- package/lib/models/features/polyline/polyline-options.js +20 -0
- package/lib/models/features/polyline/polyline-options.js.map +1 -0
- package/lib/models/features/popup/popup-options.d.ts +9 -0
- package/lib/models/features/popup/popup-options.js +13 -0
- package/lib/models/features/popup/popup-options.js.map +1 -0
- package/lib/utils/maps-api-loader.service.d.ts +14 -0
- package/lib/utils/maps-api-loader.service.js +89 -0
- package/lib/utils/maps-api-loader.service.js.map +1 -0
- package/lib/utils/url-builder.d.ts +20 -0
- package/lib/utils/url-builder.js +44 -0
- package/lib/utils/url-builder.js.map +1 -0
- package/lib-esm/index.d.ts +46 -0
- package/lib-esm/index.js +47 -0
- package/lib-esm/index.js.map +1 -0
- package/lib-esm/map.d.ts +519 -0
- package/lib-esm/map.js +1137 -0
- package/lib-esm/map.js.map +1 -0
- package/lib-esm/models/apis/google/google-circles.d.ts +18 -0
- package/lib-esm/models/apis/google/google-circles.js +134 -0
- package/lib-esm/models/apis/google/google-circles.js.map +1 -0
- package/lib-esm/models/apis/google/google-geojson.d.ts +9 -0
- package/lib-esm/models/apis/google/google-geojson.js +73 -0
- package/lib-esm/models/apis/google/google-geojson.js.map +1 -0
- package/lib-esm/models/apis/google/google-map.d.ts +16 -0
- package/lib-esm/models/apis/google/google-map.js +174 -0
- package/lib-esm/models/apis/google/google-map.js.map +1 -0
- package/lib-esm/models/apis/google/google-markers.d.ts +29 -0
- package/lib-esm/models/apis/google/google-markers.js +325 -0
- package/lib-esm/models/apis/google/google-markers.js.map +1 -0
- package/lib-esm/models/apis/google/google-overlay.d.ts +11 -0
- package/lib-esm/models/apis/google/google-overlay.js +102 -0
- package/lib-esm/models/apis/google/google-overlay.js.map +1 -0
- package/lib-esm/models/apis/google/google-polygons.d.ts +29 -0
- package/lib-esm/models/apis/google/google-polygons.js +301 -0
- package/lib-esm/models/apis/google/google-polygons.js.map +1 -0
- package/lib-esm/models/apis/google/google-polylines.d.ts +55 -0
- package/lib-esm/models/apis/google/google-polylines.js +707 -0
- package/lib-esm/models/apis/google/google-polylines.js.map +1 -0
- package/lib-esm/models/apis/google/google-popup.d.ts +10 -0
- package/lib-esm/models/apis/google/google-popup.js +59 -0
- package/lib-esm/models/apis/google/google-popup.js.map +1 -0
- package/lib-esm/models/apis/googleMaps.d.ts +97 -0
- package/lib-esm/models/apis/googleMaps.js +449 -0
- package/lib-esm/models/apis/googleMaps.js.map +1 -0
- package/lib-esm/models/apis/leaflet/leaflet-circle.d.ts +18 -0
- package/lib-esm/models/apis/leaflet/leaflet-circle.js +163 -0
- package/lib-esm/models/apis/leaflet/leaflet-circle.js.map +1 -0
- package/lib-esm/models/apis/leaflet/leaflet-geojson.d.ts +9 -0
- package/lib-esm/models/apis/leaflet/leaflet-geojson.js +73 -0
- package/lib-esm/models/apis/leaflet/leaflet-geojson.js.map +1 -0
- package/lib-esm/models/apis/leaflet/leaflet-map.d.ts +16 -0
- package/lib-esm/models/apis/leaflet/leaflet-map.js +140 -0
- package/lib-esm/models/apis/leaflet/leaflet-map.js.map +1 -0
- package/lib-esm/models/apis/leaflet/leaflet-markers.d.ts +29 -0
- package/lib-esm/models/apis/leaflet/leaflet-markers.js +294 -0
- package/lib-esm/models/apis/leaflet/leaflet-markers.js.map +1 -0
- package/lib-esm/models/apis/leaflet/leaflet-overlay.d.ts +10 -0
- package/lib-esm/models/apis/leaflet/leaflet-overlay.js +35 -0
- package/lib-esm/models/apis/leaflet/leaflet-overlay.js.map +1 -0
- package/lib-esm/models/apis/leaflet/leaflet-polygons.d.ts +23 -0
- package/lib-esm/models/apis/leaflet/leaflet-polygons.js +211 -0
- package/lib-esm/models/apis/leaflet/leaflet-polygons.js.map +1 -0
- package/lib-esm/models/apis/leaflet/leaflet-polylines.d.ts +55 -0
- package/lib-esm/models/apis/leaflet/leaflet-polylines.js +721 -0
- package/lib-esm/models/apis/leaflet/leaflet-polylines.js.map +1 -0
- package/lib-esm/models/apis/leaflet/leaflet-popup.d.ts +11 -0
- package/lib-esm/models/apis/leaflet/leaflet-popup.js +74 -0
- package/lib-esm/models/apis/leaflet/leaflet-popup.js.map +1 -0
- package/lib-esm/models/apis/leaflet.d.ts +99 -0
- package/lib-esm/models/apis/leaflet.js +464 -0
- package/lib-esm/models/apis/leaflet.js.map +1 -0
- package/lib-esm/models/apis/mapFunctions.d.ts +85 -0
- package/lib-esm/models/apis/mapFunctions.js +2 -0
- package/lib-esm/models/apis/mapFunctions.js.map +1 -0
- package/lib-esm/models/dto/event-type.d.ts +33 -0
- package/lib-esm/models/dto/event-type.js +39 -0
- package/lib-esm/models/dto/event-type.js.map +1 -0
- package/lib-esm/models/dto/map-type.d.ts +4 -0
- package/lib-esm/models/dto/map-type.js +6 -0
- package/lib-esm/models/dto/map-type.js.map +1 -0
- package/lib-esm/models/dto/polyline-type.d.ts +5 -0
- package/lib-esm/models/dto/polyline-type.js +7 -0
- package/lib-esm/models/dto/polyline-type.js.map +1 -0
- package/lib-esm/models/features/circle/circle-alter-options.d.ts +12 -0
- package/lib-esm/models/features/circle/circle-alter-options.js +14 -0
- package/lib-esm/models/features/circle/circle-alter-options.js.map +1 -0
- package/lib-esm/models/features/circle/circle-options.d.ts +15 -0
- package/{src → lib-esm/models/features}/circle/circle-options.js +6 -4
- package/lib-esm/models/features/circle/circle-options.js.map +1 -0
- package/lib-esm/models/features/events/event-return.d.ts +4 -0
- package/lib-esm/models/features/events/event-return.js +8 -0
- package/lib-esm/models/features/events/event-return.js.map +1 -0
- package/lib-esm/models/features/geojson/geojson-options.d.ts +5 -0
- package/lib-esm/models/features/geojson/geojson-options.js +9 -0
- package/lib-esm/models/features/geojson/geojson-options.js.map +1 -0
- package/lib-esm/models/features/marker/circle-marker-options.d.ts +9 -0
- package/lib-esm/models/features/marker/circle-marker-options.js +12 -0
- package/lib-esm/models/features/marker/circle-marker-options.js.map +1 -0
- package/lib-esm/models/features/marker/circle-marker-style.d.ts +8 -0
- package/lib-esm/models/features/marker/circle-marker-style.js +12 -0
- package/lib-esm/models/features/marker/circle-marker-style.js.map +1 -0
- package/lib-esm/models/features/marker/marker-alter-options.d.ts +8 -0
- package/lib-esm/models/features/marker/marker-alter-options.js +10 -0
- package/lib-esm/models/features/marker/marker-alter-options.js.map +1 -0
- package/lib-esm/models/features/marker/marker-icon.d.ts +6 -0
- package/lib-esm/models/features/marker/marker-icon.js +10 -0
- package/lib-esm/models/features/marker/marker-icon.js.map +1 -0
- package/lib-esm/models/features/marker/marker-options.d.ts +11 -0
- package/lib-esm/models/features/marker/marker-options.js +18 -0
- package/lib-esm/models/features/marker/marker-options.js.map +1 -0
- package/lib-esm/models/features/marker-clusterer/marker-clusterer-config.d.ts +6 -0
- package/lib-esm/models/features/marker-clusterer/marker-clusterer-config.js +10 -0
- package/lib-esm/models/features/marker-clusterer/marker-clusterer-config.js.map +1 -0
- package/lib-esm/models/features/overlay/overlay-options.d.ts +11 -0
- package/lib-esm/models/features/overlay/overlay-options.js +15 -0
- package/lib-esm/models/features/overlay/overlay-options.js.map +1 -0
- package/lib-esm/models/features/polygons/polygon-alter-options.d.ts +13 -0
- package/lib-esm/models/features/polygons/polygon-alter-options.js +14 -0
- package/lib-esm/models/features/polygons/polygon-alter-options.js.map +1 -0
- package/lib-esm/models/features/polygons/polygon-options.d.ts +15 -0
- package/{src → lib-esm/models/features}/polygons/polygon-options.js +7 -5
- package/lib-esm/models/features/polygons/polygon-options.js.map +1 -0
- package/lib-esm/models/features/polyline/navigations-options.d.ts +11 -0
- package/lib-esm/models/features/polyline/navigations-options.js +16 -0
- package/lib-esm/models/features/polyline/navigations-options.js.map +1 -0
- package/lib-esm/models/features/polyline/polyline-options.d.ts +18 -0
- package/lib-esm/models/features/polyline/polyline-options.js +20 -0
- package/lib-esm/models/features/polyline/polyline-options.js.map +1 -0
- package/lib-esm/models/features/popup/popup-options.d.ts +9 -0
- package/lib-esm/models/features/popup/popup-options.js +13 -0
- package/lib-esm/models/features/popup/popup-options.js.map +1 -0
- package/lib-esm/utils/maps-api-loader.service.d.ts +14 -0
- package/lib-esm/utils/maps-api-loader.service.js +89 -0
- package/lib-esm/utils/maps-api-loader.service.js.map +1 -0
- package/lib-esm/utils/url-builder.d.ts +20 -0
- package/lib-esm/utils/url-builder.js +44 -0
- package/lib-esm/utils/url-builder.js.map +1 -0
- package/package.json +69 -53
- package/test/test.js +11 -0
- package/tslint.json +24 -0
- package/typings.json +5 -0
- package/.babelrc +0 -4
- package/.editorconfig +0 -12
- package/.eslintrc +0 -291
- package/.nvmrc +0 -1
- package/.travis.yml +0 -5
- package/demo/demo.js +0 -432
- package/demo/images/cursor_locate.png +0 -0
- package/demo/images/inicio_rota.png +0 -0
- package/demo/index.html +0 -58
- package/demo/style.css +0 -45
- package/lib/inlogMaps.js +0 -16326
- package/lib/inlogMaps.js.map +0 -1
- package/lib/inlogMaps.min.js +0 -5
- package/src/circle/circle-alter-options.js +0 -9
- package/src/events/event-return.js +0 -5
- package/src/google-maps.js +0 -722
- package/src/index.js +0 -36
- package/src/leaflet.js +0 -638
- package/src/map.js +0 -306
- package/src/marker/circle-marker-options.js +0 -9
- package/src/marker/circle-marker-style.js +0 -9
- package/src/marker/marker-alter-options.js +0 -7
- package/src/marker/marker-icon.js +0 -6
- package/src/marker/marker-options.js +0 -10
- package/src/polygons/polygon-alter-options.js +0 -9
- package/src/polyline/navigations-options.js +0 -6
- package/src/polyline/polyline-alter-options.js +0 -9
- package/src/polyline/polyline-navigation-options.js +0 -15
- package/src/polyline/polyline-options.js +0 -12
- package/src/popup/popup-options.js +0 -7
- package/test/index.spec.js +0 -32
- package/webpack.config.js +0 -50
- package/yarn.lock +0 -3403
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { MapType } from "../models/dto/map-type";
|
|
3
|
+
import { urlBuilder } from "./url-builder";
|
|
4
|
+
var MapsApiLoaderService = /** @class */ (function () {
|
|
5
|
+
function MapsApiLoaderService() {
|
|
6
|
+
/* */
|
|
7
|
+
}
|
|
8
|
+
MapsApiLoaderService.loadGoogleAPI = function (params) {
|
|
9
|
+
var _a, _b;
|
|
10
|
+
var script = document.createElement("script");
|
|
11
|
+
script.type = "text/javascript";
|
|
12
|
+
script.setAttribute("data-google-inlogmaps", "true");
|
|
13
|
+
script.src = urlBuilder({
|
|
14
|
+
apiKey: params.apiKey,
|
|
15
|
+
base: "https://maps.googleapis.com/maps/api/js",
|
|
16
|
+
callback: "mapsAPILoadCallback",
|
|
17
|
+
client: params.client,
|
|
18
|
+
language: params.language,
|
|
19
|
+
libraries: params.libraries || [],
|
|
20
|
+
});
|
|
21
|
+
var has_script = (_a = document
|
|
22
|
+
.querySelector("script")) === null || _a === void 0 ? void 0 : _a.hasAttribute("data-google-inlogmaps");
|
|
23
|
+
if (!has_script)
|
|
24
|
+
(_b = document.querySelector("head")) === null || _b === void 0 ? void 0 : _b.appendChild(script);
|
|
25
|
+
};
|
|
26
|
+
MapsApiLoaderService.loadLeafletAPI = function (params) {
|
|
27
|
+
var _a, _b;
|
|
28
|
+
var link = document.createElement("link");
|
|
29
|
+
link.rel = "stylesheet";
|
|
30
|
+
link.href =
|
|
31
|
+
"https://desenvolvimentoweb.blob.core.windows.net/inlog-leaflet/leaflet.css";
|
|
32
|
+
// link.integrity = params.cssIntegrity;
|
|
33
|
+
// link.setAttribute('crossorigin', params.crossorigin);
|
|
34
|
+
(_a = document.querySelector("head")) === null || _a === void 0 ? void 0 : _a.appendChild(link);
|
|
35
|
+
var script = document.createElement("script");
|
|
36
|
+
script.type = "text/javascript";
|
|
37
|
+
script.src = urlBuilder({
|
|
38
|
+
base: "https://desenvolvimentoweb.blob.core.windows.net/inlog-leaflet/leaflet.js",
|
|
39
|
+
callback: "mapsAPILoadCallback",
|
|
40
|
+
// crossorigin: params.crossorigin,
|
|
41
|
+
// integrity: params.integrity
|
|
42
|
+
});
|
|
43
|
+
(_b = document === null || document === void 0 ? void 0 : document.querySelector("head")) === null || _b === void 0 ? void 0 : _b.appendChild(script);
|
|
44
|
+
};
|
|
45
|
+
// TODO: needs refactoring
|
|
46
|
+
MapsApiLoaderService.prototype.loadApi = function (mapType, params) {
|
|
47
|
+
if (MapsApiLoaderService.mapsApi) {
|
|
48
|
+
return Promise.resolve(MapsApiLoaderService.mapsApi);
|
|
49
|
+
}
|
|
50
|
+
MapsApiLoaderService.windowRef = window
|
|
51
|
+
? window
|
|
52
|
+
: { api: null, mapsAPILoadCallback: null };
|
|
53
|
+
var deferred = function (resolve, reject) {
|
|
54
|
+
if (mapType === MapType.Google) {
|
|
55
|
+
MapsApiLoaderService.loadGoogleAPI(params);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
MapsApiLoaderService.loadLeafletAPI(params);
|
|
59
|
+
}
|
|
60
|
+
// Temporaria para testar Leaflet
|
|
61
|
+
if (mapType === MapType.Leaflet) {
|
|
62
|
+
setTimeout(function () {
|
|
63
|
+
MapsApiLoaderService.mapsApi =
|
|
64
|
+
MapsApiLoaderService.windowRef.L;
|
|
65
|
+
resolve(MapsApiLoaderService.mapsApi);
|
|
66
|
+
}, 2000);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
MapsApiLoaderService.windowRef.mapsAPILoadCallback = function () {
|
|
70
|
+
MapsApiLoaderService.mapsApi =
|
|
71
|
+
MapsApiLoaderService.windowRef.google;
|
|
72
|
+
resolve(MapsApiLoaderService.mapsApi);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
setTimeout(function () {
|
|
76
|
+
var _a;
|
|
77
|
+
if (!((_a = MapsApiLoaderService === null || MapsApiLoaderService === void 0 ? void 0 : MapsApiLoaderService.windowRef) === null || _a === void 0 ? void 0 : _a.api)) {
|
|
78
|
+
reject(new Error("Loading took too long"));
|
|
79
|
+
}
|
|
80
|
+
}, 5000);
|
|
81
|
+
};
|
|
82
|
+
return new Promise(deferred);
|
|
83
|
+
};
|
|
84
|
+
MapsApiLoaderService.windowRef = null;
|
|
85
|
+
MapsApiLoaderService.mapsApi = null;
|
|
86
|
+
return MapsApiLoaderService;
|
|
87
|
+
}());
|
|
88
|
+
export { MapsApiLoaderService };
|
|
89
|
+
//# sourceMappingURL=maps-api-loader.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maps-api-loader.service.js","sourceRoot":"","sources":["../../src/utils/maps-api-loader.service.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;IAsDI;QACI,KAAK;IACT,CAAC;IAvDa,kCAAa,GAA3B,UAA4B,MAK3B;;QACG,IAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAEhD,MAAM,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAChC,MAAM,CAAC,YAAY,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;QAErD,MAAM,CAAC,GAAG,GAAG,UAAU,CAAC;YACpB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,IAAI,EAAE,yCAAyC;YAC/C,QAAQ,EAAE,qBAA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,IAAI,CAAC;IACjB,4BAAO,GAAG,IAAI,CAAC;IAkDlC,2BAAC;CAAA,AAtGD,IAsGC;SAtGY,oBAAoB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* urlBuilder
|
|
3
|
+
*
|
|
4
|
+
* @param {object} params
|
|
5
|
+
* @param {string} params.base the base url
|
|
6
|
+
* @param {array} params.libraries an array of the libraries to be requested
|
|
7
|
+
* @param {string} params.callback the callback function
|
|
8
|
+
*
|
|
9
|
+
* @return {string}
|
|
10
|
+
*/
|
|
11
|
+
export declare const urlBuilder: (params: {
|
|
12
|
+
apiKey?: any;
|
|
13
|
+
base: any;
|
|
14
|
+
callback: any;
|
|
15
|
+
client?: any;
|
|
16
|
+
language?: any;
|
|
17
|
+
libraries?: any;
|
|
18
|
+
integrity?: any;
|
|
19
|
+
crossorigin?: any;
|
|
20
|
+
}) => any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* urlBuilder
|
|
3
|
+
*
|
|
4
|
+
* @param {object} params
|
|
5
|
+
* @param {string} params.base the base url
|
|
6
|
+
* @param {array} params.libraries an array of the libraries to be requested
|
|
7
|
+
* @param {string} params.callback the callback function
|
|
8
|
+
*
|
|
9
|
+
* @return {string}
|
|
10
|
+
*/
|
|
11
|
+
export var urlBuilder = function (params) {
|
|
12
|
+
var builtUrl = params.base;
|
|
13
|
+
builtUrl += "?";
|
|
14
|
+
if (params.apiKey) {
|
|
15
|
+
builtUrl += "key=" + params.apiKey + "&";
|
|
16
|
+
}
|
|
17
|
+
if (params.integrity) {
|
|
18
|
+
builtUrl += "integrity=" + params.integrity + "&";
|
|
19
|
+
}
|
|
20
|
+
if (params.client) {
|
|
21
|
+
builtUrl += "client=" + params.client + "&";
|
|
22
|
+
}
|
|
23
|
+
if (params.crossorigin) {
|
|
24
|
+
builtUrl += "crossorigin=" + params.crossorigin + "&";
|
|
25
|
+
}
|
|
26
|
+
if (params.libraries && params.libraries.length > 0) {
|
|
27
|
+
builtUrl += "libraries=";
|
|
28
|
+
params.libraries.forEach(function (library, index) {
|
|
29
|
+
builtUrl += library;
|
|
30
|
+
if (index !== params.libraries.length - 1) {
|
|
31
|
+
builtUrl += ",";
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
builtUrl += "&";
|
|
35
|
+
}
|
|
36
|
+
if (params.language) {
|
|
37
|
+
builtUrl += "language=" + params.language + "&";
|
|
38
|
+
}
|
|
39
|
+
if (params.callback) {
|
|
40
|
+
builtUrl += "callback=" + params.callback + "&";
|
|
41
|
+
}
|
|
42
|
+
return builtUrl;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=url-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-builder.js","sourceRoot":"","sources":["../../src/utils/url-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,MAS1B;IACG,IAAI,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC;IAE3B,QAAQ,IAAI,GAAG,CAAC;IAEhB,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAChB,QAAQ,IAAI,MAAM,GAAG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;IAC7C,CAAC;IACD,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACnB,QAAQ,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,GAAG,GAAG,CAAC;IACtD,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAChB,QAAQ,IAAI,SAAS,GAAG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;IAChD,CAAC;IAED,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;QACrB,QAAQ,IAAI,cAAc,GAAG,MAAM,CAAC,WAAW,GAAG,GAAG,CAAC;IAC1D,CAAC;IAED,IAAI,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,SAAS,CA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-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@inlog/inlog-maps",
|
|
3
|
+
"version": "1.1.0-test",
|
|
4
|
+
"description": "A library for using generic layer maps ",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"clean": "shx rm -rf _bundles lib lib-esm",
|
|
9
|
+
"build": "npm run clean && tsc && tsc --outDir lib-esm && webpack",
|
|
10
|
+
"docs": "doxdox lib-esm/map.js --layout markdown --output DOCUMENTATION.md",
|
|
11
|
+
"start": "webpack-dev-server --mode development",
|
|
12
|
+
"test": "mocha --reporter spec"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/weareinlog/inlog-maps.git"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"maps",
|
|
20
|
+
"map api"
|
|
21
|
+
],
|
|
22
|
+
"author": "Carol Hoegen <carolhoegen@gmail.com>",
|
|
23
|
+
"contributors": [
|
|
24
|
+
"Lidia Freitas <lidiafreitas.me@gmail.com>",
|
|
25
|
+
"Gustavo Santos <gustavo.dev@outlook.com.br>",
|
|
26
|
+
"Herus Armstrong <herus02@gmail.com>",
|
|
27
|
+
"Kleber Silva <kleber7777@gmail.com>",
|
|
28
|
+
"Gabriel Marques <gabrielgomarques@gmail.com>",
|
|
29
|
+
"Jeandro Couto <jeandro.couto@gmail.com>",
|
|
30
|
+
"Alexandre Borges <ale13borges@gmail.com>"
|
|
31
|
+
],
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/leaflet-editable": "^1.2.6",
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
|
36
|
+
"@typescript-eslint/parser": "^6.13.2",
|
|
37
|
+
"chai": "^4.3.10",
|
|
38
|
+
"doxdox": "git+https://git@github.com/weareinlog/doxdox.git",
|
|
39
|
+
"mocha": "^10.2.0",
|
|
40
|
+
"ts-loader": "^9.5.1",
|
|
41
|
+
"typescript": "^5.3.3",
|
|
42
|
+
"webpack-cli": "^5.1.4"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@google/markerclustererplus": "^5.1.3",
|
|
46
|
+
"@types/google-maps": "^3.2.6",
|
|
47
|
+
"@types/googlemaps": "^3.43.3",
|
|
48
|
+
"@types/node": "^20.10.4",
|
|
49
|
+
"html2canvas": "^1.4.1",
|
|
50
|
+
"jsdoc-to-markdown": "^8.0.0",
|
|
51
|
+
"leaflet": "^1.9.4",
|
|
52
|
+
"leaflet-editable": "^1.2.0",
|
|
53
|
+
"leaflet-gesture-handling": "^1.1.8",
|
|
54
|
+
"leaflet-polylinedecorator": "^1.6.0",
|
|
55
|
+
"leaflet-simple-map-screenshoter": "^0.5.0",
|
|
56
|
+
"leaflet.markercluster": "^1.4.1",
|
|
57
|
+
"leaflet.path.drag": "0.0.6",
|
|
58
|
+
"shx": "^0.3.4",
|
|
59
|
+
"webpack": "^5.89.0"
|
|
60
|
+
},
|
|
61
|
+
"bugs": {
|
|
62
|
+
"url": "https://github.com/weareinlog/inlog-maps/issues"
|
|
63
|
+
},
|
|
64
|
+
"homepage": "https://github.com/weareinlog/inlog-maps#readme",
|
|
65
|
+
"directories": {
|
|
66
|
+
"lib": "lib",
|
|
67
|
+
"test": "test"
|
|
68
|
+
}
|
|
69
|
+
}
|
package/test/test.js
ADDED
package/tslint.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"defaultSeverity": "error",
|
|
3
|
+
"extends": [
|
|
4
|
+
"tslint:recommended"
|
|
5
|
+
],
|
|
6
|
+
"jsRules": {},
|
|
7
|
+
"rules": {
|
|
8
|
+
"quotemark": [
|
|
9
|
+
true,
|
|
10
|
+
"single"
|
|
11
|
+
],
|
|
12
|
+
"align": [
|
|
13
|
+
true,
|
|
14
|
+
"statements",
|
|
15
|
+
"members"
|
|
16
|
+
],
|
|
17
|
+
"trailing-comma": false,
|
|
18
|
+
"no-console": [
|
|
19
|
+
true,
|
|
20
|
+
"warning"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"rulesDirectory": []
|
|
24
|
+
}
|
package/typings.json
ADDED
package/.babelrc
DELETED
package/.editorconfig
DELETED
package/.eslintrc
DELETED
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es6": true,
|
|
5
|
-
"node": true
|
|
6
|
-
},
|
|
7
|
-
"globals": {
|
|
8
|
-
"document": false,
|
|
9
|
-
"escape": false,
|
|
10
|
-
"navigator": false,
|
|
11
|
-
"unescape": false,
|
|
12
|
-
"window": false,
|
|
13
|
-
"describe": true,
|
|
14
|
-
"before": true,
|
|
15
|
-
"it": true,
|
|
16
|
-
"expect": true,
|
|
17
|
-
"sinon": true,
|
|
18
|
-
"google": true,
|
|
19
|
-
"inlogMaps": true
|
|
20
|
-
},
|
|
21
|
-
"parser": "babel-eslint",
|
|
22
|
-
"plugins": [
|
|
23
|
-
],
|
|
24
|
-
"rules": {
|
|
25
|
-
"block-scoped-var": 2,
|
|
26
|
-
"brace-style": [
|
|
27
|
-
2,
|
|
28
|
-
"1tbs",
|
|
29
|
-
{
|
|
30
|
-
"allowSingleLine": true
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"camelcase": [
|
|
34
|
-
2,
|
|
35
|
-
{
|
|
36
|
-
"properties": "always"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"comma-dangle": [
|
|
40
|
-
2,
|
|
41
|
-
"never"
|
|
42
|
-
],
|
|
43
|
-
"comma-spacing": [
|
|
44
|
-
2,
|
|
45
|
-
{
|
|
46
|
-
"before": false,
|
|
47
|
-
"after": true
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"comma-style": [
|
|
51
|
-
2,
|
|
52
|
-
"last"
|
|
53
|
-
],
|
|
54
|
-
"complexity": 0,
|
|
55
|
-
"consistent-return": 2,
|
|
56
|
-
"consistent-this": 0,
|
|
57
|
-
"curly": [
|
|
58
|
-
2,
|
|
59
|
-
"multi-line"
|
|
60
|
-
],
|
|
61
|
-
"default-case": 0,
|
|
62
|
-
"dot-location": [
|
|
63
|
-
2,
|
|
64
|
-
"property"
|
|
65
|
-
],
|
|
66
|
-
"dot-notation": 0,
|
|
67
|
-
"eol-last": 2,
|
|
68
|
-
"eqeqeq": [
|
|
69
|
-
2,
|
|
70
|
-
"allow-null"
|
|
71
|
-
],
|
|
72
|
-
"func-names": 0,
|
|
73
|
-
"func-style": 0,
|
|
74
|
-
"generator-star-spacing": [
|
|
75
|
-
2,
|
|
76
|
-
"both"
|
|
77
|
-
],
|
|
78
|
-
"guard-for-in": 0,
|
|
79
|
-
"handle-callback-err": [
|
|
80
|
-
2,
|
|
81
|
-
"^(err|error|anySpecificError)$"
|
|
82
|
-
],
|
|
83
|
-
"indent": [
|
|
84
|
-
2,
|
|
85
|
-
4,
|
|
86
|
-
{
|
|
87
|
-
"SwitchCase": 1
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"key-spacing": [
|
|
91
|
-
2,
|
|
92
|
-
{
|
|
93
|
-
"beforeColon": false,
|
|
94
|
-
"afterColon": true
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
"keyword-spacing": [
|
|
98
|
-
2,
|
|
99
|
-
{
|
|
100
|
-
"before": true,
|
|
101
|
-
"after": true
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"linebreak-style": 0,
|
|
105
|
-
"max-depth": 0,
|
|
106
|
-
"max-len": [
|
|
107
|
-
2,
|
|
108
|
-
120,
|
|
109
|
-
4
|
|
110
|
-
],
|
|
111
|
-
"max-nested-callbacks": 0,
|
|
112
|
-
"max-params": 0,
|
|
113
|
-
"max-statements": 0,
|
|
114
|
-
"new-cap": [
|
|
115
|
-
2,
|
|
116
|
-
{
|
|
117
|
-
"newIsCap": true,
|
|
118
|
-
"capIsNew": false
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"newline-after-var": [
|
|
122
|
-
2,
|
|
123
|
-
"always"
|
|
124
|
-
],
|
|
125
|
-
"new-parens": 2,
|
|
126
|
-
"no-alert": 0,
|
|
127
|
-
"no-array-constructor": 2,
|
|
128
|
-
"no-bitwise": 0,
|
|
129
|
-
"no-caller": 2,
|
|
130
|
-
"no-catch-shadow": 0,
|
|
131
|
-
"no-cond-assign": 2,
|
|
132
|
-
"no-console": 0,
|
|
133
|
-
"no-constant-condition": 0,
|
|
134
|
-
"no-continue": 0,
|
|
135
|
-
"no-control-regex": 2,
|
|
136
|
-
"no-debugger": 2,
|
|
137
|
-
"no-delete-var": 2,
|
|
138
|
-
"no-div-regex": 0,
|
|
139
|
-
"no-dupe-args": 2,
|
|
140
|
-
"no-dupe-keys": 2,
|
|
141
|
-
"no-duplicate-case": 2,
|
|
142
|
-
"no-else-return": 2,
|
|
143
|
-
"no-empty": 0,
|
|
144
|
-
"no-empty-character-class": 2,
|
|
145
|
-
"no-eq-null": 0,
|
|
146
|
-
"no-eval": 2,
|
|
147
|
-
"no-ex-assign": 2,
|
|
148
|
-
"no-extend-native": 2,
|
|
149
|
-
"no-extra-bind": 2,
|
|
150
|
-
"no-extra-boolean-cast": 2,
|
|
151
|
-
"no-extra-parens": 0,
|
|
152
|
-
"no-extra-semi": 0,
|
|
153
|
-
"no-extra-strict": 0,
|
|
154
|
-
"no-fallthrough": 2,
|
|
155
|
-
"no-floating-decimal": 2,
|
|
156
|
-
"no-func-assign": 2,
|
|
157
|
-
"no-implied-eval": 2,
|
|
158
|
-
"no-inline-comments": 0,
|
|
159
|
-
"no-inner-declarations": [
|
|
160
|
-
2,
|
|
161
|
-
"functions"
|
|
162
|
-
],
|
|
163
|
-
"no-invalid-regexp": 2,
|
|
164
|
-
"no-irregular-whitespace": 2,
|
|
165
|
-
"no-iterator": 2,
|
|
166
|
-
"no-label-var": 2,
|
|
167
|
-
"no-labels": 2,
|
|
168
|
-
"no-lone-blocks": 0,
|
|
169
|
-
"no-lonely-if": 0,
|
|
170
|
-
"no-loop-func": 0,
|
|
171
|
-
"no-mixed-requires": 0,
|
|
172
|
-
"no-mixed-spaces-and-tabs": [
|
|
173
|
-
2,
|
|
174
|
-
false
|
|
175
|
-
],
|
|
176
|
-
"no-multi-spaces": 2,
|
|
177
|
-
"no-multi-str": 2,
|
|
178
|
-
"no-multiple-empty-lines": [
|
|
179
|
-
2,
|
|
180
|
-
{
|
|
181
|
-
"max": 1
|
|
182
|
-
}
|
|
183
|
-
],
|
|
184
|
-
"no-native-reassign": 2,
|
|
185
|
-
"no-negated-in-lhs": 2,
|
|
186
|
-
"no-nested-ternary": 0,
|
|
187
|
-
"no-new": 2,
|
|
188
|
-
"no-new-func": 2,
|
|
189
|
-
"no-new-object": 2,
|
|
190
|
-
"no-new-require": 2,
|
|
191
|
-
"no-new-wrappers": 2,
|
|
192
|
-
"no-obj-calls": 2,
|
|
193
|
-
"no-octal": 2,
|
|
194
|
-
"no-octal-escape": 2,
|
|
195
|
-
"no-path-concat": 0,
|
|
196
|
-
"no-plusplus": 0,
|
|
197
|
-
"no-process-env": 0,
|
|
198
|
-
"no-process-exit": 0,
|
|
199
|
-
"no-proto": 2,
|
|
200
|
-
"no-redeclare": 2,
|
|
201
|
-
"no-regex-spaces": 2,
|
|
202
|
-
"no-reserved-keys": 0,
|
|
203
|
-
"no-restricted-modules": 0,
|
|
204
|
-
"no-return-assign": 2,
|
|
205
|
-
"no-script-url": 0,
|
|
206
|
-
"no-self-compare": 2,
|
|
207
|
-
"no-sequences": 2,
|
|
208
|
-
"no-shadow": 0,
|
|
209
|
-
"no-shadow-restricted-names": 2,
|
|
210
|
-
"no-spaced-func": 2,
|
|
211
|
-
"no-sparse-arrays": 2,
|
|
212
|
-
"no-sync": 0,
|
|
213
|
-
"no-ternary": 0,
|
|
214
|
-
"no-throw-literal": 2,
|
|
215
|
-
"no-trailing-spaces": 2,
|
|
216
|
-
"no-undef": 2,
|
|
217
|
-
"no-undef-init": 2,
|
|
218
|
-
"no-undefined": 0,
|
|
219
|
-
"no-underscore-dangle": 0,
|
|
220
|
-
"no-unneeded-ternary": 2,
|
|
221
|
-
"no-unreachable": 2,
|
|
222
|
-
"no-unused-expressions": 0,
|
|
223
|
-
"no-use-before-define": 2,
|
|
224
|
-
"no-var": 0,
|
|
225
|
-
"no-void": 0,
|
|
226
|
-
"no-warning-comments": 0,
|
|
227
|
-
"no-with": 2,
|
|
228
|
-
"one-var": 0,
|
|
229
|
-
"operator-assignment": 0,
|
|
230
|
-
"operator-linebreak": [
|
|
231
|
-
2,
|
|
232
|
-
"after"
|
|
233
|
-
],
|
|
234
|
-
"padded-blocks": 0,
|
|
235
|
-
"quote-props": 0,
|
|
236
|
-
"quotes": [
|
|
237
|
-
2,
|
|
238
|
-
"single",
|
|
239
|
-
"avoid-escape"
|
|
240
|
-
],
|
|
241
|
-
"radix": 2,
|
|
242
|
-
"semi": [
|
|
243
|
-
2,
|
|
244
|
-
"always"
|
|
245
|
-
],
|
|
246
|
-
"semi-spacing": 0,
|
|
247
|
-
"sort-vars": 0,
|
|
248
|
-
"space-before-blocks": [
|
|
249
|
-
2,
|
|
250
|
-
"always"
|
|
251
|
-
],
|
|
252
|
-
"space-before-function-paren": [
|
|
253
|
-
2,
|
|
254
|
-
{
|
|
255
|
-
"anonymous": "always",
|
|
256
|
-
"named": "never"
|
|
257
|
-
}
|
|
258
|
-
],
|
|
259
|
-
"space-in-brackets": 0,
|
|
260
|
-
"space-in-parens": [
|
|
261
|
-
2,
|
|
262
|
-
"never"
|
|
263
|
-
],
|
|
264
|
-
"space-infix-ops": 2,
|
|
265
|
-
"space-unary-ops": [
|
|
266
|
-
2,
|
|
267
|
-
{
|
|
268
|
-
"words": true,
|
|
269
|
-
"nonwords": false
|
|
270
|
-
}
|
|
271
|
-
],
|
|
272
|
-
"spaced-comment": [
|
|
273
|
-
2,
|
|
274
|
-
"always"
|
|
275
|
-
],
|
|
276
|
-
"strict": 0,
|
|
277
|
-
"use-isnan": 2,
|
|
278
|
-
"valid-jsdoc": 0,
|
|
279
|
-
"valid-typeof": 2,
|
|
280
|
-
"vars-on-top": 2,
|
|
281
|
-
"wrap-iife": [
|
|
282
|
-
2,
|
|
283
|
-
"any"
|
|
284
|
-
],
|
|
285
|
-
"wrap-regex": 0,
|
|
286
|
-
"yoda": [
|
|
287
|
-
2,
|
|
288
|
-
"never"
|
|
289
|
-
]
|
|
290
|
-
}
|
|
291
|
-
}
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
v6.10
|