MCPcopy Create free account
hub / github.com/microsoft/SandDance / draw2

Function draw2

docs/app/js/sanddance-app.js:122419–122427  ·  view source on GitHub ↗
(context35, item)

Source from the content-addressed store, hash-verified

122417 return boundStroke(bounds5, item).translate(item.x || 0, item.y || 0);
122418 }
122419 function draw2(context35, item) {
122420 var x29 = item.x || 0, y28 = item.y || 0, a = item.angle || 0;
122421 context35.translate(x29, y28);
122422 if (a) context35.rotate(a *= DegToRad);
122423 context35.beginPath();
122424 shape1(context35, item);
122425 if (a) context35.rotate(-a);
122426 context35.translate(-x29, -y28);
122427 }
122428 return {
122429 type: type3,
122430 tag: "path",

Callers

nothing calls this directly

Calls 2

translateMethod · 0.45
rotateMethod · 0.45

Tested by

no test coverage detected