From faeb49883ad3fdb963b41e9eae40e69daa7e635f Mon Sep 17 00:00:00 2001 From: David Asmuth Date: Thu, 18 Feb 2016 23:44:22 +0100 Subject: [PATCH] Updated API to version 0.9.1 --- matter-js/matter-js.d.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/matter-js/matter-js.d.ts b/matter-js/matter-js.d.ts index 2f42dd6673..6a53e6eb74 100644 --- a/matter-js/matter-js.d.ts +++ b/matter-js/matter-js.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Matter.js - EDGE +// Type definitions for Matter.js - 0.9.1 // Project: https://github.com/liabru/matter-js // Definitions by: Ivane Gegia , // David Asmuth @@ -491,16 +491,17 @@ declare module Matter { */ 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; - - - + + + /* + * Sets the opacity. 1.0 is fully opaque. 0.0 is fully translucent + */ + opacity: number; } export interface IBodyRenderOptionsSprite {