@markdy/astro 1.4.3 → 1.4.5
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/README.md +3 -1
- package/package.json +2 -2
- package/src/Markdy.astro +9 -0
package/README.md
CHANGED
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
<a href="https://markdy.com/playground/"><img src="https://img.shields.io/badge/⚡_Live_Studio-markdy.com%2Fplayground-3b82f6?style=for-the-badge" alt="Live Studio" /></a>
|
|
5
5
|
<a href="https://markdy.com/docs/"><img src="https://img.shields.io/badge/📖_Docs-Documentation-10b981?style=for-the-badge" alt="Documentation" /></a>
|
|
6
6
|
<a href="https://markdy.com/examples/"><img src="https://img.shields.io/badge/🌟_Blueprints-30+_Examples-f59e0b?style=for-the-badge" alt="Examples" /></a>
|
|
7
|
+
<a href="https://github.com/sponsors/HoangYell"><img src="https://img.shields.io/badge/💖_Sponsor-Support_Markdy-ea4aaa?style=for-the-badge" alt="Sponsor Markdy" /></a>
|
|
7
8
|
</p>
|
|
8
9
|
|
|
9
10
|
[Astro](https://astro.build/) island component for [MarkdyScript](https://markdy.com/docs/) animated scenes. Embed interactive, zero-CLS architecture diagrams directly inside your Astro blogs, docs, and landing pages.
|
|
10
11
|
|
|
11
12
|
> 🚀 **Try it live**: Test MarkdyScript in the browser at **[markdy.com/playground](https://markdy.com/playground/)**
|
|
12
|
-
> 📚 **Documentation**: Complete syntax guide and examples at **[markdy.com/docs](https://markdy.com/docs/)**
|
|
13
|
+
> 📚 **Documentation**: Complete syntax guide and examples at **[markdy.com/docs](https://markdy.com/docs/)**
|
|
14
|
+
> 💼 **Enterprise & Commercial**: Free under MIT. To support development or request custom architecture blueprints, explore **[GitHub Sponsors](https://github.com/sponsors/HoangYell)**.
|
|
13
15
|
|
|
14
16
|
## Features
|
|
15
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markdy/astro",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"description": "Astro island component for diagram-native animated MarkdyScript architecture diagrams.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"registry": "https://registry.npmjs.org"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@markdy/renderer-dom": "1.4.
|
|
42
|
+
"@markdy/renderer-dom": "1.4.5"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"astro": ">=4.0.0"
|
package/src/Markdy.astro
CHANGED
|
@@ -54,6 +54,8 @@ export interface Props {
|
|
|
54
54
|
interactiveViewport?: boolean;
|
|
55
55
|
/** Host controls override: true supplies legacy defaults; false suppresses script controls. */
|
|
56
56
|
controls?: boolean;
|
|
57
|
+
/** Initial fit-all-in-view state. Defaults to true when undeclared. */
|
|
58
|
+
fit?: boolean;
|
|
57
59
|
class?: string;
|
|
58
60
|
/**
|
|
59
61
|
* Short human-readable title for the animation.
|
|
@@ -83,6 +85,7 @@ const {
|
|
|
83
85
|
progressBarColor,
|
|
84
86
|
playbackRate,
|
|
85
87
|
controls,
|
|
88
|
+
fit,
|
|
86
89
|
interactiveViewport,
|
|
87
90
|
class: className,
|
|
88
91
|
title = "Markdy animation",
|
|
@@ -119,6 +122,7 @@ const codeB64 =
|
|
|
119
122
|
data-markdy-playback-rate={playbackRate !== undefined ? String(playbackRate) : undefined}
|
|
120
123
|
data-markdy-interactive-viewport={interactiveViewport !== undefined ? String(interactiveViewport) : undefined}
|
|
121
124
|
data-markdy-controls={controls !== undefined ? String(controls) : undefined}
|
|
125
|
+
data-markdy-fit={fit !== undefined ? String(fit) : undefined}
|
|
122
126
|
role="img"
|
|
123
127
|
aria-label={title}
|
|
124
128
|
aria-busy="true"
|
|
@@ -327,6 +331,10 @@ const codeB64 =
|
|
|
327
331
|
el.dataset.markdyControls !== undefined
|
|
328
332
|
? el.dataset.markdyControls === "true"
|
|
329
333
|
: undefined;
|
|
334
|
+
const fit =
|
|
335
|
+
el.dataset.markdyFit !== undefined
|
|
336
|
+
? el.dataset.markdyFit === "true"
|
|
337
|
+
: undefined;
|
|
330
338
|
const interactiveViewport =
|
|
331
339
|
el.dataset.markdyInteractiveViewport !== undefined
|
|
332
340
|
? el.dataset.markdyInteractiveViewport === "true"
|
|
@@ -352,6 +360,7 @@ const codeB64 =
|
|
|
352
360
|
playbackRate,
|
|
353
361
|
interactiveViewport,
|
|
354
362
|
controls,
|
|
363
|
+
defaultFit: fit,
|
|
355
364
|
});
|
|
356
365
|
|
|
357
366
|
el.dataset.markdyInit = "done";
|