MCPcopy Index your code
hub / github.com/jabbany/CommentCoreLibrary / lineStyle

Method lineStyle

src/scripting/host/Unpacker/Shape.ts:245–265  ·  view source on GitHub ↗
(params:any[])

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

applyStrokeMethod · 0.95
colorMethod · 0.45

Tested by

no test coverage detected