@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
package/style.d.ts
ADDED
|
@@ -0,0 +1,768 @@
|
|
|
1
|
+
import type { DimensionLength, GridAutoFlow, Length, LengthAuto, VerticalAlign, View } from '.';
|
|
2
|
+
import { CoreTypes } from '@nativescript/core';
|
|
3
|
+
export type OverFlow = 'visible' | 'hidden' | 'scroll' | 'clip' | 'auto';
|
|
4
|
+
/** `value` with every resolvable math function replaced by its result, for the native parsers. */
|
|
5
|
+
export declare function resolveCssMathIn(value: string, emBasis?: number): string;
|
|
6
|
+
/** A grid track list with relative units and math functions resolved to `px`, which the native parser reads. */
|
|
7
|
+
export declare function resolveGridTrackUnits(value: string, emBasis?: number): string;
|
|
8
|
+
/**
|
|
9
|
+
* Parse the `aspect-ratio` value into the single float the buffer holds.
|
|
10
|
+
*
|
|
11
|
+
* CSS allows `<number>`, a `<ratio>` (`2 / 3`), `auto`, and `auto` alongside a
|
|
12
|
+
* ratio. The buffer is one f32 and NaN means "no ratio", so every shape has
|
|
13
|
+
* to land here first — a raw `'2 / 3'` handed straight to `setFloat32` would
|
|
14
|
+
* coerce to NaN.
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseAspectRatio(value: unknown): number;
|
|
17
|
+
/**
|
|
18
|
+
* Resolve a CSS length to the CSS pixels (== dips) core's `Length` speaks.
|
|
19
|
+
*
|
|
20
|
+
* core's own CSS properties (`width`/`height`/`min-*`/`max-*`) parse a
|
|
21
|
+
* stylesheet declaration with `PercentLength.parse` — a bare `parseFloat` —
|
|
22
|
+
* so `100vh` arrives as the number 100 and `px` as a device pixel rather
|
|
23
|
+
* than Mason's CSS pixel. Returns `undefined` for anything that isn't a
|
|
24
|
+
* plain length (`auto`, a percentage, a keyword, `calc()`), leaving those to
|
|
25
|
+
* their existing paths.
|
|
26
|
+
*/
|
|
27
|
+
export declare function cssLengthToDip(value: unknown, emBasis?: number): number | undefined;
|
|
28
|
+
export declare function isSizingKeyword(value: unknown): value is string;
|
|
29
|
+
declare class StateKeys {
|
|
30
|
+
readonly w0: number;
|
|
31
|
+
readonly w1: number;
|
|
32
|
+
readonly w2: number;
|
|
33
|
+
readonly w3: number;
|
|
34
|
+
private constructor();
|
|
35
|
+
private static flag;
|
|
36
|
+
static readonly NONE: StateKeys;
|
|
37
|
+
static readonly DISPLAY: StateKeys;
|
|
38
|
+
static readonly POSITION: StateKeys;
|
|
39
|
+
static readonly DIRECTION: StateKeys;
|
|
40
|
+
static readonly FLEX_DIRECTION: StateKeys;
|
|
41
|
+
static readonly FLEX_WRAP: StateKeys;
|
|
42
|
+
static readonly OVERFLOW_X: StateKeys;
|
|
43
|
+
static readonly OVERFLOW_Y: StateKeys;
|
|
44
|
+
static readonly ALIGN_ITEMS: StateKeys;
|
|
45
|
+
static readonly ALIGN_SELF: StateKeys;
|
|
46
|
+
static readonly ALIGN_CONTENT: StateKeys;
|
|
47
|
+
static readonly JUSTIFY_ITEMS: StateKeys;
|
|
48
|
+
static readonly JUSTIFY_SELF: StateKeys;
|
|
49
|
+
static readonly JUSTIFY_CONTENT: StateKeys;
|
|
50
|
+
static readonly INSET: StateKeys;
|
|
51
|
+
static readonly MARGIN: StateKeys;
|
|
52
|
+
static readonly PADDING: StateKeys;
|
|
53
|
+
static readonly BORDER: StateKeys;
|
|
54
|
+
static readonly FLEX_GROW: StateKeys;
|
|
55
|
+
static readonly FLEX_SHRINK: StateKeys;
|
|
56
|
+
static readonly FLEX_BASIS: StateKeys;
|
|
57
|
+
static readonly SIZE: StateKeys;
|
|
58
|
+
static readonly MIN_SIZE: StateKeys;
|
|
59
|
+
static readonly MAX_SIZE: StateKeys;
|
|
60
|
+
static readonly GAP: StateKeys;
|
|
61
|
+
static readonly ASPECT_RATIO: StateKeys;
|
|
62
|
+
static readonly GRID_AUTO_FLOW: StateKeys;
|
|
63
|
+
static readonly GRID_COLUMN: StateKeys;
|
|
64
|
+
static readonly GRID_ROW: StateKeys;
|
|
65
|
+
static readonly SCROLLBAR_WIDTH: StateKeys;
|
|
66
|
+
static readonly ALIGN: StateKeys;
|
|
67
|
+
static readonly BOX_SIZING: StateKeys;
|
|
68
|
+
static readonly OVERFLOW: StateKeys;
|
|
69
|
+
static readonly ITEM_IS_TABLE: StateKeys;
|
|
70
|
+
static readonly ITEM_IS_REPLACED: StateKeys;
|
|
71
|
+
static readonly DISPLAY_MODE: StateKeys;
|
|
72
|
+
static readonly FORCE_INLINE: StateKeys;
|
|
73
|
+
static readonly MIN_CONTENT_WIDTH: StateKeys;
|
|
74
|
+
static readonly MIN_CONTENT_HEIGHT: StateKeys;
|
|
75
|
+
static readonly MAX_CONTENT_WIDTH: StateKeys;
|
|
76
|
+
static readonly MAX_CONTENT_HEIGHT: StateKeys;
|
|
77
|
+
static readonly BORDER_STYLE: StateKeys;
|
|
78
|
+
static readonly BORDER_RADIUS: StateKeys;
|
|
79
|
+
static readonly BORDER_COLOR: StateKeys;
|
|
80
|
+
static readonly FLOAT: StateKeys;
|
|
81
|
+
static readonly CLEAR: StateKeys;
|
|
82
|
+
static readonly OBJECT_FIT: StateKeys;
|
|
83
|
+
static readonly Z_INDEX: StateKeys;
|
|
84
|
+
static readonly LIST_STYLE_POSITION: StateKeys;
|
|
85
|
+
static readonly LIST_STYLE_TYPE: StateKeys;
|
|
86
|
+
static readonly INVALIDATE_TEXT: StateKeys;
|
|
87
|
+
static readonly FONT_COLOR: StateKeys;
|
|
88
|
+
static readonly DECORATION_LINE: StateKeys;
|
|
89
|
+
static readonly DECORATION_COLOR: StateKeys;
|
|
90
|
+
static readonly TEXT_ALIGN: StateKeys;
|
|
91
|
+
static readonly TEXT_JUSTIFY: StateKeys;
|
|
92
|
+
static readonly BACKGROUND_COLOR: StateKeys;
|
|
93
|
+
static readonly FONT_SIZE: StateKeys;
|
|
94
|
+
static readonly TEXT_TRANSFORM: StateKeys;
|
|
95
|
+
static readonly FONT_STYLE: StateKeys;
|
|
96
|
+
static readonly FONT_STYLE_SLANT: StateKeys;
|
|
97
|
+
static readonly TEXT_WRAP: StateKeys;
|
|
98
|
+
static readonly TEXT_OVERFLOW: StateKeys;
|
|
99
|
+
static readonly DECORATION_STYLE: StateKeys;
|
|
100
|
+
static readonly WHITE_SPACE: StateKeys;
|
|
101
|
+
static readonly FONT_WEIGHT: StateKeys;
|
|
102
|
+
static readonly LINE_HEIGHT: StateKeys;
|
|
103
|
+
static readonly VERTICAL_ALIGN: StateKeys;
|
|
104
|
+
static readonly DECORATION_THICKNESS: StateKeys;
|
|
105
|
+
static readonly TEXT_SHADOWS: StateKeys;
|
|
106
|
+
static readonly FONT_FAMILY: StateKeys;
|
|
107
|
+
static readonly LETTER_SPACING: StateKeys;
|
|
108
|
+
static readonly FONT_VARIANT_NUMERIC: StateKeys;
|
|
109
|
+
static readonly OBJECT_POSITION: StateKeys;
|
|
110
|
+
static readonly WRITING_MODE: StateKeys;
|
|
111
|
+
static readonly UNICODE_BIDI: StateKeys;
|
|
112
|
+
static readonly HYPHENS: StateKeys;
|
|
113
|
+
static readonly CARET_COLOR: StateKeys;
|
|
114
|
+
static readonly WORD_SPACING: StateKeys;
|
|
115
|
+
static readonly FONT_STRETCH: StateKeys;
|
|
116
|
+
static readonly TEXT_INDENT: StateKeys;
|
|
117
|
+
static readonly LINE_CLAMP: StateKeys;
|
|
118
|
+
static readonly TRANSFORM_ORIGIN: StateKeys;
|
|
119
|
+
static readonly DISPLAY_AND_MODE: StateKeys;
|
|
120
|
+
static readonly FLOW_TYPE: StateKeys;
|
|
121
|
+
static readonly WINDOWS_TEXT: StateKeys;
|
|
122
|
+
/** The mask as one unsigned 128-bit value (tests and diagnostics). */
|
|
123
|
+
get bits(): bigint;
|
|
124
|
+
or(other: StateKeys): StateKeys;
|
|
125
|
+
and(other: StateKeys): StateKeys;
|
|
126
|
+
hasFlag(flag: StateKeys): boolean;
|
|
127
|
+
}
|
|
128
|
+
export declare function parseLinearGradientCss(value: string): {
|
|
129
|
+
angle: number;
|
|
130
|
+
corner?: [number, number];
|
|
131
|
+
offsets: number[];
|
|
132
|
+
colors: number[];
|
|
133
|
+
interpolation: string;
|
|
134
|
+
positions: Array<number | null>;
|
|
135
|
+
lengths?: Array<number | null>;
|
|
136
|
+
} | null;
|
|
137
|
+
export declare function parseBoxPosition(value: string, fallback?: number): {
|
|
138
|
+
x: number;
|
|
139
|
+
y: number;
|
|
140
|
+
};
|
|
141
|
+
export declare function parseRadialGradientCss(value: string): {
|
|
142
|
+
cx: number;
|
|
143
|
+
cy: number;
|
|
144
|
+
rx: number;
|
|
145
|
+
ry: number;
|
|
146
|
+
offsets: number[];
|
|
147
|
+
colors: number[];
|
|
148
|
+
interpolation: string;
|
|
149
|
+
positions: Array<number | null>;
|
|
150
|
+
lengths?: Array<number | null>;
|
|
151
|
+
circle?: number;
|
|
152
|
+
circleRadius?: number;
|
|
153
|
+
} | null;
|
|
154
|
+
export declare function backgroundFit(size: string | null | undefined): number;
|
|
155
|
+
/** 1-4 lengths, percentages or `auto`. Anything else makes the whole declaration invalid, which CSS ignores. */
|
|
156
|
+
export declare function isSideList(value: string): boolean;
|
|
157
|
+
/** One Windows border-radius corner in the buffer's encoding: type 0 = dip, 1 = percent as a 0-1 fraction. */
|
|
158
|
+
export type WindowsRadius = {
|
|
159
|
+
type: 0 | 1;
|
|
160
|
+
value: number;
|
|
161
|
+
};
|
|
162
|
+
export declare function parseBorderRadiusShorthand(value: string, emBasis?: number): {
|
|
163
|
+
tl: WindowsRadius;
|
|
164
|
+
tr: WindowsRadius;
|
|
165
|
+
br: WindowsRadius;
|
|
166
|
+
bl: WindowsRadius;
|
|
167
|
+
};
|
|
168
|
+
/** corner-shape as each corner's superellipse parameter K (TL TR BR BL), or null if a token is invalid. An empty value resets to round. */
|
|
169
|
+
export declare function parseCornerShape(value: string): [number, number, number, number] | null;
|
|
170
|
+
/** `currentcolor`, the decoration color's unset value (Constants.UNSET_COLOR on Android). */
|
|
171
|
+
export declare const DECORATION_COLOR_UNSET = 3735928559;
|
|
172
|
+
/** `text-decoration-line` in the buffer's bit set; null when nothing valid was found. */
|
|
173
|
+
export declare function parseTextDecorationLine(value: string): number | null;
|
|
174
|
+
export declare function textDecorationLineToCss(mask: number): string;
|
|
175
|
+
export declare function parseTextDecorationStyle(value: string): number | null;
|
|
176
|
+
export declare function textDecorationStyleToCss(value: number): string;
|
|
177
|
+
export declare function parseTextDecorationColor(value: string): number | null;
|
|
178
|
+
/**
|
|
179
|
+
* The `text-decoration` shorthand, tokens in any order, the way Style.kt's setTextDecoration reads
|
|
180
|
+
* it: omitted longhands reset, and an unknown token rejects the whole declaration (null).
|
|
181
|
+
* `thickness` is in the units `resolveLength` returns; 0 means auto.
|
|
182
|
+
*/
|
|
183
|
+
export declare function parseTextDecoration(value: string, resolveLength: (token: string) => number | undefined): {
|
|
184
|
+
line: number;
|
|
185
|
+
style: number;
|
|
186
|
+
color: number;
|
|
187
|
+
thickness: number;
|
|
188
|
+
} | null;
|
|
189
|
+
/** `transform-origin` as two (type, value) pairs: type 0 is device px, 1 is percent. A z offset is ignored. */
|
|
190
|
+
export declare function parseTransformOrigin(value: string, emBasis?: number): {
|
|
191
|
+
xType: number;
|
|
192
|
+
x: number;
|
|
193
|
+
yType: number;
|
|
194
|
+
y: number;
|
|
195
|
+
} | null;
|
|
196
|
+
export declare function nodeHelper(): org.nativescript.mason.masonkit.NodeHelper;
|
|
197
|
+
/**
|
|
198
|
+
* One CSS colour (`oklch(60% 0.2 240)`, `color-mix(...)`, `rgb(0 0 0 / 15%)`)
|
|
199
|
+
* as `rgba(...)`, or null. Core's `Color` resolves `color-mix()` through
|
|
200
|
+
* @csstools' parser; any other function is handed over as an identity mix.
|
|
201
|
+
*/
|
|
202
|
+
export declare function cssColorToRgba(color: string): string | null;
|
|
203
|
+
/** Marks a style write in progress, so a viewport unit it resolves is remembered against `target[name] = value`. */
|
|
204
|
+
export declare function beginStyleWrite(target: object, name: string, value: unknown): void;
|
|
205
|
+
export declare function endStyleWrite(): void;
|
|
206
|
+
/** Writes every style property that used vw/vh/vmin/vmax again, against the current viewport. */
|
|
207
|
+
export declare function refreshViewportUnits(): void;
|
|
208
|
+
export declare class Style {
|
|
209
|
+
private view_;
|
|
210
|
+
private _sv;
|
|
211
|
+
private _i8;
|
|
212
|
+
private _u8;
|
|
213
|
+
private _bufferRequested;
|
|
214
|
+
private _d0;
|
|
215
|
+
private _d1;
|
|
216
|
+
private _d2;
|
|
217
|
+
private _d3;
|
|
218
|
+
private _hasDirty;
|
|
219
|
+
private inBatch;
|
|
220
|
+
private _syncScheduled;
|
|
221
|
+
private _turnSnapshot;
|
|
222
|
+
private _synced;
|
|
223
|
+
private nativeView;
|
|
224
|
+
private nativeNode;
|
|
225
|
+
private _pseudo;
|
|
226
|
+
private _borderRadiusCss;
|
|
227
|
+
private _appleStyle;
|
|
228
|
+
static fromView(view: View, nativeView: any): Style;
|
|
229
|
+
private get style_view();
|
|
230
|
+
private set style_view(value);
|
|
231
|
+
private get i8View();
|
|
232
|
+
private set i8View(value);
|
|
233
|
+
private get u8View();
|
|
234
|
+
private set u8View(value);
|
|
235
|
+
/** The native MasonStyle, fetched once (each `nativeView.style` read is a bridge call). */
|
|
236
|
+
private get appleStyle();
|
|
237
|
+
private setBuffer;
|
|
238
|
+
private loadBuffer;
|
|
239
|
+
/** The dirty mask as one value, `-1n` when clean (tests and diagnostics). */
|
|
240
|
+
private get isDirty();
|
|
241
|
+
static fromPseudo(pseudo: string, view: View, nativeView: any): Style;
|
|
242
|
+
private clearPseudoSetMask;
|
|
243
|
+
markPseudoSet(key: StateKeys): void;
|
|
244
|
+
private commitState;
|
|
245
|
+
private coerceCssStringValue;
|
|
246
|
+
private setPseudoCssStringValue;
|
|
247
|
+
private _windowsCss;
|
|
248
|
+
private _windowsBackground?;
|
|
249
|
+
private _windowsBackgroundSize?;
|
|
250
|
+
private _windowsBackgroundPosition?;
|
|
251
|
+
private _windowsImageBackground;
|
|
252
|
+
private _windowsBackgroundShorthand;
|
|
253
|
+
private applyWindowsBackground;
|
|
254
|
+
private windowsScrolls;
|
|
255
|
+
private windowsColorUnder;
|
|
256
|
+
private windowsReapplyGradient;
|
|
257
|
+
private windowsBackgroundLonghands;
|
|
258
|
+
private windowsBackgroundBoxes;
|
|
259
|
+
private _windowsMaskSpec;
|
|
260
|
+
private _windowsMaskOverrides?;
|
|
261
|
+
private windowsMaskContext;
|
|
262
|
+
private scheduleWindowsMask;
|
|
263
|
+
private applyWindowsCssString;
|
|
264
|
+
private writeBorderSide;
|
|
265
|
+
private writeWindowsTextDecoration;
|
|
266
|
+
setBorderColor(value: string): void;
|
|
267
|
+
setBorderSideColor(side: 'top' | 'right' | 'bottom' | 'left', value: number | string | {
|
|
268
|
+
argb?: number;
|
|
269
|
+
}): void;
|
|
270
|
+
private borderSideColor;
|
|
271
|
+
get borderTopColor(): string;
|
|
272
|
+
set borderTopColor(value: number | string | {
|
|
273
|
+
argb?: number;
|
|
274
|
+
});
|
|
275
|
+
get borderRightColor(): string;
|
|
276
|
+
set borderRightColor(value: number | string | {
|
|
277
|
+
argb?: number;
|
|
278
|
+
});
|
|
279
|
+
get borderBottomColor(): string;
|
|
280
|
+
set borderBottomColor(value: number | string | {
|
|
281
|
+
argb?: number;
|
|
282
|
+
});
|
|
283
|
+
get borderLeftColor(): string;
|
|
284
|
+
set borderLeftColor(value: number | string | {
|
|
285
|
+
argb?: number;
|
|
286
|
+
});
|
|
287
|
+
resetState(): void;
|
|
288
|
+
private syncStyle;
|
|
289
|
+
private _sendSync;
|
|
290
|
+
private setOrAppendState;
|
|
291
|
+
_flushScheduledSync(): void;
|
|
292
|
+
batch(fn: (style: Style) => void): void;
|
|
293
|
+
get view(): View;
|
|
294
|
+
/**
|
|
295
|
+
* The font size `em` resolves against, in CSS px: the element's computed one,
|
|
296
|
+
* with a percentage of the parent's, or the inherited one when unset.
|
|
297
|
+
*/
|
|
298
|
+
emBasis(): number;
|
|
299
|
+
emBasisFor(value: unknown): number | undefined;
|
|
300
|
+
/** The nearest existing Mason ancestor style's font size (its own for a pseudo-class style). */
|
|
301
|
+
private parentEmBasis;
|
|
302
|
+
private prepareMut;
|
|
303
|
+
get boxSizing(): 'border-box' | 'content-box';
|
|
304
|
+
set boxSizing(value: 'border-box' | 'content-box');
|
|
305
|
+
get direction(): 'inherit' | 'ltr' | 'rtl';
|
|
306
|
+
set direction(value: 'inherit' | 'ltr' | 'rtl');
|
|
307
|
+
get listStyleType(): 'none' | 'custom' | 'disc' | 'circle' | 'square' | 'decimal';
|
|
308
|
+
set listStyleType(value: 'none' | 'custom' | 'disc' | 'circle' | 'square' | 'decimal');
|
|
309
|
+
get listStylePosition(): 'outside' | 'inside';
|
|
310
|
+
set listStylePosition(value: 'outside' | 'inside');
|
|
311
|
+
get fontSize(): string | number | {
|
|
312
|
+
value: number;
|
|
313
|
+
unit: "dip" | "px" | "%";
|
|
314
|
+
};
|
|
315
|
+
set fontSize(value: string | number | {
|
|
316
|
+
value: number;
|
|
317
|
+
unit: 'dip' | 'px' | '%';
|
|
318
|
+
});
|
|
319
|
+
get fontStyle(): "normal" | "italic" | "oblique" | `oblique ${number}deg`;
|
|
320
|
+
set fontStyle(value: 'normal' | 'italic' | 'oblique' | `oblique ${number}deg`);
|
|
321
|
+
get fontWeight(): "100" | "200" | "300" | "normal" | "400" | "500" | "600" | "bold" | "700" | "800" | "900" | number;
|
|
322
|
+
set fontWeight(value: '100' | '200' | '300' | 'normal' | '400' | '500' | '600' | 'bold' | '700' | '800' | '900' | number);
|
|
323
|
+
get color(): number | string | {
|
|
324
|
+
argb?: number;
|
|
325
|
+
};
|
|
326
|
+
set color(value: number | string | {
|
|
327
|
+
argb?: number;
|
|
328
|
+
});
|
|
329
|
+
set 'background-color'(value: number | string | {
|
|
330
|
+
argb?: number;
|
|
331
|
+
});
|
|
332
|
+
get 'background-color'(): number | string | {
|
|
333
|
+
argb?: number;
|
|
334
|
+
};
|
|
335
|
+
get backgroundColor(): number | string | {
|
|
336
|
+
argb?: number;
|
|
337
|
+
};
|
|
338
|
+
set backgroundColor(value: number | string | {
|
|
339
|
+
argb?: number;
|
|
340
|
+
});
|
|
341
|
+
get textWrap(): number | "nowrap" | "wrap" | "balance" | "pretty" | "stable";
|
|
342
|
+
set textWrap(value: number | 'nowrap' | 'wrap' | 'balance' | 'pretty' | 'stable');
|
|
343
|
+
get styleView(): DataView;
|
|
344
|
+
get hasBoxStyle(): boolean;
|
|
345
|
+
get display(): "none" | "flex" | "grid" | "block" | "inline" | "inline-block" | "inline-flex" | "inline-grid";
|
|
346
|
+
set display(value: 'none' | 'flex' | 'grid' | 'block' | 'inline' | 'inline-block' | 'inline-flex' | 'inline-grid');
|
|
347
|
+
get position(): "static" | "relative" | "absolute" | "fixed" | "sticky";
|
|
348
|
+
set position(value: 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky');
|
|
349
|
+
get flexDirection(): "column" | "row" | "column-reverse" | "row-reverse";
|
|
350
|
+
set flexDirection(value: 'column' | 'row' | 'column-reverse' | 'row-reverse');
|
|
351
|
+
get flexWrap(): "nowrap" | "no-wrap" | "wrap" | "wrap-reverse" | "balance" | "balance-reverse";
|
|
352
|
+
set flexWrap(value: 'nowrap' | 'no-wrap' | 'wrap' | 'wrap-reverse' | 'balance' | 'balance-reverse');
|
|
353
|
+
get minWidth(): LengthAuto;
|
|
354
|
+
set minWidth(value: LengthAuto);
|
|
355
|
+
get minHeight(): LengthAuto;
|
|
356
|
+
set minHeight(value: LengthAuto);
|
|
357
|
+
get width(): DimensionLength;
|
|
358
|
+
set width(value: DimensionLength);
|
|
359
|
+
get height(): DimensionLength;
|
|
360
|
+
set height(value: DimensionLength);
|
|
361
|
+
get maxWidth(): LengthAuto;
|
|
362
|
+
set maxWidth(value: LengthAuto);
|
|
363
|
+
get maxHeight(): LengthAuto;
|
|
364
|
+
set maxHeight(value: LengthAuto);
|
|
365
|
+
get borderLeftWidth(): Length;
|
|
366
|
+
set borderLeftWidth(value: Length);
|
|
367
|
+
get borderRightWidth(): Length;
|
|
368
|
+
set borderRightWidth(value: Length);
|
|
369
|
+
get borderTopWidth(): Length;
|
|
370
|
+
set borderTopWidth(value: Length);
|
|
371
|
+
get borderBottomWidth(): Length;
|
|
372
|
+
set borderBottomWidth(value: Length);
|
|
373
|
+
set inset(value: LengthAuto);
|
|
374
|
+
get left(): LengthAuto;
|
|
375
|
+
set left(value: LengthAuto);
|
|
376
|
+
get right(): LengthAuto;
|
|
377
|
+
set right(value: LengthAuto);
|
|
378
|
+
get top(): LengthAuto;
|
|
379
|
+
set top(value: LengthAuto);
|
|
380
|
+
get bottom(): LengthAuto;
|
|
381
|
+
set bottom(value: LengthAuto);
|
|
382
|
+
set margin(value: LengthAuto);
|
|
383
|
+
get marginLeft(): LengthAuto;
|
|
384
|
+
set marginLeft(value: LengthAuto);
|
|
385
|
+
get marginRight(): LengthAuto;
|
|
386
|
+
set marginRight(value: LengthAuto);
|
|
387
|
+
get marginTop(): LengthAuto;
|
|
388
|
+
set marginTop(value: LengthAuto);
|
|
389
|
+
get marginBottom(): LengthAuto;
|
|
390
|
+
set marginBottom(value: LengthAuto);
|
|
391
|
+
set padding(value: Length);
|
|
392
|
+
get paddingLeft(): Length;
|
|
393
|
+
set paddingLeft(value: Length);
|
|
394
|
+
get paddingRight(): Length;
|
|
395
|
+
set paddingRight(value: Length);
|
|
396
|
+
get paddingTop(): Length;
|
|
397
|
+
set paddingTop(value: Length);
|
|
398
|
+
get paddingBottom(): Length;
|
|
399
|
+
set paddingBottom(value: Length);
|
|
400
|
+
get gridGap(): string;
|
|
401
|
+
set gridGap(value: string);
|
|
402
|
+
get gap(): string;
|
|
403
|
+
set gap(value: string);
|
|
404
|
+
get rowGap(): Length;
|
|
405
|
+
set rowGap(value: Length);
|
|
406
|
+
get columnGap(): Length;
|
|
407
|
+
set columnGap(value: Length);
|
|
408
|
+
get aspectRatio(): number;
|
|
409
|
+
set aspectRatio(value: number | string);
|
|
410
|
+
get flexBasis(): DimensionLength;
|
|
411
|
+
set flexBasis(value: DimensionLength);
|
|
412
|
+
get alignItems(): "normal" | "start" | "end" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
|
|
413
|
+
set alignItems(value: 'normal' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch');
|
|
414
|
+
get alignSelf(): "normal" | "start" | "end" | "center" | "baseline" | "stretch" | "flex-start" | "flex-end";
|
|
415
|
+
set alignSelf(value: 'normal' | 'start' | 'end' | 'center' | 'baseline' | 'stretch' | 'flex-start' | 'flex-end');
|
|
416
|
+
get alignContent(): "normal" | "space-around" | "space-between" | "space-evenly" | "center" | "end" | "start" | "stretch" | "flex-start" | "flex-end";
|
|
417
|
+
set alignContent(value: 'normal' | 'space-around' | 'space-between' | 'space-evenly' | 'center' | 'end' | 'start' | 'stretch' | 'flex-start' | 'flex-end');
|
|
418
|
+
get justifyItems(): "normal" | "start" | "end" | "center" | "baseline" | "stretch" | "flex-start" | "flex-end";
|
|
419
|
+
set justifyItems(value: 'normal' | 'start' | 'end' | 'center' | 'baseline' | 'stretch' | 'flex-start' | 'flex-end');
|
|
420
|
+
get justifySelf(): "normal" | "start" | "end" | "center" | "baseline" | "stretch" | "flex-start" | "flex-end";
|
|
421
|
+
set justifySelf(value: 'normal' | 'start' | 'end' | 'center' | 'baseline' | 'stretch' | 'flex-start' | 'flex-end');
|
|
422
|
+
get justifyContent(): "normal" | "start" | "end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly" | "flex-start" | "flex-end";
|
|
423
|
+
set justifyContent(value: 'normal' | 'start' | 'end' | 'center' | 'stretch' | 'space-between' | 'space-around' | 'space-evenly' | 'flex-start' | 'flex-end');
|
|
424
|
+
get gridAutoRows(): string;
|
|
425
|
+
set gridAutoRows(value: string);
|
|
426
|
+
get gridAutoColumns(): string;
|
|
427
|
+
set gridAutoColumns(value: string);
|
|
428
|
+
get gridAutoFlow(): GridAutoFlow;
|
|
429
|
+
set gridAutoFlow(value: GridAutoFlow);
|
|
430
|
+
get gridRowGap(): Length;
|
|
431
|
+
set gridRowGap(value: Length);
|
|
432
|
+
get gridColumnGap(): Length;
|
|
433
|
+
set gridColumnGap(value: Length);
|
|
434
|
+
set gridColumn(value: string);
|
|
435
|
+
get gridColumn(): string;
|
|
436
|
+
get gridColumnStart(): string;
|
|
437
|
+
set gridColumnStart(value: string);
|
|
438
|
+
get gridColumnEnd(): string;
|
|
439
|
+
set gridColumnEnd(value: string);
|
|
440
|
+
set gridRow(value: string);
|
|
441
|
+
get gridRow(): string;
|
|
442
|
+
get gridRowStart(): string;
|
|
443
|
+
set gridRowStart(value: string);
|
|
444
|
+
get gridRowEnd(): string;
|
|
445
|
+
set gridRowEnd(value: string);
|
|
446
|
+
set gridArea(value: string);
|
|
447
|
+
get gridArea(): string;
|
|
448
|
+
set gridTemplateRows(value: string);
|
|
449
|
+
get gridTemplateRows(): string;
|
|
450
|
+
get gridTemplateColumns(): string;
|
|
451
|
+
set gridTemplateColumns(value: string);
|
|
452
|
+
get gridTemplateAreas(): string;
|
|
453
|
+
set gridTemplateAreas(value: string);
|
|
454
|
+
get overflow(): OverFlow | `${OverFlow} ${OverFlow}`;
|
|
455
|
+
set overflow(value: OverFlow | `${OverFlow} ${OverFlow}`);
|
|
456
|
+
get overflowX(): OverFlow;
|
|
457
|
+
set overflowX(value: OverFlow);
|
|
458
|
+
get overflowY(): OverFlow;
|
|
459
|
+
set overflowY(value: OverFlow);
|
|
460
|
+
get flexGrow(): number;
|
|
461
|
+
set flexGrow(value: number);
|
|
462
|
+
get flexShrink(): number;
|
|
463
|
+
set flexShrink(value: number);
|
|
464
|
+
get scrollBarWidth(): number | CoreTypes.LengthType;
|
|
465
|
+
set scrollBarWidth(value: number | CoreTypes.LengthType);
|
|
466
|
+
get letterSpacing(): number | CoreTypes.LengthType;
|
|
467
|
+
set letterSpacing(value: string | number | CoreTypes.LengthType);
|
|
468
|
+
get lineHeight(): number | CoreTypes.LengthType;
|
|
469
|
+
set lineHeight(value: string | number | CoreTypes.LengthType);
|
|
470
|
+
get textOverflow(): "clip" | "ellipsis" | `${string}`;
|
|
471
|
+
set textOverflow(value: 'clip' | 'ellipsis' | `${string}`);
|
|
472
|
+
get textAlignment(): "left" | "right" | "center" | "justify" | "start" | "end";
|
|
473
|
+
set textAlignment(value: 'left' | 'right' | 'center' | 'justify' | 'start' | 'end');
|
|
474
|
+
get textTransform(): "none" | "capitalize" | "uppercase" | "lowercase";
|
|
475
|
+
set textTransform(value: 'none' | 'capitalize' | 'uppercase' | 'lowercase');
|
|
476
|
+
get background(): string;
|
|
477
|
+
set background(value: string);
|
|
478
|
+
get backgroundImage(): string;
|
|
479
|
+
set backgroundImage(value: string);
|
|
480
|
+
get backgroundRepeat(): string;
|
|
481
|
+
set backgroundRepeat(value: string);
|
|
482
|
+
get backgroundPosition(): string;
|
|
483
|
+
set backgroundPosition(value: string);
|
|
484
|
+
get backgroundSize(): string;
|
|
485
|
+
set backgroundSize(value: string);
|
|
486
|
+
get backgroundClip(): string;
|
|
487
|
+
set backgroundClip(value: string);
|
|
488
|
+
get backgroundPositionX(): string;
|
|
489
|
+
set backgroundPositionX(value: string);
|
|
490
|
+
get backgroundPositionY(): string;
|
|
491
|
+
set backgroundPositionY(value: string);
|
|
492
|
+
get backgroundOrigin(): string;
|
|
493
|
+
set backgroundOrigin(value: string);
|
|
494
|
+
get backgroundAttachment(): string;
|
|
495
|
+
set backgroundAttachment(value: string);
|
|
496
|
+
get backgroundBlendMode(): string;
|
|
497
|
+
set backgroundBlendMode(value: string);
|
|
498
|
+
hasBorderRadius(): boolean;
|
|
499
|
+
get borderRadius(): string;
|
|
500
|
+
set borderRadius(value: string);
|
|
501
|
+
/** One corner from a core length (dip number or `{ value, unit }`) without the string round trip; false when it needs one. */
|
|
502
|
+
_writeCornerLength(corner: number, value: unknown, scale?: number): boolean;
|
|
503
|
+
private _radiusCssFromBuffer;
|
|
504
|
+
/** Whether one corner has no radius, read straight from the buffer. */
|
|
505
|
+
_cornerRadiusIsZero(corner: number): boolean;
|
|
506
|
+
_writeCornerRadius(corner: number, radius: readonly [string, string], shorthand: string, scale?: number): boolean;
|
|
507
|
+
_writeBorderRadius(value: string, scale: number): boolean;
|
|
508
|
+
get whiteSpace(): string;
|
|
509
|
+
set whiteSpace(value: 'normal' | 'pre' | 'pre-wrap' | 'pre-line' | 'nowrap' | 'break-spaces');
|
|
510
|
+
get objectFit(): string;
|
|
511
|
+
/** Read by `Img`; previously reachable only through the native HTML parser. */
|
|
512
|
+
set objectFit(value: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down');
|
|
513
|
+
get textJustify(): string;
|
|
514
|
+
set textJustify(value: 'none' | 'auto' | 'inter-word' | 'inter-character' | 'distribute');
|
|
515
|
+
get textDecorationThickness(): number;
|
|
516
|
+
/** Read by TextNode when stroking the decoration line. */
|
|
517
|
+
set textDecorationThickness(value: string | number);
|
|
518
|
+
get fontFamily(): string;
|
|
519
|
+
set fontFamily(value: string);
|
|
520
|
+
set textDecoration(value: string);
|
|
521
|
+
get textDecorationLine(): string;
|
|
522
|
+
set textDecorationLine(value: string);
|
|
523
|
+
get textDecorationStyle(): string;
|
|
524
|
+
set textDecorationStyle(value: string);
|
|
525
|
+
get textDecorationColor(): string;
|
|
526
|
+
set textDecorationColor(value: string);
|
|
527
|
+
get border(): string;
|
|
528
|
+
set border(value: string);
|
|
529
|
+
get paddingCss(): string | number;
|
|
530
|
+
set paddingCss(value: string | number);
|
|
531
|
+
get marginCss(): string | number;
|
|
532
|
+
set marginCss(value: string | number);
|
|
533
|
+
get insetCss(): string | number;
|
|
534
|
+
set insetCss(value: string | number);
|
|
535
|
+
get borderLeft(): string;
|
|
536
|
+
set borderLeft(value: string);
|
|
537
|
+
get borderTop(): string;
|
|
538
|
+
set borderTop(value: string);
|
|
539
|
+
get borderRight(): string;
|
|
540
|
+
set borderRight(value: string);
|
|
541
|
+
get borderBottom(): string;
|
|
542
|
+
set borderBottom(value: string);
|
|
543
|
+
get filter(): string;
|
|
544
|
+
set filter(value: string);
|
|
545
|
+
get boxShadow(): string;
|
|
546
|
+
set 'box-shadow'(value: string);
|
|
547
|
+
get 'box-shadow'(): string;
|
|
548
|
+
set boxShadow(value: string);
|
|
549
|
+
get transform(): string;
|
|
550
|
+
set transform(value: string);
|
|
551
|
+
get verticalAlign(): VerticalAlign;
|
|
552
|
+
set verticalAlign(value: VerticalAlign);
|
|
553
|
+
get textShadow(): string;
|
|
554
|
+
set textShadow(value: string);
|
|
555
|
+
get zIndex(): number;
|
|
556
|
+
set zIndex(value: number);
|
|
557
|
+
get float(): "none" | "left" | "right";
|
|
558
|
+
set float(value: 'none' | 'left' | 'right');
|
|
559
|
+
get clear(): "none" | "left" | "right" | "both";
|
|
560
|
+
set clear(value: 'none' | 'left' | 'right' | 'both');
|
|
561
|
+
set cornerShape(value: string);
|
|
562
|
+
get cornerShape(): string;
|
|
563
|
+
get cornerShapeTopLeft(): string;
|
|
564
|
+
set cornerShapeTopLeft(value: string);
|
|
565
|
+
get cornerShapeTopRight(): string;
|
|
566
|
+
set cornerShapeTopRight(value: string);
|
|
567
|
+
get cornerShapeBottomRight(): string;
|
|
568
|
+
set cornerShapeBottomRight(value: string);
|
|
569
|
+
get cornerShapeBottomLeft(): string;
|
|
570
|
+
set cornerShapeBottomLeft(value: string);
|
|
571
|
+
get objectPosition(): string;
|
|
572
|
+
set objectPosition(value: string);
|
|
573
|
+
set 'object-position'(value: string);
|
|
574
|
+
get 'object-position'(): string;
|
|
575
|
+
get borderLeftStyle(): string;
|
|
576
|
+
set borderLeftStyle(value: string);
|
|
577
|
+
get borderRightStyle(): string;
|
|
578
|
+
set borderRightStyle(value: string);
|
|
579
|
+
get borderTopStyle(): string;
|
|
580
|
+
set borderTopStyle(value: string);
|
|
581
|
+
get borderBottomStyle(): string;
|
|
582
|
+
set borderBottomStyle(value: string);
|
|
583
|
+
get borderStyle(): string;
|
|
584
|
+
set borderStyle(value: string);
|
|
585
|
+
set 'border-style'(value: string);
|
|
586
|
+
get 'border-style'(): string;
|
|
587
|
+
get borderImage(): string;
|
|
588
|
+
set borderImage(value: string);
|
|
589
|
+
set 'border-image'(value: string);
|
|
590
|
+
get 'border-image'(): string;
|
|
591
|
+
get fontStretch(): string;
|
|
592
|
+
set fontStretch(value: string);
|
|
593
|
+
set 'font-stretch'(value: string);
|
|
594
|
+
get 'font-stretch'(): string;
|
|
595
|
+
get fontFeatureSettings(): string;
|
|
596
|
+
set fontFeatureSettings(value: string);
|
|
597
|
+
set 'font-feature-settings'(value: string);
|
|
598
|
+
get 'font-feature-settings'(): string;
|
|
599
|
+
get wordSpacing(): string;
|
|
600
|
+
set wordSpacing(value: string | number);
|
|
601
|
+
set 'word-spacing'(value: string | number);
|
|
602
|
+
get 'word-spacing'(): string | number;
|
|
603
|
+
get hyphens(): 'none' | 'manual' | 'auto';
|
|
604
|
+
set hyphens(value: 'none' | 'manual' | 'auto');
|
|
605
|
+
get textIndent(): string;
|
|
606
|
+
set textIndent(value: string | number);
|
|
607
|
+
set 'text-indent'(value: string | number);
|
|
608
|
+
get 'text-indent'(): string | number;
|
|
609
|
+
get lineClamp(): number | 'none';
|
|
610
|
+
set lineClamp(value: number | string);
|
|
611
|
+
set 'line-clamp'(value: number | string);
|
|
612
|
+
get 'line-clamp'(): number | string;
|
|
613
|
+
set '-webkit-line-clamp'(value: number | string);
|
|
614
|
+
get '-webkit-line-clamp'(): number | string;
|
|
615
|
+
get transformOrigin(): string;
|
|
616
|
+
set transformOrigin(value: string);
|
|
617
|
+
/** transform-origin as fractions of a `width` x `height` box, or null when it isn't set. */
|
|
618
|
+
transformOriginFraction(width: number, height: number): {
|
|
619
|
+
x: number;
|
|
620
|
+
y: number;
|
|
621
|
+
} | null;
|
|
622
|
+
set 'transform-origin'(value: string);
|
|
623
|
+
get 'transform-origin'(): string;
|
|
624
|
+
get backdropFilter(): string;
|
|
625
|
+
set backdropFilter(value: string);
|
|
626
|
+
set 'backdrop-filter'(value: string);
|
|
627
|
+
get 'backdrop-filter'(): string;
|
|
628
|
+
get maskImage(): string;
|
|
629
|
+
set maskImage(value: string);
|
|
630
|
+
set 'mask-image'(value: string);
|
|
631
|
+
get 'mask-image'(): string;
|
|
632
|
+
get maskSize(): string;
|
|
633
|
+
set maskSize(value: string);
|
|
634
|
+
set 'mask-size'(value: string);
|
|
635
|
+
get 'mask-size'(): string;
|
|
636
|
+
get maskPosition(): string;
|
|
637
|
+
set maskPosition(value: string);
|
|
638
|
+
set 'mask-position'(value: string);
|
|
639
|
+
get 'mask-position'(): string;
|
|
640
|
+
get maskRepeat(): string;
|
|
641
|
+
set maskRepeat(value: string);
|
|
642
|
+
set 'mask-repeat'(value: string);
|
|
643
|
+
get 'mask-repeat'(): string;
|
|
644
|
+
get maskOrigin(): string;
|
|
645
|
+
set maskOrigin(value: string);
|
|
646
|
+
set 'mask-origin'(value: string);
|
|
647
|
+
get 'mask-origin'(): string;
|
|
648
|
+
get maskClip(): string;
|
|
649
|
+
set maskClip(value: string);
|
|
650
|
+
set 'mask-clip'(value: string);
|
|
651
|
+
get 'mask-clip'(): string;
|
|
652
|
+
get maskMode(): string;
|
|
653
|
+
set maskMode(value: string);
|
|
654
|
+
set 'mask-mode'(value: string);
|
|
655
|
+
get 'mask-mode'(): string;
|
|
656
|
+
get maskComposite(): string;
|
|
657
|
+
set maskComposite(value: string);
|
|
658
|
+
set 'mask-composite'(value: string);
|
|
659
|
+
get 'mask-composite'(): string;
|
|
660
|
+
get clipPath(): string;
|
|
661
|
+
set clipPath(value: string);
|
|
662
|
+
set 'clip-path'(value: string);
|
|
663
|
+
get 'clip-path'(): string;
|
|
664
|
+
get maskBorderSource(): string;
|
|
665
|
+
set maskBorderSource(value: string);
|
|
666
|
+
set 'mask-border-source'(value: string);
|
|
667
|
+
get 'mask-border-source'(): string;
|
|
668
|
+
get maskBorderSlice(): string;
|
|
669
|
+
set maskBorderSlice(value: string);
|
|
670
|
+
set 'mask-border-slice'(value: string);
|
|
671
|
+
get 'mask-border-slice'(): string;
|
|
672
|
+
get maskBorderWidth(): string;
|
|
673
|
+
set maskBorderWidth(value: string);
|
|
674
|
+
set 'mask-border-width'(value: string);
|
|
675
|
+
get 'mask-border-width'(): string;
|
|
676
|
+
get maskBorderOutset(): string;
|
|
677
|
+
set maskBorderOutset(value: string);
|
|
678
|
+
set 'mask-border-outset'(value: string);
|
|
679
|
+
get 'mask-border-outset'(): string;
|
|
680
|
+
get maskBorderRepeat(): string;
|
|
681
|
+
set maskBorderRepeat(value: string);
|
|
682
|
+
set 'mask-border-repeat'(value: string);
|
|
683
|
+
get 'mask-border-repeat'(): string;
|
|
684
|
+
get maskBorderMode(): string;
|
|
685
|
+
set maskBorderMode(value: string);
|
|
686
|
+
set 'mask-border-mode'(value: string);
|
|
687
|
+
get 'mask-border-mode'(): string;
|
|
688
|
+
get writingMode(): 'horizontal-tb' | 'vertical-rl' | 'vertical-lr';
|
|
689
|
+
set writingMode(value: 'horizontal-tb' | 'vertical-rl' | 'vertical-lr');
|
|
690
|
+
set 'writing-mode'(value: 'horizontal-tb' | 'vertical-rl' | 'vertical-lr');
|
|
691
|
+
get 'writing-mode'(): "horizontal-tb" | "vertical-rl" | "vertical-lr";
|
|
692
|
+
get unicodeBidi(): string;
|
|
693
|
+
set unicodeBidi(value: string);
|
|
694
|
+
set 'unicode-bidi'(value: string);
|
|
695
|
+
get 'unicode-bidi'(): string;
|
|
696
|
+
get caretColor(): string;
|
|
697
|
+
set caretColor(value: string | number);
|
|
698
|
+
set 'caret-color'(value: string | number);
|
|
699
|
+
get 'caret-color'(): string | number;
|
|
700
|
+
toJSON(): {
|
|
701
|
+
display: "none" | "flex" | "grid" | "block" | "inline" | "inline-block" | "inline-flex" | "inline-grid";
|
|
702
|
+
position: "fixed" | "static" | "relative" | "absolute" | "sticky";
|
|
703
|
+
flexDirection: "row" | "row-reverse" | "column" | "column-reverse";
|
|
704
|
+
flexWrap: "nowrap" | "wrap" | "wrap-reverse" | "balance" | "no-wrap" | "balance-reverse";
|
|
705
|
+
justifyContent: "center" | "stretch" | "normal" | "flex-start" | "flex-end" | "space-between" | "space-around" | "start" | "end" | "space-evenly";
|
|
706
|
+
alignItems: "center" | "stretch" | "normal" | "flex-start" | "flex-end" | "baseline" | "start" | "end";
|
|
707
|
+
alignContent: "center" | "stretch" | "normal" | "flex-start" | "flex-end" | "space-between" | "space-around" | "start" | "end" | "space-evenly";
|
|
708
|
+
alignSelf: "center" | "stretch" | "normal" | "flex-start" | "flex-end" | "baseline" | "start" | "end";
|
|
709
|
+
flexGrow: number;
|
|
710
|
+
minWidth: LengthAuto;
|
|
711
|
+
minHeight: LengthAuto;
|
|
712
|
+
maxWidth: LengthAuto;
|
|
713
|
+
maxHeight: LengthAuto;
|
|
714
|
+
width: DimensionLength;
|
|
715
|
+
height: DimensionLength;
|
|
716
|
+
inset: {
|
|
717
|
+
left: LengthAuto;
|
|
718
|
+
right: LengthAuto;
|
|
719
|
+
top: LengthAuto;
|
|
720
|
+
bottom: LengthAuto;
|
|
721
|
+
};
|
|
722
|
+
margin: {
|
|
723
|
+
left: LengthAuto;
|
|
724
|
+
right: LengthAuto;
|
|
725
|
+
top: LengthAuto;
|
|
726
|
+
bottom: LengthAuto;
|
|
727
|
+
};
|
|
728
|
+
padding: {
|
|
729
|
+
left: Length;
|
|
730
|
+
right: Length;
|
|
731
|
+
top: Length;
|
|
732
|
+
bottom: Length;
|
|
733
|
+
};
|
|
734
|
+
aspectRatio: number;
|
|
735
|
+
flexBasis: DimensionLength;
|
|
736
|
+
overflow: OverFlow | "auto auto" | "auto hidden" | "auto scroll" | "auto clip" | "auto visible" | "hidden auto" | "hidden hidden" | "hidden scroll" | "hidden clip" | "hidden visible" | "scroll auto" | "scroll hidden" | "scroll scroll" | "scroll clip" | "scroll visible" | "clip auto" | "clip hidden" | "clip scroll" | "clip clip" | "clip visible" | "visible auto" | "visible hidden" | "visible scroll" | "visible clip" | "visible visible";
|
|
737
|
+
flexShrink: number;
|
|
738
|
+
scrollBarWidth: CoreTypes.LengthType;
|
|
739
|
+
gap: string;
|
|
740
|
+
gridArea: string;
|
|
741
|
+
gridAutoFlow: GridAutoFlow;
|
|
742
|
+
gridAutoColumns: string;
|
|
743
|
+
gridAutoRows: string;
|
|
744
|
+
gridColumn: string;
|
|
745
|
+
gridRow: string;
|
|
746
|
+
gridTemplateRows: string;
|
|
747
|
+
gridTemplateColumns: string;
|
|
748
|
+
filter: string;
|
|
749
|
+
zIndex: number;
|
|
750
|
+
backgroundColor: string | number | {
|
|
751
|
+
argb?: number;
|
|
752
|
+
};
|
|
753
|
+
objectPosition: string;
|
|
754
|
+
borderStyle: string;
|
|
755
|
+
writingMode: "horizontal-tb" | "vertical-rl" | "vertical-lr";
|
|
756
|
+
unicodeBidi: string;
|
|
757
|
+
hyphens: "none" | "auto" | "manual";
|
|
758
|
+
caretColor: string;
|
|
759
|
+
wordSpacing: string;
|
|
760
|
+
fontStretch: string;
|
|
761
|
+
textIndent: string;
|
|
762
|
+
lineClamp: number | "none";
|
|
763
|
+
transformOrigin: string;
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
/** `grid-auto-flow` as its buffer value: `row`/`column` and `dense`, in either order. */
|
|
767
|
+
export declare function gridAutoFlowFromString(value: unknown): number | undefined;
|
|
768
|
+
export {};
|