-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(editor): Add setting for using editor with expressionInterpreter
enabled
#1461
Conversation
b9917c9
to
6689d95
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Looks great.
src/components/renderer/renderer.tsx
Outdated
if (mode === Mode.VegaLite) { | ||
// In vl mode, we compile Vega-Lite spec along with config to Vega spec | ||
runtime = vega.parse(vegaSpec); | ||
runtime = vega.parse(vegaSpec, {}, parseOptions); | ||
} else { | ||
runtime = vega.parse(vegaSpec, config as VgConfig); | ||
runtime = vega.parse(vegaSpec, config as VgConfig, parseOptions); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could probably simplify this to mode === Mode.VegaLite ? {} : config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, just pushed the change 👍
6689d95
to
8dffdc7
Compare
CI not passing seems to be unrelated to this diff (I opened a separate issue for it #1462 ). Would you recommend merging the new setting first, or doing the CI fix first? |
I'm okay with either. Having a ci fix first would be nicer since then we can merge this one cleanly. |
8dffdc7
to
a6ea2ca
Compare
Fixed CI in #1463, merging this since the checks are green. |
Motivation
expressionInterpreter
mode enabled #1460Changes
vega-interpreter
topackage.json
expressionInterpreter
to the root redux state. (Open to naming this so it looks more like a boolean, but since the name is long already I figured this was OK to start), and wires up associated Redux boilerplate (reducers, action creators, etc)yarn format $(modified_files)
, so I left them as is.Testing
expressionInterpreter
is slightly different.