Giter Club home page Giter Club logo

vega-typings's Introduction

NOTE: This package has been consolidated into the vega/vega repository, where future development and issues will be handled. This repository has been archived and is now read-only.

Vega-Typings

npm version Build Status

Typings for Vega.

Release Process

To release a new version, make sure that everything works. Then run yarn version and bump the version number. Lastly, push to GitHub (with the release tag). Travis will build a bundle and make the npm release automatically.

vega-typings's People

Contributors

arvind avatar baaleze avatar danmarshall avatar domoritz avatar gcheung55 avatar invokesus avatar jmattheis avatar kanitw avatar pelotom avatar ydlamba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vega-typings's Issues

Cannot compile Vega-Lite with vega-lib

We currently cannot compile Vega-Lite with Vega-Lib because vega-lib does not declare typings for vega. This is related to #8.

I suggest that we either merge #8 or add

declare module 'vega' {
  export * from 'vega-typings';
}

to vega-lib. I'm not sure what is better.

vega.Axis tickCount doesn't accept string values

Property Type Description
tickCount Number | String | Object [...] For scales of type time or utc, the tick count can instead be a time interval specifier. Legal string values are "millisecond", "second", "minute", "hour", "day", "week", "month", and "year" [...]

Source (vega docs)

In types/spec/axis.d.ts tickCount is number | SignalRef so string values are not valid.

Could you properly adjust the typings?

New typings are missing some functions of the View API related to signals

I've been using vega for several weeks now in Angular projects and I'm happy to see that an official typings files are being made!

Unfortunately, right now the typings are missing a couple functions which I rely on in order to interact with graphs via signals. These functions are :

// in types/runtime/index.d.ts in the class View
addSignalListener(name: string, handler: (name: string, value: any) => void): View;
removeSignalListener(name: string, handler: (name: string, value: any) => void): View;
// only the version with two parameters exists, not this one that allows to get a signal's value
signal(name: string): any;

I understand that the typings are a work in progress right now. I will be using a old version in the meantime, I just wanted to be notified when these functions are added to the typings.

Thanks for your work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.