mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* underscore - add typing to pick * underscore - add typing to pick * underscore - add typing to pick * underscore - add typing to pick
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
// Type definitions for non-npm package Rappid 1.5
|
|
// Project: http://jointjs.com/about-rappid
|
|
// Definitions by: Ewout Van Gossum <https://github.com/DenEwout>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as joint from 'jointjs';
|
|
import * as Backbone from "backbone";
|
|
|
|
export as namespace joint;
|
|
|
|
export 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;
|
|
}
|
|
}
|