npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

svelte-treeviews

v0.1.0

Published

A full featured treeview component, ported from liquor-tree

Downloads

12

Readme

Svelte-Splitpanes

Create resizable view panels in Svelte 3, a radical new approach to building user interfaces.

screenshot

This library is a port from the excellent vue-splitpanes, if you are using this library for business or leasure, please consider backing the original author!

While you are at it, you may also back the developer who ported the code to Svelte. :blush:

Features

  • Size is less than 2 kb
  • Support both dynamic horizontal and vertical splits
  • Support defaults, min and max sizes
  • Support multiple splits
  • Support lifecyle events
  • Support custom divider size or overlay
  • Support splitter pane pushing
  • Support RTL rendering
  • Support first splitter on/off
  • Support pane toggle
  • Support programmatic resizing
  • Support programmatic splitter add/remove
  • Support for legacy browser such as IE 11
  • Support for touch devices

Browser Support

| Chrome | Firefox | Safari | Opera | Edge | IE | | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 10+ ✔ |

Demo & Documentation

https://orefalo.github.io/svelte-splitpanes/

Installation

$ npm i svelte-splitpanes

Usage

<Splitpanes class="default-theme" style="height: 400px">
	<Pane minSize="20">1<br /><em class="specs">I have a min width of 20%</em></Pane>
	<Pane>
		<Splitpanes class="default-theme" horizontal="{true}">
			<Pane minSize="15">2<br /><em class="specs">I have a min height of 15%</em></Pane>
			<Pane>3</Pane>
			<Pane>4</Pane>
		</Splitpanes>
	</Pane>
	<Pane>5</Pane>
</Splitpanes>

API

Here is the list of properties that apply to

| Parameter name | Default | Comments | | ---------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------ | | horizontal | false (Vertical by default) | The orientation of the split panes. | | pushOtherPanes | true | Whether a splitter should push the next splitter when dragging. | | dblClickSplitter | true | Double click on splitter to maximize the next pane | | rtl | false | Supports Right to left direction | | firstSplitter | false | Displays the first splitter when set to true. This allows maximizing the first pane on splitter double click | | id | undefined | Provide an optional id attribute to the component for styling/other reasons |

Properties that apply to

| Parameter name | Default | Comments | | -------------- | --------- | ---------------------- | | minSize | 0 | minimum pane size in % | | maxSize | 100 | maximum pane size in % | | size | undefined | pane size in % |

Styling

The component can be further styled after the props have been defined by overriding the default css styling. The best way to do this is to use a class differenciator or the id="" prop and then scope your global css with this class/id.

TODO

Contributing

If you have any idea, feel free to open an issue to discuss an idea or new feature, yuo may also fork Splitpanes and submit your changes back.

npm package

# generate the package in /package
npm run package
# publish it (requires to be logged into npm from the cli)
cd package
npm publish --access public

GH Pages

# generate new site to /docs
$ npm run build-ghpages
# then commit and push changes to git, github will auto publish