MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / click

Function click

lib/web/drags.js:165–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163var checkBox = function (into, w, h, get, setAndGet) {
164 var shapes = into.circle(w / 2, w / 2, w / 2 - 4);
165 var click = function () {
166 var v = setAndGet(!get());
167 shapes.animate({
168 "fill-opacity": (v ? 0.5 : 0)
169 }, 50);
170
171 if (v)
172 shapes.attr({"stroke-dasharray": ""});
173 else
174 shapes.attr({"stroke-dasharray": "-"})
175
176 };
177
178 var initial = get();
179

Callers

nothing calls this directly

Calls 3

animateMethod · 0.80
getFunction · 0.70
attrMethod · 0.45

Tested by

no test coverage detected