@types/rappid
TypeScript icon, indicating that this package has built-in type declarations

1.5.36 • Public • Published

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

Credits

These definitions were written by Ewout Van Gossum.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/rappid

Weekly Downloads

82

Version

1.5.36

License

MIT

Unpacked Size

4.52 kB

Total Files

5

Last publish

Collaborators

  • types