@antv/l7-map 2.20.18 → 2.20.19

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/es/map.d.ts CHANGED
@@ -62,10 +62,6 @@ export declare class Map extends Camera {
62
62
  triggerRepaint(): void;
63
63
  update(time?: number): void;
64
64
  private initContainer;
65
- /**
66
- * 小程序环境构建容器
67
- */
68
- private initMiniContainer;
69
65
  private containerDimensions;
70
66
  private onWindowOnline;
71
67
  private onWindowResize;
package/es/map.js CHANGED
@@ -384,16 +384,6 @@ export var Map = /*#__PURE__*/function (_Camera) {
384
384
  canvasContainer.classList.add('l7-interactive');
385
385
  }
386
386
  }
387
-
388
- /**
389
- * 小程序环境构建容器
390
- */
391
- }, {
392
- key: "initMiniContainer",
393
- value: function initMiniContainer() {
394
- this.container = this.options.canvas;
395
- this.canvasContainer = this.container;
396
- }
397
387
  }, {
398
388
  key: "containerDimensions",
399
389
  value: function containerDimensions() {
package/es/util.js CHANGED
@@ -23,12 +23,13 @@ export function bezier(p1x, p1y, p2x, p2y) {
23
23
  }
24
24
  export var ease = bezier(0.25, 0.1, 0.25, 1);
25
25
  export function prefersReducedMotion() {
26
+ var _reducedMotionQuery;
26
27
  // Lazily initialize media query
27
- if (reducedMotionQuery == null) {
28
+ if (reducedMotionQuery == null && typeof window !== 'undefined' && window.matchMedia) {
28
29
  // @ts-ignore
29
30
  reducedMotionQuery = window.matchMedia('(prefers-reduced-motion: reduce)');
30
31
  }
31
- return reducedMotionQuery.matches;
32
+ return (_reducedMotionQuery = reducedMotionQuery) === null || _reducedMotionQuery === void 0 ? void 0 : _reducedMotionQuery.matches;
32
33
  }
33
34
  export function pick(src, properties) {
34
35
  var result = {};
package/lib/map.js CHANGED
@@ -389,16 +389,6 @@ var Map = exports.Map = /*#__PURE__*/function (_Camera) {
389
389
  canvasContainer.classList.add('l7-interactive');
390
390
  }
391
391
  }
392
-
393
- /**
394
- * 小程序环境构建容器
395
- */
396
- }, {
397
- key: "initMiniContainer",
398
- value: function initMiniContainer() {
399
- this.container = this.options.canvas;
400
- this.canvasContainer = this.container;
401
- }
402
392
  }, {
403
393
  key: "containerDimensions",
404
394
  value: function containerDimensions() {
package/lib/util.js CHANGED
@@ -40,12 +40,13 @@ function bezier(p1x, p1y, p2x, p2y) {
40
40
  }
41
41
  var ease = exports.ease = bezier(0.25, 0.1, 0.25, 1);
42
42
  function prefersReducedMotion() {
43
+ var _reducedMotionQuery;
43
44
  // Lazily initialize media query
44
- if (reducedMotionQuery == null) {
45
+ if (reducedMotionQuery == null && typeof window !== 'undefined' && window.matchMedia) {
45
46
  // @ts-ignore
46
47
  reducedMotionQuery = window.matchMedia('(prefers-reduced-motion: reduce)');
47
48
  }
48
- return reducedMotionQuery.matches;
49
+ return (_reducedMotionQuery = reducedMotionQuery) === null || _reducedMotionQuery === void 0 ? void 0 : _reducedMotionQuery.matches;
49
50
  }
50
51
  function pick(src, properties) {
51
52
  var result = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-map",
3
- "version": "2.20.18",
3
+ "version": "2.20.19",
4
4
  "description": "l7 map",
5
5
  "keywords": [],
6
6
  "author": "thinkinggis <lzx199065@gmail.com>",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "homepage": "https://github.com/antvis/L7#readme",
42
42
  "dependencies": {
43
- "@antv/l7-utils": "2.20.18",
43
+ "@antv/l7-utils": "2.20.19",
44
44
  "@babel/runtime": "^7.7.7",
45
45
  "@mapbox/point-geometry": "^0.1.0",
46
46
  "@mapbox/unitbezier": "^0.0.0",
@@ -48,5 +48,5 @@
48
48
  "gl-matrix": "^3.1.0",
49
49
  "lodash-es": "^4.17.21"
50
50
  },
51
- "gitHead": "6a24ed4f930e1fc37c01a1705c5253076b97d518"
51
+ "gitHead": "7a7fb59e506d8d970d296fa6efc7e668513a25f6"
52
52
  }