1
1
declare namespace UIBezierPath {
2
- function fromStringWithFont ( string : string , font : UIFont ) : UIBezierPath ;
3
- function addLinesOffsetCountCloseToPath ( points , offset , length , close , path )
4
- function addCubicLinesOffsetCountCloseToPath ( points , offset , length , close , path )
2
+ function fromStringWithFont ( str : string , font : UIFont ) : UIBezierPath ;
3
+ function addLinesOffsetCountCloseToPath ( points , offset , length , close , path ) ;
4
+ function addCubicLinesOffsetCountCloseToPath ( points , offset , length , close , path ) ;
5
5
}
6
6
7
7
declare namespace UIDrawingPath {
8
- function drawLineSegmentsCountInContextWithTransform ( pts : any , count : number , context :any , _transform : CGAffineTransform )
8
+ function drawLineSegmentsCountInContextWithTransform ( pts : any , count : number , context : any , _transform : CGAffineTransform ) ;
9
9
}
10
- declare namespace UIDrawingText {
11
- function drawStringXYFontColor ( text : string , x : number , y :number , font : UIFont , color : UIColor )
12
- function drawAttributedStringXYFontColor ( text : NSAttributedString , x : number , y :number , font : UIFont , color : UIColor )
13
- function drawAttributedStringInRectXYWidthHeightFontAlignmentColor ( text : NSAttributedString , x : number , y :number , w : number , h :number , font : UIFont , alignment :NSTextAlignment , color : UIColor )
14
-
15
- function drawStringXYWithAttributes ( text : string , x : number , y :number , attributes : NSDictionary < any , any > )
16
- function drawAttributedStringXYWithAttributes ( text : NSAttributedString , x : number , y :number , attributes : NSDictionary < any , any > )
17
- function getTextBoundsFromToAttributes ( text : string , start : number , end : number , attributes :NSDictionary < any , any > ) : CGRect ;
18
- function measureTextFromToAttributes ( text : string , start : number , end : number , attributes :NSDictionary < any , any > ) : number ;
10
+ declare namespace UIDrawingText {
11
+ function drawStringXYFontColor ( text : string , x : number , y : number , font : UIFont , color : UIColor ) ;
12
+ function drawAttributedStringXYFontColor ( text : NSAttributedString , x : number , y : number , font : UIFont , color : UIColor ) ;
13
+ function drawAttributedStringInRectXYWidthHeightFontAlignmentColor ( text : NSAttributedString , x : number , y : number , w : number , h : number , font : UIFont , alignment : NSTextAlignment , color : UIColor ) ;
14
+
15
+ function drawStringXYWithAttributes ( text : string , x : number , y : number , attributes : NSDictionary < any , any > ) ;
16
+ function drawAttributedStringXYWithAttributes ( text : NSAttributedString , x : number , y : number , attributes : NSDictionary < any , any > ) ;
17
+ function getTextBoundsFromToAttributes ( text : string , start : number , end : number , attributes : NSDictionary < any , any > ) : CGRect ;
18
+ function measureTextFromToAttributes ( text : string , start : number , end : number , attributes : NSDictionary < any , any > ) : number ;
19
19
}
20
20
21
+ // eslint-disable-next-line no-redeclare
21
22
declare interface UIBezierPath {
22
- drawAttributedString ( string : NSAttributedString ) ;
23
- drawStringWithAttributes ( string : string , attributes :NSDictionary < any , any > ) ;
24
- addLinesCountClose ( pts : any , count : number , close :boolean )
25
- addCubicLinesCountClose ( pts : any , count : number , close :boolean )
23
+ drawAttributedStringWithAlignment ( str : NSAttributedString , alignment : NSTextAlignment ) ;
24
+ drawStringWithAttributesWithAlignment ( str : string , attributes : NSDictionary < any , any > , alignment : NSTextAlignment ) ;
25
+ addLinesCountClose ( pts : any , count : number , close : boolean ) ;
26
+ addCubicLinesCountClose ( pts : any , count : number , close : boolean ) ;
26
27
}
27
28
28
29
declare function AddDashesToPath ( path : UIBezierPath ) : void ;
@@ -38,37 +39,36 @@ declare function AspectScaleFit(sourceSize: CGSize, destRect: CGRect): number;
38
39
declare function BevelPath ( p : UIBezierPath , color : UIColor , r : number , theta : number ) : void ;
39
40
40
41
declare class BezierElement extends NSObject implements NSCopying {
42
+ static alloc ( ) : BezierElement ; // inherited from NSObject
41
43
42
- static alloc ( ) : BezierElement ; // inherited from NSObject
44
+ static elementWithPathElement ( element : CGPathElement ) : BezierElement ;
43
45
44
- static elementWithPathElement ( element : CGPathElement ) : BezierElement ;
46
+ static new ( ) : BezierElement ; // inherited from NSObject
45
47
46
- static new ( ) : BezierElement ; // inherited from NSObject
48
+ controlPoint1 : CGPoint ;
47
49
48
- controlPoint1 : CGPoint ;
50
+ controlPoint2 : CGPoint ;
49
51
50
- controlPoint2 : CGPoint ;
52
+ elementType : CGPathElementType ;
51
53
52
- elementType : CGPathElementType ;
54
+ point : CGPoint ;
53
55
54
- point : CGPoint ;
56
+ readonly stringValue : string ;
55
57
56
- readonly stringValue : string ;
58
+ addToPath ( path : UIBezierPath ) : void ;
57
59
58
- addToPath ( path : UIBezierPath ) : void ;
60
+ copyWithZone ( zone : interop . Pointer | interop . Reference < any > ) : any ;
59
61
60
- copyWithZone ( zone : interop . Pointer | interop . Reference < any > ) : any ;
62
+ elementByApplyingBlock ( block : ( p1 : CGPoint ) => CGPoint ) : BezierElement ;
61
63
62
- elementByApplyingBlock ( block : ( p1 : CGPoint ) => CGPoint ) : BezierElement ;
63
-
64
- showTheCode ( ) : void ;
64
+ showTheCode ( ) : void ;
65
65
}
66
66
67
67
declare function BezierInflectedShape ( numberOfInflections : number , percentInflection : number ) : UIBezierPath ;
68
68
69
- declare function BezierPathFromString ( string : string , font : UIFont ) : UIBezierPath ;
69
+ declare function BezierPathFromString ( str : string , font : UIFont ) : UIBezierPath ;
70
70
71
- declare function BezierPathFromStringWithFontFace ( string : string , fontFace : string ) : UIBezierPath ;
71
+ declare function BezierPathFromStringWithFontFace ( str : string , fontFace : string ) : UIBezierPath ;
72
72
73
73
declare function BezierPathWithElements ( elements : NSArray < any > ) : UIBezierPath ;
74
74
0 commit comments