Skip to content

Commit

Permalink
move facet types into mark types
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Mar 16, 2023
1 parent 9beaa45 commit a6747a2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
16 changes: 0 additions & 16 deletions src/facet.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export * from "./channel.js";
export * from "./context.js";
export * from "./curve.js";
export * from "./dimensions.js";
export * from "./facet.js";
export * from "./format.js";
export * from "./inset.js";
export * from "./interval.js";
Expand Down
18 changes: 17 additions & 1 deletion src/mark.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
import type {ChannelDomainSort, Channels, ChannelValue, ChannelValues, ChannelValueSpec} from "./channel.js";
import type {Context} from "./context.js";
import type {Dimensions} from "./dimensions.js";
import type {Facet, FacetAnchor} from "./facet.js";
import type {plot} from "./plot.js";
import type {ScaleFunctions} from "./scales.js";
import type {InitializerFunction, SortOrder, TransformFunction} from "./transforms/basic.js";

export type Facet = "auto" | "include" | "exclude" | "super";

export type FacetAnchor =
| "top"
| "right"
| "bottom"
| "left"
| "top-left"
| "top-right"
| "bottom-left"
| "bottom-right"
| "top-empty"
| "right-empty"
| "bottom-empty"
| "left-empty"
| "empty";

export type FrameAnchor =
| "middle"
| "top-left"
Expand Down

0 comments on commit a6747a2

Please sign in to comment.