Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change stroke color black -> fuchsia #46

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28899,7 +28899,7 @@ function generateClassDefStatements() {
default:
throw "unnexpected style";
}
statements.push(`classDef ${color}${style} color:white,stroke:black,fill:${color},${stroke.join(",")}`);
statements.push(`classDef ${color}${style} color:white,stroke:fuchsia,fill:${color},${stroke.join(",")}`);
}
}
return statements;
Expand Down
18 changes: 9 additions & 9 deletions src/flowchart.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const classDefStatements = generateClassDefStatements().join(";\n ") + ";";
describe("generateClassDefStatement", () => {
test("generateClassDefStatement", () => {
expect(generateClassDefStatements()).toStrictEqual([
"classDef greenNormal color:white,stroke:black,fill:green,stroke-width:0px",
"classDef greenBold color:white,stroke:black,fill:green,stroke-width:4px",
"classDef greenDash color:white,stroke:black,fill:green,stroke-width:4px,stroke-dasharray: 5 5",
"classDef blueNormal color:white,stroke:black,fill:blue,stroke-width:0px",
"classDef blueBold color:white,stroke:black,fill:blue,stroke-width:4px",
"classDef blueDash color:white,stroke:black,fill:blue,stroke-width:4px,stroke-dasharray: 5 5",
"classDef orangeNormal color:white,stroke:black,fill:orange,stroke-width:0px",
"classDef orangeBold color:white,stroke:black,fill:orange,stroke-width:4px",
"classDef orangeDash color:white,stroke:black,fill:orange,stroke-width:4px,stroke-dasharray: 5 5",
"classDef greenNormal color:white,stroke:fuchsia,fill:green,stroke-width:0px",
"classDef greenBold color:white,stroke:fuchsia,fill:green,stroke-width:4px",
"classDef greenDash color:white,stroke:fuchsia,fill:green,stroke-width:4px,stroke-dasharray: 5 5",
"classDef blueNormal color:white,stroke:fuchsia,fill:blue,stroke-width:0px",
"classDef blueBold color:white,stroke:fuchsia,fill:blue,stroke-width:4px",
"classDef blueDash color:white,stroke:fuchsia,fill:blue,stroke-width:4px,stroke-dasharray: 5 5",
"classDef orangeNormal color:white,stroke:fuchsia,fill:orange,stroke-width:0px",
"classDef orangeBold color:white,stroke:fuchsia,fill:orange,stroke-width:4px",
"classDef orangeDash color:white,stroke:fuchsia,fill:orange,stroke-width:4px,stroke-dasharray: 5 5",
]);
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/flowchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function generateClassDefStatements() {
throw "unnexpected style";
}
statements.push(
`classDef ${color}${style} color:white,stroke:black,fill:${color},${stroke.join(",")}`,
`classDef ${color}${style} color:white,stroke:fuchsia,fill:${color},${stroke.join(",")}`,
);
}
}
Expand Down