UNPKG

@gravity-ui/graph

Version:

Modern graph editor component

22 lines (21 loc) 924 B
import { Component, TComponentProps, TComponentState } from "../../../../lib/Component"; import { TRect } from "../../../../utils/types/shapes"; import { TBelowLayerContext } from "./BelowLayer"; type TBackgroundState = TComponentState & TRect; export declare class Background extends Component<TComponentProps, TBackgroundState, TBelowLayerContext> { private extendedUsableRect; protected readonly unsubscribe: () => void; constructor(props: {}, parent: Component); render(): void; protected subscribe(): () => void; protected stateChanged(_nextState: TBackgroundState): void; private setupExtendedUsableRect; protected unmount(): void; updateChildren(): import("../../../../lib/CoreComponent").ComponentDescriptor<{ x: number; y: number; width: number; height: number; }, import("../../../../lib/CoreComponent").CoreComponentContext>[]; } export {};