@gravity-ui/graph
Version:
Modern graph editor component
21 lines (20 loc) • 870 B
TypeScript
import { Graph } from "../../../../graph";
import { Component } from "../../../../lib";
import { ComponentDescriptor, CoreComponentContext, CoreComponentProps } from "../../../../lib/CoreComponent";
import { Layer, LayerContext, LayerProps } from "../../../../services/Layer";
import { ICamera } from "../../../../services/camera/CameraService";
export type TBelowLayerProps = LayerProps & {
camera: ICamera;
root: HTMLElement;
};
export type TBelowLayerContext = LayerContext & {
canvas: HTMLCanvasElement;
ctx: CanvasRenderingContext2D;
graph: Graph;
};
export declare class BelowLayer extends Layer<TBelowLayerProps, TBelowLayerContext> {
protected background: typeof Component;
constructor(props: TBelowLayerProps);
protected afterInit(): void;
updateChildren(): ComponentDescriptor<CoreComponentProps, CoreComponentContext>[];
}