gridviz 2.0.33 → 2.0.34

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": "2.0.33",
3
+ "version": "2.0.34",
4
4
  "description": "Visualization tool for gridded statistics",
5
5
  "keywords": [
6
6
  "statistics",
@@ -39,7 +39,7 @@
39
39
  "start-dev": "webpack --config webpack.config.dev.cjs",
40
40
  "server": "webpack serve -c webpack.config.dev.js --static ./",
41
41
  "doc": "./node_modules/.bin/jsdoc src/ src/dataset src/legend src/style -d docs/jsdoc",
42
- "build": "webpack --config webpack.config.prod.cjs",
42
+ "build-prod": "webpack --config webpack.config.prod.cjs",
43
43
  "test": "jest"
44
44
  },
45
45
  "files": [
package/src/App.js CHANGED
@@ -283,7 +283,10 @@ export class App {
283
283
  container.addEventListener('mouseout', () => {
284
284
  this.tooltip.hide()
285
285
  })
286
- this.cg.onZoomStartFun = () => {
286
+
287
+ // add extra logic to onZoomStartFun
288
+ this.cg.onZoomStartFun = (e) => {
289
+ if (opts.onZoomStartFun) opts.onZoomStartFun(e)
287
290
  this.tooltip.hide()
288
291
  }
289
292