Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed Jun 10, 2017
1 parent 6e2790a commit d3e0e21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ export const TOOLTIP = Channel.TOOLTIP;
export const CHANNELS = [X, Y, X2, Y2, ROW, COLUMN, SIZE, SHAPE, COLOR, ORDER, OPACITY, TEXT, DETAIL, TOOLTIP];
const CHANNEL_INDEX = toSet(CHANNELS);

/**
* Channels cannot have an array of channelDef.
* model.fieldDef, getFieldDef only work for these channels.
*
* (The only two channels that can have an array of channelDefs are "detail" and "order".
* Since there can be multiple fieldDefs for detail and order, getFieldDef/model.fieldDef
* are not applicable for them. Similarly, selection projecttion won't work with "detail" and "order".)
*/
export const SINGLE_DEF_CHANNELS = [X, Y, X2, Y2, ROW, COLUMN, SIZE, SHAPE, COLOR, OPACITY, TEXT, TOOLTIP];

// export type SingleDefChannel = typeof SINGLE_DEF_CHANNELS[0];
Expand Down

0 comments on commit d3e0e21

Please sign in to comment.