three实现三维立体流程图图表代码
代码语言:html
所属分类:图表
代码描述:three实现三维立体流程图图表代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
:root {
--stadium-fill: #d8c5e8;
--stadium-text: #581c87;
--diam-fill: #fef3c7;
--diam-text: #78350f;
--rect-fill: #dbeafe;
--rect-text: #1e3a5f;
--line-color: #aec4e8;
--arrow-color: #ffffff;
--scene-background: #2f2925;
--ground-fill: #443a33;
--ground-grid: #6a5b50;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
background: #f8f5ef;
font-family: "Roboto", sans-serif;
font-optical-sizing: auto;
overflow: hidden;
}
.hud {
position: fixed;
top: 20px;
left: 20px;
z-index: 10;
color: #ffffff;
pointer-events: none;
}
.eyebrow {
margin-bottom: 4px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.18em;
opacity: 0.72;
}
.hud h1 {
margin: 0;
font-size: clamp(24px, 3vw, 36px);
font-weight: 700;
line-height: 1;
color: inherit;
}
.hud p {
margin: 9px 0 0;
font-size: 12px;
font-weight: 400;
opacity: 0.72;
color: inherit;
}
#viewToggle {
margin-top: 14px;
padding: 9px 16px;
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 6px;
background: rgba(255, 255, 255, 0.12);
color: #ffffff;
font: inherit;
font-size: 12px;
font-weight: 400;
cursor: pointer;
pointer-events: auto;
transition:
background 0.2s,
border-color 0.2s;
}
#viewToggle:hover {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.55);
}
body.show-mermaid .hud {
color: #1f2937;
}
body.show-mermaid #viewToggle {
border-color: #d1d5db;
background: #f3f4f6;
color: #1f2937;
}
body.show-mermaid #viewToggle:hover {
background: #e5e7eb;
}
body.show-mermaid #scene {
visibility: hidden;
}
#mermaidDiagram {
position: fixed;
top: 50%;
left: 50%;
width: 1400px;
max-width: calc(100vw - 40px);
max-height: calc(100vh - 40px);
margin: 0;
overflow: auto;
visibility: hidden;
pointer-events: none;
transform: translate(-50%, -50%);
}
#mermaidDiagram svg {
max-width: none !important;
}
body.show-mermaid #mermaidDiagram {
visibility: visible;
pointer-events: auto;
}
</style>
<link rel="preconnect" href="https://fonts.googleapis..........完整代码请登录后点击上方下载按钮下载查看















网友评论0