Create superformula.ts

definitions for the superformula.js d3 plugin 
https://raw.github.com/d3/d3-plugins/master/superformula/superformula.js
This commit is contained in:
hansrwindhoff
2013-01-21 21:18:52 -08:00
parent fe108177ae
commit 15f015047d
+39
View File
@@ -0,0 +1,39 @@
interface ID3superformulaPath
{
superformulaPath(params: number[], n: number, diameter: number): ID3superformula;
}
interface ID3superformulaType
{
(any): any;//hans
m: number;
n1: number;
n2: number;
n3: number;
a: number;
b: number;
}
interface ID3superformula
{
(): any;
type(any): any;
param(name: string, value: number): ID3superformula;
size(x: number): ID3superformula;
segments(x: number): ID3superformula;
}
interface ID3Selectors
{
}
interface ID3Base extends ID3Selectors
{
keys: ID3superformulaType[];
superformula: ID3superformula;
superformulaPath: ID3superformulaPath;
superformulaTypes: ID3superformulaType[];
}