mirror of
https://github.com/xlmnxp/extractify.zip.git
synced 2024-11-23 17:13:12 +03:00
add binary view
This commit is contained in:
parent
5a739b543d
commit
816f50a452
@ -19,7 +19,7 @@ const scrollTop = ref(0)
|
|||||||
// Calculate total rows and visible window
|
// Calculate total rows and visible window
|
||||||
const totalRows = computed(() => buffer.value ? Math.ceil(buffer.value.length / 16) : 0)
|
const totalRows = computed(() => buffer.value ? Math.ceil(buffer.value.length / 16) : 0)
|
||||||
const startRow = computed(() => Math.floor(scrollTop.value / rowHeight))
|
const startRow = computed(() => Math.floor(scrollTop.value / rowHeight))
|
||||||
const endRow = computed(() => Math.min(startRow.value + visibleRows.value + 5, totalRows.value))
|
const endRow = computed(() => Math.min(startRow.value + visibleRows.value + 50, totalRows.value))
|
||||||
|
|
||||||
// Get only the visible rows data
|
// Get only the visible rows data
|
||||||
const visibleData = computed(() => {
|
const visibleData = computed(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user