Skip to content

Commit

Permalink
Update deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasramo committed Nov 25, 2023
1 parent 941a2e4 commit 78ba040
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 82 deletions.
144 changes: 72 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@
},
"devDependencies": {
"@rollup/plugin-typescript": "11.1.5",
"@types/chai": "4.3.9",
"@types/mocha": "10.0.3",
"@types/chai": "4.3.11",
"@types/mocha": "10.0.6",
"chai": "4.3.10",
"csstype": "3.1.2",
"dotenv": "16.3.1",
Expand All @@ -114,12 +114,12 @@
"karma-mocha": "2.0.1",
"karma-mocha-reporter": "2.2.5",
"mocha": "10.2.0",
"prettier": "3.0.3",
"prettier": "3.1.0",
"rimraf": "5.0.5",
"rollup": "4.1.4",
"rollup": "4.5.2",
"rollup-plugin-dts": "6.1.0",
"terser": "5.22.0",
"terser": "5.24.0",
"tslib": "2.6.2",
"typescript": "5.2.2"
"typescript": "5.3.2"
}
}
8 changes: 4 additions & 4 deletions src/getOffset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ export function getOffset(element: BoxObject, offsetRoot?: BoxObject): BoxOffset
const offset = isRectObject(element)
? { left: element.left, top: element.top }
: Array.isArray(element)
? getOffsetFromDocument(...element)
: getOffsetFromDocument(element);
? getOffsetFromDocument(...element)
: getOffsetFromDocument(element);

if (offsetRoot && !isDocument(offsetRoot)) {
const offsetShift = isRectObject(offsetRoot)
? offsetRoot
: Array.isArray(offsetRoot)
? getOffsetFromDocument(offsetRoot[0], offsetRoot[1])
: getOffsetFromDocument(offsetRoot);
? getOffsetFromDocument(offsetRoot[0], offsetRoot[1])
: getOffsetFromDocument(offsetRoot);
offset.left -= offsetShift.left;
offset.top -= offsetShift.top;
}
Expand Down

0 comments on commit 78ba040

Please sign in to comment.