mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/// <reference path="kineticjs.d.ts"/>
|
||||
|
||||
// http://www.html5canvastutorials.com/kineticjs/html5-canvas-kineticjs-rect-tutorial/
|
||||
module RectTutorial {
|
||||
namespace RectTutorial {
|
||||
var stage = new Kinetic.Stage({
|
||||
container: 'container',
|
||||
width: 578,
|
||||
@@ -28,7 +28,7 @@ module RectTutorial {
|
||||
}
|
||||
|
||||
// http://www.html5canvastutorials.com/kineticjs/html5-canvas-kineticjs-circle-tutorial/
|
||||
module CircleTutorial {
|
||||
namespace CircleTutorial {
|
||||
var stage = new Kinetic.Stage({
|
||||
container: 'container',
|
||||
width: 578,
|
||||
|
||||
Vendored
+3
-3
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Basarat Ali Syed <http://www.github.com/basarat>, Ralph de Ruijter <http://www.superdopey.nl/techblog/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module Kinetic {
|
||||
declare namespace Kinetic {
|
||||
|
||||
var Node: {
|
||||
new (config: ObjectOptionsConfig): INode;
|
||||
@@ -57,7 +57,7 @@ declare module Kinetic {
|
||||
rotate(theta: number): void;
|
||||
rotateDeg(deg: number): void;
|
||||
|
||||
// Events
|
||||
// Events
|
||||
on(typesStr: string, handler: (data: any) => any): void;
|
||||
off(typesStr: string): void;
|
||||
fire(typeStr: string, event?: any, bubble?: boolean): any;
|
||||
@@ -95,7 +95,7 @@ declare module Kinetic {
|
||||
getHeight(): any;
|
||||
setHeight(height: number): any;
|
||||
|
||||
// id
|
||||
// id
|
||||
id(): string;
|
||||
id(id: string): void;
|
||||
getId(): string;
|
||||
|
||||
Reference in New Issue
Block a user