-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Currently, it is not possible to call vega APIs directly (e.g. vega.scheme) when using the minified version of vue-vega. Simply importing from vega and calling the API has no effect, since it is a different file (from node_modules/vega* instead of the minified file) with a different scope.
This could probably be remedied by something like this (in index.js):
export * from 'vega'That way we could use the following to access the API in the same scope:
import { scheme } from 'vue-vega'
scheme('my-scheme', [ ... ])Alternatively, something like this could be used:
import * as vega from 'vega'
export { vega }import { vega } from 'vue-vega'
vega.scheme('my-scheme', [ ... ])Metadata
Metadata
Assignees
Labels
No labels