Fix for intersect issues for start/end state

This commit is contained in:
Knut Sveidqvist 2020-05-17 09:34:56 +02:00
parent 45e9988700
commit 9da027cf74
2 changed files with 6 additions and 6 deletions

View File

@ -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>

View File

@ -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;