@splinetool/viewer 0.0.26 → 0.0.27

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 { Application } from '@splinetool/runtime';
2
2
  import { LitElement } from 'lit';
3
3
  export declare type LoadingType = 'auto' | 'lazy' | 'eager';
4
4
  export declare type EventsTargetType = 'local' | 'global';
5
+ export declare type HintType = 'drag';
5
6
  /**
6
7
  * Spline scene viewer
7
8
  */
@@ -35,6 +36,10 @@ export declare class SplineViewer extends LitElement {
35
36
  * Target of the mouse events, can either be 'local' (ie the canvas) or global (window)
36
37
  */
37
38
  eventsTarget: EventsTargetType | undefined;
39
+ /**
40
+ * Target of the mouse events, can either be 'local' (ie the canvas) or global (window)
41
+ */
42
+ hint: boolean;
38
43
  /**
39
44
  * When true it displays the spinner preloader
40
45
  */
@@ -46,6 +51,7 @@ export declare class SplineViewer extends LitElement {
46
51
  protected _container: HTMLElement;
47
52
  protected _canvas: HTMLCanvasElement;
48
53
  protected _logo: HTMLElement;
54
+ protected _hintDrag: HTMLElement;
49
55
  protected _preloader: HTMLElement;
50
56
  private _loadedUrl;
51
57
  private _wasContextLost;
@@ -55,6 +61,8 @@ export declare class SplineViewer extends LitElement {
55
61
  protected _handleContextRestored: () => void;
56
62
  protected recreateCanvas(): void;
57
63
  protected load(): void;
64
+ protected onLoaded: () => void;
65
+ protected onInteract: () => void;
58
66
  updated(changedProperties: Map<string | number | symbol, any>): void;
59
67
  connectedCallback(): void;
60
68
  disconnectedCallback(): void;