| 96 | } |
| 97 | |
| 98 | interface IComment { |
| 99 | dom:any; |
| 100 | stime:number; |
| 101 | dur:number; |
| 102 | ttl:number; |
| 103 | cindex:number; |
| 104 | align:number; |
| 105 | axis:number; |
| 106 | x:number; |
| 107 | y:number; |
| 108 | bottom:number; |
| 109 | right:number; |
| 110 | width:number; |
| 111 | height:number; |
| 112 | movable:boolean; |
| 113 | border:boolean; |
| 114 | shadow:boolean; |
| 115 | font:string; |
| 116 | color:number; |
| 117 | alpha:number; |
| 118 | size:number; |
| 119 | /** |
| 120 | * Updates the comment life by subtracting t from ttl |
| 121 | * @param t - difference in time |
| 122 | */ |
| 123 | time(t:number):void; |
| 124 | /** |
| 125 | * Update the comment's position based on the time. |
| 126 | * This is called by time() |
| 127 | */ |
| 128 | update():void; |
| 129 | /** |
| 130 | * Invalidate the coordinates and dimensions of the |
| 131 | * current comment object |
| 132 | */ |
| 133 | invalidate():void; |
| 134 | /** |
| 135 | * Perform an animation alongside the update |
| 136 | */ |
| 137 | animate():void; |
| 138 | /** |
| 139 | * Remove the comment from display |
| 140 | */ |
| 141 | finish():void; |
| 142 | |
| 143 | /** |
| 144 | * Called when the outside container stops |
| 145 | */ |
| 146 | stop():void; |
| 147 | } |
no outgoing calls
no test coverage detected