#3358 Third set of changes after review

This commit is contained in:
Knut Sveidqvist
2024-01-29 17:32:27 +01:00
parent 5aab2ba1dd
commit bfa8111e14
2 changed files with 1 additions and 3 deletions

View File

@@ -173,7 +173,6 @@ export interface MermaidConfig {
* via the `definition` "BlockDiagramConfig".
*/
export interface BlockDiagramConfig extends BaseDiagramConfig {
useMaxWidth?: boolean;
padding?: number;
}
/**

View File

@@ -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 });