Skip to content

Commit a6747a2

Browse files
committed
move facet types into mark types
1 parent 9beaa45 commit a6747a2

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

src/facet.d.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ export * from "./channel.js";
22
export * from "./context.js";
33
export * from "./curve.js";
44
export * from "./dimensions.js";
5-
export * from "./facet.js";
65
export * from "./format.js";
76
export * from "./inset.js";
87
export * from "./interval.js";

src/mark.d.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
import type {ChannelDomainSort, Channels, ChannelValue, ChannelValues, ChannelValueSpec} from "./channel.js";
22
import type {Context} from "./context.js";
33
import type {Dimensions} from "./dimensions.js";
4-
import type {Facet, FacetAnchor} from "./facet.js";
54
import type {plot} from "./plot.js";
65
import type {ScaleFunctions} from "./scales.js";
76
import type {InitializerFunction, SortOrder, TransformFunction} from "./transforms/basic.js";
87

8+
export type Facet = "auto" | "include" | "exclude" | "super";
9+
10+
export type FacetAnchor =
11+
| "top"
12+
| "right"
13+
| "bottom"
14+
| "left"
15+
| "top-left"
16+
| "top-right"
17+
| "bottom-left"
18+
| "bottom-right"
19+
| "top-empty"
20+
| "right-empty"
21+
| "bottom-empty"
22+
| "left-empty"
23+
| "empty";
24+
925
export type FrameAnchor =
1026
| "middle"
1127
| "top-left"

0 commit comments

Comments
 (0)