@antv/l7-map
Advanced tools
Comparing version 2.5.7 to 2.5.8-mini
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _typeof = require("@babel/runtime/helpers/typeof"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -27,6 +27,2 @@ value: true | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
var earthCircumfrence = 2 * Math.PI * _lng_lat.earthRadius; | ||
@@ -33,0 +29,0 @@ |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _typeof = require("@babel/runtime/helpers/typeof"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -27,6 +27,2 @@ value: true | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
var earthCircumfrence = 2 * Math.PI * _lng_lat.earthRadius; | ||
@@ -33,0 +29,0 @@ |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _typeof = require("@babel/runtime/helpers/typeof"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -32,6 +32,2 @@ value: true | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } | ||
@@ -38,0 +34,0 @@ |
@@ -16,2 +16,4 @@ "use strict"; | ||
var _l7Utils = require("@antv/l7-utils"); | ||
var DragPanHandler = function () { | ||
@@ -35,3 +37,6 @@ function DragPanHandler(el, mousePan, touchPan) { | ||
this.touchPan.enable(); | ||
this.el.classList.add('l7-touch-drag-pan'); | ||
if (!_l7Utils.isMini) { | ||
this.el.classList.add('l7-touch-drag-pan'); | ||
} | ||
} | ||
@@ -43,3 +48,6 @@ }, { | ||
this.touchPan.disable(); | ||
this.el.classList.remove('l7-touch-drag-pan'); | ||
if (!_l7Utils.isMini) { | ||
this.el.classList.remove('l7-touch-drag-pan'); | ||
} | ||
} | ||
@@ -46,0 +54,0 @@ }, { |
@@ -16,2 +16,4 @@ "use strict"; | ||
var _l7Utils = require("@antv/l7-utils"); | ||
var TouchZoomRotateHandler = function () { | ||
@@ -44,3 +46,6 @@ function TouchZoomRotateHandler(el, touchZoom, touchRotate, tapDragZoom) { | ||
this.tapDragZoom.enable(); | ||
this.el.classList.add('l7-touch-zoom-rotate'); | ||
if (!_l7Utils.isMini) { | ||
this.el.classList.add('l7-touch-zoom-rotate'); | ||
} | ||
} | ||
@@ -53,3 +58,6 @@ }, { | ||
this.tapDragZoom.disable(); | ||
this.el.classList.remove('l7-touch-zoom-rotate'); | ||
if (!_l7Utils.isMini) { | ||
this.el.classList.remove('l7-touch-zoom-rotate'); | ||
} | ||
} | ||
@@ -56,0 +64,0 @@ }, { |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _typeof = require("@babel/runtime/helpers/typeof"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -20,6 +20,2 @@ value: true | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
var TapRecognizer = function () { | ||
@@ -26,0 +22,0 @@ function TapRecognizer(options) { |
@@ -16,4 +16,6 @@ "use strict"; | ||
var _throttle = _interopRequireDefault(require("lodash/throttle")); | ||
var _throttle2 = _interopRequireDefault(require("lodash/throttle")); | ||
var _l7Utils = require("@antv/l7-utils"); | ||
var Hash = function () { | ||
@@ -72,3 +74,3 @@ function Hash(hashName) { | ||
this.hashName = hashName && encodeURIComponent(hashName); | ||
this.updateHash = (0, _throttle.default)(this.updateHashUnthrottled, 30 * 1000 / 100); | ||
this.updateHash = (0, _throttle2.default)(this.updateHashUnthrottled, 30 * 1000 / 100); | ||
} | ||
@@ -80,3 +82,5 @@ | ||
this.map = map; | ||
window.addEventListener('hashchange', this.onHashChange, false); | ||
_l7Utils.l7window.addEventListener('hashchange', this.onHashChange, false); | ||
this.map.on('moveend', this.updateHash); | ||
@@ -88,3 +92,4 @@ return this; | ||
value: function remove() { | ||
window.removeEventListener('hashchange', this.onHashChange, false); | ||
_l7Utils.l7window.removeEventListener('hashchange', this.onHashChange, false); | ||
this.map.off('moveend', this.updateHash); | ||
@@ -91,0 +96,0 @@ delete this.map; |
@@ -50,4 +50,36 @@ "use strict"; | ||
require('load-styles')("/* @antv/l7-map */\n.l7-map {\n font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;\n overflow: hidden;\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.l7-canvas {\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.l7-map:-webkit-full-screen {\n width: 100%;\n height: 100%;\n}\n\n.l7-canary {\n background-color: salmon;\n}\n\n.l7-canvas-container.l7-interactive,\n.l7-ctrl-group button.l7-ctrl-compass {\n cursor: -webkit-grab;\n cursor: grab;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.l7-canvas-container.l7-interactive.l7-track-pointer {\n cursor: pointer;\n}\n\n.l7-canvas-container.l7-interactive:active,\n.l7-ctrl-group button.l7-ctrl-compass:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n\n.l7-canvas-container.l7-touch-zoom-rotate,\n.l7-canvas-container.l7-touch-zoom-rotate .l7-canvas {\n -ms-touch-action: pan-x pan-y;\n touch-action: pan-x pan-y;\n}\n\n.l7-canvas-container.l7-touch-drag-pan,\n.l7-canvas-container.l7-touch-drag-pan .l7-canvas {\n -ms-touch-action: pinch-zoom;\n touch-action: pinch-zoom;\n}\n\n.l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan,\n.l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan .l7-canvas {\n -ms-touch-action: none;\n touch-action: none;\n}\n\n.l7-ctrl-top-left,\n.l7-ctrl-top-right,\n.l7-ctrl-bottom-left,\n.l7-ctrl-bottom-right { position: absolute; pointer-events: none; z-index: 2; }\n.l7-ctrl-top-left { top: 0; left: 0; }\n.l7-ctrl-top-right { top: 0; right: 0; }\n.l7-ctrl-bottom-left { bottom: 0; left: 0; }\n.l7-ctrl-bottom-right { right: 0; bottom: 0; }\n\n.l7-ctrl {\n clear: both;\n pointer-events: auto;\n\n /* workaround for a Safari bug https://github.com/mapbox/mapbox-gl-js/issues/8185 */\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.l7-ctrl-top-left .l7-ctrl { margin: 10px 0 0 10px; float: left; }\n.l7-ctrl-top-right .l7-ctrl { margin: 10px 10px 0 0; float: right; }\n.l7-ctrl-bottom-left .l7-ctrl { margin: 0 0 10px 10px; float: left; }\n.l7-ctrl-bottom-right .l7-ctrl { margin: 0 10px 10px 0; float: right; }\n\n\n.l7-crosshair,\n.l7-crosshair .l7-interactive,\n.l7-crosshair .l7-interactive:active {\n cursor: crosshair;\n}\n\n.l7-boxzoom {\n position: absolute;\n top: 0;\n left: 0;\n width: 0;\n height: 0;\n background: #fff;\n border: 2px dotted #202020;\n opacity: 0.5;\n z-index: 10;\n}\n"); | ||
function loadStyles(css, doc) { | ||
if (!doc) doc = document; | ||
if (!doc) { | ||
return; | ||
} | ||
var head = doc.head || doc.getElementsByTagName('head')[0]; | ||
if (!head) { | ||
head = doc.createElement('head'); | ||
var body = doc.body || doc.getElementsByTagName('body')[0]; | ||
if (body) { | ||
body.parentNode.insertBefore(head, body); | ||
} else { | ||
doc.documentElement.appendChild(head); | ||
} | ||
} | ||
var style = doc.createElement('style'); | ||
style.type = 'text/css'; | ||
if (style.styleSheet) { | ||
style.styleSheet.cssText = css; | ||
} else { | ||
style.appendChild(doc.createTextNode(css)); | ||
} | ||
head.appendChild(style); | ||
return style; | ||
} | ||
loadStyles(".l7-map {\n font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;\n overflow: hidden;\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.l7-canvas {\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.l7-map:-webkit-full-screen {\n width: 100%;\n height: 100%;\n}\n\n.l7-canary {\n background-color: salmon;\n}\n\n.l7-canvas-container.l7-interactive,\n.l7-ctrl-group button.l7-ctrl-compass {\n cursor: -webkit-grab;\n cursor: grab;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.l7-canvas-container.l7-interactive.l7-track-pointer {\n cursor: pointer;\n}\n\n.l7-canvas-container.l7-interactive:active,\n.l7-ctrl-group button.l7-ctrl-compass:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n\n.l7-canvas-container.l7-touch-zoom-rotate,\n.l7-canvas-container.l7-touch-zoom-rotate .l7-canvas {\n -ms-touch-action: pan-x pan-y;\n touch-action: pan-x pan-y;\n}\n\n.l7-canvas-container.l7-touch-drag-pan,\n.l7-canvas-container.l7-touch-drag-pan .l7-canvas {\n -ms-touch-action: pinch-zoom;\n touch-action: pinch-zoom;\n}\n\n.l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan,\n.l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan .l7-canvas {\n -ms-touch-action: none;\n touch-action: none;\n}\n\n.l7-ctrl-top-left,\n.l7-ctrl-top-right,\n.l7-ctrl-bottom-left,\n.l7-ctrl-bottom-right { position: absolute; pointer-events: none; z-index: 2; }\n.l7-ctrl-top-left { top: 0; left: 0; }\n.l7-ctrl-top-right { top: 0; right: 0; }\n.l7-ctrl-bottom-left { bottom: 0; left: 0; }\n.l7-ctrl-bottom-right { right: 0; bottom: 0; }\n\n.l7-ctrl {\n clear: both;\n pointer-events: auto;\n\n /* workaround for a Safari bug https://github.com/mapbox/mapbox-gl-js/issues/8185 */\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.l7-ctrl-top-left .l7-ctrl { margin: 10px 0 0 10px; float: left; }\n.l7-ctrl-top-right .l7-ctrl { margin: 10px 10px 0 0; float: right; }\n.l7-ctrl-bottom-left .l7-ctrl { margin: 0 0 10px 10px; float: left; }\n.l7-ctrl-bottom-right .l7-ctrl { margin: 0 10px 10px 0; float: right; }\n\n\n.l7-crosshair,\n.l7-crosshair .l7-interactive,\n.l7-crosshair .l7-interactive:active {\n cursor: crosshair;\n}\n\n.l7-boxzoom {\n position: absolute;\n top: 0;\n left: 0;\n width: 0;\n height: 0;\n background: #fff;\n border: 2px dotted #202020;\n opacity: 0.5;\n z-index: 10;\n}\n"); | ||
var defaultMinZoom = -2; | ||
@@ -120,3 +152,7 @@ var defaultMaxZoom = 22; | ||
_this.initContainer(); | ||
if (_l7Utils.isMini) { | ||
_this.initMiniContainer(); | ||
} else { | ||
_this.initContainer(); | ||
} | ||
@@ -133,6 +169,8 @@ _this.resize(); | ||
var hashName = typeof options.hash === 'string' && options.hash || undefined; | ||
if (!_l7Utils.isMini) { | ||
var hashName = typeof options.hash === 'string' && options.hash || undefined; | ||
if (options.hash) { | ||
_this.hash = new _hash.default(hashName).addTo((0, _assertThisInitialized2.default)(_this)); | ||
if (options.hash) { | ||
_this.hash = new _hash.default(hashName).addTo((0, _assertThisInitialized2.default)(_this)); | ||
} | ||
} | ||
@@ -167,2 +205,7 @@ | ||
this.transform.resize(width, height); | ||
if (!_l7Utils.isMini) { | ||
return this; | ||
} | ||
var fireMoving = !this.moving; | ||
@@ -411,2 +454,8 @@ | ||
}, { | ||
key: "initMiniContainer", | ||
value: function initMiniContainer() { | ||
this.container = this.options.canvas; | ||
this.canvasContainer = this.container; | ||
} | ||
}, { | ||
key: "containerDimensions", | ||
@@ -424,11 +473,2 @@ value: function containerDimensions() { | ||
} | ||
}, { | ||
key: "resizeCanvas", | ||
value: function resizeCanvas(width, height) { | ||
var pixelRatio = _l7Utils.DOM.DPR || 1; | ||
this.canvas.width = pixelRatio * width; | ||
this.canvas.height = pixelRatio * height; | ||
this.canvas.style.width = "".concat(width, "px"); | ||
this.canvas.style.height = "".concat(height, "px"); | ||
} | ||
}]); | ||
@@ -435,0 +475,0 @@ return Map; |
@@ -17,2 +17,4 @@ "use strict"; | ||
var _l7Utils = require("@antv/l7-utils"); | ||
var _unitbezier = _interopRequireDefault(require("@mapbox/unitbezier")); | ||
@@ -53,3 +55,3 @@ | ||
function prefersReducedMotion() { | ||
if (!window.matchMedia) { | ||
if (_l7Utils.isMini || !window.matchMedia) { | ||
return false; | ||
@@ -88,8 +90,8 @@ } | ||
var now = window.performance && window.performance.now ? window.performance.now.bind(window.performance) : Date.now.bind(Date); | ||
var now = _l7Utils.isMini ? Date.now.bind(Date) : window.performance && window.performance.now ? window.performance.now.bind(window.performance) : Date.now.bind(Date); | ||
exports.now = now; | ||
var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame; | ||
var raf = _l7Utils.isMini ? setInterval : window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame; | ||
exports.raf = raf; | ||
var _cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.msCancelAnimationFrame; | ||
var _cancel = _l7Utils.isMini ? clearInterval : window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.msCancelAnimationFrame; | ||
@@ -96,0 +98,0 @@ exports.cancel = _cancel; |
@@ -10,2 +10,4 @@ "use strict"; | ||
var _l7Utils = require("@antv/l7-utils"); | ||
var _point = _interopRequireDefault(require("../geo/point")); | ||
@@ -24,3 +26,3 @@ | ||
DOM.create = function (tagName, className, container) { | ||
var el = window.document.createElement(tagName); | ||
var el = _l7Utils.l7window.document.createElement(tagName); | ||
@@ -39,7 +41,8 @@ if (className !== undefined) { | ||
DOM.createNS = function (namespaceURI, tagName) { | ||
var el = window.document.createElementNS(namespaceURI, tagName); | ||
var el = _l7Utils.l7window.document.createElementNS(namespaceURI, tagName); | ||
return el; | ||
}; | ||
var docStyle = window.document && window.document.documentElement.style; | ||
var docStyle = _l7Utils.l7window.document && _l7Utils.l7window.document.documentElement.style; | ||
@@ -101,4 +104,6 @@ function testProp(props) { | ||
}); | ||
window.addEventListener('test', options, options); | ||
window.removeEventListener('test', options, options); | ||
_l7Utils.l7window.addEventListener('test', options, options); | ||
_l7Utils.l7window.removeEventListener('test', options, options); | ||
} catch (err) { | ||
@@ -131,9 +136,15 @@ passiveSupported = false; | ||
e.stopPropagation(); | ||
window.removeEventListener('click', suppressClick, true); | ||
_l7Utils.l7window.removeEventListener('click', suppressClick, true); | ||
}; | ||
DOM.suppressClick = function () { | ||
window.addEventListener('click', suppressClick, true); | ||
window.setTimeout(function () { | ||
window.removeEventListener('click', suppressClick, true); | ||
if (_l7Utils.isMini) { | ||
return; | ||
} | ||
_l7Utils.l7window.addEventListener('click', suppressClick, true); | ||
setTimeout(function () { | ||
_l7Utils.l7window.removeEventListener('click', suppressClick, true); | ||
}, 0); | ||
@@ -169,3 +180,7 @@ }; | ||
DOM.mouseButton = function (e) { | ||
if (typeof window.InstallTrigger !== 'undefined' && e.button === 2 && e.ctrlKey && window.navigator.platform.toUpperCase().indexOf('MAC') >= 0) { | ||
if (!_l7Utils.isMini) { | ||
return e.button; | ||
} | ||
if (typeof _l7Utils.l7window.InstallTrigger !== 'undefined' && e.button === 2 && e.ctrlKey && _l7Utils.l7window.navigator.platform.toUpperCase().indexOf('MAC') >= 0) { | ||
return 0; | ||
@@ -172,0 +187,0 @@ } |
@@ -7,2 +7,5 @@ "use strict"; | ||
exports.PerformanceUtils = exports.PerformanceMarkers = void 0; | ||
var _l7Utils = require("@antv/l7-utils"); | ||
var lastFrameTime = null; | ||
@@ -12,3 +15,3 @@ var frameTimes = []; | ||
var frameTimeTarget = 1000 / minFramerateTarget; | ||
var performance = window.performance; | ||
var performance = _l7Utils.l7window.performance; | ||
var PerformanceMarkers = { | ||
@@ -15,0 +18,0 @@ create: 'create', |
{ | ||
"name": "@antv/l7-map", | ||
"version": "2.5.7", | ||
"version": "2.5.8-mini", | ||
"description": "l7 map", | ||
@@ -40,3 +40,3 @@ "keywords": [], | ||
"dependencies": { | ||
"@antv/l7-utils": "^2.5.7", | ||
"@antv/l7-utils": "^2.5.8", | ||
"@babel/runtime": "^7.7.7", | ||
@@ -48,3 +48,3 @@ "@mapbox/point-geometry": "^0.1.0", | ||
}, | ||
"gitHead": "627256efcbc8e417bc974ff2bd60aae962343042" | ||
"gitHead": "7eb8382ede52d803fae13a85fe6af074400260ee" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
1
610455
110
6247
1
Updated@antv/l7-utils@^2.5.8