Skip to content

Commit 75907da

Browse files
committed
fixmes
1 parent acbaeb1 commit 75907da

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/compile/format.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export function formatSignalRef({
6161
const field = fieldToFormat(fieldOrDatumDef, expr, normalizeStack);
6262
const type = channelDefType(fieldOrDatumDef);
6363

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

341+
// FIXME: we shouldn't really export this to be called directly
340342
export function binFormatExpression(
341343
startField: string,
342344
endField: string,

src/compile/mark/encode/tooltip.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export function tooltipData(
100100

101101
let value: string;
102102

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

0 commit comments

Comments
 (0)