@triniwiz/nativescript-masonkit 1.0.0-alpha.14 → 1.0.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common.d.ts +20 -10
- package/common.js +141 -26
- package/common.js.map +1 -1
- package/helpers.d.ts +4 -4
- package/index.android.d.ts +17 -1
- package/index.android.js +49 -4
- package/index.android.js.map +1 -1
- package/index.d.ts +2 -0
- package/index.ios.d.ts +17 -1
- package/index.ios.js +50 -6
- package/index.ios.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +135 -7
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +7203 -1633
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +194 -13
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +194 -13
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2260 -1932
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +270 -14
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +7203 -1633
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +194 -13
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +194 -13
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +7203 -1633
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +194 -13
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +194 -13
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +22 -22
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2260 -1932
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +2198 -1883
- package/style.d.ts +16 -16
- package/style.js +40 -20
- package/style.js.map +1 -1
- package/web.d.ts +55 -0
- package/web.js +189 -0
- package/web.js.map +1 -0
|
@@ -281,6 +281,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
281
281
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
282
282
|
#endif
|
|
283
283
|
@import CoreFoundation;
|
|
284
|
+
@import CoreGraphics;
|
|
284
285
|
@import Foundation;
|
|
285
286
|
@import ObjectiveC;
|
|
286
287
|
@import UIKit;
|
|
@@ -467,6 +468,13 @@ SWIFT_CLASS_NAMED("LineGridPlacementCompat")
|
|
|
467
468
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
468
469
|
@end
|
|
469
470
|
|
|
471
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLineHeight, "LineHeight", open) {
|
|
472
|
+
MasonLineHeightNormal = 0,
|
|
473
|
+
MasonLineHeightPre = 1,
|
|
474
|
+
MasonLineHeightPreWrap = 2,
|
|
475
|
+
MasonLineHeightPreLine = 3,
|
|
476
|
+
};
|
|
477
|
+
|
|
470
478
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonBoxSizing, "MasonBoxSizing", open) {
|
|
471
479
|
MasonBoxSizingBorderBox = 0,
|
|
472
480
|
MasonBoxSizingContentBox = 1,
|
|
@@ -743,11 +751,13 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
743
751
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
744
752
|
@end
|
|
745
753
|
|
|
754
|
+
enum MasonTextType : NSInteger;
|
|
755
|
+
@class NSCFontFace;
|
|
746
756
|
@class NSCoder;
|
|
747
757
|
@class NSMutableAttributedString;
|
|
748
|
-
@class UIFont;
|
|
749
758
|
enum TextTransform : NSInteger;
|
|
750
759
|
@class UIColor;
|
|
760
|
+
enum WhiteSpace : NSInteger;
|
|
751
761
|
enum TextWrap : NSInteger;
|
|
752
762
|
|
|
753
763
|
SWIFT_CLASS_NAMED("MasonText")
|
|
@@ -755,6 +765,9 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
755
765
|
@property (nonatomic, readonly, strong) MasonText * _Nullable owner;
|
|
756
766
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
757
767
|
@property (nonatomic, readonly, copy) NSData * _Nonnull textValues;
|
|
768
|
+
@property (nonatomic, readonly) enum MasonTextType type;
|
|
769
|
+
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
770
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
758
771
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
759
772
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)masonNode OBJC_DESIGNATED_INITIALIZER;
|
|
760
773
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
@@ -765,7 +778,6 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
765
778
|
- (void)configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonNode * _Nonnull))block;
|
|
766
779
|
- (void)updateText:(NSString * _Nullable)value;
|
|
767
780
|
@property (nonatomic, strong) NSMutableAttributedString * _Nonnull txtToRender;
|
|
768
|
-
@property (nonatomic, readonly, strong) UIFont * _Nonnull font;
|
|
769
781
|
- (void)invalidateStyle:(int64_t)state;
|
|
770
782
|
@property (nonatomic) enum TextTransform textTransform;
|
|
771
783
|
@property (nonatomic) CGFloat fontSize;
|
|
@@ -779,6 +791,7 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
779
791
|
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
780
792
|
@property (nonatomic) uint32_t decorationColor;
|
|
781
793
|
@property (nonatomic) enum DecorationLine decorationLine;
|
|
794
|
+
@property (nonatomic) enum WhiteSpace whiteSpace;
|
|
782
795
|
@property (nonatomic) enum TextWrap textWrap;
|
|
783
796
|
- (void)drawRect:(CGRect)rect;
|
|
784
797
|
- (void)addView:(UIView * _Nonnull)view :(NSInteger)index;
|
|
@@ -798,6 +811,22 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextAlign, "MasonTextAlign", open) {
|
|
|
798
811
|
MasonTextAlignEnd = 6,
|
|
799
812
|
};
|
|
800
813
|
|
|
814
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextType, "MasonTextType", open) {
|
|
815
|
+
MasonTextTypeNone = 0,
|
|
816
|
+
MasonTextTypeP = 1,
|
|
817
|
+
MasonTextTypeSpan = 2,
|
|
818
|
+
MasonTextTypeCode = 3,
|
|
819
|
+
MasonTextTypeH1 = 4,
|
|
820
|
+
MasonTextTypeH2 = 5,
|
|
821
|
+
MasonTextTypeH3 = 6,
|
|
822
|
+
MasonTextTypeH4 = 7,
|
|
823
|
+
MasonTextTypeH5 = 8,
|
|
824
|
+
MasonTextTypeH6 = 9,
|
|
825
|
+
MasonTextTypeLi = 10,
|
|
826
|
+
MasonTextTypeBlockquote = 11,
|
|
827
|
+
MasonTextTypeB = 12,
|
|
828
|
+
};
|
|
829
|
+
|
|
801
830
|
|
|
802
831
|
SWIFT_CLASS_NAMED("MasonUIView")
|
|
803
832
|
@interface MasonUIView : UIView
|
|
@@ -810,10 +839,8 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
810
839
|
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
811
840
|
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
812
841
|
+ (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
813
|
-
@property (nonatomic, readonly) int64_t masonPtr;
|
|
814
|
-
@property (nonatomic, readonly) int64_t masonNodePtr;
|
|
815
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull masonPtrs;
|
|
816
842
|
@property (nonatomic, strong) MasonStyle * _Nonnull style;
|
|
843
|
+
- (void)requestLayout;
|
|
817
844
|
- (void)addView:(UIView * _Nonnull)view;
|
|
818
845
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
819
846
|
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
@@ -983,6 +1010,99 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing *
|
|
|
983
1010
|
@end
|
|
984
1011
|
|
|
985
1012
|
|
|
1013
|
+
SWIFT_CLASS_NAMED("NSCFontDescriptors")
|
|
1014
|
+
@interface NSCFontDescriptors : NSObject
|
|
1015
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
1016
|
+
- (void)update:(NSString * _Nonnull)value;
|
|
1017
|
+
- (void)setFontWeight:(NSString * _Nonnull)value;
|
|
1018
|
+
- (void)setFontStyle:(NSString * _Nonnull)value;
|
|
1019
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1020
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1021
|
+
@end
|
|
1022
|
+
|
|
1023
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
|
|
1024
|
+
NSCFontDisplayAuto = 0,
|
|
1025
|
+
NSCFontDisplayBlock = 1,
|
|
1026
|
+
NSCFontDisplayFallback = 2,
|
|
1027
|
+
NSCFontDisplayOptional = 3,
|
|
1028
|
+
NSCFontDisplaySwap = 4,
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
enum NSCFontFaceStatus : NSInteger;
|
|
1032
|
+
enum NSCFontWeight : NSInteger;
|
|
1033
|
+
|
|
1034
|
+
SWIFT_CLASS_NAMED("NSCFontFace")
|
|
1035
|
+
@interface NSCFontFace : NSObject
|
|
1036
|
+
@property (nonatomic, readonly) CGFontRef _Nullable font;
|
|
1037
|
+
@property (nonatomic, readonly, strong) NSData * _Nullable fontData;
|
|
1038
|
+
- (void)updateDescriptorWithValue:(NSString * _Nonnull)value;
|
|
1039
|
+
+ (NSCFontFace * _Nullable)loadFromStyleWithStyle:(NSString * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
1040
|
+
+ (void)importFromRemoteWithUrl:(NSString * _Nonnull)url load:(BOOL)load callback:(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nullable, NSString * _Nullable))callback;
|
|
1041
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
1042
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family source:(NSString * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
1043
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family data:(NSData * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
1044
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family :(NSString * _Nullable)source :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
1045
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family data:(NSData * _Nullable)data :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
1046
|
+
@property (nonatomic) enum NSCFontFaceStatus status;
|
|
1047
|
+
@property (nonatomic) enum NSCFontDisplay display;
|
|
1048
|
+
- (void)setFontDisplayWithValue:(NSString * _Nonnull)value;
|
|
1049
|
+
@property (nonatomic, copy) NSString * _Nonnull style;
|
|
1050
|
+
- (void)setFontStyleWithValue:(NSString * _Nonnull)value angle:(NSString * _Nullable)angle;
|
|
1051
|
+
@property (nonatomic) enum NSCFontWeight weight;
|
|
1052
|
+
- (void)setFontWeightWithValue:(NSString * _Nonnull)value;
|
|
1053
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull family;
|
|
1054
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull ascentOverride;
|
|
1055
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull descentOverride;
|
|
1056
|
+
- (void)load:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
1057
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1058
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1059
|
+
@end
|
|
1060
|
+
|
|
1061
|
+
enum NSCFontFaceSetStatus : NSInteger;
|
|
1062
|
+
@class NSEnumerator;
|
|
1063
|
+
|
|
1064
|
+
SWIFT_CLASS_NAMED("NSCFontFaceSet")
|
|
1065
|
+
@interface NSCFontFaceSet : NSObject
|
|
1066
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceSet * _Nonnull instance;)
|
|
1067
|
+
+ (NSCFontFaceSet * _Nonnull)instance SWIFT_WARN_UNUSED_RESULT;
|
|
1068
|
+
@property (nonatomic) enum NSCFontFaceSetStatus status;
|
|
1069
|
+
@property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
|
|
1070
|
+
- (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
|
|
1071
|
+
- (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
|
|
1072
|
+
- (void)add:(NSCFontFace * _Nonnull)font;
|
|
1073
|
+
- (void)clear;
|
|
1074
|
+
- (void)delete:(NSCFontFace * _Nonnull)font;
|
|
1075
|
+
- (BOOL)check:(NSString * _Nonnull)font :(NSString * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
|
|
1076
|
+
- (void)load:(NSString * _Nonnull)font :(NSString * _Nullable)text :(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nonnull, NSString * _Nullable))callback;
|
|
1077
|
+
@property (nonatomic, readonly) NSInteger size;
|
|
1078
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1079
|
+
@end
|
|
1080
|
+
|
|
1081
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceSetStatus, "NSCFontFaceSetStatus", open) {
|
|
1082
|
+
NSCFontFaceSetStatusLoading = 0,
|
|
1083
|
+
NSCFontFaceSetStatusLoaded = 1,
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceStatus, "NSCFontFaceStatus", open) {
|
|
1087
|
+
NSCFontFaceStatusUnloaded = 0,
|
|
1088
|
+
NSCFontFaceStatusLoading = 1,
|
|
1089
|
+
NSCFontFaceStatusLoaded = 2,
|
|
1090
|
+
NSCFontFaceStatusError = 3,
|
|
1091
|
+
};
|
|
1092
|
+
|
|
1093
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
|
|
1094
|
+
NSCFontWeightThin = 0,
|
|
1095
|
+
NSCFontWeightExtraLight = 1,
|
|
1096
|
+
NSCFontWeightLight = 2,
|
|
1097
|
+
NSCFontWeightNormal = 3,
|
|
1098
|
+
NSCFontWeightMedium = 4,
|
|
1099
|
+
NSCFontWeightSemiBold = 5,
|
|
1100
|
+
NSCFontWeightBold = 6,
|
|
1101
|
+
NSCFontWeightExtraBold = 7,
|
|
1102
|
+
NSCFontWeightBlack = 8,
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
|
|
986
1106
|
SWIFT_CLASS_NAMED("NSCMason")
|
|
987
1107
|
@interface NSCMason : NSObject
|
|
988
1108
|
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
@@ -994,6 +1114,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
994
1114
|
- (void)clear;
|
|
995
1115
|
- (MasonUIView * _Nonnull)createView SWIFT_WARN_UNUSED_RESULT;
|
|
996
1116
|
- (MasonText * _Nonnull)createTextView SWIFT_WARN_UNUSED_RESULT;
|
|
1117
|
+
- (MasonText * _Nonnull)createTextViewWithType:(enum MasonTextType)type SWIFT_WARN_UNUSED_RESULT;
|
|
997
1118
|
- (MasonNode * _Nonnull)createNode SWIFT_WARN_UNUSED_RESULT;
|
|
998
1119
|
- (void)printTree:(MasonNode * _Nonnull)node;
|
|
999
1120
|
- (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -1022,8 +1143,8 @@ typedef SWIFT_ENUM_NAMED(NSInteger, TextTransform, "TextTransform", open) {
|
|
|
1022
1143
|
};
|
|
1023
1144
|
|
|
1024
1145
|
typedef SWIFT_ENUM_NAMED(NSInteger, TextWrap, "TextWrap", open) {
|
|
1025
|
-
|
|
1026
|
-
|
|
1146
|
+
TextWrapWrap = 0,
|
|
1147
|
+
TextWrapNoWrap = 1,
|
|
1027
1148
|
TextWrapBalance = 2,
|
|
1028
1149
|
};
|
|
1029
1150
|
|
|
@@ -1039,6 +1160,13 @@ SWIFT_CLASS_NAMED("TrackSizingFunction")
|
|
|
1039
1160
|
@end
|
|
1040
1161
|
|
|
1041
1162
|
|
|
1163
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, WhiteSpace, "WhiteSpace", open) {
|
|
1164
|
+
WhiteSpaceNormal = 0,
|
|
1165
|
+
WhiteSpacePre = 1,
|
|
1166
|
+
WhiteSpacePreWrap = 2,
|
|
1167
|
+
WhiteSpacePreLine = 3,
|
|
1168
|
+
};
|
|
1169
|
+
|
|
1042
1170
|
#endif
|
|
1043
1171
|
#if __has_attribute(external_source_symbol)
|
|
1044
1172
|
# pragma clang attribute pop
|
|
@@ -1330,6 +1458,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
1330
1458
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
1331
1459
|
#endif
|
|
1332
1460
|
@import CoreFoundation;
|
|
1461
|
+
@import CoreGraphics;
|
|
1333
1462
|
@import Foundation;
|
|
1334
1463
|
@import ObjectiveC;
|
|
1335
1464
|
@import UIKit;
|
|
@@ -1516,6 +1645,13 @@ SWIFT_CLASS_NAMED("LineGridPlacementCompat")
|
|
|
1516
1645
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1517
1646
|
@end
|
|
1518
1647
|
|
|
1648
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLineHeight, "LineHeight", open) {
|
|
1649
|
+
MasonLineHeightNormal = 0,
|
|
1650
|
+
MasonLineHeightPre = 1,
|
|
1651
|
+
MasonLineHeightPreWrap = 2,
|
|
1652
|
+
MasonLineHeightPreLine = 3,
|
|
1653
|
+
};
|
|
1654
|
+
|
|
1519
1655
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonBoxSizing, "MasonBoxSizing", open) {
|
|
1520
1656
|
MasonBoxSizingBorderBox = 0,
|
|
1521
1657
|
MasonBoxSizingContentBox = 1,
|
|
@@ -1792,11 +1928,13 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
1792
1928
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1793
1929
|
@end
|
|
1794
1930
|
|
|
1931
|
+
enum MasonTextType : NSInteger;
|
|
1932
|
+
@class NSCFontFace;
|
|
1795
1933
|
@class NSCoder;
|
|
1796
1934
|
@class NSMutableAttributedString;
|
|
1797
|
-
@class UIFont;
|
|
1798
1935
|
enum TextTransform : NSInteger;
|
|
1799
1936
|
@class UIColor;
|
|
1937
|
+
enum WhiteSpace : NSInteger;
|
|
1800
1938
|
enum TextWrap : NSInteger;
|
|
1801
1939
|
|
|
1802
1940
|
SWIFT_CLASS_NAMED("MasonText")
|
|
@@ -1804,6 +1942,9 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
1804
1942
|
@property (nonatomic, readonly, strong) MasonText * _Nullable owner;
|
|
1805
1943
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1806
1944
|
@property (nonatomic, readonly, copy) NSData * _Nonnull textValues;
|
|
1945
|
+
@property (nonatomic, readonly) enum MasonTextType type;
|
|
1946
|
+
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
1947
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
1807
1948
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
1808
1949
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)masonNode OBJC_DESIGNATED_INITIALIZER;
|
|
1809
1950
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
@@ -1814,7 +1955,6 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
1814
1955
|
- (void)configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonNode * _Nonnull))block;
|
|
1815
1956
|
- (void)updateText:(NSString * _Nullable)value;
|
|
1816
1957
|
@property (nonatomic, strong) NSMutableAttributedString * _Nonnull txtToRender;
|
|
1817
|
-
@property (nonatomic, readonly, strong) UIFont * _Nonnull font;
|
|
1818
1958
|
- (void)invalidateStyle:(int64_t)state;
|
|
1819
1959
|
@property (nonatomic) enum TextTransform textTransform;
|
|
1820
1960
|
@property (nonatomic) CGFloat fontSize;
|
|
@@ -1828,6 +1968,7 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
1828
1968
|
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
1829
1969
|
@property (nonatomic) uint32_t decorationColor;
|
|
1830
1970
|
@property (nonatomic) enum DecorationLine decorationLine;
|
|
1971
|
+
@property (nonatomic) enum WhiteSpace whiteSpace;
|
|
1831
1972
|
@property (nonatomic) enum TextWrap textWrap;
|
|
1832
1973
|
- (void)drawRect:(CGRect)rect;
|
|
1833
1974
|
- (void)addView:(UIView * _Nonnull)view :(NSInteger)index;
|
|
@@ -1847,6 +1988,22 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextAlign, "MasonTextAlign", open) {
|
|
|
1847
1988
|
MasonTextAlignEnd = 6,
|
|
1848
1989
|
};
|
|
1849
1990
|
|
|
1991
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextType, "MasonTextType", open) {
|
|
1992
|
+
MasonTextTypeNone = 0,
|
|
1993
|
+
MasonTextTypeP = 1,
|
|
1994
|
+
MasonTextTypeSpan = 2,
|
|
1995
|
+
MasonTextTypeCode = 3,
|
|
1996
|
+
MasonTextTypeH1 = 4,
|
|
1997
|
+
MasonTextTypeH2 = 5,
|
|
1998
|
+
MasonTextTypeH3 = 6,
|
|
1999
|
+
MasonTextTypeH4 = 7,
|
|
2000
|
+
MasonTextTypeH5 = 8,
|
|
2001
|
+
MasonTextTypeH6 = 9,
|
|
2002
|
+
MasonTextTypeLi = 10,
|
|
2003
|
+
MasonTextTypeBlockquote = 11,
|
|
2004
|
+
MasonTextTypeB = 12,
|
|
2005
|
+
};
|
|
2006
|
+
|
|
1850
2007
|
|
|
1851
2008
|
SWIFT_CLASS_NAMED("MasonUIView")
|
|
1852
2009
|
@interface MasonUIView : UIView
|
|
@@ -1859,10 +2016,8 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
1859
2016
|
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1860
2017
|
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1861
2018
|
+ (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1862
|
-
@property (nonatomic, readonly) int64_t masonPtr;
|
|
1863
|
-
@property (nonatomic, readonly) int64_t masonNodePtr;
|
|
1864
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull masonPtrs;
|
|
1865
2019
|
@property (nonatomic, strong) MasonStyle * _Nonnull style;
|
|
2020
|
+
- (void)requestLayout;
|
|
1866
2021
|
- (void)addView:(UIView * _Nonnull)view;
|
|
1867
2022
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1868
2023
|
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
@@ -2032,6 +2187,99 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing *
|
|
|
2032
2187
|
@end
|
|
2033
2188
|
|
|
2034
2189
|
|
|
2190
|
+
SWIFT_CLASS_NAMED("NSCFontDescriptors")
|
|
2191
|
+
@interface NSCFontDescriptors : NSObject
|
|
2192
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
2193
|
+
- (void)update:(NSString * _Nonnull)value;
|
|
2194
|
+
- (void)setFontWeight:(NSString * _Nonnull)value;
|
|
2195
|
+
- (void)setFontStyle:(NSString * _Nonnull)value;
|
|
2196
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2197
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2198
|
+
@end
|
|
2199
|
+
|
|
2200
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
|
|
2201
|
+
NSCFontDisplayAuto = 0,
|
|
2202
|
+
NSCFontDisplayBlock = 1,
|
|
2203
|
+
NSCFontDisplayFallback = 2,
|
|
2204
|
+
NSCFontDisplayOptional = 3,
|
|
2205
|
+
NSCFontDisplaySwap = 4,
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
enum NSCFontFaceStatus : NSInteger;
|
|
2209
|
+
enum NSCFontWeight : NSInteger;
|
|
2210
|
+
|
|
2211
|
+
SWIFT_CLASS_NAMED("NSCFontFace")
|
|
2212
|
+
@interface NSCFontFace : NSObject
|
|
2213
|
+
@property (nonatomic, readonly) CGFontRef _Nullable font;
|
|
2214
|
+
@property (nonatomic, readonly, strong) NSData * _Nullable fontData;
|
|
2215
|
+
- (void)updateDescriptorWithValue:(NSString * _Nonnull)value;
|
|
2216
|
+
+ (NSCFontFace * _Nullable)loadFromStyleWithStyle:(NSString * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
2217
|
+
+ (void)importFromRemoteWithUrl:(NSString * _Nonnull)url load:(BOOL)load callback:(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nullable, NSString * _Nullable))callback;
|
|
2218
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
2219
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family source:(NSString * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
2220
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family data:(NSData * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
2221
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family :(NSString * _Nullable)source :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
2222
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family data:(NSData * _Nullable)data :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
2223
|
+
@property (nonatomic) enum NSCFontFaceStatus status;
|
|
2224
|
+
@property (nonatomic) enum NSCFontDisplay display;
|
|
2225
|
+
- (void)setFontDisplayWithValue:(NSString * _Nonnull)value;
|
|
2226
|
+
@property (nonatomic, copy) NSString * _Nonnull style;
|
|
2227
|
+
- (void)setFontStyleWithValue:(NSString * _Nonnull)value angle:(NSString * _Nullable)angle;
|
|
2228
|
+
@property (nonatomic) enum NSCFontWeight weight;
|
|
2229
|
+
- (void)setFontWeightWithValue:(NSString * _Nonnull)value;
|
|
2230
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull family;
|
|
2231
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull ascentOverride;
|
|
2232
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull descentOverride;
|
|
2233
|
+
- (void)load:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
2234
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2235
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2236
|
+
@end
|
|
2237
|
+
|
|
2238
|
+
enum NSCFontFaceSetStatus : NSInteger;
|
|
2239
|
+
@class NSEnumerator;
|
|
2240
|
+
|
|
2241
|
+
SWIFT_CLASS_NAMED("NSCFontFaceSet")
|
|
2242
|
+
@interface NSCFontFaceSet : NSObject
|
|
2243
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceSet * _Nonnull instance;)
|
|
2244
|
+
+ (NSCFontFaceSet * _Nonnull)instance SWIFT_WARN_UNUSED_RESULT;
|
|
2245
|
+
@property (nonatomic) enum NSCFontFaceSetStatus status;
|
|
2246
|
+
@property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
|
|
2247
|
+
- (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
|
|
2248
|
+
- (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
|
|
2249
|
+
- (void)add:(NSCFontFace * _Nonnull)font;
|
|
2250
|
+
- (void)clear;
|
|
2251
|
+
- (void)delete:(NSCFontFace * _Nonnull)font;
|
|
2252
|
+
- (BOOL)check:(NSString * _Nonnull)font :(NSString * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
|
|
2253
|
+
- (void)load:(NSString * _Nonnull)font :(NSString * _Nullable)text :(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nonnull, NSString * _Nullable))callback;
|
|
2254
|
+
@property (nonatomic, readonly) NSInteger size;
|
|
2255
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2256
|
+
@end
|
|
2257
|
+
|
|
2258
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceSetStatus, "NSCFontFaceSetStatus", open) {
|
|
2259
|
+
NSCFontFaceSetStatusLoading = 0,
|
|
2260
|
+
NSCFontFaceSetStatusLoaded = 1,
|
|
2261
|
+
};
|
|
2262
|
+
|
|
2263
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceStatus, "NSCFontFaceStatus", open) {
|
|
2264
|
+
NSCFontFaceStatusUnloaded = 0,
|
|
2265
|
+
NSCFontFaceStatusLoading = 1,
|
|
2266
|
+
NSCFontFaceStatusLoaded = 2,
|
|
2267
|
+
NSCFontFaceStatusError = 3,
|
|
2268
|
+
};
|
|
2269
|
+
|
|
2270
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
|
|
2271
|
+
NSCFontWeightThin = 0,
|
|
2272
|
+
NSCFontWeightExtraLight = 1,
|
|
2273
|
+
NSCFontWeightLight = 2,
|
|
2274
|
+
NSCFontWeightNormal = 3,
|
|
2275
|
+
NSCFontWeightMedium = 4,
|
|
2276
|
+
NSCFontWeightSemiBold = 5,
|
|
2277
|
+
NSCFontWeightBold = 6,
|
|
2278
|
+
NSCFontWeightExtraBold = 7,
|
|
2279
|
+
NSCFontWeightBlack = 8,
|
|
2280
|
+
};
|
|
2281
|
+
|
|
2282
|
+
|
|
2035
2283
|
SWIFT_CLASS_NAMED("NSCMason")
|
|
2036
2284
|
@interface NSCMason : NSObject
|
|
2037
2285
|
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
@@ -2043,6 +2291,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
2043
2291
|
- (void)clear;
|
|
2044
2292
|
- (MasonUIView * _Nonnull)createView SWIFT_WARN_UNUSED_RESULT;
|
|
2045
2293
|
- (MasonText * _Nonnull)createTextView SWIFT_WARN_UNUSED_RESULT;
|
|
2294
|
+
- (MasonText * _Nonnull)createTextViewWithType:(enum MasonTextType)type SWIFT_WARN_UNUSED_RESULT;
|
|
2046
2295
|
- (MasonNode * _Nonnull)createNode SWIFT_WARN_UNUSED_RESULT;
|
|
2047
2296
|
- (void)printTree:(MasonNode * _Nonnull)node;
|
|
2048
2297
|
- (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -2071,8 +2320,8 @@ typedef SWIFT_ENUM_NAMED(NSInteger, TextTransform, "TextTransform", open) {
|
|
|
2071
2320
|
};
|
|
2072
2321
|
|
|
2073
2322
|
typedef SWIFT_ENUM_NAMED(NSInteger, TextWrap, "TextWrap", open) {
|
|
2074
|
-
|
|
2075
|
-
|
|
2323
|
+
TextWrapWrap = 0,
|
|
2324
|
+
TextWrapNoWrap = 1,
|
|
2076
2325
|
TextWrapBalance = 2,
|
|
2077
2326
|
};
|
|
2078
2327
|
|
|
@@ -2088,6 +2337,13 @@ SWIFT_CLASS_NAMED("TrackSizingFunction")
|
|
|
2088
2337
|
@end
|
|
2089
2338
|
|
|
2090
2339
|
|
|
2340
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, WhiteSpace, "WhiteSpace", open) {
|
|
2341
|
+
WhiteSpaceNormal = 0,
|
|
2342
|
+
WhiteSpacePre = 1,
|
|
2343
|
+
WhiteSpacePreWrap = 2,
|
|
2344
|
+
WhiteSpacePreLine = 3,
|
|
2345
|
+
};
|
|
2346
|
+
|
|
2091
2347
|
#endif
|
|
2092
2348
|
#if __has_attribute(external_source_symbol)
|
|
2093
2349
|
# pragma clang attribute pop
|
|
Binary file
|
|
Binary file
|