svizzle
svizzle copied to clipboard
Svelte components for data visualisation and utilities for data transformation.
Hi, thanks for your awesome list of tools. I have been recently using your mapbox wrapper with svelte-kit (TypeScript) and I have noticed the following error in my terminal when...
```js import {tick} from 'svelte'; export const scrollIntoViewIfTrue = async (node, doScroll) => { await tick(); if (node && doScroll) { if (node.scrollIntoViewIfNeeded) { node.scrollIntoViewIfNeeded(true); // Chrome/Safari/Edge } else {...
We might need to sort an array according to a specific order: ``` // sort an array of objects by key in a specific order const makeItemsSorter = orderedKeys =>...
It could be useful to render the bar chart without labels so that you can appreciate the shape of the data as a whole: this could be a boolean prop...
We could distribute a set of eslint config files from `@svizzle/dev`, see https://eslint.org/docs/latest/extend/shareable-configs
- https://svelte.dev/blog/svelte-4 - https://github.com/sveltejs/svelte/blob/master/packages/svelte/CHANGELOG.md
It would be useful to be able to specify what we are looking for (files and/or dirs). We could pass a second argument like below (non-breaking): ``` > readDir('aPath', 'dir')...
```js import {getTruthyValuesKeys} from '@svizzle/utils'; import * as _ from 'lamb'; export const getOrientation = _.pipe([ getTruthyValuesKeys, _.pairs, _.getPath('0.1') ]); const makeGetFirstTrueValueOf = keyBoolObj => _.pipe([ _.mapWith(key => [key, keyBoolObj[key]]),...