From 41ae4b530c4ebf22c9d3e10d4557d8d248def96d Mon Sep 17 00:00:00 2001 From: Josh Pollock Date: Tue, 19 Sep 2023 17:22:11 -0700 Subject: [PATCH] time name no longer hardcoded --- src/compile/selection/point.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compile/selection/point.ts b/src/compile/selection/point.ts index e9740f635c..a476afb79f 100644 --- a/src/compile/selection/point.ts +++ b/src/compile/selection/point.ts @@ -5,6 +5,7 @@ import {SELECTION_ID} from '../../selection'; import {vals} from '../../util'; import {BRUSH} from './interval'; import {TUPLE_FIELDS} from './project'; +import {TIME} from '../../channel'; export const CURR = '_curr'; export const ANIM_VALUE = 'anim_value'; @@ -100,8 +101,7 @@ const point: SelectionCompiler<'point'> = { if (isTimerSelection(selCmpt)) { // timer event: selection is for animation - // TODO(jzong) scale name currently hardcoded to 'time' - return signals.concat(animationSignals(selCmpt.name, 'time'), [ + return signals.concat(animationSignals(selCmpt.name, model.scaleName(TIME)), [ { name: name + TUPLE, on: [