@splinetool/viewer 0.0.12 → 0.0.13

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.
@@ -1,6 +1,7 @@
1
1
  import { Application } from '@splinetool/runtime';
2
2
  import { LitElement } from 'lit';
3
3
  export declare type LoadingType = 'auto' | 'lazy' | 'eager';
4
+ export declare type EventsTargetType = 'local' | 'global';
4
5
  /**
5
6
  * Spline scene viewer
6
7
  */
@@ -23,13 +24,17 @@ export declare class SplineViewer extends LitElement {
23
24
  */
24
25
  background: string | undefined;
25
26
  /**
26
- * Background color
27
+ * Preloading strategy ('auto', 'lazy' or 'eager')
27
28
  */
28
29
  loading: LoadingType;
29
30
  /**
30
- * Background color
31
+ * Enables auto unloading of the canvas / spline when it leaves the viewport
31
32
  */
32
33
  unloadable: boolean;
34
+ /**
35
+ * Target of the mouse events, can either be 'local' (ie the canvas) or global (window)
36
+ */
37
+ eventsTarget: EventsTargetType | undefined;
33
38
  protected _spline: Application;
34
39
  protected _intersectionObserver: IntersectionObserver | null;
35
40
  protected _isElementInViewport: boolean;