Skip to content

Commit

Permalink
Up sorter test
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Aug 17, 2023
1 parent 9749508 commit b5bd0ea
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 59 deletions.
4 changes: 2 additions & 2 deletions src/utils/Sorter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ export default class Sorter extends View {
* @return {Boolean}
* @private
* */
isInFlow(el: HTMLElement, parent: HTMLElement) {
isInFlow(el: HTMLElement, parent?: HTMLElement) {
if (!el) return false;

parent = parent || document.body;
Expand Down Expand Up @@ -727,7 +727,7 @@ export default class Sorter extends View {
* @param {number} rY Relative Y position
* @return {Array<Array>}
*/
dimsFromTarget(target: HTMLElement, rX: number, rY: number): Dim[] {
dimsFromTarget(target: HTMLElement, rX = 0, rY = 0): Dim[] {
const em = this.em;
let dims: Dim[] = [];

Expand Down
Loading

0 comments on commit b5bd0ea

Please sign in to comment.