@markgrafhq/markgraf-react 0.0.25 → 0.0.27
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/dist/markgraf-react.css +3 -1
- package/dist/markgraf-react.d.ts +7 -2
- package/dist/markgraf-react.js +10861 -8304
- package/package.json +1 -1
package/dist/markgraf-react.css
CHANGED
|
@@ -22,8 +22,10 @@
|
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.markgraf-embed canvas[data-mg="stage"]
|
|
25
|
+
.markgraf-embed canvas[data-mg="stage"],
|
|
26
|
+
.markgraf-embed svg[data-mg="stage"] {
|
|
26
27
|
width: 100%;
|
|
28
|
+
height: auto;
|
|
27
29
|
display: block;
|
|
28
30
|
max-height: var(--mg-max-height, 90svh);
|
|
29
31
|
object-fit: contain;
|
package/dist/markgraf-react.d.ts
CHANGED
|
@@ -82,8 +82,13 @@ export function useMarkgraf(
|
|
|
82
82
|
|
|
83
83
|
export interface MarkgrafPlayerProps {
|
|
84
84
|
src: string;
|
|
85
|
-
/**
|
|
86
|
-
|
|
85
|
+
/**
|
|
86
|
+
* `"canvas"` (default), `"svg"`, or `"sdf"` (alias `"webgl"`) — the WebGL
|
|
87
|
+
* raymarched 3D renderer. The SDF renderer is self-driving: it ignores
|
|
88
|
+
* `width`/`height` (it fills its container) and isn't available through the
|
|
89
|
+
* lower-level `useMarkgraf` hook.
|
|
90
|
+
*/
|
|
91
|
+
renderer?: "canvas" | "svg" | "sdf" | "webgl";
|
|
87
92
|
/** Visual theme. `"light"` (default), `"dark"`, or `"blueprint"`. */
|
|
88
93
|
theme?: "light" | "dark" | "blueprint";
|
|
89
94
|
/** When `true`, skip the background fill so the page bg shows through. */
|