@inweb/markup 25.8.4 → 25.8.6

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/dist/markup.js CHANGED
@@ -12458,10 +12458,8 @@
12458
12458
  };
12459
12459
  }
12460
12460
  initialize(container, pointerEvents, viewer, worldTransformer) {
12461
- if (!Konva) {
12462
- console.error('Markup error: Konva is not initialized. Update node_modules or add to your page <script src="https://unpkg.com/konva@9/konva.min.js"></script>');
12463
- return;
12464
- }
12461
+ if (!Konva)
12462
+ throw new Error('Markup error: Konva is not initialized. Forgot to add <script src="https://unpkg.com/konva@9/konva.min.js"></script> to your page?');
12465
12463
  this._viewer = viewer;
12466
12464
  this._worldTransformer = worldTransformer !== null && worldTransformer !== void 0 ? worldTransformer : new WorldTransform();
12467
12465
  this._container = container;