Changes to Kinetic.d.ts. How to make changes

May 12, 2013 at 2:20 PM
I made some changes to Kinetic.d.ts and would like to share. How do I get them in?

Here are my changes:

// new
class Wedge extends Shape {
    constructor(config: WedgeConfig);
    getRadius(): number;
    setRadius(radius: number);
    getAngle(): number;
    setAngle(radius: number);
    getAngleDeg(): number;
    setAngleDeg(angle: bool);
}
//new
class Label extends Group
{
    constructor(config: LabelConfig);
    setText(text: TextConfig);
    getText(): TextConfig;
    setRect(rect: LabelRectConfig);
    getRect(): LabelRectConfig;
}
//new
class LabelRect extends Shape
{
    constructor(config: LabelRectConfig);
    setPointerDirection(pointerDirection: string);
    setPointerWidth(pointerWidth: number);
    setPointerHeight(pointerHeight: number);
    setCornerRadius(cornerRadius: number);
    getPointerDirection(): string;
    getPointerWidth(): number;
    getPointerHeight(): number;
    getCornerRadius(): number;
}
// changed padding to be number
interface TextConfig extends DrawOptionsConfig, ObjectOptionsConfig {
    text: string;
    fontSize?: number;
    fontFamily?: string;
    fontStyle?: string;
    textFill?: any;
    textStroke?: any;
    textStrokeWidth?: number;
    align?: string;
    padding?: number;
    width?: number;
    height?: number;
    lineHeight?: number;
    cornerRadius?: number;
}
// new
interface LabelRectConfig extends DrawOptionsConfig, ObjectOptionsConfig
{
    width?: number;
    height?: number;
    pointerDirection?: string;
    pointerWidth?: number;
    pointerHeight?: number;
    cornerRadius?: number;
}
// new
interface LabelConfig extends DrawOptionsConfig, ObjectOptionsConfig
{
    rect: LabelRectConfig;
    text: TextConfig;
}