From 284d313bb02bef830b47bdcab5641aef9cc4a3a2 Mon Sep 17 00:00:00 2001 From: stafford Date: Thu, 8 Sep 2016 16:41:08 +1000 Subject: [PATCH] optional fields --- matter-js/matter-js.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/matter-js/matter-js.d.ts b/matter-js/matter-js.d.ts index da2c2f3eec..5a350d665b 100644 --- a/matter-js/matter-js.d.ts +++ b/matter-js/matter-js.d.ts @@ -488,7 +488,7 @@ declare namespace Matter { * @type boolean * @default true */ - visible: boolean; + visible?: boolean; /** * An `Object` that defines the sprite properties to use when rendering, if any. @@ -496,31 +496,31 @@ declare namespace Matter { * @property render.sprite * @type object */ - sprite: IBodyRenderOptionsSprite; + sprite?: IBodyRenderOptionsSprite; /** * A String that defines the fill style to use when rendering the body (if a sprite is not defined). It is the same as when using a canvas, so it accepts CSS style property values. Default: a random colour */ - fillStyle: string; + fillStyle?: string; /** * A Number that defines the line width to use when rendering the body outline (if a sprite is not defined). A value of 0 means no outline will be rendered. Default: 1.5 */ - lineWidth: number; + lineWidth?: number; /** * A String that defines the stroke style to use when rendering the body outline (if a sprite is not defined). It is the same as when using a canvas, so it accepts CSS style property values. Default: a random colour */ - strokeStyle: string; + strokeStyle?: string; /* * Sets the opacity. 1.0 is fully opaque. 0.0 is fully translucent */ - opacity: number; + opacity?: number; } export interface IBodyRenderOptionsSprite {