@dineug/erd-editor
Version:
Entity-Relationship Diagram Editor
225 lines (224 loc) • 5.53 kB
TypeScript
import { ReducerType } from './actions';
export declare const addTableAction: {
(payload: {
id: string;
ui: {
x: number;
y: number;
zIndex: number;
};
}): import('@dineug/r-html').AnyAction<{
id: string;
ui: {
x: number;
y: number;
zIndex: number;
};
}>;
toString(): string;
type: string;
};
export declare const moveTableAction: {
(payload: {
movementX: number;
movementY: number;
ids: string[];
}): import('@dineug/r-html').AnyAction<{
movementX: number;
movementY: number;
ids: string[];
}>;
toString(): string;
type: string;
};
export declare const moveToTableAction: {
(payload: {
id: string;
x: number;
y: number;
}): import('@dineug/r-html').AnyAction<{
id: string;
x: number;
y: number;
}>;
toString(): string;
type: string;
};
export declare const removeTableAction: {
(payload: {
id: string;
}): import('@dineug/r-html').AnyAction<{
id: string;
}>;
toString(): string;
type: string;
};
export declare const changeTableNameAction: {
(payload: {
id: string;
value: string;
}): import('@dineug/r-html').AnyAction<{
id: string;
value: string;
}>;
toString(): string;
type: string;
};
export declare const changeTableCommentAction: {
(payload: {
id: string;
value: string;
}): import('@dineug/r-html').AnyAction<{
id: string;
value: string;
}>;
toString(): string;
type: string;
};
export declare const changeTableColorAction: {
(payload: {
id: string;
color: string;
prevColor: string;
}): import('@dineug/r-html').AnyAction<{
id: string;
color: string;
prevColor: string;
}>;
toString(): string;
type: string;
};
export declare const changeZIndexAction: {
(payload: {
id: string;
zIndex: number;
}): import('@dineug/r-html').AnyAction<{
id: string;
zIndex: number;
}>;
toString(): string;
type: string;
};
export declare const sortTableAction: {
(payload: void): import('@dineug/r-html').AnyAction<void>;
toString(): string;
type: string;
};
export declare const tableReducers: {
"table.add": ReducerType<"table.add">;
"table.move": ReducerType<"table.move">;
"table.moveTo": ReducerType<"table.moveTo">;
"table.remove": ReducerType<"table.remove">;
"table.changeName": ReducerType<"table.changeName">;
"table.changeComment": ReducerType<"table.changeComment">;
"table.changeColor": ReducerType<"table.changeColor">;
"table.changeZIndex": ReducerType<"table.changeZIndex">;
"table.sort": ReducerType<"table.sort">;
};
export declare const actions: {
addTableAction: {
(payload: {
id: string;
ui: {
x: number;
y: number;
zIndex: number;
};
}): import('@dineug/r-html').AnyAction<{
id: string;
ui: {
x: number;
y: number;
zIndex: number;
};
}>;
toString(): string;
type: string;
};
moveTableAction: {
(payload: {
movementX: number;
movementY: number;
ids: string[];
}): import('@dineug/r-html').AnyAction<{
movementX: number;
movementY: number;
ids: string[];
}>;
toString(): string;
type: string;
};
moveToTableAction: {
(payload: {
id: string;
x: number;
y: number;
}): import('@dineug/r-html').AnyAction<{
id: string;
x: number;
y: number;
}>;
toString(): string;
type: string;
};
removeTableAction: {
(payload: {
id: string;
}): import('@dineug/r-html').AnyAction<{
id: string;
}>;
toString(): string;
type: string;
};
changeTableNameAction: {
(payload: {
id: string;
value: string;
}): import('@dineug/r-html').AnyAction<{
id: string;
value: string;
}>;
toString(): string;
type: string;
};
changeTableCommentAction: {
(payload: {
id: string;
value: string;
}): import('@dineug/r-html').AnyAction<{
id: string;
value: string;
}>;
toString(): string;
type: string;
};
changeTableColorAction: {
(payload: {
id: string;
color: string;
prevColor: string;
}): import('@dineug/r-html').AnyAction<{
id: string;
color: string;
prevColor: string;
}>;
toString(): string;
type: string;
};
changeZIndexAction: {
(payload: {
id: string;
zIndex: number;
}): import('@dineug/r-html').AnyAction<{
id: string;
zIndex: number;
}>;
toString(): string;
type: string;
};
sortTableAction: {
(payload: void): import('@dineug/r-html').AnyAction<void>;
toString(): string;
type: string;
};
};