Skip to content

Commit eb67c3a

Browse files
committed
avoid duplications
1 parent 2ae600f commit eb67c3a

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

src/transforms/stack.d.ts

-45
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,6 @@ export interface StackOptions {
8383
* applied.
8484
*/
8585
export function stackX<T>(options?: T & StackOptions): Transformed<T>;
86-
87-
/**
88-
* Transforms a length channel *x* into starting and ending position channels
89-
* *x1* and *x2* by “stacking” elements that share a given *y* position. The
90-
* starting position of each element equals the ending position of the preceding
91-
* element in the stack. Non-positive values are stacked to the left of zero,
92-
* with *x2* to the left of *x1*. A new *x* channel is derived that represents
93-
* the midpoint between *x1* and *x2*, for example to place a label. If not
94-
* specified, the input channel *x* defaults to the constant one. Elements can
95-
* be stacked in a given *order*. After stacking, an optional *offset* can be
96-
* applied.
97-
*/
9886
export function stackX<T>(stackOptions?: StackOptions, options?: T): Transformed<T>;
9987

10088
/**
@@ -103,12 +91,6 @@ export function stackX<T>(stackOptions?: StackOptions, options?: T): Transformed
10391
* stack.
10492
*/
10593
export function stackX1<T>(options?: T & StackOptions): Transformed<T>;
106-
107-
/**
108-
* Like **stackX**, but returns the starting position *x1* as the *x* channel,
109-
* for example to position a dot on the left-hand side of each element of a
110-
* stack.
111-
*/
11294
export function stackX1<T>(stackOptions?: StackOptions, options?: T): Transformed<T>;
11395

11496
/**
@@ -117,12 +99,6 @@ export function stackX1<T>(stackOptions?: StackOptions, options?: T): Transforme
11799
* stack.
118100
*/
119101
export function stackX2<T>(options?: T & StackOptions): Transformed<T>;
120-
121-
/**
122-
* Like **stackX**, but returns the starting position *x2* as the *x* channel,
123-
* for example to position a dot on the right-hand side of each element of a
124-
* stack.
125-
*/
126102
export function stackX2<T>(stackOptions?: StackOptions, options?: T): Transformed<T>;
127103

128104
/**
@@ -136,39 +112,18 @@ export function stackX2<T>(stackOptions?: StackOptions, options?: T): Transforme
136112
* *order*. After stacking, an optional *offset* can be applied.
137113
*/
138114
export function stackY<T>(options?: T & StackOptions): Transformed<T>;
139-
140-
/**
141-
* Transforms a length channel *y* into starting and ending position channels
142-
* *y1* and *y2* by “stacking” elements that share a given *x* position. The
143-
* starting position of each element equals the ending position of the preceding
144-
* element in the stack. Non-positive values are stacked below zero, with *y2*
145-
* below *y1*. A new *y* channel is derived that represents the midpoint between
146-
* *y1* and *y2*, for example to place a label. If not specified, the input
147-
* channel *y* defaults to the constant one. Elements can be stacked in a given
148-
* *order*. After stacking, an optional *offset* can be applied.
149-
*/
150115
export function stackY<T>(stackOptions?: StackOptions, options?: T): Transformed<T>;
151116

152117
/**
153118
* Like **stackY**, but returns the starting position *y1* as the *y* channel,
154119
* for example to position a dot at the bottom of each element of a stack.
155120
*/
156121
export function stackY1<T>(options?: T & StackOptions): Transformed<T>;
157-
158-
/**
159-
* Like **stackY**, but returns the starting position *y1* as the *y* channel,
160-
* for example to position a dot at the bottom of each element of a stack.
161-
*/
162122
export function stackY1<T>(stackOptions?: StackOptions, options?: T): Transformed<T>;
163123

164124
/**
165125
* Like **stackY**, but returns the ending position *y2* as the *y* channel,
166126
* for example to position a dot at the top of each element of a stack.
167127
*/
168128
export function stackY2<T>(options?: T & StackOptions): Transformed<T>;
169-
170-
/**
171-
* Like **stackY**, but returns the ending position *y2* as the *y* channel,
172-
* for example to position a dot at the top of each element of a stack.
173-
*/
174129
export function stackY2<T>(stackOptions?: StackOptions, options?: T): Transformed<T>;

0 commit comments

Comments
 (0)