@octane-xplat/nativescript-mason-core 0.0.1 → 1.0.0-beta.1
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/LICENSE +201 -0
- package/README.md +198 -2
- package/artifact-inventory.json +774 -0
- package/box-shadow.d.ts +10 -0
- package/box-shadow.js +48 -0
- package/common.d.ts +485 -0
- package/common.js +2659 -0
- package/css-colors.d.ts +17 -0
- package/css-colors.js +54 -0
- package/css-environment.d.ts +49 -0
- package/css-environment.js +309 -0
- package/css-filter.d.ts +17 -0
- package/css-filter.js +140 -0
- package/css-keyframes.d.ts +41 -0
- package/css-keyframes.js +437 -0
- package/css-math.d.ts +34 -0
- package/css-math.js +300 -0
- package/css-shorthands.d.ts +65 -0
- package/css-shorthands.js +673 -0
- package/css-transform.d.ts +6 -0
- package/css-transform.js +100 -0
- package/diagnostics.d.ts +51 -0
- package/diagnostics.js +52 -0
- package/display-density.d.ts +9 -0
- package/display-density.js +20 -0
- package/fonts.d.ts +20 -0
- package/fonts.js +88 -0
- package/foreign-layout.d.ts +6 -0
- package/foreign-layout.js +151 -0
- package/gradient-stops.d.ts +25 -0
- package/gradient-stops.js +112 -0
- package/index.android.d.ts +11 -0
- package/index.android.js +9 -0
- package/index.d.ts +12 -0
- package/index.ios.d.ts +11 -0
- package/index.ios.js +9 -0
- package/ios-host-README.md +124 -0
- package/layout-types.d.ts +192 -0
- package/mask.d.ts +54 -0
- package/mask.js +26 -0
- package/native-environment.android.d.ts +3 -0
- package/native-environment.android.js +69 -0
- package/native-environment.d.ts +3 -0
- package/native-environment.ios.d.ts +3 -0
- package/native-environment.ios.js +65 -0
- package/native-types-README.md +51 -0
- package/package.json +47 -6
- package/panel-helpers.d.ts +3 -0
- package/panel-helpers.js +8 -0
- package/platforms/android/MasonCore.aar +0 -0
- package/platforms/android/include.gradle +6 -0
- package/platforms/android/manifest.json +73 -0
- package/platforms/ios/FontManager.LICENSE +201 -0
- package/platforms/ios/MasonCore.xcframework/Info.plist +43 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Headers/Mason.h +25 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Headers/MasonCore-Swift.h +1739 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Headers/mason_native.h +601 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Info.plist +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/MasonCore +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios.abi.json +100095 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios.private.swiftinterface +3174 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios.swiftinterface +3174 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/module.modulemap +9 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/SDWebImage_SDWebImage.bundle/Info.plist +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/SDWebImage_SDWebImage.bundle/PrivacyInfo.xcprivacy +23 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Headers/Mason.h +25 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Headers/MasonCore-Swift.h +1739 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Headers/mason_native.h +601 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Info.plist +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/MasonCore +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios-simulator.abi.json +100095 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3174 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3174 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/module.modulemap +9 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/SDWebImage_SDWebImage.bundle/Info.plist +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/SDWebImage_SDWebImage.bundle/PrivacyInfo.xcprivacy +23 -0
- package/platforms/ios/Package.resolved +24 -0
- package/platforms/ios/SDWebImage.LICENSE +20 -0
- package/platforms/ios/build.xcconfig +4 -0
- package/platforms/ios/device-manifest.json +213 -0
- package/platforms/ios/include/FontManager/NSCFontDescriptors.h +36 -0
- package/platforms/ios/include/FontManager/NSCFontFace.h +98 -0
- package/platforms/ios/include/FontManager/NSCFontFaceSet.h +73 -0
- package/platforms/ios/include/FontManager/NSCFontManagerUmbrella.h +7 -0
- package/platforms/ios/include/FontManager/NSCFontParser.h +22 -0
- package/platforms/ios/include/FontManager/NSCFontRegex.h +4 -0
- package/platforms/ios/include/FontManager/NSCFontResolver.h +43 -0
- package/platforms/ios/include/FontManager/NSCFontStyle.h +27 -0
- package/platforms/ios/include/FontManager/NSCFontTypes.h +41 -0
- package/platforms/ios/include/SDWebImage/NSButton+WebCache.h +340 -0
- package/platforms/ios/include/SDWebImage/NSData+ImageContentType.h +63 -0
- package/platforms/ios/include/SDWebImage/NSImage+Compatibility.h +67 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImage.h +136 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImagePlayer.h +113 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImageRep.h +33 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImageView+WebCache.h +168 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImageView.h +125 -0
- package/platforms/ios/include/SDWebImage/SDCallbackQueue.h +59 -0
- package/platforms/ios/include/SDWebImage/SDDiskCache.h +146 -0
- package/platforms/ios/include/SDWebImage/SDGraphicsImageRenderer.h +84 -0
- package/platforms/ios/include/SDWebImage/SDImageAPNGCoder.h +19 -0
- package/platforms/ios/include/SDWebImage/SDImageAWebPCoder.h +23 -0
- package/platforms/ios/include/SDWebImage/SDImageCache.h +482 -0
- package/platforms/ios/include/SDWebImage/SDImageCacheConfig.h +153 -0
- package/platforms/ios/include/SDWebImage/SDImageCacheDefine.h +179 -0
- package/platforms/ios/include/SDWebImage/SDImageCachesManager.h +81 -0
- package/platforms/ios/include/SDWebImage/SDImageCoder.h +347 -0
- package/platforms/ios/include/SDWebImage/SDImageCoderHelper.h +251 -0
- package/platforms/ios/include/SDWebImage/SDImageCodersManager.h +58 -0
- package/platforms/ios/include/SDWebImage/SDImageFrame.h +44 -0
- package/platforms/ios/include/SDWebImage/SDImageGIFCoder.h +22 -0
- package/platforms/ios/include/SDWebImage/SDImageGraphics.h +28 -0
- package/platforms/ios/include/SDWebImage/SDImageHEICCoder.h +25 -0
- package/platforms/ios/include/SDWebImage/SDImageIOAnimatedCoder.h +65 -0
- package/platforms/ios/include/SDWebImage/SDImageIOCoder.h +30 -0
- package/platforms/ios/include/SDWebImage/SDImageLoader.h +146 -0
- package/platforms/ios/include/SDWebImage/SDImageLoadersManager.h +40 -0
- package/platforms/ios/include/SDWebImage/SDImageTransformer.h +283 -0
- package/platforms/ios/include/SDWebImage/SDMemoryCache.h +78 -0
- package/platforms/ios/include/SDWebImage/SDWebImage.h +91 -0
- package/platforms/ios/include/SDWebImage/SDWebImageCacheKeyFilter.h +35 -0
- package/platforms/ios/include/SDWebImage/SDWebImageCacheSerializer.h +39 -0
- package/platforms/ios/include/SDWebImage/SDWebImageCompat.h +102 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDefine.h +420 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloader.h +320 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderConfig.h +113 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderDecryptor.h +52 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderOperation.h +191 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderRequestModifier.h +72 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderResponseModifier.h +72 -0
- package/platforms/ios/include/SDWebImage/SDWebImageError.h +33 -0
- package/platforms/ios/include/SDWebImage/SDWebImageIndicator.h +119 -0
- package/platforms/ios/include/SDWebImage/SDWebImageManager.h +290 -0
- package/platforms/ios/include/SDWebImage/SDWebImageOperation.h +27 -0
- package/platforms/ios/include/SDWebImage/SDWebImageOptionsProcessor.h +78 -0
- package/platforms/ios/include/SDWebImage/SDWebImagePrefetcher.h +168 -0
- package/platforms/ios/include/SDWebImage/SDWebImageTransition.h +131 -0
- package/platforms/ios/include/SDWebImage/UIButton+WebCache.h +402 -0
- package/platforms/ios/include/SDWebImage/UIImage+ExtendedCacheData.h +24 -0
- package/platforms/ios/include/SDWebImage/UIImage+ForceDecode.h +52 -0
- package/platforms/ios/include/SDWebImage/UIImage+GIF.h +26 -0
- package/platforms/ios/include/SDWebImage/UIImage+MemoryCacheCost.h +27 -0
- package/platforms/ios/include/SDWebImage/UIImage+Metadata.h +104 -0
- package/platforms/ios/include/SDWebImage/UIImage+MultiFormat.h +81 -0
- package/platforms/ios/include/SDWebImage/UIImage+Transform.h +164 -0
- package/platforms/ios/include/SDWebImage/UIImageView+HighlightedWebCache.h +142 -0
- package/platforms/ios/include/SDWebImage/UIImageView+WebCache.h +209 -0
- package/platforms/ios/include/SDWebImage/UIView+WebCache.h +131 -0
- package/platforms/ios/include/SDWebImage/UIView+WebCacheOperation.h +52 -0
- package/platforms/ios/include/SDWebImage/UIView+WebCacheState.h +63 -0
- package/platforms/ios/include/module.modulemap +2 -0
- package/platforms/ios/manifest.json +132 -0
- package/platforms/ios/simulator-manifest.json +213 -0
- package/plugin-README.md +234 -0
- package/properties.d.ts +154 -0
- package/properties.js +2456 -0
- package/pseudo.d.ts +9 -0
- package/pseudo.js +57 -0
- package/scroll/index.android.d.ts +15 -0
- package/scroll/index.android.js +72 -0
- package/scroll/index.d.ts +5 -0
- package/scroll/index.ios.d.ts +18 -0
- package/scroll/index.ios.js +106 -0
- package/style.d.ts +768 -0
- package/style.js +7167 -0
- package/symbols.d.ts +25 -0
- package/symbols.js +41 -0
- package/tree/index.android.d.ts +11 -0
- package/tree/index.android.js +42 -0
- package/tree/index.d.ts +15 -0
- package/tree/index.ios.d.ts +26 -0
- package/tree/index.ios.js +53 -0
- package/typings/android-declarations.d.ts +4 -0
- package/typings/android.d.ts +9730 -0
- package/typings/manifest.json +45 -0
- package/typings/native.d.ts +5 -0
- package/typings/objc!FontManager.d.ts +389 -0
- package/typings/objc!MasonCore.d.ts +2472 -0
- package/typings/objc!SDWebImage.d.ts +3378 -0
- package/units.d.ts +29 -0
- package/units.js +44 -0
- package/utils/index.android.d.ts +211 -0
- package/utils/index.android.js +595 -0
- package/utils/index.ios.d.ts +222 -0
- package/utils/index.ios.js +790 -0
- package/view/index.android.d.ts +13 -0
- package/view/index.android.js +74 -0
- package/view/index.d.ts +2 -0
- package/view/index.ios.d.ts +24 -0
- package/view/index.ios.js +157 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"androidHostSha256": "bae5a8d02b0fb74de02dddba3b3dce480e3257f2d4227dcad528ff1540552c56",
|
|
3
|
+
"iosHostSha256": "907096e6dbac1356218c61e7b58b6db2a52a653a6bb04aada34278ab6108922a",
|
|
4
|
+
"androidGenerator": {
|
|
5
|
+
"sdk": "9.1.1",
|
|
6
|
+
"jarSha256": "93d6ed1a4a09f2a33c09f41a323f1a36e14cbf18842211565083db71ad84ab44",
|
|
7
|
+
"sourceUrl": "https://raw.githubusercontent.com/NativeScript/android-dts-generator/5fcf611330bd9eb60d9bb45d5b37251980b127ab/dts-generator/src/main/java/com/telerik/dts/DtsApi.java",
|
|
8
|
+
"sourceSha256": "e310fb9b7dc122bff9ae2b2ad06dfbc446f3b38099702a6107d1881b06cd9678",
|
|
9
|
+
"patchSha256": "dde0ffc7b85600a4b71e5b6a2dbc3f0d314e9fb587753663897a3881d9fd3603"
|
|
10
|
+
},
|
|
11
|
+
"iosGenerator": {
|
|
12
|
+
"sdk": "9.1.0",
|
|
13
|
+
"sha256": "7682e1c285a8f4c619beceb16bcf906fa3fb7e6436b0fb53cea690d8188fb4c0",
|
|
14
|
+
"appleSdkVersion": "27.0",
|
|
15
|
+
"architecture": "arm64",
|
|
16
|
+
"simulator": true
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
{
|
|
20
|
+
"name": "android.d.ts",
|
|
21
|
+
"sha256": "7a4044b29b992bd21339fdf06fde930f1f4db4f1c02bf4602d68f597b6e588ce"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "android-declarations.d.ts",
|
|
25
|
+
"sha256": "2f24940a3cab60ea1bd43daa1905c6dae299b127471f1d32b87514ca102a77bd"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "objc!MasonCore.d.ts",
|
|
29
|
+
"sha256": "ad3e471cd4c83478bfdbf540282fa4787a3e449029f42e8b28186186202e3da4"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "objc!FontManager.d.ts",
|
|
33
|
+
"sha256": "de98bc3ddc2fb70bb0b91c34fa3821b57b1c4612dd70430b378627b77003e27b"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "objc!SDWebImage.d.ts",
|
|
37
|
+
"sha256": "d5f0d4dc094e8a7ef58b22657109855133e9292aa5cdfe83297899b1d4e4e5e5"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "native.d.ts",
|
|
41
|
+
"sha256": "e7c895798d8155e444149d2f2818e86261a29ff753f0f0389b3345557f71898a"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"qualification": "Generated from independent core artifacts. NativeScript SDK ambient platform types and skipLibCheck remain required; wrapper compilation and consumer verification are separate checks."
|
|
45
|
+
}
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
|
|
2
|
+
declare class NSCFontDescriptors extends NSObject {
|
|
3
|
+
|
|
4
|
+
static alloc(): NSCFontDescriptors; // inherited from NSObject
|
|
5
|
+
|
|
6
|
+
static new(): NSCFontDescriptors; // inherited from NSObject
|
|
7
|
+
|
|
8
|
+
static parseFontFaceRules(css: string): NSArray<NSDictionary<any, any>>;
|
|
9
|
+
|
|
10
|
+
ascentOverride: string;
|
|
11
|
+
|
|
12
|
+
descentOverride: string;
|
|
13
|
+
|
|
14
|
+
display: NSCFontDisplay;
|
|
15
|
+
|
|
16
|
+
family: string;
|
|
17
|
+
|
|
18
|
+
featureSettings: string;
|
|
19
|
+
|
|
20
|
+
kerning: string;
|
|
21
|
+
|
|
22
|
+
lineGapOverride: string;
|
|
23
|
+
|
|
24
|
+
stretch: string;
|
|
25
|
+
|
|
26
|
+
style: NSCFontStyle;
|
|
27
|
+
|
|
28
|
+
unicodeRange: string;
|
|
29
|
+
|
|
30
|
+
variant: string;
|
|
31
|
+
|
|
32
|
+
variantLigatures: string;
|
|
33
|
+
|
|
34
|
+
variationSettings: string;
|
|
35
|
+
|
|
36
|
+
weight: NSCFontWeight;
|
|
37
|
+
|
|
38
|
+
constructor(o: { family: string; });
|
|
39
|
+
|
|
40
|
+
initWithFamily(family: string): this;
|
|
41
|
+
|
|
42
|
+
setFontDisplayFromString(value: string): void;
|
|
43
|
+
|
|
44
|
+
setFontStyleFromString(value: string): void;
|
|
45
|
+
|
|
46
|
+
setFontWeightFromString(value: string): void;
|
|
47
|
+
|
|
48
|
+
update(value: string): void;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare const enum NSCFontDisplay {
|
|
52
|
+
|
|
53
|
+
Auto = 0,
|
|
54
|
+
|
|
55
|
+
Block = 1,
|
|
56
|
+
|
|
57
|
+
Fallback = 2,
|
|
58
|
+
|
|
59
|
+
Optional = 3,
|
|
60
|
+
|
|
61
|
+
Swap = 4
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare class NSCFontFace extends NSObject {
|
|
65
|
+
|
|
66
|
+
static alloc(): NSCFontFace; // inherited from NSObject
|
|
67
|
+
|
|
68
|
+
static clearFontCache(): void;
|
|
69
|
+
|
|
70
|
+
static importFromRemoteLoadCompletion(url: string, load: boolean, completion: (p1: NSArray<NSCFontFace>, p2: string | null) => void): void;
|
|
71
|
+
|
|
72
|
+
static new(): NSCFontFace; // inherited from NSObject
|
|
73
|
+
|
|
74
|
+
ascentOverride: string;
|
|
75
|
+
|
|
76
|
+
descentOverride: string;
|
|
77
|
+
|
|
78
|
+
display: NSCFontDisplay;
|
|
79
|
+
|
|
80
|
+
readonly family: string;
|
|
81
|
+
|
|
82
|
+
featureSettings: string;
|
|
83
|
+
|
|
84
|
+
font: any | null;
|
|
85
|
+
|
|
86
|
+
readonly fontData: NSData | null;
|
|
87
|
+
|
|
88
|
+
readonly fontDescriptors: NSCFontDescriptors;
|
|
89
|
+
|
|
90
|
+
readonly fontPath: string | null;
|
|
91
|
+
|
|
92
|
+
lineGapOverride: string;
|
|
93
|
+
|
|
94
|
+
onReloadListeners: NSMutableArray<(p1: NSCFontFace, p2: string | null) => void>;
|
|
95
|
+
|
|
96
|
+
status: NSCFontFaceStatus;
|
|
97
|
+
|
|
98
|
+
stretch: string;
|
|
99
|
+
|
|
100
|
+
style: NSCFontStyle;
|
|
101
|
+
|
|
102
|
+
readonly uiFont: UIFont | null;
|
|
103
|
+
|
|
104
|
+
unicodeRange: string;
|
|
105
|
+
|
|
106
|
+
variant: string;
|
|
107
|
+
|
|
108
|
+
variationSettings: string;
|
|
109
|
+
|
|
110
|
+
weight: NSCFontWeight;
|
|
111
|
+
|
|
112
|
+
constructor(o: { family: string; });
|
|
113
|
+
|
|
114
|
+
constructor(o: { family: string; data: NSData | null; });
|
|
115
|
+
|
|
116
|
+
constructor(o: { family: string; source: string | null; });
|
|
117
|
+
|
|
118
|
+
constructor(o: { fontDescriptor: NSCFontDescriptors; });
|
|
119
|
+
|
|
120
|
+
constructor(o: { fontDescriptor: NSCFontDescriptors; data: NSData | null; });
|
|
121
|
+
|
|
122
|
+
constructor(o: { fontDescriptor: NSCFontDescriptors; source: string | null; });
|
|
123
|
+
|
|
124
|
+
addReloadListener(listener: (p1: NSCFontFace, p2: string) => void): void;
|
|
125
|
+
|
|
126
|
+
initWithFamily(family: string): this;
|
|
127
|
+
|
|
128
|
+
initWithFamilyData(family: string, data: NSData | null): this;
|
|
129
|
+
|
|
130
|
+
initWithFamilySource(family: string, source: string | null): this;
|
|
131
|
+
|
|
132
|
+
initWithFontDescriptor(fontDescriptor: NSCFontDescriptors): this;
|
|
133
|
+
|
|
134
|
+
initWithFontDescriptorData(fontDescriptor: NSCFontDescriptors, data: NSData | null): this;
|
|
135
|
+
|
|
136
|
+
initWithFontDescriptorSource(fontDescriptor: NSCFontDescriptors, source: string | null): this;
|
|
137
|
+
|
|
138
|
+
load(callback: (p1: string | null) => void): void;
|
|
139
|
+
|
|
140
|
+
loadSync(outError: interop.Pointer | interop.Reference<string | null> | ArrayBufferLike | ArrayBufferView | null): void;
|
|
141
|
+
|
|
142
|
+
rawData(): NSData | null;
|
|
143
|
+
|
|
144
|
+
removeAllReloadListeners(): void;
|
|
145
|
+
|
|
146
|
+
removeOnReloadListener(listener: (p1: NSCFontFace, p2: string) => void): void;
|
|
147
|
+
|
|
148
|
+
setFontAscentOverride(value: string): void;
|
|
149
|
+
|
|
150
|
+
setFontDescentOverride(value: string): void;
|
|
151
|
+
|
|
152
|
+
setFontDisplay(value: string): void;
|
|
153
|
+
|
|
154
|
+
setFontFeatureSettings(value: string): void;
|
|
155
|
+
|
|
156
|
+
setFontLineGapOverride(value: string): void;
|
|
157
|
+
|
|
158
|
+
setFontStretch(value: string): void;
|
|
159
|
+
|
|
160
|
+
setFontStyleAngle(value: string, angle: string | null): void;
|
|
161
|
+
|
|
162
|
+
setFontUnicodeRange(value: string): void;
|
|
163
|
+
|
|
164
|
+
setFontVariant(value: string): void;
|
|
165
|
+
|
|
166
|
+
setFontVariationSettings(value: string): void;
|
|
167
|
+
|
|
168
|
+
setFontWeight(value: string): void;
|
|
169
|
+
|
|
170
|
+
uiFontWithSize(size: number): UIFont | null;
|
|
171
|
+
|
|
172
|
+
updateDescriptor(value: string): void;
|
|
173
|
+
|
|
174
|
+
updateDescriptorWithValue(value: string): void;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
declare var NSCFontFacePattern: string;
|
|
178
|
+
|
|
179
|
+
declare class NSCFontFaceSet extends NSObject {
|
|
180
|
+
|
|
181
|
+
static alloc(): NSCFontFaceSet; // inherited from NSObject
|
|
182
|
+
|
|
183
|
+
static instance(): NSCFontFaceSet;
|
|
184
|
+
|
|
185
|
+
static new(): NSCFontFaceSet; // inherited from NSObject
|
|
186
|
+
|
|
187
|
+
readonly status: NSCFontFaceSetStatus;
|
|
188
|
+
|
|
189
|
+
add(font: NSCFontFace): void;
|
|
190
|
+
|
|
191
|
+
addOnChangedListener(listener: () => void): void;
|
|
192
|
+
|
|
193
|
+
addOnLoadingDoneFacesListener(listener: (p1: NSArray<NSCFontFace>) => void): void;
|
|
194
|
+
|
|
195
|
+
addOnLoadingDoneListener(listener: (p1: NSCFontFace) => void): void;
|
|
196
|
+
|
|
197
|
+
addOnLoadingErrorFacesListener(listener: (p1: NSArray<NSCFontFace>, p2: string | null) => void): void;
|
|
198
|
+
|
|
199
|
+
addOnLoadingErrorListener(listener: (p1: NSCFontFace, p2: string) => void): void;
|
|
200
|
+
|
|
201
|
+
addOnLoadingListener(listener: (p1: NSCFontFace) => void): void;
|
|
202
|
+
|
|
203
|
+
addOnStatusListener(listener: (p1: NSCFontFaceSetStatus) => void): void;
|
|
204
|
+
|
|
205
|
+
array(): NSArray<NSCFontFace>;
|
|
206
|
+
|
|
207
|
+
checkText(font: string, text: string | null): boolean;
|
|
208
|
+
|
|
209
|
+
clear(): void;
|
|
210
|
+
|
|
211
|
+
delete(font: NSCFontFace): void;
|
|
212
|
+
|
|
213
|
+
forEach(block: (p1: NSCFontFace) => void): void;
|
|
214
|
+
|
|
215
|
+
has(font: NSCFontFace): boolean;
|
|
216
|
+
|
|
217
|
+
iter(): NSEnumerator<any>;
|
|
218
|
+
|
|
219
|
+
loadTextCallback(font: string, text: string | null, callback: (p1: NSArray<NSCFontFace>, p2: string | null) => void | null): void;
|
|
220
|
+
|
|
221
|
+
ready(callback: (p1: NSCFontFaceSet) => void): void;
|
|
222
|
+
|
|
223
|
+
removeOnChangedListener(listener: () => void): void;
|
|
224
|
+
|
|
225
|
+
removeOnLoadingDoneFacesListener(listener: (p1: NSArray<NSCFontFace>) => void): void;
|
|
226
|
+
|
|
227
|
+
removeOnLoadingDoneListener(listener: (p1: NSCFontFace) => void): void;
|
|
228
|
+
|
|
229
|
+
removeOnLoadingErrorFacesListener(listener: (p1: NSArray<NSCFontFace>, p2: string | null) => void): void;
|
|
230
|
+
|
|
231
|
+
removeOnLoadingErrorListener(listener: (p1: NSCFontFace, p2: string) => void): void;
|
|
232
|
+
|
|
233
|
+
removeOnLoadingListener(listener: (p1: NSCFontFace) => void): void;
|
|
234
|
+
|
|
235
|
+
removeOnStatusListener(listener: (p1: NSCFontFaceSetStatus) => void): void;
|
|
236
|
+
|
|
237
|
+
size(): number;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare const enum NSCFontFaceSetEventType {
|
|
241
|
+
|
|
242
|
+
Add = 0,
|
|
243
|
+
|
|
244
|
+
Remove = 1,
|
|
245
|
+
|
|
246
|
+
Clear = 2
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
interface NSCFontFaceSetListener extends NSObjectProtocol {
|
|
250
|
+
|
|
251
|
+
fontFaceSetDidEmitEventFaceFamily?(event: NSCFontFaceSetEventType, face: NSCFontFace | null, family: string | null): void;
|
|
252
|
+
}
|
|
253
|
+
declare var NSCFontFaceSetListener: {
|
|
254
|
+
|
|
255
|
+
prototype: NSCFontFaceSetListener;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
declare const enum NSCFontFaceSetStatus {
|
|
259
|
+
|
|
260
|
+
Loading = 0,
|
|
261
|
+
|
|
262
|
+
Loaded = 1
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
declare const enum NSCFontFaceStatus {
|
|
266
|
+
|
|
267
|
+
Unloaded = 0,
|
|
268
|
+
|
|
269
|
+
Loading = 1,
|
|
270
|
+
|
|
271
|
+
Loaded = 2,
|
|
272
|
+
|
|
273
|
+
Error = 3
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
declare class NSCFontParseResult extends NSObject {
|
|
277
|
+
|
|
278
|
+
static alloc(): NSCFontParseResult; // inherited from NSObject
|
|
279
|
+
|
|
280
|
+
static new(): NSCFontParseResult; // inherited from NSObject
|
|
281
|
+
|
|
282
|
+
families: NSArray<string>;
|
|
283
|
+
|
|
284
|
+
lineHeight: number | null;
|
|
285
|
+
|
|
286
|
+
sizePx: number;
|
|
287
|
+
|
|
288
|
+
style: NSCFontStyle;
|
|
289
|
+
|
|
290
|
+
weight: number;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
declare class NSCFontParser extends NSObject {
|
|
294
|
+
|
|
295
|
+
static alloc(): NSCFontParser; // inherited from NSObject
|
|
296
|
+
|
|
297
|
+
static new(): NSCFontParser; // inherited from NSObject
|
|
298
|
+
|
|
299
|
+
static parse(input: string): NSCFontParseResult | null;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
declare class NSCFontResolver extends NSObject {
|
|
303
|
+
|
|
304
|
+
static alloc(): NSCFontResolver; // inherited from NSObject
|
|
305
|
+
|
|
306
|
+
static new(): NSCFontResolver; // inherited from NSObject
|
|
307
|
+
|
|
308
|
+
static shared(): NSCFontResolver;
|
|
309
|
+
|
|
310
|
+
importFromRemoteWithURLLoadCompletion(url: string, load: boolean, completion: (p1: NSArray<NSCFontFace> | null, p2: NSError | null) => void): void;
|
|
311
|
+
|
|
312
|
+
loadFontDataFromURLError(src: string, error?: interop.Reference<NSError>): NSData | null;
|
|
313
|
+
|
|
314
|
+
registerFontFromDataError(data: NSData, error?: interop.Reference<NSError>): any | null;
|
|
315
|
+
|
|
316
|
+
resolveFontWithFamilySrcCompletion(family: string, src: string | null, completion: (p1: any | null, p2: NSData | null, p3: NSError | null) => void): void;
|
|
317
|
+
|
|
318
|
+
resolveGenericFamily(family: string): string;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
declare class NSCFontResolverResult extends NSObject {
|
|
322
|
+
|
|
323
|
+
static alloc(): NSCFontResolverResult; // inherited from NSObject
|
|
324
|
+
|
|
325
|
+
static new(): NSCFontResolverResult; // inherited from NSObject
|
|
326
|
+
|
|
327
|
+
data: NSData | null;
|
|
328
|
+
|
|
329
|
+
font: any;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
declare class NSCFontStyle extends NSObject implements NSCopying {
|
|
333
|
+
|
|
334
|
+
static alloc(): NSCFontStyle; // inherited from NSObject
|
|
335
|
+
|
|
336
|
+
static fromString(value: string): NSCFontStyle;
|
|
337
|
+
|
|
338
|
+
static italic(): NSCFontStyle;
|
|
339
|
+
|
|
340
|
+
static new(): NSCFontStyle; // inherited from NSObject
|
|
341
|
+
|
|
342
|
+
static normal(): NSCFontStyle;
|
|
343
|
+
|
|
344
|
+
static obliqueWithAngle(angle: number): NSCFontStyle;
|
|
345
|
+
|
|
346
|
+
readonly obliqueAngle: number;
|
|
347
|
+
|
|
348
|
+
readonly type: NSCFontStyleType;
|
|
349
|
+
|
|
350
|
+
copyWithZone(zone: interop.Pointer | interop.Reference<any> | ArrayBufferLike | ArrayBufferView | null): any;
|
|
351
|
+
|
|
352
|
+
toString(): string;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
declare const enum NSCFontStyleType {
|
|
356
|
+
|
|
357
|
+
Normal = 0,
|
|
358
|
+
|
|
359
|
+
Italic = 1,
|
|
360
|
+
|
|
361
|
+
Oblique = 2
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
declare const enum NSCFontWeight {
|
|
365
|
+
|
|
366
|
+
Thin = 100,
|
|
367
|
+
|
|
368
|
+
ExtraLight = 200,
|
|
369
|
+
|
|
370
|
+
Light = 300,
|
|
371
|
+
|
|
372
|
+
Normal = 400,
|
|
373
|
+
|
|
374
|
+
Medium = 500,
|
|
375
|
+
|
|
376
|
+
SemiBold = 600,
|
|
377
|
+
|
|
378
|
+
Bold = 700,
|
|
379
|
+
|
|
380
|
+
ExtraBold = 800,
|
|
381
|
+
|
|
382
|
+
Black = 900
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
declare function NSCFontWeightFromValue(value: number): NSCFontWeight;
|
|
386
|
+
|
|
387
|
+
declare var NSCPropertyPattern: string;
|
|
388
|
+
|
|
389
|
+
declare function NSCUIFontWeight(weight: NSCFontWeight): number;
|