- Foldable left panel (user profile) and right panel (task details) - Clicking a task in the list or graph node selects it and shows details - Both views (task list + graph) always mounted via absolute inset-0 for correct canvas dimensions; tabs toggle visibility with opacity - Graph node selection animation: other nodes repel outward (charge -600), then selected node smoothly slides to center (500ms cubic ease-out), then charge restores to -120 and graph stabilizes - Graph re-fits on tab switch and panel resize via ResizeObserver - Fix UUID string IDs throughout (backend returns UUIDs, not integers) - Add TaskDetailPanel, UserPanel components - Add CLAUDE.md project documentation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
50 lines
964 B
Markdown
50 lines
964 B
Markdown
jerrypick
|
|
==============
|
|
|
|
[![NPM package][npm-img]][npm-url]
|
|
[![Build Size][build-size-img]][build-size-url]
|
|
[![NPM Downloads][npm-downloads-img]][npm-downloads-url]
|
|
|
|
Pluck and omit properties from a JS object.
|
|
|
|
`pluck(obj, [prop1, prop2, ...]);`
|
|
`omit(obj, [prop1, prop2, ...]);`
|
|
|
|
## Quick start
|
|
|
|
```js
|
|
import { pluck, omit } from 'jerrypick';
|
|
```
|
|
or using a *script* tag
|
|
```html
|
|
<script src="//cdn.jsdelivr.net/npm/jerrypick"></script>
|
|
```
|
|
|
|
## Usage example
|
|
|
|
```js
|
|
const myObj = {
|
|
a: 3,
|
|
b: 6,
|
|
c: 9
|
|
};
|
|
|
|
pluck(myObj, ['a', 'c']);
|
|
|
|
// Result:
|
|
{ a: 3, c: 9 }
|
|
|
|
omit(myObj, ['a', 'b']);
|
|
|
|
// Result:
|
|
{ a: 3 }
|
|
```
|
|
|
|
|
|
[npm-img]: https://img.shields.io/npm/v/jerrypick
|
|
[npm-url]: https://npmjs.org/package/jerrypick
|
|
[build-size-img]: https://img.shields.io/bundlephobia/minzip/jerrypick
|
|
[build-size-url]: https://bundlephobia.com/result?p=jerrypick
|
|
[npm-downloads-img]: https://img.shields.io/npm/dt/jerrypick
|
|
[npm-downloads-url]: https://www.npmtrends.com/jerrypick
|