Add some missing methods to Element class

This commit is contained in:
Chris Moran 2017-03-07 16:57:46 -05:00
parent 93cdf199a5
commit b77325fd0c

9
jointjs/index.d.ts vendored
View File

@ -156,6 +156,15 @@ declare namespace joint {
findView(paper: Paper): ElementView;
isElement(): boolean;
scale(scaleX: number, scaleY: number, origin?: Point, options?: any): this;
addPort(port: any, opt?: any): this;
addPorts(ports: any[], opt?: any): this;
removePort(port: any, opt?: any): this;
hasPorts(): boolean;
hasPort(id: string): boolean;
getPorts(): any[];
getPort(id: string): any;
getPortIndex(port: any): number;
portProp(portId: string, path: any, value?: any, opt?: any): joint.dia.Element;
}
interface CSSSelector {