@mapvx/web-js 1.2.3-dev.1 → 1.2.3-dev.3
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/dist/cjs/assets/icons.js +8 -6
- package/dist/cjs/assets/icons.js.map +1 -1
- package/dist/cjs/assets/route_animation_icon.svg +15 -0
- package/dist/cjs/assets/user-dot-icon.svg +3 -0
- package/dist/cjs/domain/models/animation.js +2 -2
- package/dist/cjs/domain/models/categories.js +10 -23
- package/dist/cjs/domain/models/categories.js.map +1 -1
- package/dist/cjs/domain/models/marker.js +80 -86
- package/dist/cjs/domain/models/marker.js.map +1 -1
- package/dist/cjs/index.js +12 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/logger/logger.js +1 -1
- package/dist/cjs/logger/rollbar.js +1 -1
- package/dist/cjs/map/map.js +1 -1
- package/dist/cjs/repository/requester.js +64 -47
- package/dist/cjs/repository/requester.js.map +1 -1
- package/dist/es/assets/icons.d.ts +4 -4
- package/dist/es/assets/icons.d.ts.map +1 -1
- package/dist/es/assets/icons.js +8 -6
- package/dist/es/assets/icons.js.map +1 -1
- package/dist/es/assets/route_animation_icon.svg +15 -0
- package/dist/es/assets/user-dot-icon.svg +3 -0
- package/dist/es/domain/models/animation.d.ts +3 -3
- package/dist/es/domain/models/animation.js +2 -2
- package/dist/es/domain/models/categories.d.ts +10 -34
- package/dist/es/domain/models/categories.d.ts.map +1 -1
- package/dist/es/domain/models/categories.js +9 -21
- package/dist/es/domain/models/categories.js.map +1 -1
- package/dist/es/domain/models/marker.d.ts +0 -8
- package/dist/es/domain/models/marker.d.ts.map +1 -1
- package/dist/es/domain/models/marker.js +80 -86
- package/dist/es/domain/models/marker.js.map +1 -1
- package/dist/es/domain/models/routeConfiguration.d.ts +0 -38
- package/dist/es/domain/models/routeConfiguration.d.ts.map +1 -1
- package/dist/es/index.d.ts +12 -12
- package/dist/es/index.d.ts.map +1 -1
- package/dist/es/index.js +6 -6
- package/dist/es/index.js.map +1 -1
- package/dist/es/logger/logger.js +1 -1
- package/dist/es/logger/rollbar.js +1 -1
- package/dist/es/map/map.js +1 -1
- package/dist/es/repository/requester.d.ts +0 -12
- package/dist/es/repository/requester.d.ts.map +1 -1
- package/dist/es/repository/requester.js +64 -47
- package/dist/es/repository/requester.js.map +1 -1
- package/dist/umd/index.js +415 -498
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/styles.css +14 -32
- package/dist/umd/styles.css.map +1 -1
- package/package.json +3 -2
package/dist/umd/index.js
CHANGED
|
@@ -5748,7 +5748,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
5748
5748
|
initializeSDK: () => (/* reexport */ initializeSDK),
|
|
5749
5749
|
injectPreconnects: () => (/* reexport */ injectPreconnects),
|
|
5750
5750
|
isBasicWithIcon: () => (/* reexport */ isBasicWithIcon),
|
|
5751
|
-
isBasicWithImageUrl: () => (/* reexport */ isBasicWithImageUrl),
|
|
5752
5751
|
isBasicWithLogo: () => (/* reexport */ isBasicWithLogo),
|
|
5753
5752
|
isMapVxRequestHostname: () => (/* reexport */ isMapVxRequestHostname),
|
|
5754
5753
|
isValidCircleConfig: () => (/* reexport */ isValidCircleConfig),
|
|
@@ -5756,106 +5755,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
5756
5755
|
loadStyles: () => (/* binding */ loadStyles)
|
|
5757
5756
|
});
|
|
5758
5757
|
|
|
5759
|
-
;// ./src/infrastructure/cache/cacheConfig.ts
|
|
5760
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5761
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5762
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5763
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5764
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
5765
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5766
|
-
/**
|
|
5767
|
-
* Cache configuration types and defaults
|
|
5768
|
-
* Defines the configuration options for the caching system
|
|
5769
|
-
* @module cacheConfig
|
|
5770
|
-
*/
|
|
5771
|
-
|
|
5772
|
-
/**
|
|
5773
|
-
* Cache types available in the SDK
|
|
5774
|
-
* @group Configuration
|
|
5775
|
-
*/
|
|
5776
|
-
|
|
5777
|
-
/**
|
|
5778
|
-
* Configuration for a single cache instance
|
|
5779
|
-
* @group Configuration
|
|
5780
|
-
*/
|
|
5781
|
-
|
|
5782
|
-
/**
|
|
5783
|
-
* Configuration for the CacheManager
|
|
5784
|
-
* @group Configuration
|
|
5785
|
-
*/
|
|
5786
|
-
|
|
5787
|
-
/**
|
|
5788
|
-
* Default maximum storage size: 5MB
|
|
5789
|
-
*/
|
|
5790
|
-
var DEFAULT_MAX_STORAGE_BYTES = 5 * 1024 * 1024;
|
|
5791
|
-
|
|
5792
|
-
/**
|
|
5793
|
-
* Default cache configurations per type
|
|
5794
|
-
* These values balance memory usage with performance
|
|
5795
|
-
*/
|
|
5796
|
-
var DEFAULT_CACHE_CONFIGS = {
|
|
5797
|
-
places: {
|
|
5798
|
-
maxItems: 500,
|
|
5799
|
-
ttlMs: 30 * 60 * 1000,
|
|
5800
|
-
// 30 minutes
|
|
5801
|
-
persistenceKey: "mvx_places"
|
|
5802
|
-
},
|
|
5803
|
-
routes: {
|
|
5804
|
-
maxItems: 100,
|
|
5805
|
-
ttlMs: 5 * 60 * 1000,
|
|
5806
|
-
// 5 minutes
|
|
5807
|
-
persistenceKey: "mvx_routes"
|
|
5808
|
-
},
|
|
5809
|
-
accessibleRoutes: {
|
|
5810
|
-
maxItems: 100,
|
|
5811
|
-
ttlMs: 5 * 60 * 1000,
|
|
5812
|
-
// 5 minutes
|
|
5813
|
-
persistenceKey: "mvx_accessible_routes"
|
|
5814
|
-
},
|
|
5815
|
-
configurations: {
|
|
5816
|
-
maxItems: 10,
|
|
5817
|
-
ttlMs: 60 * 60 * 1000,
|
|
5818
|
-
// 1 hour
|
|
5819
|
-
persistenceKey: "mvx_configurations"
|
|
5820
|
-
},
|
|
5821
|
-
categories: {
|
|
5822
|
-
maxItems: 20,
|
|
5823
|
-
ttlMs: 60 * 60 * 1000,
|
|
5824
|
-
// 1 hour
|
|
5825
|
-
persistenceKey: "mvx_categories"
|
|
5826
|
-
},
|
|
5827
|
-
vehicles: {
|
|
5828
|
-
maxItems: 50,
|
|
5829
|
-
ttlMs: 60 * 1000,
|
|
5830
|
-
// 1 minute
|
|
5831
|
-
persistenceKey: "mvx_vehicles"
|
|
5832
|
-
},
|
|
5833
|
-
stops: {
|
|
5834
|
-
maxItems: 100,
|
|
5835
|
-
ttlMs: 60 * 1000,
|
|
5836
|
-
// 1 minute
|
|
5837
|
-
persistenceKey: "mvx_stops"
|
|
5838
|
-
},
|
|
5839
|
-
subPlaces: {
|
|
5840
|
-
maxItems: 200,
|
|
5841
|
-
ttlMs: 15 * 60 * 1000,
|
|
5842
|
-
// 15 minutes
|
|
5843
|
-
persistenceKey: "mvx_subplaces"
|
|
5844
|
-
}
|
|
5845
|
-
};
|
|
5846
|
-
|
|
5847
|
-
/**
|
|
5848
|
-
* Merges user config with defaults for a specific cache type
|
|
5849
|
-
* @param cacheType - The type of cache
|
|
5850
|
-
* @param userConfig - Optional user-provided configuration
|
|
5851
|
-
* @returns Complete cache configuration
|
|
5852
|
-
*/
|
|
5853
|
-
function getCacheConfig(cacheType, userConfig) {
|
|
5854
|
-
var defaultConfig = DEFAULT_CACHE_CONFIGS[cacheType];
|
|
5855
|
-
return _objectSpread(_objectSpread({}, defaultConfig), userConfig);
|
|
5856
|
-
}
|
|
5857
5758
|
;// ./src/infrastructure/cache/LRUCache.ts
|
|
5858
|
-
function
|
|
5759
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5859
5760
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
5860
5761
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5861
5762
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
@@ -5864,11 +5765,11 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
|
|
|
5864
5765
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
5865
5766
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5866
5767
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
5867
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e,
|
|
5768
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
5868
5769
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5869
|
-
function
|
|
5870
|
-
function
|
|
5871
|
-
function
|
|
5770
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5771
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
5772
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5872
5773
|
/**
|
|
5873
5774
|
* Internal cache entry structure
|
|
5874
5775
|
*/
|
|
@@ -5895,10 +5796,10 @@ var LRUCache = /*#__PURE__*/function () {
|
|
|
5895
5796
|
function LRUCache(config) {
|
|
5896
5797
|
_classCallCheck(this, LRUCache);
|
|
5897
5798
|
// Hit rate tracking
|
|
5898
|
-
|
|
5899
|
-
|
|
5799
|
+
_defineProperty(this, "hits", 0);
|
|
5800
|
+
_defineProperty(this, "misses", 0);
|
|
5900
5801
|
// Monotonic counter for LRU ordering (avoids issues with same-millisecond operations)
|
|
5901
|
-
|
|
5802
|
+
_defineProperty(this, "accessCounter", 0);
|
|
5902
5803
|
this.cache = new Map();
|
|
5903
5804
|
this.maxItems = config.maxItems;
|
|
5904
5805
|
this.ttlMs = config.ttlMs;
|
|
@@ -6066,6 +5967,104 @@ var LRUCache = /*#__PURE__*/function () {
|
|
|
6066
5967
|
}
|
|
6067
5968
|
}]);
|
|
6068
5969
|
}();
|
|
5970
|
+
;// ./src/infrastructure/cache/cacheConfig.ts
|
|
5971
|
+
function cacheConfig_typeof(o) { "@babel/helpers - typeof"; return cacheConfig_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, cacheConfig_typeof(o); }
|
|
5972
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5973
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { cacheConfig_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5974
|
+
function cacheConfig_defineProperty(e, r, t) { return (r = cacheConfig_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5975
|
+
function cacheConfig_toPropertyKey(t) { var i = cacheConfig_toPrimitive(t, "string"); return "symbol" == cacheConfig_typeof(i) ? i : i + ""; }
|
|
5976
|
+
function cacheConfig_toPrimitive(t, r) { if ("object" != cacheConfig_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != cacheConfig_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5977
|
+
/**
|
|
5978
|
+
* Cache configuration types and defaults
|
|
5979
|
+
* Defines the configuration options for the caching system
|
|
5980
|
+
* @module cacheConfig
|
|
5981
|
+
*/
|
|
5982
|
+
|
|
5983
|
+
/**
|
|
5984
|
+
* Cache types available in the SDK
|
|
5985
|
+
* @group Configuration
|
|
5986
|
+
*/
|
|
5987
|
+
|
|
5988
|
+
/**
|
|
5989
|
+
* Configuration for a single cache instance
|
|
5990
|
+
* @group Configuration
|
|
5991
|
+
*/
|
|
5992
|
+
|
|
5993
|
+
/**
|
|
5994
|
+
* Configuration for the CacheManager
|
|
5995
|
+
* @group Configuration
|
|
5996
|
+
*/
|
|
5997
|
+
|
|
5998
|
+
/**
|
|
5999
|
+
* Default maximum storage size: 5MB
|
|
6000
|
+
*/
|
|
6001
|
+
var DEFAULT_MAX_STORAGE_BYTES = 5 * 1024 * 1024;
|
|
6002
|
+
|
|
6003
|
+
/**
|
|
6004
|
+
* Default cache configurations per type
|
|
6005
|
+
* These values balance memory usage with performance
|
|
6006
|
+
*/
|
|
6007
|
+
var DEFAULT_CACHE_CONFIGS = {
|
|
6008
|
+
places: {
|
|
6009
|
+
maxItems: 500,
|
|
6010
|
+
ttlMs: 30 * 60 * 1000,
|
|
6011
|
+
// 30 minutes
|
|
6012
|
+
persistenceKey: "mvx_places"
|
|
6013
|
+
},
|
|
6014
|
+
routes: {
|
|
6015
|
+
maxItems: 100,
|
|
6016
|
+
ttlMs: 5 * 60 * 1000,
|
|
6017
|
+
// 5 minutes
|
|
6018
|
+
persistenceKey: "mvx_routes"
|
|
6019
|
+
},
|
|
6020
|
+
accessibleRoutes: {
|
|
6021
|
+
maxItems: 100,
|
|
6022
|
+
ttlMs: 5 * 60 * 1000,
|
|
6023
|
+
// 5 minutes
|
|
6024
|
+
persistenceKey: "mvx_accessible_routes"
|
|
6025
|
+
},
|
|
6026
|
+
configurations: {
|
|
6027
|
+
maxItems: 10,
|
|
6028
|
+
ttlMs: 60 * 60 * 1000,
|
|
6029
|
+
// 1 hour
|
|
6030
|
+
persistenceKey: "mvx_configurations"
|
|
6031
|
+
},
|
|
6032
|
+
categories: {
|
|
6033
|
+
maxItems: 20,
|
|
6034
|
+
ttlMs: 60 * 60 * 1000,
|
|
6035
|
+
// 1 hour
|
|
6036
|
+
persistenceKey: "mvx_categories"
|
|
6037
|
+
},
|
|
6038
|
+
vehicles: {
|
|
6039
|
+
maxItems: 50,
|
|
6040
|
+
ttlMs: 60 * 1000,
|
|
6041
|
+
// 1 minute
|
|
6042
|
+
persistenceKey: "mvx_vehicles"
|
|
6043
|
+
},
|
|
6044
|
+
stops: {
|
|
6045
|
+
maxItems: 100,
|
|
6046
|
+
ttlMs: 60 * 1000,
|
|
6047
|
+
// 1 minute
|
|
6048
|
+
persistenceKey: "mvx_stops"
|
|
6049
|
+
},
|
|
6050
|
+
subPlaces: {
|
|
6051
|
+
maxItems: 200,
|
|
6052
|
+
ttlMs: 15 * 60 * 1000,
|
|
6053
|
+
// 15 minutes
|
|
6054
|
+
persistenceKey: "mvx_subplaces"
|
|
6055
|
+
}
|
|
6056
|
+
};
|
|
6057
|
+
|
|
6058
|
+
/**
|
|
6059
|
+
* Merges user config with defaults for a specific cache type
|
|
6060
|
+
* @param cacheType - The type of cache
|
|
6061
|
+
* @param userConfig - Optional user-provided configuration
|
|
6062
|
+
* @returns Complete cache configuration
|
|
6063
|
+
*/
|
|
6064
|
+
function getCacheConfig(cacheType, userConfig) {
|
|
6065
|
+
var defaultConfig = DEFAULT_CACHE_CONFIGS[cacheType];
|
|
6066
|
+
return _objectSpread(_objectSpread({}, defaultConfig), userConfig);
|
|
6067
|
+
}
|
|
6069
6068
|
;// ./src/infrastructure/cache/PersistentCache.ts
|
|
6070
6069
|
function PersistentCache_typeof(o) { "@babel/helpers - typeof"; return PersistentCache_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, PersistentCache_typeof(o); }
|
|
6071
6070
|
function PersistentCache_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = PersistentCache_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -6799,7 +6798,7 @@ var rollbar_umd_min_default = /*#__PURE__*/__webpack_require__.n(rollbar_umd_min
|
|
|
6799
6798
|
// version placeholder is replaced with the package version by
|
|
6800
6799
|
// scripts/inject-build-defines.js. The access token falls back to the MapVX
|
|
6801
6800
|
// SDK-web Rollbar project token when none is injected at build time.
|
|
6802
|
-
var SDK_VERSION = true ? "1.2.3-dev.
|
|
6801
|
+
var SDK_VERSION = true ? "1.2.3-dev.3" : 0;
|
|
6803
6802
|
var ACCESS_TOKEN = false ? 0 : "28279d52df43411ebd138c2bee0ab1df";
|
|
6804
6803
|
var _rollbarConfig = {
|
|
6805
6804
|
accessToken: ACCESS_TOKEN,
|
|
@@ -6846,7 +6845,7 @@ function logger_toPrimitive(t, r) { if ("object" != logger_typeof(t) || !t) retu
|
|
|
6846
6845
|
// by scripts/inject-build-defines.js. The Countly key falls back to the
|
|
6847
6846
|
// MapVX key when none is injected at build time.
|
|
6848
6847
|
var IS_DEBUG = true ? false : 0;
|
|
6849
|
-
var logger_SDK_VERSION = true ? "1.2.3-dev.
|
|
6848
|
+
var logger_SDK_VERSION = true ? "1.2.3-dev.3" : 0;
|
|
6850
6849
|
var COUNTLY_API_KEY = false ? 0 : "f0c8d3b96d336e857a8628f49dd1baf7d7add0e9";
|
|
6851
6850
|
var logger_countly = {
|
|
6852
6851
|
apiKey: COUNTLY_API_KEY,
|
|
@@ -7223,7 +7222,7 @@ var userLocationDataUrl = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w
|
|
|
7223
7222
|
* Generates a data URL for the route animation icon SVG with customizable appearance.
|
|
7224
7223
|
*
|
|
7225
7224
|
* @param config - Optional configuration for the icon appearance.
|
|
7226
|
-
* @param config.backgroundColor - The background color of the circle (default: "#
|
|
7225
|
+
* @param config.backgroundColor - The background color of the circle (default: "#0076B6").
|
|
7227
7226
|
* @param config.arrowColor - The color of the arrow (default: "#FFFFFF").
|
|
7228
7227
|
* @param config.arrowWidth - The stroke width of the arrow path in pixels (default: 0).
|
|
7229
7228
|
* @param config.borderWidth - The border width of the circle in pixels (default: 0).
|
|
@@ -7255,7 +7254,7 @@ var userLocationDataUrl = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w
|
|
|
7255
7254
|
*/
|
|
7256
7255
|
function createRouteAnimationIconDataUrl(config) {
|
|
7257
7256
|
var _config$backgroundCol, _config$arrowColor, _config$arrowWidth, _config$borderWidth, _config$borderColor, _config$blur;
|
|
7258
|
-
var backgroundColor = (_config$backgroundCol = config === null || config === void 0 ? void 0 : config.backgroundColor) !== null && _config$backgroundCol !== void 0 ? _config$backgroundCol : "#
|
|
7257
|
+
var backgroundColor = (_config$backgroundCol = config === null || config === void 0 ? void 0 : config.backgroundColor) !== null && _config$backgroundCol !== void 0 ? _config$backgroundCol : "#0076B6";
|
|
7259
7258
|
var arrowColor = (_config$arrowColor = config === null || config === void 0 ? void 0 : config.arrowColor) !== null && _config$arrowColor !== void 0 ? _config$arrowColor : "#FFFFFF";
|
|
7260
7259
|
var arrowWidth = (_config$arrowWidth = config === null || config === void 0 ? void 0 : config.arrowWidth) !== null && _config$arrowWidth !== void 0 ? _config$arrowWidth : 0;
|
|
7261
7260
|
var borderWidth = (_config$borderWidth = config === null || config === void 0 ? void 0 : config.borderWidth) !== null && _config$borderWidth !== void 0 ? _config$borderWidth : 0;
|
|
@@ -7274,7 +7273,7 @@ function createRouteAnimationIconDataUrl(config) {
|
|
|
7274
7273
|
var filterId = blur > 0 ? "blurFilter" : "";
|
|
7275
7274
|
var filterDef = blur > 0 ? "<defs><filter id=\"".concat(filterId, "\"><feGaussianBlur in=\"SourceGraphic\" stdDeviation=\"").concat(blur, "\"/></filter></defs>") : "";
|
|
7276
7275
|
var filterAttr = blur > 0 ? "filter=\"url(#".concat(filterId, ")\"") : "";
|
|
7277
|
-
var svg = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg version=\"1.1\" id=\"Capa_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0
|
|
7276
|
+
var svg = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg version=\"1.1\" id=\"Capa_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 40 40\" style=\"enable-background:new 0 0 40 40;\" xml:space=\"preserve\">\n".concat(filterDef, "\n<g ").concat(filterAttr, ">\n\t<circle cx=\"20\" cy=\"20\" r=\"20\" style=\"").concat(circleStyle).concat(circleStroke, "\"/>\n\t<path style=\"").concat(arrowStyle).concat(arrowStroke, "\" d=\"M12.4,29.7c-0.2,0.1-0.4,0.1-0.6,0.1c-0.2,0-0.4-0.1-0.5-0.3c-0.2-0.1-0.2-0.3-0.3-0.5c0-0.2,0-0.4,0.1-0.6\n\t\tl8.2-17.8c0.2-0.4,0.5-0.6,0.9-0.6c0.4,0,0.7,0.2,0.9,0.6l7.9,17.9c0.1,0.2,0.1,0.4,0.1,0.6c0,0.2-0.1,0.4-0.3,0.5\n\t\tc-0.1,0.1-0.3,0.2-0.5,0.3c-0.2,0-0.4,0-0.6-0.1L20,26.5L12.4,29.7z M13.9,27l6.1-2.6l6.1,2.7l-6-13.8L13.9,27z\"/>\n</g>\n</svg>");
|
|
7278
7277
|
|
|
7279
7278
|
// Encode the SVG as a data URL
|
|
7280
7279
|
var encodedSvg = encodeURIComponent(svg);
|
|
@@ -7282,7 +7281,7 @@ function createRouteAnimationIconDataUrl(config) {
|
|
|
7282
7281
|
}
|
|
7283
7282
|
|
|
7284
7283
|
/**
|
|
7285
|
-
* Default route animation icon data URL with blue background (#
|
|
7284
|
+
* Default route animation icon data URL with blue background (#0076B6) and white arrow (#FFFFFF).
|
|
7286
7285
|
* This constant is maintained for backward compatibility.
|
|
7287
7286
|
*
|
|
7288
7287
|
* @example
|
|
@@ -7404,10 +7403,6 @@ function getBoundingBox(points) {
|
|
|
7404
7403
|
return [southwest, northeast];
|
|
7405
7404
|
}
|
|
7406
7405
|
;// ./src/domain/models/marker.ts
|
|
7407
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || marker_unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
7408
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7409
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
7410
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return marker_arrayLikeToArray(r); }
|
|
7411
7406
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7412
7407
|
function _possibleConstructorReturn(t, e) { if (e && ("object" == marker_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
7413
7408
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
@@ -7416,9 +7411,6 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
7416
7411
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
7417
7412
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
7418
7413
|
function marker_typeof(o) { "@babel/helpers - typeof"; return marker_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, marker_typeof(o); }
|
|
7419
|
-
function marker_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = marker_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
7420
|
-
function marker_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return marker_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? marker_arrayLikeToArray(r, a) : void 0; } }
|
|
7421
|
-
function marker_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7422
7414
|
function marker_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
7423
7415
|
function marker_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, marker_toPropertyKey(o.key), o); } }
|
|
7424
7416
|
function marker_createClass(e, r, t) { return r && marker_defineProperties(e.prototype, r), t && marker_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
@@ -7522,104 +7514,82 @@ var MarkerUtils = /*#__PURE__*/function () {
|
|
|
7522
7514
|
* ```
|
|
7523
7515
|
*/
|
|
7524
7516
|
function createMarkerElement(marker) {
|
|
7517
|
+
var _marker$iconPropertie, _marker$iconPropertie2, _marker$iconPropertie3, _marker$iconPropertie4;
|
|
7525
7518
|
var markerContainer = document.createElement("div");
|
|
7526
|
-
markerContainer.className = "mapvx-marker";
|
|
7527
|
-
this.applyContainerLayout(markerContainer, marker);
|
|
7528
|
-
var _iterator = marker_createForOfIteratorHelper(this.createMarkerChildren(marker)),
|
|
7529
|
-
_step;
|
|
7530
|
-
try {
|
|
7531
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
7532
|
-
var child = _step.value;
|
|
7533
|
-
markerContainer.appendChild(child);
|
|
7534
|
-
}
|
|
7535
|
-
} catch (err) {
|
|
7536
|
-
_iterator.e(err);
|
|
7537
|
-
} finally {
|
|
7538
|
-
_iterator.f();
|
|
7539
|
-
}
|
|
7540
|
-
return markerContainer;
|
|
7541
|
-
}
|
|
7542
7519
|
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
* so create and update stay in sync (single source of truth for which state
|
|
7547
|
-
* classes exist and how the anchored box is sized). It is idempotent, so it
|
|
7548
|
-
* also resets stale state when reused to update an existing element.
|
|
7549
|
-
*
|
|
7550
|
-
* @param container - The `.mapvx-marker` element to configure
|
|
7551
|
-
* @param marker - Marker configuration
|
|
7552
|
-
*/
|
|
7553
|
-
}, {
|
|
7554
|
-
key: "applyContainerLayout",
|
|
7555
|
-
value: function applyContainerLayout(container, marker) {
|
|
7556
|
-
// Reset the state classes we own (no-op on a fresh element).
|
|
7557
|
-
container.classList.remove("no-text", "interactive");
|
|
7520
|
+
// Configure specific marker dimensions
|
|
7521
|
+
var iconWidth = (_marker$iconPropertie = (_marker$iconPropertie2 = marker.iconProperties) === null || _marker$iconPropertie2 === void 0 ? void 0 : _marker$iconPropertie2.width) !== null && _marker$iconPropertie !== void 0 ? _marker$iconPropertie : 40;
|
|
7522
|
+
var iconHeight = (_marker$iconPropertie3 = (_marker$iconPropertie4 = marker.iconProperties) === null || _marker$iconPropertie4 === void 0 ? void 0 : _marker$iconPropertie4.height) !== null && _marker$iconPropertie3 !== void 0 ? _marker$iconPropertie3 : 40;
|
|
7558
7523
|
|
|
7559
|
-
//
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7524
|
+
// Apply base class
|
|
7525
|
+
markerContainer.className = "mapvx-marker";
|
|
7526
|
+
|
|
7527
|
+
// Configure classes and dimensions based on text presence
|
|
7528
|
+
if (marker.text) {
|
|
7529
|
+
// If text exists, adjust layout according to position
|
|
7530
|
+
switch (marker.textPosition) {
|
|
7531
|
+
case TextPosition.top:
|
|
7532
|
+
case TextPosition.bottom:
|
|
7533
|
+
markerContainer.classList.add("text-column");
|
|
7534
|
+
markerContainer.style.width = "".concat(Math.max(iconWidth, 200), "px");
|
|
7535
|
+
markerContainer.style.height = "auto";
|
|
7536
|
+
break;
|
|
7537
|
+
case TextPosition.left:
|
|
7538
|
+
case TextPosition.right:
|
|
7539
|
+
default:
|
|
7540
|
+
markerContainer.classList.add("text-row");
|
|
7541
|
+
markerContainer.style.width = "auto";
|
|
7542
|
+
markerContainer.style.height = "".concat(iconHeight, "px");
|
|
7543
|
+
break;
|
|
7544
|
+
}
|
|
7565
7545
|
} else {
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7546
|
+
// No text, use fixed icon dimensions as in official example
|
|
7547
|
+
markerContainer.classList.add("no-text");
|
|
7548
|
+
markerContainer.style.width = "".concat(iconWidth, "px");
|
|
7549
|
+
markerContainer.style.height = "".concat(iconHeight, "px");
|
|
7550
|
+
}
|
|
7551
|
+
markerContainer.addEventListener("click", function () {
|
|
7552
|
+
var _marker$onClick;
|
|
7553
|
+
(_marker$onClick = marker.onClick) === null || _marker$onClick === void 0 || _marker$onClick.call(marker);
|
|
7554
|
+
});
|
|
7555
|
+
if (marker.element) {
|
|
7556
|
+
markerContainer.appendChild(marker.element);
|
|
7557
|
+
return this.setAndCreateText(marker, markerContainer, "".concat(iconHeight, "px"), "".concat(iconWidth, "px"));
|
|
7574
7558
|
}
|
|
7575
7559
|
|
|
7576
|
-
//
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
// click-through and never block the map.
|
|
7580
|
-
if (marker.onClick) {
|
|
7581
|
-
container.classList.add("interactive");
|
|
7582
|
-
}
|
|
7583
|
-
}
|
|
7560
|
+
// Create elements in correct order according to textPosition
|
|
7561
|
+
var iconElement = this.createIconElement(marker, iconWidth, iconHeight);
|
|
7562
|
+
var textElement = marker.text ? this.createTextContainer(typeof marker.text === "string" ? this.createTextElement(marker.text, marker.textProperties) : marker.text, marker.textPosition) : null;
|
|
7584
7563
|
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
* (top/bottom/left/right) lay the label out around the icon.
|
|
7590
|
-
*
|
|
7591
|
-
* @param marker - Marker configuration
|
|
7592
|
-
* @returns The child elements to append to the container
|
|
7593
|
-
*/
|
|
7594
|
-
}, {
|
|
7595
|
-
key: "createMarkerChildren",
|
|
7596
|
-
value: function createMarkerChildren(marker) {
|
|
7597
|
-
var children = [];
|
|
7598
|
-
if (marker.element) {
|
|
7599
|
-
children.push(marker.element);
|
|
7564
|
+
// Add elements in correct order
|
|
7565
|
+
if (marker.textPosition === TextPosition.top || marker.textPosition === TextPosition.left) {
|
|
7566
|
+
if (textElement) markerContainer.appendChild(textElement);
|
|
7567
|
+
markerContainer.appendChild(iconElement);
|
|
7600
7568
|
} else {
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
var iconHeight = (_marker$iconPropertie7 = (_marker$iconPropertie8 = marker.iconProperties) === null || _marker$iconPropertie8 === void 0 ? void 0 : _marker$iconPropertie8.height) !== null && _marker$iconPropertie7 !== void 0 ? _marker$iconPropertie7 : 40;
|
|
7604
|
-
children.push(this.createIconElement(marker, iconWidth, iconHeight));
|
|
7605
|
-
}
|
|
7606
|
-
if (marker.text) {
|
|
7607
|
-
children.push(this.buildTextContainer(marker));
|
|
7569
|
+
markerContainer.appendChild(iconElement);
|
|
7570
|
+
if (textElement) markerContainer.appendChild(textElement);
|
|
7608
7571
|
}
|
|
7609
|
-
return
|
|
7572
|
+
return markerContainer;
|
|
7610
7573
|
}
|
|
7611
7574
|
|
|
7612
7575
|
/**
|
|
7613
|
-
*
|
|
7576
|
+
* Sets up text positioning and styling for the marker.
|
|
7614
7577
|
*
|
|
7615
|
-
* @param
|
|
7616
|
-
* @
|
|
7578
|
+
* @param markerConfig - Configuration object containing text properties
|
|
7579
|
+
* @param container - Container element where text will be added
|
|
7580
|
+
* @param iconHeight - Height of the icon for positioning calculations
|
|
7581
|
+
* @param iconWidth - Width of the icon for positioning calculations
|
|
7582
|
+
* @returns Container element with properly positioned text
|
|
7617
7583
|
*/
|
|
7618
7584
|
}, {
|
|
7619
|
-
key: "
|
|
7620
|
-
value: function
|
|
7621
|
-
|
|
7622
|
-
|
|
7585
|
+
key: "setAndCreateText",
|
|
7586
|
+
value: function setAndCreateText(markerConfig, container, iconHeight, iconWidth) {
|
|
7587
|
+
if (markerConfig.text) {
|
|
7588
|
+
var textElement = typeof markerConfig.text === "string" ? this.createTextElement(markerConfig.text, markerConfig.textProperties) : markerConfig.text;
|
|
7589
|
+
var textContainer = this.createTextContainer(textElement, markerConfig.textPosition);
|
|
7590
|
+
container.appendChild(textContainer);
|
|
7591
|
+
}
|
|
7592
|
+
return container;
|
|
7623
7593
|
}
|
|
7624
7594
|
|
|
7625
7595
|
/**
|
|
@@ -7653,8 +7623,7 @@ var MarkerUtils = /*#__PURE__*/function () {
|
|
|
7653
7623
|
|
|
7654
7624
|
/**
|
|
7655
7625
|
* Creates a text container with proper positioning using CSS classes.
|
|
7656
|
-
*
|
|
7657
|
-
* never grows the marker's anchored box.
|
|
7626
|
+
* Uses natural block/flex layout without absolute positioning.
|
|
7658
7627
|
*
|
|
7659
7628
|
* @param textElement - The text element to contain
|
|
7660
7629
|
* @param textPosition - Desired position relative to the icon
|
|
@@ -7706,11 +7675,11 @@ var MarkerUtils = /*#__PURE__*/function () {
|
|
|
7706
7675
|
}, {
|
|
7707
7676
|
key: "createIcon",
|
|
7708
7677
|
value: function createIcon(marker) {
|
|
7709
|
-
var _marker$
|
|
7678
|
+
var _marker$iconPropertie5, _marker$iconPropertie6, _marker$iconPropertie7, _marker$iconPropertie8;
|
|
7710
7679
|
var image = document.createElement("img");
|
|
7711
7680
|
image.src = typeof marker.icon == "string" ? marker.icon : "";
|
|
7712
|
-
image.width = (_marker$
|
|
7713
|
-
image.height = (_marker$
|
|
7681
|
+
image.width = (_marker$iconPropertie5 = (_marker$iconPropertie6 = marker.iconProperties) === null || _marker$iconPropertie6 === void 0 ? void 0 : _marker$iconPropertie6.width) !== null && _marker$iconPropertie5 !== void 0 ? _marker$iconPropertie5 : 40;
|
|
7682
|
+
image.height = (_marker$iconPropertie7 = (_marker$iconPropertie8 = marker.iconProperties) === null || _marker$iconPropertie8 === void 0 ? void 0 : _marker$iconPropertie8.height) !== null && _marker$iconPropertie7 !== void 0 ? _marker$iconPropertie7 : 40;
|
|
7714
7683
|
image.style.objectFit = "contain";
|
|
7715
7684
|
image.style.filter = "drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25))";
|
|
7716
7685
|
return image;
|
|
@@ -7779,12 +7748,6 @@ var MarkerAttribute = /*#__PURE__*/function (_Marker) {
|
|
|
7779
7748
|
* Used for indoor navigation and floor-specific marker management.
|
|
7780
7749
|
*/
|
|
7781
7750
|
|
|
7782
|
-
/**
|
|
7783
|
-
* Current click handler for the marker. Stored on the instance (rather than
|
|
7784
|
-
* captured in the DOM listener's closure) so {@link updateIcon} can swap it
|
|
7785
|
-
* without leaving the original handler attached to MapLibre's element.
|
|
7786
|
-
*/
|
|
7787
|
-
|
|
7788
7751
|
/**
|
|
7789
7752
|
* Constructs a new `MarkerAttribute` object with the specified properties.
|
|
7790
7753
|
*
|
|
@@ -7810,14 +7773,6 @@ var MarkerAttribute = /*#__PURE__*/function (_Marker) {
|
|
|
7810
7773
|
anchor: (_markerConfig$anchor = markerConfig.anchor) !== null && _markerConfig$anchor !== void 0 ? _markerConfig$anchor : "center",
|
|
7811
7774
|
offset: [0, 0]
|
|
7812
7775
|
}]);
|
|
7813
|
-
|
|
7814
|
-
// Route clicks through an instance-level handler so the latest onClick is
|
|
7815
|
-
// always invoked, even after updateIcon replaces the marker content.
|
|
7816
|
-
_this._userOnClick = markerConfig.onClick;
|
|
7817
|
-
_this._element.addEventListener("click", function () {
|
|
7818
|
-
var _this$_userOnClick, _this2;
|
|
7819
|
-
return (_this$_userOnClick = (_this2 = _this)._userOnClick) === null || _this$_userOnClick === void 0 ? void 0 : _this$_userOnClick.call(_this2);
|
|
7820
|
-
});
|
|
7821
7776
|
_this.setLngLat([markerConfig.coordinate.lng, markerConfig.coordinate.lat]);
|
|
7822
7777
|
_this.setRotationAlignment((_markerConfig$rotatio = markerConfig.rotationAlignment) !== null && _markerConfig$rotatio !== void 0 ? _markerConfig$rotatio : "viewport");
|
|
7823
7778
|
_this.setPitchAlignment("viewport");
|
|
@@ -7865,16 +7820,19 @@ var MarkerAttribute = /*#__PURE__*/function (_Marker) {
|
|
|
7865
7820
|
}, {
|
|
7866
7821
|
key: "updateIcon",
|
|
7867
7822
|
value: function updateIcon(marker) {
|
|
7868
|
-
var
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
|
|
7877
|
-
|
|
7823
|
+
var _marker$rotationAlign;
|
|
7824
|
+
if (marker.element) {
|
|
7825
|
+
this._element.innerHTML = "";
|
|
7826
|
+
this._element.appendChild(marker.element);
|
|
7827
|
+
} else {
|
|
7828
|
+
var markerElement = MarkerUtils.createMarkerElement(marker);
|
|
7829
|
+
var oldMarkerContent = this._element.querySelector("div");
|
|
7830
|
+
var newMarkerContent = markerElement.querySelector("div");
|
|
7831
|
+
if (newMarkerContent) {
|
|
7832
|
+
var _oldMarkerContent$par;
|
|
7833
|
+
oldMarkerContent === null || oldMarkerContent === void 0 || (_oldMarkerContent$par = oldMarkerContent.parentElement) === null || _oldMarkerContent$par === void 0 || _oldMarkerContent$par.replaceChild(newMarkerContent, oldMarkerContent);
|
|
7834
|
+
}
|
|
7835
|
+
}
|
|
7878
7836
|
this.setRotationAlignment((_marker$rotationAlign = marker.rotationAlignment) !== null && _marker$rotationAlign !== void 0 ? _marker$rotationAlign : "viewport");
|
|
7879
7837
|
this.setPitchAlignment("viewport");
|
|
7880
7838
|
if (typeof marker.rotation === "number") {
|
|
@@ -8185,10 +8143,10 @@ nav_functions_defineProperty(NavFunctions, "EARTH_RADIUS", 6378000);
|
|
|
8185
8143
|
function routeController_typeof(o) { "@babel/helpers - typeof"; return routeController_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, routeController_typeof(o); }
|
|
8186
8144
|
function routeController_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8187
8145
|
function routeController_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? routeController_ownKeys(Object(t), !0).forEach(function (r) { routeController_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : routeController_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8188
|
-
function
|
|
8189
|
-
function
|
|
8190
|
-
function
|
|
8191
|
-
function
|
|
8146
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || routeController_unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
8147
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
8148
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
8149
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return routeController_arrayLikeToArray(r); }
|
|
8192
8150
|
function routeController_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = routeController_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
8193
8151
|
function routeController_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return routeController_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? routeController_arrayLikeToArray(r, a) : void 0; } }
|
|
8194
8152
|
function routeController_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -8563,7 +8521,7 @@ var RouteController = /*#__PURE__*/function () {
|
|
|
8563
8521
|
throw new Error("Error: position array has different length than colors array");
|
|
8564
8522
|
}
|
|
8565
8523
|
var stops = createStops(positionsToUse, colors);
|
|
8566
|
-
var gradient = ["interpolate", ["linear"], ["line-progress"]].concat(
|
|
8524
|
+
var gradient = ["interpolate", ["linear"], ["line-progress"]].concat(_toConsumableArray(stops));
|
|
8567
8525
|
return {
|
|
8568
8526
|
"line-color": null,
|
|
8569
8527
|
"line-gradient": gradient,
|
|
@@ -8810,7 +8768,7 @@ var RouteController = /*#__PURE__*/function () {
|
|
|
8810
8768
|
this.removeSourcesAndLayersForRoute(instance);
|
|
8811
8769
|
this.routes["delete"](instance.id);
|
|
8812
8770
|
if (this.lastAddedRouteId === instance.id) {
|
|
8813
|
-
var remaining =
|
|
8771
|
+
var remaining = _toConsumableArray(this.routes.keys());
|
|
8814
8772
|
this.lastAddedRouteId = remaining.length > 0 ? remaining[remaining.length - 1] : undefined;
|
|
8815
8773
|
}
|
|
8816
8774
|
}
|
|
@@ -8845,7 +8803,7 @@ var RouteController = /*#__PURE__*/function () {
|
|
|
8845
8803
|
}, {
|
|
8846
8804
|
key: "getRouteIds",
|
|
8847
8805
|
value: function getRouteIds() {
|
|
8848
|
-
return
|
|
8806
|
+
return _toConsumableArray(this.routes.keys());
|
|
8849
8807
|
}
|
|
8850
8808
|
}, {
|
|
8851
8809
|
key: "internalPause",
|
|
@@ -9575,16 +9533,6 @@ function InternalDrawRouteConfiguration(config) {
|
|
|
9575
9533
|
/**
|
|
9576
9534
|
* Interface that represent a place with their id.
|
|
9577
9535
|
* @group Routes
|
|
9578
|
-
* @example
|
|
9579
|
-
* ```typescript
|
|
9580
|
-
* // Resolve an internal alias that is reused across several malls by
|
|
9581
|
-
* // pinning the building (and, optionally, the floor) it belongs to.
|
|
9582
|
-
* const origin: IdLocation = {
|
|
9583
|
-
* id: "store-204", // integrator alias, may repeat across buildings
|
|
9584
|
-
* buildingId: "mall-santiago",
|
|
9585
|
-
* floorId: "level-2", // takes precedence over `level`
|
|
9586
|
-
* }
|
|
9587
|
-
* ```
|
|
9588
9536
|
*/
|
|
9589
9537
|
|
|
9590
9538
|
/**
|
|
@@ -9639,11 +9587,11 @@ var InternalAnimationDrawingConfig = /*#__PURE__*/function () {
|
|
|
9639
9587
|
animation_classCallCheck(this, InternalAnimationDrawingConfig);
|
|
9640
9588
|
this.aheadPathStyle = (_data$aheadPathStyle = data.aheadPathStyle) !== null && _data$aheadPathStyle !== void 0 ? _data$aheadPathStyle : {
|
|
9641
9589
|
type: "Solid",
|
|
9642
|
-
color: "#
|
|
9590
|
+
color: "#757575"
|
|
9643
9591
|
};
|
|
9644
9592
|
this.behindPathStyle = (_data$behindPathStyle = data.behindPathStyle) !== null && _data$behindPathStyle !== void 0 ? _data$behindPathStyle : {
|
|
9645
9593
|
type: "Solid",
|
|
9646
|
-
color: "#
|
|
9594
|
+
color: "#0076B6"
|
|
9647
9595
|
};
|
|
9648
9596
|
this.polylineWidth = (_data$polylineWidth = data.polylineWidth) !== null && _data$polylineWidth !== void 0 ? _data$polylineWidth : 10;
|
|
9649
9597
|
if (data.routeIcon != null) {
|
|
@@ -11794,116 +11742,26 @@ var Requester = /*#__PURE__*/function () {
|
|
|
11794
11742
|
place_id: targetPlaceId,
|
|
11795
11743
|
lang: this.lang
|
|
11796
11744
|
};
|
|
11797
|
-
return _context1.a(2, this.fetchFromUrl(this.baseUrlPortal + "subPlaces", params, options));
|
|
11798
|
-
}
|
|
11799
|
-
}, _callee1, this);
|
|
11800
|
-
}));
|
|
11801
|
-
function fetchAnySubPlaces(_x20, _x21) {
|
|
11802
|
-
return _fetchAnySubPlaces.apply(this, arguments);
|
|
11803
|
-
}
|
|
11804
|
-
return fetchAnySubPlaces;
|
|
11805
|
-
}()
|
|
11806
|
-
/**
|
|
11807
|
-
* Build the cleaned query parameters for a route request.
|
|
11808
|
-
*
|
|
11809
|
-
* Resolves both the origin (`from*`) and destination (`to*`) sides of the route
|
|
11810
|
-
* from the provided configuration. For {@link IdLocation} endpoints this also
|
|
11811
|
-
* forwards the building (`fromBuilding`/`toBuilding`) and floor
|
|
11812
|
-
* (`fromFloor`/`toFloor`) so internal aliases that are reused across buildings
|
|
11813
|
-
* can be disambiguated. Parameters that resolve to `null`/`undefined` are dropped.
|
|
11814
|
-
* @param routeConfig The route configuration to translate into query params.
|
|
11815
|
-
* @returns The cleaned query parameters ready to be appended to the request URL.
|
|
11816
|
-
*/
|
|
11817
|
-
)
|
|
11818
|
-
}, {
|
|
11819
|
-
key: "buildRouteParams",
|
|
11820
|
-
value: function buildRouteParams(routeConfig) {
|
|
11821
|
-
var params = {
|
|
11822
|
-
fromLatLng: undefined,
|
|
11823
|
-
fromBuilding: undefined,
|
|
11824
|
-
fromFloor: undefined,
|
|
11825
|
-
toLatLng: undefined,
|
|
11826
|
-
toBuilding: undefined,
|
|
11827
|
-
toFloor: undefined,
|
|
11828
|
-
fromPlaceId: undefined,
|
|
11829
|
-
toPlaceId: undefined,
|
|
11830
|
-
travelMode: TransportationMode.walking,
|
|
11831
|
-
reducedMobility: routeConfig.preferAccessibleRoute ? 1 : 0,
|
|
11832
|
-
announceFormat: routeConfig.announceFormat,
|
|
11833
|
-
userBearing: routeConfig.userBearing,
|
|
11834
|
-
lang: this.lang,
|
|
11835
|
-
unitSystem: routeConfig.unitSystem
|
|
11836
|
-
};
|
|
11837
|
-
if ("id" in routeConfig.initialLocation) {
|
|
11838
|
-
var _routeConfig$initialL = routeConfig.initialLocation,
|
|
11839
|
-
id = _routeConfig$initialL.id,
|
|
11840
|
-
buildingId = _routeConfig$initialL.buildingId,
|
|
11841
|
-
floorId = _routeConfig$initialL.floorId,
|
|
11842
|
-
level = _routeConfig$initialL.level;
|
|
11843
|
-
params.fromPlaceId = id;
|
|
11844
|
-
if (buildingId !== undefined) {
|
|
11845
|
-
params.fromBuilding = buildingId;
|
|
11846
|
-
}
|
|
11847
|
-
if (floorId !== undefined) {
|
|
11848
|
-
params.fromFloor = floorId;
|
|
11849
|
-
} else if (level !== undefined) {
|
|
11850
|
-
params.fromFloor = level;
|
|
11851
|
-
}
|
|
11852
|
-
} else {
|
|
11853
|
-
var _routeConfig$initialL2 = routeConfig.initialLocation,
|
|
11854
|
-
lat = _routeConfig$initialL2.lat,
|
|
11855
|
-
lng = _routeConfig$initialL2.lng,
|
|
11856
|
-
_floorId = _routeConfig$initialL2.floorId,
|
|
11857
|
-
placeId = _routeConfig$initialL2.placeId;
|
|
11858
|
-
params.fromLatLng = "".concat(lat, ",").concat(lng);
|
|
11859
|
-
params.fromFloor = _floorId;
|
|
11860
|
-
params.fromBuilding = placeId;
|
|
11861
|
-
}
|
|
11862
|
-
if ("id" in routeConfig.finalLocation) {
|
|
11863
|
-
var _routeConfig$finalLoc = routeConfig.finalLocation,
|
|
11864
|
-
_id = _routeConfig$finalLoc.id,
|
|
11865
|
-
_buildingId = _routeConfig$finalLoc.buildingId,
|
|
11866
|
-
_floorId2 = _routeConfig$finalLoc.floorId,
|
|
11867
|
-
_level = _routeConfig$finalLoc.level;
|
|
11868
|
-
params.toPlaceId = _id;
|
|
11869
|
-
if (_buildingId !== undefined) {
|
|
11870
|
-
params.toBuilding = _buildingId;
|
|
11871
|
-
}
|
|
11872
|
-
if (_floorId2 !== undefined) {
|
|
11873
|
-
params.toFloor = _floorId2;
|
|
11874
|
-
} else if (_level !== undefined) {
|
|
11875
|
-
params.toFloor = _level;
|
|
11876
|
-
}
|
|
11877
|
-
} else {
|
|
11878
|
-
var _routeConfig$finalLoc2 = routeConfig.finalLocation,
|
|
11879
|
-
_lat = _routeConfig$finalLoc2.lat,
|
|
11880
|
-
_lng = _routeConfig$finalLoc2.lng,
|
|
11881
|
-
_floorId3 = _routeConfig$finalLoc2.floorId,
|
|
11882
|
-
_placeId = _routeConfig$finalLoc2.placeId;
|
|
11883
|
-
params.toLatLng = "".concat(_lat, ",").concat(_lng);
|
|
11884
|
-
params.toFloor = _floorId3;
|
|
11885
|
-
params.toBuilding = _placeId;
|
|
11886
|
-
}
|
|
11887
|
-
var cleanParams = {};
|
|
11888
|
-
for (var key in params) {
|
|
11889
|
-
var value = params[key];
|
|
11890
|
-
if (value != null) {
|
|
11891
|
-
cleanParams[key] = value;
|
|
11892
|
-
}
|
|
11745
|
+
return _context1.a(2, this.fetchFromUrl(this.baseUrlPortal + "subPlaces", params, options));
|
|
11746
|
+
}
|
|
11747
|
+
}, _callee1, this);
|
|
11748
|
+
}));
|
|
11749
|
+
function fetchAnySubPlaces(_x20, _x21) {
|
|
11750
|
+
return _fetchAnySubPlaces.apply(this, arguments);
|
|
11893
11751
|
}
|
|
11894
|
-
return
|
|
11895
|
-
}
|
|
11896
|
-
|
|
11752
|
+
return fetchAnySubPlaces;
|
|
11753
|
+
}()
|
|
11897
11754
|
/**
|
|
11898
11755
|
* To obtain the route
|
|
11899
11756
|
* @param routeConfig
|
|
11900
11757
|
* @returns
|
|
11901
11758
|
*/
|
|
11759
|
+
)
|
|
11902
11760
|
}, {
|
|
11903
11761
|
key: "fetchRoute",
|
|
11904
11762
|
value: (function () {
|
|
11905
11763
|
var _fetchRoute = requester_asyncToGenerator(/*#__PURE__*/requester_regenerator().m(function _callee10(routeConfig, token) {
|
|
11906
|
-
var options, cleanParams;
|
|
11764
|
+
var options, params, _routeConfig$initialL, lat, lng, floorId, placeId, _routeConfig$finalLoc, _lat, _lng, _floorId, _placeId, cleanParams, key, value;
|
|
11907
11765
|
return requester_regenerator().w(function (_context10) {
|
|
11908
11766
|
while (1) switch (_context10.n) {
|
|
11909
11767
|
case 0:
|
|
@@ -11914,7 +11772,51 @@ var Requester = /*#__PURE__*/function () {
|
|
|
11914
11772
|
Authorization: "Bearer ".concat(token)
|
|
11915
11773
|
}
|
|
11916
11774
|
};
|
|
11917
|
-
|
|
11775
|
+
params = {
|
|
11776
|
+
fromLatLng: undefined,
|
|
11777
|
+
fromBuilding: undefined,
|
|
11778
|
+
fromFloor: undefined,
|
|
11779
|
+
toLatLng: undefined,
|
|
11780
|
+
toBuilding: undefined,
|
|
11781
|
+
toFloor: undefined,
|
|
11782
|
+
fromPlaceId: undefined,
|
|
11783
|
+
toPlaceId: undefined,
|
|
11784
|
+
travelMode: TransportationMode.walking,
|
|
11785
|
+
reducedMobility: routeConfig.preferAccessibleRoute ? 1 : 0,
|
|
11786
|
+
announceFormat: routeConfig.announceFormat,
|
|
11787
|
+
userBearing: routeConfig.userBearing,
|
|
11788
|
+
lang: this.lang,
|
|
11789
|
+
unitSystem: routeConfig.unitSystem
|
|
11790
|
+
};
|
|
11791
|
+
if ("id" in routeConfig.initialLocation) {
|
|
11792
|
+
params.fromPlaceId = routeConfig.initialLocation.id;
|
|
11793
|
+
if (routeConfig.initialLocation.level !== undefined) {
|
|
11794
|
+
params.fromFloor = routeConfig.initialLocation.level;
|
|
11795
|
+
}
|
|
11796
|
+
} else {
|
|
11797
|
+
_routeConfig$initialL = routeConfig.initialLocation, lat = _routeConfig$initialL.lat, lng = _routeConfig$initialL.lng, floorId = _routeConfig$initialL.floorId, placeId = _routeConfig$initialL.placeId;
|
|
11798
|
+
params.fromLatLng = "".concat(lat, ",").concat(lng);
|
|
11799
|
+
params.fromFloor = floorId;
|
|
11800
|
+
params.fromBuilding = placeId;
|
|
11801
|
+
}
|
|
11802
|
+
if ("id" in routeConfig.finalLocation) {
|
|
11803
|
+
params.toPlaceId = routeConfig.finalLocation.id;
|
|
11804
|
+
if (routeConfig.finalLocation.level !== undefined) {
|
|
11805
|
+
params.toFloor = routeConfig.finalLocation.level;
|
|
11806
|
+
}
|
|
11807
|
+
} else {
|
|
11808
|
+
_routeConfig$finalLoc = routeConfig.finalLocation, _lat = _routeConfig$finalLoc.lat, _lng = _routeConfig$finalLoc.lng, _floorId = _routeConfig$finalLoc.floorId, _placeId = _routeConfig$finalLoc.placeId;
|
|
11809
|
+
params.toLatLng = "".concat(_lat, ",").concat(_lng);
|
|
11810
|
+
params.toFloor = _floorId;
|
|
11811
|
+
params.toBuilding = _placeId;
|
|
11812
|
+
}
|
|
11813
|
+
cleanParams = {};
|
|
11814
|
+
for (key in params) {
|
|
11815
|
+
value = params[key];
|
|
11816
|
+
if (value != null) {
|
|
11817
|
+
cleanParams[key] = value;
|
|
11818
|
+
}
|
|
11819
|
+
}
|
|
11918
11820
|
return _context10.a(2, this.fetchFromUrl(this.routeBaseUrl + "route", cleanParams, options));
|
|
11919
11821
|
}
|
|
11920
11822
|
}, _callee10, this);
|
|
@@ -11934,7 +11836,7 @@ var Requester = /*#__PURE__*/function () {
|
|
|
11934
11836
|
key: "fetchRouteV2",
|
|
11935
11837
|
value: (function () {
|
|
11936
11838
|
var _fetchRouteV = requester_asyncToGenerator(/*#__PURE__*/requester_regenerator().m(function _callee11(routeConfig, token) {
|
|
11937
|
-
var options, cleanParams;
|
|
11839
|
+
var options, params, _routeConfig$initialL2, lat, lng, floorId, placeId, _routeConfig$finalLoc2, _lat2, _lng2, _floorId2, _placeId2, cleanParams, key, value;
|
|
11938
11840
|
return requester_regenerator().w(function (_context11) {
|
|
11939
11841
|
while (1) switch (_context11.n) {
|
|
11940
11842
|
case 0:
|
|
@@ -11945,7 +11847,51 @@ var Requester = /*#__PURE__*/function () {
|
|
|
11945
11847
|
Authorization: "Bearer ".concat(token)
|
|
11946
11848
|
}
|
|
11947
11849
|
};
|
|
11948
|
-
|
|
11850
|
+
params = {
|
|
11851
|
+
fromLatLng: undefined,
|
|
11852
|
+
fromBuilding: undefined,
|
|
11853
|
+
fromFloor: undefined,
|
|
11854
|
+
toLatLng: undefined,
|
|
11855
|
+
toBuilding: undefined,
|
|
11856
|
+
toFloor: undefined,
|
|
11857
|
+
fromPlaceId: undefined,
|
|
11858
|
+
toPlaceId: undefined,
|
|
11859
|
+
travelMode: TransportationMode.walking,
|
|
11860
|
+
reducedMobility: routeConfig.preferAccessibleRoute ? 1 : 0,
|
|
11861
|
+
announceFormat: routeConfig.announceFormat,
|
|
11862
|
+
userBearing: routeConfig.userBearing,
|
|
11863
|
+
lang: this.lang,
|
|
11864
|
+
unitSystem: routeConfig.unitSystem
|
|
11865
|
+
};
|
|
11866
|
+
if ("id" in routeConfig.initialLocation) {
|
|
11867
|
+
params.fromPlaceId = routeConfig.initialLocation.id;
|
|
11868
|
+
if (routeConfig.initialLocation.level !== undefined) {
|
|
11869
|
+
params.fromFloor = routeConfig.initialLocation.level;
|
|
11870
|
+
}
|
|
11871
|
+
} else {
|
|
11872
|
+
_routeConfig$initialL2 = routeConfig.initialLocation, lat = _routeConfig$initialL2.lat, lng = _routeConfig$initialL2.lng, floorId = _routeConfig$initialL2.floorId, placeId = _routeConfig$initialL2.placeId;
|
|
11873
|
+
params.fromLatLng = "".concat(lat, ",").concat(lng);
|
|
11874
|
+
params.fromFloor = floorId;
|
|
11875
|
+
params.fromBuilding = placeId;
|
|
11876
|
+
}
|
|
11877
|
+
if ("id" in routeConfig.finalLocation) {
|
|
11878
|
+
params.toPlaceId = routeConfig.finalLocation.id;
|
|
11879
|
+
if (routeConfig.finalLocation.level !== undefined) {
|
|
11880
|
+
params.toFloor = routeConfig.finalLocation.level;
|
|
11881
|
+
}
|
|
11882
|
+
} else {
|
|
11883
|
+
_routeConfig$finalLoc2 = routeConfig.finalLocation, _lat2 = _routeConfig$finalLoc2.lat, _lng2 = _routeConfig$finalLoc2.lng, _floorId2 = _routeConfig$finalLoc2.floorId, _placeId2 = _routeConfig$finalLoc2.placeId;
|
|
11884
|
+
params.toLatLng = "".concat(_lat2, ",").concat(_lng2);
|
|
11885
|
+
params.toFloor = _floorId2;
|
|
11886
|
+
params.toBuilding = _placeId2;
|
|
11887
|
+
}
|
|
11888
|
+
cleanParams = {};
|
|
11889
|
+
for (key in params) {
|
|
11890
|
+
value = params[key];
|
|
11891
|
+
if (value != null) {
|
|
11892
|
+
cleanParams[key] = value;
|
|
11893
|
+
}
|
|
11894
|
+
}
|
|
11949
11895
|
return _context11.a(2, this.fetchFromUrl(this.routeBaseUrl + "v2/route", cleanParams, options));
|
|
11950
11896
|
}
|
|
11951
11897
|
}, _callee11, this);
|
|
@@ -15280,7 +15226,7 @@ var InternalMapVXMap = /*#__PURE__*/function (_Loggeable) {
|
|
|
15280
15226
|
value: function updateRouteProgress(routeId, position) {
|
|
15281
15227
|
var behindStyle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
15282
15228
|
type: "Solid",
|
|
15283
|
-
color: "#
|
|
15229
|
+
color: "#757575"
|
|
15284
15230
|
};
|
|
15285
15231
|
try {
|
|
15286
15232
|
var behindConfig = new InternalDrawRouteConfiguration({
|
|
@@ -16994,29 +16940,13 @@ var InternalMapVXSDK = /*#__PURE__*/function (_Loggeable) {
|
|
|
16994
16940
|
* @group Utils
|
|
16995
16941
|
*/
|
|
16996
16942
|
|
|
16997
|
-
/**
|
|
16998
|
-
* Represents a category containing a image url.
|
|
16999
|
-
* @group Utils
|
|
17000
|
-
*/
|
|
17001
|
-
|
|
17002
16943
|
/**
|
|
17003
16944
|
* Represents a category containing an icon.
|
|
17004
16945
|
* @group Utils
|
|
17005
16946
|
*/
|
|
17006
16947
|
|
|
17007
16948
|
/**
|
|
17008
|
-
*
|
|
17009
|
-
*
|
|
17010
|
-
* A category may optionally carry a graphical representation, but it is not required.
|
|
17011
|
-
* Depending on the available asset, a `BasicCategory` can be one of:
|
|
17012
|
-
*
|
|
17013
|
-
* - {@link BasicWithLogo} — the category provides a logo image (URL).
|
|
17014
|
-
* - {@link BasicWithIcon} — the category provides a Font Awesome icon name (and optional style).
|
|
17015
|
-
* - {@link BasicWithImageUrl} — the category provides an image URL for its icon.
|
|
17016
|
-
* - {@link Basic} — the category carries no graphical information at all.
|
|
17017
|
-
*
|
|
17018
|
-
* Use the {@link isBasicWithLogo}, {@link isBasicWithIcon} and {@link isBasicWithImageUrl}
|
|
17019
|
-
* type guards to narrow a `BasicCategory` and safely access its graphical asset.
|
|
16949
|
+
* Represents a basic category containing a logo or an icon.
|
|
17020
16950
|
* @group Utils
|
|
17021
16951
|
*/
|
|
17022
16952
|
|
|
@@ -17070,36 +17000,132 @@ var InternalMapVXSDK = /*#__PURE__*/function (_Loggeable) {
|
|
|
17070
17000
|
*/
|
|
17071
17001
|
|
|
17072
17002
|
/**
|
|
17073
|
-
* Checks if the category
|
|
17074
|
-
*
|
|
17075
|
-
* @param category
|
|
17076
|
-
* @returns
|
|
17003
|
+
* Checks if the category is a basic with logo.
|
|
17004
|
+
* @group Utils
|
|
17005
|
+
* @param category
|
|
17006
|
+
* @returns
|
|
17077
17007
|
*/
|
|
17078
17008
|
function isBasicWithLogo(category) {
|
|
17079
|
-
|
|
17080
|
-
return input.logo != null && input.logo !== "";
|
|
17009
|
+
return category.logo !== undefined;
|
|
17081
17010
|
}
|
|
17082
17011
|
|
|
17083
17012
|
/**
|
|
17084
|
-
* Checks if the category
|
|
17013
|
+
* Checks if the category is a basic with icon.
|
|
17085
17014
|
* @group Utils
|
|
17086
|
-
* @param category
|
|
17087
|
-
* @returns
|
|
17015
|
+
* @param category
|
|
17016
|
+
* @returns
|
|
17088
17017
|
*/
|
|
17089
17018
|
function isBasicWithIcon(category) {
|
|
17090
|
-
|
|
17091
|
-
|
|
17019
|
+
return category.icon !== undefined;
|
|
17020
|
+
}
|
|
17021
|
+
;// ./src/utils/update-css.ts
|
|
17022
|
+
function update_css_slicedToArray(r, e) { return update_css_arrayWithHoles(r) || update_css_iterableToArrayLimit(r, e) || update_css_unsupportedIterableToArray(r, e) || update_css_nonIterableRest(); }
|
|
17023
|
+
function update_css_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17024
|
+
function update_css_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return update_css_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? update_css_arrayLikeToArray(r, a) : void 0; } }
|
|
17025
|
+
function update_css_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
17026
|
+
function update_css_iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
17027
|
+
function update_css_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
17028
|
+
/**
|
|
17029
|
+
* Load a CSS customization of a project.
|
|
17030
|
+
*
|
|
17031
|
+
* This function create a new HTML Style Element and add it to the current document.
|
|
17032
|
+
* Also activate the customization adding the first theme name to the body of the document.
|
|
17033
|
+
*
|
|
17034
|
+
* @group Utils
|
|
17035
|
+
* @param data The CSS customization data.
|
|
17036
|
+
*/
|
|
17037
|
+
function loadCustomization(data) {
|
|
17038
|
+
var style = document.createElement("style");
|
|
17039
|
+
style.textContent = "";
|
|
17040
|
+
for (var _i = 0, _Object$entries = Object.entries(data); _i < _Object$entries.length; _i++) {
|
|
17041
|
+
var _Object$entries$_i = update_css_slicedToArray(_Object$entries[_i], 2),
|
|
17042
|
+
themeName = _Object$entries$_i[0],
|
|
17043
|
+
themeData = _Object$entries$_i[1];
|
|
17044
|
+
var cssClass = loadTheme(themeName, themeData);
|
|
17045
|
+
style.textContent += cssClass;
|
|
17046
|
+
}
|
|
17047
|
+
document.head.appendChild(style);
|
|
17048
|
+
var firstThemeName = Object.keys(data).at(0);
|
|
17049
|
+
if (firstThemeName != null) {
|
|
17050
|
+
document.body.classList.add(firstThemeName);
|
|
17051
|
+
}
|
|
17092
17052
|
}
|
|
17093
17053
|
|
|
17094
17054
|
/**
|
|
17095
|
-
*
|
|
17055
|
+
* Process a theme.
|
|
17056
|
+
*
|
|
17057
|
+
* @group Utils
|
|
17058
|
+
* @param themeName The name of the Theme.
|
|
17059
|
+
* @param themeData The data of the Theme.
|
|
17060
|
+
* @returns A string with the processed theme to use on a CSS file.
|
|
17061
|
+
*/
|
|
17062
|
+
function loadTheme(themeName, themeData) {
|
|
17063
|
+
var cssClass = ".".concat(themeName, " {\n");
|
|
17064
|
+
var definitions = themeData.definitions;
|
|
17065
|
+
if (definitions != null) {
|
|
17066
|
+
cssClass = loadDefinitions(definitions, cssClass);
|
|
17067
|
+
}
|
|
17068
|
+
for (var _i2 = 0, _Object$entries2 = Object.entries((_themeData$screens = themeData.screens) !== null && _themeData$screens !== void 0 ? _themeData$screens : {}); _i2 < _Object$entries2.length; _i2++) {
|
|
17069
|
+
var _themeData$screens;
|
|
17070
|
+
var _Object$entries2$_i = update_css_slicedToArray(_Object$entries2[_i2], 2),
|
|
17071
|
+
screenName = _Object$entries2$_i[0],
|
|
17072
|
+
screenData = _Object$entries2$_i[1];
|
|
17073
|
+
for (var _i3 = 0, _Object$entries3 = Object.entries(screenData); _i3 < _Object$entries3.length; _i3++) {
|
|
17074
|
+
var _Object$entries3$_i = update_css_slicedToArray(_Object$entries3[_i3], 2),
|
|
17075
|
+
componentName = _Object$entries3$_i[0],
|
|
17076
|
+
componentData = _Object$entries3$_i[1];
|
|
17077
|
+
for (var _i4 = 0, _Object$entries4 = Object.entries(componentData); _i4 < _Object$entries4.length; _i4++) {
|
|
17078
|
+
var _Object$entries4$_i = update_css_slicedToArray(_Object$entries4[_i4], 2),
|
|
17079
|
+
elementName = _Object$entries4$_i[0],
|
|
17080
|
+
elementData = _Object$entries4$_i[1];
|
|
17081
|
+
for (var _i5 = 0, _Object$entries5 = Object.entries(elementData); _i5 < _Object$entries5.length; _i5++) {
|
|
17082
|
+
var _Object$entries5$_i = update_css_slicedToArray(_Object$entries5[_i5], 2),
|
|
17083
|
+
propertyName = _Object$entries5$_i[0],
|
|
17084
|
+
propertyValue = _Object$entries5$_i[1];
|
|
17085
|
+
cssClass += " --".concat(screenName, "-").concat(componentName, "-").concat(elementName, "-").concat(propertyName, ": ").concat(propertyValue, ";\n");
|
|
17086
|
+
}
|
|
17087
|
+
}
|
|
17088
|
+
}
|
|
17089
|
+
}
|
|
17090
|
+
cssClass += "}\n";
|
|
17091
|
+
return cssClass;
|
|
17092
|
+
}
|
|
17093
|
+
/**
|
|
17094
|
+
* Process the definitions of a theme.
|
|
17095
|
+
*
|
|
17096
17096
|
* @group Utils
|
|
17097
|
-
* @param
|
|
17098
|
-
* @
|
|
17097
|
+
* @param definitions The definitions of the theme.
|
|
17098
|
+
* @param cssClass The string object that will contain the processed theme
|
|
17099
|
+
* @returns The cssClass string mutated with the processed definitions.
|
|
17099
17100
|
*/
|
|
17100
|
-
function
|
|
17101
|
-
var
|
|
17102
|
-
|
|
17101
|
+
function loadDefinitions(definitions, cssClass) {
|
|
17102
|
+
for (var _i6 = 0, _Object$entries6 = Object.entries((_definitions$colors = definitions.colors) !== null && _definitions$colors !== void 0 ? _definitions$colors : {}); _i6 < _Object$entries6.length; _i6++) {
|
|
17103
|
+
var _definitions$colors;
|
|
17104
|
+
var _Object$entries6$_i = update_css_slicedToArray(_Object$entries6[_i6], 2),
|
|
17105
|
+
colorName = _Object$entries6$_i[0],
|
|
17106
|
+
colorData = _Object$entries6$_i[1];
|
|
17107
|
+
for (var _i7 = 0, _Object$entries7 = Object.entries(colorData); _i7 < _Object$entries7.length; _i7++) {
|
|
17108
|
+
var _Object$entries7$_i = update_css_slicedToArray(_Object$entries7[_i7], 2),
|
|
17109
|
+
colorIntensity = _Object$entries7$_i[0],
|
|
17110
|
+
colorValue = _Object$entries7$_i[1];
|
|
17111
|
+
cssClass += " --definitions-colors-".concat(colorName, "-").concat(colorIntensity, ": ").concat(colorValue, ";\n");
|
|
17112
|
+
}
|
|
17113
|
+
}
|
|
17114
|
+
for (var _i8 = 0, _Object$entries8 = Object.entries((_definitions$shadows = definitions.shadows) !== null && _definitions$shadows !== void 0 ? _definitions$shadows : {}); _i8 < _Object$entries8.length; _i8++) {
|
|
17115
|
+
var _definitions$shadows;
|
|
17116
|
+
var _Object$entries8$_i = update_css_slicedToArray(_Object$entries8[_i8], 2),
|
|
17117
|
+
shadowName = _Object$entries8$_i[0],
|
|
17118
|
+
shadowValue = _Object$entries8$_i[1];
|
|
17119
|
+
cssClass += " --definitions-shadows-".concat(shadowName, ": ").concat(shadowValue, ";\n");
|
|
17120
|
+
}
|
|
17121
|
+
for (var _i9 = 0, _Object$entries9 = Object.entries((_definitions$textFont = definitions.textFonts) !== null && _definitions$textFont !== void 0 ? _definitions$textFont : {}); _i9 < _Object$entries9.length; _i9++) {
|
|
17122
|
+
var _definitions$textFont;
|
|
17123
|
+
var _Object$entries9$_i = update_css_slicedToArray(_Object$entries9[_i9], 2),
|
|
17124
|
+
fontName = _Object$entries9$_i[0],
|
|
17125
|
+
fontValue = _Object$entries9$_i[1];
|
|
17126
|
+
cssClass += " --definitions-textFonts-".concat(fontName, ": ").concat(fontValue, ";\n");
|
|
17127
|
+
}
|
|
17128
|
+
return cssClass;
|
|
17103
17129
|
}
|
|
17104
17130
|
;// ./src/utils/opening-hours-helper.ts
|
|
17105
17131
|
function opening_hours_helper_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = opening_hours_helper_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -18241,115 +18267,6 @@ function normalizeOrigin(raw) {
|
|
|
18241
18267
|
return null;
|
|
18242
18268
|
}
|
|
18243
18269
|
}
|
|
18244
|
-
;// ./src/utils/update-css.ts
|
|
18245
|
-
function update_css_slicedToArray(r, e) { return update_css_arrayWithHoles(r) || update_css_iterableToArrayLimit(r, e) || update_css_unsupportedIterableToArray(r, e) || update_css_nonIterableRest(); }
|
|
18246
|
-
function update_css_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18247
|
-
function update_css_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return update_css_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? update_css_arrayLikeToArray(r, a) : void 0; } }
|
|
18248
|
-
function update_css_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18249
|
-
function update_css_iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
18250
|
-
function update_css_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
18251
|
-
/**
|
|
18252
|
-
* Load a CSS customization of a project.
|
|
18253
|
-
*
|
|
18254
|
-
* This function create a new HTML Style Element and add it to the current document.
|
|
18255
|
-
* Also activate the customization adding the first theme name to the body of the document.
|
|
18256
|
-
*
|
|
18257
|
-
* @group Utils
|
|
18258
|
-
* @param data The CSS customization data.
|
|
18259
|
-
*/
|
|
18260
|
-
function loadCustomization(data) {
|
|
18261
|
-
var style = document.createElement("style");
|
|
18262
|
-
style.textContent = "";
|
|
18263
|
-
for (var _i = 0, _Object$entries = Object.entries(data); _i < _Object$entries.length; _i++) {
|
|
18264
|
-
var _Object$entries$_i = update_css_slicedToArray(_Object$entries[_i], 2),
|
|
18265
|
-
themeName = _Object$entries$_i[0],
|
|
18266
|
-
themeData = _Object$entries$_i[1];
|
|
18267
|
-
var cssClass = loadTheme(themeName, themeData);
|
|
18268
|
-
style.textContent += cssClass;
|
|
18269
|
-
}
|
|
18270
|
-
document.head.appendChild(style);
|
|
18271
|
-
var firstThemeName = Object.keys(data).at(0);
|
|
18272
|
-
if (firstThemeName != null) {
|
|
18273
|
-
document.body.classList.add(firstThemeName);
|
|
18274
|
-
}
|
|
18275
|
-
}
|
|
18276
|
-
|
|
18277
|
-
/**
|
|
18278
|
-
* Process a theme.
|
|
18279
|
-
*
|
|
18280
|
-
* @group Utils
|
|
18281
|
-
* @param themeName The name of the Theme.
|
|
18282
|
-
* @param themeData The data of the Theme.
|
|
18283
|
-
* @returns A string with the processed theme to use on a CSS file.
|
|
18284
|
-
*/
|
|
18285
|
-
function loadTheme(themeName, themeData) {
|
|
18286
|
-
var cssClass = ".".concat(themeName, " {\n");
|
|
18287
|
-
var definitions = themeData.definitions;
|
|
18288
|
-
if (definitions != null) {
|
|
18289
|
-
cssClass = loadDefinitions(definitions, cssClass);
|
|
18290
|
-
}
|
|
18291
|
-
for (var _i2 = 0, _Object$entries2 = Object.entries((_themeData$screens = themeData.screens) !== null && _themeData$screens !== void 0 ? _themeData$screens : {}); _i2 < _Object$entries2.length; _i2++) {
|
|
18292
|
-
var _themeData$screens;
|
|
18293
|
-
var _Object$entries2$_i = update_css_slicedToArray(_Object$entries2[_i2], 2),
|
|
18294
|
-
screenName = _Object$entries2$_i[0],
|
|
18295
|
-
screenData = _Object$entries2$_i[1];
|
|
18296
|
-
for (var _i3 = 0, _Object$entries3 = Object.entries(screenData); _i3 < _Object$entries3.length; _i3++) {
|
|
18297
|
-
var _Object$entries3$_i = update_css_slicedToArray(_Object$entries3[_i3], 2),
|
|
18298
|
-
componentName = _Object$entries3$_i[0],
|
|
18299
|
-
componentData = _Object$entries3$_i[1];
|
|
18300
|
-
for (var _i4 = 0, _Object$entries4 = Object.entries(componentData); _i4 < _Object$entries4.length; _i4++) {
|
|
18301
|
-
var _Object$entries4$_i = update_css_slicedToArray(_Object$entries4[_i4], 2),
|
|
18302
|
-
elementName = _Object$entries4$_i[0],
|
|
18303
|
-
elementData = _Object$entries4$_i[1];
|
|
18304
|
-
for (var _i5 = 0, _Object$entries5 = Object.entries(elementData); _i5 < _Object$entries5.length; _i5++) {
|
|
18305
|
-
var _Object$entries5$_i = update_css_slicedToArray(_Object$entries5[_i5], 2),
|
|
18306
|
-
propertyName = _Object$entries5$_i[0],
|
|
18307
|
-
propertyValue = _Object$entries5$_i[1];
|
|
18308
|
-
cssClass += " --".concat(screenName, "-").concat(componentName, "-").concat(elementName, "-").concat(propertyName, ": ").concat(propertyValue, ";\n");
|
|
18309
|
-
}
|
|
18310
|
-
}
|
|
18311
|
-
}
|
|
18312
|
-
}
|
|
18313
|
-
cssClass += "}\n";
|
|
18314
|
-
return cssClass;
|
|
18315
|
-
}
|
|
18316
|
-
/**
|
|
18317
|
-
* Process the definitions of a theme.
|
|
18318
|
-
*
|
|
18319
|
-
* @group Utils
|
|
18320
|
-
* @param definitions The definitions of the theme.
|
|
18321
|
-
* @param cssClass The string object that will contain the processed theme
|
|
18322
|
-
* @returns The cssClass string mutated with the processed definitions.
|
|
18323
|
-
*/
|
|
18324
|
-
function loadDefinitions(definitions, cssClass) {
|
|
18325
|
-
for (var _i6 = 0, _Object$entries6 = Object.entries((_definitions$colors = definitions.colors) !== null && _definitions$colors !== void 0 ? _definitions$colors : {}); _i6 < _Object$entries6.length; _i6++) {
|
|
18326
|
-
var _definitions$colors;
|
|
18327
|
-
var _Object$entries6$_i = update_css_slicedToArray(_Object$entries6[_i6], 2),
|
|
18328
|
-
colorName = _Object$entries6$_i[0],
|
|
18329
|
-
colorData = _Object$entries6$_i[1];
|
|
18330
|
-
for (var _i7 = 0, _Object$entries7 = Object.entries(colorData); _i7 < _Object$entries7.length; _i7++) {
|
|
18331
|
-
var _Object$entries7$_i = update_css_slicedToArray(_Object$entries7[_i7], 2),
|
|
18332
|
-
colorIntensity = _Object$entries7$_i[0],
|
|
18333
|
-
colorValue = _Object$entries7$_i[1];
|
|
18334
|
-
cssClass += " --definitions-colors-".concat(colorName, "-").concat(colorIntensity, ": ").concat(colorValue, ";\n");
|
|
18335
|
-
}
|
|
18336
|
-
}
|
|
18337
|
-
for (var _i8 = 0, _Object$entries8 = Object.entries((_definitions$shadows = definitions.shadows) !== null && _definitions$shadows !== void 0 ? _definitions$shadows : {}); _i8 < _Object$entries8.length; _i8++) {
|
|
18338
|
-
var _definitions$shadows;
|
|
18339
|
-
var _Object$entries8$_i = update_css_slicedToArray(_Object$entries8[_i8], 2),
|
|
18340
|
-
shadowName = _Object$entries8$_i[0],
|
|
18341
|
-
shadowValue = _Object$entries8$_i[1];
|
|
18342
|
-
cssClass += " --definitions-shadows-".concat(shadowName, ": ").concat(shadowValue, ";\n");
|
|
18343
|
-
}
|
|
18344
|
-
for (var _i9 = 0, _Object$entries9 = Object.entries((_definitions$textFont = definitions.textFonts) !== null && _definitions$textFont !== void 0 ? _definitions$textFont : {}); _i9 < _Object$entries9.length; _i9++) {
|
|
18345
|
-
var _definitions$textFont;
|
|
18346
|
-
var _Object$entries9$_i = update_css_slicedToArray(_Object$entries9[_i9], 2),
|
|
18347
|
-
fontName = _Object$entries9$_i[0],
|
|
18348
|
-
fontValue = _Object$entries9$_i[1];
|
|
18349
|
-
cssClass += " --definitions-textFonts-".concat(fontName, ": ").concat(fontValue, ";\n");
|
|
18350
|
-
}
|
|
18351
|
-
return cssClass;
|
|
18352
|
-
}
|
|
18353
18270
|
;// ./src/index.ts
|
|
18354
18271
|
// ─── Domain Ports (interfaces) ───────────────────────────────────────────────
|
|
18355
18272
|
|