This commit is contained in:
nik
2025-10-03 22:27:28 +03:00
parent 829fad0e17
commit 871cf7e792
16520 changed files with 2967597 additions and 3 deletions

View File

@@ -0,0 +1,42 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Integration ZenUML Library with Vanilla JavaScript</title>
<script>
window.process = { env: "production" };
</script>
<script src="https://www.unpkg.com/@zenuml/core/dist/zenuml.js"></script>
</head>
<body class="zenuml">
<div id="app"></div>
<script>
const ZenUml = window["zenuml"].default;
const zenuml = new ZenUml(document.getElementById("app"));
const code = `
A B C D
A->B.method() {
ret0_assign_rtl =C.method_long_to_give_space {
@return C->D: ret1_annotation_ltr
ret5_assign_ltr = B.method
if(x) {
ret0_assign_rtl =C.method_long_to_give_space {
@return C->D: ret1_annotation_ltr
ret5_assign_ltr = B.method
}
}
B.method2 {
return ret2_return_ltr
}
}
return ret2_return_rtl
@return B->A: ret4_annotation_rtl
}
`;
zenuml.render(code, { theme: "theme-blue" });
</script>
</body>
</html>