mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #3595 from DenEwout/master
JointJS/Rappid Added findModelsFromPoint definition to Graph, Handle interface and SelectionView class definitions.
This commit is contained in:
Vendored
+29
-1
@@ -24,6 +24,7 @@ declare module joint {
|
||||
getConnectedLinks(cell: Cell, opt?: any): Link[];
|
||||
disconnectLinks(cell: Cell);
|
||||
removeLinks(cell: Cell);
|
||||
findModelsFromPoint(point:{x : number; y: number}):Element[];
|
||||
}
|
||||
|
||||
class Cell extends Backbone.Model {
|
||||
@@ -95,7 +96,34 @@ declare module joint {
|
||||
|
||||
}
|
||||
|
||||
module ui { }
|
||||
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<joint.dia.Cell>;
|
||||
|
||||
constructor(opt:{
|
||||
paper : joint.dia.Paper;
|
||||
graph : joint.dia.Graph;
|
||||
model : Backbone.Collection<joint.dia.Cell>
|
||||
});
|
||||
|
||||
createSelectionBox(cellView:joint.dia.CellView);
|
||||
destroySelectionBox(cellView:joint.dia.CellView);
|
||||
startSelecting(evt:any);
|
||||
cancelSelection();
|
||||
|
||||
addHandle(handle:Handle);
|
||||
removeHandle(name:string);
|
||||
changeHandle(name:string, handle:Handle);
|
||||
}
|
||||
}
|
||||
|
||||
module shapes {
|
||||
module basic {
|
||||
|
||||
Reference in New Issue
Block a user