mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
// Type definitions for Rappid 1.5
|
|
// Project: http://jointjs.com/about-rappid
|
|
// Definitions by: Ewout Van Gossum <https://github.com/DenEwout>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference path="../jointjs/jointjs.d.ts" />
|
|
/// <reference path="../backbone/backbone.d.ts" />
|
|
|
|
declare namespace joint{
|
|
namespace ui{
|
|
interface Handle {
|
|
name : string;
|
|
position : string;
|
|
icon: string;
|
|
}
|
|
|
|
class SelectionView extends Backbone.Model {
|
|
paper:joint.dia.Paper;
|
|
graph:joint.dia.Graph;
|
|
model:Backbone.Collection<joint.dia.Cell>;
|
|
|
|
constructor(opt:{
|
|
paper : joint.dia.Paper;
|
|
graph : joint.dia.Graph;
|
|
model : Backbone.Collection<joint.dia.Cell>
|
|
});
|
|
|
|
createSelectionBox(cellView:joint.dia.CellView) : void;
|
|
destroySelectionBox(cellView:joint.dia.CellView) : void;
|
|
startSelecting(evt:any) : void;
|
|
cancelSelection() : void;
|
|
|
|
addHandle(handle:Handle) : void;
|
|
removeHandle(name:string) : void;
|
|
changeHandle(name:string, handle:Handle) : void;
|
|
}
|
|
}
|
|
}
|