mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #14825 from CaselIT/patch-1
[jointjs] Added export for nodejs
This commit is contained in:
Vendored
+852
-851
File diff suppressed because it is too large
Load Diff
Vendored
+26
-23
@@ -5,33 +5,36 @@
|
||||
|
||||
/// <reference types="jointjs" />
|
||||
|
||||
declare namespace joint {
|
||||
namespace ui {
|
||||
interface Handle {
|
||||
name: string;
|
||||
position: string;
|
||||
icon: string;
|
||||
}
|
||||
import * as joint from 'jointjs';
|
||||
import * as Backbone from "backbone";
|
||||
|
||||
class SelectionView extends Backbone.Model {
|
||||
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>;
|
||||
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;
|
||||
|
||||
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;
|
||||
}
|
||||
addHandle(handle: Handle): void;
|
||||
removeHandle(name: string): void;
|
||||
changeHandle(name: string, handle: Handle): void;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user