agileek / typings-vis Goto Github PK
View Code? Open in Web Editor NEWTyping definitions of visjs
Typing definitions of visjs
The will make the definition easier to consume. PR: DefinitelyTyped/DefinitelyTyped#13092
I think INodes id should also be a number therefor I would suggest changing it to IdType. Same for IEdges id and there references (from, to)
I've got Vis 4.17.0 and I can't add "color" to an INode with the 1.0.0 typings from this project.
I would expect this to be possible, given the Vis code:
function makePageNode(node:SiteNode, parentNode:SiteNode):INode {
return {
id: node._id,
label: node.title,
shape: "box",
color: "#112233"
}
}
And the Vis Node javascript class definitely has a color field,
but with these typings I can't use color in the INode.
It seems like I need to use and INodeOptions object instead but I can't pass a DataSet of those into a Network class. I am happy to fix it if it's an actual problem but I suspect there's something here I don't understand.
Hi,
Any news about when onAdd, onDelete, onMove, etc. functions will be available?
I look forward to it.
Thanks,
Omer.
Hello, I'd like to use your definition into a project.
How can insert it with typings?
I tried without good result:
typings install github~typings-vis github:agileek/typings-vis --global
It's great to find typings for vis.js, but since the project I'm working on doesn't use a module loader, we're unable to use these. Other libraries like Underscore.js and Moment.js use a static variable declared globally to get around this. (See examples).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.