@micrio/client 7.1.8 → 7.1.10
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.core.min.js +2 -2
- package/micrio.min.d.ts +13 -0
- package/micrio.min.js +2 -2
- package/package.json +1 -1
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
|
/**
|
|
@@ -2601,6 +2610,10 @@ declare module '@micrio/client' {
|
|
|
2601
2610
|
/** The main Grid controller that arranges {@link MicrioImage} instances into a CSS grid layout. */
|
|
2602
2611
|
export class Grid extends MicrioElement {
|
|
2603
2612
|
#private;
|
|
2613
|
+
/** All {@link MicrioImage} instances managed by this grid. */
|
|
2614
|
+
get images(): readonly MicrioImage[];
|
|
2615
|
+
/** Get a grid {@link MicrioImage} instance by its image ID, if it is part of this grid. */
|
|
2616
|
+
getImage(id: string): MicrioImage | undefined;
|
|
2604
2617
|
/** The currently focussed (single-view) image, if any. */
|
|
2605
2618
|
get $focussed(): MicrioImage | undefined;
|
|
2606
2619
|
/** The parent `<micrio-*>` element this grid is bound to. */
|