@reshape-biotech/design-system 1.2.2 → 1.2.3
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/dist/components/graphs/chart/Chart.svelte +1 -1
- package/dist/components/graphs/multiline/MultiLineChart.stories.svelte +36 -0
- package/dist/components/graphs/scatterplot/Scatterplot.svelte +1 -0
- package/dist/components/select-new/index.d.ts +1 -1
- package/dist/components/tag/Tag.stories.svelte +1 -0
- package/dist/components/tag/Tag.svelte +1 -0
- package/package.json +1 -1
|
@@ -51,6 +51,28 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
function handleMouseOut() {}
|
|
54
|
+
|
|
55
|
+
const generateHugeDataset = () => {
|
|
56
|
+
const hugeData = [];
|
|
57
|
+
for (let i = 1; i <= 96; i++) {
|
|
58
|
+
const series = [];
|
|
59
|
+
const baseValue = i * 10;
|
|
60
|
+
const increment = i * 0.1;
|
|
61
|
+
|
|
62
|
+
for (let j = 0; j < 200; j++) {
|
|
63
|
+
const value = baseValue + j * increment;
|
|
64
|
+
series.push(Number(value.toFixed(2)));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
hugeData.push({
|
|
68
|
+
key: `Series ${i}`,
|
|
69
|
+
series
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return hugeData;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const hugeDataset = generateHugeDataset();
|
|
54
76
|
</script>
|
|
55
77
|
|
|
56
78
|
<Story name="Base" asChild>
|
|
@@ -162,3 +184,17 @@
|
|
|
162
184
|
<MultiLineChart {xAxisName} {yAxisName} {data} timeIndex={15} withFocus />
|
|
163
185
|
</div>
|
|
164
186
|
</Story>
|
|
187
|
+
|
|
188
|
+
<Story name="Huge Dataset" asChild>
|
|
189
|
+
<div class="h-[400px] w-full">
|
|
190
|
+
<MultiLineChart
|
|
191
|
+
{xAxisName}
|
|
192
|
+
{yAxisName}
|
|
193
|
+
data={hugeDataset}
|
|
194
|
+
withFocus={true}
|
|
195
|
+
onitemclick={handleItemClick}
|
|
196
|
+
onmouseover={handleMouseOver}
|
|
197
|
+
onmouseout={handleMouseOut}
|
|
198
|
+
/>
|
|
199
|
+
</div>
|
|
200
|
+
</Story>
|
|
@@ -4,7 +4,7 @@ import GroupHeading from './components/SelectGroupHeading.svelte';
|
|
|
4
4
|
import Trigger from './components/SelectTrigger.svelte';
|
|
5
5
|
import MultiSelectTrigger from './components/MultiSelectTrigger.svelte';
|
|
6
6
|
import Group from './components/Group.svelte';
|
|
7
|
-
export declare const Root: import("svelte").Component<import("bits-ui").
|
|
7
|
+
export declare const Root: import("svelte").Component<import("bits-ui").ComboboxRootPropsWithoutHTML, {}, "open" | "value">;
|
|
8
8
|
export declare const Portal: import("svelte").Component<import("bits-ui").PortalProps, {}, "">;
|
|
9
9
|
export { Content, Item, Group, GroupHeading, Trigger, MultiSelectTrigger };
|
|
10
10
|
export * from './types';
|