(params:any[])
| 243 | } |
| 244 | |
| 245 | public lineStyle(params:any[]) { |
| 246 | if (params.length < 3) { |
| 247 | throw new Error('Insufficient parameters, expected 3 or more.'); |
| 248 | } |
| 249 | let context:LineContext = this._graphics.line; |
| 250 | context.width = params[0]; |
| 251 | context.color = Unpacker.color(params[1]); |
| 252 | context.alpha = params[2]; |
| 253 | if (params.length > 3) { |
| 254 | context.caps = params[3]; |
| 255 | } |
| 256 | if (params.length > 4) { |
| 257 | context.joints = params[4]; |
| 258 | } |
| 259 | if (params.length > 5) { |
| 260 | context.joints = params[5]; |
| 261 | } |
| 262 | if (this._state.lastPath) { |
| 263 | this.applyStroke(this._state.lastPath, context); |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | public drawPath(params:any[]) { |
| 268 |
nothing calls this directly
no test coverage detected