mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-24 20:51:53 +02:00
45 lines
2.3 KiB
TypeScript
45 lines
2.3 KiB
TypeScript
|
/**
|
||
|
* This is a mocked/stubbed version of the d3 Selection type. Each of the main functions are all
|
||
|
* mocked (via vi.fn()) so you can track if they have been called, etc.
|
||
|
*
|
||
|
* Note that node() returns a HTML Element with tag 'svg'. It is an empty element (no innerHTML, no children, etc).
|
||
|
* This potentially allows testing of mermaidAPI render().
|
||
|
*/
|
||
|
export declare class MockedD3 {
|
||
|
attribs: Map<string, string | null>;
|
||
|
id: string | undefined;
|
||
|
_children: MockedD3[];
|
||
|
_containingHTMLdoc: Document;
|
||
|
constructor(givenId?: string);
|
||
|
/** Helpful utility during development/debugging. This is not a real d3 function */
|
||
|
listChildren(): string;
|
||
|
select: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
selectAll: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
append: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
insert: (type: string, beforeSelector?: string, id?: string) => MockedD3;
|
||
|
attr(attrName: string): null | undefined | string | number;
|
||
|
lower(attrValue?: string): this;
|
||
|
style(attrValue?: string): this;
|
||
|
text(attrValue?: string): this;
|
||
|
node: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
nodes: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
getBBox: () => {
|
||
|
x: string | number | null | undefined;
|
||
|
y: string | number | null | undefined;
|
||
|
width: string | number | null | undefined;
|
||
|
height: string | number | null | undefined;
|
||
|
};
|
||
|
insertBefore: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
curveBasis: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
curveBasisClosed: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
curveBasisOpen: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
curveLinear: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
curveLinearClosed: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
curveMonotoneX: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
curveMonotoneY: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
curveNatural: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
curveStep: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
curveStepAfter: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
curveStepBefore: import("vitest/dist/index-9f5bc072").x<any[], any>;
|
||
|
}
|