Skip to content

Commit bd58548

Browse files
committed
defaults for x1, x2, y1, y2 (I think)
1 parent 02f32b5 commit bd58548

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/marks/raster.d.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,25 +71,33 @@ export interface RasterOptions extends Omit<MarkOptions, "fill" | "fillOpacity">
7171

7272
/**
7373
* The lower value of *x*, on the left edge of the raster (right edge if
74-
* reversed).
74+
* reversed). Defaults to the minimum of the **x** channel, if given,
75+
* otherwise to 0, enabling to set up the raster coordinate system with a
76+
* **width**.
7577
*/
7678
x1?: number;
7779

7880
/**
7981
* The higher value of *x*, on the right edge of the raster (left edge if
80-
* reversed).
82+
* reversed). Defaults to the maximum of the **x** channel, if given,
83+
* otherwise to **width**, enabling to set up the raster coordinate system
84+
* with a **width**.
8185
*/
8286
x2?: number;
8387

8488
/**
8589
* The lower value of *y*, on the top edge of the raster (bottom edge if
86-
* reversed).
90+
* reversed). Defaults to the minimum of the **y** channel, if given,
91+
* otherwise to 0, enabling to set up the raster coordinate system with a
92+
* **height**.
8793
*/
8894
y1?: number;
8995

9096
/**
9197
* The higher value of *y*, on the bottom edge of the raster (top edge if
92-
* reversed).
98+
* reversed). Defaults to the maximum of the **y** channel, if given,
99+
* otherwise to **height**, enabling to set up the raster coordinate system with a
100+
* **height**.
93101
*/
94102
y2?: number;
95103

0 commit comments

Comments
 (0)