septima-widget 3.4.5 → 3.4.7

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