Skip to content

Commit

Permalink
docs: update field comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Aug 4, 2020
1 parent dfbd466 commit 32a2dec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions packages/vx-grid/src/grids/GridColumns.tsx
Expand Up @@ -7,9 +7,12 @@ import { getTicks, ScaleInput } from '@vx/scale';
import { CommonGridProps, GridScale } from '../types';

export type GridColumnProps<Scale extends GridScale> = CommonGridProps & {
/** `@vx/scale` or `d3-scale` object used to map from ScaleInput to x-coordinates. */
/** `@vx/scale` or `d3-scale` object used to convert value to position. */
scale: Scale;
/** Exact values used to generate grid coordinates (y- for Rows, x- for Columns) lines using `scale`. Overrides `numTicks` if specified. */
/**
* Exact values used to generate grid coordinates lines using `scale`.
* Overrides `numTicks` if specified.
*/
tickValues?: ScaleInput<Scale>[];
/** Total height of the each grid column line. */
height: number;
Expand Down
7 changes: 5 additions & 2 deletions packages/vx-grid/src/grids/GridRows.tsx
Expand Up @@ -7,9 +7,12 @@ import { getTicks, ScaleInput } from '@vx/scale';
import { CommonGridProps, GridScale } from '../types';

export type GridRowsProps<Scale extends GridScale> = CommonGridProps & {
/** `@vx/scale` or `d3-scale` object used to map from ScaleInput to y-coordinates. */
/** `@vx/scale` or `d3-scale` object used to convert value to position. */
scale: Scale;
/** Exact values used to generate grid coordinates (y- for Rows, x- for Columns) lines using `scale`. Overrides `numTicks` if specified. */
/**
* Exact values used to generate grid coordinates lines using `scale`.
* Overrides `numTicks` if specified.
*/
tickValues?: ScaleInput<Scale>[];
/** Total width of the each grid row line. */
width: number;
Expand Down

0 comments on commit 32a2dec

Please sign in to comment.