| /expo/packages/expo-image-manipulator/src/actions/ |
| H A D | CropAction.web.ts | 8 let { originX = 0, originY = 0, width = 0, height = 0 } = options; 12 height = clamp(height, canvas.height); 14 originY = clamp(originY, canvas.height); 18 height = Math.min(originY + height, canvas.height) - originY; 20 if (width === 0 || height === 0) { 29 result.height = height; 32 context.drawImage(canvas, originX, originY, width, height, 0, 0, width, height);
|
| H A D | RotateAction.web.ts | 6 height: number, 8 ): { width: number; height: number } { 18 return { width: height * s + width * c, height: height * c + width * s }; 22 const { width, height } = sizeFromAngle(canvas.width, canvas.height, degrees); constant 26 result.height = height; 31 context.translate(result.width / 2, result.height / 2); 38 context.drawImage(canvas, -canvas.width / 2, -canvas.height / 2, canvas.width, canvas.height);
|
| H A D | ResizeAction.web.ts | 16 height: number, 21 result.height = canvas.height; 24 const heightSource = canvas.height; 26 height = Math.round(height); 29 const hRatio = heightSource / height; 36 const img2 = ctx.createImageData(width, height); 40 for (let j = 0; j < height; j++) { 92 result.height = height; 103 const imageRatio = canvas.width / canvas.height; 111 if (height !== undefined) { [all …]
|
| /expo/packages/expo-image-manipulator/build/actions/ |
| H A D | CropAction.web.js | 5 let { originX = 0, originY = 0, width = 0, height = 0 } = options; 9 height = clamp(height, canvas.height); 11 originY = clamp(originY, canvas.height); 14 height = Math.min(originY + height, canvas.height) - originY; 15 if (width === 0 || height === 0) { 20 result.height = height; 22 context.drawImage(canvas, originX, originY, width, height, 0, 0, width, height);
|
| H A D | RotateAction.web.js | 2 function sizeFromAngle(width, height, angle) { argument 12 return { width: height * s + width * c, height: height * c + width * s }; 15 const { width, height } = sizeFromAngle(canvas.width, canvas.height, degrees); 18 result.height = height; 21 context.translate(result.width / 2, result.height / 2); 26 context.drawImage(canvas, -canvas.width / 2, -canvas.height / 2, canvas.width, canvas.height);
|
| H A D | ResizeAction.web.js | 14 result.height = canvas.height; 16 const heightSource = canvas.height; 18 height = Math.round(height); 20 const hRatio = heightSource / height; 25 const img2 = ctx.createImageData(width, height); 28 for (let j = 0; j < height; j++) { 79 result.height = height; 86 export default (canvas, { width, height }) => { 87 const imageRatio = canvas.width / canvas.height; 94 if (height !== undefined) { [all …]
|
| /expo/android/vendored/unversioned/@shopify/react-native-skia/cpp/rnskia/dom/props/ |
| H A D | ImageProps.h | 100 auto sy = dst.height() / src.height(); in rect2rect() 126 auto halfHeightDelta = (rect.height() - size.height()) / 2.0; in inscribe() 146 if (output.width() / output.height() > src.width() / src.height()) { in applyBoxFit() 147 dst = size((src.width() * output.height()) / src.height(), in applyBoxFit() 154 if (output.width() / output.height() > input.width() / input.height()) { in applyBoxFit() 158 src = size((input.height() * output.width()) / output.height(), in applyBoxFit() 167 src = size((input.height() * output.width()) / output.height(), in applyBoxFit() 170 size((src.width() * output.height()) / src.height(), output.height()); in applyBoxFit() 173 std::min(input.height(), output.height())); in applyBoxFit() 179 if (dst.height() > output.height()) { in applyBoxFit() [all …]
|
| /expo/ios/vendored/unversioned/@shopify/react-native-skia/cpp/rnskia/dom/props/ |
| H A D | ImageProps.h | 100 auto sy = dst.height() / src.height(); in rect2rect() 126 auto halfHeightDelta = (rect.height() - size.height()) / 2.0; in inscribe() 146 if (output.width() / output.height() > src.width() / src.height()) { in applyBoxFit() 147 dst = size((src.width() * output.height()) / src.height(), in applyBoxFit() 154 if (output.width() / output.height() > input.width() / input.height()) { in applyBoxFit() 158 src = size((input.height() * output.width()) / output.height(), in applyBoxFit() 167 src = size((input.height() * output.width()) / output.height(), in applyBoxFit() 170 size((src.width() * output.height()) / src.height(), output.height()); in applyBoxFit() 173 std::min(input.height(), output.height())); in applyBoxFit() 179 if (dst.height() > output.height()) { in applyBoxFit() [all …]
|
| /expo/ios/vendored/sdk48/@shopify/react-native-skia/cpp/rnskia/dom/props/ |
| H A D | ImageProps.h | 83 auto sy = dst.height() / src.height(); in rect2rect() 109 auto halfHeightDelta = (rect.height() - size.height()) / 2.0; in inscribe() 129 if (output.width() / output.height() > src.width() / src.height()) { in applyBoxFit() 130 dst = size((src.width() * output.height()) / src.height(), in applyBoxFit() 137 if (output.width() / output.height() > input.width() / input.height()) { in applyBoxFit() 141 src = size((input.height() * output.width()) / output.height(), in applyBoxFit() 150 src = size((input.height() * output.width()) / output.height(), in applyBoxFit() 153 size((src.width() * output.height()) / src.height(), output.height()); in applyBoxFit() 156 std::min(input.height(), output.height())); in applyBoxFit() 162 if (dst.height() > output.height()) { in applyBoxFit() [all …]
|
| /expo/android/vendored/sdk49/@shopify/react-native-skia/cpp/rnskia/dom/props/ |
| H A D | ImageProps.h | 100 auto sy = dst.height() / src.height(); in rect2rect() 126 auto halfHeightDelta = (rect.height() - size.height()) / 2.0; in inscribe() 146 if (output.width() / output.height() > src.width() / src.height()) { in applyBoxFit() 147 dst = size((src.width() * output.height()) / src.height(), in applyBoxFit() 154 if (output.width() / output.height() > input.width() / input.height()) { in applyBoxFit() 158 src = size((input.height() * output.width()) / output.height(), in applyBoxFit() 167 src = size((input.height() * output.width()) / output.height(), in applyBoxFit() 170 size((src.width() * output.height()) / src.height(), output.height()); in applyBoxFit() 173 std::min(input.height(), output.height())); in applyBoxFit() 179 if (dst.height() > output.height()) { in applyBoxFit() [all …]
|
| /expo/ios/vendored/sdk49/@shopify/react-native-skia/cpp/rnskia/dom/props/ |
| H A D | ImageProps.h | 100 auto sy = dst.height() / src.height(); in rect2rect() 126 auto halfHeightDelta = (rect.height() - size.height()) / 2.0; in inscribe() 146 if (output.width() / output.height() > src.width() / src.height()) { in applyBoxFit() 147 dst = size((src.width() * output.height()) / src.height(), in applyBoxFit() 154 if (output.width() / output.height() > input.width() / input.height()) { in applyBoxFit() 158 src = size((input.height() * output.width()) / output.height(), in applyBoxFit() 167 src = size((input.height() * output.width()) / output.height(), in applyBoxFit() 170 size((src.width() * output.height()) / src.height(), output.height()); in applyBoxFit() 173 std::min(input.height(), output.height())); in applyBoxFit() 179 if (dst.height() > output.height()) { in applyBoxFit() [all …]
|
| /expo/android/vendored/sdk48/@shopify/react-native-skia/cpp/rnskia/dom/props/ |
| H A D | ImageProps.h | 83 auto sy = dst.height() / src.height(); in rect2rect() 109 auto halfHeightDelta = (rect.height() - size.height()) / 2.0; in inscribe() 129 if (output.width() / output.height() > src.width() / src.height()) { in applyBoxFit() 130 dst = size((src.width() * output.height()) / src.height(), in applyBoxFit() 137 if (output.width() / output.height() > input.width() / input.height()) { in applyBoxFit() 141 src = size((input.height() * output.width()) / output.height(), in applyBoxFit() 150 src = size((input.height() * output.width()) / output.height(), in applyBoxFit() 153 size((src.width() * output.height()) / src.height(), output.height()); in applyBoxFit() 156 std::min(input.height(), output.height())); in applyBoxFit() 162 if (dst.height() > output.height()) { in applyBoxFit() [all …]
|
| /expo/apps/native-component-list/src/constants/ |
| H A D | ComparisonImages.ts | 15 height: 12, 21 blurhash: { blurhash: 'LmLg9W-oNGt7~Cs.ofWC4:RkfRR*', width: 18, height: 12 }, 26 blurhash: { blurhash: 'LMBDA}MxIoV@pyM{V?WUKmV?wHoz', width: 18, height: 12 }, 31 blurhash: { blurhash: 'L00000fQfQfQfQfQfQfQfQfQfQfQ', width: 18, height: 12 }, 40 height: 12, 46 blurhash: { blurhash: 'T#H{NaxuWA?wWVoLRkV?ofE3ogoJ', width: 18, height: 12 }, 51 blurhash: { blurhash: 'T15#kc9urWu6aeWB00^PTKL#ogt8', width: 18, height: 12 }, 56 blurhash: { blurhash: 'TMK+#~xt00c[Sizn0=NKkPIFWBtk', width: 18, height: 12 }, 74 height: 12, 83 height: 12, [all …]
|
| /expo/android/expoview/src/main/java/versioned/host/exp/exponent/modules/api/components/picker/ |
| H A D | ReactPickerLocalData.java | 4 private final int height; field in ReactPickerLocalData 6 public ReactPickerLocalData(int height) { in ReactPickerLocalData() argument 7 this.height = height; in ReactPickerLocalData() 11 return height; in getHeight() 19 return height == that.height; in equals() 24 return 31 + height; in hashCode() 30 "height=" + height + in toString()
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/host/exp/exponent/modules/api/components/picker/ |
| H A D | ReactPickerLocalData.java | 4 private final int height; field in ReactPickerLocalData 6 public ReactPickerLocalData(int height) { in ReactPickerLocalData() argument 7 this.height = height; in ReactPickerLocalData() 11 return height; in getHeight() 19 return height == that.height; in equals() 24 return 31 + height; in hashCode() 30 "height=" + height + in toString()
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/host/exp/exponent/modules/api/components/picker/ |
| H A D | ReactPickerLocalData.java | 4 private final int height; field in ReactPickerLocalData 6 public ReactPickerLocalData(int height) { in ReactPickerLocalData() argument 7 this.height = height; in ReactPickerLocalData() 11 return height; in getHeight() 19 return height == that.height; in equals() 24 return 31 + height; in hashCode() 30 "height=" + height + in toString()
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/host/exp/exponent/modules/api/components/picker/ |
| H A D | ReactPickerLocalData.java | 4 private final int height; field in ReactPickerLocalData 6 public ReactPickerLocalData(int height) { in ReactPickerLocalData() argument 7 this.height = height; in ReactPickerLocalData() 11 return height; in getHeight() 19 return height == that.height; in equals() 24 return 31 + height; in hashCode() 30 "height=" + height + in toString()
|
| /expo/.github/resources/ |
| H A D | expo-device.svg | 3 <rect width="48" height="48" rx="10" fill="#BD8B60"/> 9 <rect x="20" y="19.8838" width="2" height="2" rx="0.5" fill="white"/> 10 <rect x="20" y="19.8838" width="2" height="2" rx="0.5" fill="white"/> 11 <rect x="20" y="19.8838" width="2" height="2" rx="0.5" fill="white"/> 12 <rect x="23" y="19.8838" width="2" height="2" rx="0.5" fill="white"/> 13 <rect x="23" y="19.8838" width="2" height="2" rx="0.5" fill="white"/> 14 <rect x="23" y="19.8838" width="2" height="2" rx="0.5" fill="white"/> 15 <rect x="26" y="19.8838" width="2" height="2" rx="0.5" fill="white"/> 16 <rect x="26" y="19.8838" width="2" height="2" rx="0.5" fill="white"/> 17 <rect x="26" y="19.8838" width="2" height="2" rx="0.5" fill="white"/> [all …]
|
| /expo/packages/expo-print/ios/ |
| H A D | PrintOptions.swift | 22 var height: Float? variable 42 let kLetterPaperSize = CGSize(width: 612, height: 792) 46 var paperSize = CGSize(width: kLetterPaperSize.width, height: kLetterPaperSize.height) in toPageSize() 51 if let height = height { in toPageSize() variable 52 paperSize.height = CGFloat(height) in toPageSize() 55 …if let orientation = self.orientation, orientation == "landscape" && paperSize.height > paperSize.… in toPageSize() 56 paperSize = CGSize(width: paperSize.height, height: paperSize.width) in toPageSize() 80 height: pageSize.height - pageMargins.top - pageMargins.bottom in toPrintableRect()
|
| /expo/ios/versioned/sdk49/ExpoPrint/ |
| H A D | PrintOptions.swift | 22 var height: Float? variable 42 let kLetterPaperSize = CGSize(width: 612, height: 792) 46 var paperSize = CGSize(width: kLetterPaperSize.width, height: kLetterPaperSize.height) in toPageSize() 51 if let height = height { in toPageSize() variable 52 paperSize.height = CGFloat(height) in toPageSize() 55 …if let orientation = self.orientation, orientation == "landscape" && paperSize.height > paperSize.… in toPageSize() 56 paperSize = CGSize(width: paperSize.height, height: paperSize.width) in toPageSize() 80 height: pageSize.height - pageMargins.top - pageMargins.bottom in toPrintableRect()
|
| /expo/packages/expo-linear-gradient/build/ |
| H A D | NativeLinearGradient.web.js | 5 const [{ height, width }, setLayout] = React.useState({ 6 height: 1, property 12 … return getLinearGradientBackgroundImage(colors, locations, startPoint, endPoint, width, height); 13 }, [colors, locations, startPoint, endPoint, width, height]); 19 const { width, height } = event.nativeEvent.layout; 22 if (width !== oldLayout.width || height !== oldLayout.height) { 23 return { height, width }; 37 const angle = calculatePseudoAngle(width, height, startPoint, endPoint); 40 function calculatePseudoAngle(width, height, startPoint, endPoint) { argument 61 start[1] *= height; [all …]
|
| /expo/packages/expo-image/build/utils/blurhash/ |
| H A D | useBlurhash.js | 9 height: 32, property 18 …lurhash.uri, blurhash?.width ?? DEFAULT_SIZE.width, blurhash?.height ?? DEFAULT_SIZE.height, punch… 21 canvas.height = blurhash?.height ?? DEFAULT_SIZE.height; 23 …xt.createImageData(blurhash?.width ?? DEFAULT_SIZE.width, blurhash?.height ?? DEFAULT_SIZE.height); 45 }, [blurhash?.uri, blurhash?.height, blurhash?.width, punch]);
|
| /expo/packages/expo-image/ios/ |
| H A D | ImageUtils.swift | 55 …= min(containerSize.width / contentPixelSize.width, containerSize.height / contentPixelSize.height) in idealSize() 58 …= max(containerSize.width / contentPixelSize.width, containerSize.height / contentPixelSize.height) in idealSize() 63 …ize.width < contentPixelSize.width / scale || containerSize.height < contentPixelSize.height / sca… in idealSize() 65 …= min(containerSize.width / contentPixelSize.width, containerSize.height / contentPixelSize.height) in idealSize() 80 if size.width <= 0 || size.height <= 0 { in shouldDownscale() 85 if size.width.isInfinite || size.height.isInfinite { in shouldDownscale() 90 return imageSize.width > (size.width * scale) && imageSize.height > (size.height * scale) in shouldDownscale() 133 if size.width <= 0 || size.height <= 0 { in getBestSource() 171 return CGSize(width: size.width * scalar, height: size.height * scalar) in *() 178 return CGSize(width: size.width / scalar, height: size.height / scalar) in /() [all …]
|
| /expo/ios/versioned/sdk49/ExpoImage/ |
| H A D | ImageUtils.swift | 55 …= min(containerSize.width / contentPixelSize.width, containerSize.height / contentPixelSize.height) in idealSize() 58 …= max(containerSize.width / contentPixelSize.width, containerSize.height / contentPixelSize.height) in idealSize() 63 …ize.width < contentPixelSize.width / scale || containerSize.height < contentPixelSize.height / sca… in idealSize() 65 …= min(containerSize.width / contentPixelSize.width, containerSize.height / contentPixelSize.height) in idealSize() 80 if size.width <= 0 || size.height <= 0 { in shouldDownscale() 85 if size.width.isInfinite || size.height.isInfinite { in shouldDownscale() 90 return imageSize.width > (size.width * scale) && imageSize.height > (size.height * scale) in shouldDownscale() 133 if size.width <= 0 || size.height <= 0 { in getBestSource() 171 return CGSize(width: size.width * scalar, height: size.height * scalar) in *() 178 return CGSize(width: size.width / scalar, height: size.height / scalar) in /() [all …]
|
| /expo/ios/versioned/sdk48/ExpoImage/ |
| H A D | ImageUtils.swift | 55 …= min(containerSize.width / contentPixelSize.width, containerSize.height / contentPixelSize.height) in idealSize() 58 …= max(containerSize.width / contentPixelSize.width, containerSize.height / contentPixelSize.height) in idealSize() 63 …ize.width < contentPixelSize.width / scale || containerSize.height < contentPixelSize.height / sca… in idealSize() 65 …= min(containerSize.width / contentPixelSize.width, containerSize.height / contentPixelSize.height) in idealSize() 80 if size.width <= 0 || size.height <= 0 { in shouldDownscale() 85 if size.width.isInfinite || size.height.isInfinite { in shouldDownscale() 90 return imageSize.width > size.width && imageSize.height > size.height in shouldDownscale() 133 if size.width <= 0 || size.height <= 0 { in getBestSource() 171 return CGSize(width: size.width * scalar, height: size.height * scalar) in *() 178 return CGSize(width: size.width / scalar, height: size.height / scalar) in /() [all …]
|