MCPcopy Index your code
hub / github.com/nodegui/react-nodegui / setAspectRatioMode

Method setAspectRatioMode

src/components/Image/RNImage.ts:101–105  ·  view source on GitHub ↗
(mode: AspectRatioMode)

Source from the content-addressed store, hash-verified

99 this.originalPixmap = pixmap;
100 };
101 setAspectRatioMode(mode: AspectRatioMode) {
102 // react:✓ TODO://getter
103 this.aspectRatioMode = mode;
104 this.scalePixmap(this.size());
105 }
106 setTransformationMode(mode: TransformationMode) {
107 // react:✓ TODO://getter
108 this.transformationMode = mode;

Callers 1

aspectRatioModeFunction · 0.80

Calls 1

scalePixmapMethod · 0.95

Tested by

no test coverage detected