This commit is contained in:
parent
4b35583782
commit
e77051ccc4
1987 changed files with 1147290 additions and 5648 deletions
32
themes/blowfish/assets/lib/mermaid/utils/imperativeState.d.ts
vendored
Normal file
32
themes/blowfish/assets/lib/mermaid/utils/imperativeState.d.ts
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
/**
|
||||
* Resettable state storage.
|
||||
* @example
|
||||
* ```
|
||||
* const state = new ImperativeState(() => {
|
||||
* foo: undefined as string | undefined,
|
||||
* bar: [] as number[],
|
||||
* baz: 1 as number | undefined,
|
||||
* });
|
||||
*
|
||||
* state.records.foo = "hi";
|
||||
* console.log(state.records.foo); // prints "hi";
|
||||
* state.reset();
|
||||
* console.log(state.records.foo); // prints "default";
|
||||
*
|
||||
* // typeof state.records:
|
||||
* // {
|
||||
* // foo: string | undefined, // actual: undefined
|
||||
* // bar: number[], // actual: []
|
||||
* // baz: number | undefined, // actual: 1
|
||||
* // }
|
||||
* ```
|
||||
*/
|
||||
export declare class ImperativeState<S extends Record<string, unknown>> {
|
||||
private init;
|
||||
records: S;
|
||||
/**
|
||||
* @param init - Function that creates the default state.
|
||||
*/
|
||||
constructor(init: () => S);
|
||||
reset(): void;
|
||||
}
|
1
themes/blowfish/assets/lib/mermaid/utils/imperativeState.spec.d.ts
vendored
Normal file
1
themes/blowfish/assets/lib/mermaid/utils/imperativeState.spec.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export {};
|
5
themes/blowfish/assets/lib/mermaid/utils/lineWithOffset.d.ts
vendored
Normal file
5
themes/blowfish/assets/lib/mermaid/utils/lineWithOffset.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
import type { EdgeData, Point } from '../types.js';
|
||||
export declare const getLineFunctionsWithOffset: (edge: Pick<EdgeData, 'arrowTypeStart' | 'arrowTypeEnd'>) => {
|
||||
x: (d: Point | [number, number], i: number, data: (Point | [number, number])[]) => number;
|
||||
y: (d: Point | [number, number], i: number, data: (Point | [number, number])[]) => number;
|
||||
};
|
7
themes/blowfish/assets/lib/mermaid/utils/sanitizeDirective.d.ts
vendored
Normal file
7
themes/blowfish/assets/lib/mermaid/utils/sanitizeDirective.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* Sanitizes directive objects
|
||||
*
|
||||
* @param args - Directive's JSON
|
||||
*/
|
||||
export declare const sanitizeDirective: (args: any) => void;
|
||||
export declare const sanitizeCss: (str: string) => string;
|
8
themes/blowfish/assets/lib/mermaid/utils/subGraphTitleMargins.d.ts
vendored
Normal file
8
themes/blowfish/assets/lib/mermaid/utils/subGraphTitleMargins.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
import type { FlowchartDiagramConfig } from '../config.type.js';
|
||||
export declare const getSubGraphTitleMargins: ({ flowchart, }: {
|
||||
flowchart: FlowchartDiagramConfig;
|
||||
}) => {
|
||||
subGraphTitleTopMargin: number;
|
||||
subGraphTitleBottomMargin: number;
|
||||
subGraphTitleTotalMargin: number;
|
||||
};
|
1
themes/blowfish/assets/lib/mermaid/utils/subGraphTitleMargins.spec.d.ts
vendored
Normal file
1
themes/blowfish/assets/lib/mermaid/utils/subGraphTitleMargins.spec.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export {};
|
Loading…
Add table
Add a link
Reference in a new issue