mirror of
https://github.com/dbgate/dbgate
synced 2024-11-15 08:16:28 +00:00
23 lines
510 B
TypeScript
23 lines
510 B
TypeScript
|
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;
|
||
|
}
|
||
|
}
|