@triniwiz/nativescript-masonkit 1.0.0-beta.109 → 1.0.0-beta.110
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 +6 -2
- package/common.js.map +1 -1
- package/fonts.d.ts +11 -0
- package/fonts.js +65 -0
- package/fonts.js.map +1 -1
- package/index.d.ts +2 -1
- package/nativescript.webpack.js +30 -0
- package/package.json +1 -1
- package/platforms/android/masonkit-release.aar +0 -0
- 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 +11 -4
- 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 +8479 -8474
- 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 +11 -4
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +11 -4
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +12 -12
- 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 +8473 -8468
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +8093 -8085
- package/platforms/windows/arm64/NativeScript.Mason.dll +0 -0
- package/platforms/windows/arm64/NativeScript.Mason.winmd +0 -0
- package/platforms/windows/x64/NativeScript.Mason.dll +0 -0
- package/platforms/windows/x64/NativeScript.Mason.winmd +0 -0
- package/style.js +5 -2
- package/style.js.map +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/style.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { layout as coreLayout } from '@nativescript/core/utils';
|
|
2
2
|
import { cssUnits } from './units';
|
|
3
|
+
import { pickFontFamily } from './fonts';
|
|
3
4
|
import { masonEngine } from './windows-panel-helpers';
|
|
4
5
|
import { reportCssDiagnostic } from './diagnostics';
|
|
5
6
|
import { expandColorStops, resolveStopPositions } from './gradient-stops';
|
|
@@ -5011,7 +5012,8 @@ export class Style {
|
|
|
5011
5012
|
// `font-family` is a native Style property (builds a FontFace), not a
|
|
5012
5013
|
// style-buffer field, so it can't be written through the shared buffer.
|
|
5013
5014
|
set fontFamily(value) {
|
|
5014
|
-
|
|
5015
|
+
// A CSS list, possibly quoted (`'Roboto Mono', Courier, monospace`); the natives take one name.
|
|
5016
|
+
value = pickFontFamily(this.coerceCssStringValue(value));
|
|
5015
5017
|
this.setPseudoCssStringValue('font-family', value, () => nodeHelper().setFontFamily(this.nativeView, value), () => (this.appleStyle.fontFamily = value));
|
|
5016
5018
|
}
|
|
5017
5019
|
set textDecoration(value) {
|
|
@@ -5976,7 +5978,8 @@ export class Style {
|
|
|
5976
5978
|
const normalized = normalizeColorValue(value);
|
|
5977
5979
|
if (normalized == null)
|
|
5978
5980
|
return;
|
|
5979
|
-
|
|
5981
|
+
// 0 is `auto`, so a fully transparent caret is stored as transparent white: as invisible, but distinct.
|
|
5982
|
+
setUint32(this.style_view, StyleKeys.CARET_COLOR, normalized === 0 ? 0x00ffffff : normalized);
|
|
5980
5983
|
setUint8(this.style_view, StyleKeys.CARET_COLOR_STATE, 1);
|
|
5981
5984
|
}
|
|
5982
5985
|
this.commitState(StateKeys.CARET_COLOR);
|