@triniwiz/nativescript-masonkit 1.0.0-alpha.35 → 1.0.0-alpha.36
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 +1 -0
- package/common.js +74 -2
- package/common.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 +103 -50
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +50 -76
- 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 +44690 -33943
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +283 -129
- 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 +283 -129
- 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 +4116 -3259
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +206 -100
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +50 -76
- 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 +44690 -33943
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +283 -129
- 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 +283 -129
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +44690 -33943
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +283 -129
- 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 +283 -129
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +28 -28
- 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 +4111 -3259
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +3984 -3181
- package/style.d.ts +15 -14
- package/style.js +226 -22
- package/style.js.map +1 -1
- package/utils/index.android.js +1 -2
- package/utils/index.android.js.map +1 -1
- package/utils/index.ios.js +48 -48
- package/utils/index.ios.js.map +1 -1
|
@@ -285,6 +285,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
285
285
|
@import CoreGraphics;
|
|
286
286
|
@import Foundation;
|
|
287
287
|
@import ObjectiveC;
|
|
288
|
+
@import QuartzCore;
|
|
288
289
|
@import UIKit;
|
|
289
290
|
#endif
|
|
290
291
|
|
|
@@ -350,11 +351,28 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignSelf, "AlignSelf", open) {
|
|
|
350
351
|
MasonAlignSelfFlexEnd = 6,
|
|
351
352
|
};
|
|
352
353
|
|
|
354
|
+
@class NSCoder;
|
|
355
|
+
SWIFT_CLASS("_TtC5Mason17BackgroundCALayer")
|
|
356
|
+
@interface BackgroundCALayer : CALayer
|
|
357
|
+
- (void)drawInContext:(CGContextRef _Nonnull)ctx;
|
|
358
|
+
- (void)layoutSublayers;
|
|
359
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
360
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
|
|
361
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
362
|
+
@end
|
|
363
|
+
|
|
353
364
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonBoxSizing, "BoxSizing", open) {
|
|
354
365
|
MasonBoxSizingBorderBox = 0,
|
|
355
366
|
MasonBoxSizingContentBox = 1,
|
|
356
367
|
};
|
|
357
368
|
|
|
369
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonClear, "Clear", open) {
|
|
370
|
+
MasonClearNone = 0,
|
|
371
|
+
MasonClearLeft = 1,
|
|
372
|
+
MasonClearRight = 2,
|
|
373
|
+
MasonClearBoth = 3,
|
|
374
|
+
};
|
|
375
|
+
|
|
358
376
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationLine, "DecorationLine", open) {
|
|
359
377
|
MasonDecorationLineNone = 0,
|
|
360
378
|
MasonDecorationLineUnderline = 1,
|
|
@@ -451,7 +469,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonGridTra
|
|
|
451
469
|
|
|
452
470
|
@class MasonStyle;
|
|
453
471
|
@class MasonNode;
|
|
454
|
-
@class UIView;
|
|
455
472
|
SWIFT_PROTOCOL("_TtP5Mason16MasonElementObjc_")
|
|
456
473
|
@protocol MasonElementObjc <NSObject>
|
|
457
474
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
@@ -462,21 +479,22 @@ SWIFT_PROTOCOL("_TtP5Mason16MasonElementObjc_")
|
|
|
462
479
|
@class NSCMason;
|
|
463
480
|
enum MasonLoadingState : NSInteger;
|
|
464
481
|
@class UIImage;
|
|
465
|
-
@class NSCoder;
|
|
466
482
|
SWIFT_CLASS_NAMED("Img")
|
|
467
|
-
@interface MasonImg :
|
|
483
|
+
@interface MasonImg : UIView <MasonElementObjc>
|
|
468
484
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
469
485
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
470
486
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
471
487
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
472
488
|
@property (nonatomic, copy) void (^ _Nullable didLayout)(void);
|
|
473
489
|
@property (nonatomic, copy) void (^ _Nullable onStateChange)(enum MasonLoadingState, NSError * _Nullable);
|
|
490
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
|
|
491
|
+
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
|
|
474
492
|
@property (nonatomic, strong) UIImage * _Nullable image;
|
|
493
|
+
- (void)requestLayout;
|
|
494
|
+
- (void)setNeedsDisplay;
|
|
475
495
|
@property (nonatomic, copy) NSString * _Nullable src;
|
|
476
496
|
- (void)updateImage:(UIImage * _Nullable)image;
|
|
477
497
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
478
|
-
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image SWIFT_UNAVAILABLE;
|
|
479
|
-
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image highlightedImage:(UIImage * _Nullable)highlightedImage SWIFT_UNAVAILABLE;
|
|
480
498
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
481
499
|
@end
|
|
482
500
|
|
|
@@ -608,6 +626,20 @@ SWIFT_CLASS_NAMED("MasonDocument")
|
|
|
608
626
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
609
627
|
@end
|
|
610
628
|
|
|
629
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
|
|
630
|
+
MasonFloatNone = 0,
|
|
631
|
+
MasonFloatLeft = 1,
|
|
632
|
+
MasonFloatRight = 2,
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
|
|
636
|
+
@interface MasonImageLayer : CALayer
|
|
637
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
638
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
639
|
+
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
640
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer SWIFT_UNAVAILABLE;
|
|
641
|
+
@end
|
|
642
|
+
|
|
611
643
|
SWIFT_CLASS_NAMED("MasonLayout")
|
|
612
644
|
@interface MasonLayout : NSObject
|
|
613
645
|
@property (nonatomic, readonly) NSInteger order;
|
|
@@ -768,6 +800,7 @@ SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
|
|
|
768
800
|
|
|
769
801
|
@class NSCFontFace;
|
|
770
802
|
@class NSMutableData;
|
|
803
|
+
enum MasonObjectFit : NSInteger;
|
|
771
804
|
@class UIColor;
|
|
772
805
|
enum MasonTextJustify : NSInteger;
|
|
773
806
|
@class MasonTextOverflowCompat;
|
|
@@ -776,16 +809,19 @@ enum MasonWhiteSpace : NSInteger;
|
|
|
776
809
|
enum MasonTextWrap : NSInteger;
|
|
777
810
|
enum MasonPosition : NSInteger;
|
|
778
811
|
enum MasonTextAlign : NSInteger;
|
|
779
|
-
@class MinMax;
|
|
780
|
-
@class TrackSizingFunction;
|
|
781
812
|
SWIFT_CLASS_NAMED("MasonStyle")
|
|
782
813
|
@interface MasonStyle : NSObject
|
|
783
814
|
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
784
815
|
@property (nonatomic, strong) NSMutableData * _Nonnull values;
|
|
785
816
|
@property (nonatomic, strong) NSMutableData * _Nonnull textValues;
|
|
786
817
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
|
|
818
|
+
@property (nonatomic) enum MasonObjectFit objectFit;
|
|
819
|
+
@property (nonatomic, getter=float, setter=setFloat:) enum MasonFloat float_;
|
|
820
|
+
@property (nonatomic) enum MasonClear clear;
|
|
787
821
|
@property (nonatomic) uint32_t color;
|
|
788
822
|
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
823
|
+
@property (nonatomic, copy) NSString * _Nonnull filter;
|
|
824
|
+
@property (nonatomic, copy) NSString * _Nonnull background;
|
|
789
825
|
@property (nonatomic) uint32_t backgroundColor;
|
|
790
826
|
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
791
827
|
- (void)setLineHeight:(float)value :(BOOL)isRelative;
|
|
@@ -798,6 +834,7 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
798
834
|
- (void)setFontStyle:(enum MasonFontStyle)style :(int32_t)slant;
|
|
799
835
|
@property (nonatomic) enum MasonTextJustify textJustify;
|
|
800
836
|
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
837
|
+
@property (nonatomic, copy) NSString * _Nonnull fontFamily;
|
|
801
838
|
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
802
839
|
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
803
840
|
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
@@ -835,12 +872,13 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
835
872
|
- (void)setPaddingTop:(float)value :(NSInteger)type;
|
|
836
873
|
- (void)setPaddingBottom:(float)value :(NSInteger)type;
|
|
837
874
|
- (void)setPaddingWithValueType:(float)value :(NSInteger)type;
|
|
838
|
-
@property (nonatomic,
|
|
839
|
-
|
|
840
|
-
- (void)
|
|
841
|
-
- (void)
|
|
842
|
-
- (void)
|
|
843
|
-
- (void)
|
|
875
|
+
@property (nonatomic, copy) NSString * _Nonnull border;
|
|
876
|
+
@property (nonatomic, strong) MasonLengthPercentageRectCompat * _Nonnull borderWidthCompat;
|
|
877
|
+
- (void)setBorderLeftWidth:(float)value :(NSInteger)type;
|
|
878
|
+
- (void)setBorderRightWidth:(float)value :(NSInteger)type;
|
|
879
|
+
- (void)setBorderTopWidth:(float)value :(NSInteger)type;
|
|
880
|
+
- (void)setBorderBottomWidth:(float)value :(NSInteger)type;
|
|
881
|
+
- (void)setBorderWidth:(float)value :(NSInteger)type;
|
|
844
882
|
@property (nonatomic) float flexGrow;
|
|
845
883
|
@property (nonatomic) float flexShrink;
|
|
846
884
|
- (void)setFlexBasis:(float)value :(NSInteger)type;
|
|
@@ -867,19 +905,19 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
867
905
|
- (void)setGapColumn:(float)value :(NSInteger)type;
|
|
868
906
|
- (void)setRowGap:(float)value :(NSInteger)type;
|
|
869
907
|
- (void)setColumnGap:(float)value :(NSInteger)type;
|
|
870
|
-
@property (nonatomic, copy)
|
|
871
|
-
@property (nonatomic, copy)
|
|
908
|
+
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
909
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
910
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
911
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
872
912
|
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
873
|
-
@property (nonatomic,
|
|
874
|
-
@property (nonatomic,
|
|
875
|
-
@property (nonatomic,
|
|
876
|
-
@property (nonatomic,
|
|
877
|
-
@property (nonatomic,
|
|
878
|
-
@property (nonatomic,
|
|
879
|
-
@property (nonatomic,
|
|
880
|
-
@property (nonatomic, copy)
|
|
881
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull gridTemplateColumnsCSS;
|
|
882
|
-
@property (nonatomic, copy) NSArray<TrackSizingFunction *> * _Nonnull gridTemplateColumns;
|
|
913
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumn;
|
|
914
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
|
|
915
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
|
|
916
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRow;
|
|
917
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowStart;
|
|
918
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
919
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
920
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
883
921
|
- (void)updateNativeStyle;
|
|
884
922
|
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
885
923
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
@@ -891,6 +929,8 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
891
929
|
@interface MasonText : UIView <MasonElementObjc>
|
|
892
930
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
893
931
|
@property (nonatomic, readonly) enum MasonTextType type;
|
|
932
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
|
|
933
|
+
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
|
|
894
934
|
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
895
935
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
896
936
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
@@ -917,6 +957,8 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
917
957
|
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
918
958
|
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
919
959
|
@property (nonatomic) float lineHeight;
|
|
960
|
+
/// Text content - sets or gets the concatenated text from all text nodes
|
|
961
|
+
@property (nonatomic, copy) NSString * _Nonnull textContent;
|
|
920
962
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
921
963
|
@end
|
|
922
964
|
|
|
@@ -924,20 +966,19 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
924
966
|
- (void)addChild:(MasonNode * _Nonnull)child;
|
|
925
967
|
@end
|
|
926
968
|
|
|
927
|
-
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
928
|
-
/// Text content - sets or gets the concatenated text from all text nodes
|
|
929
|
-
@property (nonatomic, copy) NSString * _Nonnull text;
|
|
930
|
-
@end
|
|
931
|
-
|
|
932
|
-
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
933
|
-
- (void)drawRect:(CGRect)rect;
|
|
934
|
-
@end
|
|
935
|
-
|
|
936
969
|
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
937
970
|
/// Remove child from text container
|
|
938
971
|
- (MasonNode * _Nullable)removeChild:(MasonNode * _Nonnull)child;
|
|
939
972
|
@end
|
|
940
973
|
|
|
974
|
+
SWIFT_CLASS("_TtC5Mason14MasonTextLayer")
|
|
975
|
+
@interface MasonTextLayer : CALayer
|
|
976
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
977
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
978
|
+
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
979
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer SWIFT_UNAVAILABLE;
|
|
980
|
+
@end
|
|
981
|
+
|
|
941
982
|
SWIFT_CLASS_NAMED("MasonTextNode")
|
|
942
983
|
@interface MasonTextNode : MasonNode <MasonCharacterData>
|
|
943
984
|
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
@@ -994,6 +1035,7 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
994
1035
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views;
|
|
995
1036
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views at:(NSInteger)index;
|
|
996
1037
|
@property (nonatomic) BOOL inBatch;
|
|
1038
|
+
@property (nonatomic, copy) NSString * _Nonnull background;
|
|
997
1039
|
@property (nonatomic) enum MasonDisplay display;
|
|
998
1040
|
@property (nonatomic) enum MasonPosition _position;
|
|
999
1041
|
@property (nonatomic) enum MasonDirection direction;
|
|
@@ -1012,17 +1054,19 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
1012
1054
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull scrollBarWidthCompat;
|
|
1013
1055
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull flexBasisCompat;
|
|
1014
1056
|
@property (nonatomic) float aspectRatio;
|
|
1015
|
-
@property (nonatomic, copy)
|
|
1016
|
-
@property (nonatomic, copy)
|
|
1057
|
+
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
1058
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
1059
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
1060
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
1017
1061
|
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
1018
|
-
@property (nonatomic,
|
|
1019
|
-
@property (nonatomic,
|
|
1020
|
-
@property (nonatomic,
|
|
1021
|
-
@property (nonatomic,
|
|
1022
|
-
@property (nonatomic,
|
|
1023
|
-
@property (nonatomic,
|
|
1024
|
-
@property (nonatomic, copy)
|
|
1025
|
-
@property (nonatomic, copy)
|
|
1062
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumn;
|
|
1063
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
|
|
1064
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
|
|
1065
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRow;
|
|
1066
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowStart;
|
|
1067
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
1068
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
1069
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
1026
1070
|
- (void)setPadding:(float)left :(float)right :(float)top :(float)bottom;
|
|
1027
1071
|
- (MasonLengthPercentageRectCompat * _Nonnull)getPadding SWIFT_WARN_UNUSED_RESULT;
|
|
1028
1072
|
- (void)setPaddingLeft:(float)left :(NSInteger)type;
|
|
@@ -1033,12 +1077,12 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
1033
1077
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingRight SWIFT_WARN_UNUSED_RESULT;
|
|
1034
1078
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingTop SWIFT_WARN_UNUSED_RESULT;
|
|
1035
1079
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingBottom SWIFT_WARN_UNUSED_RESULT;
|
|
1036
|
-
- (void)
|
|
1037
|
-
- (MasonLengthPercentageRectCompat * _Nonnull)
|
|
1038
|
-
- (void)
|
|
1039
|
-
- (void)
|
|
1040
|
-
- (void)
|
|
1041
|
-
- (void)
|
|
1080
|
+
- (void)setBorderWidth:(float)left :(float)top :(float)right :(float)bottom;
|
|
1081
|
+
- (MasonLengthPercentageRectCompat * _Nonnull)getBorderWidth SWIFT_WARN_UNUSED_RESULT;
|
|
1082
|
+
- (void)setBorderLeftWidth:(float)left :(NSInteger)type;
|
|
1083
|
+
- (void)setBorderRightWidth:(float)right :(NSInteger)type;
|
|
1084
|
+
- (void)setBorderTopWidth:(float)top :(NSInteger)type;
|
|
1085
|
+
- (void)setBorderBottomWidth:(float)bottom :(NSInteger)type;
|
|
1042
1086
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderLeft SWIFT_WARN_UNUSED_RESULT;
|
|
1043
1087
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderRight SWIFT_WARN_UNUSED_RESULT;
|
|
1044
1088
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderBottom SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -1250,6 +1294,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
1250
1294
|
+ (NSCMason * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
1251
1295
|
+ (void)setShared:(NSCMason * _Nonnull)value;
|
|
1252
1296
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1297
|
+
- (void)setDeviceScale:(float)value;
|
|
1253
1298
|
- (MasonNode * _Nonnull)nodeForView:(UIView * _Nonnull)view :(BOOL)isLeaf SWIFT_WARN_UNUSED_RESULT;
|
|
1254
1299
|
- (void)configureStyleForView:(UIView * _Nonnull)view :(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
|
|
1255
1300
|
- (MasonStyle * _Nonnull)styleForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -1307,6 +1352,14 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
1307
1352
|
- (void)mason_replaceChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
1308
1353
|
@end
|
|
1309
1354
|
|
|
1355
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonObjectFit, "ObjectFit", open) {
|
|
1356
|
+
MasonObjectFitContain = 0,
|
|
1357
|
+
MasonObjectFitCover = 1,
|
|
1358
|
+
MasonObjectFitFill = 2,
|
|
1359
|
+
MasonObjectFitNone = 3,
|
|
1360
|
+
MasonObjectFitScaleDown = 4,
|
|
1361
|
+
};
|
|
1362
|
+
|
|
1310
1363
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonOverflow, "Overflow", open) {
|
|
1311
1364
|
MasonOverflowVisible = 0,
|
|
1312
1365
|
MasonOverflowHidden = 1,
|
|
@@ -60,6 +60,11 @@ typedef struct AvailableSpace {
|
|
|
60
60
|
};
|
|
61
61
|
} AvailableSpace;
|
|
62
62
|
|
|
63
|
+
typedef struct CMasonBuffer {
|
|
64
|
+
uint8_t *data;
|
|
65
|
+
uintptr_t size;
|
|
66
|
+
} CMasonBuffer;
|
|
67
|
+
|
|
63
68
|
typedef struct CMasonMinMax {
|
|
64
69
|
int32_t min_type;
|
|
65
70
|
float min_value;
|
|
@@ -67,42 +72,6 @@ typedef struct CMasonMinMax {
|
|
|
67
72
|
float max_value;
|
|
68
73
|
} CMasonMinMax;
|
|
69
74
|
|
|
70
|
-
typedef struct CMasonNonRepeatedTrackSizingFunctionArray {
|
|
71
|
-
struct CMasonMinMax *array;
|
|
72
|
-
uintptr_t length;
|
|
73
|
-
} CMasonNonRepeatedTrackSizingFunctionArray;
|
|
74
|
-
|
|
75
|
-
typedef enum CMasonTrackSizingFunction_Tag {
|
|
76
|
-
Single,
|
|
77
|
-
Repeat,
|
|
78
|
-
} CMasonTrackSizingFunction_Tag;
|
|
79
|
-
|
|
80
|
-
typedef struct Repeat_Body {
|
|
81
|
-
int32_t _0;
|
|
82
|
-
uint16_t _1;
|
|
83
|
-
struct CMasonNonRepeatedTrackSizingFunctionArray *_2;
|
|
84
|
-
} Repeat_Body;
|
|
85
|
-
|
|
86
|
-
typedef struct CMasonTrackSizingFunction {
|
|
87
|
-
CMasonTrackSizingFunction_Tag tag;
|
|
88
|
-
union {
|
|
89
|
-
struct {
|
|
90
|
-
struct CMasonMinMax single;
|
|
91
|
-
};
|
|
92
|
-
Repeat_Body repeat;
|
|
93
|
-
};
|
|
94
|
-
} CMasonTrackSizingFunction;
|
|
95
|
-
|
|
96
|
-
typedef struct CMasonTrackSizingFunctionArray {
|
|
97
|
-
struct CMasonTrackSizingFunction *array;
|
|
98
|
-
uintptr_t length;
|
|
99
|
-
} CMasonTrackSizingFunctionArray;
|
|
100
|
-
|
|
101
|
-
typedef struct CMasonBuffer {
|
|
102
|
-
uint8_t *data;
|
|
103
|
-
uintptr_t size;
|
|
104
|
-
} CMasonBuffer;
|
|
105
|
-
|
|
106
75
|
struct CMason *mason_init(void);
|
|
107
76
|
|
|
108
77
|
void mason_clear(struct CMason *mason);
|
|
@@ -111,6 +80,8 @@ void mason_release(struct CMason *mason);
|
|
|
111
80
|
|
|
112
81
|
void mason_print_tree(struct CMason *mason, struct CMasonNode *node);
|
|
113
82
|
|
|
83
|
+
void mason_set_device_scale(struct CMason *mason, float scale);
|
|
84
|
+
|
|
114
85
|
void mason_node_set_segments(struct CMason *mason,
|
|
115
86
|
struct CMasonNode *node,
|
|
116
87
|
struct CMasonSegment *segments,
|
|
@@ -255,9 +226,20 @@ void mason_node_remove_context(struct CMason *mason, struct CMasonNode *node);
|
|
|
255
226
|
void mason_node_set_apple_node(struct CMason *mason, struct CMasonNode *node, void *apple_node);
|
|
256
227
|
#endif
|
|
257
228
|
|
|
258
|
-
void
|
|
259
|
-
|
|
260
|
-
|
|
229
|
+
void mason_style_update_non_buffer_data(struct CMason *mason,
|
|
230
|
+
struct CMasonNode *node,
|
|
231
|
+
const char *grid_auto_rows,
|
|
232
|
+
const char *grid_auto_columns,
|
|
233
|
+
const char *grid_column,
|
|
234
|
+
const char *grid_column_start,
|
|
235
|
+
const char *grid_column_end,
|
|
236
|
+
const char *grid_row,
|
|
237
|
+
const char *grid_row_start,
|
|
238
|
+
const char *grid_row_end,
|
|
239
|
+
const char *grid_template_rows,
|
|
240
|
+
const char *grid_template_columns,
|
|
241
|
+
const char *grid_area,
|
|
242
|
+
const char *grid_template_areas);
|
|
261
243
|
|
|
262
244
|
void mason_style_set_with_values(struct CMason *mason,
|
|
263
245
|
struct CMasonNode *node,
|
|
@@ -326,24 +308,24 @@ void mason_style_set_with_values(struct CMason *mason,
|
|
|
326
308
|
int gap_column_type,
|
|
327
309
|
float gap_column_value,
|
|
328
310
|
float aspect_ratio,
|
|
329
|
-
|
|
330
|
-
|
|
311
|
+
const char *grid_auto_rows,
|
|
312
|
+
const char *grid_auto_columns,
|
|
331
313
|
int grid_auto_flow,
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
struct CMasonTrackSizingFunctionArray *grid_template_rows,
|
|
341
|
-
struct CMasonTrackSizingFunctionArray *grid_template_columns,
|
|
314
|
+
const char *grid_column,
|
|
315
|
+
const char *grid_column_start,
|
|
316
|
+
const char *grid_column_end,
|
|
317
|
+
const char *grid_row,
|
|
318
|
+
const char *grid_row_start,
|
|
319
|
+
const char *grid_row_end,
|
|
320
|
+
const char *grid_template_rows,
|
|
321
|
+
const char *grid_template_columns,
|
|
342
322
|
int32_t overflow_x,
|
|
343
323
|
int32_t overflow_y,
|
|
344
324
|
float scrollbar_width,
|
|
345
325
|
int32_t text_align,
|
|
346
|
-
int32_t box_sizing
|
|
326
|
+
int32_t box_sizing,
|
|
327
|
+
const char *grid_area,
|
|
328
|
+
const char *grid_template_areas);
|
|
347
329
|
|
|
348
330
|
void mason_style_release_style_buffer(struct CMasonBuffer *buffer);
|
|
349
331
|
|
|
@@ -351,40 +333,32 @@ struct CMasonBuffer *mason_style_get_style_buffer(struct CMason *mason, struct C
|
|
|
351
333
|
|
|
352
334
|
void *mason_style_get_style_buffer_apple(struct CMason *mason, struct CMasonNode *node);
|
|
353
335
|
|
|
354
|
-
|
|
355
|
-
struct CMasonNode *node);
|
|
336
|
+
char *mason_style_get_grid_area_css(struct CMason *mason, struct CMasonNode *node);
|
|
356
337
|
|
|
357
|
-
|
|
358
|
-
struct CMasonNode *node,
|
|
359
|
-
struct CMasonNonRepeatedTrackSizingFunctionArray *value);
|
|
338
|
+
char *mason_style_get_grid_template_areas_css(struct CMason *mason, struct CMasonNode *node);
|
|
360
339
|
|
|
361
|
-
|
|
362
|
-
struct CMasonNode *node);
|
|
340
|
+
char *mason_style_get_grid_auto_rows_css(struct CMason *mason, struct CMasonNode *node);
|
|
363
341
|
|
|
364
|
-
|
|
365
|
-
struct CMasonNode *node,
|
|
366
|
-
struct CMasonNonRepeatedTrackSizingFunctionArray *value);
|
|
342
|
+
char *mason_style_get_grid_auto_columns_css(struct CMason *mason, struct CMasonNode *node);
|
|
367
343
|
|
|
368
|
-
|
|
369
|
-
struct CMasonNode *node);
|
|
344
|
+
char *mason_style_get_grid_column_css(struct CMason *mason, struct CMasonNode *node);
|
|
370
345
|
|
|
371
|
-
|
|
372
|
-
struct CMasonNode *node,
|
|
373
|
-
struct CMasonTrackSizingFunctionArray *value);
|
|
346
|
+
char *mason_style_get_grid_column_start_css(struct CMason *mason, struct CMasonNode *node);
|
|
374
347
|
|
|
375
|
-
|
|
376
|
-
struct CMasonNode *node);
|
|
348
|
+
char *mason_style_get_grid_column_end_css(struct CMason *mason, struct CMasonNode *node);
|
|
377
349
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
350
|
+
char *mason_style_get_grid_row_css(struct CMason *mason, struct CMasonNode *node);
|
|
351
|
+
|
|
352
|
+
char *mason_style_get_grid_row_start_css(struct CMason *mason, struct CMasonNode *node);
|
|
353
|
+
|
|
354
|
+
char *mason_style_get_grid_row_end_css(struct CMason *mason, struct CMasonNode *node);
|
|
381
355
|
|
|
382
|
-
struct
|
|
383
|
-
float track_value);
|
|
356
|
+
char *mason_style_get_grid_template_rows_css(struct CMason *mason, struct CMasonNode *node);
|
|
384
357
|
|
|
385
|
-
char *
|
|
358
|
+
char *mason_style_get_grid_template_columns_css(struct CMason *mason, struct CMasonNode *node);
|
|
386
359
|
|
|
387
|
-
|
|
360
|
+
struct CMasonMinMax mason_util_create_track_sizing_function_with_type_value(int32_t track_type,
|
|
361
|
+
float track_value);
|
|
388
362
|
|
|
389
363
|
void mason_util_destroy_string(char *string);
|
|
390
364
|
|
|
Binary file
|