@splinetool/viewer 0.0.2 → 0.0.4

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.
@@ -0,0 +1 @@
1
+ export declare const HAS_INTERSECTION_OBSERVER: boolean;
@@ -0,0 +1,48 @@
1
+ import { Application } from '@splinetool/runtime';
2
+ import { LitElement } from 'lit';
3
+ export declare type LoadingType = 'auto' | 'lazy' | 'eager';
4
+ /**
5
+ * Spline scene viewer
6
+ */
7
+ export declare class SplineViewer extends LitElement {
8
+ static styles: import("lit").CSSResult;
9
+ /**
10
+ * The url of the .splinecode file as exported from Spline Editor.
11
+ */
12
+ url: string | null;
13
+ /**
14
+ * The width of the canvas
15
+ */
16
+ width: number | undefined;
17
+ /**
18
+ * The height of the canvas
19
+ */
20
+ height: number | undefined;
21
+ /**
22
+ * Background color
23
+ */
24
+ background: string | undefined;
25
+ /**
26
+ * Background color
27
+ */
28
+ loading: LoadingType;
29
+ protected _spline: Application;
30
+ protected _intersectionObserver: IntersectionObserver | null;
31
+ protected _isElementInViewport: boolean;
32
+ protected _loaded: boolean;
33
+ protected _container: HTMLElement;
34
+ protected _canvas: HTMLCanvasElement;
35
+ protected _logo: HTMLElement;
36
+ private _loadedUrl;
37
+ constructor();
38
+ protected load(): void;
39
+ updated(changedProperties: Map<string | number | symbol, any>): void;
40
+ connectedCallback(): void;
41
+ disconnectedCallback(): void;
42
+ private _handleResize;
43
+ }
44
+ declare global {
45
+ interface HTMLElementTagNameMap {
46
+ 'spline-viewer': SplineViewer;
47
+ }
48
+ }