@meridian/web-sdk
Advanced tools
Comparing version 1.8.0 to 1.9.0
@@ -11,3 +11,2 @@ /** | ||
unnamedBuilding: string; | ||
noResultsFound: string; | ||
}; | ||
@@ -14,0 +13,0 @@ /** New object with just one key missing from it. */ |
@@ -110,2 +110,9 @@ /** @jsx h */ | ||
/** | ||
* Object with a X & Y | ||
*/ | ||
declare type XY = { | ||
x: number; | ||
y: number; | ||
}; | ||
/** | ||
* Convert from latitude and longitude to a point on a referenced map. Uses equirectangular projection. | ||
@@ -120,3 +127,3 @@ * | ||
*/ | ||
export declare function latLngToMapPoint(gpsRefPoints: string, { lat, lng }: LatLng): { | ||
export declare function latLngToMapPoint(floorData: Partial<FloorData>, { lat, lng }: LatLng): { | ||
x: number; | ||
@@ -126,2 +133,15 @@ y: number; | ||
/** | ||
* Convert from a point on a referenced map to latitude and longitude. Uses mercator projection. | ||
* | ||
* The basic formula to achieve this is as follows: | ||
* | ||
* latitute = 2(tan^-1)[exp(y / radius)] | ||
* longitude = central parallel of map + (x / radius) - PI / 2 | ||
* | ||
*/ | ||
export declare function mapPointToLatLng(floorData: Partial<FloorData>, { x, y }: XY): { | ||
lat: number; | ||
lng: number; | ||
}; | ||
/** | ||
* Initializes a share MeridianSDK API instance for use across all calls to | ||
@@ -507,5 +527,5 @@ * [[createMap]]. You can either call this function or pass your [[API]] | ||
/** | ||
* [async] Returns the gps_ref_points data of specified floor | ||
* [async] Returns the data of specified floor | ||
*/ | ||
fetchMapAnchorPoints(locationID: string, floorID: string): Promise<FloorData[]>; | ||
fetchFloorData(locationID: string, floorID: string): Promise<FloorData[]>; | ||
/** | ||
@@ -512,0 +532,0 @@ * [async] Returns an object URL for the given SVG URL |
{ | ||
"name": "@meridian/web-sdk", | ||
"private": false, | ||
"version": "1.8.0", | ||
"version": "1.9.0", | ||
"description": "Web SDK for showing Aruba Meridian maps, tags, and more", | ||
@@ -38,3 +38,3 @@ "main": "./dist/web-sdk.js", | ||
"@emotion/css": "^11.10.0", | ||
"@types/d3-transition": "^3.0.1", | ||
"@types/d3-transition": "^3.0.2", | ||
"@types/lodash.debounce": "^4.0.7", | ||
@@ -50,3 +50,3 @@ "@types/lodash.groupby": "^4.6.7", | ||
"lodash.throttle": "^4.1.1", | ||
"preact": "^10.10.0", | ||
"preact": "^10.11.0", | ||
"prop-types": "^15.8.1", | ||
@@ -58,8 +58,8 @@ "reconnecting-websocket": "^4.4.0", | ||
"@types/d3-zoom": "^3.0.1", | ||
"@types/webpack-env": "^1.17.0", | ||
"@typescript-eslint/eslint-plugin": "^5.32.0", | ||
"@typescript-eslint/parser": "^5.32.0", | ||
"@types/webpack-env": "^1.18.0", | ||
"@typescript-eslint/eslint-plugin": "^5.37.0", | ||
"@typescript-eslint/parser": "^5.37.0", | ||
"cypress": "^9.6.1", | ||
"declaration-bundler-webpack-plugin": "^1.0.3", | ||
"eslint": "^8.21.0", | ||
"eslint": "^8.23.1", | ||
"eslint-config-preact": "^1.3.0", | ||
@@ -73,11 +73,11 @@ "eslint-plugin-compat": "^4.0.2", | ||
"ts-loader": "^9.3.1", | ||
"typedoc": "^0.22.17", | ||
"typescript": "^4.7.4", | ||
"typedoc": "^0.23.14", | ||
"typescript": "^4.8.3", | ||
"wait-on": "^6.0.1", | ||
"webpack": "^5.74.0", | ||
"webpack-bundle-analyzer": "^4.5.0", | ||
"webpack-bundle-analyzer": "^4.6.1", | ||
"webpack-cli": "^4.10.0", | ||
"webpack-dev-server": "^4.9.3", | ||
"webpack-dev-server": "^4.11.0", | ||
"webpack-node-externals": "^3.0.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
460248
123
1365
Updated@types/d3-transition@^3.0.2
Updatedpreact@^10.11.0