import { mathUtil } from '../MathUtil' import { arrowService } from '../Service/ArrowService' import { circleService } from '../Service/CircleService' import { floorplanService } from '../Service/FloorplanService' import { iconService } from '../Service/IconService' import { rectangleService } from '../Service/RectangleService' import { signService } from '../Service/SignService' import { tableService } from '../Service/TableService' import { tagService } from '../Service/TagService' import { wallService } from '../Service/WallService' export default class HistoryUtil { constructor() {} isDifferentForWalls(wall1, wall2) { if (wall1.start == wall2.start && wall1.end == wall2.end) { return false } else { return true } } isDifferentForTags(tag1, tag2) { if (mathUtil.equalPoint(tag1.center, tag2.center) && tag1.value == tag2.value) { return false } else { return true } } isDifferentForTables(table1, table2) { if(!mathUtil.equalPoint(table1.center, table2.center)){ return true; } else if(table1.rowLen != table2.rowLen || table1.colLen != table2.colLen || table1.cells.length != table2.cells.length){ return true; } else{ for(let i=0;i