Initial commit
This commit is contained in:
@@ -0,0 +1,264 @@
|
||||
<!-- FLOWCHART COMPONENTS LIBRARY -->
|
||||
<!-- Copy and customize these SVG patterns for process flow diagrams -->
|
||||
|
||||
<svg viewBox="0 0 1200 800" style="width: 100%; height: auto;">
|
||||
|
||||
<!-- ===== ARROW MARKER DEFINITIONS ===== -->
|
||||
<!-- Always include in <defs> section -->
|
||||
<defs>
|
||||
<!-- Standard arrow -->
|
||||
<marker id="arrowhead" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
|
||||
<polygon points="0 0, 10 3, 0 6" fill="#2d3748"/>
|
||||
</marker>
|
||||
|
||||
<!-- Colored arrows for different paths -->
|
||||
<marker id="arrowhead-success" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
|
||||
<polygon points="0 0, 10 3, 0 6" fill="#48bb78"/>
|
||||
</marker>
|
||||
|
||||
<marker id="arrowhead-error" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
|
||||
<polygon points="0 0, 10 3, 0 6" fill="#f56565"/>
|
||||
</marker>
|
||||
|
||||
<marker id="arrowhead-warning" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
|
||||
<polygon points="0 0, 10 3, 0 6" fill="#f59e0b"/>
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<!-- ===== BASIC SHAPES ===== -->
|
||||
|
||||
<!-- Rounded Rectangle (Process Box) -->
|
||||
<rect x="50" y="50" width="200" height="100" rx="10"
|
||||
fill="#4299e1" stroke="#2b6cb0" stroke-width="3"/>
|
||||
<text x="150" y="95" text-anchor="middle" fill="white" font-size="16" font-weight="bold">
|
||||
Process Step
|
||||
</text>
|
||||
<text x="150" y="115" text-anchor="middle" fill="white" font-size="12">
|
||||
Subtitle or detail
|
||||
</text>
|
||||
|
||||
<!-- Circle (Start/End Node) -->
|
||||
<circle cx="400" cy="100" r="50"
|
||||
fill="#48bb78" stroke="#2f855a" stroke-width="3" opacity="0.9"/>
|
||||
<text x="400" y="105" text-anchor="middle" fill="white" font-size="16" font-weight="bold">
|
||||
START
|
||||
</text>
|
||||
|
||||
<!-- Diamond (Decision Node) -->
|
||||
<path d="M 600 50 L 700 50 L 750 100 L 700 150 L 500 150 L 450 100 Z"
|
||||
fill="#fbbf24" stroke="#d97706" stroke-width="3"/>
|
||||
<text x="600" y="95" text-anchor="middle" font-size="14" font-weight="bold">
|
||||
Decision?
|
||||
</text>
|
||||
<text x="600" y="115" text-anchor="middle" font-size="11">
|
||||
Yes/No
|
||||
</text>
|
||||
|
||||
<!-- Hexagon (Preparation/Setup) -->
|
||||
<path d="M 900 75 L 1050 75 L 1100 100 L 1050 125 L 900 125 L 850 100 Z"
|
||||
fill="#9f7aea" stroke="#6b46c1" stroke-width="3"/>
|
||||
<text x="975" y="105" text-anchor="middle" fill="white" font-size="14" font-weight="bold">
|
||||
Setup/Config
|
||||
</text>
|
||||
|
||||
<!-- ===== ARROWS & CONNECTORS ===== -->
|
||||
|
||||
<!-- Straight arrow (horizontal) -->
|
||||
<path d="M 250 100 L 350 100" stroke="#2d3748" stroke-width="3"
|
||||
marker-end="url(#arrowhead)"/>
|
||||
|
||||
<!-- Straight arrow (vertical) -->
|
||||
<path d="M 600 150 L 600 220" stroke="#2d3748" stroke-width="3"
|
||||
marker-end="url(#arrowhead)"/>
|
||||
|
||||
<!-- L-shaped connector -->
|
||||
<path d="M 750 100 L 850 100 L 850 200 L 950 200" stroke="#2d3748" stroke-width="3"
|
||||
fill="none" marker-end="url(#arrowhead)"/>
|
||||
|
||||
<!-- Curved connector (bezier) -->
|
||||
<path d="M 150 150 Q 150 250 300 250" stroke="#2d3748" stroke-width="3"
|
||||
fill="none" marker-end="url(#arrowhead)"/>
|
||||
|
||||
<!-- Dashed line (optional/uncertain path) -->
|
||||
<path d="M 400 150 L 400 250" stroke="#cbd5e0" stroke-width="2"
|
||||
stroke-dasharray="5,5" marker-end="url(#arrowhead)"/>
|
||||
|
||||
<!-- ===== LABELS ON ARROWS ===== -->
|
||||
|
||||
<!-- YES/NO labels for decision branches -->
|
||||
<text x="770" y="90" text-anchor="middle" fill="#2d3748" font-weight="bold" font-size="13">
|
||||
YES
|
||||
</text>
|
||||
<text x="420" y="140" text-anchor="middle" fill="#2d3748" font-weight="bold" font-size="13">
|
||||
NO
|
||||
</text>
|
||||
|
||||
<!-- ===== STATUS BOXES ===== -->
|
||||
|
||||
<!-- Success status -->
|
||||
<g id="success-box">
|
||||
<rect x="100" y="300" width="180" height="100" rx="10"
|
||||
fill="#48bb78" stroke="#2f855a" stroke-width="3"/>
|
||||
<text x="190" y="335" text-anchor="middle" fill="white" font-size="15" font-weight="bold">
|
||||
✓ SUCCESS
|
||||
</text>
|
||||
<text x="190" y="360" text-anchor="middle" fill="white" font-size="12">
|
||||
Operation Complete
|
||||
</text>
|
||||
<text x="190" y="380" text-anchor="middle" fill="white" font-size="11">
|
||||
Additional details
|
||||
</text>
|
||||
</g>
|
||||
|
||||
<!-- Error status -->
|
||||
<g id="error-box">
|
||||
<rect x="350" y="300" width="180" height="100" rx="10"
|
||||
fill="#f56565" stroke="#c53030" stroke-width="3"/>
|
||||
<text x="440" y="335" text-anchor="middle" fill="white" font-size="15" font-weight="bold">
|
||||
✗ ERROR
|
||||
</text>
|
||||
<text x="440" y="360" text-anchor="middle" fill="white" font-size="12">
|
||||
Operation Failed
|
||||
</text>
|
||||
<text x="440" y="380" text-anchor="middle" fill="white" font-size="11">
|
||||
Error details
|
||||
</text>
|
||||
</g>
|
||||
|
||||
<!-- Warning/Uncertain status -->
|
||||
<g id="warning-box">
|
||||
<rect x="600" y="300" width="180" height="100" rx="10"
|
||||
fill="#f59e0b" stroke="#d97706" stroke-width="3"/>
|
||||
<text x="690" y="335" text-anchor="middle" fill="white" font-size="15" font-weight="bold">
|
||||
⚠ WARNING
|
||||
</text>
|
||||
<text x="690" y="360" text-anchor="middle" fill="white" font-size="12">
|
||||
Needs Attention
|
||||
</text>
|
||||
<text x="690" y="380" text-anchor="middle" fill="white" font-size="11">
|
||||
Warning details
|
||||
</text>
|
||||
</g>
|
||||
|
||||
<!-- In-Progress status -->
|
||||
<g id="progress-box">
|
||||
<rect x="850" y="300" width="180" height="100" rx="10"
|
||||
fill="#ed8936" stroke="#c05621" stroke-width="3"/>
|
||||
<text x="940" y="335" text-anchor="middle" fill="white" font-size="15" font-weight="bold">
|
||||
⟳ IN PROGRESS
|
||||
</text>
|
||||
<text x="940" y="360" text-anchor="middle" fill="white" font-size="12">
|
||||
Processing...
|
||||
</text>
|
||||
<text x="940" y="380" text-anchor="middle" fill="white" font-size="11">
|
||||
Status details
|
||||
</text>
|
||||
</g>
|
||||
|
||||
<!-- ===== SWIMLANES ===== -->
|
||||
|
||||
<!-- Background rectangles for different process areas -->
|
||||
<rect x="50" y="450" width="350" height="300" rx="10"
|
||||
fill="#e6f2ff" stroke="#4299e1" stroke-width="2" opacity="0.3"/>
|
||||
<text x="225" y="480" text-anchor="middle" font-size="16" font-weight="bold" fill="#2d3748">
|
||||
Swimlane 1: Frontend
|
||||
</text>
|
||||
|
||||
<rect x="450" y="450" width="350" height="300" rx="10"
|
||||
fill="#e6ffe6" stroke="#48bb78" stroke-width="2" opacity="0.3"/>
|
||||
<text x="625" y="480" text-anchor="middle" font-size="16" font-weight="bold" fill="#2d3748">
|
||||
Swimlane 2: Backend
|
||||
</text>
|
||||
|
||||
<rect x="850" y="450" width="300" height="300" rx="10"
|
||||
fill="#fff5e6" stroke="#f59e0b" stroke-width="2" opacity="0.3"/>
|
||||
<text x="1000" y="480" text-anchor="middle" font-size="16" font-weight="bold" fill="#2d3748">
|
||||
Swimlane 3: Database
|
||||
</text>
|
||||
|
||||
<!-- ===== GROUPINGS ===== -->
|
||||
|
||||
<!-- Dashed box for related items -->
|
||||
<rect x="100" y="500" width="250" height="150" rx="8"
|
||||
fill="none" stroke="#9f7aea" stroke-width="2" stroke-dasharray="8,4"/>
|
||||
<text x="225" y="525" text-anchor="middle" font-size="13" fill="#6b46c1" font-weight="bold">
|
||||
Related Process Group
|
||||
</text>
|
||||
|
||||
<!-- Small process boxes within swimlane -->
|
||||
<rect x="120" y="540" width="100" height="60" rx="8"
|
||||
fill="#4299e1" stroke="#2b6cb0" stroke-width="2"/>
|
||||
<text x="170" y="575" text-anchor="middle" fill="white" font-size="12">
|
||||
Sub-process
|
||||
</text>
|
||||
|
||||
<rect x="230" y="540" width="100" height="60" rx="8"
|
||||
fill="#4299e1" stroke="#2b6cb0" stroke-width="2"/>
|
||||
<text x="280" y="575" text-anchor="middle" fill="white" font-size="12">
|
||||
Sub-process
|
||||
</text>
|
||||
|
||||
<path d="M 220 570 L 230 570" stroke="#2d3748" stroke-width="2"
|
||||
marker-end="url(#arrowhead)"/>
|
||||
|
||||
<!-- ===== NOTES/ANNOTATIONS ===== -->
|
||||
|
||||
<!-- Callout box with line -->
|
||||
<rect x="900" y="550" width="150" height="80" rx="5"
|
||||
fill="#fff" stroke="#cbd5e0" stroke-width="2"/>
|
||||
<text x="975" y="575" text-anchor="middle" font-size="11" fill="#4a5568">
|
||||
Note: This is an
|
||||
</text>
|
||||
<text x="975" y="595" text-anchor="middle" font-size="11" fill="#4a5568">
|
||||
annotation or
|
||||
</text>
|
||||
<text x="975" y="615" text-anchor="middle" font-size="11" fill="#4a5568">
|
||||
additional detail
|
||||
</text>
|
||||
|
||||
<!-- Leader line from callout to target -->
|
||||
<path d="M 900 590 L 850 590" stroke="#cbd5e0" stroke-width="1"
|
||||
stroke-dasharray="3,3"/>
|
||||
|
||||
</svg>
|
||||
|
||||
<!-- ===== USAGE EXAMPLES ===== -->
|
||||
|
||||
<!--
|
||||
SIMPLE LINEAR FLOW:
|
||||
Start → Process → Decision → (Yes → Success) or (No → Error)
|
||||
|
||||
<svg viewBox="0 0 1200 400">
|
||||
<defs>
|
||||
<marker id="arrowhead" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto">
|
||||
<polygon points="0 0, 10 3, 0 6" fill="#2d3748"/>
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<circle cx="150" cy="200" r="50" fill="#48bb78" stroke="#2f855a" stroke-width="3"/>
|
||||
<text x="150" y="205" text-anchor="middle" fill="white" font-weight="bold">START</text>
|
||||
|
||||
<path d="M 200 200 L 300 200" stroke="#2d3748" stroke-width="3" marker-end="url(#arrowhead)"/>
|
||||
|
||||
<rect x="300" y="150" width="200" height="100" rx="10" fill="#4299e1" stroke="#2b6cb0" stroke-width="3"/>
|
||||
<text x="400" y="205" text-anchor="middle" fill="white" font-weight="bold">Process Step</text>
|
||||
|
||||
<path d="M 500 200 L 600 200" stroke="#2d3748" stroke-width="3" marker-end="url(#arrowhead)"/>
|
||||
|
||||
<path d="M 700 150 L 800 150 L 850 200 L 800 250 L 600 250 L 550 200 Z"
|
||||
fill="#fbbf24" stroke="#d97706" stroke-width="3"/>
|
||||
<text x="700" y="205" text-anchor="middle" font-weight="bold">Decision?</text>
|
||||
|
||||
<path d="M 850 200 L 950 200" stroke="#2d3748" stroke-width="3" marker-end="url(#arrowhead)"/>
|
||||
<text x="895" y="190" text-anchor="middle" fill="#2d3748" font-weight="bold">YES</text>
|
||||
|
||||
<rect x="950" y="170" width="150" height="60" rx="10" fill="#48bb78" stroke="#2f855a" stroke-width="3"/>
|
||||
<text x="1025" y="205" text-anchor="middle" fill="white" font-weight="bold">SUCCESS</text>
|
||||
|
||||
<path d="M 700 250 L 700 320 L 1000 320" stroke="#f56565" stroke-width="3" marker-end="url(#arrowhead)"/>
|
||||
<text x="720" y="290" text-anchor="start" fill="#2d3748" font-weight="bold">NO</text>
|
||||
|
||||
<rect x="1000" y="290" width="150" height="60" rx="10" fill="#f56565" stroke="#c53030" stroke-width="3"/>
|
||||
<text x="1075" y="325" text-anchor="middle" fill="white" font-weight="bold">ERROR</text>
|
||||
</svg>
|
||||
-->
|
||||
|
After Width: | Height: | Size: 10 KiB |
Reference in New Issue
Block a user