File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 7
7
import { renameChannels } from ' $lib/transforms/rename.js' ;
8
8
import { stackY } from ' $lib/transforms/stack.js' ;
9
9
import { recordizeY } from ' $lib/transforms/recordize.js' ;
10
- import type { DataRecord , BaseMarkProps , ChannelAccessor } from ' ../types.js' ;
10
+ import type { ChannelAccessor } from ' ../types.js' ;
11
11
12
12
/**
13
13
* AreaY mark foo
Original file line number Diff line number Diff line change 2
2
Convenience wrapper for rectangles oriented along the x axis
3
3
-->
4
4
<script module lang =" ts" >
5
- export type RectXMarkProps = Omit <RectMarkProps , ' y' >;
5
+ export type RectXMarkProps = Omit <RectMarkProps , ' y' > & { stack ? : Partial < StackOptions > } ;
6
6
</script >
7
7
8
8
<script lang =" ts" >
9
9
import Rect , { type RectMarkProps } from ' ./Rect.svelte' ;
10
10
import { intervalY , stackX , recordizeX } from ' $lib/index.js' ;
11
- import type { ChannelAccessor , PlotContext } from ' ../types.js' ;
11
+ import type { PlotContext } from ' ../types.js' ;
12
12
import { getContext } from ' svelte' ;
13
+ import type { StackOptions } from ' $lib/transforms/stack' ;
13
14
14
15
let { data = [{}], stack, ... options }: RectXMarkProps = $props ();
15
16
Original file line number Diff line number Diff line change 2
2
Convenience wrapper for rectangles oriented along the x axis
3
3
-->
4
4
<script module lang =" ts" >
5
- export type RectYMarkProps = Omit <RectMarkProps , ' x' >;
5
+ export type RectYMarkProps = Omit <RectMarkProps , ' x' > & { stack ? : Partial < StackOptions > } ;
6
6
</script >
7
7
8
8
<script lang =" ts" >
9
9
import Rect , { type RectMarkProps } from ' ./Rect.svelte' ;
10
10
import { intervalX , stackY , recordizeY } from ' $lib/index.js' ;
11
11
import type { PlotContext } from ' ../types.js' ;
12
12
import { getContext } from ' svelte' ;
13
+ import type { StackOptions } from ' $lib/transforms/stack' ;
13
14
14
15
let { data = [{}], stack, ... options }: RectYMarkProps = $props ();
15
16
You can’t perform that action at this time.
0 commit comments