mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
fixup! fixup! Move pie outerStrokeWidth to theme variables, update docs
This commit is contained in:
parent
c3064f396c
commit
8810b378b3
@ -75,23 +75,6 @@ describe('Pie Chart', () => {
|
||||
expect(svg).to.not.have.attr('style');
|
||||
});
|
||||
});
|
||||
|
||||
it('should render a pie diagram with given outside stroke width', () => {
|
||||
renderGraph(
|
||||
`
|
||||
pie title Sports in Sweden
|
||||
"Bandy" : 40
|
||||
"Ice-Hockey" : 80
|
||||
"Football" : 90
|
||||
`,
|
||||
{ theme: 'base', themeVariables: { pieOuterStrokeWidth: '5px' } }
|
||||
);
|
||||
cy.get('.pieOuterCircle').should((circle) => {
|
||||
const strokeWidth = parseFloat(circle.attr('stroke-width'));
|
||||
expect(strokeWidth).to.eq(5);
|
||||
});
|
||||
});
|
||||
|
||||
it('should render a pie diagram when textPosition is set', () => {
|
||||
imgSnapshotTest(
|
||||
`
|
||||
|
Loading…
x
Reference in New Issue
Block a user