Rich-Harris

svelte-split-pane

A <SplitPane> component

by Rich-Harris

Svelte

Svelte85%
JavaScript11.4%
HTML3.6%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

1 of 6 standards met

Community profile →
28
✓README○License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 discussion · Last activity 1y ago
See all on GitHub →
gleb-modal
LicenseOpenIssue

Hi! What is the license under which this project is distributed?

gleb-modal · 8mo ago
Rich-Harris

At present, is updated to whatever you drag it to, and the clamping happens in CSS. This is unhelpful if you need to use elsewhere for any reason (such as coordinating the dimensions of a separate element, or tracking the most recent dragged position so that you can toggle a sidebar). This PR only updates when a) the user is dragging and b) a resize occurs, which is a much better representation of intent. It also normalizes the value to use the same format as the input prop, taking account of suffix (, , , ) and whether the value is expressed as a positive or negative value. Since it relies on writable deriveds, which were introduced in a v5 minor, this is a breaking change. I'm taking advantage of the semver major to also change to , which is much clearer than (which is ambiguous — is the divider horizontal, or are the panes siblings horizontally?).

Rich-Harris · 1y ago
Structured data for AI agents

Repository: Rich-Harris/svelte-split-pane. Description: A <SplitPane> component Stars: 136, Forks: 11. Primary language: Svelte. Languages: Svelte (85%), JavaScript (11.4%), HTML (3.6%). Homepage: https://svelte-split-pane.vercel.app Open PRs: 0, open issues: 1. Last activity: 1y ago. Community health: 28%. Top contributors: Rich-Harris, PuruVJ, ekzhang, dummdidumm.