@triniwiz/nativescript-masonkit 1.0.0-beta.110 → 1.0.0-beta.112
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 +12 -0
- package/common.js +72 -1
- package/common.js.map +1 -1
- package/css-colors.d.ts +17 -0
- package/css-colors.js +55 -0
- package/css-colors.js.map +1 -0
- package/css-keyframes.d.ts +41 -0
- package/css-keyframes.js +438 -0
- package/css-keyframes.js.map +1 -0
- package/css-shorthands.d.ts +13 -0
- package/css-shorthands.js +199 -0
- package/css-shorthands.js.map +1 -1
- package/index.d.ts +45 -0
- package/input/common.d.ts +18 -1
- package/input/common.js +46 -2
- package/input/common.js.map +1 -1
- package/input/index.android.d.ts +4 -1
- package/input/index.android.js +21 -1
- package/input/index.android.js.map +1 -1
- package/input/index.ios.d.ts +4 -1
- package/input/index.ios.js +19 -1
- package/input/index.ios.js.map +1 -1
- package/input/index.windows.d.ts +7 -1
- package/input/index.windows.js +43 -1
- package/input/index.windows.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/Info.plist +8 -8
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +60 -1
- 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 +27634 -24898
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +325 -221
- 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 +325 -221
- 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 +9308 -8874
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +120 -2
- 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 +27634 -24898
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +325 -221
- 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 +325 -221
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +27634 -24898
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +325 -221
- 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 +325 -221
- 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 +9302 -8868
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +8878 -8470
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Headers/Mason-Swift.h +60 -1
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-xros.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.abi.json +27634 -24891
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.private.swiftinterface +325 -221
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.swiftinterface +325 -221
- package/platforms/ios/Mason.xcframework/xros-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8799 -8361
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Headers/Mason-Swift.h +60 -1
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-xros-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.abi.json +27634 -24891
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.private.swiftinterface +325 -221
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.swiftinterface +325 -221
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/_CodeSignature/CodeResources +14 -14
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/xros-arm64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8798 -8360
- 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/properties.d.ts +17 -0
- package/properties.js +294 -3
- package/properties.js.map +1 -1
- package/scroll/index.ios.d.ts +1 -1
- package/scroll/index.ios.js +7 -2
- package/scroll/index.ios.js.map +1 -1
- package/style.d.ts +75 -4
- package/style.js +413 -8
- package/style.js.map +1 -1
- package/typings/android.d.ts +43 -0
- package/typings/objc!Mason.d.ts +41 -0
- package/typings/windows.d.ts +6 -0
- package/view/index.ios.js +7 -2
- package/view/index.ios.js.map +1 -1
- package/windows-mask.d.ts +70 -0
- package/windows-mask.js +492 -0
- package/windows-mask.js.map +1 -0
package/typings/android.d.ts
CHANGED
|
@@ -2208,8 +2208,21 @@ declare module org {
|
|
|
2208
2208
|
public getDateInput$masonkit_release(): org.nativescript.mason.masonkit.input.DateInput;
|
|
2209
2209
|
public setAccept(value: string): void;
|
|
2210
2210
|
public appendView(param0: androidNative.Array<globalAndroid.view.View>): void;
|
|
2211
|
+
public getAppearance(): org.nativescript.mason.masonkit.Input.Appearance;
|
|
2212
|
+
public setAppearance(value: org.nativescript.mason.masonkit.Input.Appearance): void;
|
|
2213
|
+
public getOnCheckedChange(): any;
|
|
2214
|
+
public setOnCheckedChange(value: any): void;
|
|
2211
2215
|
}
|
|
2212
2216
|
export module Input {
|
|
2217
|
+
export class Appearance {
|
|
2218
|
+
public static class: java.lang.Class<org.nativescript.mason.masonkit.Input.Appearance>;
|
|
2219
|
+
public static Auto: org.nativescript.mason.masonkit.Input.Appearance;
|
|
2220
|
+
public static None: org.nativescript.mason.masonkit.Input.Appearance;
|
|
2221
|
+
public static fromCss(value: string): org.nativescript.mason.masonkit.Input.Appearance;
|
|
2222
|
+
public static getEntries(): any;
|
|
2223
|
+
public static values(): androidNative.Array<org.nativescript.mason.masonkit.Input.Appearance>;
|
|
2224
|
+
public static valueOf(value: string): org.nativescript.mason.masonkit.Input.Appearance;
|
|
2225
|
+
}
|
|
2213
2226
|
export class Type {
|
|
2214
2227
|
public static class: java.lang.Class<org.nativescript.mason.masonkit.Input.Type>;
|
|
2215
2228
|
public static Text: org.nativescript.mason.masonkit.Input.Type;
|
|
@@ -3822,6 +3835,36 @@ declare module org {
|
|
|
3822
3835
|
public setFontFeatureSettings(this_: globalAndroid.view.View, value: string): void;
|
|
3823
3836
|
public getBackdropFilter(this_: globalAndroid.view.View): string;
|
|
3824
3837
|
public setBackdropFilter(this_: globalAndroid.view.View, value: string): void;
|
|
3838
|
+
public getMaskImage(this_: globalAndroid.view.View): string;
|
|
3839
|
+
public setMaskImage(this_: globalAndroid.view.View, value: string): void;
|
|
3840
|
+
public getMaskSize(this_: globalAndroid.view.View): string;
|
|
3841
|
+
public setMaskSize(this_: globalAndroid.view.View, value: string): void;
|
|
3842
|
+
public getMaskPosition(this_: globalAndroid.view.View): string;
|
|
3843
|
+
public setMaskPosition(this_: globalAndroid.view.View, value: string): void;
|
|
3844
|
+
public getMaskRepeat(this_: globalAndroid.view.View): string;
|
|
3845
|
+
public setMaskRepeat(this_: globalAndroid.view.View, value: string): void;
|
|
3846
|
+
public getMaskOrigin(this_: globalAndroid.view.View): string;
|
|
3847
|
+
public setMaskOrigin(this_: globalAndroid.view.View, value: string): void;
|
|
3848
|
+
public getMaskClip(this_: globalAndroid.view.View): string;
|
|
3849
|
+
public setMaskClip(this_: globalAndroid.view.View, value: string): void;
|
|
3850
|
+
public getMaskMode(this_: globalAndroid.view.View): string;
|
|
3851
|
+
public setMaskMode(this_: globalAndroid.view.View, value: string): void;
|
|
3852
|
+
public getMaskComposite(this_: globalAndroid.view.View): string;
|
|
3853
|
+
public setMaskComposite(this_: globalAndroid.view.View, value: string): void;
|
|
3854
|
+
public getClipPath(this_: globalAndroid.view.View): string;
|
|
3855
|
+
public setClipPath(this_: globalAndroid.view.View, value: string): void;
|
|
3856
|
+
public getMaskBorderSource(this_: globalAndroid.view.View): string;
|
|
3857
|
+
public setMaskBorderSource(this_: globalAndroid.view.View, value: string): void;
|
|
3858
|
+
public getMaskBorderSlice(this_: globalAndroid.view.View): string;
|
|
3859
|
+
public setMaskBorderSlice(this_: globalAndroid.view.View, value: string): void;
|
|
3860
|
+
public getMaskBorderWidth(this_: globalAndroid.view.View): string;
|
|
3861
|
+
public setMaskBorderWidth(this_: globalAndroid.view.View, value: string): void;
|
|
3862
|
+
public getMaskBorderOutset(this_: globalAndroid.view.View): string;
|
|
3863
|
+
public setMaskBorderOutset(this_: globalAndroid.view.View, value: string): void;
|
|
3864
|
+
public getMaskBorderRepeat(this_: globalAndroid.view.View): string;
|
|
3865
|
+
public setMaskBorderRepeat(this_: globalAndroid.view.View, value: string): void;
|
|
3866
|
+
public getMaskBorderMode(this_: globalAndroid.view.View): string;
|
|
3867
|
+
public setMaskBorderMode(this_: globalAndroid.view.View, value: string): void;
|
|
3825
3868
|
}
|
|
3826
3869
|
}
|
|
3827
3870
|
}
|
package/typings/objc!Mason.d.ts
CHANGED
|
@@ -819,12 +819,16 @@ declare class MasonInput extends UIView {
|
|
|
819
819
|
|
|
820
820
|
checked: boolean;
|
|
821
821
|
|
|
822
|
+
cssAppearance: MasonInputAppearance;
|
|
823
|
+
|
|
822
824
|
readonly mason: NSCMason;
|
|
823
825
|
|
|
824
826
|
multiple: boolean;
|
|
825
827
|
|
|
826
828
|
readonly node: MasonNode;
|
|
827
829
|
|
|
830
|
+
onCheckedChange: (p1: boolean) => void;
|
|
831
|
+
|
|
828
832
|
placeholderColor: UIColor;
|
|
829
833
|
|
|
830
834
|
placeholder: string;
|
|
@@ -859,6 +863,13 @@ declare class MasonInputEvent extends MasonEvent {
|
|
|
859
863
|
initWithTypeDataInputTypeOptions(type: string, inputData: string, masonInputType: string, options: MasonEventOptions): this;
|
|
860
864
|
}
|
|
861
865
|
|
|
866
|
+
declare const enum MasonInputAppearance {
|
|
867
|
+
|
|
868
|
+
Auto = 0,
|
|
869
|
+
|
|
870
|
+
None = 1
|
|
871
|
+
}
|
|
872
|
+
|
|
862
873
|
declare const enum MasonInputType {
|
|
863
874
|
|
|
864
875
|
Text = 0,
|
|
@@ -2084,6 +2095,36 @@ declare class MasonStyle extends NSObject {
|
|
|
2084
2095
|
|
|
2085
2096
|
backdropFilter: string;
|
|
2086
2097
|
|
|
2098
|
+
maskImage: string;
|
|
2099
|
+
|
|
2100
|
+
maskSize: string;
|
|
2101
|
+
|
|
2102
|
+
maskPosition: string;
|
|
2103
|
+
|
|
2104
|
+
maskRepeat: string;
|
|
2105
|
+
|
|
2106
|
+
maskOrigin: string;
|
|
2107
|
+
|
|
2108
|
+
maskClip: string;
|
|
2109
|
+
|
|
2110
|
+
maskMode: string;
|
|
2111
|
+
|
|
2112
|
+
maskComposite: string;
|
|
2113
|
+
|
|
2114
|
+
clipPath: string;
|
|
2115
|
+
|
|
2116
|
+
maskBorderSource: string;
|
|
2117
|
+
|
|
2118
|
+
maskBorderSlice: string;
|
|
2119
|
+
|
|
2120
|
+
maskBorderWidth: string;
|
|
2121
|
+
|
|
2122
|
+
maskBorderOutset: string;
|
|
2123
|
+
|
|
2124
|
+
maskBorderRepeat: string;
|
|
2125
|
+
|
|
2126
|
+
maskBorderMode: string;
|
|
2127
|
+
|
|
2087
2128
|
background: string;
|
|
2088
2129
|
|
|
2089
2130
|
backgroundClip: string;
|
package/typings/windows.d.ts
CHANGED
|
@@ -224,6 +224,11 @@ declare namespace NativeScript.Mason {
|
|
|
224
224
|
static SetBoxShadow(element: any, shadows: string): void;
|
|
225
225
|
static SetFilter(element: any, filter: string): void;
|
|
226
226
|
static SetBackdropFilter(element: any, filter: string): void;
|
|
227
|
+
static SetMask(element: any, spec: string): void;
|
|
228
|
+
static SetBorderImage(element: any, spec: string): void;
|
|
229
|
+
static SetBackgroundLayers(element: any, spec: string): void;
|
|
230
|
+
static SetTransformOrigin(element: any, x: number, y: number): void;
|
|
231
|
+
static SetTransforms(element: any, scaleX: number, scaleY: number, angle: number, translateX: number, translateY: number, originX: number, originY: number): void;
|
|
227
232
|
static ClearShadow(element: any): void;
|
|
228
233
|
}
|
|
229
234
|
|
|
@@ -363,6 +368,7 @@ declare namespace NativeScript.Mason {
|
|
|
363
368
|
Type: number;
|
|
364
369
|
Value: string;
|
|
365
370
|
Checked: boolean;
|
|
371
|
+
AppearanceNone: boolean;
|
|
366
372
|
Placeholder: string;
|
|
367
373
|
Multiple: boolean;
|
|
368
374
|
Accept: string;
|
package/view/index.ios.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSType, Utils } from '@nativescript/core';
|
|
2
|
-
import { ViewBase } from '../common';
|
|
2
|
+
import { ViewBase, setRootNativeViewFrame } from '../common';
|
|
3
3
|
import { Style } from '../style';
|
|
4
4
|
import { Tree } from '../tree';
|
|
5
5
|
import { isMasonView_, isPlaceholder_, native_, style_ } from '../symbols';
|
|
@@ -103,7 +103,12 @@ let View = class View extends ViewBase {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
_setNativeViewFrame(nativeView, frame) {
|
|
106
|
-
|
|
106
|
+
if (this.parent?.[isMasonView_]) {
|
|
107
|
+
nativeView.frame = frame;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
setRootNativeViewFrame(this, nativeView, frame);
|
|
111
|
+
}
|
|
107
112
|
}
|
|
108
113
|
// @ts-ignore
|
|
109
114
|
_addViewToNativeVisualTree(child, atIndex = -1) {
|
package/view/index.ios.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/view/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../packages/nativescript-masonkit/view/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGpE,IAAM,IAAI,GAAV,MAAM,IAAK,SA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AC,CAAC;YACnC,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED,aAAa;IACN,+BAA+B,CAAC,IAAgB;QACpD,IAAY,CAAC,uBAAuB,EAAE,CAAC;QACxC,4FAA4F;QAC5F,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,4CAA4C;QAC5C,6FAA6F;QAC7F,MAAM,UAAU,GAAG,IAAI,CAAC,KAAY,CAAC;QACrC,IAAI,UAAU,IAAI,IAAI,CAAC,mBAAmB,IAAI,OAAO,UAAU,CAAC,UAAU,KAAK,UAAU,EAAE,CAAC;YAC1F,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;YAC/C,IAAY,CAAC,+BAA+B,EAAE,CAAC;QAClD,CAAC;QACD,aAAa;QACb,KAAK,CAAC,+BAA+B,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;CACF,CAAA;AA/JY,IAAI;IADhB,OAAO,CAAC,MAAM,CAAC;;GACH,IAAI,CA+JhB"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/** What the encoder needs from the element's style. */
|
|
2
|
+
export interface WindowsMaskContext {
|
|
3
|
+
/** A CSS length (not a percentage) in DIPs, or undefined. */
|
|
4
|
+
length(token: string): number | undefined;
|
|
5
|
+
/** A CSS colour as 0xAARRGGBB, or null. */
|
|
6
|
+
color(value: string): number | null;
|
|
7
|
+
linear(value: string): {
|
|
8
|
+
angle: number;
|
|
9
|
+
offsets: number[];
|
|
10
|
+
colors: number[];
|
|
11
|
+
} | null;
|
|
12
|
+
radial(value: string): {
|
|
13
|
+
cx: number;
|
|
14
|
+
cy: number;
|
|
15
|
+
rx: number;
|
|
16
|
+
ry: number;
|
|
17
|
+
offsets: number[];
|
|
18
|
+
colors: number[];
|
|
19
|
+
} | null;
|
|
20
|
+
/** A url() target as a path or data URI the native side can load. */
|
|
21
|
+
source(url: string): string;
|
|
22
|
+
}
|
|
23
|
+
/** px plus a percentage of whatever the value resolves against. */
|
|
24
|
+
type Len = [px: number, pct: number];
|
|
25
|
+
type WindowsImage = {
|
|
26
|
+
t: 'img';
|
|
27
|
+
src: string;
|
|
28
|
+
} | {
|
|
29
|
+
t: 'lin';
|
|
30
|
+
a: number;
|
|
31
|
+
s: number[];
|
|
32
|
+
} | {
|
|
33
|
+
t: 'rad';
|
|
34
|
+
c: [number, number];
|
|
35
|
+
r: [number, number];
|
|
36
|
+
s: number[];
|
|
37
|
+
} | {
|
|
38
|
+
t: 'con';
|
|
39
|
+
a: number;
|
|
40
|
+
c: [number, number];
|
|
41
|
+
s: number[];
|
|
42
|
+
};
|
|
43
|
+
/** The text inside url(...), unquoted. */
|
|
44
|
+
export declare function urlOf(token: string): string | null;
|
|
45
|
+
/** One mask/border image, or null for `none` and anything that can't be drawn. */
|
|
46
|
+
export declare function encodeImage(token: string, ctx: WindowsMaskContext): WindowsImage | null;
|
|
47
|
+
/** A background-position-style value as [x, y], each px + % of (area − tile). */
|
|
48
|
+
export declare function encodePosition(value: string, ctx: WindowsMaskContext): [Len, Len];
|
|
49
|
+
/** clip-path as the native shape spec, or null for none and what can't be drawn. */
|
|
50
|
+
export declare function encodeClipPath(value: string, ctx: WindowsMaskContext): Record<string, unknown> | null;
|
|
51
|
+
/** The 9-slice part of mask-border or border-image, or null when it has no image. */
|
|
52
|
+
export declare function encodeNineSlice(parts: {
|
|
53
|
+
source: string;
|
|
54
|
+
slice: string;
|
|
55
|
+
width: string;
|
|
56
|
+
outset: string;
|
|
57
|
+
repeat: string;
|
|
58
|
+
mode?: string;
|
|
59
|
+
}, ctx: WindowsMaskContext, defaults: {
|
|
60
|
+
width: 'auto' | 'border';
|
|
61
|
+
}): Record<string, unknown> | null;
|
|
62
|
+
/** mask-*, clip-path and mask-border longhands as the JSON Css.SetMask takes, or '' for none. */
|
|
63
|
+
export declare function encodeWindowsMask(css: ReadonlyMap<string, string>, ctx: WindowsMaskContext): string;
|
|
64
|
+
/** One url() background layer as the JSON Css.SetBackgroundLayers takes, or '' if it can't be drawn. */
|
|
65
|
+
export declare function encodeWindowsBackground(url: string, size: string, position: string, repeat: string, ctx: WindowsMaskContext): string;
|
|
66
|
+
/** The border-image shorthand as the JSON Css.SetBorderImage takes, or '' for none. */
|
|
67
|
+
export declare function encodeWindowsBorderImage(value: string, ctx: WindowsMaskContext): string;
|
|
68
|
+
/** Longhands that feed Css.SetMask. */
|
|
69
|
+
export declare const WINDOWS_MASK_PROPERTIES: Set<string>;
|
|
70
|
+
export {};
|