MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuSVGImage_translate

Function PiuSVGImage_translate

modules/piu/Pebble/piuSVGImage.c:500–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500void PiuSVGImage_translate(xsMachine* the)
501{
502 PiuSVGImage* self = PIU(SVGImage, xsThis);
503 xsIntegerValue c = xsToInteger(xsArgc);
504 (*self)->tx = (c > 0) ? xsToNumber(xsArg(0)) : 0;
505 (*self)->ty = (c > 1) ? xsToNumber(xsArg(1)) : (*self)->tx;
506 (*self)->transforming = 1;
507 PiuSVGImageInvalidate(self, NULL);
508}
509
510void PiuSVGImage_get_tx(xsMachine* the)
511{

Callers

nothing calls this directly

Calls 1

PiuSVGImageInvalidateFunction · 0.85

Tested by

no test coverage detected