@micrio/client 7.1.1 → 7.1.2
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 +15 -0
- package/micrio.min.js +2 -2
- package/package.json +1 -1
package/micrio.min.d.ts
CHANGED
|
@@ -51,6 +51,13 @@ declare module '@micrio/client' {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
export namespace Attributes {
|
|
54
|
+
/**
|
|
55
|
+
* Rendering mode for the `data-embeds-inside-gl` attribute:
|
|
56
|
+
* - `'auto'` (default): platform and size heuristics decide.
|
|
57
|
+
* - `'true'`: force all GL-capable embeds into WebGL.
|
|
58
|
+
* - `'false'`: force all embeds to be rendered as HTML.
|
|
59
|
+
*/
|
|
60
|
+
type EmbedGLMode = 'auto' | 'true' | 'false';
|
|
54
61
|
interface MicrioCustomAttributes {
|
|
55
62
|
/** The image ID */
|
|
56
63
|
'id'?: string;
|
|
@@ -128,6 +135,14 @@ declare module '@micrio/client' {
|
|
|
128
135
|
'volume'?: number;
|
|
129
136
|
/** Fade music to this volume while other audio plays (between 0 and 1). Default: 0 */
|
|
130
137
|
'data-mutedvolume'?: number;
|
|
138
|
+
/** How embedded images/videos are rendered. `'auto'` (default, same as omitting
|
|
139
|
+
* the attribute) lets the platform and size heuristics decide — WebGL where
|
|
140
|
+
* supported, small images as HTML `<img>` elements. `'true'` forces every
|
|
141
|
+
* GL-capable embed into WebGL (including small images that would otherwise be
|
|
142
|
+
* HTML `<img>`, and non-HDR videos); embeds that WebGL cannot represent
|
|
143
|
+
* (iframes, src-only images, videos with controls or alpha transparency) still
|
|
144
|
+
* fall back to HTML. `'false'` forces every embed to be rendered as HTML. */
|
|
145
|
+
'data-embeds-inside-gl'?: EmbedGLMode;
|
|
131
146
|
/** Toggle limited rendering mode in WebAssembly. */
|
|
132
147
|
'data-limited'?: boolean;
|
|
133
148
|
}
|