@gravity-ui/graph
Version:
Modern graph editor component
36 lines (35 loc) • 2.8 kB
TypeScript
import { Component } from "../../../lib/Component";
import { BlockState } from "../../../store/block/Block";
import { TGraphLayerContext } from "../layers/graphLayer/GraphLayer";
import { Block } from "./Block";
export declare class Blocks extends Component {
protected blocks: BlockState[];
protected blocksView: {};
context: TGraphLayerContext;
protected readonly unsubscribe: (() => void)[];
private font;
constructor(props: {}, context: any);
protected getFontScale(): number | boolean | typeof Component | import("../../..").ECanChangeBlockGeometry | "vertical" | "horizontal" | Record<string, {
new (props: import("./Block").TBlockProps, parent: import("../layers/graphLayer/GraphLayer").GraphLayer): Block<import("./Block").TBlock, import("./Block").TBlockProps>;
IS: "Block";
create<Props extends import("../../../lib/CoreComponent").CoreComponentProps, Context extends import("../../../lib/CoreComponent").CoreComponentContext>(this: Constructor<import("../../../lib").CoreComponent<Props, Context>>, props?: Props, options?: {
readonly key?: string;
readonly ref?: ((inst: any) => void) | string;
}): import("../../../lib/CoreComponent").ComponentDescriptor<Props, Context>;
mount<Props extends import("../../../lib/CoreComponent").CoreComponentProps, Context extends import("../../../lib/CoreComponent").CoreComponentContext>(Component: Constructor<import("../../../lib").CoreComponent<Props, Context>>, props?: Props): import("../../../lib").CoreComponent<Props, Context>;
unmount(instance: any): void;
}> | {
new (props: import("../connections").TConnectionProps, parent: import("../connections/BlockConnections").BlockConnections): import("../connections").BlockConnection<import("../../..").TConnection>;
create<Props extends import("../../../lib/CoreComponent").CoreComponentProps, Context extends import("../../../lib/CoreComponent").CoreComponentContext>(this: Constructor<import("../../../lib").CoreComponent<Props, Context>>, props?: Props, options?: {
readonly key?: string;
readonly ref?: ((inst: any) => void) | string;
}): import("../../../lib/CoreComponent").ComponentDescriptor<Props, Context>;
mount<Props extends import("../../../lib/CoreComponent").CoreComponentProps, Context extends import("../../../lib/CoreComponent").CoreComponentContext>(Component: Constructor<import("../../../lib").CoreComponent<Props, Context>>, props?: Props): import("../../../lib").CoreComponent<Props, Context>;
unmount(instance: any): void;
};
protected rerender(): void;
protected subscribe(): (() => void)[];
private prepareFont;
protected unmount(): void;
protected updateChildren(): any[];
}