radar-sdk-js
Advanced tools
Comparing version 4.3.1-beta.2 to 4.3.1
@@ -1,2 +0,2 @@ | ||
declare const _default: "4.3.1-beta.2"; | ||
declare const _default: "4.3.1"; | ||
export default _default; |
{ | ||
"name": "radar-sdk-js", | ||
"version": "4.3.1-beta.2", | ||
"version": "4.3.1", | ||
"description": "Web Javascript SDK for Radar, location infrastructure for mobile and web apps.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://radar.com", |
@@ -59,3 +59,3 @@ <p align="center"> | ||
```html | ||
<script src="https://js.radar.com/v4.3.1-beta.2/radar.min.js"></script> | ||
<script src="https://js.radar.com/v4.3.1/radar.min.js"></script> | ||
``` | ||
@@ -77,4 +77,4 @@ | ||
<head> | ||
<link href="https://js.radar.com/v4.3.1-beta.2/radar.css" rel="stylesheet"> | ||
<script src="https://js.radar.com/v4.3.1-beta.2/radar.min.js"></script> | ||
<link href="https://js.radar.com/v4.3.1/radar.css" rel="stylesheet"> | ||
<script src="https://js.radar.com/v4.3.1/radar.min.js"></script> | ||
</head> | ||
@@ -103,4 +103,4 @@ | ||
<head> | ||
<link href="https://js.radar.com/v4.3.1-beta.2/radar.css" rel="stylesheet"> | ||
<script src="https://js.radar.com/v4.3.1-beta.2/radar.min.js"></script> | ||
<link href="https://js.radar.com/v4.3.1/radar.css" rel="stylesheet"> | ||
<script src="https://js.radar.com/v4.3.1/radar.min.js"></script> | ||
</head> | ||
@@ -136,4 +136,4 @@ | ||
<head> | ||
<link href="https://js.radar.com/v4.3.1-beta.2/radar.css" rel="stylesheet"> | ||
<script src="https://js.radar.com/v4.3.1-beta.2/radar.min.js"></script> | ||
<link href="https://js.radar.com/v4.3.1/radar.css" rel="stylesheet"> | ||
<script src="https://js.radar.com/v4.3.1/radar.min.js"></script> | ||
</head> | ||
@@ -140,0 +140,0 @@ |
@@ -135,3 +135,3 @@ import Logger from '../logger'; | ||
this.resultsList.classList.add(CLASSNAMES.RESULTS_LIST); | ||
this.resultsList.classList.add('id', CLASSNAMES.RESULTS_LIST); | ||
this.resultsList.setAttribute('id', CLASSNAMES.RESULTS_LIST); | ||
this.resultsList.setAttribute('role', 'listbox'); | ||
@@ -288,3 +288,3 @@ this.resultsList.setAttribute('aria-live', 'polite'); | ||
li.setAttribute('role', 'option'); | ||
li.setAttribute('id', `item-${index}`); | ||
li.setAttribute('id', `${CLASSNAMES.RESULTS_ITEM}}-${index}`); | ||
@@ -397,3 +397,3 @@ // construct result with bolded label | ||
// set aria active descendant | ||
this.inputField.setAttribute('aria-activedescendant', `item-${index}`); | ||
this.inputField.setAttribute('aria-activedescendant', `${CLASSNAMES.RESULTS_ITEM}-${index}`); | ||
@@ -400,0 +400,0 @@ this.highlightedIndex = index; |
@@ -10,2 +10,18 @@ import maplibregl from 'maplibre-gl'; | ||
class RadarMarkerMouseEvent { | ||
type: 'click'; | ||
target: RadarMarker; | ||
originalEvent: MouseEvent; | ||
lngLat: maplibregl.LngLat; | ||
point: maplibregl.Point2D; | ||
constructor(type: 'click', marker: RadarMarker, originalEvent: MouseEvent) { | ||
this.target = marker; | ||
this.originalEvent = originalEvent; | ||
this.point = marker._pos; | ||
this.lngLat = marker.getLngLat(); | ||
this.type = type; | ||
} | ||
} | ||
interface ImageOptions { | ||
@@ -17,3 +33,2 @@ url?: string; | ||
const createImageElement = (options: ImageOptions) => { | ||
@@ -150,7 +165,3 @@ const element = document.createElement('img'); | ||
element.addEventListener('click', (e) => { | ||
e.stopPropagation(); // stop propagation to map | ||
if (this._popup) { | ||
this.togglePopup(); | ||
} | ||
this.fire('click', e); | ||
this.fire('click', new RadarMarkerMouseEvent('click', this, e)); | ||
}); | ||
@@ -157,0 +168,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export default '4.3.1-beta.2'; | ||
export default '4.3.1'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
298279
6048
0