lumiverse-spindle-types 0.4.40 → 0.4.41

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/dom.ts +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumiverse-spindle-types",
3
- "version": "0.4.40",
3
+ "version": "0.4.41",
4
4
  "types": "./src/index.ts",
5
5
  "keywords": [
6
6
  "lumiverse",
package/src/dom.ts CHANGED
@@ -77,6 +77,9 @@ export interface SpindleFloatWidgetOptions {
77
77
  /** Strip default container chrome (border, background, shadow, border-radius).
78
78
  * The extension fully owns the visual presentation. */
79
79
  chromeless?: boolean;
80
+ /** When true, the widget is created in fullscreen mode anchored to the
81
+ * viewport origin (0,0) and sized to fill the entire viewport. */
82
+ fullscreen?: boolean;
80
83
  }
81
84
 
82
85
  export interface SpindleFloatWidgetHandle {
@@ -86,6 +89,12 @@ export interface SpindleFloatWidgetHandle {
86
89
  getPosition(): { x: number; y: number };
87
90
  setVisible(visible: boolean): void;
88
91
  isVisible(): boolean;
92
+ /** Toggle fullscreen mode. When enabled the host resizes the widget to
93
+ * fill the viewport and anchors it at (0,0). Disabling restores the
94
+ * previous size and position. */
95
+ setFullscreen(fullscreen: boolean): void;
96
+ /** Returns true when the widget is currently in fullscreen mode. */
97
+ isFullscreen(): boolean;
89
98
  destroy(): void;
90
99
  onDragEnd(handler: (pos: { x: number; y: number }) => void): () => void;
91
100
  }