@zenuml/core 4.1.0 → 4.2.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/dist/cli/zenuml.mjs +56 -51
- package/dist/parser/index.cjs +2 -2
- package/dist/parser/index.mjs +525 -573
- package/dist/zenuml.esm.mjs +3798 -3789
- package/dist/zenuml.js +500 -500
- package/package.json +6 -2
- package/types/parser/index.d.ts +9 -2
- package/dist/CNAME.txt +0 -1
- package/dist/cli/zenuml.mjs.map +0 -1
- package/dist/cloud-icons-eHuugVSv.js.map +0 -1
- package/dist/embed-container-demo.html +0 -65
- package/dist/favicon.ico +0 -0
- package/dist/fonts/MS Sans Serif.ttf +0 -0
- package/dist/parser/index.cjs.map +0 -1
- package/dist/parser/index.mjs.map +0 -1
- package/dist/test-chinese.html +0 -202
- package/dist/vendor/codemirror/codemirror.min.css +0 -1
- package/dist/vendor/codemirror/codemirror.min.js +0 -8
- package/dist/vendor/codemirror/material-darker.min.css +0 -1
- package/dist/vendor/highlightjs/github-dark.min.css +0 -7
- package/dist/vendor/tailwindcss/tailwindcss.js +0 -83
- package/dist/vite.svg +0 -1
- package/dist/zenuml.esm.mjs.map +0 -1
- package/dist/zenuml.js.map +0 -1
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
-
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
7
|
-
<title>ZenUML</title>
|
|
8
|
-
<link
|
|
9
|
-
rel="stylesheet"
|
|
10
|
-
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/default.min.css"
|
|
11
|
-
crossorigin="anonymous"
|
|
12
|
-
/>
|
|
13
|
-
<script src="https://cdn.jsdelivr.net/npm/codemirror@5.65.1/lib/codemirror.min.js"></script>
|
|
14
|
-
<link
|
|
15
|
-
rel="stylesheet"
|
|
16
|
-
href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.1/codemirror.min.css"
|
|
17
|
-
crossorigin="anonymous"
|
|
18
|
-
integrity="sha512-uf06llspW44/LZpHzHT6qBOIVODjWtv4MxCricRxkzvopAlSWnTf6hpZTFxuuZcuNE9CBQhqE0Seu1CoRk84nQ=="
|
|
19
|
-
crossorigin="anonymous"
|
|
20
|
-
referrerpolicy="no-referrer"
|
|
21
|
-
/>
|
|
22
|
-
<script src="https://cdn.tailwindcss.com"></script>
|
|
23
|
-
<style>
|
|
24
|
-
.container-iframe {
|
|
25
|
-
overflow-y: scroll;
|
|
26
|
-
scrollbar-width: none; /* Firefox */
|
|
27
|
-
-ms-overflow-style: none; /* Internet Explorer 10+ */
|
|
28
|
-
}
|
|
29
|
-
.container-iframe::-webkit-scrollbar {
|
|
30
|
-
/* WebKit */
|
|
31
|
-
width: 0;
|
|
32
|
-
height: 0;
|
|
33
|
-
}
|
|
34
|
-
.CodeMirror {
|
|
35
|
-
height: 100%;
|
|
36
|
-
}
|
|
37
|
-
</style>
|
|
38
|
-
</head>
|
|
39
|
-
<body class="h-screen">
|
|
40
|
-
<div class="m-1 flex h-full w-full" id="diagram1">
|
|
41
|
-
<div class="editor w-96 h-full shrink-0">
|
|
42
|
-
<textarea id="text" class="col-span-1 m-1 border-2" cols="30" rows="200"></textarea>
|
|
43
|
-
</div>
|
|
44
|
-
<div class="viewer grow bg-gray-50">
|
|
45
|
-
<iframe
|
|
46
|
-
id="embed"
|
|
47
|
-
src="embed.html"
|
|
48
|
-
class="container-iframe"
|
|
49
|
-
scrolling="no"
|
|
50
|
-
style="width: 100%; height: 100%; border: none"
|
|
51
|
-
>
|
|
52
|
-
</iframe>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
<script>
|
|
56
|
-
const editor = CodeMirror.fromTextArea(document.getElementById('text'), {
|
|
57
|
-
lineNumbers: true,
|
|
58
|
-
});
|
|
59
|
-
editor.on('change', function (cm) {
|
|
60
|
-
const iframe = document.getElementById('embed');
|
|
61
|
-
iframe.contentWindow.postMessage({ action: 'eval', args: { code: cm.getValue() } }, '*');
|
|
62
|
-
});
|
|
63
|
-
</script>
|
|
64
|
-
</body>
|
|
65
|
-
</html>
|
package/dist/favicon.ico
DELETED
|
Binary file
|
|
Binary file
|