@markgrafhq/markgraf-embed 0.1.18 → 0.1.19

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.

Potentially problematic release.


This version of @markgrafhq/markgraf-embed might be problematic. Click here for more details.

package/README.md CHANGED
@@ -16,11 +16,11 @@ active.
16
16
 
17
17
  <div data-markgraf>
18
18
  seed 1
19
- keyframe v1 {
20
- +node client "Client"
21
- +node api "API"
22
- +edge client api
23
- client -> api "GET /user/42"
19
+ scene v1 {
20
+ + client: Client
21
+ + api: API
22
+ + client -> api
23
+ client ~> api: GET /user/42
24
24
  }
25
25
  </div>
26
26
  ```
@@ -28,7 +28,7 @@ keyframe v1 {
28
28
  ## From a bundler
29
29
 
30
30
  ```js
31
- import "@markgrafhq/markgraf-embed/dist/markgraf-embed.css";
31
+ import "@markgrafhq/markgraf-embed/css";
32
32
  import "@markgrafhq/markgraf-embed"; // side-effect: registers window.markgraf, auto-mounts
33
33
  ```
34
34
 
@@ -52,7 +52,7 @@ Set inline CSS on the embed element:
52
52
  The script also exposes `window.markgraf`:
53
53
 
54
54
  ```js
55
- markgraf.mount(element, "seed 1\nkeyframe v1 { +node a \"A\" }");
55
+ markgraf.mount(element, "seed 1\nscene v1 { + a: A }");
56
56
  markgraf.mountAll(); // scan the whole document
57
57
  markgraf.mountAll(myContainer); // scan a subtree
58
58
  ```
@@ -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;