Skip to content

Commit

Permalink
refactor: current status + deps updates
Browse files Browse the repository at this point in the history
  • Loading branch information
orefalo committed Oct 15, 2024
1 parent 5356ad6 commit 0c93107
Show file tree
Hide file tree
Showing 13 changed files with 508 additions and 172 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ This package originated from [svelte-tiny-virtual-list](https://github.com/jonas
Customize width, heigh, position, style, content.

- 💠 **Layout Control**
Support fixed and variables sizing, dynamic loading along with vertical and horizontal lists.
Headless, support fixed and variables sizing, along with vertical and horizontal lists.

- 🧩 **Programming Interface**
Set list positions and properties, and respond promptly to events.
Set positions and properties, raises events on state mutation.

- 💼 **Small**
Compact and dependency free – Only ~5kb when compressed.
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
"@commitlint/config-conventional": "^19.5.0",
"@playwright/test": "^1.48.0",
"@sveltejs/adapter-static": "^3.0.5",
"@sveltejs/kit": "^2.7.0",
"@sveltejs/kit": "^2.7.1",
"@sveltejs/package": "2.3.5",
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.7",
"@types/eslint": "^9.6.1",
"@types/node": "^22.7.5",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"badge-maker": "^4.0.0",
"@typescript-eslint/eslint-plugin": "^8.9.0",
"@typescript-eslint/parser": "^8.9.0",
"badge-maker": "^4.1.0",
"copyfiles": "^2.4.1",
"clsx": "^2.1.1",
"cross-env": "^7.0.3",
Expand All @@ -90,10 +90,10 @@
"svelte-preprocess": "^6.0.3",
"tslib": "^2.7.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.8.1",
"vite": "^5.4.8"
"typescript-eslint": "^8.9.0",
"vite": "^5.4.9"
},
"peerDependencies": {
"svelte": "5.0.0-next.264"
"svelte": "5.0.0-next.265"
}
}
238 changes: 119 additions & 119 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/lib/SizeAndPositionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default class SizeAndPositionManager {
computeTotalSizeAndPositionData() {
let offset = 0;
for (let i = 0; i < this.modelCount; i++) {
const size = this.getSize(i);
const size = this.getSize(i);

this.itemSizeAndPositionData[i] = {
offset,
Expand Down
1 change: 0 additions & 1 deletion src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export interface VirtualListModel {
index: number | string;
}


export interface VirtualRange {
// index of the first visible item
start: number;
Expand Down
Loading

0 comments on commit 0c93107

Please sign in to comment.