You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
573 B

4 months ago
import type { RuntimeContext } from '../runtime/types';
import type { GraphData } from '../spec';
import type { BaseLayoutOptions } from './types';
/**
* <zh/>
*
* <en/> Base class for layout
*/
export declare abstract class BaseLayout<O extends BaseLayoutOptions = any> {
abstract id: string;
options: O;
protected context: RuntimeContext;
constructor(context: RuntimeContext, options?: O);
stop?: () => void;
tick?: (iterations?: number) => GraphData;
abstract execute(model: GraphData, options?: O): Promise<GraphData>;
}