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

maptalks.three

Package Overview
Dependencies
Maintainers
2
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maptalks.three - npm Package Compare versions

Comparing version 0.36.0 to 0.36.1

10

dist/BaseObject.js

@@ -297,8 +297,8 @@ "use strict";

openToolTip(coordinate) {
coordinate = coordinate || this.getCenter();
if (!(coordinate instanceof maptalks.Coordinate)) {
coordinate = new maptalks.Coordinate(coordinate);
}
// coordinate = coordinate || this.getCenter();
// if (!(coordinate instanceof maptalks.Coordinate)) {
// coordinate = new maptalks.Coordinate(coordinate);
// }
// eslint-disable-next-line no-unused-expressions
(coordinate && this.toolTip && this.toolTip.show(coordinate));
// (coordinate && this.toolTip && this.toolTip.show(coordinate));
return this;

@@ -305,0 +305,0 @@ }

@@ -298,3 +298,4 @@ import * as maptalks from 'maptalks';

*/
identify(coordinate: maptalks.Coordinate, options: object): Array<BaseObject | THREE.Object3D>;
identify(coordinate: maptalks.Coordinate | maptalks.Point, options: object): Array<BaseObject | THREE.Object3D>;
identifyAtPoint(point: maptalks.Point, options?: {}): (THREE.Object3D | BaseObject)[];
/**

@@ -301,0 +302,0 @@ * Recursively finding the root node of mesh,Until it is scene node

@@ -863,2 +863,10 @@ import * as maptalks from 'maptalks';

}
identifyAtPoint(point, options = {}) {
const map = this.getMap();
if (!map) {
return [];
}
const coordinate = map.containerPointToCoordinate(point);
return this.identify(coordinate, options);
}
/**

@@ -865,0 +873,0 @@ * Recursively finding the root node of mesh,Until it is scene node

{
"name": "maptalks.three",
"version": "0.36.0",
"version": "0.36.1",
"description": "A maptalks Layer to render with THREE.js.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -351,8 +351,8 @@ "use strict"

openToolTip(coordinate: maptalks.Coordinate) {
coordinate = coordinate || this.getCenter();
if (!(coordinate instanceof maptalks.Coordinate)) {
coordinate = new maptalks.Coordinate(coordinate);
}
// coordinate = coordinate || this.getCenter();
// if (!(coordinate instanceof maptalks.Coordinate)) {
// coordinate = new maptalks.Coordinate(coordinate);
// }
// eslint-disable-next-line no-unused-expressions
(coordinate && this.toolTip && this.toolTip.show(coordinate));
// (coordinate && this.toolTip && this.toolTip.show(coordinate));
return this;

@@ -359,0 +359,0 @@ }

@@ -847,3 +847,3 @@ import * as maptalks from 'maptalks';

*/
identify(coordinate: maptalks.Coordinate, options: object): Array<BaseObject | THREE.Object3D> {
identify(coordinate: maptalks.Coordinate | maptalks.Point, options: object): Array<BaseObject | THREE.Object3D> {
if (!coordinate) {

@@ -954,2 +954,11 @@ console.error('coordinate is null,it should be Coordinate');

identifyAtPoint(point:maptalks.Point, options = {}) {
const map = this.getMap();
if (!map) {
return [];
}
const coordinate = map.containerPointToCoordinate(point);
return this.identify(coordinate, options);
}
/**

@@ -956,0 +965,0 @@ * Recursively finding the root node of mesh,Until it is scene node

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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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