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"
|
click B "http://www.github.com" "This is a link"
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="mermaid" style="width: 50%; height: 20%;">
|
<div class="mermaid2" style="width: 50%; height: 20%;">
|
||||||
flowchart TD
|
flowchart TD
|
||||||
A[Christmas] -->|Get money| B(Go shopping)
|
A[Christmas] -->|Get money| B(Go shopping)
|
||||||
B --> C{Let me think}
|
B --> C{Let me think}
|
||||||
@ -72,8 +72,8 @@ flowchart TD
|
|||||||
State4 --> [*]
|
State4 --> [*]
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div class="mermaid2 mermaid-apa" style="width: 100%; height: 20%;">
|
<div class="mermaid mermaid-apa" style="width: 100%; height: 20%;">
|
||||||
stateDiagram
|
stateDiagram-v2
|
||||||
[*] --> Still
|
[*] --> Still
|
||||||
Still --> [*]
|
Still --> [*]
|
||||||
</div>
|
</div>
|
||||||
|
@ -380,7 +380,7 @@ const circle = (parent, node) => {
|
|||||||
updateNodeBounds(node, circle);
|
updateNodeBounds(node, circle);
|
||||||
|
|
||||||
node.intersect = function(point) {
|
node.intersect = function(point) {
|
||||||
return intersect.circle(node, point);
|
return intersect.circle(node, node.rx, point);
|
||||||
};
|
};
|
||||||
|
|
||||||
return shapeSvg;
|
return shapeSvg;
|
||||||
@ -430,7 +430,7 @@ const start = (parent, node) => {
|
|||||||
updateNodeBounds(node, circle);
|
updateNodeBounds(node, circle);
|
||||||
|
|
||||||
node.intersect = function(point) {
|
node.intersect = function(point) {
|
||||||
return intersect.circle(node, point);
|
return intersect.circle(node, 7, point);
|
||||||
};
|
};
|
||||||
|
|
||||||
return shapeSvg;
|
return shapeSvg;
|
||||||
@ -493,7 +493,7 @@ const end = (parent, node) => {
|
|||||||
updateNodeBounds(node, circle);
|
updateNodeBounds(node, circle);
|
||||||
|
|
||||||
node.intersect = function(point) {
|
node.intersect = function(point) {
|
||||||
return intersect.circle(node, point);
|
return intersect.circle(node, 7, point);
|
||||||
};
|
};
|
||||||
|
|
||||||
return shapeSvg;
|
return shapeSvg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user