react-easy-diagram
Version:
<img src="https://github.com/tokarchyn/react-easy-diagram/blob/main/repo/logo-with-name.png?raw=true" alt="React Easy Diagram logo" height="50">
42 lines • 1.88 kB
TypeScript
import { Point } from "../utils/point";
import { VisualComponentWithDefault } from "./visualComponentWithDefault";
import { RootStore } from "./rootStore";
import { IComponentDefinition, VisualComponent } from "./visualComponentState";
import { IUserInteraction, UserInteractionSettings } from "./userInteractionSettings";
export declare class DiagramSettings {
private _backgroundComponentState;
private _miniControlComponentState;
private _zoomInterval;
private _zoomToFitSettings;
private _userInteraction;
constructor();
import: (obj?: IDiagramSettings | undefined) => void;
get backgroundComponentState(): VisualComponentWithDefault<IBackgroundComponentProps<any>>;
get miniControlComponentState(): VisualComponentWithDefault<IMiniControlComponentProps<any>>;
get zoomInterval(): Point;
get zoomToFitSettings(): IZoomToFitSettings;
setZoomInterval: (value: Point | null | undefined) => void;
get userInteraction(): UserInteractionSettings;
}
export interface IDiagramSettings {
backgroundComponent?: IComponentDefinition<IBackgroundComponentProps, any> | VisualComponent<IBackgroundComponentProps>;
miniControlComponent?: IComponentDefinition<IMiniControlComponentProps, any> | VisualComponent<IMiniControlComponentProps>;
zoomInterval?: Point;
zoomToFitSettings?: Partial<IZoomToFitSettings>;
userInteraction?: Partial<IUserInteraction>;
}
export interface IBackgroundComponentProps<TSettings = any> {
diagramOffset: Point;
diagramZoom: number;
settings?: TSettings;
}
export interface IMiniControlComponentProps<TSettings = any> {
rootStore: RootStore;
settings?: TSettings;
}
export interface IZoomToFitSettings {
padding: Point;
zoomInterval: Point;
callOnImportState: boolean;
}
//# sourceMappingURL=diagramSettings.d.ts.map