@thebuoyant-tsdev/mui-ts-library 3.9.1 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.de.md +79 -0
- package/README.md +79 -0
- package/dist/components/horizontal-tree-chart/HorizontalTreeChart.d.ts +1 -1
- package/dist/components/horizontal-tree-chart/HorizontalTreeChart.js +308 -252
- package/dist/components/horizontal-tree-chart/HorizontalTreeChart.types.d.ts +2 -0
- package/dist/components/radial-tree-chart/RadialTreeChart.d.ts +1 -1
- package/dist/components/radial-tree-chart/RadialTreeChart.js +210 -160
- package/dist/components/radial-tree-chart/RadialTreeChart.types.d.ts +2 -0
- package/dist/components/sunburst-chart/SunburstChart.d.ts +1 -1
- package/dist/components/sunburst-chart/SunburstChart.js +160 -128
- package/dist/components/sunburst-chart/SunburstChart.types.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/package.json +1 -1
package/README.de.md
CHANGED
|
@@ -284,6 +284,71 @@ const data: RadialTreeChartData = {
|
|
|
284
284
|
|
|
285
285
|
---
|
|
286
286
|
|
|
287
|
+
### CirclePackingChart
|
|
288
|
+
|
|
289
|
+
Hierarchische Daten als verschachtelte Kreise, proportional zum Wert skaliert. Ideal für Speicherplatz-Auswertungen, Budget-Übersichten oder jede Hierarchie, bei der relative Größe auf einen Blick zählt. `Ctrl / Cmd ⌘+Click` (oder Doppelklick) auf einen Kreis mit Kindern zoomt mit sanfter animierter Transition hinein; Klick auf den Hintergrund oder `Escape` zoomt zurück.
|
|
290
|
+
|
|
291
|
+
```tsx
|
|
292
|
+
import { CirclePackingChart } from '@thebuoyant-tsdev/mui-ts-library';
|
|
293
|
+
import type { CirclePackingData } from '@thebuoyant-tsdev/mui-ts-library';
|
|
294
|
+
|
|
295
|
+
const data: CirclePackingData = {
|
|
296
|
+
id: 'disk', name: 'Festplatte',
|
|
297
|
+
children: [
|
|
298
|
+
{ id: 'photos', name: 'Fotos', value: 120 },
|
|
299
|
+
{ id: 'videos', name: 'Videos', value: 340 },
|
|
300
|
+
{ id: 'apps', name: 'Apps',
|
|
301
|
+
children: [
|
|
302
|
+
{ id: 'xcode', name: 'Xcode', value: 48 },
|
|
303
|
+
{ id: 'docker', name: 'Docker', value: 12 },
|
|
304
|
+
]},
|
|
305
|
+
],
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
<CirclePackingChart
|
|
309
|
+
data={data}
|
|
310
|
+
size={500}
|
|
311
|
+
onCircleClick={(info) => console.log(info.name, info.value)}
|
|
312
|
+
/>
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
→ [Vollständige Dokumentation](user-manuals/CirclePackingChart.de.md)
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
### HorizontalTreeChart
|
|
320
|
+
|
|
321
|
+
Hierarchische Daten als links-nach-rechts (oder eine der 4 Ausrichtungen) Entscheidungsbaum mit geschwungenen Links. Ideal für Entscheidungslogik, Eskalationspfade oder Org-Charts, die natürlicher von oben nach unten oder seitlich gelesen werden als radial. `Ctrl / Cmd ⌘+Click` bohrt in Teilbäume, `Ctrl / Cmd ⌘+Scroll` zoomt.
|
|
322
|
+
|
|
323
|
+
```tsx
|
|
324
|
+
import { HorizontalTreeChart } from '@thebuoyant-tsdev/mui-ts-library';
|
|
325
|
+
import type { HorizontalTreeData } from '@thebuoyant-tsdev/mui-ts-library';
|
|
326
|
+
|
|
327
|
+
const data: HorizontalTreeData = {
|
|
328
|
+
id: 'ticket', name: 'Neues Ticket',
|
|
329
|
+
children: [
|
|
330
|
+
{ id: 'bug', name: 'Bug', specialValueA: 'P1 — 4h SLA',
|
|
331
|
+
children: [
|
|
332
|
+
{ id: 'bug-fe', name: 'Frontend-Team' },
|
|
333
|
+
{ id: 'bug-be', name: 'Backend-Team' },
|
|
334
|
+
]},
|
|
335
|
+
{ id: 'feature', name: 'Feature-Anfrage', specialValueA: 'P3 — Backlog' },
|
|
336
|
+
],
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
<HorizontalTreeChart
|
|
340
|
+
data={data}
|
|
341
|
+
orientation="LR"
|
|
342
|
+
width={700}
|
|
343
|
+
drillable
|
|
344
|
+
onNodeClick={(info) => console.log(info.name, info.depth)}
|
|
345
|
+
/>
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
→ [Vollständige Dokumentation](user-manuals/HorizontalTreeChart.de.md)
|
|
349
|
+
|
|
350
|
+
---
|
|
351
|
+
|
|
287
352
|
## TypeScript
|
|
288
353
|
|
|
289
354
|
Alle Typen und Defaults werden direkt exportiert — kein separates `@types/...`-Paket nötig.
|
|
@@ -343,6 +408,20 @@ Dieses Projekt folgt [Semantic Versioning](https://semver.org/). In der Praxis b
|
|
|
343
408
|
|
|
344
409
|
## Changelog
|
|
345
410
|
|
|
411
|
+
### [3.11.0] — 2026-06-25
|
|
412
|
+
|
|
413
|
+
**RadialTreeChart & HorizontalTreeChart**
|
|
414
|
+
- `duration`: Rein-/Rauszoomen und Escape-Resets crossfaden jetzt statt abrupt zu wechseln (Standard 750ms, `0` deaktiviert).
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
### [3.10.0] — 2026-06-25
|
|
419
|
+
|
|
420
|
+
**SunburstChart**
|
|
421
|
+
- `duration`: Rein-/Rauszoomen animiert jetzt sanft zwischen Fokus-Ebenen (Standard 750ms, `0` deaktiviert).
|
|
422
|
+
|
|
423
|
+
---
|
|
424
|
+
|
|
346
425
|
### [3.9.1] — 2026-06-25
|
|
347
426
|
|
|
348
427
|
**Behoben**
|
package/README.md
CHANGED
|
@@ -284,6 +284,71 @@ const data: RadialTreeChartData = {
|
|
|
284
284
|
|
|
285
285
|
---
|
|
286
286
|
|
|
287
|
+
### CirclePackingChart
|
|
288
|
+
|
|
289
|
+
Hierarchical data as nested circles, sized proportionally to value. Use `CirclePackingChart` for disk usage, org budgets, or any hierarchy where relative size matters at a glance. `Ctrl / Cmd ⌘+Click` (or double-click) a circle with children to zoom in with a smooth animated transition; click the background or `Escape` to zoom back out.
|
|
290
|
+
|
|
291
|
+
```tsx
|
|
292
|
+
import { CirclePackingChart } from '@thebuoyant-tsdev/mui-ts-library';
|
|
293
|
+
import type { CirclePackingData } from '@thebuoyant-tsdev/mui-ts-library';
|
|
294
|
+
|
|
295
|
+
const data: CirclePackingData = {
|
|
296
|
+
id: 'disk', name: 'Disk',
|
|
297
|
+
children: [
|
|
298
|
+
{ id: 'photos', name: 'Photos', value: 120 },
|
|
299
|
+
{ id: 'videos', name: 'Videos', value: 340 },
|
|
300
|
+
{ id: 'apps', name: 'Apps',
|
|
301
|
+
children: [
|
|
302
|
+
{ id: 'xcode', name: 'Xcode', value: 48 },
|
|
303
|
+
{ id: 'docker', name: 'Docker', value: 12 },
|
|
304
|
+
]},
|
|
305
|
+
],
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
<CirclePackingChart
|
|
309
|
+
data={data}
|
|
310
|
+
size={500}
|
|
311
|
+
onCircleClick={(info) => console.log(info.name, info.value)}
|
|
312
|
+
/>
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
→ [Full documentation](user-manuals/CirclePackingChart.md)
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
### HorizontalTreeChart
|
|
320
|
+
|
|
321
|
+
Hierarchical data as a left-to-right (or any of 4 orientations) decision tree with curved links. Use `HorizontalTreeChart` for decision logic, escalation paths, or org charts that read more naturally top-to-bottom or side-to-side than radially. `Ctrl / Cmd ⌘+Click` drills into subtrees, `Ctrl / Cmd ⌘+Scroll` zooms.
|
|
322
|
+
|
|
323
|
+
```tsx
|
|
324
|
+
import { HorizontalTreeChart } from '@thebuoyant-tsdev/mui-ts-library';
|
|
325
|
+
import type { HorizontalTreeData } from '@thebuoyant-tsdev/mui-ts-library';
|
|
326
|
+
|
|
327
|
+
const data: HorizontalTreeData = {
|
|
328
|
+
id: 'ticket', name: 'New Ticket',
|
|
329
|
+
children: [
|
|
330
|
+
{ id: 'bug', name: 'Bug', specialValueA: 'P1 — 4h SLA',
|
|
331
|
+
children: [
|
|
332
|
+
{ id: 'bug-fe', name: 'Frontend Team' },
|
|
333
|
+
{ id: 'bug-be', name: 'Backend Team' },
|
|
334
|
+
]},
|
|
335
|
+
{ id: 'feature', name: 'Feature Request', specialValueA: 'P3 — Backlog' },
|
|
336
|
+
],
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
<HorizontalTreeChart
|
|
340
|
+
data={data}
|
|
341
|
+
orientation="LR"
|
|
342
|
+
width={700}
|
|
343
|
+
drillable
|
|
344
|
+
onNodeClick={(info) => console.log(info.name, info.depth)}
|
|
345
|
+
/>
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
→ [Full documentation](user-manuals/HorizontalTreeChart.md)
|
|
349
|
+
|
|
350
|
+
---
|
|
351
|
+
|
|
287
352
|
## TypeScript
|
|
288
353
|
|
|
289
354
|
All types and defaults are exported directly — no separate `@types/...` package needed.
|
|
@@ -343,6 +408,20 @@ This project follows [Semantic Versioning](https://semver.org/). In practice:
|
|
|
343
408
|
|
|
344
409
|
## Changelog
|
|
345
410
|
|
|
411
|
+
### [3.11.0] — 2026-06-25
|
|
412
|
+
|
|
413
|
+
**RadialTreeChart & HorizontalTreeChart**
|
|
414
|
+
- `duration`: drill in/out and Escape resets now crossfade instead of jump-cutting (default 750ms, `0` disables).
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
### [3.10.0] — 2026-06-25
|
|
419
|
+
|
|
420
|
+
**SunburstChart**
|
|
421
|
+
- `duration`: drill-in/out now animates smoothly between focus levels (default 750ms, `0` disables).
|
|
422
|
+
|
|
423
|
+
---
|
|
424
|
+
|
|
346
425
|
### [3.9.1] — 2026-06-25
|
|
347
426
|
|
|
348
427
|
**Fixed**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HorizontalTreeChartProps } from "./HorizontalTreeChart.types";
|
|
2
|
-
export declare function HorizontalTreeChart({ data, orientation, width, height, levelSpacing, nodeRadius, sortBy, showLabels, labelFontSize, labelColor, showIcons, chartColors, linkStrokeOpacity, linkStrokeWidth, linkColor, zoomable, drillable, onFocusChange, showNodePopover, renderNodePopoverContent, onNodeClick, disabled, translation, }: HorizontalTreeChartProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function HorizontalTreeChart({ data, orientation, width, height, levelSpacing, nodeRadius, sortBy, showLabels, labelFontSize, labelColor, showIcons, chartColors, linkStrokeOpacity, linkStrokeWidth, linkColor, zoomable, drillable, onFocusChange, showNodePopover, renderNodePopoverContent, onNodeClick, duration, disabled, translation, }: HorizontalTreeChartProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare namespace HorizontalTreeChart {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|