@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
|
@@ -10,47 +10,109 @@ import UIKit
|
|
|
10
10
|
import _Concurrency
|
|
11
11
|
import _StringProcessing
|
|
12
12
|
import _SwiftConcurrencyShims
|
|
13
|
-
@objc public
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
@objc func substringData(offset: Swift.Int, count: Swift.Int) -> Swift.String
|
|
25
|
-
@objc @discardableResult
|
|
26
|
-
func deleteData(range: Foundation.NSRange) -> Self
|
|
27
|
-
@objc @discardableResult
|
|
28
|
-
func replaceData(range: Foundation.NSRange, with s: Swift.String) -> Self
|
|
13
|
+
@objc(NSCFontDisplay) public enum NSCFontDisplay : Swift.Int, Swift.RawRepresentable, Swift.Codable {
|
|
14
|
+
case auto
|
|
15
|
+
case block
|
|
16
|
+
case fallback
|
|
17
|
+
case optional
|
|
18
|
+
case swap
|
|
19
|
+
public typealias RawValue = Swift.Int
|
|
20
|
+
public init?(rawValue: Swift.Int)
|
|
21
|
+
public var rawValue: Swift.Int {
|
|
22
|
+
get
|
|
23
|
+
}
|
|
29
24
|
}
|
|
30
|
-
@
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
@objc(NSCFontWeight) public enum NSCFontWeight : Swift.Int, Swift.RawRepresentable, Swift.Codable, Swift.CustomStringConvertible {
|
|
26
|
+
case thin
|
|
27
|
+
case extraLight
|
|
28
|
+
case light
|
|
29
|
+
case normal
|
|
30
|
+
case medium
|
|
31
|
+
case semiBold
|
|
32
|
+
case bold
|
|
33
|
+
case extraBold
|
|
34
|
+
case black
|
|
35
|
+
public var description: Swift.String {
|
|
36
|
+
get
|
|
37
|
+
}
|
|
38
|
+
public typealias RawValue = Swift.Int
|
|
39
|
+
public init?(rawValue: Swift.Int)
|
|
40
|
+
public var rawValue: Swift.Int {
|
|
41
|
+
get
|
|
42
|
+
}
|
|
43
|
+
public var uiFontWeight: UIKit.UIFont.Weight {
|
|
44
|
+
get
|
|
45
|
+
}
|
|
46
|
+
public static func from(uiFontWeight: UIKit.UIFont.Weight) -> Mason.NSCFontWeight
|
|
47
|
+
}
|
|
48
|
+
@objcMembers @objc(NSCFontDescriptors) public class NSCFontDescriptors : ObjectiveC.NSObject, Swift.Codable {
|
|
49
|
+
@objc public init(family: Swift.String)
|
|
50
|
+
@objc public func update(_ value: Swift.String)
|
|
51
|
+
@objc public func setFontWeight(_ value: Swift.String)
|
|
52
|
+
@objc public func setFontStyle(_ value: Swift.String)
|
|
53
|
+
@objc deinit
|
|
54
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
55
|
+
required public init(from decoder: any Swift.Decoder) throws
|
|
56
|
+
}
|
|
57
|
+
@objc(NSCFontFaceStatus) public enum NSCFontFaceStatus : Swift.Int, Swift.RawRepresentable {
|
|
58
|
+
case unloaded
|
|
59
|
+
case loading
|
|
60
|
+
case loaded
|
|
61
|
+
case error
|
|
62
|
+
public typealias RawValue = Swift.Int
|
|
63
|
+
public init?(rawValue: Swift.Int)
|
|
64
|
+
public var rawValue: Swift.Int {
|
|
65
|
+
get
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
@objcMembers @objc(NSCFontFace) public class NSCFontFace : ObjectiveC.NSObject {
|
|
69
|
+
@objc public var font: CoreGraphics.CGFont? {
|
|
70
|
+
get
|
|
71
|
+
}
|
|
72
|
+
@objc public var fontData: Foundation.NSData? {
|
|
73
|
+
get
|
|
74
|
+
}
|
|
75
|
+
@objc public func updateDescriptor(value: Swift.String)
|
|
76
|
+
@objc public static func loadFromStyle(style: Swift.String) -> Mason.NSCFontFace?
|
|
77
|
+
@objc public static func importFromRemote(url: Swift.String, load: Swift.Bool, callback: @escaping ([Mason.NSCFontFace]?, Swift.String?) -> Swift.Void)
|
|
78
|
+
@objc public init(family: Swift.String)
|
|
79
|
+
@objc public init(family: Swift.String, source: Swift.String)
|
|
80
|
+
@objc public init(family: Swift.String, data source: Foundation.NSData)
|
|
81
|
+
@objc public init(_ family: Swift.String, _ source: Swift.String? = nil, _ descriptors: Mason.NSCFontDescriptors? = nil)
|
|
82
|
+
@objc public init(_ family: Swift.String, data: Foundation.NSData? = nil, _ descriptors: Mason.NSCFontDescriptors? = nil)
|
|
83
|
+
@objc public var status: Mason.NSCFontFaceStatus
|
|
84
|
+
@objc public var display: Mason.NSCFontDisplay
|
|
85
|
+
@objc public func setFontDisplay(value: Swift.String)
|
|
86
|
+
@objc public var style: Swift.String {
|
|
35
87
|
@objc get
|
|
88
|
+
@objc set
|
|
36
89
|
}
|
|
37
|
-
@objc public func
|
|
38
|
-
@
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
@
|
|
43
|
-
@objc public
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
@
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
@objc public
|
|
90
|
+
@objc public func setFontStyle(value: Swift.String, angle: Swift.String?)
|
|
91
|
+
@objc public var weight: Mason.NSCFontWeight {
|
|
92
|
+
@objc get
|
|
93
|
+
@objc set
|
|
94
|
+
}
|
|
95
|
+
@objc public func setFontWeight(value: Swift.String)
|
|
96
|
+
@objc public var family: Swift.String {
|
|
97
|
+
@objc get
|
|
98
|
+
}
|
|
99
|
+
@objc public var ascentOverride: Swift.String {
|
|
100
|
+
@objc get
|
|
101
|
+
}
|
|
102
|
+
@objc public var descentOverride: Swift.String {
|
|
103
|
+
@objc get
|
|
104
|
+
}
|
|
105
|
+
@objc public func load(_ callback: @escaping (Swift.String?) -> Swift.Void)
|
|
50
106
|
@objc deinit
|
|
51
107
|
}
|
|
52
|
-
|
|
53
|
-
@objc
|
|
108
|
+
@objcMembers @objc(MasonDocument) public class MasonDocument : ObjectiveC.NSObject {
|
|
109
|
+
@objc final public let node: Mason.MasonNode
|
|
110
|
+
@objc final public let mason: Mason.NSCMason
|
|
111
|
+
public var documentElement: (any Mason.MasonElement)? {
|
|
112
|
+
get
|
|
113
|
+
}
|
|
114
|
+
@objc public init(mason instance: Mason.NSCMason)
|
|
115
|
+
@objc deinit
|
|
54
116
|
}
|
|
55
117
|
@objc(MasonTextType) public enum MasonTextType : Swift.Int, Swift.RawRepresentable, Swift.CustomStringConvertible {
|
|
56
118
|
case None
|
|
@@ -84,10 +146,7 @@ public enum InlineSegmentPayload {
|
|
|
84
146
|
@_Concurrency.MainActor @preconcurrency @objc final public let node: Mason.MasonNode
|
|
85
147
|
@objc @_Concurrency.MainActor @preconcurrency final public let type: Mason.MasonTextType
|
|
86
148
|
@objc @_Concurrency.MainActor @preconcurrency public var textValues: Foundation.NSMutableData {
|
|
87
|
-
get
|
|
88
|
-
}
|
|
89
|
-
@objc @_Concurrency.MainActor @preconcurrency public var font: Mason.NSCFontFace {
|
|
90
|
-
get
|
|
149
|
+
@objc get
|
|
91
150
|
}
|
|
92
151
|
@_Concurrency.MainActor @preconcurrency @objc public var uiView: UIKit.UIView {
|
|
93
152
|
@objc get
|
|
@@ -95,6 +154,12 @@ public enum InlineSegmentPayload {
|
|
|
95
154
|
@_Concurrency.MainActor @preconcurrency @objc public var style: Mason.MasonStyle {
|
|
96
155
|
@objc get
|
|
97
156
|
}
|
|
157
|
+
@objc @_Concurrency.MainActor @preconcurrency public init(mason: Mason.NSCMason, type textType: Mason.MasonTextType)
|
|
158
|
+
@objc @_Concurrency.MainActor @preconcurrency public init(mason: Mason.NSCMason)
|
|
159
|
+
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func setNeedsDisplay()
|
|
160
|
+
@objc @_Concurrency.MainActor @preconcurrency public func requestLayout()
|
|
161
|
+
@objc @_Concurrency.MainActor @preconcurrency public func addView(_ view: UIKit.UIView)
|
|
162
|
+
@objc @_Concurrency.MainActor @preconcurrency public func addView(_ view: UIKit.UIView, at: Swift.Int)
|
|
98
163
|
@_Concurrency.MainActor @preconcurrency public var textOverflow: Mason.TextOverflow {
|
|
99
164
|
get
|
|
100
165
|
set
|
|
@@ -103,22 +168,15 @@ public enum InlineSegmentPayload {
|
|
|
103
168
|
@objc get
|
|
104
169
|
@objc set
|
|
105
170
|
}
|
|
106
|
-
@objc @_Concurrency.MainActor @preconcurrency public init(mason: Mason.NSCMason, type textType: Mason.MasonTextType)
|
|
107
|
-
@objc @_Concurrency.MainActor @preconcurrency public init(mason: Mason.NSCMason)
|
|
108
|
-
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func setNeedsDisplay()
|
|
109
|
-
@objc @_Concurrency.MainActor @preconcurrency public func requestLayout()
|
|
110
|
-
@objc @_Concurrency.MainActor @preconcurrency public func syncStyle(_ state: Swift.String, textState: Swift.String)
|
|
111
|
-
@objc @_Concurrency.MainActor @preconcurrency public func addView(_ view: UIKit.UIView)
|
|
112
|
-
@objc @_Concurrency.MainActor @preconcurrency public func addView(_ view: UIKit.UIView, at: Swift.Int)
|
|
113
171
|
@objc @_Concurrency.MainActor @preconcurrency public var color: Swift.UInt32 {
|
|
114
172
|
@objc get
|
|
115
173
|
@objc set
|
|
116
174
|
}
|
|
175
|
+
@objc @_Concurrency.MainActor @preconcurrency public func setColor(ui color: UIKit.UIColor)
|
|
117
176
|
@objc @_Concurrency.MainActor @preconcurrency public var backgroundColorValue: Swift.UInt32 {
|
|
118
177
|
@objc get
|
|
119
178
|
@objc set
|
|
120
179
|
}
|
|
121
|
-
@objc @_Concurrency.MainActor @preconcurrency public func setColor(ui color: UIKit.UIColor)
|
|
122
180
|
@objc @_Concurrency.MainActor @preconcurrency public func setBackgroundColor(ui color: UIKit.UIColor)
|
|
123
181
|
@objc @_Concurrency.MainActor @preconcurrency public var decorationColor: Swift.UInt32 {
|
|
124
182
|
@objc get
|
|
@@ -129,7 +187,7 @@ public enum InlineSegmentPayload {
|
|
|
129
187
|
@objc get
|
|
130
188
|
@objc set
|
|
131
189
|
}
|
|
132
|
-
@objc @_Concurrency.MainActor @preconcurrency public var fontSize:
|
|
190
|
+
@objc @_Concurrency.MainActor @preconcurrency public var fontSize: Swift.Int32 {
|
|
133
191
|
@objc get
|
|
134
192
|
@objc set
|
|
135
193
|
}
|
|
@@ -154,8 +212,10 @@ public enum InlineSegmentPayload {
|
|
|
154
212
|
@objc get
|
|
155
213
|
@objc set
|
|
156
214
|
}
|
|
157
|
-
@objc @_Concurrency.MainActor @preconcurrency public
|
|
158
|
-
|
|
215
|
+
@objc @_Concurrency.MainActor @preconcurrency public var lineHeight: Swift.Float {
|
|
216
|
+
@objc get
|
|
217
|
+
@objc set
|
|
218
|
+
}
|
|
159
219
|
@objc deinit
|
|
160
220
|
}
|
|
161
221
|
extension Mason.MasonText {
|
|
@@ -174,109 +234,47 @@ extension Mason.MasonText {
|
|
|
174
234
|
@objc set
|
|
175
235
|
}
|
|
176
236
|
}
|
|
177
|
-
@objc
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
@objc
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
case normal
|
|
194
|
-
case medium
|
|
195
|
-
case semiBold
|
|
196
|
-
case bold
|
|
197
|
-
case extraBold
|
|
198
|
-
case black
|
|
199
|
-
public var description: Swift.String {
|
|
200
|
-
get
|
|
201
|
-
}
|
|
202
|
-
public typealias RawValue = Swift.Int
|
|
203
|
-
public init?(rawValue: Swift.Int)
|
|
204
|
-
public var rawValue: Swift.Int {
|
|
205
|
-
get
|
|
206
|
-
}
|
|
207
|
-
public var uiFontWeight: UIKit.UIFont.Weight {
|
|
208
|
-
get
|
|
209
|
-
}
|
|
210
|
-
public static func from(uiFontWeight: UIKit.UIFont.Weight) -> Mason.NSCFontWeight
|
|
211
|
-
}
|
|
212
|
-
@objcMembers @objc(NSCFontDescriptors) public class NSCFontDescriptors : ObjectiveC.NSObject, Swift.Codable {
|
|
213
|
-
@objc public init(family: Swift.String)
|
|
214
|
-
@objc public func update(_ value: Swift.String)
|
|
215
|
-
@objc public func setFontWeight(_ value: Swift.String)
|
|
216
|
-
@objc public func setFontStyle(_ value: Swift.String)
|
|
217
|
-
@objc deinit
|
|
218
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
219
|
-
required public init(from decoder: any Swift.Decoder) throws
|
|
220
|
-
}
|
|
221
|
-
@objc(NSCFontFaceStatus) public enum NSCFontFaceStatus : Swift.Int, Swift.RawRepresentable {
|
|
222
|
-
case unloaded
|
|
223
|
-
case loading
|
|
224
|
-
case loaded
|
|
225
|
-
case error
|
|
226
|
-
public typealias RawValue = Swift.Int
|
|
227
|
-
public init?(rawValue: Swift.Int)
|
|
228
|
-
public var rawValue: Swift.Int {
|
|
229
|
-
get
|
|
230
|
-
}
|
|
237
|
+
@objc public protocol MasonCharacterData {
|
|
238
|
+
@objc var data: Swift.String { get set }
|
|
239
|
+
@objc var length: Swift.Int { get }
|
|
240
|
+
@objc @discardableResult
|
|
241
|
+
func appendData(_ s: Swift.String) -> Self
|
|
242
|
+
@objc @discardableResult
|
|
243
|
+
func insertData(_ s: Swift.String, at offset: Swift.Int) -> Self
|
|
244
|
+
@objc @discardableResult
|
|
245
|
+
func deleteData(offset: Swift.Int, count: Swift.Int) -> Self
|
|
246
|
+
@objc @discardableResult
|
|
247
|
+
func replaceData(offset: Swift.Int, count: Swift.Int, with s: Swift.String) -> Self
|
|
248
|
+
@objc func substringData(offset: Swift.Int, count: Swift.Int) -> Swift.String
|
|
249
|
+
@objc @discardableResult
|
|
250
|
+
func deleteData(range: Foundation.NSRange) -> Self
|
|
251
|
+
@objc @discardableResult
|
|
252
|
+
func replaceData(range: Foundation.NSRange, with s: Swift.String) -> Self
|
|
231
253
|
}
|
|
232
|
-
@
|
|
233
|
-
@objc public var
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
@objc public var
|
|
237
|
-
get
|
|
238
|
-
}
|
|
239
|
-
@objc public func updateDescriptor(value: Swift.String)
|
|
240
|
-
@objc public static func loadFromStyle(style: Swift.String) -> Mason.NSCFontFace?
|
|
241
|
-
@objc public static func importFromRemote(url: Swift.String, load: Swift.Bool, callback: @escaping ([Mason.NSCFontFace]?, Swift.String?) -> Swift.Void)
|
|
242
|
-
@objc public init(family: Swift.String)
|
|
243
|
-
@objc public init(family: Swift.String, source: Swift.String)
|
|
244
|
-
@objc public init(family: Swift.String, data source: Foundation.NSData)
|
|
245
|
-
@objc public init(_ family: Swift.String, _ source: Swift.String? = nil, _ descriptors: Mason.NSCFontDescriptors? = nil)
|
|
246
|
-
@objc public init(_ family: Swift.String, data: Foundation.NSData? = nil, _ descriptors: Mason.NSCFontDescriptors? = nil)
|
|
247
|
-
@objc public var status: Mason.NSCFontFaceStatus
|
|
248
|
-
@objc public var display: Mason.NSCFontDisplay
|
|
249
|
-
@objc public func setFontDisplay(value: Swift.String)
|
|
250
|
-
@objc public var style: Swift.String {
|
|
251
|
-
@objc get
|
|
252
|
-
@objc set
|
|
253
|
-
}
|
|
254
|
-
@objc public func setFontStyle(value: Swift.String, angle: Swift.String?)
|
|
255
|
-
@objc public var weight: Mason.NSCFontWeight {
|
|
256
|
-
@objc get
|
|
257
|
-
@objc set
|
|
258
|
-
}
|
|
259
|
-
@objc public func setFontWeight(value: Swift.String)
|
|
260
|
-
@objc public var family: Swift.String {
|
|
261
|
-
@objc get
|
|
262
|
-
}
|
|
263
|
-
@objc public var ascentOverride: Swift.String {
|
|
264
|
-
@objc get
|
|
265
|
-
}
|
|
266
|
-
@objc public var descentOverride: Swift.String {
|
|
254
|
+
@_hasMissingDesignatedInitializers @objc(MasonTextNode) @objcMembers public class MasonTextNode : Mason.MasonNode, Mason.MasonCharacterData {
|
|
255
|
+
@objc public var data: Swift.String
|
|
256
|
+
@objc public init(mason doc: Mason.NSCMason, data text: Swift.String, attributes attrs: [Foundation.NSAttributedString.Key : Any]? = nil)
|
|
257
|
+
@objc override dynamic public func appendChild(_ child: Mason.MasonNode)
|
|
258
|
+
@objc public var length: Swift.Int {
|
|
267
259
|
@objc get
|
|
268
260
|
}
|
|
269
|
-
@objc public func
|
|
261
|
+
@objc public func substringData(offset: Swift.Int, count: Swift.Int) -> Swift.String
|
|
262
|
+
@discardableResult
|
|
263
|
+
@objc public func appendData(_ s: Swift.String) -> Self
|
|
264
|
+
@discardableResult
|
|
265
|
+
@objc public func insertData(_ s: Swift.String, at offset: Swift.Int) -> Self
|
|
266
|
+
@discardableResult
|
|
267
|
+
@objc public func deleteData(offset: Swift.Int, count: Swift.Int) -> Self
|
|
268
|
+
@discardableResult
|
|
269
|
+
@objc public func replaceData(offset: Swift.Int, count: Swift.Int, with s: Swift.String) -> Self
|
|
270
|
+
@discardableResult
|
|
271
|
+
@objc public func deleteData(range: Foundation.NSRange) -> Self
|
|
272
|
+
@discardableResult
|
|
273
|
+
@objc public func replaceData(range: Foundation.NSRange, with s: Swift.String) -> Self
|
|
270
274
|
@objc deinit
|
|
271
275
|
}
|
|
272
|
-
|
|
273
|
-
@objc
|
|
274
|
-
@objc final public let mason: Mason.NSCMason
|
|
275
|
-
public var documentElement: (any Mason.MasonElement)? {
|
|
276
|
-
get
|
|
277
|
-
}
|
|
278
|
-
@objc public init(mason instance: Mason.NSCMason)
|
|
279
|
-
@objc deinit
|
|
276
|
+
extension Mason.MasonTextNode {
|
|
277
|
+
@objc dynamic public func attributed() -> Foundation.NSAttributedString
|
|
280
278
|
}
|
|
281
279
|
public struct Line<T> {
|
|
282
280
|
public init(_ start: T, _ end: T)
|
|
@@ -502,6 +500,8 @@ public protocol MasonElement : ObjectiveC.NSObjectProtocol {
|
|
|
502
500
|
func replaceChildAt(node: Mason.MasonNode, _ index: Swift.Int)
|
|
503
501
|
}
|
|
504
502
|
extension Mason.MasonElement {
|
|
503
|
+
public func getDefaultAttributes() -> [Foundation.NSAttributedString.Key : Any]
|
|
504
|
+
public func syncStyle(_ state: Swift.String, _ textState: Swift.String)
|
|
505
505
|
public func addChildAt(text: Swift.String, _ index: Swift.Int)
|
|
506
506
|
public func addChildAt(element: any Mason.MasonElement, _ index: Swift.Int)
|
|
507
507
|
public func addChildAt(node: Mason.MasonNode, _ index: Swift.Int)
|
|
@@ -511,9 +511,9 @@ extension Mason.MasonElement {
|
|
|
511
511
|
public var style: Mason.MasonStyle {
|
|
512
512
|
get
|
|
513
513
|
}
|
|
514
|
-
public func syncStyle(_ state: Swift.String)
|
|
515
514
|
public func configure(_ block: (Mason.MasonStyle) -> Swift.Void)
|
|
516
515
|
public func requestLayout()
|
|
516
|
+
public func invalidate(markDirty: Swift.Bool = false)
|
|
517
517
|
public func invalidateLayout()
|
|
518
518
|
public func addView(_ view: UIKit.UIView)
|
|
519
519
|
public func addView(_ view: UIKit.UIView, at: Swift.Int)
|
|
@@ -766,15 +766,84 @@ public let MasonDimensionRectZero: Mason.MasonRect<Mason.MasonDimension>
|
|
|
766
766
|
public let MasonLengthPercentageAutoRectZero: Mason.MasonRect<Mason.MasonLengthPercentageAuto>
|
|
767
767
|
public let MasonLengthPercentageRectZero: Mason.MasonRect<Mason.MasonLengthPercentage>
|
|
768
768
|
@objc(MasonStyle) @objcMembers public class MasonStyle : ObjectiveC.NSObject {
|
|
769
|
-
@objc public var
|
|
769
|
+
@objc public var font: Mason.NSCFontFace {
|
|
770
|
+
get
|
|
771
|
+
}
|
|
772
|
+
@objc public var values: Foundation.NSMutableData {
|
|
770
773
|
@objc get
|
|
771
774
|
@objc set
|
|
772
775
|
}
|
|
773
|
-
@objc public var
|
|
776
|
+
@objc public var textValues: Foundation.NSMutableData {
|
|
774
777
|
@objc get
|
|
775
778
|
@objc set
|
|
776
779
|
}
|
|
777
780
|
@objc public init(node: Mason.MasonNode)
|
|
781
|
+
@objc public var color: Swift.UInt32 {
|
|
782
|
+
@objc get
|
|
783
|
+
@objc set
|
|
784
|
+
}
|
|
785
|
+
@objc public func setColor(ui color: UIKit.UIColor)
|
|
786
|
+
@objc public var backgroundColor: Swift.UInt32 {
|
|
787
|
+
@objc get
|
|
788
|
+
@objc set
|
|
789
|
+
}
|
|
790
|
+
@objc public func setBackgroundColor(ui color: UIKit.UIColor)
|
|
791
|
+
@objc public func setLineHeight(_ value: Swift.Float, _ isRelative: Swift.Bool)
|
|
792
|
+
@objc public var lineHeight: Swift.Float {
|
|
793
|
+
@objc get
|
|
794
|
+
@objc set
|
|
795
|
+
}
|
|
796
|
+
@objc public var letterSpacing: Swift.Float {
|
|
797
|
+
@objc get
|
|
798
|
+
@objc set
|
|
799
|
+
}
|
|
800
|
+
@objc public var decorationColor: Swift.UInt32 {
|
|
801
|
+
@objc get
|
|
802
|
+
@objc set
|
|
803
|
+
}
|
|
804
|
+
@objc public func setDecorationColor(ui color: UIKit.UIColor)
|
|
805
|
+
@objc public var decorationLine: Mason.DecorationLine {
|
|
806
|
+
@objc get
|
|
807
|
+
@objc set
|
|
808
|
+
}
|
|
809
|
+
@objc public var fontSize: Swift.Int32 {
|
|
810
|
+
@objc get
|
|
811
|
+
@objc set
|
|
812
|
+
}
|
|
813
|
+
@objc public func setFontStyle(_ style: Mason.FontStyle, _ slant: Swift.Int32)
|
|
814
|
+
@objc public var textJustify: Mason.TextJustify {
|
|
815
|
+
@objc get
|
|
816
|
+
@objc set
|
|
817
|
+
}
|
|
818
|
+
@objc public var fontStyle: Mason.FontStyle {
|
|
819
|
+
@objc get
|
|
820
|
+
@objc set
|
|
821
|
+
}
|
|
822
|
+
@objc public var fontWeight: Swift.String {
|
|
823
|
+
@objc get
|
|
824
|
+
@objc set
|
|
825
|
+
}
|
|
826
|
+
public var textOverflow: Mason.TextOverflow {
|
|
827
|
+
get
|
|
828
|
+
set
|
|
829
|
+
}
|
|
830
|
+
public func setTextOverflow(_ flow: Mason.TextOverflow, _ value: Swift.String)
|
|
831
|
+
@objc public var textOverflowCompat: Mason.TextOverflowCompat {
|
|
832
|
+
@objc get
|
|
833
|
+
@objc set
|
|
834
|
+
}
|
|
835
|
+
@objc public var textTransform: Mason.TextTransform {
|
|
836
|
+
@objc get
|
|
837
|
+
@objc set
|
|
838
|
+
}
|
|
839
|
+
@objc public var whiteSpace: Mason.WhiteSpace {
|
|
840
|
+
@objc get
|
|
841
|
+
@objc set
|
|
842
|
+
}
|
|
843
|
+
@objc public var textWrap: Mason.TextWrap {
|
|
844
|
+
@objc get
|
|
845
|
+
@objc set
|
|
846
|
+
}
|
|
778
847
|
@objc public var display: Mason.Display {
|
|
779
848
|
@objc get
|
|
780
849
|
@objc set
|
|
@@ -937,6 +1006,10 @@ public let MasonLengthPercentageRectZero: Mason.MasonRect<Mason.MasonLengthPerce
|
|
|
937
1006
|
set
|
|
938
1007
|
}
|
|
939
1008
|
@objc public func setScrollBarWidth(_ value: Swift.Float)
|
|
1009
|
+
@objc public var align: Mason.Align {
|
|
1010
|
+
@objc get
|
|
1011
|
+
@objc set
|
|
1012
|
+
}
|
|
940
1013
|
@objc public var textAlign: Mason.TextAlign {
|
|
941
1014
|
@objc get
|
|
942
1015
|
@objc set
|
|
@@ -1166,6 +1239,7 @@ extension UIKit.UIColor {
|
|
|
1166
1239
|
public func toUInt32() -> Swift.UInt32
|
|
1167
1240
|
}
|
|
1168
1241
|
@objc extension ObjectiveC.NSObject {
|
|
1242
|
+
@objc dynamic public func mason_syncStyle(_ state: Swift.String, _ textState: Swift.String)
|
|
1169
1243
|
@objc dynamic public func mason_addView(_ view: UIKit.UIView)
|
|
1170
1244
|
@objc dynamic public func mason_addView(_ view: UIKit.UIView, at: Swift.Int)
|
|
1171
1245
|
@objc dynamic public func mason_markNodeDirty()
|
|
@@ -1234,7 +1308,6 @@ extension UIKit.UIColor {
|
|
|
1234
1308
|
@objc set
|
|
1235
1309
|
}
|
|
1236
1310
|
@objc @_Concurrency.MainActor @preconcurrency public func updateImage(_ image: UIKit.UIImage?)
|
|
1237
|
-
@objc @_Concurrency.MainActor @preconcurrency public func syncStyle(_ state: Swift.String)
|
|
1238
1311
|
@objc deinit
|
|
1239
1312
|
}
|
|
1240
1313
|
@objc(MasonDimensionCompatType) public enum MasonDimensionCompatType : Swift.Int, Swift.RawRepresentable, Swift.Codable {
|
|
@@ -1275,6 +1348,17 @@ extension UIKit.UIColor {
|
|
|
1275
1348
|
}
|
|
1276
1349
|
public init?(rawValue: Mason.BoxSizing.RawValue)
|
|
1277
1350
|
}
|
|
1351
|
+
@objc(MasonAlign) public enum Align : Swift.Int, Swift.RawRepresentable {
|
|
1352
|
+
case Auto
|
|
1353
|
+
case Left
|
|
1354
|
+
case Right
|
|
1355
|
+
case Center
|
|
1356
|
+
public typealias RawValue = Swift.Int32
|
|
1357
|
+
public var rawValue: Mason.Align.RawValue {
|
|
1358
|
+
get
|
|
1359
|
+
}
|
|
1360
|
+
public init?(rawValue: Mason.Align.RawValue)
|
|
1361
|
+
}
|
|
1278
1362
|
@objc(MasonTextAlign) public enum TextAlign : Swift.Int, Swift.RawRepresentable {
|
|
1279
1363
|
case Auto
|
|
1280
1364
|
case Left
|
|
@@ -1651,6 +1735,36 @@ public enum TextOverflow : Swift.CustomStringConvertible {
|
|
|
1651
1735
|
}
|
|
1652
1736
|
@objc deinit
|
|
1653
1737
|
}
|
|
1738
|
+
@objc(MasonTextJustify) public enum TextJustify : Swift.Int, Swift.RawRepresentable, Swift.CustomStringConvertible {
|
|
1739
|
+
case None
|
|
1740
|
+
case Auto
|
|
1741
|
+
case InterWord
|
|
1742
|
+
case InterCharacter
|
|
1743
|
+
case Distribute
|
|
1744
|
+
public typealias RawValue = Swift.Int32
|
|
1745
|
+
public var rawValue: Mason.TextJustify.RawValue {
|
|
1746
|
+
get
|
|
1747
|
+
}
|
|
1748
|
+
public init?(rawValue: Mason.TextJustify.RawValue)
|
|
1749
|
+
public var description: Swift.String {
|
|
1750
|
+
get
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
@objc(MasonDecorationStyle) public enum DecorationStyle : Swift.Int, Swift.RawRepresentable, Swift.CustomStringConvertible {
|
|
1754
|
+
case Solid
|
|
1755
|
+
case Double
|
|
1756
|
+
case Dotted
|
|
1757
|
+
case Dashed
|
|
1758
|
+
case Wavy
|
|
1759
|
+
public typealias RawValue = Swift.Int32
|
|
1760
|
+
public var rawValue: Mason.DecorationStyle.RawValue {
|
|
1761
|
+
get
|
|
1762
|
+
}
|
|
1763
|
+
public init?(rawValue: Mason.DecorationStyle.RawValue)
|
|
1764
|
+
public var description: Swift.String {
|
|
1765
|
+
get
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1654
1768
|
@_hasMissingDesignatedInitializers @objcMembers @objc(MasonUIView) @_Concurrency.MainActor @preconcurrency public class MasonUIView : UIKit.UIView, Mason.MasonElement, Mason.MasonElementObjc {
|
|
1655
1769
|
@_Concurrency.MainActor @preconcurrency @objc final public let node: Mason.MasonNode
|
|
1656
1770
|
@objc @_Concurrency.MainActor @preconcurrency final public let mason: Mason.NSCMason
|
|
@@ -1662,7 +1776,6 @@ public enum TextOverflow : Swift.CustomStringConvertible {
|
|
|
1662
1776
|
}
|
|
1663
1777
|
@objc @_Concurrency.MainActor @preconcurrency public func markNodeDirty()
|
|
1664
1778
|
@objc @_Concurrency.MainActor @preconcurrency public func isNodeDirty() -> Swift.Bool
|
|
1665
|
-
@objc @_Concurrency.MainActor @preconcurrency public func syncStyle(_ state: Swift.String)
|
|
1666
1779
|
@objc @_Concurrency.MainActor @preconcurrency public static func createGridView(_ mason: Mason.NSCMason) -> Mason.MasonUIView
|
|
1667
1780
|
@objc @_Concurrency.MainActor @preconcurrency public static func createFlexView(_ mason: Mason.NSCMason) -> Mason.MasonUIView
|
|
1668
1781
|
@objc @_Concurrency.MainActor @preconcurrency public static func createBlockView(_ mason: Mason.NSCMason) -> Mason.MasonUIView
|
|
@@ -1898,7 +2011,6 @@ public enum TextOverflow : Swift.CustomStringConvertible {
|
|
|
1898
2011
|
@_Concurrency.MainActor @preconcurrency @objc public var style: Mason.MasonStyle {
|
|
1899
2012
|
@objc get
|
|
1900
2013
|
}
|
|
1901
|
-
@objc @_Concurrency.MainActor @preconcurrency public func syncStyle(_ state: Swift.String)
|
|
1902
2014
|
@_Concurrency.MainActor @preconcurrency @objc public func scrollViewWillBeginDragging(_ scrollView: UIKit.UIScrollView)
|
|
1903
2015
|
@_Concurrency.MainActor @preconcurrency @objc public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
|
|
1904
2016
|
@objc @_Concurrency.MainActor @preconcurrency public func addView(_ view: UIKit.UIView)
|
|
@@ -1906,14 +2018,14 @@ public enum TextOverflow : Swift.CustomStringConvertible {
|
|
|
1906
2018
|
@objc @_Concurrency.MainActor @preconcurrency public func setSize(_ width: Swift.Float, _ height: Swift.Float)
|
|
1907
2019
|
@objc deinit
|
|
1908
2020
|
}
|
|
1909
|
-
extension Mason.MasonTextType : Swift.Equatable {}
|
|
1910
|
-
extension Mason.MasonTextType : Swift.Hashable {}
|
|
1911
2021
|
extension Mason.NSCFontDisplay : Swift.Equatable {}
|
|
1912
2022
|
extension Mason.NSCFontDisplay : Swift.Hashable {}
|
|
1913
2023
|
extension Mason.NSCFontWeight : Swift.Equatable {}
|
|
1914
2024
|
extension Mason.NSCFontWeight : Swift.Hashable {}
|
|
1915
2025
|
extension Mason.NSCFontFaceStatus : Swift.Equatable {}
|
|
1916
2026
|
extension Mason.NSCFontFaceStatus : Swift.Hashable {}
|
|
2027
|
+
extension Mason.MasonTextType : Swift.Equatable {}
|
|
2028
|
+
extension Mason.MasonTextType : Swift.Hashable {}
|
|
1917
2029
|
extension Mason.MasonNodeType : Swift.Equatable {}
|
|
1918
2030
|
extension Mason.MasonNodeType : Swift.Hashable {}
|
|
1919
2031
|
extension Mason.NSCFontFaceSetStatus : Swift.Equatable {}
|
|
@@ -1928,6 +2040,8 @@ extension Mason.MasonLengthPercentageCompatType : Swift.Equatable {}
|
|
|
1928
2040
|
extension Mason.MasonLengthPercentageCompatType : Swift.Hashable {}
|
|
1929
2041
|
extension Mason.BoxSizing : Swift.Equatable {}
|
|
1930
2042
|
extension Mason.BoxSizing : Swift.Hashable {}
|
|
2043
|
+
extension Mason.Align : Swift.Equatable {}
|
|
2044
|
+
extension Mason.Align : Swift.Hashable {}
|
|
1931
2045
|
extension Mason.TextAlign : Swift.Equatable {}
|
|
1932
2046
|
extension Mason.TextAlign : Swift.Hashable {}
|
|
1933
2047
|
extension Mason.AlignItems : Swift.Equatable {}
|
|
@@ -1970,3 +2084,7 @@ extension Mason.WhiteSpace : Swift.Equatable {}
|
|
|
1970
2084
|
extension Mason.WhiteSpace : Swift.Hashable {}
|
|
1971
2085
|
extension Mason.LineHeight : Swift.Equatable {}
|
|
1972
2086
|
extension Mason.LineHeight : Swift.Hashable {}
|
|
2087
|
+
extension Mason.TextJustify : Swift.Equatable {}
|
|
2088
|
+
extension Mason.TextJustify : Swift.Hashable {}
|
|
2089
|
+
extension Mason.DecorationStyle : Swift.Equatable {}
|
|
2090
|
+
extension Mason.DecorationStyle : Swift.Hashable {}
|