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

Function PiuSVGImage_scale

modules/piu/Pebble/piuSVGImage.c:448–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448void PiuSVGImage_scale(xsMachine* the)
449{
450 PiuSVGImage* self = PIU(SVGImage, xsThis);
451 xsIntegerValue c = xsToInteger(xsArgc);
452 (*self)->sx = (c > 0) ? xsToNumber(xsArg(0)) : 1;
453 (*self)->sy = (c > 1) ? xsToNumber(xsArg(1)) : (*self)->sx;
454 (*self)->transforming = 1;
455 PiuSVGImageInvalidate(self, NULL);
456}
457
458void PiuSVGImage_get_s(xsMachine* the)
459{

Callers

nothing calls this directly

Calls 1

PiuSVGImageInvalidateFunction · 0.85

Tested by

no test coverage detected