Installation
npm install --save @types/rappid
Summary
This package contains type definitions for rappid (http://jointjs.com/about-rappid).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rappid.
index.d.ts
import * as Backbone from "backbone";
import * as joint from "jointjs";
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;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/backbone, jointjs
Credits
These definitions were written by Ewout Van Gossum.