MCPcopy Index your code
hub / github.com/microsoft/SandDance / offset$1

Function offset$1

docs/app/js/sanddance-app.js:122527–122530  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

122525 context39.clip();
122526}
122527function offset$1(item) {
122528 const sw = value(item.strokeWidth, 1);
122529 return item.strokeOffset != null ? item.strokeOffset : item.stroke && sw > 0.5 && sw < 1.5 ? 0.5 - Math.abs(sw - 1) : 0;
122530}
122531function attr$5(emit3, item) {
122532 emit3("transform", translateItem(item));
122533}

Callers 2

emitRectangleFunction · 0.70
rectanglePathFunction · 0.70

Calls 1

valueFunction · 0.70

Tested by

no test coverage detected