mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Fixed issue with intersection calculations for linedCylinder
This commit is contained in:
parent
69bec16080
commit
5d3a175ed6
@ -97,7 +97,7 @@ export const linedCylinder = async (parent: SVGAElement, node: Node) => {
|
||||
Math.abs(pos.y - (node.y ?? 0)) > (node.height ?? 0) / 2 - ry))
|
||||
) {
|
||||
let y = ry * ry * (1 - (x * x) / (rx * rx));
|
||||
if (y != 0) {
|
||||
if (y > 0) {
|
||||
y = Math.sqrt(y);
|
||||
}
|
||||
y = ry - y;
|
||||
|
Loading…
x
Reference in New Issue
Block a user