UNPKG

1.33 kBTypeScriptView Raw
1import { View } from '../core/view';
2export * from './background-common';
3interface CappedOuterRadii {
4 topLeft: number;
5 topRight: number;
6 bottomLeft: number;
7 bottomRight: number;
8}
9export declare enum CacheMode {
10 none = 0
11}
12export declare namespace ios {
13 function createBackgroundUIColor(view: View, callback: (uiColor: UIColor) => void, flip?: boolean): void;
14 function drawBackgroundVisualEffects(view: View): void;
15 function clearBackgroundVisualEffects(view: View): void;
16 function generateShadowLayerPaths(view: View, bounds: CGRect): {
17 maskPath: any;
18 shadowPath: any;
19 };
20 function generateClipPath(view: View, bounds: CGRect): UIBezierPath;
21 function getUniformBorderRadius(view: View, bounds: CGRect): number;
22 function generateNonUniformBorderInnerClipRoundedPath(view: View, bounds: CGRect): any;
23 function generateNonUniformBorderOuterClipRoundedPath(view: View, bounds: CGRect): any;
24 function generateNonUniformMultiColorBorderRoundedPaths(view: View, bounds: CGRect): Array<any>;
25}
26/**
27 * Generates a path that represents the rounded view area.
28 *
29 * @param bounds
30 * @param cappedRadii
31 * @param offset
32 * @returns
33 */
34export declare function generateNonUniformBorderOuterClipPath(bounds: CGRect, cappedRadii: CappedOuterRadii, offset?: number): any;