@splinetool/viewer 0.9.497 → 0.9.498

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.
@@ -2,6 +2,7 @@ import { LitElement } from 'lit';
2
2
  export declare type LoadingType = 'auto' | 'lazy' | 'eager';
3
3
  export declare type EventsTargetType = 'local' | 'global';
4
4
  export declare type HintType = 'drag';
5
+ export declare type PreloaderAnimType = 'spinner-small-dark' | 'spinner-small-light' | 'spinner-big-dark' | 'spinner-big-light';
5
6
  /**
6
7
  * Spline scene viewer
7
8
  */
@@ -40,9 +41,14 @@ export declare class SplineViewer extends LitElement {
40
41
  */
41
42
  hint?: boolean;
42
43
  /**
43
- * When true it displays the spinner preloader
44
+ * @deprecated Use loading-anim-type instead
45
+ * When true it displays the spinner preloader.
44
46
  */
45
47
  loadingAnim: boolean;
48
+ /**
49
+ * Type of spinner preloader, can be 'spinner-small-dark', 'spinner-small-light' ,'spinner-big-dark', 'spinner-big-light' or undefined
50
+ */
51
+ loadingAnimType?: PreloaderAnimType;
46
52
  private _spline;
47
53
  protected _intersectionObserver: IntersectionObserver | null;
48
54
  protected _isElementInViewport: boolean;
@@ -52,9 +58,11 @@ export declare class SplineViewer extends LitElement {
52
58
  protected _logo: HTMLElement;
53
59
  protected _hintDrag: HTMLElement;
54
60
  protected _preloader: HTMLElement;
61
+ protected _spinner: HTMLElement;
55
62
  private _loadedUrl;
56
63
  private _wasContextLost;
57
64
  constructor();
65
+ private rerender;
58
66
  protected unload(): void;
59
67
  protected _handleContextLost: () => void;
60
68
  protected _handleContextRestored: () => void;