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

Function doFillPath

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

Source from the content-addressed store, hash-verified

26577 return fill != null && fill !== 'none';
26578 }
26579 function doFillPath(ctx, style) {
26580 if (style.fillOpacity != null && style.fillOpacity !== 1) {
26581 var originalGlobalAlpha = ctx.globalAlpha;
26582 ctx.globalAlpha = style.fillOpacity * style.opacity;
26583 ctx.fill();
26584 ctx.globalAlpha = originalGlobalAlpha;
26585 }
26586 else {
26587 ctx.fill();
26588 }
26589 }
26590 function doStrokePath(ctx, style) {
26591 if (style.strokeOpacity != null && style.strokeOpacity !== 1) {
26592 var originalGlobalAlpha = ctx.globalAlpha;

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…