New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@antv/l7-maps

Package Overview
Dependencies
Maintainers
24
Versions
541
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/l7-maps - npm Package Compare versions

Comparing version 2.1.11 to 2.1.13

13

CHANGELOG.md

@@ -6,2 +6,15 @@ # Change Log

## [2.1.12](https://github.com/antvis/L7/compare/v2.1.11...v2.1.12) (2020-04-10)
### Bug Fixes
* 采用非偏移坐标系坐标系解决高德地图中国区域抖动的问题 ([124a1d2](https://github.com/antvis/L7/commit/124a1d27aa97c9a6af1de6d041785c420f02ce4c))
* **heatmap:** 修复热力图某些设备上黑色 fix [#278](https://github.com/antvis/L7/issues/278) ([b8f5899](https://github.com/antvis/L7/commit/b8f58992d1fce38fdaac9d82ebfbec14e35298bd))
* 绘制组件高德地图mousedown事件不能监听的问题 ([1eb3313](https://github.com/antvis/L7/commit/1eb3313919b2c7c9162bee70a249846b897ef4b4))
## [2.1.11](https://github.com/antvis/L7/compare/v2.1.10...v2.1.11) (2020-04-07)

@@ -8,0 +21,0 @@

2

es/amap/map.d.ts

@@ -7,2 +7,3 @@ /// <reference types="amap-js-api" />

import { IAMapInstance } from '../../typings/index';
import './logo.css';
/**

@@ -67,3 +68,2 @@ * AMapService

private loadAMapScript;
private removeLogoControl;
}

@@ -20,2 +20,5 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";

import { inject, injectable } from 'inversify';
require('load-styles')("/* @antv/l7-maps */\n.amap-logo{\n display: none !important;\n}\n");
import { MapTheme } from './theme';

@@ -135,3 +138,5 @@ import Viewport from './Viewport';

value: function getMapCanvasContainer() {
return this.map.getContainer();
var _this$map$getContaine;
return (_this$map$getContaine = this.map.getContainer()) === null || _this$map$getContaine === void 0 ? void 0 : _this$map$getContaine.getElementsByClassName('amap-maps')[0];
}

@@ -313,5 +318,2 @@ }, {

_this2.$mapContainer = _this2.map.getContainer();
_this2.removeLogoControl();
setTimeout(function () {

@@ -329,5 +331,2 @@ _this2.map.on('camerachange', _this2.handleCameraChanged);

}, rest));
map.on('complete', function () {
_this2.removeLogoControl();
});
map.on('camerachange', _this2.handleCameraChanged);

@@ -472,11 +471,2 @@ _this2.map = map;

}
}, {
key: "removeLogoControl",
value: function removeLogoControl() {
var logo = document.getElementsByClassName('amap-logo');
if (logo && logo[0]) {
logo[0].setAttribute('style', 'display: none !important');
}
}
}]);

@@ -483,0 +473,0 @@

@@ -6,2 +6,3 @@ import { IMapCamera, IViewport } from '@antv/l7-core';

private viewProjectionMatrix;
private ViewProjectionMatrixUncentered;
private viewUncenteredMatrix;

@@ -18,2 +19,3 @@ private zoom;

getViewProjectionMatrix(): number[];
getViewProjectionMatrixUncentered(): number[];
getFocalDistance(): number;

@@ -20,0 +22,0 @@ /**

@@ -14,2 +14,3 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";

this.viewProjectionMatrix = mat4.create();
this.ViewProjectionMatrixUncentered = mat4.create();
this.viewUncenteredMatrix = mat4.create();

@@ -54,2 +55,3 @@ this.zoom = void 0;

mat4.multiply(this.viewProjectionMatrix, this.projectionMatrix, this.viewMatrix);
mat4.multiply(this.ViewProjectionMatrixUncentered, this.projectionMatrix, this.viewMatrix);
}

@@ -96,2 +98,7 @@ }, {

}, {
key: "getViewProjectionMatrixUncentered",
value: function getViewProjectionMatrixUncentered() {
return this.ViewProjectionMatrixUncentered;
}
}, {
key: "getFocalDistance",

@@ -98,0 +105,0 @@ value: function getFocalDistance() {

@@ -12,4 +12,5 @@ import { IMapCamera, IViewport } from '@antv/l7-core';

getViewProjectionMatrix(): number[];
getViewProjectionMatrixUncentered(): number[];
getFocalDistance(): number;
projectFlat(lngLat: [number, number], scale?: number | undefined): [number, number];
}

@@ -67,2 +67,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";

}, {
key: "getViewProjectionMatrixUncentered",
value: function getViewProjectionMatrixUncentered() {
return this.viewport.viewProjectionMatrix;
}
}, {
key: "getFocalDistance",

@@ -69,0 +74,0 @@ value: function getFocalDistance() {

@@ -44,2 +44,4 @@ "use strict";

require('load-styles')("/* @antv/l7-maps */\n.amap-logo{\n display: none !important;\n}\n");
var mapdivCount = 0;

@@ -150,3 +152,5 @@ window.forceWebGL = true;

value: function getMapCanvasContainer() {
return this.map.getContainer();
var _this$map$getContaine;
return (_this$map$getContaine = this.map.getContainer()) === null || _this$map$getContaine === void 0 ? void 0 : _this$map$getContaine.getElementsByClassName('amap-maps')[0];
}

@@ -328,5 +332,2 @@ }, {

_this2.$mapContainer = _this2.map.getContainer();
_this2.removeLogoControl();
setTimeout(function () {

@@ -344,5 +345,2 @@ _this2.map.on('camerachange', _this2.handleCameraChanged);

}, rest));
map.on('complete', function () {
_this2.removeLogoControl();
});
map.on('camerachange', _this2.handleCameraChanged);

@@ -487,11 +485,2 @@ _this2.map = map;

}
}, {
key: "removeLogoControl",
value: function removeLogoControl() {
var logo = document.getElementsByClassName('amap-logo');
if (logo && logo[0]) {
logo[0].setAttribute('style', 'display: none !important');
}
}
}]);

@@ -498,0 +487,0 @@ return AMapService;

@@ -26,2 +26,3 @@ "use strict";

this.viewProjectionMatrix = _glMatrix.mat4.create();
this.ViewProjectionMatrixUncentered = _glMatrix.mat4.create();
this.viewUncenteredMatrix = _glMatrix.mat4.create();

@@ -73,2 +74,4 @@ this.zoom = void 0;

_glMatrix.mat4.multiply(this.viewProjectionMatrix, this.projectionMatrix, this.viewMatrix);
_glMatrix.mat4.multiply(this.ViewProjectionMatrixUncentered, this.projectionMatrix, this.viewMatrix);
}

@@ -115,2 +118,7 @@ }, {

}, {
key: "getViewProjectionMatrixUncentered",
value: function getViewProjectionMatrixUncentered() {
return this.ViewProjectionMatrixUncentered;
}
}, {
key: "getFocalDistance",

@@ -117,0 +125,0 @@ value: function getFocalDistance() {

@@ -77,2 +77,7 @@ "use strict";

}, {
key: "getViewProjectionMatrixUncentered",
value: function getViewProjectionMatrixUncentered() {
return this.viewport.viewProjectionMatrix;
}
}, {
key: "getFocalDistance",

@@ -79,0 +84,0 @@ value: function getFocalDistance() {

{
"name": "@antv/l7-maps",
"version": "2.1.11",
"version": "2.1.13",
"description": "",

@@ -28,4 +28,4 @@ "main": "lib/index.js",

"dependencies": {
"@antv/l7-core": "^2.1.11",
"@antv/l7-utils": "^2.1.11",
"@antv/l7-core": "2.1.13",
"@antv/l7-utils": "2.1.13",
"@babel/runtime": "^7.7.7",

@@ -43,3 +43,3 @@ "@types/amap-js-api": "^1.4.6",

},
"gitHead": "1462543a21020508dd5d035f89bbad8e3b558df7",
"gitHead": "565dcff53e37a1bc11b3ad37fbf36ac99d5b8352",
"publishConfig": {

@@ -46,0 +46,0 @@ "access": "public"

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc