@diagrammo/dgmo-standalone 0.76.0 → 0.78.0
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 +10 -11
- package/dist/auto.css +1 -1
- package/dist/auto.js +142 -142
- package/dist/element.js +143 -143
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,12 +8,9 @@ paste a script tag into a page you already have.
|
|
|
8
8
|
```html
|
|
9
9
|
<script src="https://cdn.jsdelivr.net/npm/@diagrammo/dgmo-standalone/dist/element.js"></script>
|
|
10
10
|
|
|
11
|
-
<dgmo-diagram palette="slate"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Hardtack: 28
|
|
15
|
-
Rum: 17
|
|
16
|
-
Limes: 21</dgmo-diagram>
|
|
11
|
+
<dgmo-diagram palette="slate"
|
|
12
|
+
>pie Crew Rations Salt Pork: 34 Hardtack: 28 Rum: 17 Limes: 21</dgmo-diagram
|
|
13
|
+
>
|
|
17
14
|
```
|
|
18
15
|
|
|
19
16
|
That is the whole install.
|
|
@@ -24,17 +21,19 @@ That is the whole install.
|
|
|
24
21
|
markup — use it when you control the HTML.
|
|
25
22
|
|
|
26
23
|
**`auto.js`** scans the page for `<pre class="dgmo">` blocks and draws them —
|
|
27
|
-
use it when you
|
|
28
|
-
a CMS, or a static-site generator emitting
|
|
24
|
+
use it when you _don't_ control the HTML, which is the usual case with markdown,
|
|
25
|
+
a CMS, or a static-site generator emitting ` ```dgmo ` fences.
|
|
29
26
|
|
|
30
27
|
```html
|
|
31
28
|
<script src="https://cdn.jsdelivr.net/npm/@diagrammo/dgmo-standalone/dist/auto.js"></script>
|
|
32
29
|
|
|
33
|
-
<pre class="dgmo">
|
|
30
|
+
<pre class="dgmo">
|
|
31
|
+
bar Ship Stores
|
|
34
32
|
|
|
35
33
|
Salt Pork 34
|
|
36
34
|
Hardtack 28
|
|
37
|
-
Rum 17</pre
|
|
35
|
+
Rum 17</pre
|
|
36
|
+
>
|
|
38
37
|
```
|
|
39
38
|
|
|
40
39
|
Load one or the other, not both — each carries a complete copy of the renderer.
|
|
@@ -67,7 +66,7 @@ with no map downloads no map data.
|
|
|
67
66
|
|
|
68
67
|
## Watching a diagram somebody showed you
|
|
69
68
|
|
|
70
|
-
If someone published a diagram at Diagrammo —
|
|
69
|
+
If someone published a diagram at Diagrammo — _showed it on the web_ — you can
|
|
71
70
|
watch it from any page, and every reader gets the version its author has now:
|
|
72
71
|
|
|
73
72
|
```html
|