Last 12 weeks · 0 commits
1 of 6 standards met
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?).
Repository: Rich-Harris/svelte-split-pane. Description: A <SplitPane> component Stars: 137, Forks: 13. 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: 7mo ago. Community health: 28%. Top contributors: Rich-Harris, PuruVJ, ekzhang, dummdidumm.