Make properties of IOptions optional.

According to the [documentation](http://www.jointjs.com/api#joint.dia.Paper), the options **may** contain any of these properties, and as such they should not be required by the interface.
This commit is contained in:
Tom Dietrich
2015-12-30 15:17:33 -05:00
parent dc9dabe74a
commit f869c1eaef

12
jointjs/jointjs.d.ts vendored
View File

@@ -60,12 +60,12 @@ declare module joint {
}
interface IOptions {
width: number;
height: number;
gridSize: number;
perpendicularLinks: boolean;
elementView: ElementView;
linkView: LinkView;
width?: number;
height?: number;
gridSize?: number;
perpendicularLinks?: boolean;
elementView?: ElementView;
linkView?: LinkView;
}
class Paper extends Backbone.View<Backbone.Model> {