dbgate/packages/web/src/designer/DomTableRef.ts

23 lines
510 B
TypeScript
Raw Normal View History

2020-12-26 17:57:56 +00:00
import { TableInfo } from 'dbgate-types';
type DesignerTableInfo = TableInfo & { desingerId: string };
export default class DomTableRef {
domTable: Element;
domWrapper: Element;
table: DesignerTableInfo;
constructor(table: DesignerTableInfo, domRefs, domWrapper: Element) {
this.domTable = domRefs[''];
this.domWrapper = domWrapper;
this.table = table;
}
getRect() {
return this.domTable.getBoundingClientRect();
}
get designerId() {
return this.table.desingerId;
}
}