Skip to content

Export the vega API #39

@pschmiedel

Description

@pschmiedel

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions