MCPcopy
hub / github.com/tdewolff/minify / doStrokePath

Function doStrokePath

_benchmarks/sample_echarts.js:26590–26600  ·  view source on GitHub ↗
(ctx, style)

Source from the content-addressed store, hash-verified

26588 }
26589 }
26590 function doStrokePath(ctx, style) {
26591 if (style.strokeOpacity != null && style.strokeOpacity !== 1) {
26592 var originalGlobalAlpha = ctx.globalAlpha;
26593 ctx.globalAlpha = style.strokeOpacity * style.opacity;
26594 ctx.stroke();
26595 ctx.globalAlpha = originalGlobalAlpha;
26596 }
26597 else {
26598 ctx.stroke();
26599 }
26600 }
26601 function createCanvasPattern(ctx, pattern, el) {
26602 var image = createOrUpdateImage(pattern.image, pattern.__image, el);
26603 if (isImageReady(image)) {

Callers 1

brushPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…