Skip to content

Commit

Permalink
fixmes
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed May 20, 2024
1 parent acbaeb1 commit 75907da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compile/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export function formatSignalRef({
const field = fieldToFormat(fieldOrDatumDef, expr, normalizeStack);
const type = channelDefType(fieldOrDatumDef);

// FIXME: this `config.customFormatTypes` clause should wrap all code relevant to formatCustomType
if (format === undefined && formatType === undefined && config.customFormatTypes) {
if (type === 'quantitative') {
if (normalizeStack && config.normalizedNumberFormatType)
Expand Down Expand Up @@ -337,6 +338,7 @@ function wrapFormatExprToHandleInvalidValues({
return mainFormatExpr;
}

// FIXME: we shouldn't really export this to be called directly
export function binFormatExpression(
startField: string,
endField: string,
Expand Down
1 change: 1 addition & 0 deletions src/compile/mark/encode/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export function tooltipData(

let value: string;

// FIXME: why doesn't this file just call formatSignalRef directly?
if (isXorY(channel)) {
const channel2 = channel === 'x' ? 'x2' : 'y2';
const fieldDef2 = getFieldDef(encoding[channel2]);
Expand Down

0 comments on commit 75907da

Please sign in to comment.