mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-03 23:56:44 +02:00
fixup! fixup! Move pie outerStrokeWidth to theme variables, update docs
This commit is contained in:
@@ -75,23 +75,6 @@ describe('Pie Chart', () => {
|
|||||||
expect(svg).to.not.have.attr('style');
|
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', () => {
|
it('should render a pie diagram when textPosition is set', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`
|
`
|
||||||
|
Reference in New Issue
Block a user