chore: generate
This commit is contained in:
@@ -137,19 +137,10 @@ for (const scenario of scenarios) {
|
|||||||
const part = viewport?.querySelector<HTMLElement>(`[data-timeline-part-id="${CSS.escape(partID)}"]`)
|
const part = viewport?.querySelector<HTMLElement>(`[data-timeline-part-id="${CSS.escape(partID)}"]`)
|
||||||
const rect = part?.getBoundingClientRect()
|
const rect = part?.getBoundingClientRect()
|
||||||
return (
|
return (
|
||||||
!!rect &&
|
!!rect && !!view && rect.width > 0 && rect.height > 0 && rect.bottom > view.top && rect.top < view.bottom
|
||||||
!!view &&
|
|
||||||
rect.width > 0 &&
|
|
||||||
rect.height > 0 &&
|
|
||||||
rect.bottom > view.top &&
|
|
||||||
rect.top < view.bottom
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (
|
if (!virtual || state.visibleParts.length === 0 || state.visibleParts.some((partID) => !visible(partID)))
|
||||||
!virtual ||
|
|
||||||
state.visibleParts.length === 0 ||
|
|
||||||
state.visibleParts.some((partID) => !visible(partID))
|
|
||||||
)
|
|
||||||
state.hidden = true
|
state.hidden = true
|
||||||
state.samples++
|
state.samples++
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user