diff --git a/packages/mermaid/src/config.type.ts b/packages/mermaid/src/config.type.ts index 76d883367..867c66327 100644 --- a/packages/mermaid/src/config.type.ts +++ b/packages/mermaid/src/config.type.ts @@ -173,7 +173,6 @@ export interface MermaidConfig { * via the `definition` "BlockDiagramConfig". */ export interface BlockDiagramConfig extends BaseDiagramConfig { - useMaxWidth?: boolean; padding?: number; } /** diff --git a/packages/mermaid/src/diagrams/block/layout.spec.ts b/packages/mermaid/src/diagrams/block/layout.spec.ts index 6c77c8fd1..e704920ca 100644 --- a/packages/mermaid/src/diagrams/block/layout.spec.ts +++ b/packages/mermaid/src/diagrams/block/layout.spec.ts @@ -1,8 +1,7 @@ -// @ts-ignore: jison doesn't export types import { calculateBlockPosition } from './layout.js'; describe('Layout', function () { - it('It shoud calulatepositions correctly', () => { + it('should calculate position correctly', () => { expect(calculateBlockPosition(2, 0)).toEqual({ px: 0, py: 0 }); expect(calculateBlockPosition(2, 1)).toEqual({ px: 1, py: 0 }); expect(calculateBlockPosition(2, 2)).toEqual({ px: 0, py: 1 });