septima-widget 3.4.2 → 3.4.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/widgetapi.mjs +5 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "septima-widget",
3
- "version": "3.4.2",
3
+ "version": "3.4.4",
4
4
  "description": "Septima Widget API",
5
5
  "type": "module",
6
6
  "module": "./widgetapi.mjs",
package/widgetapi.mjs CHANGED
@@ -5,7 +5,7 @@ export default class WidgetAPI {
5
5
 
6
6
  _target = null
7
7
 
8
- VERSION = '3.4.2'
8
+ VERSION = '3.4.4'
9
9
 
10
10
  constructor(target, config, options) {
11
11
  this._target = target
@@ -13,8 +13,8 @@ export default class WidgetAPI {
13
13
  }
14
14
 
15
15
  async _load(target, config, options) {
16
- const { load } = await import('https://widget.cdn.septima.dk/3.4.2/core/load.mjs')
17
- this._widget = await load(target, config, options, this.VERSION)
16
+ const { load } = await import('https://widget.cdn.septima.dk/3.4.4/core/load.mjs')
17
+ this._widget = await load(target, config, options, this)
18
18
  this.on('controlsready', () => {
19
19
  this._controlsReady()
20
20
  })
@@ -38,6 +38,7 @@ export default class WidgetAPI {
38
38
  for (var i = 0; i < this._readylisteners.length; i++) {
39
39
  this._readylisteners[i]()
40
40
  }
41
+ this._widget.events.fireEvent('ready', this)
41
42
  }
42
43
  }
43
44
  }
@@ -198,7 +199,7 @@ export default class WidgetAPI {
198
199
 
199
200
  transform(geojson, options, callback) {
200
201
  this._controlsReady(async () => {
201
- const { transform } = await import('https://widget.cdn.septima.dk/3.4.2/core/utils.mjs')
202
+ const { transform } = await import('https://widget.cdn.septima.dk/3.4.4/core/utils.mjs')
202
203
  if (callback) {
203
204
  callback(transform(geojson, options))
204
205
  } else {