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

Function _ctx_graph_strokeStyle

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

Source from the content-addressed store, hash-verified

261var _GRAPH_STROKE1 = null;
262var _GRAPH_STROKE2 = null;
263function _ctx_graph_strokeStyle(clr, ctx) {
264 clr = _parseRGBA(clr);
265 if (clr === undefined) {
266 if (_ctx && _ctx.state && _ctx.state.stroke !== undefined) {
267 clr = _parseRGBA(_ctx.state.stroke);
268 } else {
269 clr = "rgba(0,0,0,1)";
270 }
271 }
272 if (_GRAPH_STROKE1 != clr || _GRAPH_STROKE2 != ctx.strokeStyle) {
273 _GRAPH_STROKE1 = ctx.strokeStyle = clr;
274 _GRAPH_STROKE2 = ctx.strokeStyle;
275 }
276}
277
278function _ctx_graph_lineWidth(w1, w2, ctx) {
279 if (w1 === undefined) {

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…