// Type definitions for Rappid 1.5 // Project: http://jointjs.com/about-rappid // Definitions by: Ewout Van Gossum // Definitions: https://github.com/borisyankov/DefinitelyTyped /// /// declare module joint{ module 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; constructor(opt:{ paper : joint.dia.Paper; graph : joint.dia.Graph; model : Backbone.Collection }); 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; } } }