Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 2524) sorted by relevance

12345678910>>...101

/expo/packages/expo-image-manipulator/src/actions/
H A DCropAction.web.ts8 let { originX = 0, originY = 0, width = 0, height = 0 } = options;
11 width = clamp(width, canvas.width);
13 originX = clamp(originX, canvas.width);
17 width = Math.min(originX + width, canvas.width) - originX;
20 if (width === 0 || height === 0) {
28 result.width = width;
32 context.drawImage(canvas, originX, originY, width, height, 0, 0, width, height);
H A DRotateAction.web.ts5 width: 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
25 result.width = width;
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 DResizeAction.web.ts15 width: number,
20 result.width = canvas.width;
23 const widthSource = canvas.width;
25 width = Math.round(width);
28 const wRatio = widthSource / width;
36 const img2 = ctx.createImageData(width, height);
41 for (let i = 0; i < width; i++) {
42 const x2 = (i + j * width) * 4;
91 result.width = width;
107 if (width !== undefined) {
[all …]
/expo/packages/expo-image-manipulator/build/actions/
H A DCropAction.web.js5 let { originX = 0, originY = 0, width = 0, height = 0 } = options;
8 width = clamp(width, canvas.width);
10 originX = clamp(originX, canvas.width);
13 width = Math.min(originX + width, canvas.width) - originX;
15 if (width === 0 || height === 0) {
19 result.width = width;
22 context.drawImage(canvas, originX, originY, width, height, 0, 0, width, height);
H A DRotateAction.web.js2 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);
17 result.width = width;
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 DResizeAction.web.js13 result.width = canvas.width;
15 const widthSource = canvas.width;
17 width = Math.round(width);
19 const wRatio = widthSource / width;
25 const img2 = ctx.createImageData(width, height);
29 for (let i = 0; i < width; i++) {
30 const x2 = (i + j * width) * 4;
78 result.width = width;
86 export default (canvas, { width, height }) => {
90 if (width !== undefined) {
[all …]
/expo/android/vendored/unversioned/@shopify/react-native-skia/cpp/rnskia/dom/props/
H A DImageProps.h99 auto sx = dst.width() / src.width(); in rect2rect()
125 auto halfWidthDelta = (rect.width() - size.width()) / 2.0; in inscribe()
146 if (output.width() / output.height() > src.width() / src.height()) { in applyBoxFit()
151 size(output.width(), (src.height() * output.width()) / src.width()); in applyBoxFit()
154 if (output.width() / output.height() > input.width() / input.height()) { in applyBoxFit()
156 (input.width() * output.height()) / output.width()); in applyBoxFit()
164 (input.width() * output.height()) / output.width()); in applyBoxFit()
165 dst = size(output.width(), (src.height() * output.width()) / src.width()); in applyBoxFit()
172 src = size(std::min(input.width(), output.width()), in applyBoxFit()
182 if (dst.width() > output.width()) { in applyBoxFit()
[all …]
/expo/ios/vendored/unversioned/@shopify/react-native-skia/cpp/rnskia/dom/props/
H A DImageProps.h99 auto sx = dst.width() / src.width(); in rect2rect()
125 auto halfWidthDelta = (rect.width() - size.width()) / 2.0; in inscribe()
146 if (output.width() / output.height() > src.width() / src.height()) { in applyBoxFit()
151 size(output.width(), (src.height() * output.width()) / src.width()); in applyBoxFit()
154 if (output.width() / output.height() > input.width() / input.height()) { in applyBoxFit()
156 (input.width() * output.height()) / output.width()); in applyBoxFit()
164 (input.width() * output.height()) / output.width()); in applyBoxFit()
165 dst = size(output.width(), (src.height() * output.width()) / src.width()); in applyBoxFit()
172 src = size(std::min(input.width(), output.width()), in applyBoxFit()
182 if (dst.width() > output.width()) { in applyBoxFit()
[all …]
/expo/ios/vendored/sdk48/@shopify/react-native-skia/cpp/rnskia/dom/props/
H A DImageProps.h82 auto sx = dst.width() / src.width(); in rect2rect()
108 auto halfWidthDelta = (rect.width() - size.width()) / 2.0; in inscribe()
129 if (output.width() / output.height() > src.width() / src.height()) { in applyBoxFit()
134 size(output.width(), (src.height() * output.width()) / src.width()); in applyBoxFit()
137 if (output.width() / output.height() > input.width() / input.height()) { in applyBoxFit()
139 (input.width() * output.height()) / output.width()); in applyBoxFit()
147 (input.width() * output.height()) / output.width()); in applyBoxFit()
148 dst = size(output.width(), (src.height() * output.width()) / src.width()); in applyBoxFit()
155 src = size(std::min(input.width(), output.width()), in applyBoxFit()
165 if (dst.width() > output.width()) { in applyBoxFit()
[all …]
/expo/android/vendored/sdk49/@shopify/react-native-skia/cpp/rnskia/dom/props/
H A DImageProps.h99 auto sx = dst.width() / src.width(); in rect2rect()
125 auto halfWidthDelta = (rect.width() - size.width()) / 2.0; in inscribe()
146 if (output.width() / output.height() > src.width() / src.height()) { in applyBoxFit()
151 size(output.width(), (src.height() * output.width()) / src.width()); in applyBoxFit()
154 if (output.width() / output.height() > input.width() / input.height()) { in applyBoxFit()
156 (input.width() * output.height()) / output.width()); in applyBoxFit()
164 (input.width() * output.height()) / output.width()); in applyBoxFit()
165 dst = size(output.width(), (src.height() * output.width()) / src.width()); in applyBoxFit()
172 src = size(std::min(input.width(), output.width()), in applyBoxFit()
182 if (dst.width() > output.width()) { in applyBoxFit()
[all …]
/expo/ios/vendored/sdk49/@shopify/react-native-skia/cpp/rnskia/dom/props/
H A DImageProps.h99 auto sx = dst.width() / src.width(); in rect2rect()
125 auto halfWidthDelta = (rect.width() - size.width()) / 2.0; in inscribe()
146 if (output.width() / output.height() > src.width() / src.height()) { in applyBoxFit()
151 size(output.width(), (src.height() * output.width()) / src.width()); in applyBoxFit()
154 if (output.width() / output.height() > input.width() / input.height()) { in applyBoxFit()
156 (input.width() * output.height()) / output.width()); in applyBoxFit()
164 (input.width() * output.height()) / output.width()); in applyBoxFit()
165 dst = size(output.width(), (src.height() * output.width()) / src.width()); in applyBoxFit()
172 src = size(std::min(input.width(), output.width()), in applyBoxFit()
182 if (dst.width() > output.width()) { in applyBoxFit()
[all …]
/expo/android/vendored/sdk48/@shopify/react-native-skia/cpp/rnskia/dom/props/
H A DImageProps.h82 auto sx = dst.width() / src.width(); in rect2rect()
108 auto halfWidthDelta = (rect.width() - size.width()) / 2.0; in inscribe()
129 if (output.width() / output.height() > src.width() / src.height()) { in applyBoxFit()
134 size(output.width(), (src.height() * output.width()) / src.width()); in applyBoxFit()
137 if (output.width() / output.height() > input.width() / input.height()) { in applyBoxFit()
139 (input.width() * output.height()) / output.width()); in applyBoxFit()
147 (input.width() * output.height()) / output.width()); in applyBoxFit()
148 dst = size(output.width(), (src.height() * output.width()) / src.width()); in applyBoxFit()
155 src = size(std::min(input.width(), output.width()), in applyBoxFit()
165 if (dst.width() > output.width()) { in applyBoxFit()
[all …]
/expo/apps/native-component-list/src/constants/
H A DComparisonImages.ts14 width: 18,
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 },
39 width: 18,
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 },
73 width: 18,
82 width: 18,
[all …]
/expo/.github/resources/
H A Dexpo-device.svg3 <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 DPrintOptions.swift19 var width: Float? variable
42 let kLetterPaperSize = CGSize(width: 612, height: 792)
46 var paperSize = CGSize(width: kLetterPaperSize.width, height: kLetterPaperSize.height) in toPageSize()
47 if let width = width { in toPageSize() variable
48 paperSize.width = CGFloat(width) in toPageSize()
55 … orientation = self.orientation, orientation == "landscape" && paperSize.height > paperSize.width { in toPageSize()
56 paperSize = CGSize(width: paperSize.height, height: paperSize.width) in toPageSize()
79 width: pageSize.width - pageMargins.right - pageMargins.left, in toPrintableRect()
/expo/ios/versioned/sdk49/ExpoPrint/
H A DPrintOptions.swift19 var width: Float? variable
42 let kLetterPaperSize = CGSize(width: 612, height: 792)
46 var paperSize = CGSize(width: kLetterPaperSize.width, height: kLetterPaperSize.height) in toPageSize()
47 if let width = width { in toPageSize() variable
48 paperSize.width = CGFloat(width) in toPageSize()
55 … orientation = self.orientation, orientation == "landscape" && paperSize.height > paperSize.width { in toPageSize()
56 paperSize = CGSize(width: paperSize.height, height: paperSize.width) in toPageSize()
79 width: pageSize.width - pageMargins.right - pageMargins.left, in toPrintableRect()
/expo/packages/expo-image/build/web/
H A DuseSourceSelection.js13 … const { width, height } = typeof source === 'object' ? source : { width: null, height: null };
14 if (width == null || height == null) {
17 if (width < size.width || height < size.height) {
20 penalty: Math.max(size.width - width, size.height - height),
24 return { source, penalty: (width - size.width) * (height - size.height), covers: true };
30 return `(max-width: ${source.webMaxViewportWidth ?? source.width}px) ${source.width}px`;
40 … .filter((s) => s.uri && s.width != null && !isBlurhashString(s.uri) && !isThumbhashString(s.uri))
41 ….sort((a, b) => (a.webMaxViewportWidth ?? a.width ?? 0) - (b.webMaxViewportWidth ?? b.width ?? 0));
47 ?.map((source) => `${source.uri} ${source.width}w`)
51 .join(', ')}, ${staticSupportedSources[staticSupportedSources.length - 1]?.width}px`;
/expo/packages/expo-linear-gradient/build/
H A DNativeLinearGradient.web.js5 const [{ height, width }, setLayout] = React.useState({
7 width: 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
59 start[0] *= width;
[all …]
/expo/packages/expo-image/src/web/
H A DuseSourceSelection.ts20 const { width, height } = constant
21 typeof source === 'object' ? source : { width: null, height: null };
22 if (width == null || height == null) {
25 if (width < size.width || height < size.height) {
28 penalty: Math.max(size.width - width, size.height - height),
32 return { source, penalty: (width - size.width) * (height - size.height), covers: true };
48 return `(max-width: ${source.webMaxViewportWidth ?? source.width}px) ${source.width}px`;
65 (s) => s.uri && s.width != null && !isBlurhashString(s.uri) && !isThumbhashString(s.uri)
68 (a, b) => (a.webMaxViewportWidth ?? a.width ?? 0) - (b.webMaxViewportWidth ?? b.width ?? 0)
79 ?.map((source) => `${source.uri} ${source.width}w`)
[all …]
/expo/packages/expo-image/build/utils/blurhash/
H A DuseBlurhash.js8 width: 32, property
18 …const pixels = decode(blurhash.uri, blurhash?.width ?? DEFAULT_SIZE.width, blurhash?.height ?? DEF…
20 canvas.width = blurhash?.width ?? DEFAULT_SIZE.width;
23 …const imageData = context.createImageData(blurhash?.width ?? DEFAULT_SIZE.width, blurhash?.height …
45 }, [blurhash?.uri, blurhash?.height, blurhash?.width, punch]);
/expo/packages/expo-image-manipulator/ios/
H A DImageManipulations.swift31 let imageWidth = image.size.width in manipulate()
37 if let width = resize.width { in manipulate() variable
38 targetSize.width = width in manipulate()
39 targetSize.height = width / imageRatio in manipulate()
43 targetSize.width = targetSize.width == 0 ? imageRatio * targetSize.height : targetSize.width in manipulate()
70 …let rotatedSize = CGSize(width: rotatedView.frame.size.width.rounded(.down), height: rotatedView.f… in manipulate()
105 let isOutOfBounds = rect.origin.x > image.size.width in manipulate()
107 || rect.width > image.size.width in manipulate()
164 width: Int(image.size.width), in fixImageOrientation()
180 … context.draw(cgImage, in: CGRect(x: 0, y: 0, width: image.size.height, height: image.size.width)) in fixImageOrientation()
[all …]
/expo/ios/versioned/sdk49/ExpoImageManipulator/
H A DImageManipulations.swift31 let imageWidth = image.size.width in manipulate()
37 if let width = resize.width { in manipulate() variable
38 targetSize.width = width in manipulate()
39 targetSize.height = width / imageRatio in manipulate()
43 targetSize.width = targetSize.width == 0 ? imageRatio * targetSize.height : targetSize.width in manipulate()
70 …let rotatedSize = CGSize(width: rotatedView.frame.size.width.rounded(.down), height: rotatedView.f… in manipulate()
105 let isOutOfBounds = rect.origin.x > image.size.width in manipulate()
107 || rect.width > image.size.width in manipulate()
164 width: Int(image.size.width), in fixImageOrientation()
180 … context.draw(cgImage, in: CGRect(x: 0, y: 0, width: image.size.height, height: image.size.width)) in fixImageOrientation()
[all …]
/expo/ios/versioned/sdk48/ExpoImageManipulator/
H A DImageManipulations.swift31 let imageWidth = image.size.width in manipulate()
37 if let width = resize.width { in manipulate() variable
38 targetSize.width = width in manipulate()
39 targetSize.height = width / imageRatio in manipulate()
43 targetSize.width = targetSize.width == 0 ? imageRatio * targetSize.height : targetSize.width in manipulate()
70 …let rotatedSize = CGSize(width: rotatedView.frame.size.width.rounded(.down), height: rotatedView.f… in manipulate()
105 let isOutOfBounds = rect.origin.x > image.size.width in manipulate()
107 || rect.width > image.size.width in manipulate()
161 width: Int(image.size.width), in fixImageOrientation()
177 … context.draw(cgImage, in: CGRect(x: 0, y: 0, width: image.size.height, height: image.size.width)) in fixImageOrientation()
[all …]
/expo/ios/versioned/sdk47/ExpoImageManipulator/
H A DImageManipulations.swift31 let imageWidth = image.size.width in manipulate()
37 if let width = resize.width { in manipulate() variable
38 targetSize.width = width in manipulate()
39 targetSize.height = width / imageRatio in manipulate()
43 targetSize.width = targetSize.width == 0 ? imageRatio * targetSize.height : targetSize.width in manipulate()
70 …let rotatedSize = CGSize(width: rotatedView.frame.size.width.rounded(.down), height: rotatedView.f… in manipulate()
105 let isOutOfBounds = rect.origin.x > image.size.width in manipulate()
107 || rect.width > image.size.width in manipulate()
161 width: Int(image.size.width), in fixImageOrientation()
177 … context.draw(cgImage, in: CGRect(x: 0, y: 0, width: image.size.height, height: image.size.width)) in fixImageOrientation()
[all …]
/expo/packages/expo-image/ios/
H A DImageUtils.swift55 …let aspectRatio = min(containerSize.width / contentPixelSize.width, containerSize.height / content… in idealSize()
58 …let aspectRatio = max(containerSize.width / contentPixelSize.width, containerSize.height / content… in idealSize()
63 …if containerSize.width < contentPixelSize.width / scale || containerSize.height < contentPixelSize… in idealSize()
65 …let aspectRatio = min(containerSize.width / contentPixelSize.width, containerSize.height / content… 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 …]

12345678910>>...101