Removed two missing properties from kineticjs

Both `Polygon` and `Transition` dont seem to be present anymore in the current version of KineticJS. I'm not an expert of KineticJS, which means I could be wrong of course.
This commit is contained in:
froginvasion
2014-08-18 10:51:24 +02:00
parent 17f8e5aca2
commit 3f2d6b33b1
-21
View File
@@ -300,15 +300,6 @@ declare module Kinetic {
setData(SVG: string): any;
}
var Polygon: {
new (config: PolygonConfig): IPolygon;
}
interface IPolygon extends IShape {
getPoints(): any;
setPoints(points: any): any;
}
var RegularPolygon: {
new (config: RegularPolygonConfig): IRegularPolygon;
}
@@ -405,14 +396,6 @@ declare module Kinetic {
setTextStrokeWidth(textStrokeWidth: number): any;
}
var Transition: {
new (node: Node, config: any): ITransition;
}
interface ITransition {
start(): any;
stop(): any;
}
var Animation: {
new (...args: any[]): IAnimation;
}
@@ -485,10 +468,6 @@ declare module Kinetic {
dash?: number[];
}
interface PolygonConfig extends DrawOptionsConfig, ObjectOptionsConfig {
points: any;
}
interface RegularPolygonConfig extends DrawOptionsConfig, ObjectOptionsConfig {
sides: number;
radius: number;