@pibbl/core 0.0.2 → 0.0.3-alpha.90.1
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/THIRD_PARTY_NOTICES.txt +81 -0
- package/dist/features/textures/index.d.ts +12 -2
- package/dist/features/textures/index.js +33 -1
- package/dist/features/textures/index.js.map +2 -2
- package/dist/features/textures/lib/chemical-field.d.ts +56 -0
- package/dist/features/textures/lib/chemical-field.js +154 -0
- package/dist/features/textures/lib/chemical-field.js.map +7 -0
- package/dist/features/textures/lib/chemical-recipes.d.ts +119 -0
- package/dist/features/textures/lib/chemical-recipes.js +275 -0
- package/dist/features/textures/lib/chemical-recipes.js.map +7 -0
- package/dist/features/textures/lib/definitions.d.ts +3 -18
- package/dist/features/textures/lib/definitions.js +15 -20
- package/dist/features/textures/lib/definitions.js.map +2 -2
- package/dist/features/textures/lib/geometric-patterns.d.ts +149 -0
- package/dist/features/textures/lib/geometric-patterns.js +305 -0
- package/dist/features/textures/lib/geometric-patterns.js.map +7 -0
- package/dist/features/textures/lib/gray-scott.d.ts +55 -0
- package/dist/features/textures/lib/gray-scott.js +39 -0
- package/dist/features/textures/lib/gray-scott.js.map +7 -0
- package/dist/features/textures/lib/patterns.d.ts +123 -0
- package/dist/features/textures/lib/patterns.js +344 -0
- package/dist/features/textures/lib/patterns.js.map +7 -0
- package/dist/features/textures/lib/reaction-diffusion.d.ts +3 -2
- package/dist/features/textures/lib/reaction-diffusion.js +9 -20
- package/dist/features/textures/lib/reaction-diffusion.js.map +2 -2
- package/dist/features/textures/lib/simulation.d.ts +10 -4
- package/dist/features/textures/lib/simulation.js +23 -13
- package/dist/features/textures/lib/simulation.js.map +2 -2
- package/dist/features/viz/index.d.ts +68 -6
- package/dist/features/viz/index.js +164 -2
- package/dist/features/viz/index.js.map +2 -2
- package/dist/features/viz/inspection/bar.d.ts +79 -0
- package/dist/features/viz/inspection/bar.js +49 -0
- package/dist/features/viz/inspection/bar.js.map +7 -0
- package/dist/features/viz/inspection/candle.d.ts +156 -0
- package/dist/features/viz/inspection/candle.js +120 -0
- package/dist/features/viz/inspection/candle.js.map +7 -0
- package/dist/features/viz/inspection/capture-types.d.ts +65 -0
- package/dist/features/viz/inspection/capture.d.ts +16 -0
- package/dist/features/viz/inspection/capture.js +49 -0
- package/dist/features/viz/inspection/capture.js.map +7 -0
- package/dist/features/viz/inspection/handler.d.ts +36 -0
- package/dist/features/viz/inspection/handler.js +91 -0
- package/dist/features/viz/inspection/handler.js.map +7 -0
- package/dist/features/viz/inspection/ohlc-bar.d.ts +132 -0
- package/dist/features/viz/inspection/ohlc-bar.js +118 -0
- package/dist/features/viz/inspection/ohlc-bar.js.map +7 -0
- package/dist/features/viz/inspection/owned-ref.d.ts +16 -0
- package/dist/features/viz/inspection/owned-ref.js +99 -0
- package/dist/features/viz/inspection/owned-ref.js.map +7 -0
- package/dist/features/viz/inspection/painted-point.d.ts +22 -0
- package/dist/features/viz/inspection/painted-point.js +29 -0
- package/dist/features/viz/inspection/painted-point.js.map +7 -0
- package/dist/features/viz/inspection/queries.d.ts +100 -0
- package/dist/features/viz/inspection/queries.js +192 -0
- package/dist/features/viz/inspection/queries.js.map +7 -0
- package/dist/features/viz/inspection/query-types.d.ts +177 -0
- package/dist/features/viz/inspection/volume.d.ts +104 -0
- package/dist/features/viz/inspection/volume.js +95 -0
- package/dist/features/viz/inspection/volume.js.map +7 -0
- package/dist/features/viz/inspection.d.ts +19 -0
- package/dist/features/viz/inspection.js +54 -0
- package/dist/features/viz/inspection.js.map +7 -0
- package/dist/features/viz/inspection.mjs +1 -0
- package/dist/features/viz/lib/area-series.d.ts +62 -0
- package/dist/features/viz/lib/area-series.js +120 -0
- package/dist/features/viz/lib/area-series.js.map +7 -0
- package/dist/features/viz/lib/axis.js +1 -1
- package/dist/features/viz/lib/axis.js.map +2 -2
- package/dist/features/viz/lib/bar-series.d.ts +3 -1
- package/dist/features/viz/lib/bar-series.js +16 -1
- package/dist/features/viz/lib/bar-series.js.map +2 -2
- package/dist/features/viz/lib/baseline-series.d.ts +55 -0
- package/dist/features/viz/lib/baseline-series.js +136 -0
- package/dist/features/viz/lib/baseline-series.js.map +7 -0
- package/dist/features/viz/lib/candlestick-series.d.ts +62 -0
- package/dist/features/viz/lib/candlestick-series.js +150 -0
- package/dist/features/viz/lib/candlestick-series.js.map +7 -0
- package/dist/features/viz/lib/censored-point-series.d.ts +71 -0
- package/dist/features/viz/lib/censored-point-series.js +129 -0
- package/dist/features/viz/lib/censored-point-series.js.map +7 -0
- package/dist/features/viz/lib/color-context.d.ts +4 -0
- package/dist/features/viz/lib/color-context.js +41 -0
- package/dist/features/viz/lib/color-context.js.map +7 -0
- package/dist/features/viz/lib/color-math.d.ts +4 -0
- package/dist/features/viz/lib/color-math.js +31 -0
- package/dist/features/viz/lib/color-math.js.map +7 -0
- package/dist/features/viz/lib/color-types.d.ts +53 -0
- package/dist/features/viz/lib/curve-definition.d.ts +49 -0
- package/dist/features/viz/lib/curve-definition.js +148 -0
- package/dist/features/viz/lib/curve-definition.js.map +7 -0
- package/dist/features/viz/lib/diverging-color-scale.d.ts +11 -0
- package/dist/features/viz/lib/diverging-color-scale.js +51 -0
- package/dist/features/viz/lib/diverging-color-scale.js.map +7 -0
- package/dist/features/viz/lib/domain-navigation.d.ts +40 -0
- package/dist/features/viz/lib/domain-navigation.js +77 -0
- package/dist/features/viz/lib/domain-navigation.js.map +7 -0
- package/dist/features/viz/lib/editable-chart-elements.d.ts +178 -0
- package/dist/features/viz/lib/editable-chart-elements.js +733 -0
- package/dist/features/viz/lib/editable-chart-elements.js.map +7 -0
- package/dist/features/viz/lib/financial-aggregation.d.ts +127 -0
- package/dist/features/viz/lib/financial-aggregation.js +116 -0
- package/dist/features/viz/lib/financial-aggregation.js.map +7 -0
- package/dist/features/viz/lib/financial-autoscale.d.ts +64 -0
- package/dist/features/viz/lib/financial-autoscale.js +61 -0
- package/dist/features/viz/lib/financial-autoscale.js.map +7 -0
- package/dist/features/viz/lib/financial-comparison.d.ts +62 -0
- package/dist/features/viz/lib/financial-comparison.js +98 -0
- package/dist/features/viz/lib/financial-comparison.js.map +7 -0
- package/dist/features/viz/lib/financial-geometry.d.ts +77 -0
- package/dist/features/viz/lib/financial-geometry.js +67 -0
- package/dist/features/viz/lib/financial-geometry.js.map +7 -0
- package/dist/features/viz/lib/financial-indicators.d.ts +114 -0
- package/dist/features/viz/lib/financial-indicators.js +135 -0
- package/dist/features/viz/lib/financial-indicators.js.map +7 -0
- package/dist/features/viz/lib/financial-oscillators.d.ts +171 -0
- package/dist/features/viz/lib/financial-oscillators.js +265 -0
- package/dist/features/viz/lib/financial-oscillators.js.map +7 -0
- package/dist/features/viz/lib/graph/bipartite.d.ts +14 -0
- package/dist/features/viz/lib/graph/bipartite.js +250 -0
- package/dist/features/viz/lib/graph/bipartite.js.map +7 -0
- package/dist/features/viz/lib/graph/chord.d.ts +44 -0
- package/dist/features/viz/lib/graph/chord.js +348 -0
- package/dist/features/viz/lib/graph/chord.js.map +7 -0
- package/dist/features/viz/lib/graph/dependency.d.ts +26 -0
- package/dist/features/viz/lib/graph/dependency.js +141 -0
- package/dist/features/viz/lib/graph/dependency.js.map +7 -0
- package/dist/features/viz/lib/graph/force.d.ts +28 -0
- package/dist/features/viz/lib/graph/force.js +580 -0
- package/dist/features/viz/lib/graph/force.js.map +7 -0
- package/dist/features/viz/lib/graph/hierarchy.d.ts +21 -0
- package/dist/features/viz/lib/graph/hierarchy.js +112 -0
- package/dist/features/viz/lib/graph/hierarchy.js.map +7 -0
- package/dist/features/viz/lib/graph/icicle.d.ts +16 -0
- package/dist/features/viz/lib/graph/icicle.js +153 -0
- package/dist/features/viz/lib/graph/icicle.js.map +7 -0
- package/dist/features/viz/lib/graph/matrix.d.ts +30 -0
- package/dist/features/viz/lib/graph/matrix.js +243 -0
- package/dist/features/viz/lib/graph/matrix.js.map +7 -0
- package/dist/features/viz/lib/graph/neighborhood.d.ts +11 -0
- package/dist/features/viz/lib/graph/neighborhood.js +281 -0
- package/dist/features/viz/lib/graph/neighborhood.js.map +7 -0
- package/dist/features/viz/lib/graph/routes.d.ts +35 -0
- package/dist/features/viz/lib/graph/routes.js +102 -0
- package/dist/features/viz/lib/graph/routes.js.map +7 -0
- package/dist/features/viz/lib/graph/sankey.d.ts +44 -0
- package/dist/features/viz/lib/graph/sankey.js +341 -0
- package/dist/features/viz/lib/graph/sankey.js.map +7 -0
- package/dist/features/viz/lib/graph/shared.d.ts +59 -0
- package/dist/features/viz/lib/graph/shared.js +296 -0
- package/dist/features/viz/lib/graph/shared.js.map +7 -0
- package/dist/features/viz/lib/graph/tree.d.ts +11 -0
- package/dist/features/viz/lib/graph/tree.js +232 -0
- package/dist/features/viz/lib/graph/tree.js.map +7 -0
- package/dist/features/viz/lib/graph/treemap.d.ts +20 -0
- package/dist/features/viz/lib/graph/treemap.js +227 -0
- package/dist/features/viz/lib/graph/treemap.js.map +7 -0
- package/dist/features/viz/lib/graph/types.d.ts +1097 -0
- package/dist/features/viz/lib/hover-data.d.ts +1 -1
- package/dist/features/viz/lib/hover-data.js +5 -2
- package/dist/features/viz/lib/hover-data.js.map +2 -2
- package/dist/features/viz/lib/interval-band-series.d.ts +49 -0
- package/dist/features/viz/lib/interval-band-series.js +136 -0
- package/dist/features/viz/lib/interval-band-series.js.map +7 -0
- package/dist/features/viz/lib/interval-diamond-series.d.ts +43 -0
- package/dist/features/viz/lib/interval-diamond-series.js +124 -0
- package/dist/features/viz/lib/interval-diamond-series.js.map +7 -0
- package/dist/features/viz/lib/interval-series.d.ts +79 -0
- package/dist/features/viz/lib/interval-series.js +158 -0
- package/dist/features/viz/lib/interval-series.js.map +7 -0
- package/dist/features/viz/lib/line-series.d.ts +1 -1
- package/dist/features/viz/lib/line-series.js +47 -28
- package/dist/features/viz/lib/line-series.js.map +2 -2
- package/dist/features/viz/lib/linear-scale.js +1 -1
- package/dist/features/viz/lib/linear-scale.js.map +2 -2
- package/dist/features/viz/lib/monotone-curve.d.ts +11 -0
- package/dist/features/viz/lib/monotone-curve.js +63 -0
- package/dist/features/viz/lib/monotone-curve.js.map +7 -0
- package/dist/features/viz/lib/numeric-range-interpolation.d.ts +15 -0
- package/dist/features/viz/lib/numeric-range-interpolation.js +36 -0
- package/dist/features/viz/lib/numeric-range-interpolation.js.map +7 -0
- package/dist/features/viz/lib/ohlc-bar-series.d.ts +55 -0
- package/dist/features/viz/lib/ohlc-bar-series.js +168 -0
- package/dist/features/viz/lib/ohlc-bar-series.js.map +7 -0
- package/dist/features/viz/lib/paired-series.d.ts +44 -0
- package/dist/features/viz/lib/paired-series.js +93 -0
- package/dist/features/viz/lib/paired-series.js.map +7 -0
- package/dist/features/viz/lib/plot-series.js +11 -6
- package/dist/features/viz/lib/plot-series.js.map +2 -2
- package/dist/features/viz/lib/plot-types.d.ts +4 -3
- package/dist/features/viz/lib/point-series.d.ts +1 -1
- package/dist/features/viz/lib/point-series.js +36 -9
- package/dist/features/viz/lib/point-series.js.map +2 -2
- package/dist/features/viz/lib/point-types.d.ts +5 -2
- package/dist/features/viz/lib/scale-context.d.ts +1 -1
- package/dist/features/viz/lib/scale-ticks.js +21 -6
- package/dist/features/viz/lib/scale-ticks.js.map +2 -2
- package/dist/features/viz/lib/sequential-color-scale.d.ts +11 -0
- package/dist/features/viz/lib/sequential-color-scale.js +49 -0
- package/dist/features/viz/lib/sequential-color-scale.js.map +7 -0
- package/dist/features/viz/lib/series-position.d.ts +12 -0
- package/dist/features/viz/lib/series-position.js +44 -0
- package/dist/features/viz/lib/series-position.js.map +7 -0
- package/dist/features/viz/lib/step-curves.d.ts +19 -0
- package/dist/features/viz/lib/step-curves.js +53 -0
- package/dist/features/viz/lib/step-curves.js.map +7 -0
- package/dist/features/viz/lib/threshold-color-scale.d.ts +43 -0
- package/dist/features/viz/lib/threshold-color-scale.js +59 -0
- package/dist/features/viz/lib/threshold-color-scale.js.map +7 -0
- package/dist/features/viz/lib/trading-time-mapping.d.ts +32 -0
- package/dist/features/viz/lib/trading-time-mapping.js +89 -0
- package/dist/features/viz/lib/trading-time-mapping.js.map +7 -0
- package/dist/features/viz/lib/trading-time-scale.d.ts +83 -0
- package/dist/features/viz/lib/trading-time-scale.js +96 -0
- package/dist/features/viz/lib/trading-time-scale.js.map +7 -0
- package/dist/features/viz/lib/trajectory-series.d.ts +71 -0
- package/dist/features/viz/lib/trajectory-series.js +111 -0
- package/dist/features/viz/lib/trajectory-series.js.map +7 -0
- package/dist/features/viz/lib/types.d.ts +20 -4
- package/dist/features/viz/lib/use-continuous-scale.js +6 -1
- package/dist/features/viz/lib/use-continuous-scale.js.map +2 -2
- package/dist/features/viz/lib/volume-series.d.ts +59 -0
- package/dist/features/viz/lib/volume-series.js +117 -0
- package/dist/features/viz/lib/volume-series.js.map +7 -0
- package/dist/features/viz/lib/weighted-point-series.d.ts +71 -0
- package/dist/features/viz/lib/weighted-point-series.js +169 -0
- package/dist/features/viz/lib/weighted-point-series.js.map +7 -0
- package/dist/filters/backdrop-contrast-gpu.d.ts +5 -0
- package/dist/filters/backdrop-contrast-gpu.js +33 -0
- package/dist/filters/backdrop-contrast-gpu.js.map +7 -0
- package/dist/filters/backdrop-contrast.d.ts +21 -0
- package/dist/filters/backdrop-contrast.js +61 -0
- package/dist/filters/backdrop-contrast.js.map +7 -0
- package/dist/filters/emboss-gpu.d.ts +4 -0
- package/dist/filters/emboss-gpu.js +39 -0
- package/dist/filters/emboss-gpu.js.map +7 -0
- package/dist/filters/emboss.d.ts +32 -0
- package/dist/filters/emboss.js +106 -0
- package/dist/filters/emboss.js.map +7 -0
- package/dist/filters/filter-executor.d.ts +11 -4
- package/dist/filters/filter-executor.js +104 -49
- package/dist/filters/filter-executor.js.map +2 -2
- package/dist/filters/reflection-gpu.d.ts +3 -1
- package/dist/filters/reflection-gpu.js +5 -2
- package/dist/filters/reflection-gpu.js.map +2 -2
- package/dist/filters/render-backdrop-contrast-boundary.d.ts +31 -0
- package/dist/filters/render-backdrop-contrast-boundary.js +116 -0
- package/dist/filters/render-backdrop-contrast-boundary.js.map +7 -0
- package/dist/filters/render-emboss-boundary.d.ts +13 -0
- package/dist/filters/render-emboss-boundary.js +131 -0
- package/dist/filters/render-emboss-boundary.js.map +7 -0
- package/dist/filters.d.ts +9 -5
- package/dist/filters.js +4 -0
- package/dist/filters.js.map +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +2 -2
- package/dist/internal.d.ts +2 -0
- package/dist/internal.js +4 -0
- package/dist/internal.js.map +2 -2
- package/dist/lib/events/event-facade.d.ts +13 -0
- package/dist/lib/events/event-facade.js +23 -0
- package/dist/lib/events/event-facade.js.map +2 -2
- package/dist/lib/events/propagation.js +19 -14
- package/dist/lib/events/propagation.js.map +2 -2
- package/dist/lib/execute-render.js +13 -0
- package/dist/lib/execute-render.js.map +2 -2
- package/dist/lib/recording/recording.d.ts +43 -0
- package/dist/lib/recording/recording.js +555 -0
- package/dist/lib/recording/recording.js.map +7 -0
- package/dist/lib/recording/types.d.ts +118 -0
- package/dist/lib/recording/wasm-bytes.d.ts +1 -0
- package/dist/lib/recording/wasm-bytes.js +5 -0
- package/dist/lib/recording/wasm-bytes.js.map +7 -0
- package/dist/lib/recording/worker-source.d.ts +1 -0
- package/dist/lib/recording/worker-source.js +5 -0
- package/dist/lib/recording/worker-source.js.map +7 -0
- package/dist/lib/render-transaction.d.ts +5 -2
- package/dist/lib/render-transaction.js +23 -1
- package/dist/lib/render-transaction.js.map +2 -2
- package/dist/lib/series-inspection-frame.d.ts +18 -0
- package/dist/lib/series-inspection-frame.js +70 -0
- package/dist/lib/series-inspection-frame.js.map +7 -0
- package/dist/lib/types.d.ts +6 -0
- package/package.json +10 -2
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { jsx, jsxs } from "@pibbl/core/jsx-runtime";
|
|
2
|
+
import {
|
|
3
|
+
Group,
|
|
4
|
+
Rectangle,
|
|
5
|
+
resolveSignalValue
|
|
6
|
+
} from "@pibbl/core";
|
|
7
|
+
import {
|
|
8
|
+
defaultGraphLabelStyle,
|
|
9
|
+
GraphLabel,
|
|
10
|
+
resolveMarkStyle,
|
|
11
|
+
useGraphFrame
|
|
12
|
+
} from "./shared.js";
|
|
13
|
+
import {
|
|
14
|
+
checkedBounds,
|
|
15
|
+
finiteGap,
|
|
16
|
+
hierarchy,
|
|
17
|
+
partitionLabel,
|
|
18
|
+
partitionLabelFits
|
|
19
|
+
} from "./hierarchy.js";
|
|
20
|
+
function defaultPartitionCellStyle(cell) {
|
|
21
|
+
const shade = 82 - Math.min(cell.depth, 4) * 8;
|
|
22
|
+
return {
|
|
23
|
+
fill: `hsl(174 42% ${shade}%)`,
|
|
24
|
+
stroke: "#fbfaf6",
|
|
25
|
+
strokeWidth: 1,
|
|
26
|
+
cornerRadius: 3
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function inset(box, amount) {
|
|
30
|
+
return {
|
|
31
|
+
x: box.x + amount,
|
|
32
|
+
y: box.y + amount,
|
|
33
|
+
width: Math.max(0, box.width - amount * 2),
|
|
34
|
+
height: Math.max(0, box.height - amount * 2)
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function worstAspect(row, length) {
|
|
38
|
+
if (row.length === 0 || length <= 0) return Infinity;
|
|
39
|
+
const sum = row.reduce((total, item) => total + item.area, 0);
|
|
40
|
+
if (sum === 0) return Infinity;
|
|
41
|
+
const min = Math.min(...row.map((item) => item.area));
|
|
42
|
+
const max = Math.max(...row.map((item) => item.area));
|
|
43
|
+
const side2 = length * length;
|
|
44
|
+
return Math.max(side2 * max / (sum * sum), sum * sum / (side2 * min));
|
|
45
|
+
}
|
|
46
|
+
function squarify(records, box) {
|
|
47
|
+
const total = records.reduce((sum, record) => sum + record.value, 0);
|
|
48
|
+
const weighted = records.map((record) => ({
|
|
49
|
+
record,
|
|
50
|
+
area: box.width * box.height * (total === 0 ? 1 / records.length : record.value / total)
|
|
51
|
+
}));
|
|
52
|
+
const boxes = /* @__PURE__ */ new Map();
|
|
53
|
+
let remaining = { ...box };
|
|
54
|
+
let index = 0;
|
|
55
|
+
while (index < weighted.length && remaining.width > 0 && remaining.height > 0) {
|
|
56
|
+
const row = [weighted[index++]];
|
|
57
|
+
const length = Math.min(remaining.width, remaining.height);
|
|
58
|
+
while (index < weighted.length && worstAspect([...row, weighted[index]], length) <= worstAspect(row, length))
|
|
59
|
+
row.push(weighted[index++]);
|
|
60
|
+
const area = row.reduce((sum, item) => sum + item.area, 0);
|
|
61
|
+
if (remaining.width >= remaining.height) {
|
|
62
|
+
const rowWidth = area / remaining.height;
|
|
63
|
+
let y = remaining.y;
|
|
64
|
+
for (const item of row) {
|
|
65
|
+
const height = rowWidth === 0 ? 0 : item.area / rowWidth;
|
|
66
|
+
boxes.set(item.record, { x: remaining.x, y, width: rowWidth, height });
|
|
67
|
+
y += height;
|
|
68
|
+
}
|
|
69
|
+
remaining = {
|
|
70
|
+
x: remaining.x + rowWidth,
|
|
71
|
+
y: remaining.y,
|
|
72
|
+
width: Math.max(0, remaining.width - rowWidth),
|
|
73
|
+
height: remaining.height
|
|
74
|
+
};
|
|
75
|
+
} else {
|
|
76
|
+
const rowHeight = area / remaining.width;
|
|
77
|
+
let x = remaining.x;
|
|
78
|
+
for (const item of row) {
|
|
79
|
+
const width = rowHeight === 0 ? 0 : item.area / rowHeight;
|
|
80
|
+
boxes.set(item.record, { x, y: remaining.y, width, height: rowHeight });
|
|
81
|
+
x += width;
|
|
82
|
+
}
|
|
83
|
+
remaining = {
|
|
84
|
+
x: remaining.x,
|
|
85
|
+
y: remaining.y + rowHeight,
|
|
86
|
+
width: remaining.width,
|
|
87
|
+
height: Math.max(0, remaining.height - rowHeight)
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return boxes;
|
|
92
|
+
}
|
|
93
|
+
function layoutTreemap(root, options) {
|
|
94
|
+
const bounds = checkedBounds(options.bounds, "layoutTreemap");
|
|
95
|
+
const gap = finiteGap(options.cellGap, 4, "layoutTreemap cellGap");
|
|
96
|
+
const padding = finiteGap(options.padding, 6, "layoutTreemap padding");
|
|
97
|
+
const headerHeight = finiteGap(
|
|
98
|
+
options.headerHeight,
|
|
99
|
+
26,
|
|
100
|
+
"layoutTreemap headerHeight"
|
|
101
|
+
);
|
|
102
|
+
const tree = hierarchy(root, options, "layoutTreemap", options.value);
|
|
103
|
+
const cells = [];
|
|
104
|
+
const add = (record, box, depth, parentKey, rootItem) => {
|
|
105
|
+
const children = record.collapsed ? [] : record.children;
|
|
106
|
+
const boxLabel = partitionLabel(record, options, {
|
|
107
|
+
x: box.x + 12,
|
|
108
|
+
y: box.y + 8,
|
|
109
|
+
width: Math.max(0, box.width - 24),
|
|
110
|
+
height: Math.max(0, box.height - 16)
|
|
111
|
+
});
|
|
112
|
+
if (!rootItem || record.isLeaf)
|
|
113
|
+
cells.push(
|
|
114
|
+
Object.freeze({
|
|
115
|
+
key: record.key,
|
|
116
|
+
datum: record.datum,
|
|
117
|
+
parentKey,
|
|
118
|
+
depth,
|
|
119
|
+
value: record.value,
|
|
120
|
+
fraction: tree.value === 0 ? 0 : record.value / tree.value,
|
|
121
|
+
isLeaf: record.isLeaf,
|
|
122
|
+
collapsed: record.collapsed,
|
|
123
|
+
bounds: Object.freeze(box),
|
|
124
|
+
label: partitionLabelFits(boxLabel, box) ? boxLabel : null
|
|
125
|
+
})
|
|
126
|
+
);
|
|
127
|
+
if (children.length === 0) return;
|
|
128
|
+
const content = inset(
|
|
129
|
+
{
|
|
130
|
+
x: box.x,
|
|
131
|
+
y: box.y + headerHeight,
|
|
132
|
+
width: box.width,
|
|
133
|
+
height: Math.max(0, box.height - headerHeight)
|
|
134
|
+
},
|
|
135
|
+
padding
|
|
136
|
+
);
|
|
137
|
+
const laidOut = squarify(children, content);
|
|
138
|
+
for (const child of children) {
|
|
139
|
+
const raw = laidOut.get(child);
|
|
140
|
+
const childBox = inset(raw, gap / 2);
|
|
141
|
+
add(
|
|
142
|
+
child,
|
|
143
|
+
childBox,
|
|
144
|
+
rootItem ? 0 : depth + 1,
|
|
145
|
+
rootItem ? null : record.key,
|
|
146
|
+
false
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
add(tree, bounds, 0, null, true);
|
|
151
|
+
return Object.freeze({
|
|
152
|
+
bounds,
|
|
153
|
+
rootKey: tree.key,
|
|
154
|
+
total: tree.value,
|
|
155
|
+
unit: options.unit,
|
|
156
|
+
cells: Object.freeze(cells)
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function TreemapCell(props) {
|
|
160
|
+
const { bounds } = props.cell;
|
|
161
|
+
const { children, style, ...events } = props;
|
|
162
|
+
return /* @__PURE__ */ jsxs(Group, { children: [
|
|
163
|
+
/* @__PURE__ */ jsx(
|
|
164
|
+
Rectangle,
|
|
165
|
+
{
|
|
166
|
+
...events,
|
|
167
|
+
style: {
|
|
168
|
+
...resolveSignalValue(style),
|
|
169
|
+
left: bounds.x,
|
|
170
|
+
top: bounds.y,
|
|
171
|
+
width: bounds.width,
|
|
172
|
+
height: bounds.height
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
),
|
|
176
|
+
children
|
|
177
|
+
] });
|
|
178
|
+
}
|
|
179
|
+
function Treemap(props) {
|
|
180
|
+
const frame = useGraphFrame(props.style);
|
|
181
|
+
const root = resolveSignalValue(props.root);
|
|
182
|
+
if (frame.bounds.width === 0 || frame.bounds.height === 0)
|
|
183
|
+
return /* @__PURE__ */ jsx(Group, { style: frame.groupStyle, children: null });
|
|
184
|
+
const layout = layoutTreemap(root, {
|
|
185
|
+
...props,
|
|
186
|
+
bounds: frame.bounds,
|
|
187
|
+
cellGap: frame.style.cellGap,
|
|
188
|
+
padding: frame.style.padding,
|
|
189
|
+
headerHeight: frame.style.headerHeight
|
|
190
|
+
});
|
|
191
|
+
const labelStyle = resolveSignalValue(props.labelStyle);
|
|
192
|
+
return /* @__PURE__ */ jsx(Group, { style: frame.groupStyle, children: layout.cells.map(
|
|
193
|
+
(cell) => props.renderCell ? /* @__PURE__ */ jsx(
|
|
194
|
+
Group,
|
|
195
|
+
{
|
|
196
|
+
onClick: (event) => props.onCellClick?.(cell, event),
|
|
197
|
+
children: props.renderCell(cell)
|
|
198
|
+
},
|
|
199
|
+
cell.key
|
|
200
|
+
) : /* @__PURE__ */ jsx(
|
|
201
|
+
TreemapCell,
|
|
202
|
+
{
|
|
203
|
+
cell,
|
|
204
|
+
style: {
|
|
205
|
+
...defaultPartitionCellStyle(cell),
|
|
206
|
+
...resolveMarkStyle(cell, props.cellStyle)
|
|
207
|
+
},
|
|
208
|
+
onClick: (event) => props.onCellClick?.(cell, event),
|
|
209
|
+
children: cell.label && /* @__PURE__ */ jsx(
|
|
210
|
+
GraphLabel,
|
|
211
|
+
{
|
|
212
|
+
label: cell.label,
|
|
213
|
+
style: { ...defaultGraphLabelStyle(cell.label), ...labelStyle }
|
|
214
|
+
}
|
|
215
|
+
)
|
|
216
|
+
},
|
|
217
|
+
cell.key
|
|
218
|
+
)
|
|
219
|
+
) });
|
|
220
|
+
}
|
|
221
|
+
export {
|
|
222
|
+
Treemap,
|
|
223
|
+
TreemapCell,
|
|
224
|
+
defaultPartitionCellStyle,
|
|
225
|
+
layoutTreemap
|
|
226
|
+
};
|
|
227
|
+
//# sourceMappingURL=treemap.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/features/viz/lib/graph/treemap.tsx"],
|
|
4
|
+
"sourcesContent": ["import type { NodeStyle } from \"./types.js\";\nimport {\n Group,\n Rectangle,\n resolveSignalValue,\n type PibblNode,\n} from \"@pibbl/core\";\nimport {\n defaultGraphLabelStyle,\n GraphLabel,\n resolveMarkStyle,\n useGraphFrame,\n} from \"./shared.js\";\nimport type {\n Bounds,\n PartitionCellGeometry,\n PartitionLayout,\n PartitionCellProps,\n TreemapOptions,\n TreemapProps,\n TreemapStyle,\n} from \"./types.js\";\nimport {\n checkedBounds,\n finiteGap,\n hierarchy,\n partitionLabel,\n partitionLabelFits,\n type HierarchyRecord,\n} from \"./hierarchy.js\";\n\n/** Return the built-in depth-aware partition paint.\n * @param cell - Partition cell geometry.\n * @returns Ordinary rectangle style. @see {@link PartitionCellGeometry} */\nexport function defaultPartitionCellStyle<D>(\n cell: PartitionCellGeometry<D>,\n): NodeStyle {\n const shade = 82 - Math.min(cell.depth, 4) * 8;\n return {\n fill: `hsl(174 42% ${shade}%)`,\n stroke: \"#fbfaf6\",\n strokeWidth: 1,\n cornerRadius: 3,\n };\n}\n\nfunction inset(box: Bounds, amount: number): Bounds {\n return {\n x: box.x + amount,\n y: box.y + amount,\n width: Math.max(0, box.width - amount * 2),\n height: Math.max(0, box.height - amount * 2),\n };\n}\n\ninterface WeightedRecord<D> {\n readonly record: HierarchyRecord<D>;\n readonly area: number;\n}\n\nfunction worstAspect<D>(\n row: readonly WeightedRecord<D>[],\n length: number,\n): number {\n if (row.length === 0 || length <= 0) return Infinity;\n const sum = row.reduce((total, item) => total + item.area, 0);\n if (sum === 0) return Infinity;\n const min = Math.min(...row.map((item) => item.area));\n const max = Math.max(...row.map((item) => item.area));\n const side2 = length * length;\n return Math.max((side2 * max) / (sum * sum), (sum * sum) / (side2 * min));\n}\n\n/** Stable squarification: append records while doing so improves the current row\u2019s worst aspect ratio. */\nfunction squarify<D>(\n records: readonly HierarchyRecord<D>[],\n box: Bounds,\n): ReadonlyMap<HierarchyRecord<D>, Bounds> {\n const total = records.reduce((sum, record) => sum + record.value, 0);\n const weighted = records.map((record) => ({\n record,\n area:\n box.width *\n box.height *\n (total === 0 ? 1 / records.length : record.value / total),\n }));\n const boxes = new Map<HierarchyRecord<D>, Bounds>();\n let remaining = { ...box };\n let index = 0;\n while (\n index < weighted.length &&\n remaining.width > 0 &&\n remaining.height > 0\n ) {\n const row: WeightedRecord<D>[] = [weighted[index++]];\n const length = Math.min(remaining.width, remaining.height);\n while (\n index < weighted.length &&\n worstAspect([...row, weighted[index]], length) <= worstAspect(row, length)\n )\n row.push(weighted[index++]);\n const area = row.reduce((sum, item) => sum + item.area, 0);\n if (remaining.width >= remaining.height) {\n const rowWidth = area / remaining.height;\n let y = remaining.y;\n for (const item of row) {\n const height = rowWidth === 0 ? 0 : item.area / rowWidth;\n boxes.set(item.record, { x: remaining.x, y, width: rowWidth, height });\n y += height;\n }\n remaining = {\n x: remaining.x + rowWidth,\n y: remaining.y,\n width: Math.max(0, remaining.width - rowWidth),\n height: remaining.height,\n };\n } else {\n const rowHeight = area / remaining.width;\n let x = remaining.x;\n for (const item of row) {\n const width = rowHeight === 0 ? 0 : item.area / rowHeight;\n boxes.set(item.record, { x, y: remaining.y, width, height: rowHeight });\n x += width;\n }\n remaining = {\n x: remaining.x,\n y: remaining.y + rowHeight,\n width: remaining.width,\n height: Math.max(0, remaining.height - rowHeight),\n };\n }\n }\n return boxes;\n}\n\n/** Squarify weighted hierarchy leaves into stable, compact rectangles.\n * @param root - Hierarchy root.\n * @param options - Accessors, units, and finite bounds.\n * @returns Immutable partition geometry. @see {@link PartitionLayout} */\nexport function layoutTreemap<D>(\n root: D,\n options: TreemapOptions<D>,\n): PartitionLayout<D> {\n const bounds = checkedBounds(options.bounds, \"layoutTreemap\");\n const gap = finiteGap(options.cellGap, 4, \"layoutTreemap cellGap\");\n const padding = finiteGap(options.padding, 6, \"layoutTreemap padding\");\n const headerHeight = finiteGap(\n options.headerHeight,\n 26,\n \"layoutTreemap headerHeight\",\n );\n const tree = hierarchy(root, options, \"layoutTreemap\", options.value);\n const cells: PartitionCellGeometry<D>[] = [];\n const add = (\n record: HierarchyRecord<D>,\n box: Bounds,\n depth: number,\n parentKey: PartitionCellGeometry<D>[\"parentKey\"],\n rootItem: boolean,\n ) => {\n const children = record.collapsed ? [] : record.children;\n const boxLabel = partitionLabel(record, options, {\n x: box.x + 12,\n y: box.y + 8,\n width: Math.max(0, box.width - 24),\n height: Math.max(0, box.height - 16),\n });\n if (!rootItem || record.isLeaf)\n cells.push(\n Object.freeze({\n key: record.key,\n datum: record.datum,\n parentKey,\n depth,\n value: record.value,\n fraction: tree.value === 0 ? 0 : record.value / tree.value,\n isLeaf: record.isLeaf,\n collapsed: record.collapsed,\n bounds: Object.freeze(box),\n label: partitionLabelFits(boxLabel, box) ? boxLabel : null,\n }),\n );\n if (children.length === 0) return;\n const content = inset(\n {\n x: box.x,\n y: box.y + headerHeight,\n width: box.width,\n height: Math.max(0, box.height - headerHeight),\n },\n padding,\n );\n const laidOut = squarify(children, content);\n for (const child of children) {\n const raw = laidOut.get(child)!;\n const childBox = inset(raw, gap / 2);\n add(\n child,\n childBox,\n rootItem ? 0 : depth + 1,\n rootItem ? null : record.key,\n false,\n );\n }\n };\n add(tree, bounds, 0, null, true);\n return Object.freeze({\n bounds,\n rootKey: tree.key,\n total: tree.value,\n unit: options.unit,\n cells: Object.freeze(cells),\n });\n}\n\n/** Paint one partition cell at its immutable geometry.\n * @param props - Cell geometry, paint, events, and optional global-coordinate children.\n * @returns Canvas composition. @see {@link PartitionCellGeometry} */\nexport function TreemapCell<D>(props: PartitionCellProps<D>): PibblNode {\n const { bounds } = props.cell;\n const { children, style, ...events } = props;\n return (\n <Group>\n <Rectangle\n {...events}\n style={{\n ...resolveSignalValue(style),\n left: bounds.x,\n top: bounds.y,\n width: bounds.width,\n height: bounds.height,\n }}\n />\n {children}\n </Group>\n );\n}\n\n/** Render a squarified hierarchy with visible quantitative labels.\n * @param props - Reactive hierarchy data and presentation.\n * @returns Canvas composition. @see {@link layoutTreemap} */\nexport function Treemap<D>(props: TreemapProps<D>): PibblNode {\n const frame = useGraphFrame<TreemapStyle>(props.style);\n const root = resolveSignalValue(props.root);\n if (frame.bounds.width === 0 || frame.bounds.height === 0)\n return <Group style={frame.groupStyle}>{null}</Group>;\n const layout = layoutTreemap(root, {\n ...props,\n bounds: frame.bounds,\n cellGap: frame.style.cellGap,\n padding: frame.style.padding,\n headerHeight: frame.style.headerHeight,\n });\n const labelStyle = resolveSignalValue(props.labelStyle);\n return (\n <Group style={frame.groupStyle}>\n {layout.cells.map((cell) =>\n props.renderCell ? (\n <Group\n key={cell.key}\n onClick={(event) => props.onCellClick?.(cell, event)}\n >\n {props.renderCell(cell)}\n </Group>\n ) : (\n <TreemapCell\n key={cell.key}\n cell={cell}\n style={{\n ...defaultPartitionCellStyle(cell),\n ...resolveMarkStyle(cell, props.cellStyle),\n }}\n onClick={(event) => props.onCellClick?.(cell, event)}\n >\n {cell.label && (\n <GraphLabel\n label={cell.label}\n style={{ ...defaultGraphLabelStyle(cell.label), ...labelStyle }}\n />\n )}\n </TreemapCell>\n ),\n )}\n </Group>\n );\n}\n"],
|
|
5
|
+
"mappings": "AA8NI,SACE,KADF;AA7NJ;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAUP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAKA,SAAS,0BACd,MACW;AACX,QAAM,QAAQ,KAAK,KAAK,IAAI,KAAK,OAAO,CAAC,IAAI;AAC7C,SAAO;AAAA,IACL,MAAM,eAAe,KAAK;AAAA,IAC1B,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,cAAc;AAAA,EAChB;AACF;AAEA,SAAS,MAAM,KAAa,QAAwB;AAClD,SAAO;AAAA,IACL,GAAG,IAAI,IAAI;AAAA,IACX,GAAG,IAAI,IAAI;AAAA,IACX,OAAO,KAAK,IAAI,GAAG,IAAI,QAAQ,SAAS,CAAC;AAAA,IACzC,QAAQ,KAAK,IAAI,GAAG,IAAI,SAAS,SAAS,CAAC;AAAA,EAC7C;AACF;AAOA,SAAS,YACP,KACA,QACQ;AACR,MAAI,IAAI,WAAW,KAAK,UAAU,EAAG,QAAO;AAC5C,QAAM,MAAM,IAAI,OAAO,CAAC,OAAO,SAAS,QAAQ,KAAK,MAAM,CAAC;AAC5D,MAAI,QAAQ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