Skip to content

Commit 81e2185

Browse files
committed
stack
1 parent 4608349 commit 81e2185

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/lib/marks/AreaY.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { renameChannels } from '$lib/transforms/rename.js';
88
import { stackY } from '$lib/transforms/stack.js';
99
import { recordizeY } from '$lib/transforms/recordize.js';
10-
import type { DataRecord, BaseMarkProps, ChannelAccessor } from '../types.js';
10+
import type { ChannelAccessor } from '../types.js';
1111
1212
/**
1313
* AreaY mark foo

src/lib/marks/RectX.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
Convenience wrapper for rectangles oriented along the x axis
33
-->
44
<script module lang="ts">
5-
export type RectXMarkProps = Omit<RectMarkProps, 'y'>;
5+
export type RectXMarkProps = Omit<RectMarkProps, 'y'> & { stack?: Partial<StackOptions> };
66
</script>
77

88
<script lang="ts">
99
import Rect, { type RectMarkProps } from './Rect.svelte';
1010
import { intervalY, stackX, recordizeX } from '$lib/index.js';
11-
import type { ChannelAccessor, PlotContext } from '../types.js';
11+
import type { PlotContext } from '../types.js';
1212
import { getContext } from 'svelte';
13+
import type { StackOptions } from '$lib/transforms/stack';
1314
1415
let { data = [{}], stack, ...options }: RectXMarkProps = $props();
1516

src/lib/marks/RectY.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
Convenience wrapper for rectangles oriented along the x axis
33
-->
44
<script module lang="ts">
5-
export type RectYMarkProps = Omit<RectMarkProps, 'x'>;
5+
export type RectYMarkProps = Omit<RectMarkProps, 'x'> & { stack?: Partial<StackOptions> };
66
</script>
77

88
<script lang="ts">
99
import Rect, { type RectMarkProps } from './Rect.svelte';
1010
import { intervalX, stackY, recordizeY } from '$lib/index.js';
1111
import type { PlotContext } from '../types.js';
1212
import { getContext } from 'svelte';
13+
import type { StackOptions } from '$lib/transforms/stack';
1314
1415
let { data = [{}], stack, ...options }: RectYMarkProps = $props();
1516

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy