mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Fix for intersect issues for start/end state
This commit is contained in:
parent
45e9988700
commit
9da027cf74
@ -46,7 +46,7 @@ flowchart LR
|
||||
click B "http://www.github.com" "This is a link"
|
||||
|
||||
</div>
|
||||
<div class="mermaid" style="width: 50%; height: 20%;">
|
||||
<div class="mermaid2" style="width: 50%; height: 20%;">
|
||||
flowchart TD
|
||||
A[Christmas] -->|Get money| B(Go shopping)
|
||||
B --> C{Let me think}
|
||||
@ -72,8 +72,8 @@ flowchart TD
|
||||
State4 --> [*]
|
||||
}
|
||||
</div>
|
||||
<div class="mermaid2 mermaid-apa" style="width: 100%; height: 20%;">
|
||||
stateDiagram
|
||||
<div class="mermaid mermaid-apa" style="width: 100%; height: 20%;">
|
||||
stateDiagram-v2
|
||||
[*] --> Still
|
||||
Still --> [*]
|
||||
</div>
|
||||
|
@ -380,7 +380,7 @@ const circle = (parent, node) => {
|
||||
updateNodeBounds(node, circle);
|
||||
|
||||
node.intersect = function(point) {
|
||||
return intersect.circle(node, point);
|
||||
return intersect.circle(node, node.rx, point);
|
||||
};
|
||||
|
||||
return shapeSvg;
|
||||
@ -430,7 +430,7 @@ const start = (parent, node) => {
|
||||
updateNodeBounds(node, circle);
|
||||
|
||||
node.intersect = function(point) {
|
||||
return intersect.circle(node, point);
|
||||
return intersect.circle(node, 7, point);
|
||||
};
|
||||
|
||||
return shapeSvg;
|
||||
@ -493,7 +493,7 @@ const end = (parent, node) => {
|
||||
updateNodeBounds(node, circle);
|
||||
|
||||
node.intersect = function(point) {
|
||||
return intersect.circle(node, point);
|
||||
return intersect.circle(node, 7, point);
|
||||
};
|
||||
|
||||
return shapeSvg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user