MCPcopy Index your code
hub / github.com/clips/pattern / _ctx_graph_fillStyle

Function _ctx_graph_fillStyle

pattern/graph/graph.js:246–259  ·  view source on GitHub ↗
(clr, ctx)

Source from the content-addressed store, hash-verified

244var _GRAPH_FILL1 = null;
245var _GRAPH_FILL2 = null;
246function _ctx_graph_fillStyle(clr, ctx) {
247 clr = _parseRGBA(clr);
248 if (clr === undefined) {
249 if (_ctx && _ctx.state && _ctx.state.fill !== undefined) {
250 clr = _parseRGBA(_ctx.state.fill);
251 } else {
252 clr = "rgba(0,0,0,0)";
253 }
254 }
255 if (_GRAPH_FILL1 != clr || _GRAPH_FILL2 != ctx.fillStyle) {
256 _GRAPH_FILL1 = ctx.fillStyle = clr;
257 _GRAPH_FILL2 = ctx.fillStyle;
258 }
259}
260
261var _GRAPH_STROKE1 = null;
262var _GRAPH_STROKE2 = null;

Callers 1

graph.jsFile · 0.85

Calls 1

_parseRGBAFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…