@micrio/client 7.1.8 → 7.1.9

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/micrio.min.d.ts CHANGED
@@ -145,6 +145,11 @@ declare module '@micrio/client' {
145
145
  'data-embeds-inside-gl'?: EmbedGLMode;
146
146
  /** Toggle limited rendering mode in WebAssembly. */
147
147
  'data-limited'?: boolean;
148
+ /** While the native browser context menu is open, temporarily size the canvas to
149
+ * the area the image is actually drawn on, so that its "Copy image" item copies the
150
+ * image without transparent padding. Requires `data-preserve-drawing-buffer`.
151
+ * Default: false */
152
+ 'data-contextmenu-crop'?: boolean;
148
153
  }
149
154
  }
150
155
  export namespace State {
@@ -2419,6 +2424,10 @@ declare module '@micrio/client' {
2419
2424
  hookDrag(): void;
2420
2425
  /** Unhooks pointer listeners for drag panning. */
2421
2426
  unhookDrag(): void;
2427
+ /** Hooks the native context menu copy crop handler (`data-contextmenu-crop`). */
2428
+ hookContextMenuCopy(): void;
2429
+ /** Unhooks the native context menu copy crop handler. */
2430
+ unhookContextMenuCopy(): void;
2422
2431
  }
2423
2432
 
2424
2433
  /**