Skip to content

Commit

Permalink
time name no longer hardcoded
Browse files Browse the repository at this point in the history
  • Loading branch information
joshpoll committed Sep 20, 2023
1 parent 8bac921 commit 41ae4b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compile/selection/point.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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: [
Expand Down

0 comments on commit 41ae4b5

Please sign in to comment.