@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.
@@ -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;
@@ -82,8 +82,13 @@ export function useMarkgraf(
82
82
 
83
83
  export interface MarkgrafPlayerProps {
84
84
  src: string;
85
- /** `"canvas"` (default) or `"svg"`. */
86
- renderer?: "canvas" | "svg";
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. */