gridviz 3.0.24 → 3.0.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gridviz",
3
- "version": "3.0.24",
3
+ "version": "3.0.25",
4
4
  "description": "Visualization tool for gridded statistics",
5
5
  "keywords": [
6
6
  "statistics",
@@ -85,6 +85,7 @@ export class GeoCanvas {
85
85
  // to make the zooming a bit faster
86
86
  .wheelDelta((e) => -e.deltaY * (e.deltaMode === 1 ? 0.07 : e.deltaMode ? 1 : 0.004))
87
87
  .on('zoom', (e) => {
88
+ this._isZooming = true;
88
89
  const t = e.transform
89
90
  const zoomFactor = tP.k / t.k
90
91
  if (zoomFactor == 1) {
@@ -101,7 +102,7 @@ export class GeoCanvas {
101
102
  })
102
103
  .on('start', (e) => {
103
104
  // start of zoom event
104
- this._isZooming = true;
105
+ this._isZooming = true;
105
106
  // save the current canvas state to keep onscreen during pan/zoom before redrawing
106
107
  this.canvasSave.c = document.createElement('canvas')
107
108
  this.canvasSave.c.setAttribute('width', '' + this.w)
package/src/core/Map.js CHANGED
@@ -276,6 +276,7 @@ export class Map {
276
276
  }
277
277
 
278
278
  if (focus) {
279
+ this.geoCanvas.canvas.style.cursor = 'pointer';
279
280
  this.tooltip.html(focus.html)
280
281
  this.tooltip.setPosition(e)
281
282
  this.tooltip.show()
@@ -309,6 +310,7 @@ export class Map {
309
310
  ctx.stroke()
310
311
  this.geoCanvas.ctx.drawImage(this.geoCanvas.offscreenCanvas, 0, 0)
311
312
  } else {
313
+ this.geoCanvas.canvas.style.cursor = 'default';
312
314
  this.tooltip.hide()
313
315
  if (this.canvasSave) this.geoCanvas.ctx.drawImage(this.canvasSave, 0, 0)
314
316
  }