Home
last modified time | relevance | path

Searched refs:scale (Results 1 – 25 of 685) sorted by relevance

12345678910>>...28

/expo/ios/vendored/sdk47/react-native-svg/apple/Utils/
H A DABI47_0_0RNSVGViewBox.mm40 // Initialize scale-x to e-width/vb-width.
43 // Initialize scale-y to e-height/vb-height.
53 // Let scale be set the smaller value of scale-x and scale-y.
54 // Assign scale-x and scale-y to scale.
57 // If scale is greater than 1
58 if (scale > 1) {
61 translateX -= (eWidth / scale - vbWidth) / 2;
64 translateX -= (eWidth - vbWidth * scale) / 2;
68 …// If align is not 'none' and meetOrSlice is 'meet', set the larger of scale-x and scale-y to the …
69 …e, if align is not 'none' and meetOrSlice is 'slice', set the smaller of scale-x and scale-y to the
[all …]
/expo/ios/vendored/sdk49/react-native-svg/apple/Utils/
H A DABI49_0_0RNSVGViewBox.mm40 // Initialize scale-x to e-width/vb-width.
43 // Initialize scale-y to e-height/vb-height.
53 // Let scale be set the smaller value of scale-x and scale-y.
54 // Assign scale-x and scale-y to scale.
57 // If scale is greater than 1
58 if (scale > 1) {
61 translateX -= (eWidth / scale - vbWidth) / 2;
64 translateX -= (eWidth - vbWidth * scale) / 2;
68 …// If align is not 'none' and meetOrSlice is 'meet', set the larger of scale-x and scale-y to the …
69 …e, if align is not 'none' and meetOrSlice is 'slice', set the smaller of scale-x and scale-y to the
[all …]
/expo/ios/vendored/unversioned/react-native-svg/apple/Utils/
H A DRNSVGViewBox.mm40 // Initialize scale-x to e-width/vb-width.
43 // Initialize scale-y to e-height/vb-height.
53 // Let scale be set the smaller value of scale-x and scale-y.
54 // Assign scale-x and scale-y to scale.
57 // If scale is greater than 1
58 if (scale > 1) {
61 translateX -= (eWidth / scale - vbWidth) / 2;
64 translateX -= (eWidth - vbWidth * scale) / 2;
68 …// If align is not 'none' and meetOrSlice is 'meet', set the larger of scale-x and scale-y to the …
69 …e, if align is not 'none' and meetOrSlice is 'slice', set the smaller of scale-x and scale-y to the
[all …]
/expo/ios/vendored/sdk48/react-native-svg/apple/Utils/
H A DABI48_0_0RNSVGViewBox.mm40 // Initialize scale-x to e-width/vb-width.
43 // Initialize scale-y to e-height/vb-height.
53 // Let scale be set the smaller value of scale-x and scale-y.
54 // Assign scale-x and scale-y to scale.
57 // If scale is greater than 1
58 if (scale > 1) {
61 translateX -= (eWidth / scale - vbWidth) / 2;
64 translateX -= (eWidth - vbWidth * scale) / 2;
68 …// If align is not 'none' and meetOrSlice is 'meet', set the larger of scale-x and scale-y to the …
69 …e, if align is not 'none' and meetOrSlice is 'slice', set the smaller of scale-x and scale-y to the
[all …]
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/ReactCommon/react/renderer/components/image/
H A DABI48_0_0ImageShadowNode.cpp55 auto scale = layoutMetrics.pointScaleFactor; in getImageSource() local
60 source.scale = scale; in getImageSource()
64 auto targetImageArea = size.width * size.height * scale * scale; in getImageSource()
71 auto sourceScale = source.scale == 0 ? scale : source.scale; in getImageSource()
84 bestSource.scale = scale; in getImageSource()
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/ReactCommon/react/renderer/components/image/
H A DABI47_0_0ImageShadowNode.cpp56 auto scale = layoutMetrics.pointScaleFactor; in getImageSource() local
61 source.scale = scale; in getImageSource()
65 auto targetImageArea = size.width * size.height * scale * scale; in getImageSource()
72 auto sourceScale = source.scale == 0 ? scale : source.scale; in getImageSource()
85 bestSource.scale = scale; in getImageSource()
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/ReactCommon/react/renderer/components/image/
H A DABI49_0_0ImageShadowNode.cpp55 auto scale = layoutMetrics.pointScaleFactor; in getImageSource() local
60 source.scale = scale; in getImageSource()
64 auto targetImageArea = size.width * size.height * scale * scale; in getImageSource()
71 auto sourceScale = source.scale == 0 ? scale : source.scale; in getImageSource()
84 bestSource.scale = scale; in getImageSource()
/expo/packages/expo-image/ios/
H A DImageUtils.swift63 …ntainerSize.width < contentPixelSize.width / scale || containerSize.height < contentPixelSize.heig… in idealSize()
69 return contentPixelSize / scale in idealSize()
72 return contentPixelSize / scale in idealSize()
79 func shouldDownscale(image: UIImage, toSize size: CGSize, scale: Double) -> Bool { in shouldDownscale()
89 let imageSize = image.size * image.scale in shouldDownscale()
90 return imageSize.width > (size.width * scale) && imageSize.height > (size.height * scale) in shouldDownscale()
101 return resize(image: image, toSize: size, scale: scale) in resize()
110 return resize(image: image, toSize: size, scale: scale) in resize()
116 func resize(image: UIImage, toSize size: CGSize, scale: Double) -> UIImage { in resize()
118 format.scale = scale in resize()
[all …]
/expo/ios/versioned/sdk49/ExpoImage/
H A DImageUtils.swift63 …ntainerSize.width < contentPixelSize.width / scale || containerSize.height < contentPixelSize.heig… in idealSize()
69 return contentPixelSize / scale in idealSize()
72 return contentPixelSize / scale in idealSize()
79 func shouldDownscale(image: UIImage, toSize size: CGSize, scale: Double) -> Bool { in shouldDownscale()
89 let imageSize = image.size * image.scale in shouldDownscale()
90 return imageSize.width > (size.width * scale) && imageSize.height > (size.height * scale) in shouldDownscale()
101 return resize(image: image, toSize: size, scale: scale) in resize()
110 return resize(image: image, toSize: size, scale: scale) in resize()
116 func resize(image: UIImage, toSize size: CGSize, scale: Double) -> UIImage { in resize()
118 format.scale = scale in resize()
[all …]
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/React/Base/
H A DABI49_0_0RCTImageSource.m19 - (instancetype)initWithURLRequest:(NSURLRequest *)request size:(CGSize)size scale:(CGFloat)scale
24 _scale = scale;
29 - (instancetype)imageSourceWithSize:(CGSize)size scale:(CGFloat)scale
31 …*imageSource = [[ABI49_0_0RCTImageSource alloc] initWithURLRequest:_request size:size scale:scale];
41 return [_request isEqual:object.request] && _scale == object.scale &&
47 return [NSString stringWithFormat:@"<ABI49_0_0RCTImageSource: %p URL=%@, size=%@, scale=%0.f>",
66 CGFloat scale = 1.0;
73 scale = [self CGFloat:json[@"scale"]] ?: [self BOOL:json[@"deprecated"]] ? 0.0 : 1.0;
82 … *imageSource = [[ABI49_0_0RCTImageSource alloc] initWithURLRequest:request size:size scale:scale];
H A DABI49_0_0RCTImageSource.h19 @property (nonatomic, assign, readonly) CGFloat scale;
26 - (instancetype)initWithURLRequest:(NSURLRequest *)request size:(CGSize)size scale:(CGFloat)scale;
31 - (instancetype)imageSourceWithSize:(CGSize)size scale:(CGFloat)scale;
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/React/Base/
H A DABI48_0_0RCTImageSource.m19 - (instancetype)initWithURLRequest:(NSURLRequest *)request size:(CGSize)size scale:(CGFloat)scale
24 _scale = scale;
29 - (instancetype)imageSourceWithSize:(CGSize)size scale:(CGFloat)scale
31 …*imageSource = [[ABI48_0_0RCTImageSource alloc] initWithURLRequest:_request size:size scale:scale];
41 return [_request isEqual:object.request] && _scale == object.scale &&
47 return [NSString stringWithFormat:@"<ABI48_0_0RCTImageSource: %p URL=%@, size=%@, scale=%0.f>",
66 CGFloat scale = 1.0;
73 scale = [self CGFloat:json[@"scale"]] ?: [self BOOL:json[@"deprecated"]] ? 0.0 : 1.0;
82 … *imageSource = [[ABI48_0_0RCTImageSource alloc] initWithURLRequest:request size:size scale:scale];
H A DABI48_0_0RCTImageSource.h19 @property (nonatomic, assign, readonly) CGFloat scale;
26 - (instancetype)initWithURLRequest:(NSURLRequest *)request size:(CGSize)size scale:(CGFloat)scale;
31 - (instancetype)imageSourceWithSize:(CGSize)size scale:(CGFloat)scale;
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/React/Base/
H A DABI47_0_0RCTImageSource.m19 - (instancetype)initWithURLRequest:(NSURLRequest *)request size:(CGSize)size scale:(CGFloat)scale
24 _scale = scale;
29 - (instancetype)imageSourceWithSize:(CGSize)size scale:(CGFloat)scale
31 …*imageSource = [[ABI47_0_0RCTImageSource alloc] initWithURLRequest:_request size:size scale:scale];
41 return [_request isEqual:object.request] && _scale == object.scale &&
47 return [NSString stringWithFormat:@"<ABI47_0_0RCTImageSource: %p URL=%@, size=%@, scale=%0.f>",
66 CGFloat scale = 1.0;
73 scale = [self CGFloat:json[@"scale"]] ?: [self BOOL:json[@"deprecated"]] ? 0.0 : 1.0;
82 … *imageSource = [[ABI47_0_0RCTImageSource alloc] initWithURLRequest:request size:size scale:scale];
H A DABI47_0_0RCTImageSource.h19 @property (nonatomic, assign, readonly) CGFloat scale;
26 - (instancetype)initWithURLRequest:(NSURLRequest *)request size:(CGSize)size scale:(CGFloat)scale;
31 - (instancetype)imageSourceWithSize:(CGSize)size scale:(CGFloat)scale;
/expo/packages/@expo/cli/src/export/
H A DpersistMetroAssets.ts22 asset.scales.forEach((scale, idx) => {
23 if (!validScales.has(scale)) {
27 const dest = path.join(outputDirectory, getAssetLocalPath(asset, { scale, basePath }));
81 const result = scales.filter((scale) => whitelist.includes(scale));
87 for (const scale of scales) { constant
88 if (scale > maxScale) {
89 result.push(scale);
104 { basePath, scale }: { basePath?: string; scale: number }
106 const suffix = scale === 1 ? '' : `@${scale}x`;
/expo/ios/versioned/sdk48/ExpoImage/
H A DImageUtils.swift63 …ntainerSize.width < contentPixelSize.width / scale || containerSize.height < contentPixelSize.heig… in idealSize()
69 return contentPixelSize / scale in idealSize()
72 return contentPixelSize / scale in idealSize()
79 func shouldDownscale(image: UIImage, toSize size: CGSize, scale: Double) -> Bool { in shouldDownscale()
89 let imageSize = image.size * image.scale in shouldDownscale()
96 func resize(animatedImage image: UIImage, toSize size: CGSize, scale: Double) async -> UIImage { in resize()
101 return resize(image: image, toSize: size, scale: scale) in resize()
110 return resize(image: image, toSize: size, scale: scale) in resize()
116 func resize(image: UIImage, toSize size: CGSize, scale: Double) -> UIImage { in resize()
118 format.scale = scale in resize()
[all …]
/expo/packages/expo-updates/scripts/
H A DfilterPlatformAssetScales.js12 const result = scales.filter(scale => whitelist.indexOf(scale) > -1);
18 for (const scale of scales) {
19 if (scale > maxScale) {
20 result.push(scale);
/expo/packages/expo-dev-client-components/src/
H A DView.tsx6 scale,
181 micro: { width: scale.micro, flex: 0 },
182 tiny: { width: scale.tiny, flex: 0 },
183 small: { width: scale.small, flex: 0 },
186 xl: { width: scale.xl, flex: 0 },
205 tiny: { height: scale.tiny, flex: 0 },
209 xl: { height: scale.xl, flex: 0 },
268 width: scale.small,
269 height: scale.small,
272 width: scale.medium,
[all …]
/expo/android/vendored/sdk47/react-native-svg/android/src/main/java/abi47_0_0/com/horcrux/svg/
H A DRNSVGRenderableManager.java50 float scale = svg.mScale; in isPointInFill() local
75 float scale = svg.mScale; in isPointInStroke() local
76 int x = (int) (options.getDouble("x") * scale); in isPointInStroke()
123 float scale = svg.mScale; in getPointAtLength() local
132 result.putDouble("x", pos[0] / scale); in getPointAtLength()
133 result.putDouble("y", pos[1] / scale); in getPointAtLength()
158 float scale = svg.mScale; in getBBox() local
181 result.putDouble("x", bounds.left / scale); in getBBox()
182 result.putDouble("y", bounds.top / scale); in getBBox()
196 float scale = svg.mScale; in getCTM() local
[all …]
H A DBrush.java121 double x = getVal(mPoints[0], width, scale, textSize); in setupPaint()
122 double y = getVal(mPoints[1], height, scale, textSize); in setupPaint()
123 double w = getVal(mPoints[2], width, scale, textSize); in setupPaint()
124 double h = getVal(mPoints[3], height, scale, textSize); in setupPaint()
142 canvas.scale(width / scale, height / scale); in setupPaint()
181 double x1 = getVal(mPoints[0], width, scale, textSize) + offsetX; in setupPaint()
182 double y1 = getVal(mPoints[1], height, scale, textSize) + offsetY; in setupPaint()
183 double x2 = getVal(mPoints[2], width, scale, textSize) + offsetX; in setupPaint()
204 double rx = getVal(mPoints[2], width, scale, textSize); in setupPaint()
205 double ry = getVal(mPoints[3], height, scale, textSize); in setupPaint()
[all …]
/expo/android/vendored/sdk48/react-native-svg/android/src/main/java/abi48_0_0/com/horcrux/svg/
H A DRNSVGRenderableManager.java50 float scale = svg.mScale; in isPointInFill() local
75 float scale = svg.mScale; in isPointInStroke() local
76 int x = (int) (options.getDouble("x") * scale); in isPointInStroke()
123 float scale = svg.mScale; in getPointAtLength() local
132 result.putDouble("x", pos[0] / scale); in getPointAtLength()
133 result.putDouble("y", pos[1] / scale); in getPointAtLength()
158 float scale = svg.mScale; in getBBox() local
181 result.putDouble("x", bounds.left / scale); in getBBox()
182 result.putDouble("y", bounds.top / scale); in getBBox()
196 float scale = svg.mScale; in getCTM() local
[all …]
H A DBrush.java121 double x = getVal(mPoints[0], width, scale, textSize); in setupPaint()
122 double y = getVal(mPoints[1], height, scale, textSize); in setupPaint()
123 double w = getVal(mPoints[2], width, scale, textSize); in setupPaint()
124 double h = getVal(mPoints[3], height, scale, textSize); in setupPaint()
142 canvas.scale(width / scale, height / scale); in setupPaint()
181 double x1 = getVal(mPoints[0], width, scale, textSize) + offsetX; in setupPaint()
182 double y1 = getVal(mPoints[1], height, scale, textSize) + offsetY; in setupPaint()
183 double x2 = getVal(mPoints[2], width, scale, textSize) + offsetX; in setupPaint()
204 double rx = getVal(mPoints[2], width, scale, textSize); in setupPaint()
205 double ry = getVal(mPoints[3], height, scale, textSize); in setupPaint()
[all …]
/expo/android/vendored/unversioned/react-native-svg/android/src/main/java/com/horcrux/svg/
H A DBrush.java121 double x = getVal(mPoints[0], width, scale, textSize); in setupPaint()
122 double y = getVal(mPoints[1], height, scale, textSize); in setupPaint()
123 double w = getVal(mPoints[2], width, scale, textSize); in setupPaint()
124 double h = getVal(mPoints[3], height, scale, textSize); in setupPaint()
142 canvas.scale(width / scale, height / scale); in setupPaint()
181 double x1 = getVal(mPoints[0], width, scale, textSize) + offsetX; in setupPaint()
182 double y1 = getVal(mPoints[1], height, scale, textSize) + offsetY; in setupPaint()
183 double x2 = getVal(mPoints[2], width, scale, textSize) + offsetX; in setupPaint()
204 double rx = getVal(mPoints[2], width, scale, textSize); in setupPaint()
205 double ry = getVal(mPoints[3], height, scale, textSize); in setupPaint()
[all …]
/expo/android/vendored/sdk49/react-native-svg/android/src/main/java/abi49_0_0/com/horcrux/svg/
H A DBrush.java121 double x = getVal(mPoints[0], width, scale, textSize); in setupPaint()
122 double y = getVal(mPoints[1], height, scale, textSize); in setupPaint()
123 double w = getVal(mPoints[2], width, scale, textSize); in setupPaint()
124 double h = getVal(mPoints[3], height, scale, textSize); in setupPaint()
142 canvas.scale(width / scale, height / scale); in setupPaint()
181 double x1 = getVal(mPoints[0], width, scale, textSize) + offsetX; in setupPaint()
182 double y1 = getVal(mPoints[1], height, scale, textSize) + offsetY; in setupPaint()
183 double x2 = getVal(mPoints[2], width, scale, textSize) + offsetX; in setupPaint()
204 double rx = getVal(mPoints[2], width, scale, textSize); in setupPaint()
205 double ry = getVal(mPoints[3], height, scale, textSize); in setupPaint()
[all …]

12345678910>>...28