MCPcopy Index your code
hub / github.com/microsoft/SandDance / transformItem

Function transformItem

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

Source from the content-addressed store, hash-verified

122405 return translate(item.x || 0, item.y || 0) + (item.angle ? " " + rotate(item.angle) : "");
122406}
122407function transformItem(item) {
122408 return translate(item.x || 0, item.y || 0) + (item.angle ? " " + rotate(item.angle) : "") + (item.scaleX || item.scaleY ? " " + scale(item.scaleX || 1, item.scaleY || 1) : "");
122409}
122410function markItemPath(type3, shape1, isect) {
122411 function attr1(emit1, item) {
122412 emit1("transform", rotateItem(item));

Callers 1

attr$3Function · 0.70

Calls 3

translateFunction · 0.70
rotateFunction · 0.70
scaleFunction · 0.70

Tested by

no test coverage detected