wordinweb 0.1.11 → 0.1.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # WordInWeb
2
2
 
3
- [**Live demo →**](https://wordinweb-parity.callerinfo.workers.dev/)
3
+ [**Live demo →**](https://word-in-web.com/)
4
4
 
5
5
  A Word/.docx viewer and editor for the web, embeddable as a single React component.
6
6
 
@@ -128,7 +128,7 @@ The object passed to `onReady`. Every command operates on the current selection
128
128
  **Images**
129
129
  - `insertImage(file)` — inserts a raster image or editable SVG icon inline at the caret, clamped to the column width (TIFF/WMF/EMF are decoded to something the browser can paint).
130
130
  - `insertScreenshot()` — opens the browser screen/window/tab picker and inserts the captured frame as an editable PNG picture.
131
- - `insertModel3D(file, poster?)` — packages a GLB as a native Office 3D model with an editable poster fallback.
131
+ - `insertModel3D(file, poster?)` — packages a GLB as a native Office 3D model; editable documents show a drag-to-rotate viewport and save the orientation back to Word.
132
132
  - `insertOnlineVideo(url)` — inserts Word online-video metadata with a safe browser poster; double-click opens the validated HTTP(S) URL.
133
133
  - `insertEmbeddedObject(file, filename?)` — embeds any file as a native OLE Package; double-click safely downloads the original file in the browser.
134
134
 
package/dist/index.d.ts CHANGED
@@ -289,6 +289,12 @@ interface ImageContent {
289
289
  interface Model3DReference {
290
290
  part: string;
291
291
  posterPart: string;
292
+ /** Native Office model orientation, in degrees around the X/Y/Z axes. */
293
+ rotation?: {
294
+ x: number;
295
+ y: number;
296
+ z: number;
297
+ };
292
298
  }
293
299
  interface WebVideoReference {
294
300
  url: string;