@mxtommy/kip 3.0.0-alpha.18 → 3.0.0-alpha.19

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": "@mxtommy/kip",
3
- "version": "3.0.0-alpha.18",
3
+ "version": "3.0.0-alpha.19",
4
4
  "description": "An advanced and versatile marine instrumentation package to display Signal K data.",
5
5
  "license": "MIT",
6
6
  "author": {
package/public/main.js CHANGED
@@ -125260,17 +125260,17 @@ var WidgetFreeboardskComponent = class _WidgetFreeboardskComponent extends BaseW
125260
125260
  handleIframeGesture = (event) => {
125261
125261
  if (!event.data || !event.data.gesture)
125262
125262
  return;
125263
- if (!this.widgetHost()) {
125263
+ if (!this.iframe()) {
125264
125264
  console.error("widgetHost is not available");
125265
125265
  return;
125266
125266
  }
125267
- if (!this.widgetHost().nativeElement) {
125267
+ if (!this.iframe().nativeElement) {
125268
125268
  console.error("widgetHost.nativeElement is not available");
125269
125269
  return;
125270
125270
  }
125271
125271
  const domEvent = new Event(event.data?.gesture, { bubbles: true, cancelable: true });
125272
125272
  console.log("Dispatching gesture event 17: ", event.data?.gesture);
125273
- this.widgetHost().nativeElement.dispatchEvent(domEvent);
125273
+ this.iframe().nativeElement.dispatchEvent(domEvent);
125274
125274
  };
125275
125275
  /** Manually trigger a swipe event */
125276
125276
  // triggerSwipe(direction: 'left' | 'right' | 'up' | 'down') {