@triniwiz/nativescript-masonkit 1.0.0-alpha.32 → 1.0.0-alpha.34
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/package.json +4 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +59 -20
- 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 +11761 -8215
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +170 -52
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +170 -52
- 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 +3259 -3081
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +124 -46
- 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 +14540 -10994
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +275 -157
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +275 -157
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +14540 -10994
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +275 -157
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +275 -157
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +26 -26
- 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 +3259 -3075
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +3181 -3002
- package/common.d.ts +0 -138
- package/common.js +0 -1750
- package/common.js.map +0 -1
- package/img/index.android.d.ts +0 -10
- package/img/index.android.js +0 -40
- package/img/index.android.js.map +0 -1
- package/img/index.ios.d.ts +0 -13
- package/img/index.ios.js +0 -102
- package/img/index.ios.js.map +0 -1
- package/index.android.d.ts +0 -5
- package/index.android.js +0 -6
- package/index.android.js.map +0 -1
- package/index.ios.d.ts +0 -5
- package/index.ios.js +0 -6
- package/index.ios.js.map +0 -1
- package/scroll/index.android.d.ts +0 -13
- package/scroll/index.android.js +0 -80
- package/scroll/index.android.js.map +0 -1
- package/scroll/index.ios.d.ts +0 -16
- package/scroll/index.ios.js +0 -154
- package/scroll/index.ios.js.map +0 -1
- package/style.d.ts +0 -207
- package/style.js +0 -2388
- package/style.js.map +0 -1
- package/text/index.android.d.ts +0 -30
- package/text/index.android.js +0 -142
- package/text/index.android.js.map +0 -1
- package/text/index.ios.d.ts +0 -40
- package/text/index.ios.js +0 -294
- package/text/index.ios.js.map +0 -1
- package/tree/index.android.d.ts +0 -27
- package/tree/index.android.js +0 -72
- package/tree/index.android.js.map +0 -1
- package/tree/index.ios.d.ts +0 -28
- package/tree/index.ios.js +0 -73
- package/tree/index.ios.js.map +0 -1
- package/utils/index.android.d.ts +0 -187
- package/utils/index.android.js +0 -594
- package/utils/index.android.js.map +0 -1
- package/utils/index.ios.d.ts +0 -198
- package/utils/index.ios.js +0 -710
- package/utils/index.ios.js.map +0 -1
- package/view/index.android.d.ts +0 -13
- package/view/index.android.js +0 -81
- package/view/index.android.js.map +0 -1
- package/view/index.ios.d.ts +0 -17
- package/view/index.ios.js +0 -154
- package/view/index.ios.js.map +0 -1
- package/web.d.ts +0 -55
- package/web.js +0 -189
- package/web.js.map +0 -1
|
@@ -308,6 +308,13 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
308
308
|
|
|
309
309
|
#if defined(__OBJC__)
|
|
310
310
|
|
|
311
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlign, "Align", open) {
|
|
312
|
+
MasonAlignAuto = 0,
|
|
313
|
+
MasonAlignLeft = 1,
|
|
314
|
+
MasonAlignRight = 2,
|
|
315
|
+
MasonAlignCenter = 3,
|
|
316
|
+
};
|
|
317
|
+
|
|
311
318
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignContent, "AlignContent", open) {
|
|
312
319
|
MasonAlignContentNormal = -1,
|
|
313
320
|
MasonAlignContentStart = 0,
|
|
@@ -355,6 +362,14 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationLine, "DecorationLine", open)
|
|
|
355
362
|
MasonDecorationLineLineThrough = 3,
|
|
356
363
|
};
|
|
357
364
|
|
|
365
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationStyle, "DecorationStyle", open) {
|
|
366
|
+
MasonDecorationStyleSolid = 0,
|
|
367
|
+
MasonDecorationStyleDouble = 1,
|
|
368
|
+
MasonDecorationStyleDotted = 2,
|
|
369
|
+
MasonDecorationStyleDashed = 3,
|
|
370
|
+
MasonDecorationStyleWavy = 4,
|
|
371
|
+
};
|
|
372
|
+
|
|
358
373
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDirection, "Direction", open) {
|
|
359
374
|
MasonDirectionInherit = 0,
|
|
360
375
|
MasonDirectionLTR = 1,
|
|
@@ -460,7 +475,6 @@ SWIFT_CLASS_NAMED("Img")
|
|
|
460
475
|
@property (nonatomic, copy) NSString * _Nullable src;
|
|
461
476
|
- (void)updateImage:(UIImage * _Nullable)image;
|
|
462
477
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
463
|
-
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
464
478
|
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image SWIFT_UNAVAILABLE;
|
|
465
479
|
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image highlightedImage:(UIImage * _Nullable)highlightedImage SWIFT_UNAVAILABLE;
|
|
466
480
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
@@ -752,17 +766,43 @@ SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
|
|
|
752
766
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
753
767
|
@end
|
|
754
768
|
|
|
769
|
+
@class NSCFontFace;
|
|
755
770
|
@class NSMutableData;
|
|
756
|
-
@class
|
|
771
|
+
@class UIColor;
|
|
772
|
+
enum MasonTextJustify : NSInteger;
|
|
773
|
+
@class MasonTextOverflowCompat;
|
|
774
|
+
enum MasonTextTransform : NSInteger;
|
|
775
|
+
enum MasonWhiteSpace : NSInteger;
|
|
776
|
+
enum MasonTextWrap : NSInteger;
|
|
757
777
|
enum MasonPosition : NSInteger;
|
|
758
778
|
enum MasonTextAlign : NSInteger;
|
|
759
779
|
@class MinMax;
|
|
760
780
|
@class TrackSizingFunction;
|
|
761
781
|
SWIFT_CLASS_NAMED("MasonStyle")
|
|
762
782
|
@interface MasonStyle : NSObject
|
|
763
|
-
@property (nonatomic, strong)
|
|
764
|
-
@property (nonatomic,
|
|
783
|
+
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
784
|
+
@property (nonatomic, strong) NSMutableData * _Nonnull values;
|
|
785
|
+
@property (nonatomic, strong) NSMutableData * _Nonnull textValues;
|
|
765
786
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
|
|
787
|
+
@property (nonatomic) uint32_t color;
|
|
788
|
+
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
789
|
+
@property (nonatomic) uint32_t backgroundColor;
|
|
790
|
+
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
791
|
+
- (void)setLineHeight:(float)value :(BOOL)isRelative;
|
|
792
|
+
@property (nonatomic) float lineHeight;
|
|
793
|
+
@property (nonatomic) float letterSpacing;
|
|
794
|
+
@property (nonatomic) uint32_t decorationColor;
|
|
795
|
+
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
796
|
+
@property (nonatomic) enum MasonDecorationLine decorationLine;
|
|
797
|
+
@property (nonatomic) int32_t fontSize;
|
|
798
|
+
- (void)setFontStyle:(enum MasonFontStyle)style :(int32_t)slant;
|
|
799
|
+
@property (nonatomic) enum MasonTextJustify textJustify;
|
|
800
|
+
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
801
|
+
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
802
|
+
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
803
|
+
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
804
|
+
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
805
|
+
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
766
806
|
@property (nonatomic) enum MasonDisplay display;
|
|
767
807
|
@property (nonatomic) enum MasonPosition position;
|
|
768
808
|
@property (nonatomic) enum MasonDirection direction;
|
|
@@ -805,6 +845,7 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
805
845
|
@property (nonatomic) float flexShrink;
|
|
806
846
|
- (void)setFlexBasis:(float)value :(NSInteger)type;
|
|
807
847
|
- (void)setScrollBarWidth:(float)value;
|
|
848
|
+
@property (nonatomic) enum MasonAlign align;
|
|
808
849
|
@property (nonatomic) enum MasonTextAlign textAlign;
|
|
809
850
|
@property (nonatomic) enum MasonBoxSizing boxSizing;
|
|
810
851
|
@property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull minSizeCompat;
|
|
@@ -846,46 +887,36 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
846
887
|
@end
|
|
847
888
|
|
|
848
889
|
enum MasonTextType : NSInteger;
|
|
849
|
-
@class NSCFontFace;
|
|
850
|
-
@class MasonTextOverflowCompat;
|
|
851
|
-
@class UIColor;
|
|
852
|
-
enum MasonTextTransform : NSInteger;
|
|
853
|
-
enum MasonWhiteSpace : NSInteger;
|
|
854
|
-
enum MasonTextWrap : NSInteger;
|
|
855
890
|
SWIFT_CLASS_NAMED("MasonText")
|
|
856
891
|
@interface MasonText : UIView <MasonElementObjc>
|
|
857
892
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
858
893
|
@property (nonatomic, readonly) enum MasonTextType type;
|
|
859
894
|
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
860
|
-
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
861
895
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
862
896
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
863
|
-
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
864
897
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
865
898
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
866
899
|
- (void)setNeedsDisplay;
|
|
867
900
|
- (void)requestLayout;
|
|
868
|
-
- (void)syncStyle:(NSString * _Nonnull)state textState:(NSString * _Nonnull)textState;
|
|
869
901
|
- (void)addView:(UIView * _Nonnull)view;
|
|
870
902
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
871
903
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
904
|
+
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
872
905
|
@property (nonatomic) uint32_t color;
|
|
873
|
-
@property (nonatomic) uint32_t backgroundColorValue;
|
|
874
906
|
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
907
|
+
@property (nonatomic) uint32_t backgroundColorValue;
|
|
875
908
|
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
876
909
|
@property (nonatomic) uint32_t decorationColor;
|
|
877
910
|
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
878
911
|
@property (nonatomic) enum MasonDecorationLine decorationLine;
|
|
879
|
-
@property (nonatomic)
|
|
912
|
+
@property (nonatomic) int32_t fontSize;
|
|
880
913
|
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
881
914
|
- (void)setFontStyle:(enum MasonFontStyle)style slant:(int32_t)slant;
|
|
882
915
|
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
883
916
|
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
884
917
|
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
885
918
|
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
886
|
-
|
|
887
|
-
/// Helper to get default text attributes for new text nodes
|
|
888
|
-
- (NSDictionary<NSAttributedStringKey, id> * _Nonnull)getDefaultAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
919
|
+
@property (nonatomic) float lineHeight;
|
|
889
920
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
890
921
|
@end
|
|
891
922
|
|
|
@@ -899,12 +930,12 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
899
930
|
@end
|
|
900
931
|
|
|
901
932
|
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
902
|
-
|
|
903
|
-
- (MasonNode * _Nullable)removeChild:(MasonNode * _Nonnull)child;
|
|
933
|
+
- (void)drawRect:(CGRect)rect;
|
|
904
934
|
@end
|
|
905
935
|
|
|
906
936
|
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
907
|
-
|
|
937
|
+
/// Remove child from text container
|
|
938
|
+
- (MasonNode * _Nullable)removeChild:(MasonNode * _Nonnull)child;
|
|
908
939
|
@end
|
|
909
940
|
|
|
910
941
|
SWIFT_CLASS_NAMED("MasonTextNode")
|
|
@@ -955,7 +986,6 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
955
986
|
- (void)markNodeDirty;
|
|
956
987
|
- (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
957
988
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
958
|
-
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
959
989
|
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
960
990
|
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
961
991
|
+ (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -1139,6 +1169,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
|
|
|
1139
1169
|
NSCFontDisplaySwap = 4,
|
|
1140
1170
|
};
|
|
1141
1171
|
|
|
1172
|
+
@class NSData;
|
|
1142
1173
|
enum NSCFontFaceStatus : NSInteger;
|
|
1143
1174
|
enum NSCFontWeight : NSInteger;
|
|
1144
1175
|
SWIFT_CLASS_NAMED("NSCFontFace")
|
|
@@ -1237,6 +1268,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
1237
1268
|
@end
|
|
1238
1269
|
|
|
1239
1270
|
@interface NSObject (SWIFT_EXTENSION(Mason))
|
|
1271
|
+
- (void)mason_syncStyle:(NSString * _Nonnull)state :(NSString * _Nonnull)textState;
|
|
1240
1272
|
- (void)mason_addView:(UIView * _Nonnull)view;
|
|
1241
1273
|
- (void)mason_addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1242
1274
|
- (void)mason_markNodeDirty;
|
|
@@ -1294,7 +1326,6 @@ SWIFT_CLASS_NAMED("Scroll")
|
|
|
1294
1326
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1295
1327
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1296
1328
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1297
|
-
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
1298
1329
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1299
1330
|
- (void)scrollViewWillBeginDragging:(UIScrollView * _Nonnull)scrollView;
|
|
1300
1331
|
- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
|
|
@@ -1349,6 +1380,14 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextAlign, "TextAlign", open) {
|
|
|
1349
1380
|
MasonTextAlignEnd = 6,
|
|
1350
1381
|
};
|
|
1351
1382
|
|
|
1383
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextJustify, "TextJustify", open) {
|
|
1384
|
+
MasonTextJustifyNone = 0,
|
|
1385
|
+
MasonTextJustifyAuto = 1,
|
|
1386
|
+
MasonTextJustifyInterWord = 2,
|
|
1387
|
+
MasonTextJustifyInterCharacter = 3,
|
|
1388
|
+
MasonTextJustifyDistribute = 4,
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1352
1391
|
SWIFT_CLASS_NAMED("TextOverflowCompat")
|
|
1353
1392
|
@interface MasonTextOverflowCompat : NSObject
|
|
1354
1393
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonTextOverflowCompat * _Nonnull Clip;)
|
|
@@ -1715,6 +1754,13 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
1715
1754
|
|
|
1716
1755
|
#if defined(__OBJC__)
|
|
1717
1756
|
|
|
1757
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlign, "Align", open) {
|
|
1758
|
+
MasonAlignAuto = 0,
|
|
1759
|
+
MasonAlignLeft = 1,
|
|
1760
|
+
MasonAlignRight = 2,
|
|
1761
|
+
MasonAlignCenter = 3,
|
|
1762
|
+
};
|
|
1763
|
+
|
|
1718
1764
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignContent, "AlignContent", open) {
|
|
1719
1765
|
MasonAlignContentNormal = -1,
|
|
1720
1766
|
MasonAlignContentStart = 0,
|
|
@@ -1762,6 +1808,14 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationLine, "DecorationLine", open)
|
|
|
1762
1808
|
MasonDecorationLineLineThrough = 3,
|
|
1763
1809
|
};
|
|
1764
1810
|
|
|
1811
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationStyle, "DecorationStyle", open) {
|
|
1812
|
+
MasonDecorationStyleSolid = 0,
|
|
1813
|
+
MasonDecorationStyleDouble = 1,
|
|
1814
|
+
MasonDecorationStyleDotted = 2,
|
|
1815
|
+
MasonDecorationStyleDashed = 3,
|
|
1816
|
+
MasonDecorationStyleWavy = 4,
|
|
1817
|
+
};
|
|
1818
|
+
|
|
1765
1819
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDirection, "Direction", open) {
|
|
1766
1820
|
MasonDirectionInherit = 0,
|
|
1767
1821
|
MasonDirectionLTR = 1,
|
|
@@ -1867,7 +1921,6 @@ SWIFT_CLASS_NAMED("Img")
|
|
|
1867
1921
|
@property (nonatomic, copy) NSString * _Nullable src;
|
|
1868
1922
|
- (void)updateImage:(UIImage * _Nullable)image;
|
|
1869
1923
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1870
|
-
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
1871
1924
|
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image SWIFT_UNAVAILABLE;
|
|
1872
1925
|
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image highlightedImage:(UIImage * _Nullable)highlightedImage SWIFT_UNAVAILABLE;
|
|
1873
1926
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
@@ -2159,17 +2212,43 @@ SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
|
|
|
2159
2212
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2160
2213
|
@end
|
|
2161
2214
|
|
|
2215
|
+
@class NSCFontFace;
|
|
2162
2216
|
@class NSMutableData;
|
|
2163
|
-
@class
|
|
2217
|
+
@class UIColor;
|
|
2218
|
+
enum MasonTextJustify : NSInteger;
|
|
2219
|
+
@class MasonTextOverflowCompat;
|
|
2220
|
+
enum MasonTextTransform : NSInteger;
|
|
2221
|
+
enum MasonWhiteSpace : NSInteger;
|
|
2222
|
+
enum MasonTextWrap : NSInteger;
|
|
2164
2223
|
enum MasonPosition : NSInteger;
|
|
2165
2224
|
enum MasonTextAlign : NSInteger;
|
|
2166
2225
|
@class MinMax;
|
|
2167
2226
|
@class TrackSizingFunction;
|
|
2168
2227
|
SWIFT_CLASS_NAMED("MasonStyle")
|
|
2169
2228
|
@interface MasonStyle : NSObject
|
|
2170
|
-
@property (nonatomic, strong)
|
|
2171
|
-
@property (nonatomic,
|
|
2229
|
+
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
2230
|
+
@property (nonatomic, strong) NSMutableData * _Nonnull values;
|
|
2231
|
+
@property (nonatomic, strong) NSMutableData * _Nonnull textValues;
|
|
2172
2232
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
|
|
2233
|
+
@property (nonatomic) uint32_t color;
|
|
2234
|
+
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
2235
|
+
@property (nonatomic) uint32_t backgroundColor;
|
|
2236
|
+
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
2237
|
+
- (void)setLineHeight:(float)value :(BOOL)isRelative;
|
|
2238
|
+
@property (nonatomic) float lineHeight;
|
|
2239
|
+
@property (nonatomic) float letterSpacing;
|
|
2240
|
+
@property (nonatomic) uint32_t decorationColor;
|
|
2241
|
+
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
2242
|
+
@property (nonatomic) enum MasonDecorationLine decorationLine;
|
|
2243
|
+
@property (nonatomic) int32_t fontSize;
|
|
2244
|
+
- (void)setFontStyle:(enum MasonFontStyle)style :(int32_t)slant;
|
|
2245
|
+
@property (nonatomic) enum MasonTextJustify textJustify;
|
|
2246
|
+
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
2247
|
+
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
2248
|
+
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
2249
|
+
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
2250
|
+
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
2251
|
+
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
2173
2252
|
@property (nonatomic) enum MasonDisplay display;
|
|
2174
2253
|
@property (nonatomic) enum MasonPosition position;
|
|
2175
2254
|
@property (nonatomic) enum MasonDirection direction;
|
|
@@ -2212,6 +2291,7 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
2212
2291
|
@property (nonatomic) float flexShrink;
|
|
2213
2292
|
- (void)setFlexBasis:(float)value :(NSInteger)type;
|
|
2214
2293
|
- (void)setScrollBarWidth:(float)value;
|
|
2294
|
+
@property (nonatomic) enum MasonAlign align;
|
|
2215
2295
|
@property (nonatomic) enum MasonTextAlign textAlign;
|
|
2216
2296
|
@property (nonatomic) enum MasonBoxSizing boxSizing;
|
|
2217
2297
|
@property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull minSizeCompat;
|
|
@@ -2253,46 +2333,36 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
2253
2333
|
@end
|
|
2254
2334
|
|
|
2255
2335
|
enum MasonTextType : NSInteger;
|
|
2256
|
-
@class NSCFontFace;
|
|
2257
|
-
@class MasonTextOverflowCompat;
|
|
2258
|
-
@class UIColor;
|
|
2259
|
-
enum MasonTextTransform : NSInteger;
|
|
2260
|
-
enum MasonWhiteSpace : NSInteger;
|
|
2261
|
-
enum MasonTextWrap : NSInteger;
|
|
2262
2336
|
SWIFT_CLASS_NAMED("MasonText")
|
|
2263
2337
|
@interface MasonText : UIView <MasonElementObjc>
|
|
2264
2338
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
2265
2339
|
@property (nonatomic, readonly) enum MasonTextType type;
|
|
2266
2340
|
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
2267
|
-
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
2268
2341
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
2269
2342
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
2270
|
-
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
2271
2343
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
2272
2344
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
2273
2345
|
- (void)setNeedsDisplay;
|
|
2274
2346
|
- (void)requestLayout;
|
|
2275
|
-
- (void)syncStyle:(NSString * _Nonnull)state textState:(NSString * _Nonnull)textState;
|
|
2276
2347
|
- (void)addView:(UIView * _Nonnull)view;
|
|
2277
2348
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
2278
2349
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2350
|
+
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
2279
2351
|
@property (nonatomic) uint32_t color;
|
|
2280
|
-
@property (nonatomic) uint32_t backgroundColorValue;
|
|
2281
2352
|
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
2353
|
+
@property (nonatomic) uint32_t backgroundColorValue;
|
|
2282
2354
|
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
2283
2355
|
@property (nonatomic) uint32_t decorationColor;
|
|
2284
2356
|
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
2285
2357
|
@property (nonatomic) enum MasonDecorationLine decorationLine;
|
|
2286
|
-
@property (nonatomic)
|
|
2358
|
+
@property (nonatomic) int32_t fontSize;
|
|
2287
2359
|
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
2288
2360
|
- (void)setFontStyle:(enum MasonFontStyle)style slant:(int32_t)slant;
|
|
2289
2361
|
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
2290
2362
|
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
2291
2363
|
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
2292
2364
|
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
2293
|
-
|
|
2294
|
-
/// Helper to get default text attributes for new text nodes
|
|
2295
|
-
- (NSDictionary<NSAttributedStringKey, id> * _Nonnull)getDefaultAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
2365
|
+
@property (nonatomic) float lineHeight;
|
|
2296
2366
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
2297
2367
|
@end
|
|
2298
2368
|
|
|
@@ -2306,12 +2376,12 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
2306
2376
|
@end
|
|
2307
2377
|
|
|
2308
2378
|
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
2309
|
-
|
|
2310
|
-
- (MasonNode * _Nullable)removeChild:(MasonNode * _Nonnull)child;
|
|
2379
|
+
- (void)drawRect:(CGRect)rect;
|
|
2311
2380
|
@end
|
|
2312
2381
|
|
|
2313
2382
|
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
2314
|
-
|
|
2383
|
+
/// Remove child from text container
|
|
2384
|
+
- (MasonNode * _Nullable)removeChild:(MasonNode * _Nonnull)child;
|
|
2315
2385
|
@end
|
|
2316
2386
|
|
|
2317
2387
|
SWIFT_CLASS_NAMED("MasonTextNode")
|
|
@@ -2362,7 +2432,6 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
2362
2432
|
- (void)markNodeDirty;
|
|
2363
2433
|
- (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
2364
2434
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2365
|
-
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
2366
2435
|
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
2367
2436
|
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
2368
2437
|
+ (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -2546,6 +2615,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
|
|
|
2546
2615
|
NSCFontDisplaySwap = 4,
|
|
2547
2616
|
};
|
|
2548
2617
|
|
|
2618
|
+
@class NSData;
|
|
2549
2619
|
enum NSCFontFaceStatus : NSInteger;
|
|
2550
2620
|
enum NSCFontWeight : NSInteger;
|
|
2551
2621
|
SWIFT_CLASS_NAMED("NSCFontFace")
|
|
@@ -2644,6 +2714,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
2644
2714
|
@end
|
|
2645
2715
|
|
|
2646
2716
|
@interface NSObject (SWIFT_EXTENSION(Mason))
|
|
2717
|
+
- (void)mason_syncStyle:(NSString * _Nonnull)state :(NSString * _Nonnull)textState;
|
|
2647
2718
|
- (void)mason_addView:(UIView * _Nonnull)view;
|
|
2648
2719
|
- (void)mason_addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
2649
2720
|
- (void)mason_markNodeDirty;
|
|
@@ -2701,7 +2772,6 @@ SWIFT_CLASS_NAMED("Scroll")
|
|
|
2701
2772
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
2702
2773
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
2703
2774
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
2704
|
-
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
2705
2775
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2706
2776
|
- (void)scrollViewWillBeginDragging:(UIScrollView * _Nonnull)scrollView;
|
|
2707
2777
|
- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
|
|
@@ -2756,6 +2826,14 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextAlign, "TextAlign", open) {
|
|
|
2756
2826
|
MasonTextAlignEnd = 6,
|
|
2757
2827
|
};
|
|
2758
2828
|
|
|
2829
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextJustify, "TextJustify", open) {
|
|
2830
|
+
MasonTextJustifyNone = 0,
|
|
2831
|
+
MasonTextJustifyAuto = 1,
|
|
2832
|
+
MasonTextJustifyInterWord = 2,
|
|
2833
|
+
MasonTextJustifyInterCharacter = 3,
|
|
2834
|
+
MasonTextJustifyDistribute = 4,
|
|
2835
|
+
};
|
|
2836
|
+
|
|
2759
2837
|
SWIFT_CLASS_NAMED("TextOverflowCompat")
|
|
2760
2838
|
@interface MasonTextOverflowCompat : NSObject
|
|
2761
2839
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonTextOverflowCompat * _Nonnull Clip;)
|
|
Binary file
|
|
Binary file
|