@web-atoms/core 2.6.14 → 2.6.17
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/dist/App.d.ts.map +1 -1
- package/dist/App.js +28 -1
- package/dist/App.js.map +1 -1
- package/dist/style/StyleRule.d.ts +0 -484
- package/dist/style/StyleRule.d.ts.map +1 -1
- package/dist/style/StyleRule.js +1 -2660
- package/dist/style/StyleRule.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/controls/AtomControl.d.ts +0 -13
- package/dist/web/controls/AtomControl.d.ts.map +1 -1
- package/dist/web/controls/AtomControl.js +2 -47
- package/dist/web/controls/AtomControl.js.map +1 -1
- package/dist/web/core/HtmlNode.d.ts.map +1 -1
- package/dist/web/core/HtmlNode.js +4 -9
- package/dist/web/core/HtmlNode.js.map +1 -1
- package/dist-esm/App.d.ts.map +1 -1
- package/dist-esm/App.js +27 -0
- package/dist-esm/App.js.map +1 -1
- package/dist-esm/style/StyleRule.d.ts +0 -457
- package/dist-esm/style/StyleRule.d.ts.map +1 -1
- package/dist-esm/style/StyleRule.js +1 -2611
- package/dist-esm/style/StyleRule.js.map +1 -1
- package/dist-esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist-esm/web/controls/AtomControl.d.ts +0 -9
- package/dist-esm/web/controls/AtomControl.d.ts.map +1 -1
- package/dist-esm/web/controls/AtomControl.js +1 -46
- package/dist-esm/web/controls/AtomControl.js.map +1 -1
- package/dist-esm/web/core/HtmlNode.d.ts.map +1 -1
- package/dist-esm/web/core/HtmlNode.js +2 -6
- package/dist-esm/web/core/HtmlNode.js.map +1 -1
- package/package.json +1 -1
- package/src/App.ts +31 -0
- package/src/style/StyleRule.ts +0 -3130
- package/src/web/controls/AtomControl.ts +0 -56
- package/src/web/core/HtmlNode.tsx +3 -7
- package/tsconfig.esm.json +1 -1
- package/tsconfig.json +1 -1
- package/dist/style/styled.d.ts +0 -54
- package/dist/style/styled.d.ts.map +0 -1
- package/dist/style/styled.js +0 -213
- package/dist/style/styled.js.map +0 -1
- package/dist/unit/AtomWebTest.d.ts +0 -11
- package/dist/unit/AtomWebTest.d.ts.map +0 -1
- package/dist/unit/AtomWebTest.js +0 -46
- package/dist/unit/AtomWebTest.js.map +0 -1
- package/dist/web/WebApp.d.ts +0 -28
- package/dist/web/WebApp.d.ts.map +0 -1
- package/dist/web/WebApp.js +0 -169
- package/dist/web/WebApp.js.map +0 -1
- package/dist/web/controls/AtomAlertWindow.d.ts +0 -16
- package/dist/web/controls/AtomAlertWindow.d.ts.map +0 -1
- package/dist/web/controls/AtomAlertWindow.js +0 -60
- package/dist/web/controls/AtomAlertWindow.js.map +0 -1
- package/dist/web/controls/AtomContentControl.d.ts +0 -13
- package/dist/web/controls/AtomContentControl.d.ts.map +0 -1
- package/dist/web/controls/AtomContentControl.js +0 -61
- package/dist/web/controls/AtomContentControl.js.map +0 -1
- package/dist/web/controls/AtomFrame.d.ts +0 -46
- package/dist/web/controls/AtomFrame.d.ts.map +0 -1
- package/dist/web/controls/AtomFrame.js +0 -232
- package/dist/web/controls/AtomFrame.js.map +0 -1
- package/dist/web/controls/AtomListBox.d.ts +0 -9
- package/dist/web/controls/AtomListBox.d.ts.map +0 -1
- package/dist/web/controls/AtomListBox.js +0 -63
- package/dist/web/controls/AtomListBox.js.map +0 -1
- package/dist/web/controls/AtomNotification.d.ts +0 -9
- package/dist/web/controls/AtomNotification.d.ts.map +0 -1
- package/dist/web/controls/AtomNotification.js +0 -62
- package/dist/web/controls/AtomNotification.js.map +0 -1
- package/dist/web/controls/AtomPageLink.d.ts +0 -41
- package/dist/web/controls/AtomPageLink.d.ts.map +0 -1
- package/dist/web/controls/AtomPageLink.js +0 -113
- package/dist/web/controls/AtomPageLink.js.map +0 -1
- package/dist/web/controls/AtomTabbedPage.d.ts +0 -48
- package/dist/web/controls/AtomTabbedPage.d.ts.map +0 -1
- package/dist/web/controls/AtomTabbedPage.js +0 -266
- package/dist/web/controls/AtomTabbedPage.js.map +0 -1
- package/dist/web/controls/AtomToggleButtonBar.d.ts +0 -7
- package/dist/web/controls/AtomToggleButtonBar.d.ts.map +0 -1
- package/dist/web/controls/AtomToggleButtonBar.js +0 -46
- package/dist/web/controls/AtomToggleButtonBar.js.map +0 -1
- package/dist/web/controls/AtomViewPager.d.ts +0 -7
- package/dist/web/controls/AtomViewPager.d.ts.map +0 -1
- package/dist/web/controls/AtomViewPager.js +0 -68
- package/dist/web/controls/AtomViewPager.js.map +0 -1
- package/dist/web/controls/AtomWindow.d.ts +0 -36
- package/dist/web/controls/AtomWindow.d.ts.map +0 -1
- package/dist/web/controls/AtomWindow.js +0 -248
- package/dist/web/controls/AtomWindow.js.map +0 -1
- package/dist/web/samples/MovieService.d.ts +0 -5
- package/dist/web/samples/MovieService.d.ts.map +0 -1
- package/dist/web/samples/MovieService.js +0 -29
- package/dist/web/samples/MovieService.js.map +0 -1
- package/dist/web/samples/demo/app.d.ts +0 -5
- package/dist/web/samples/demo/app.d.ts.map +0 -1
- package/dist/web/samples/demo/app.js +0 -26
- package/dist/web/samples/demo/app.js.map +0 -1
- package/dist/web/samples/demo/views/MovieList.d.ts +0 -5
- package/dist/web/samples/demo/views/MovieList.d.ts.map +0 -1
- package/dist/web/samples/demo/views/MovieList.js +0 -71
- package/dist/web/samples/demo/views/MovieList.js.map +0 -1
- package/dist/web/samples/demo/views/MovieListViewModel.d.ts +0 -18
- package/dist/web/samples/demo/views/MovieListViewModel.d.ts.map +0 -1
- package/dist/web/samples/demo/views/MovieListViewModel.js +0 -73
- package/dist/web/samples/demo/views/MovieListViewModel.js.map +0 -1
- package/dist/web/samples/tabs/app.d.ts +0 -5
- package/dist/web/samples/tabs/app.d.ts.map +0 -1
- package/dist/web/samples/tabs/app.js +0 -35
- package/dist/web/samples/tabs/app.js.map +0 -1
- package/dist/web/samples/tabs/views/List.d.ts +0 -4
- package/dist/web/samples/tabs/views/List.d.ts.map +0 -1
- package/dist/web/samples/tabs/views/List.js +0 -14
- package/dist/web/samples/tabs/views/List.js.map +0 -1
- package/dist/web/samples/tabs/views/ListDataUrl.d.ts +0 -4
- package/dist/web/samples/tabs/views/ListDataUrl.d.ts.map +0 -1
- package/dist/web/samples/tabs/views/ListDataUrl.js +0 -15
- package/dist/web/samples/tabs/views/ListDataUrl.js.map +0 -1
- package/dist/web/samples/tabs/views/Page1.d.ts +0 -5
- package/dist/web/samples/tabs/views/Page1.d.ts.map +0 -1
- package/dist/web/samples/tabs/views/Page1.js +0 -63
- package/dist/web/samples/tabs/views/Page1.js.map +0 -1
- package/dist/web/samples/tabs/views/TabHost.d.ts +0 -5
- package/dist/web/samples/tabs/views/TabHost.d.ts.map +0 -1
- package/dist/web/samples/tabs/views/TabHost.js +0 -52
- package/dist/web/samples/tabs/views/TabHost.js.map +0 -1
- package/dist/web/samples/window/WindowSample.d.ts +0 -5
- package/dist/web/samples/window/WindowSample.d.ts.map +0 -1
- package/dist/web/samples/window/WindowSample.js +0 -30
- package/dist/web/samples/window/WindowSample.js.map +0 -1
- package/dist/web/services/WebBusyIndicatorService.d.ts +0 -9
- package/dist/web/services/WebBusyIndicatorService.d.ts.map +0 -1
- package/dist/web/services/WebBusyIndicatorService.js +0 -82
- package/dist/web/services/WebBusyIndicatorService.js.map +0 -1
- package/dist/web/services/WindowService.d.ts +0 -63
- package/dist/web/services/WindowService.d.ts.map +0 -1
- package/dist/web/services/WindowService.js +0 -341
- package/dist/web/services/WindowService.js.map +0 -1
- package/dist/web/styles/AtomListBoxStyle.d.ts +0 -11
- package/dist/web/styles/AtomListBoxStyle.d.ts.map +0 -1
- package/dist/web/styles/AtomListBoxStyle.js +0 -43
- package/dist/web/styles/AtomListBoxStyle.js.map +0 -1
- package/dist/web/styles/AtomTabbedPageStyle.d.ts +0 -12
- package/dist/web/styles/AtomTabbedPageStyle.d.ts.map +0 -1
- package/dist/web/styles/AtomTabbedPageStyle.js +0 -128
- package/dist/web/styles/AtomTabbedPageStyle.js.map +0 -1
- package/dist/web/styles/AtomTheme.d.ts +0 -17
- package/dist/web/styles/AtomTheme.d.ts.map +0 -1
- package/dist/web/styles/AtomTheme.js +0 -53
- package/dist/web/styles/AtomTheme.js.map +0 -1
- package/dist/web/styles/AtomToggleButtonBarStyle.d.ts +0 -9
- package/dist/web/styles/AtomToggleButtonBarStyle.d.ts.map +0 -1
- package/dist/web/styles/AtomToggleButtonBarStyle.js +0 -77
- package/dist/web/styles/AtomToggleButtonBarStyle.js.map +0 -1
- package/dist/web/styles/CSS.d.ts +0 -11
- package/dist/web/styles/CSS.d.ts.map +0 -1
- package/dist/web/styles/CSS.js +0 -76
- package/dist/web/styles/CSS.js.map +0 -1
- package/dist-esm/style/styled.d.ts +0 -36
- package/dist-esm/style/styled.d.ts.map +0 -1
- package/dist-esm/style/styled.js +0 -198
- package/dist-esm/style/styled.js.map +0 -1
- package/dist-esm/unit/AtomWebTest.d.ts +0 -11
- package/dist-esm/unit/AtomWebTest.d.ts.map +0 -1
- package/dist-esm/unit/AtomWebTest.js +0 -24
- package/dist-esm/unit/AtomWebTest.js.map +0 -1
- package/dist-esm/web/WebApp.d.ts +0 -25
- package/dist-esm/web/WebApp.d.ts.map +0 -1
- package/dist-esm/web/WebApp.js +0 -140
- package/dist-esm/web/WebApp.js.map +0 -1
- package/dist-esm/web/controls/AtomAlertWindow.d.ts +0 -16
- package/dist-esm/web/controls/AtomAlertWindow.d.ts.map +0 -1
- package/dist-esm/web/controls/AtomAlertWindow.js +0 -41
- package/dist-esm/web/controls/AtomAlertWindow.js.map +0 -1
- package/dist-esm/web/controls/AtomContentControl.d.ts +0 -13
- package/dist-esm/web/controls/AtomContentControl.d.ts.map +0 -1
- package/dist-esm/web/controls/AtomContentControl.js +0 -44
- package/dist-esm/web/controls/AtomContentControl.js.map +0 -1
- package/dist-esm/web/controls/AtomFrame.d.ts +0 -36
- package/dist-esm/web/controls/AtomFrame.d.ts.map +0 -1
- package/dist-esm/web/controls/AtomFrame.js +0 -205
- package/dist-esm/web/controls/AtomFrame.js.map +0 -1
- package/dist-esm/web/controls/AtomListBox.d.ts +0 -9
- package/dist-esm/web/controls/AtomListBox.d.ts.map +0 -1
- package/dist-esm/web/controls/AtomListBox.js +0 -56
- package/dist-esm/web/controls/AtomListBox.js.map +0 -1
- package/dist-esm/web/controls/AtomNotification.d.ts +0 -9
- package/dist-esm/web/controls/AtomNotification.d.ts.map +0 -1
- package/dist-esm/web/controls/AtomNotification.js +0 -43
- package/dist-esm/web/controls/AtomNotification.js.map +0 -1
- package/dist-esm/web/controls/AtomPageLink.d.ts +0 -22
- package/dist-esm/web/controls/AtomPageLink.d.ts.map +0 -1
- package/dist-esm/web/controls/AtomPageLink.js +0 -88
- package/dist-esm/web/controls/AtomPageLink.js.map +0 -1
- package/dist-esm/web/controls/AtomTabbedPage.d.ts +0 -48
- package/dist-esm/web/controls/AtomTabbedPage.d.ts.map +0 -1
- package/dist-esm/web/controls/AtomTabbedPage.js +0 -227
- package/dist-esm/web/controls/AtomTabbedPage.js.map +0 -1
- package/dist-esm/web/controls/AtomToggleButtonBar.d.ts +0 -7
- package/dist-esm/web/controls/AtomToggleButtonBar.d.ts.map +0 -1
- package/dist-esm/web/controls/AtomToggleButtonBar.js +0 -32
- package/dist-esm/web/controls/AtomToggleButtonBar.js.map +0 -1
- package/dist-esm/web/controls/AtomViewPager.d.ts +0 -7
- package/dist-esm/web/controls/AtomViewPager.d.ts.map +0 -1
- package/dist-esm/web/controls/AtomViewPager.js +0 -49
- package/dist-esm/web/controls/AtomViewPager.js.map +0 -1
- package/dist-esm/web/controls/AtomWindow.d.ts +0 -36
- package/dist-esm/web/controls/AtomWindow.d.ts.map +0 -1
- package/dist-esm/web/controls/AtomWindow.js +0 -191
- package/dist-esm/web/controls/AtomWindow.js.map +0 -1
- package/dist-esm/web/samples/MovieService.d.ts +0 -5
- package/dist-esm/web/samples/MovieService.d.ts.map +0 -1
- package/dist-esm/web/samples/MovieService.js +0 -19
- package/dist-esm/web/samples/MovieService.js.map +0 -1
- package/dist-esm/web/samples/demo/app.d.ts +0 -5
- package/dist-esm/web/samples/demo/app.d.ts.map +0 -1
- package/dist-esm/web/samples/demo/app.js +0 -12
- package/dist-esm/web/samples/demo/app.js.map +0 -1
- package/dist-esm/web/samples/demo/views/MovieList.d.ts +0 -5
- package/dist-esm/web/samples/demo/views/MovieList.d.ts.map +0 -1
- package/dist-esm/web/samples/demo/views/MovieList.js +0 -56
- package/dist-esm/web/samples/demo/views/MovieList.js.map +0 -1
- package/dist-esm/web/samples/demo/views/MovieListViewModel.d.ts +0 -18
- package/dist-esm/web/samples/demo/views/MovieListViewModel.d.ts.map +0 -1
- package/dist-esm/web/samples/demo/views/MovieListViewModel.js +0 -55
- package/dist-esm/web/samples/demo/views/MovieListViewModel.js.map +0 -1
- package/dist-esm/web/samples/tabs/app.d.ts +0 -5
- package/dist-esm/web/samples/tabs/app.d.ts.map +0 -1
- package/dist-esm/web/samples/tabs/app.js +0 -19
- package/dist-esm/web/samples/tabs/app.js.map +0 -1
- package/dist-esm/web/samples/tabs/views/List.d.ts +0 -4
- package/dist-esm/web/samples/tabs/views/List.d.ts.map +0 -1
- package/dist-esm/web/samples/tabs/views/List.js +0 -3
- package/dist-esm/web/samples/tabs/views/List.js.map +0 -1
- package/dist-esm/web/samples/tabs/views/ListDataUrl.d.ts +0 -4
- package/dist-esm/web/samples/tabs/views/ListDataUrl.d.ts.map +0 -1
- package/dist-esm/web/samples/tabs/views/ListDataUrl.js +0 -6
- package/dist-esm/web/samples/tabs/views/ListDataUrl.js.map +0 -1
- package/dist-esm/web/samples/tabs/views/Page1.d.ts +0 -5
- package/dist-esm/web/samples/tabs/views/Page1.d.ts.map +0 -1
- package/dist-esm/web/samples/tabs/views/Page1.js +0 -45
- package/dist-esm/web/samples/tabs/views/Page1.js.map +0 -1
- package/dist-esm/web/samples/tabs/views/TabHost.d.ts +0 -5
- package/dist-esm/web/samples/tabs/views/TabHost.d.ts.map +0 -1
- package/dist-esm/web/samples/tabs/views/TabHost.js +0 -35
- package/dist-esm/web/samples/tabs/views/TabHost.js.map +0 -1
- package/dist-esm/web/samples/window/WindowSample.d.ts +0 -5
- package/dist-esm/web/samples/window/WindowSample.d.ts.map +0 -1
- package/dist-esm/web/samples/window/WindowSample.js +0 -13
- package/dist-esm/web/samples/window/WindowSample.js.map +0 -1
- package/dist-esm/web/services/WebBusyIndicatorService.d.ts +0 -9
- package/dist-esm/web/services/WebBusyIndicatorService.d.ts.map +0 -1
- package/dist-esm/web/services/WebBusyIndicatorService.js +0 -73
- package/dist-esm/web/services/WebBusyIndicatorService.js.map +0 -1
- package/dist-esm/web/services/WindowService.d.ts +0 -36
- package/dist-esm/web/services/WindowService.d.ts.map +0 -1
- package/dist-esm/web/services/WindowService.js +0 -296
- package/dist-esm/web/services/WindowService.js.map +0 -1
- package/dist-esm/web/styles/AtomListBoxStyle.d.ts +0 -11
- package/dist-esm/web/styles/AtomListBoxStyle.d.ts.map +0 -1
- package/dist-esm/web/styles/AtomListBoxStyle.js +0 -32
- package/dist-esm/web/styles/AtomListBoxStyle.js.map +0 -1
- package/dist-esm/web/styles/AtomTabbedPageStyle.d.ts +0 -12
- package/dist-esm/web/styles/AtomTabbedPageStyle.d.ts.map +0 -1
- package/dist-esm/web/styles/AtomTabbedPageStyle.js +0 -115
- package/dist-esm/web/styles/AtomTabbedPageStyle.js.map +0 -1
- package/dist-esm/web/styles/AtomTheme.d.ts +0 -17
- package/dist-esm/web/styles/AtomTheme.d.ts.map +0 -1
- package/dist-esm/web/styles/AtomTheme.js +0 -41
- package/dist-esm/web/styles/AtomTheme.js.map +0 -1
- package/dist-esm/web/styles/AtomToggleButtonBarStyle.d.ts +0 -9
- package/dist-esm/web/styles/AtomToggleButtonBarStyle.d.ts.map +0 -1
- package/dist-esm/web/styles/AtomToggleButtonBarStyle.js +0 -68
- package/dist-esm/web/styles/AtomToggleButtonBarStyle.js.map +0 -1
- package/dist-esm/web/styles/CSS.d.ts +0 -4
- package/dist-esm/web/styles/CSS.d.ts.map +0 -1
- package/dist-esm/web/styles/CSS.js +0 -66
- package/dist-esm/web/styles/CSS.js.map +0 -1
- package/src/style/styled.ts +0 -277
- package/src/unit/AtomWebTest.ts +0 -33
- package/src/web/WebApp.ts +0 -192
- package/src/web/controls/AtomAlertWindow.tsx +0 -111
- package/src/web/controls/AtomContentControl.ts +0 -52
- package/src/web/controls/AtomFrame.ts +0 -295
- package/src/web/controls/AtomListBox.ts +0 -69
- package/src/web/controls/AtomNotification.tsx +0 -45
- package/src/web/controls/AtomPageLink.ts +0 -164
- package/src/web/controls/AtomTabbedPage.tsx +0 -320
- package/src/web/controls/AtomToggleButtonBar.ts +0 -41
- package/src/web/controls/AtomViewPager.ts +0 -60
- package/src/web/controls/AtomWindow.tsx +0 -342
- package/src/web/samples/MovieService.ts +0 -12
- package/src/web/samples/demo/app.ts +0 -15
- package/src/web/samples/demo/views/MovieList.ts +0 -77
- package/src/web/samples/demo/views/MovieListViewModel.ts +0 -52
- package/src/web/samples/tabs/app.ts +0 -20
- package/src/web/samples/tabs/views/List.json +0 -10
- package/src/web/samples/tabs/views/List.ts +0 -6
- package/src/web/samples/tabs/views/ListDataUrl.ts +0 -9
- package/src/web/samples/tabs/views/Page1.tsx +0 -49
- package/src/web/samples/tabs/views/TabHost.ts +0 -34
- package/src/web/samples/window/WindowSample.tsx +0 -16
- package/src/web/services/WebBusyIndicatorService.ts +0 -79
- package/src/web/services/WindowService.ts +0 -500
- package/src/web/styles/AtomListBoxStyle.ts +0 -42
- package/src/web/styles/AtomTabbedPageStyle.ts +0 -125
- package/src/web/styles/AtomTheme.ts +0 -61
- package/src/web/styles/AtomToggleButtonBarStyle.ts +0 -76
- package/src/web/styles/CSS.ts +0 -77
package/src/style/StyleRule.ts
CHANGED
|
@@ -129,3133 +129,3 @@ export type WordSpacingType = "" | "default" | "normal" | "initial" | "inherit";
|
|
|
129
129
|
export type WordWrapType = "" | "default" | "normal" | "break-word" | "initial" | "inherit";
|
|
130
130
|
|
|
131
131
|
export type Units = "" | "px" | "pt" | "%" | "rem";
|
|
132
|
-
|
|
133
|
-
export interface IFlexAttributes {
|
|
134
|
-
direction?: FlexDirectionType;
|
|
135
|
-
alignItems?: ItemAlignType;
|
|
136
|
-
justifyContent?: JustifyContentType;
|
|
137
|
-
stretch?: boolean;
|
|
138
|
-
inline?: boolean;
|
|
139
|
-
/** Try to keep gap an even number as it hides borders of input/textarea for odd numbers */
|
|
140
|
-
gap?: number;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export function toUnit(n: number | string, unit: string) {
|
|
144
|
-
if (!unit) {
|
|
145
|
-
unit = "";
|
|
146
|
-
}
|
|
147
|
-
return typeof n === "number" ? n + unit : n;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export interface IRect {
|
|
151
|
-
top?: number | string;
|
|
152
|
-
left?: number | string;
|
|
153
|
-
right?: number | string;
|
|
154
|
-
bottom?: number | string;
|
|
155
|
-
width?: number | string;
|
|
156
|
-
height?: number | string;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export class AtomStyleRules {
|
|
160
|
-
|
|
161
|
-
public style: IStyleDeclaration = {};
|
|
162
|
-
|
|
163
|
-
public name: string;
|
|
164
|
-
|
|
165
|
-
constructor(name: string | object) {
|
|
166
|
-
if (typeof name === "string") {
|
|
167
|
-
this.name = name;
|
|
168
|
-
} else {
|
|
169
|
-
this.style = name ?? {};
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
public alignContent(value: ContentAlignType) {
|
|
174
|
-
if (value !== undefined && value !== null) {
|
|
175
|
-
this.style.alignContent = value;
|
|
176
|
-
}
|
|
177
|
-
return this;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
public alignItems(value: ItemAlignType) {
|
|
181
|
-
if (value !== undefined && value !== null) {
|
|
182
|
-
this.style.alignItems = value;
|
|
183
|
-
}
|
|
184
|
-
return this;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
public alignSelf(value: SelfAlignType) {
|
|
188
|
-
if (value !== undefined && value !== null) {
|
|
189
|
-
this.style.alignSelf = value;
|
|
190
|
-
}
|
|
191
|
-
return this;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
public alignmentBaseline(value: string) {
|
|
195
|
-
if (value !== undefined && value !== null) {
|
|
196
|
-
this.style.alignmentBaseline = value;
|
|
197
|
-
}
|
|
198
|
-
return this;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
public animation(value: AnimationType) {
|
|
202
|
-
if (value !== undefined && value !== null) {
|
|
203
|
-
this.style.animation = value;
|
|
204
|
-
}
|
|
205
|
-
return this;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
public animationDelay(value: AnimationTimeType) {
|
|
209
|
-
if (value !== undefined && value !== null) {
|
|
210
|
-
this.style.animationDelay = value;
|
|
211
|
-
}
|
|
212
|
-
return this;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
public animationDirection(value: AnimationDirection) {
|
|
216
|
-
if (value !== undefined && value !== null) {
|
|
217
|
-
this.style.animationDirection = value;
|
|
218
|
-
}
|
|
219
|
-
return this;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
public animationDuration(value: AnimationTimeType) {
|
|
223
|
-
if (value !== undefined && value !== null) {
|
|
224
|
-
this.style.animationDuration = value;
|
|
225
|
-
}
|
|
226
|
-
return this;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
public animationFillMode(value: AnimationModeType) {
|
|
230
|
-
if (value !== undefined && value !== null) {
|
|
231
|
-
this.style.animationFillMode = value;
|
|
232
|
-
}
|
|
233
|
-
return this;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
public animationIterationCount(value: IterationCount) {
|
|
237
|
-
if (value !== undefined && value !== null) {
|
|
238
|
-
this.style.animationIterationCount = value;
|
|
239
|
-
}
|
|
240
|
-
return this;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
public animationName(value: AnimationNameType) {
|
|
244
|
-
if (value !== undefined && value !== null) {
|
|
245
|
-
this.style.animationName = value;
|
|
246
|
-
}
|
|
247
|
-
return this;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
public animationPlayState(value: PlayState) {
|
|
251
|
-
if (value !== undefined && value !== null) {
|
|
252
|
-
this.style.animationPlayState = value;
|
|
253
|
-
}
|
|
254
|
-
return this;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
public animationTimingFunction(value: TimingFunction) {
|
|
258
|
-
if (value !== undefined && value !== null) {
|
|
259
|
-
this.style.animationTimingFunction = value;
|
|
260
|
-
}
|
|
261
|
-
return this;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
public backfaceVisibility(value: Visibility) {
|
|
265
|
-
if (value !== undefined && value !== null) {
|
|
266
|
-
this.style.backfaceVisibility = value;
|
|
267
|
-
}
|
|
268
|
-
return this;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
public background(value: BackgroundType) {
|
|
272
|
-
if (value !== undefined && value !== null) {
|
|
273
|
-
this.style.background = value;
|
|
274
|
-
}
|
|
275
|
-
return this;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
public backgroundAttachment(value: BackgroundAttachmentType) {
|
|
279
|
-
if (value !== undefined && value !== null) {
|
|
280
|
-
this.style.backgroundAttachment = value;
|
|
281
|
-
}
|
|
282
|
-
return this;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
public backgroundBlendMode(value: BackgroundBlendType) {
|
|
286
|
-
if (value !== undefined && value !== null) {
|
|
287
|
-
this.style.backgroundBlendMode = value;
|
|
288
|
-
}
|
|
289
|
-
return this;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
public backgroundClip(value: BackgroundClipType) {
|
|
293
|
-
if (value !== undefined && value !== null) {
|
|
294
|
-
this.style.backgroundClip = value;
|
|
295
|
-
}
|
|
296
|
-
return this;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
public backgroundColor(value: string | ColorItem) {
|
|
300
|
-
if (value !== undefined && value !== null) {
|
|
301
|
-
this.style.backgroundColor = value;
|
|
302
|
-
}
|
|
303
|
-
return this;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
public backgroundImage(value: string | WebImage) {
|
|
307
|
-
if (value !== undefined && value !== null) {
|
|
308
|
-
this.style.backgroundImage = value;
|
|
309
|
-
}
|
|
310
|
-
return this;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
public backgroundOrigin(value: BackgroundOriginType) {
|
|
314
|
-
if (value !== undefined && value !== null) {
|
|
315
|
-
this.style.backgroundOrigin = value;
|
|
316
|
-
}
|
|
317
|
-
return this;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
public backgroundPosition(value: BackgroundPositionType) {
|
|
321
|
-
if (value !== undefined && value !== null) {
|
|
322
|
-
this.style.backgroundPosition = value;
|
|
323
|
-
}
|
|
324
|
-
return this;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
public backgroundPositionX(value: number | string, unit: Units = "px") {
|
|
328
|
-
if (value !== undefined && value !== null) {
|
|
329
|
-
this.style.backgroundPositionX = toUnit(value, unit);
|
|
330
|
-
}
|
|
331
|
-
return this;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
public backgroundPositionY(value: number | string, unit: Units = "px") {
|
|
335
|
-
if (value !== undefined && value !== null) {
|
|
336
|
-
this.style.backgroundPositionY = toUnit(value, unit);
|
|
337
|
-
}
|
|
338
|
-
return this;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
public backgroundRepeat(value: BackgroundRepeatType) {
|
|
342
|
-
if (value !== undefined && value !== null) {
|
|
343
|
-
this.style.backgroundRepeat = value;
|
|
344
|
-
}
|
|
345
|
-
return this;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
public backgroundSize(value: BackgroundSizeType) {
|
|
349
|
-
if (value !== undefined && value !== null) {
|
|
350
|
-
this.style.backgroundSize = value;
|
|
351
|
-
}
|
|
352
|
-
return this;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
public baselineShift(value: string) {
|
|
356
|
-
if (value !== undefined && value !== null) {
|
|
357
|
-
this.style.baselineShift = value;
|
|
358
|
-
}
|
|
359
|
-
return this;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
public border(value: string) {
|
|
363
|
-
if (value !== undefined && value !== null) {
|
|
364
|
-
this.style.border = value;
|
|
365
|
-
}
|
|
366
|
-
return this;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
public borderBottom(value: string) {
|
|
370
|
-
if (value !== undefined && value !== null) {
|
|
371
|
-
this.style.borderBottom = value;
|
|
372
|
-
}
|
|
373
|
-
return this;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
public borderBottomColor(value: string | ColorItem) {
|
|
377
|
-
if (value !== undefined && value !== null) {
|
|
378
|
-
this.style.borderBottomColor = value;
|
|
379
|
-
}
|
|
380
|
-
return this;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
public borderBottomLeftRadius(value: number | string, unit: Units = "px") {
|
|
384
|
-
if (value !== undefined && value !== null) {
|
|
385
|
-
this.style.borderBottomLeftRadius = toUnit(value, unit);
|
|
386
|
-
}
|
|
387
|
-
return this;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
public borderBottomRightRadius(value: number | string, unit: Units = "px") {
|
|
391
|
-
if (value !== undefined && value !== null) {
|
|
392
|
-
this.style.borderBottomRightRadius = toUnit(value, unit);
|
|
393
|
-
}
|
|
394
|
-
return this;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
public borderBottomStyle(value: BorderStyleType) {
|
|
398
|
-
if (value !== undefined && value !== null) {
|
|
399
|
-
this.style.borderBottomStyle = value;
|
|
400
|
-
}
|
|
401
|
-
return this;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
public borderBottomWidth(value: CommonWidthType): AtomStyleRules;
|
|
405
|
-
public borderBottomWidth(value: string): AtomStyleRules;
|
|
406
|
-
public borderBottomWidth(value: number, unit?: Units): AtomStyleRules;
|
|
407
|
-
public borderBottomWidth(value: number | string | CommonWidthType, unit: Units = "px"): AtomStyleRules {
|
|
408
|
-
if (value !== undefined && value !== null) {
|
|
409
|
-
this.style.borderBottomWidth = toUnit(value, unit);
|
|
410
|
-
}
|
|
411
|
-
return this;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
public borderCollapse(value: BorderCollapseType) {
|
|
415
|
-
if (value !== undefined && value !== null) {
|
|
416
|
-
this.style.borderCollapse = value;
|
|
417
|
-
}
|
|
418
|
-
return this;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
public borderColor(value: string | ColorItem) {
|
|
422
|
-
if (value !== undefined && value !== null) {
|
|
423
|
-
this.style.borderColor = value;
|
|
424
|
-
}
|
|
425
|
-
return this;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
public borderImage(value: string) {
|
|
429
|
-
if (value !== undefined && value !== null) {
|
|
430
|
-
this.style.borderImage = value;
|
|
431
|
-
}
|
|
432
|
-
return this;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
public borderImageOutset(value: string) {
|
|
436
|
-
if (value !== undefined && value !== null) {
|
|
437
|
-
this.style.borderImageOutset = value;
|
|
438
|
-
}
|
|
439
|
-
return this;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
public borderImageRepeat(value: BorderImageRepeatType) {
|
|
443
|
-
if (value !== undefined && value !== null) {
|
|
444
|
-
this.style.borderImageRepeat = value;
|
|
445
|
-
}
|
|
446
|
-
return this;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
public borderImageSlice(value: string) {
|
|
450
|
-
if (value !== undefined && value !== null) {
|
|
451
|
-
this.style.borderImageSlice = value;
|
|
452
|
-
}
|
|
453
|
-
return this;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
public borderImageSource(value: string) {
|
|
457
|
-
if (value !== undefined && value !== null) {
|
|
458
|
-
this.style.borderImageSource = value;
|
|
459
|
-
}
|
|
460
|
-
return this;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
public borderImageWidth(value: string) {
|
|
464
|
-
if (value !== undefined && value !== null) {
|
|
465
|
-
this.style.borderImageWidth = value;
|
|
466
|
-
}
|
|
467
|
-
return this;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
public borderLeft(value: string) {
|
|
471
|
-
if (value !== undefined && value !== null) {
|
|
472
|
-
this.style.borderLeft = value;
|
|
473
|
-
}
|
|
474
|
-
return this;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
public borderLeftColor(value: string | ColorItem) {
|
|
478
|
-
if (value !== undefined && value !== null) {
|
|
479
|
-
this.style.borderLeftColor = value;
|
|
480
|
-
}
|
|
481
|
-
return this;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
public borderLeftStyle(value: BorderStyleType) {
|
|
485
|
-
if (value !== undefined && value !== null) {
|
|
486
|
-
this.style.borderLeftStyle = value;
|
|
487
|
-
}
|
|
488
|
-
return this;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
public borderLeftWidth(value: CommonWidthType): AtomStyleRules;
|
|
492
|
-
public borderLeftWidth(value: string): AtomStyleRules;
|
|
493
|
-
public borderLeftWidth(value: number, unit?: Units): AtomStyleRules;
|
|
494
|
-
public borderLeftWidth(value: number | string | CommonWidthType, unit: Units = "px"): AtomStyleRules {
|
|
495
|
-
if (value !== undefined && value !== null) {
|
|
496
|
-
this.style.borderLeftWidth = toUnit(value, unit);
|
|
497
|
-
}
|
|
498
|
-
return this;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
public borderRadius(value: string | number, unit: Units = "px") {
|
|
502
|
-
if (value !== undefined && value !== null) {
|
|
503
|
-
this.style.borderRadius = toUnit(value, unit);
|
|
504
|
-
}
|
|
505
|
-
return this;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
public borderRight(value: string) {
|
|
509
|
-
if (value !== undefined && value !== null) {
|
|
510
|
-
this.style.borderRight = value;
|
|
511
|
-
}
|
|
512
|
-
return this;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
public borderRightColor(value: string | ColorItem) {
|
|
516
|
-
if (value !== undefined && value !== null) {
|
|
517
|
-
this.style.borderRightColor = value;
|
|
518
|
-
}
|
|
519
|
-
return this;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
public borderRightStyle(value: BorderStyleType) {
|
|
523
|
-
if (value !== undefined && value !== null) {
|
|
524
|
-
this.style.borderRightStyle = value;
|
|
525
|
-
}
|
|
526
|
-
return this;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
public borderRightWidth(value: CommonWidthType): AtomStyleRules;
|
|
530
|
-
public borderRightWidth(value: string): AtomStyleRules;
|
|
531
|
-
public borderRightWidth(value: number, unit?: Units): AtomStyleRules;
|
|
532
|
-
public borderRightWidth(value: number | string | CommonWidthType, unit: Units = "px"): AtomStyleRules {
|
|
533
|
-
if (value !== undefined && value !== null) {
|
|
534
|
-
this.style.borderRightWidth = toUnit(value, unit);
|
|
535
|
-
}
|
|
536
|
-
return this;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
public borderSpacing(value: BorderSpacingType) {
|
|
540
|
-
if (value !== undefined && value !== null) {
|
|
541
|
-
this.style.borderSpacing = value;
|
|
542
|
-
}
|
|
543
|
-
return this;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
public borderStyle(value: BorderStyleType) {
|
|
547
|
-
if (value !== undefined && value !== null) {
|
|
548
|
-
this.style.borderStyle = value;
|
|
549
|
-
}
|
|
550
|
-
return this;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
public borderTop(value: string) {
|
|
554
|
-
if (value !== undefined && value !== null) {
|
|
555
|
-
this.style.borderTop = value;
|
|
556
|
-
}
|
|
557
|
-
return this;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
public borderTopColor(value: string | ColorItem) {
|
|
561
|
-
if (value !== undefined && value !== null) {
|
|
562
|
-
this.style.borderTopColor = value;
|
|
563
|
-
}
|
|
564
|
-
return this;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
public borderTopLeftRadius(value: number | string, unit: Units = "px") {
|
|
568
|
-
if (value !== undefined && value !== null) {
|
|
569
|
-
this.style.borderTopLeftRadius = toUnit(value, unit);
|
|
570
|
-
}
|
|
571
|
-
return this;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
public borderTopRightRadius(value: number | string, unit: Units = "px") {
|
|
575
|
-
if (value !== undefined && value !== null) {
|
|
576
|
-
this.style.borderTopRightRadius = toUnit(value, unit);
|
|
577
|
-
}
|
|
578
|
-
return this;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
public borderTopStyle(value: BorderStyleType) {
|
|
582
|
-
if (value !== undefined && value !== null) {
|
|
583
|
-
this.style.borderTopStyle = value;
|
|
584
|
-
}
|
|
585
|
-
return this;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
public borderTopWidth(value: CommonWidthType): AtomStyleRules;
|
|
589
|
-
public borderTopWidth(value: string): AtomStyleRules;
|
|
590
|
-
public borderTopWidth(value: number, unit?: Units): AtomStyleRules;
|
|
591
|
-
public borderTopWidth(value: number | string | CommonWidthType, unit: Units = "px"): AtomStyleRules {
|
|
592
|
-
if (value !== undefined && value !== null) {
|
|
593
|
-
this.style.borderTopWidth = toUnit(value, unit);
|
|
594
|
-
}
|
|
595
|
-
return this;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
public borderWidth(value: CommonWidthType): AtomStyleRules;
|
|
599
|
-
public borderWidth(value: string): AtomStyleRules;
|
|
600
|
-
public borderWidth(value: number, unit?: Units): AtomStyleRules;
|
|
601
|
-
public borderWidth(value: number | string | CommonWidthType, unit: Units = "px"): AtomStyleRules {
|
|
602
|
-
if (value !== undefined && value !== null) {
|
|
603
|
-
this.style.borderWidth = toUnit(value, unit);
|
|
604
|
-
}
|
|
605
|
-
return this;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
public bottom(value: number | string, unit: Units = "px") {
|
|
609
|
-
if (value !== undefined && value !== null) {
|
|
610
|
-
this.style.bottom = toUnit(value, unit);
|
|
611
|
-
}
|
|
612
|
-
return this;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
public boxShadow(value: string) {
|
|
616
|
-
if (value !== undefined && value !== null) {
|
|
617
|
-
this.style.boxShadow = value;
|
|
618
|
-
}
|
|
619
|
-
return this;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
public boxSizing(value: BoxSizingType) {
|
|
623
|
-
if (value !== undefined && value !== null) {
|
|
624
|
-
this.style.boxSizing = value;
|
|
625
|
-
}
|
|
626
|
-
return this;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
public breakAfter(value: string) {
|
|
630
|
-
if (value !== undefined && value !== null) {
|
|
631
|
-
this.style.breakAfter = value;
|
|
632
|
-
}
|
|
633
|
-
return this;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
public breakBefore(value: string) {
|
|
637
|
-
if (value !== undefined && value !== null) {
|
|
638
|
-
this.style.breakBefore = value;
|
|
639
|
-
}
|
|
640
|
-
return this;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
public breakInside(value: string) {
|
|
644
|
-
if (value !== undefined && value !== null) {
|
|
645
|
-
this.style.breakInside = value;
|
|
646
|
-
}
|
|
647
|
-
return this;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
public captionSide(value: CaptionSideType) {
|
|
651
|
-
if (value !== undefined && value !== null) {
|
|
652
|
-
this.style.captionSide = value;
|
|
653
|
-
}
|
|
654
|
-
return this;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
public caretColor(value: ColorItem | string) {
|
|
658
|
-
this.style.caretColor = value;
|
|
659
|
-
return this;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
public clear(value: ClearType) {
|
|
663
|
-
if (value !== undefined && value !== null) {
|
|
664
|
-
this.style.clear = value;
|
|
665
|
-
}
|
|
666
|
-
return this;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
public clip(value: string) {
|
|
670
|
-
if (value !== undefined && value !== null) {
|
|
671
|
-
this.style.clip = value;
|
|
672
|
-
}
|
|
673
|
-
return this;
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
public clipPath(value: string) {
|
|
677
|
-
if (value !== undefined && value !== null) {
|
|
678
|
-
this.style.clipPath = value;
|
|
679
|
-
}
|
|
680
|
-
return this;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
public clipRule(value: string) {
|
|
684
|
-
if (value !== undefined && value !== null) {
|
|
685
|
-
this.style.clipRule = value;
|
|
686
|
-
}
|
|
687
|
-
return this;
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
public color(value: string | ColorItem) {
|
|
691
|
-
if (value !== undefined && value !== null) {
|
|
692
|
-
this.style.color = value;
|
|
693
|
-
}
|
|
694
|
-
return this;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
public colorInterpolationFilters(value: string) {
|
|
698
|
-
if (value !== undefined && value !== null) {
|
|
699
|
-
this.style.colorInterpolationFilters = value;
|
|
700
|
-
}
|
|
701
|
-
return this;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
public columnCount(value: any) {
|
|
705
|
-
if (value !== undefined && value !== null) {
|
|
706
|
-
this.style.columnCount = value;
|
|
707
|
-
}
|
|
708
|
-
return this;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
public columnFill(value: string) {
|
|
712
|
-
if (value !== undefined && value !== null) {
|
|
713
|
-
this.style.columnFill = value;
|
|
714
|
-
}
|
|
715
|
-
return this;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
public columnGap(value: ColumnGapType);
|
|
719
|
-
public columnGap(value: string): AtomStyleRules;
|
|
720
|
-
public columnGap(value: number | string | any, unit: Units = "px") {
|
|
721
|
-
if (value !== undefined && value !== null) {
|
|
722
|
-
this.style.columnGap = toUnit(value, unit);
|
|
723
|
-
}
|
|
724
|
-
return this;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
public columnRule(value: string) {
|
|
728
|
-
if (value !== undefined && value !== null) {
|
|
729
|
-
this.style.columnRule = value;
|
|
730
|
-
}
|
|
731
|
-
return this;
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
public columnRuleColor(value: any | ColorItem) {
|
|
735
|
-
if (value !== undefined && value !== null) {
|
|
736
|
-
this.style.columnRuleColor = value;
|
|
737
|
-
}
|
|
738
|
-
return this;
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
public columnRuleStyle(value: BorderStyleType) {
|
|
742
|
-
if (value !== undefined && value !== null) {
|
|
743
|
-
this.style.columnRuleStyle = value;
|
|
744
|
-
}
|
|
745
|
-
return this;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
public columnRuleWidth(value: CommonWidthType) {
|
|
749
|
-
if (value !== undefined && value !== null) {
|
|
750
|
-
this.style.columnRuleWidth = value;
|
|
751
|
-
}
|
|
752
|
-
return this;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
public columnSpan(value: string) {
|
|
756
|
-
if (value !== undefined && value !== null) {
|
|
757
|
-
this.style.columnSpan = value;
|
|
758
|
-
}
|
|
759
|
-
return this;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
public columnWidth(value: any) {
|
|
763
|
-
if (value !== undefined && value !== null) {
|
|
764
|
-
this.style.columnWidth = value;
|
|
765
|
-
}
|
|
766
|
-
return this;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
public columns(value: string) {
|
|
770
|
-
if (value !== undefined && value !== null) {
|
|
771
|
-
this.style.columns = value;
|
|
772
|
-
}
|
|
773
|
-
return this;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
public content(value: ContentType) {
|
|
777
|
-
if (value !== undefined && value !== null) {
|
|
778
|
-
this.style.content = value;
|
|
779
|
-
}
|
|
780
|
-
return this;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
public counterIncrement(value: string) {
|
|
784
|
-
if (value !== undefined && value !== null) {
|
|
785
|
-
this.style.counterIncrement = value;
|
|
786
|
-
}
|
|
787
|
-
return this;
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
public counterReset(value: string) {
|
|
791
|
-
if (value !== undefined && value !== null) {
|
|
792
|
-
this.style.counterReset = value;
|
|
793
|
-
}
|
|
794
|
-
return this;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
public cssFloat(value: FloatPosition) {
|
|
798
|
-
if (value !== undefined && value !== null) {
|
|
799
|
-
this.style.cssFloat = value;
|
|
800
|
-
}
|
|
801
|
-
return this;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
public cssText(value: string) {
|
|
805
|
-
if (value !== undefined && value !== null) {
|
|
806
|
-
this.style.cssText = value;
|
|
807
|
-
}
|
|
808
|
-
return this;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
public cursor(value: CursorType) {
|
|
812
|
-
if (value !== undefined && value !== null) {
|
|
813
|
-
this.style.cursor = value;
|
|
814
|
-
}
|
|
815
|
-
return this;
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
public direction(value: DirectionType) {
|
|
819
|
-
if (value !== undefined && value !== null) {
|
|
820
|
-
this.style.direction = value;
|
|
821
|
-
}
|
|
822
|
-
return this;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
public display(value: DisplayType) {
|
|
826
|
-
if (value !== undefined && value !== null) {
|
|
827
|
-
this.style.display = value;
|
|
828
|
-
}
|
|
829
|
-
return this;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
public dominantBaseline(value: string) {
|
|
833
|
-
if (value !== undefined && value !== null) {
|
|
834
|
-
this.style.dominantBaseline = value;
|
|
835
|
-
}
|
|
836
|
-
return this;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
public emptyCells(value: EmptyCellType) {
|
|
840
|
-
if (value !== undefined && value !== null) {
|
|
841
|
-
this.style.emptyCells = value;
|
|
842
|
-
}
|
|
843
|
-
return this;
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
public enableBackground(value: string) {
|
|
847
|
-
if (value !== undefined && value !== null) {
|
|
848
|
-
this.style.enableBackground = value;
|
|
849
|
-
}
|
|
850
|
-
return this;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
public fill(value: string) {
|
|
854
|
-
if (value !== undefined && value !== null) {
|
|
855
|
-
this.style.fill = value;
|
|
856
|
-
}
|
|
857
|
-
return this;
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
public fillOpacity(value: string) {
|
|
861
|
-
if (value !== undefined && value !== null) {
|
|
862
|
-
this.style.fillOpacity = value;
|
|
863
|
-
}
|
|
864
|
-
return this;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
public fillRule(value: string) {
|
|
868
|
-
if (value !== undefined && value !== null) {
|
|
869
|
-
this.style.fillRule = value;
|
|
870
|
-
}
|
|
871
|
-
return this;
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
public filter(value: FilterType) {
|
|
875
|
-
if (value !== undefined && value !== null) {
|
|
876
|
-
this.style.filter = value;
|
|
877
|
-
}
|
|
878
|
-
return this;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
public flex(value: string) {
|
|
882
|
-
if (value !== undefined && value !== null) {
|
|
883
|
-
this.style.flex = value;
|
|
884
|
-
}
|
|
885
|
-
return this;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
public flexBasis(value: string) {
|
|
889
|
-
if (value !== undefined && value !== null) {
|
|
890
|
-
this.style.flexBasis = value;
|
|
891
|
-
}
|
|
892
|
-
return this;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
public flexDirection(value: FlexDirectionType) {
|
|
896
|
-
if (value !== undefined && value !== null) {
|
|
897
|
-
this.style.flexDirection = value;
|
|
898
|
-
}
|
|
899
|
-
return this;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
public flexFlow(value: FlexFlowDirectionType) {
|
|
903
|
-
if (value !== undefined && value !== null) {
|
|
904
|
-
this.style.flexFlow = value;
|
|
905
|
-
}
|
|
906
|
-
return this;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
public flexGrow(value: string) {
|
|
910
|
-
if (value !== undefined && value !== null) {
|
|
911
|
-
this.style.flexGrow = value;
|
|
912
|
-
}
|
|
913
|
-
return this;
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
public flexShrink(value: string) {
|
|
917
|
-
if (value !== undefined && value !== null) {
|
|
918
|
-
this.style.flexShrink = value;
|
|
919
|
-
}
|
|
920
|
-
return this;
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
public flexWrap(value: FlexWrapType) {
|
|
924
|
-
if (value !== undefined && value !== null) {
|
|
925
|
-
this.style.flexWrap = value;
|
|
926
|
-
}
|
|
927
|
-
return this;
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
public float(value: FloatType) {
|
|
931
|
-
if (value !== undefined && value !== null) {
|
|
932
|
-
this.style.float = value;
|
|
933
|
-
}
|
|
934
|
-
return this;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
public floodColor(value: string | ColorItem) {
|
|
938
|
-
if (value !== undefined && value !== null) {
|
|
939
|
-
this.style.floodColor = value;
|
|
940
|
-
}
|
|
941
|
-
return this;
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
public floodOpacity(value: string) {
|
|
945
|
-
if (value !== undefined && value !== null) {
|
|
946
|
-
this.style.floodOpacity = value;
|
|
947
|
-
}
|
|
948
|
-
return this;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
public font(value: string) {
|
|
952
|
-
if (value !== undefined && value !== null) {
|
|
953
|
-
this.style.font = value;
|
|
954
|
-
}
|
|
955
|
-
return this;
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
public fontFamily(value: string) {
|
|
959
|
-
if (value !== undefined && value !== null) {
|
|
960
|
-
this.style.fontFamily = value;
|
|
961
|
-
}
|
|
962
|
-
return this;
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
public fontFeatureSettings(value: string) {
|
|
966
|
-
if (value !== undefined && value !== null) {
|
|
967
|
-
this.style.fontFeatureSettings = value;
|
|
968
|
-
}
|
|
969
|
-
return this;
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
public fontSize(value: number): AtomStyleRules;
|
|
973
|
-
public fontSize(value: TextSize): AtomStyleRules;
|
|
974
|
-
public fontSize(value: string): AtomStyleRules;
|
|
975
|
-
public fontSize(value: number | string | TextSize, unit: Units = "px") {
|
|
976
|
-
if (value !== undefined && value !== null) {
|
|
977
|
-
this.style.fontSize = toUnit(value, unit);
|
|
978
|
-
}
|
|
979
|
-
return this;
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
public fontSizeAdjust(value: string) {
|
|
983
|
-
if (value !== undefined && value !== null) {
|
|
984
|
-
this.style.fontSizeAdjust = value;
|
|
985
|
-
}
|
|
986
|
-
return this;
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
public fontStretch(value: FontStretchType) {
|
|
990
|
-
if (value !== undefined && value !== null) {
|
|
991
|
-
this.style.fontStretch = value;
|
|
992
|
-
}
|
|
993
|
-
return this;
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
public fontStyle(value: FontStyleType) {
|
|
997
|
-
if (value !== undefined && value !== null) {
|
|
998
|
-
this.style.fontStyle = value;
|
|
999
|
-
}
|
|
1000
|
-
return this;
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
public fontVariant(value: FontVariantType) {
|
|
1004
|
-
if (value !== undefined && value !== null) {
|
|
1005
|
-
this.style.fontVariant = value;
|
|
1006
|
-
}
|
|
1007
|
-
return this;
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
public fontWeight(value: FontWeightType) {
|
|
1011
|
-
if (value !== undefined && value !== null) {
|
|
1012
|
-
this.style.fontWeight = value;
|
|
1013
|
-
}
|
|
1014
|
-
return this;
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
public gap(value: number | string, unit: Units = "px") {
|
|
1018
|
-
if (value !== undefined && value !== null) {
|
|
1019
|
-
this.style.gap = toUnit(value, unit);
|
|
1020
|
-
}
|
|
1021
|
-
return this;
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
public glyphOrientationHorizontal(value: string) {
|
|
1025
|
-
if (value !== undefined && value !== null) {
|
|
1026
|
-
this.style.glyphOrientationHorizontal = value;
|
|
1027
|
-
}
|
|
1028
|
-
return this;
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
public glyphOrientationVertical(value: string) {
|
|
1032
|
-
if (value !== undefined && value !== null) {
|
|
1033
|
-
this.style.glyphOrientationVertical = value;
|
|
1034
|
-
}
|
|
1035
|
-
return this;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
public grid(value: string) {
|
|
1039
|
-
if (value !== undefined && value !== null) {
|
|
1040
|
-
this.style.grid = value;
|
|
1041
|
-
}
|
|
1042
|
-
return this;
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
public gridArea(value: string) {
|
|
1046
|
-
if (value !== undefined && value !== null) {
|
|
1047
|
-
this.style.gridArea = value;
|
|
1048
|
-
}
|
|
1049
|
-
return this;
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
public gridAutoColumns(value: GridAutoColumnsType) {
|
|
1053
|
-
if (value !== undefined && value !== null) {
|
|
1054
|
-
this.style.gridAutoColumns = value;
|
|
1055
|
-
}
|
|
1056
|
-
return this;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
public gridAutoFlow(value: GridAutoFlowType) {
|
|
1060
|
-
if (value !== undefined && value !== null) {
|
|
1061
|
-
this.style.gridAutoFlow = value;
|
|
1062
|
-
}
|
|
1063
|
-
return this;
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
public gridAutoRows(value: GridAutoRowsType) {
|
|
1067
|
-
if (value !== undefined && value !== null) {
|
|
1068
|
-
this.style.gridAutoRows = value;
|
|
1069
|
-
}
|
|
1070
|
-
return this;
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
public gridColumn(value: string) {
|
|
1074
|
-
if (value !== undefined && value !== null) {
|
|
1075
|
-
this.style.gridColumn = value;
|
|
1076
|
-
}
|
|
1077
|
-
return this;
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
public gridColumnEnd(value: string) {
|
|
1081
|
-
if (value !== undefined && value !== null) {
|
|
1082
|
-
this.style.gridColumnEnd = value;
|
|
1083
|
-
}
|
|
1084
|
-
return this;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
public gridColumnGap(value: string) {
|
|
1088
|
-
if (value !== undefined && value !== null) {
|
|
1089
|
-
this.style.gridColumnGap = value;
|
|
1090
|
-
}
|
|
1091
|
-
return this;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
public gridColumnStart(value: string) {
|
|
1095
|
-
if (value !== undefined && value !== null) {
|
|
1096
|
-
this.style.gridColumnStart = value;
|
|
1097
|
-
}
|
|
1098
|
-
return this;
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
public gridGap(value: string) {
|
|
1102
|
-
if (value !== undefined && value !== null) {
|
|
1103
|
-
this.style.gridGap = value;
|
|
1104
|
-
}
|
|
1105
|
-
return this;
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
public gridRow(value: string) {
|
|
1109
|
-
if (value !== undefined && value !== null) {
|
|
1110
|
-
this.style.gridRow = value;
|
|
1111
|
-
}
|
|
1112
|
-
return this;
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
public gridRowEnd(value: string) {
|
|
1116
|
-
if (value !== undefined && value !== null) {
|
|
1117
|
-
this.style.gridRowEnd = value;
|
|
1118
|
-
}
|
|
1119
|
-
return this;
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
public gridRowGap(value: string) {
|
|
1123
|
-
if (value !== undefined && value !== null) {
|
|
1124
|
-
this.style.gridRowGap = value;
|
|
1125
|
-
}
|
|
1126
|
-
return this;
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
public gridRowStart(value: string) {
|
|
1130
|
-
if (value !== undefined && value !== null) {
|
|
1131
|
-
this.style.gridRowStart = value;
|
|
1132
|
-
}
|
|
1133
|
-
return this;
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
public gridTemplate(value: string) {
|
|
1137
|
-
if (value !== undefined && value !== null) {
|
|
1138
|
-
this.style.gridTemplate = value;
|
|
1139
|
-
}
|
|
1140
|
-
return this;
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
public gridTemplateAreas(value: string) {
|
|
1144
|
-
if (value !== undefined && value !== null) {
|
|
1145
|
-
this.style.gridTemplateAreas = value;
|
|
1146
|
-
}
|
|
1147
|
-
return this;
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
public gridTemplateColumns(value: string) {
|
|
1151
|
-
if (value !== undefined && value !== null) {
|
|
1152
|
-
this.style.gridTemplateColumns = value;
|
|
1153
|
-
}
|
|
1154
|
-
return this;
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
public gridTemplateRows(value: string) {
|
|
1158
|
-
if (value !== undefined && value !== null) {
|
|
1159
|
-
this.style.gridTemplateRows = value;
|
|
1160
|
-
}
|
|
1161
|
-
return this;
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
public height(value: number | string, unit: Units = "px") {
|
|
1165
|
-
if (value !== undefined && value !== null) {
|
|
1166
|
-
this.style.height = toUnit(value, unit);
|
|
1167
|
-
}
|
|
1168
|
-
return this;
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
public imeMode(value: string) {
|
|
1172
|
-
if (value !== undefined && value !== null) {
|
|
1173
|
-
this.style.imeMode = value;
|
|
1174
|
-
}
|
|
1175
|
-
return this;
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
public justifyContent(value: JustifyContentType) {
|
|
1179
|
-
if (value !== undefined && value !== null) {
|
|
1180
|
-
this.style.justifyContent = value;
|
|
1181
|
-
}
|
|
1182
|
-
return this;
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
public justifyItems(value: string) {
|
|
1186
|
-
if (value !== undefined && value !== null) {
|
|
1187
|
-
this.style.justifyItems = value;
|
|
1188
|
-
}
|
|
1189
|
-
return this;
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
public justifySelf(value: string) {
|
|
1193
|
-
if (value !== undefined && value !== null) {
|
|
1194
|
-
this.style.justifySelf = value;
|
|
1195
|
-
}
|
|
1196
|
-
return this;
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
public kerning(value: string) {
|
|
1200
|
-
if (value !== undefined && value !== null) {
|
|
1201
|
-
this.style.kerning = value;
|
|
1202
|
-
}
|
|
1203
|
-
return this;
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
public layoutGrid(value: string) {
|
|
1207
|
-
if (value !== undefined && value !== null) {
|
|
1208
|
-
this.style.layoutGrid = value;
|
|
1209
|
-
}
|
|
1210
|
-
return this;
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
public layoutGridChar(value: string) {
|
|
1214
|
-
if (value !== undefined && value !== null) {
|
|
1215
|
-
this.style.layoutGridChar = value;
|
|
1216
|
-
}
|
|
1217
|
-
return this;
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
public layoutGridLine(value: string) {
|
|
1221
|
-
if (value !== undefined && value !== null) {
|
|
1222
|
-
this.style.layoutGridLine = value;
|
|
1223
|
-
}
|
|
1224
|
-
return this;
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
public layoutGridMode(value: string) {
|
|
1228
|
-
if (value !== undefined && value !== null) {
|
|
1229
|
-
this.style.layoutGridMode = value;
|
|
1230
|
-
}
|
|
1231
|
-
return this;
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
public layoutGridType(value: string) {
|
|
1235
|
-
if (value !== undefined && value !== null) {
|
|
1236
|
-
this.style.layoutGridType = value;
|
|
1237
|
-
}
|
|
1238
|
-
return this;
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
public left(value: number | string, unit: Units = "px") {
|
|
1242
|
-
if (value !== undefined && value !== null) {
|
|
1243
|
-
this.style.left = toUnit(value, unit);
|
|
1244
|
-
}
|
|
1245
|
-
return this;
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
public letterSpacing(value: string) {
|
|
1249
|
-
if (value !== undefined && value !== null) {
|
|
1250
|
-
this.style.letterSpacing = value;
|
|
1251
|
-
}
|
|
1252
|
-
return this;
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
public lightingColor(value: string | ColorItem) {
|
|
1256
|
-
if (value !== undefined && value !== null) {
|
|
1257
|
-
this.style.lightingColor = value;
|
|
1258
|
-
}
|
|
1259
|
-
return this;
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
public lineBreak(value: string) {
|
|
1263
|
-
if (value !== undefined && value !== null) {
|
|
1264
|
-
this.style.lineBreak = value;
|
|
1265
|
-
}
|
|
1266
|
-
return this;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
public lineHeight(value: string) {
|
|
1270
|
-
if (value !== undefined && value !== null) {
|
|
1271
|
-
this.style.lineHeight = value;
|
|
1272
|
-
}
|
|
1273
|
-
return this;
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
public listStyle(value: string) {
|
|
1277
|
-
if (value !== undefined && value !== null) {
|
|
1278
|
-
this.style.listStyle = value;
|
|
1279
|
-
}
|
|
1280
|
-
return this;
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
public listStyleImage(value: string) {
|
|
1284
|
-
if (value !== undefined && value !== null) {
|
|
1285
|
-
this.style.listStyleImage = value;
|
|
1286
|
-
}
|
|
1287
|
-
return this;
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
public listStylePosition(value: ListStylePositionType) {
|
|
1291
|
-
if (value !== undefined && value !== null) {
|
|
1292
|
-
this.style.listStylePosition = value;
|
|
1293
|
-
}
|
|
1294
|
-
return this;
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
public listStyleType(value: ListStyleType) {
|
|
1298
|
-
if (value !== undefined && value !== null) {
|
|
1299
|
-
this.style.listStyleType = value;
|
|
1300
|
-
}
|
|
1301
|
-
return this;
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
public margin(value: number | string, unit: Units = "px") {
|
|
1305
|
-
if (value !== undefined && value !== null) {
|
|
1306
|
-
this.style.margin = toUnit(value, unit);
|
|
1307
|
-
}
|
|
1308
|
-
return this;
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
public marginBottom(value: number | string, unit: Units = "px") {
|
|
1312
|
-
if (value !== undefined && value !== null) {
|
|
1313
|
-
this.style.marginBottom = toUnit(value, unit);
|
|
1314
|
-
}
|
|
1315
|
-
return this;
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
public marginLeft(value: number | string, unit: Units = "px") {
|
|
1319
|
-
if (value !== undefined && value !== null) {
|
|
1320
|
-
this.style.marginLeft = toUnit(value, unit);
|
|
1321
|
-
}
|
|
1322
|
-
return this;
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
public marginRight(value: number | string, unit: Units = "px") {
|
|
1326
|
-
if (value !== undefined && value !== null) {
|
|
1327
|
-
this.style.marginRight = toUnit(value, unit);
|
|
1328
|
-
}
|
|
1329
|
-
return this;
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
public marginTop(value: number | string, unit: Units = "px") {
|
|
1333
|
-
if (value !== undefined && value !== null) {
|
|
1334
|
-
this.style.marginTop = toUnit(value, unit);
|
|
1335
|
-
}
|
|
1336
|
-
return this;
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
public marginInlineStart(value: number | string, unit: Units = "px") {
|
|
1340
|
-
if (value !== undefined && value !== null) {
|
|
1341
|
-
this.style.marginInlineStart = toUnit(value, unit);
|
|
1342
|
-
}
|
|
1343
|
-
return this;
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
public marginInlineEnd(value: number | string, unit: Units = "px") {
|
|
1347
|
-
if (value !== undefined && value !== null) {
|
|
1348
|
-
this.style.marginInlineEnd = toUnit(value, unit);
|
|
1349
|
-
}
|
|
1350
|
-
return this;
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
public marginBlockStart(value: number | string, unit: Units = "px") {
|
|
1354
|
-
if (value !== undefined && value !== null) {
|
|
1355
|
-
this.style.marginBlockStart = toUnit(value, unit);
|
|
1356
|
-
}
|
|
1357
|
-
return this;
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
public marginBlockEnd(value: number | string, unit: Units = "px") {
|
|
1361
|
-
if (value !== undefined && value !== null) {
|
|
1362
|
-
this.style.marginBlockEnd = toUnit(value, unit);
|
|
1363
|
-
}
|
|
1364
|
-
return this;
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
public marker(value: string) {
|
|
1368
|
-
if (value !== undefined && value !== null) {
|
|
1369
|
-
this.style.marker = value;
|
|
1370
|
-
}
|
|
1371
|
-
return this;
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
public markerEnd(value: string) {
|
|
1375
|
-
if (value !== undefined && value !== null) {
|
|
1376
|
-
this.style.markerEnd = value;
|
|
1377
|
-
}
|
|
1378
|
-
return this;
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
public markerMid(value: string) {
|
|
1382
|
-
if (value !== undefined && value !== null) {
|
|
1383
|
-
this.style.markerMid = value;
|
|
1384
|
-
}
|
|
1385
|
-
return this;
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
public markerStart(value: string) {
|
|
1389
|
-
if (value !== undefined && value !== null) {
|
|
1390
|
-
this.style.markerStart = value;
|
|
1391
|
-
}
|
|
1392
|
-
return this;
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
public mask(value: string) {
|
|
1396
|
-
if (value !== undefined && value !== null) {
|
|
1397
|
-
this.style.mask = value;
|
|
1398
|
-
}
|
|
1399
|
-
return this;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
public maskImage(value: string) {
|
|
1403
|
-
if (value !== undefined && value !== null) {
|
|
1404
|
-
this.style.maskImage = value;
|
|
1405
|
-
}
|
|
1406
|
-
return this;
|
|
1407
|
-
}
|
|
1408
|
-
|
|
1409
|
-
public maxHeight(value: number | string, unit: Units = "px") {
|
|
1410
|
-
if (value !== undefined && value !== null) {
|
|
1411
|
-
this.style.maxHeight = toUnit(value, unit);
|
|
1412
|
-
}
|
|
1413
|
-
return this;
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
public maxWidth(value: number | string, unit: Units = "px") {
|
|
1417
|
-
if (value !== undefined && value !== null) {
|
|
1418
|
-
this.style.maxWidth = toUnit(value, unit);
|
|
1419
|
-
}
|
|
1420
|
-
return this;
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
public minHeight(value: number | string, unit: Units = "px") {
|
|
1424
|
-
if (value !== undefined && value !== null) {
|
|
1425
|
-
this.style.minHeight = toUnit(value, unit);
|
|
1426
|
-
}
|
|
1427
|
-
return this;
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
public minWidth(value: number | string, unit: Units = "px") {
|
|
1431
|
-
if (value !== undefined && value !== null) {
|
|
1432
|
-
this.style.minWidth = toUnit(value, unit);
|
|
1433
|
-
}
|
|
1434
|
-
return this;
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
public msContentZoomChaining(value: string) {
|
|
1438
|
-
if (value !== undefined && value !== null) {
|
|
1439
|
-
this.style.msContentZoomChaining = value;
|
|
1440
|
-
}
|
|
1441
|
-
return this;
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
public msContentZoomLimit(value: string) {
|
|
1445
|
-
if (value !== undefined && value !== null) {
|
|
1446
|
-
this.style.msContentZoomLimit = value;
|
|
1447
|
-
}
|
|
1448
|
-
return this;
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
public msContentZoomLimitMax(value: any) {
|
|
1452
|
-
if (value !== undefined && value !== null) {
|
|
1453
|
-
this.style.msContentZoomLimitMax = value;
|
|
1454
|
-
}
|
|
1455
|
-
return this;
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
public msContentZoomLimitMin(value: any) {
|
|
1459
|
-
if (value !== undefined && value !== null) {
|
|
1460
|
-
this.style.msContentZoomLimitMin = value;
|
|
1461
|
-
}
|
|
1462
|
-
return this;
|
|
1463
|
-
}
|
|
1464
|
-
|
|
1465
|
-
public msContentZoomSnap(value: string) {
|
|
1466
|
-
if (value !== undefined && value !== null) {
|
|
1467
|
-
this.style.msContentZoomSnap = value;
|
|
1468
|
-
}
|
|
1469
|
-
return this;
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
public msContentZoomSnapPoints(value: string) {
|
|
1473
|
-
if (value !== undefined && value !== null) {
|
|
1474
|
-
this.style.msContentZoomSnapPoints = value;
|
|
1475
|
-
}
|
|
1476
|
-
return this;
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
public msContentZoomSnapType(value: string) {
|
|
1480
|
-
if (value !== undefined && value !== null) {
|
|
1481
|
-
this.style.msContentZoomSnapType = value;
|
|
1482
|
-
}
|
|
1483
|
-
return this;
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
public msContentZooming(value: string) {
|
|
1487
|
-
if (value !== undefined && value !== null) {
|
|
1488
|
-
this.style.msContentZooming = value;
|
|
1489
|
-
}
|
|
1490
|
-
return this;
|
|
1491
|
-
}
|
|
1492
|
-
|
|
1493
|
-
public msFlowFrom(value: string) {
|
|
1494
|
-
if (value !== undefined && value !== null) {
|
|
1495
|
-
this.style.msFlowFrom = value;
|
|
1496
|
-
}
|
|
1497
|
-
return this;
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
public msFlowInto(value: string) {
|
|
1501
|
-
if (value !== undefined && value !== null) {
|
|
1502
|
-
this.style.msFlowInto = value;
|
|
1503
|
-
}
|
|
1504
|
-
return this;
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
public msFontFeatureSettings(value: string) {
|
|
1508
|
-
if (value !== undefined && value !== null) {
|
|
1509
|
-
this.style.msFontFeatureSettings = value;
|
|
1510
|
-
}
|
|
1511
|
-
return this;
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
public msGridColumn(value: any) {
|
|
1515
|
-
if (value !== undefined && value !== null) {
|
|
1516
|
-
this.style.msGridColumn = value;
|
|
1517
|
-
}
|
|
1518
|
-
return this;
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
public msGridColumnAlign(value: string) {
|
|
1522
|
-
if (value !== undefined && value !== null) {
|
|
1523
|
-
this.style.msGridColumnAlign = value;
|
|
1524
|
-
}
|
|
1525
|
-
return this;
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
public msGridColumnSpan(value: any) {
|
|
1529
|
-
if (value !== undefined && value !== null) {
|
|
1530
|
-
this.style.msGridColumnSpan = value;
|
|
1531
|
-
}
|
|
1532
|
-
return this;
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
public msGridColumns(value: string) {
|
|
1536
|
-
if (value !== undefined && value !== null) {
|
|
1537
|
-
this.style.msGridColumns = value;
|
|
1538
|
-
}
|
|
1539
|
-
return this;
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
|
-
public msGridRow(value: any) {
|
|
1543
|
-
if (value !== undefined && value !== null) {
|
|
1544
|
-
this.style.msGridRow = value;
|
|
1545
|
-
}
|
|
1546
|
-
return this;
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
public msGridRowAlign(value: string) {
|
|
1550
|
-
if (value !== undefined && value !== null) {
|
|
1551
|
-
this.style.msGridRowAlign = value;
|
|
1552
|
-
}
|
|
1553
|
-
return this;
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
public msGridRowSpan(value: any) {
|
|
1557
|
-
if (value !== undefined && value !== null) {
|
|
1558
|
-
this.style.msGridRowSpan = value;
|
|
1559
|
-
}
|
|
1560
|
-
return this;
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
public msGridRows(value: string) {
|
|
1564
|
-
if (value !== undefined && value !== null) {
|
|
1565
|
-
this.style.msGridRows = value;
|
|
1566
|
-
}
|
|
1567
|
-
return this;
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
public msHighContrastAdjust(value: string) {
|
|
1571
|
-
if (value !== undefined && value !== null) {
|
|
1572
|
-
this.style.msHighContrastAdjust = value;
|
|
1573
|
-
}
|
|
1574
|
-
return this;
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
public msHyphenateLimitChars(value: string) {
|
|
1578
|
-
if (value !== undefined && value !== null) {
|
|
1579
|
-
this.style.msHyphenateLimitChars = value;
|
|
1580
|
-
}
|
|
1581
|
-
return this;
|
|
1582
|
-
}
|
|
1583
|
-
|
|
1584
|
-
public msHyphenateLimitLines(value: any) {
|
|
1585
|
-
if (value !== undefined && value !== null) {
|
|
1586
|
-
this.style.msHyphenateLimitLines = value;
|
|
1587
|
-
}
|
|
1588
|
-
return this;
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
public msHyphenateLimitZone(value: any) {
|
|
1592
|
-
if (value !== undefined && value !== null) {
|
|
1593
|
-
this.style.msHyphenateLimitZone = value;
|
|
1594
|
-
}
|
|
1595
|
-
return this;
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
public msHyphens(value: string) {
|
|
1599
|
-
if (value !== undefined && value !== null) {
|
|
1600
|
-
this.style.msHyphens = value;
|
|
1601
|
-
}
|
|
1602
|
-
return this;
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
public msImeAlign(value: string) {
|
|
1606
|
-
if (value !== undefined && value !== null) {
|
|
1607
|
-
this.style.msImeAlign = value;
|
|
1608
|
-
}
|
|
1609
|
-
return this;
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
public msOverflowStyle(value: string) {
|
|
1613
|
-
if (value !== undefined && value !== null) {
|
|
1614
|
-
this.style.msOverflowStyle = value;
|
|
1615
|
-
}
|
|
1616
|
-
return this;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
public msScrollChaining(value: string) {
|
|
1620
|
-
if (value !== undefined && value !== null) {
|
|
1621
|
-
this.style.msScrollChaining = value;
|
|
1622
|
-
}
|
|
1623
|
-
return this;
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
public msScrollLimit(value: string) {
|
|
1627
|
-
if (value !== undefined && value !== null) {
|
|
1628
|
-
this.style.msScrollLimit = value;
|
|
1629
|
-
}
|
|
1630
|
-
return this;
|
|
1631
|
-
}
|
|
1632
|
-
|
|
1633
|
-
public msScrollLimitXMax(value: any) {
|
|
1634
|
-
if (value !== undefined && value !== null) {
|
|
1635
|
-
this.style.msScrollLimitXMax = value;
|
|
1636
|
-
}
|
|
1637
|
-
return this;
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
|
-
public msScrollLimitXMin(value: any) {
|
|
1641
|
-
if (value !== undefined && value !== null) {
|
|
1642
|
-
this.style.msScrollLimitXMin = value;
|
|
1643
|
-
}
|
|
1644
|
-
return this;
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
public msScrollLimitYMax(value: any) {
|
|
1648
|
-
if (value !== undefined && value !== null) {
|
|
1649
|
-
this.style.msScrollLimitYMax = value;
|
|
1650
|
-
}
|
|
1651
|
-
return this;
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
public msScrollLimitYMin(value: any) {
|
|
1655
|
-
if (value !== undefined && value !== null) {
|
|
1656
|
-
this.style.msScrollLimitYMin = value;
|
|
1657
|
-
}
|
|
1658
|
-
return this;
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
public msScrollRails(value: string) {
|
|
1662
|
-
if (value !== undefined && value !== null) {
|
|
1663
|
-
this.style.msScrollRails = value;
|
|
1664
|
-
}
|
|
1665
|
-
return this;
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
|
-
public msScrollSnapPointsX(value: string) {
|
|
1669
|
-
if (value !== undefined && value !== null) {
|
|
1670
|
-
this.style.msScrollSnapPointsX = value;
|
|
1671
|
-
}
|
|
1672
|
-
return this;
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
public msScrollSnapPointsY(value: string) {
|
|
1676
|
-
if (value !== undefined && value !== null) {
|
|
1677
|
-
this.style.msScrollSnapPointsY = value;
|
|
1678
|
-
}
|
|
1679
|
-
return this;
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
public msScrollSnapType(value: string) {
|
|
1683
|
-
if (value !== undefined && value !== null) {
|
|
1684
|
-
this.style.msScrollSnapType = value;
|
|
1685
|
-
}
|
|
1686
|
-
return this;
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
public msScrollSnapX(value: string) {
|
|
1690
|
-
if (value !== undefined && value !== null) {
|
|
1691
|
-
this.style.msScrollSnapX = value;
|
|
1692
|
-
}
|
|
1693
|
-
return this;
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
public msScrollSnapY(value: string) {
|
|
1697
|
-
if (value !== undefined && value !== null) {
|
|
1698
|
-
this.style.msScrollSnapY = value;
|
|
1699
|
-
}
|
|
1700
|
-
return this;
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
|
-
public msScrollTranslation(value: string) {
|
|
1704
|
-
if (value !== undefined && value !== null) {
|
|
1705
|
-
this.style.msScrollTranslation = value;
|
|
1706
|
-
}
|
|
1707
|
-
return this;
|
|
1708
|
-
}
|
|
1709
|
-
|
|
1710
|
-
public msTextCombineHorizontal(value: string) {
|
|
1711
|
-
if (value !== undefined && value !== null) {
|
|
1712
|
-
this.style.msTextCombineHorizontal = value;
|
|
1713
|
-
}
|
|
1714
|
-
return this;
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
public msTextSizeAdjust(value: any) {
|
|
1718
|
-
if (value !== undefined && value !== null) {
|
|
1719
|
-
this.style.msTextSizeAdjust = value;
|
|
1720
|
-
}
|
|
1721
|
-
return this;
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
|
-
public msTouchAction(value: string) {
|
|
1725
|
-
if (value !== undefined && value !== null) {
|
|
1726
|
-
this.style.msTouchAction = value;
|
|
1727
|
-
}
|
|
1728
|
-
return this;
|
|
1729
|
-
}
|
|
1730
|
-
|
|
1731
|
-
public msTouchSelect(value: string) {
|
|
1732
|
-
if (value !== undefined && value !== null) {
|
|
1733
|
-
this.style.msTouchSelect = value;
|
|
1734
|
-
}
|
|
1735
|
-
return this;
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1738
|
-
public msUserSelect(value: string) {
|
|
1739
|
-
if (value !== undefined && value !== null) {
|
|
1740
|
-
this.style.msUserSelect = value;
|
|
1741
|
-
}
|
|
1742
|
-
return this;
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
public msWrapFlow(value: string) {
|
|
1746
|
-
if (value !== undefined && value !== null) {
|
|
1747
|
-
this.style.msWrapFlow = value;
|
|
1748
|
-
}
|
|
1749
|
-
return this;
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
public msWrapMargin(value: any) {
|
|
1753
|
-
if (value !== undefined && value !== null) {
|
|
1754
|
-
this.style.msWrapMargin = value;
|
|
1755
|
-
}
|
|
1756
|
-
return this;
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
public msWrapThrough(value: string) {
|
|
1760
|
-
if (value !== undefined && value !== null) {
|
|
1761
|
-
this.style.msWrapThrough = value;
|
|
1762
|
-
}
|
|
1763
|
-
return this;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
public objectFit(value: ObjectFitType) {
|
|
1767
|
-
if (value !== undefined && value !== null) {
|
|
1768
|
-
this.style.objectFit = value;
|
|
1769
|
-
}
|
|
1770
|
-
return this;
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
public objectPosition(value: ObjectPositionType) {
|
|
1774
|
-
if (value !== undefined && value !== null) {
|
|
1775
|
-
this.style.objectPosition = value;
|
|
1776
|
-
}
|
|
1777
|
-
return this;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
public opacity(value: string) {
|
|
1781
|
-
if (value !== undefined && value !== null) {
|
|
1782
|
-
this.style.opacity = value;
|
|
1783
|
-
}
|
|
1784
|
-
return this;
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
public order(value: string) {
|
|
1788
|
-
if (value !== undefined && value !== null) {
|
|
1789
|
-
this.style.order = value;
|
|
1790
|
-
}
|
|
1791
|
-
return this;
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
public orphans(value: string) {
|
|
1795
|
-
if (value !== undefined && value !== null) {
|
|
1796
|
-
this.style.orphans = value;
|
|
1797
|
-
}
|
|
1798
|
-
return this;
|
|
1799
|
-
}
|
|
1800
|
-
|
|
1801
|
-
public outline(value: string) {
|
|
1802
|
-
if (value !== undefined && value !== null) {
|
|
1803
|
-
this.style.outline = value;
|
|
1804
|
-
}
|
|
1805
|
-
return this;
|
|
1806
|
-
}
|
|
1807
|
-
|
|
1808
|
-
public outlineColor(value: string | ColorItem) {
|
|
1809
|
-
if (value !== undefined && value !== null) {
|
|
1810
|
-
this.style.outlineColor = value;
|
|
1811
|
-
}
|
|
1812
|
-
return this;
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
public outlineOffset(value: string) {
|
|
1816
|
-
if (value !== undefined && value !== null) {
|
|
1817
|
-
this.style.outlineOffset = value;
|
|
1818
|
-
}
|
|
1819
|
-
return this;
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
public outlineStyle(value: BorderStyleType) {
|
|
1823
|
-
if (value !== undefined && value !== null) {
|
|
1824
|
-
this.style.outlineStyle = value;
|
|
1825
|
-
}
|
|
1826
|
-
return this;
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
public outlineWidth(value: CommonWidthType) {
|
|
1830
|
-
if (value !== undefined && value !== null) {
|
|
1831
|
-
this.style.outlineWidth = value;
|
|
1832
|
-
}
|
|
1833
|
-
return this;
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
public overflow(value: OverFlowType) {
|
|
1837
|
-
if (value !== undefined && value !== null) {
|
|
1838
|
-
this.style.overflow = value;
|
|
1839
|
-
}
|
|
1840
|
-
return this;
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
public overflowX(value: OverFlowType) {
|
|
1844
|
-
if (value !== undefined && value !== null) {
|
|
1845
|
-
this.style.overflowX = value;
|
|
1846
|
-
}
|
|
1847
|
-
return this;
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
public overflowY(value: OverFlowType) {
|
|
1851
|
-
if (value !== undefined && value !== null) {
|
|
1852
|
-
this.style.overflowY = value;
|
|
1853
|
-
}
|
|
1854
|
-
return this;
|
|
1855
|
-
}
|
|
1856
|
-
|
|
1857
|
-
public padding(value: number | string, unit: Units = "px") {
|
|
1858
|
-
if (value !== undefined && value !== null) {
|
|
1859
|
-
this.style.padding = toUnit(value, unit);
|
|
1860
|
-
}
|
|
1861
|
-
return this;
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
public paddingBottom(value: number | string, unit: Units = "px") {
|
|
1865
|
-
if (value !== undefined && value !== null) {
|
|
1866
|
-
this.style.paddingBottom = toUnit(value, unit);
|
|
1867
|
-
}
|
|
1868
|
-
return this;
|
|
1869
|
-
}
|
|
1870
|
-
|
|
1871
|
-
public paddingLeft(value: number | string, unit: Units = "px") {
|
|
1872
|
-
if (value !== undefined && value !== null) {
|
|
1873
|
-
this.style.paddingLeft = toUnit(value, unit);
|
|
1874
|
-
}
|
|
1875
|
-
return this;
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
|
-
public paddingRight(value: number | string, unit: Units = "px") {
|
|
1879
|
-
if (value !== undefined && value !== null) {
|
|
1880
|
-
this.style.paddingRight = toUnit(value, unit);
|
|
1881
|
-
}
|
|
1882
|
-
return this;
|
|
1883
|
-
}
|
|
1884
|
-
|
|
1885
|
-
public paddingTop(value: number | string, unit: Units = "px") {
|
|
1886
|
-
if (value !== undefined && value !== null) {
|
|
1887
|
-
this.style.paddingTop = toUnit(value, unit);
|
|
1888
|
-
}
|
|
1889
|
-
return this;
|
|
1890
|
-
}
|
|
1891
|
-
|
|
1892
|
-
public paddingInlineStart(value: number | string, unit: Units = "px") {
|
|
1893
|
-
if (value !== undefined && value !== null) {
|
|
1894
|
-
this.style.paddingInlineStart = toUnit(value, unit);
|
|
1895
|
-
}
|
|
1896
|
-
return this;
|
|
1897
|
-
}
|
|
1898
|
-
|
|
1899
|
-
public paddingInlineEnd(value: number | string, unit: Units = "px") {
|
|
1900
|
-
if (value !== undefined && value !== null) {
|
|
1901
|
-
this.style.paddingInlineEnd = toUnit(value, unit);
|
|
1902
|
-
}
|
|
1903
|
-
return this;
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
public pageBreakAfter(value: PageBreakCommonType) {
|
|
1907
|
-
if (value !== undefined && value !== null) {
|
|
1908
|
-
this.style.pageBreakAfter = value;
|
|
1909
|
-
}
|
|
1910
|
-
return this;
|
|
1911
|
-
}
|
|
1912
|
-
|
|
1913
|
-
public pageBreakBefore(value: PageBreakCommonType) {
|
|
1914
|
-
if (value !== undefined && value !== null) {
|
|
1915
|
-
this.style.pageBreakBefore = value;
|
|
1916
|
-
}
|
|
1917
|
-
return this;
|
|
1918
|
-
}
|
|
1919
|
-
|
|
1920
|
-
public pageBreakInside(value: PageBreakInsideType) {
|
|
1921
|
-
if (value !== undefined && value !== null) {
|
|
1922
|
-
this.style.pageBreakInside = value;
|
|
1923
|
-
}
|
|
1924
|
-
return this;
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
|
-
public penAction(value: string) {
|
|
1928
|
-
if (value !== undefined && value !== null) {
|
|
1929
|
-
this.style.penAction = value;
|
|
1930
|
-
}
|
|
1931
|
-
return this;
|
|
1932
|
-
}
|
|
1933
|
-
|
|
1934
|
-
public perspective(value: string) {
|
|
1935
|
-
if (value !== undefined && value !== null) {
|
|
1936
|
-
this.style.perspective = value;
|
|
1937
|
-
}
|
|
1938
|
-
return this;
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
public perspectiveOrigin(value: string) {
|
|
1942
|
-
if (value !== undefined && value !== null) {
|
|
1943
|
-
this.style.perspectiveOrigin = value;
|
|
1944
|
-
}
|
|
1945
|
-
return this;
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
public pointerEvents(value: string) {
|
|
1949
|
-
if (value !== undefined && value !== null) {
|
|
1950
|
-
this.style.pointerEvents = value;
|
|
1951
|
-
}
|
|
1952
|
-
return this;
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
|
-
public position(value: StylePosition) {
|
|
1956
|
-
if (value !== undefined && value !== null) {
|
|
1957
|
-
this.style.position = value;
|
|
1958
|
-
}
|
|
1959
|
-
return this;
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
|
-
public quotes(value: string) {
|
|
1963
|
-
if (value !== undefined && value !== null) {
|
|
1964
|
-
this.style.quotes = value;
|
|
1965
|
-
}
|
|
1966
|
-
return this;
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1969
|
-
public resize(value: ResizeType) {
|
|
1970
|
-
if (value !== undefined && value !== null) {
|
|
1971
|
-
this.style.resize = value;
|
|
1972
|
-
}
|
|
1973
|
-
return this;
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
public right(value: number | string, unit: Units = "px") {
|
|
1977
|
-
if (value !== undefined && value !== null) {
|
|
1978
|
-
this.style.right = toUnit(value, unit);
|
|
1979
|
-
}
|
|
1980
|
-
return this;
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
public rotate(value: string) {
|
|
1984
|
-
if (value !== undefined && value !== null) {
|
|
1985
|
-
this.style.rotate = value;
|
|
1986
|
-
}
|
|
1987
|
-
return this;
|
|
1988
|
-
}
|
|
1989
|
-
|
|
1990
|
-
public rowGap(value: string) {
|
|
1991
|
-
if (value !== undefined && value !== null) {
|
|
1992
|
-
this.style.rowGap = value;
|
|
1993
|
-
}
|
|
1994
|
-
return this;
|
|
1995
|
-
}
|
|
1996
|
-
|
|
1997
|
-
public rubyAlign(value: string) {
|
|
1998
|
-
if (value !== undefined && value !== null) {
|
|
1999
|
-
this.style.rubyAlign = value;
|
|
2000
|
-
}
|
|
2001
|
-
return this;
|
|
2002
|
-
}
|
|
2003
|
-
|
|
2004
|
-
public rubyOverhang(value: string) {
|
|
2005
|
-
if (value !== undefined && value !== null) {
|
|
2006
|
-
this.style.rubyOverhang = value;
|
|
2007
|
-
}
|
|
2008
|
-
return this;
|
|
2009
|
-
}
|
|
2010
|
-
|
|
2011
|
-
public rubyPosition(value: string) {
|
|
2012
|
-
if (value !== undefined && value !== null) {
|
|
2013
|
-
this.style.rubyPosition = value;
|
|
2014
|
-
}
|
|
2015
|
-
return this;
|
|
2016
|
-
}
|
|
2017
|
-
|
|
2018
|
-
public scale(value: string) {
|
|
2019
|
-
if (value !== undefined && value !== null) {
|
|
2020
|
-
this.style.scale = value;
|
|
2021
|
-
}
|
|
2022
|
-
return this;
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
public custom(name: string, value: string) {
|
|
2026
|
-
this.style[name] = value;
|
|
2027
|
-
return this;
|
|
2028
|
-
}
|
|
2029
|
-
|
|
2030
|
-
public scrollBarWidth(value: string): AtomStyleRules;
|
|
2031
|
-
public scrollBarWidth(value: number, unit?: Units): AtomStyleRules;
|
|
2032
|
-
public scrollBarWidth(value: number | string, unit?: Units) {
|
|
2033
|
-
this.style["scrollbar-width"] = toUnit(value, unit);
|
|
2034
|
-
this.style.subclasses ??= {};
|
|
2035
|
-
const ws = this.style.subclasses["::-webkit-scrollbar"] ??= {};
|
|
2036
|
-
ws.width = toUnit(value, unit);
|
|
2037
|
-
return this;
|
|
2038
|
-
}
|
|
2039
|
-
|
|
2040
|
-
public scrollBarColor(thumb: ColorItem | string, bg: ColorItem | string) {
|
|
2041
|
-
this.style["scrollbar-color"] = `${thumb} ${bg}`;
|
|
2042
|
-
this.style.subclasses ??= {};
|
|
2043
|
-
const ws = this.style.subclasses["::-webkit-scrollbar-thumb"] ??= {};
|
|
2044
|
-
ws.backgroundColor = bg;
|
|
2045
|
-
ws.borderRadius = "20px";
|
|
2046
|
-
ws.border = `3px solid ${thumb}`;
|
|
2047
|
-
return this;
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
public stopColor(value: string | ColorItem) {
|
|
2051
|
-
if (value !== undefined && value !== null) {
|
|
2052
|
-
this.style.stopColor = value;
|
|
2053
|
-
}
|
|
2054
|
-
return this;
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
public stopOpacity(value: string) {
|
|
2058
|
-
if (value !== undefined && value !== null) {
|
|
2059
|
-
this.style.stopOpacity = value;
|
|
2060
|
-
}
|
|
2061
|
-
return this;
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
public stroke(value: string) {
|
|
2065
|
-
if (value !== undefined && value !== null) {
|
|
2066
|
-
this.style.stroke = value;
|
|
2067
|
-
}
|
|
2068
|
-
return this;
|
|
2069
|
-
}
|
|
2070
|
-
|
|
2071
|
-
public strokeDasharray(value: string) {
|
|
2072
|
-
if (value !== undefined && value !== null) {
|
|
2073
|
-
this.style.strokeDasharray = value;
|
|
2074
|
-
}
|
|
2075
|
-
return this;
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
public strokeDashoffset(value: string) {
|
|
2079
|
-
if (value !== undefined && value !== null) {
|
|
2080
|
-
this.style.strokeDashoffset = value;
|
|
2081
|
-
}
|
|
2082
|
-
return this;
|
|
2083
|
-
}
|
|
2084
|
-
|
|
2085
|
-
public strokeLinecap(value: string) {
|
|
2086
|
-
if (value !== undefined && value !== null) {
|
|
2087
|
-
this.style.strokeLinecap = value;
|
|
2088
|
-
}
|
|
2089
|
-
return this;
|
|
2090
|
-
}
|
|
2091
|
-
|
|
2092
|
-
public strokeLinejoin(value: string) {
|
|
2093
|
-
if (value !== undefined && value !== null) {
|
|
2094
|
-
this.style.strokeLinejoin = value;
|
|
2095
|
-
}
|
|
2096
|
-
return this;
|
|
2097
|
-
}
|
|
2098
|
-
|
|
2099
|
-
public strokeMiterlimit(value: string) {
|
|
2100
|
-
if (value !== undefined && value !== null) {
|
|
2101
|
-
this.style.strokeMiterlimit = value;
|
|
2102
|
-
}
|
|
2103
|
-
return this;
|
|
2104
|
-
}
|
|
2105
|
-
|
|
2106
|
-
public strokeOpacity(value: string) {
|
|
2107
|
-
if (value !== undefined && value !== null) {
|
|
2108
|
-
this.style.strokeOpacity = value;
|
|
2109
|
-
}
|
|
2110
|
-
return this;
|
|
2111
|
-
}
|
|
2112
|
-
|
|
2113
|
-
public strokeWidth(value: string) {
|
|
2114
|
-
if (value !== undefined && value !== null) {
|
|
2115
|
-
this.style.strokeWidth = value;
|
|
2116
|
-
}
|
|
2117
|
-
return this;
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
public tableLayout(value: TableLayoutType) {
|
|
2121
|
-
if (value !== undefined && value !== null) {
|
|
2122
|
-
this.style.tableLayout = value;
|
|
2123
|
-
}
|
|
2124
|
-
return this;
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
|
-
public textAlign(value: TextAlignType) {
|
|
2128
|
-
if (value !== undefined && value !== null) {
|
|
2129
|
-
this.style.textAlign = value;
|
|
2130
|
-
}
|
|
2131
|
-
return this;
|
|
2132
|
-
}
|
|
2133
|
-
|
|
2134
|
-
public textAlignLast(value: TextAlignLastType) {
|
|
2135
|
-
if (value !== undefined && value !== null) {
|
|
2136
|
-
this.style.textAlignLast = value;
|
|
2137
|
-
}
|
|
2138
|
-
return this;
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
public textAnchor(value: string) {
|
|
2142
|
-
if (value !== undefined && value !== null) {
|
|
2143
|
-
this.style.textAnchor = value;
|
|
2144
|
-
}
|
|
2145
|
-
return this;
|
|
2146
|
-
}
|
|
2147
|
-
|
|
2148
|
-
public textCombineUpright(value: string) {
|
|
2149
|
-
if (value !== undefined && value !== null) {
|
|
2150
|
-
this.style.textCombineUpright = value;
|
|
2151
|
-
}
|
|
2152
|
-
return this;
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
|
-
public textDecoration(value: TextDecorationType) {
|
|
2156
|
-
if (value !== undefined && value !== null) {
|
|
2157
|
-
this.style.textDecoration = value;
|
|
2158
|
-
}
|
|
2159
|
-
return this;
|
|
2160
|
-
}
|
|
2161
|
-
|
|
2162
|
-
public textIndent(value: string) {
|
|
2163
|
-
if (value !== undefined && value !== null) {
|
|
2164
|
-
this.style.textIndent = value;
|
|
2165
|
-
}
|
|
2166
|
-
return this;
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
|
-
public textJustify(value: JustifyType) {
|
|
2170
|
-
if (value !== undefined && value !== null) {
|
|
2171
|
-
this.style.textJustify = value;
|
|
2172
|
-
}
|
|
2173
|
-
return this;
|
|
2174
|
-
}
|
|
2175
|
-
|
|
2176
|
-
public textKashida(value: string) {
|
|
2177
|
-
if (value !== undefined && value !== null) {
|
|
2178
|
-
this.style.textKashida = value;
|
|
2179
|
-
}
|
|
2180
|
-
return this;
|
|
2181
|
-
}
|
|
2182
|
-
|
|
2183
|
-
public textKashidaSpace(value: string) {
|
|
2184
|
-
if (value !== undefined && value !== null) {
|
|
2185
|
-
this.style.textKashidaSpace = value;
|
|
2186
|
-
}
|
|
2187
|
-
return this;
|
|
2188
|
-
}
|
|
2189
|
-
|
|
2190
|
-
public textOverflow(value: string) {
|
|
2191
|
-
if (value !== undefined && value !== null) {
|
|
2192
|
-
this.style.textOverflow = value;
|
|
2193
|
-
}
|
|
2194
|
-
return this;
|
|
2195
|
-
}
|
|
2196
|
-
|
|
2197
|
-
public textShadow(value: string) {
|
|
2198
|
-
if (value !== undefined && value !== null) {
|
|
2199
|
-
this.style.textShadow = value;
|
|
2200
|
-
}
|
|
2201
|
-
return this;
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
public textTransform(value: TextTransformType) {
|
|
2205
|
-
if (value !== undefined && value !== null) {
|
|
2206
|
-
this.style.textTransform = value;
|
|
2207
|
-
}
|
|
2208
|
-
return this;
|
|
2209
|
-
}
|
|
2210
|
-
|
|
2211
|
-
public textUnderlinePosition(value: string) {
|
|
2212
|
-
if (value !== undefined && value !== null) {
|
|
2213
|
-
this.style.textUnderlinePosition = value;
|
|
2214
|
-
}
|
|
2215
|
-
return this;
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
public top(value: number | string, unit: Units = "px") {
|
|
2219
|
-
if (value !== undefined && value !== null) {
|
|
2220
|
-
this.style.top = toUnit(value, unit);
|
|
2221
|
-
}
|
|
2222
|
-
return this;
|
|
2223
|
-
}
|
|
2224
|
-
|
|
2225
|
-
public touchAction(value: string) {
|
|
2226
|
-
if (value !== undefined && value !== null) {
|
|
2227
|
-
this.style.touchAction = value;
|
|
2228
|
-
}
|
|
2229
|
-
return this;
|
|
2230
|
-
}
|
|
2231
|
-
|
|
2232
|
-
public transform(value: TransformType) {
|
|
2233
|
-
if (value !== undefined && value !== null) {
|
|
2234
|
-
this.style.transform = value;
|
|
2235
|
-
}
|
|
2236
|
-
return this;
|
|
2237
|
-
}
|
|
2238
|
-
|
|
2239
|
-
public transformOrigin(value: string) {
|
|
2240
|
-
if (value !== undefined && value !== null) {
|
|
2241
|
-
this.style.transformOrigin = value;
|
|
2242
|
-
}
|
|
2243
|
-
return this;
|
|
2244
|
-
}
|
|
2245
|
-
|
|
2246
|
-
public transformStyle(value: TransformStyleType) {
|
|
2247
|
-
if (value !== undefined && value !== null) {
|
|
2248
|
-
this.style.transformStyle = value;
|
|
2249
|
-
}
|
|
2250
|
-
return this;
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
|
-
public transition(value: string) {
|
|
2254
|
-
if (value !== undefined && value !== null) {
|
|
2255
|
-
this.style.transition = value;
|
|
2256
|
-
}
|
|
2257
|
-
return this;
|
|
2258
|
-
}
|
|
2259
|
-
|
|
2260
|
-
public transitionDelay(value: string) {
|
|
2261
|
-
if (value !== undefined && value !== null) {
|
|
2262
|
-
this.style.transitionDelay = value;
|
|
2263
|
-
}
|
|
2264
|
-
return this;
|
|
2265
|
-
}
|
|
2266
|
-
|
|
2267
|
-
public transitionDuration(value: string) {
|
|
2268
|
-
if (value !== undefined && value !== null) {
|
|
2269
|
-
this.style.transitionDuration = value;
|
|
2270
|
-
}
|
|
2271
|
-
return this;
|
|
2272
|
-
}
|
|
2273
|
-
|
|
2274
|
-
public transitionProperty(value: string) {
|
|
2275
|
-
if (value !== undefined && value !== null) {
|
|
2276
|
-
this.style.transitionProperty = value;
|
|
2277
|
-
}
|
|
2278
|
-
return this;
|
|
2279
|
-
}
|
|
2280
|
-
|
|
2281
|
-
public transitionTimingFunction(value: string) {
|
|
2282
|
-
if (value !== undefined && value !== null) {
|
|
2283
|
-
this.style.transitionTimingFunction = value;
|
|
2284
|
-
}
|
|
2285
|
-
return this;
|
|
2286
|
-
}
|
|
2287
|
-
|
|
2288
|
-
public translate(value: string) {
|
|
2289
|
-
if (value !== undefined && value !== null) {
|
|
2290
|
-
this.style.translate = value;
|
|
2291
|
-
}
|
|
2292
|
-
return this;
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
|
-
public unicodeBidi(value: string) {
|
|
2296
|
-
if (value !== undefined && value !== null) {
|
|
2297
|
-
this.style.unicodeBidi = value;
|
|
2298
|
-
}
|
|
2299
|
-
return this;
|
|
2300
|
-
}
|
|
2301
|
-
|
|
2302
|
-
public userSelect(value: string) {
|
|
2303
|
-
if (value !== undefined && value !== null) {
|
|
2304
|
-
this.style.userSelect = value;
|
|
2305
|
-
}
|
|
2306
|
-
return this;
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
public userDrag(value: string) {
|
|
2310
|
-
if (value !== undefined && value !== null) {
|
|
2311
|
-
this.style.userDrag = value;
|
|
2312
|
-
}
|
|
2313
|
-
return this;
|
|
2314
|
-
}
|
|
2315
|
-
|
|
2316
|
-
public verticalAlign(value: string) {
|
|
2317
|
-
if (value !== undefined && value !== null) {
|
|
2318
|
-
this.style.verticalAlign = value;
|
|
2319
|
-
}
|
|
2320
|
-
return this;
|
|
2321
|
-
}
|
|
2322
|
-
|
|
2323
|
-
public visibility(value: VisibilityType) {
|
|
2324
|
-
if (value !== undefined && value !== null) {
|
|
2325
|
-
this.style.visibility = value;
|
|
2326
|
-
}
|
|
2327
|
-
return this;
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
|
-
public webkitAlignContent(value: string) {
|
|
2331
|
-
if (value !== undefined && value !== null) {
|
|
2332
|
-
this.style.webkitAlignContent = value;
|
|
2333
|
-
}
|
|
2334
|
-
return this;
|
|
2335
|
-
}
|
|
2336
|
-
|
|
2337
|
-
public webkitAlignItems(value: string) {
|
|
2338
|
-
if (value !== undefined && value !== null) {
|
|
2339
|
-
this.style.webkitAlignItems = value;
|
|
2340
|
-
}
|
|
2341
|
-
return this;
|
|
2342
|
-
}
|
|
2343
|
-
|
|
2344
|
-
public webkitAlignSelf(value: string) {
|
|
2345
|
-
if (value !== undefined && value !== null) {
|
|
2346
|
-
this.style.webkitAlignSelf = value;
|
|
2347
|
-
}
|
|
2348
|
-
return this;
|
|
2349
|
-
}
|
|
2350
|
-
|
|
2351
|
-
public webkitAnimation(value: string) {
|
|
2352
|
-
if (value !== undefined && value !== null) {
|
|
2353
|
-
this.style.webkitAnimation = value;
|
|
2354
|
-
}
|
|
2355
|
-
return this;
|
|
2356
|
-
}
|
|
2357
|
-
|
|
2358
|
-
public webkitAnimationDelay(value: string) {
|
|
2359
|
-
if (value !== undefined && value !== null) {
|
|
2360
|
-
this.style.webkitAnimationDelay = value;
|
|
2361
|
-
}
|
|
2362
|
-
return this;
|
|
2363
|
-
}
|
|
2364
|
-
|
|
2365
|
-
public webkitAnimationDirection(value: string) {
|
|
2366
|
-
if (value !== undefined && value !== null) {
|
|
2367
|
-
this.style.webkitAnimationDirection = value;
|
|
2368
|
-
}
|
|
2369
|
-
return this;
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
public webkitAnimationDuration(value: string) {
|
|
2373
|
-
if (value !== undefined && value !== null) {
|
|
2374
|
-
this.style.webkitAnimationDuration = value;
|
|
2375
|
-
}
|
|
2376
|
-
return this;
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
-
public webkitAnimationFillMode(value: string) {
|
|
2380
|
-
if (value !== undefined && value !== null) {
|
|
2381
|
-
this.style.webkitAnimationFillMode = value;
|
|
2382
|
-
}
|
|
2383
|
-
return this;
|
|
2384
|
-
}
|
|
2385
|
-
|
|
2386
|
-
public webkitAnimationIterationCount(value: string) {
|
|
2387
|
-
if (value !== undefined && value !== null) {
|
|
2388
|
-
this.style.webkitAnimationIterationCount = value;
|
|
2389
|
-
}
|
|
2390
|
-
return this;
|
|
2391
|
-
}
|
|
2392
|
-
|
|
2393
|
-
public webkitAnimationName(value: string) {
|
|
2394
|
-
if (value !== undefined && value !== null) {
|
|
2395
|
-
this.style.webkitAnimationName = value;
|
|
2396
|
-
}
|
|
2397
|
-
return this;
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
public webkitAnimationPlayState(value: string) {
|
|
2401
|
-
if (value !== undefined && value !== null) {
|
|
2402
|
-
this.style.webkitAnimationPlayState = value;
|
|
2403
|
-
}
|
|
2404
|
-
return this;
|
|
2405
|
-
}
|
|
2406
|
-
|
|
2407
|
-
public webkitAnimationTimingFunction(value: string) {
|
|
2408
|
-
if (value !== undefined && value !== null) {
|
|
2409
|
-
this.style.webkitAnimationTimingFunction = value;
|
|
2410
|
-
}
|
|
2411
|
-
return this;
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
|
-
public webkitAppearance(value: string) {
|
|
2415
|
-
if (value !== undefined && value !== null) {
|
|
2416
|
-
this.style.webkitAppearance = value;
|
|
2417
|
-
}
|
|
2418
|
-
return this;
|
|
2419
|
-
}
|
|
2420
|
-
|
|
2421
|
-
public webkitBackfaceVisibility(value: string) {
|
|
2422
|
-
if (value !== undefined && value !== null) {
|
|
2423
|
-
this.style.webkitBackfaceVisibility = value;
|
|
2424
|
-
}
|
|
2425
|
-
return this;
|
|
2426
|
-
}
|
|
2427
|
-
|
|
2428
|
-
public webkitBackgroundClip(value: string) {
|
|
2429
|
-
if (value !== undefined && value !== null) {
|
|
2430
|
-
this.style.webkitBackgroundClip = value;
|
|
2431
|
-
}
|
|
2432
|
-
return this;
|
|
2433
|
-
}
|
|
2434
|
-
|
|
2435
|
-
public webkitBackgroundOrigin(value: string) {
|
|
2436
|
-
if (value !== undefined && value !== null) {
|
|
2437
|
-
this.style.webkitBackgroundOrigin = value;
|
|
2438
|
-
}
|
|
2439
|
-
return this;
|
|
2440
|
-
}
|
|
2441
|
-
|
|
2442
|
-
public webkitBackgroundSize(value: string) {
|
|
2443
|
-
if (value !== undefined && value !== null) {
|
|
2444
|
-
this.style.webkitBackgroundSize = value;
|
|
2445
|
-
}
|
|
2446
|
-
return this;
|
|
2447
|
-
}
|
|
2448
|
-
|
|
2449
|
-
public webkitBorderBottomLeftRadius(value: string) {
|
|
2450
|
-
if (value !== undefined && value !== null) {
|
|
2451
|
-
this.style.webkitBorderBottomLeftRadius = value;
|
|
2452
|
-
}
|
|
2453
|
-
return this;
|
|
2454
|
-
}
|
|
2455
|
-
|
|
2456
|
-
public webkitBorderBottomRightRadius(value: string) {
|
|
2457
|
-
if (value !== undefined && value !== null) {
|
|
2458
|
-
this.style.webkitBorderBottomRightRadius = value;
|
|
2459
|
-
}
|
|
2460
|
-
return this;
|
|
2461
|
-
}
|
|
2462
|
-
|
|
2463
|
-
public webkitBorderImage(value: string) {
|
|
2464
|
-
if (value !== undefined && value !== null) {
|
|
2465
|
-
this.style.webkitBorderImage = value;
|
|
2466
|
-
}
|
|
2467
|
-
return this;
|
|
2468
|
-
}
|
|
2469
|
-
|
|
2470
|
-
public webkitBorderRadius(value: string) {
|
|
2471
|
-
if (value !== undefined && value !== null) {
|
|
2472
|
-
this.style.webkitBorderRadius = value;
|
|
2473
|
-
}
|
|
2474
|
-
return this;
|
|
2475
|
-
}
|
|
2476
|
-
|
|
2477
|
-
public webkitBorderTopLeftRadius(value: string) {
|
|
2478
|
-
if (value !== undefined && value !== null) {
|
|
2479
|
-
this.style.webkitBorderTopLeftRadius = value;
|
|
2480
|
-
}
|
|
2481
|
-
return this;
|
|
2482
|
-
}
|
|
2483
|
-
|
|
2484
|
-
public webkitBorderTopRightRadius(value: string) {
|
|
2485
|
-
if (value !== undefined && value !== null) {
|
|
2486
|
-
this.style.webkitBorderTopRightRadius = value;
|
|
2487
|
-
}
|
|
2488
|
-
return this;
|
|
2489
|
-
}
|
|
2490
|
-
|
|
2491
|
-
public webkitBoxAlign(value: string) {
|
|
2492
|
-
if (value !== undefined && value !== null) {
|
|
2493
|
-
this.style.webkitBoxAlign = value;
|
|
2494
|
-
}
|
|
2495
|
-
return this;
|
|
2496
|
-
}
|
|
2497
|
-
|
|
2498
|
-
public webkitBoxDirection(value: string) {
|
|
2499
|
-
if (value !== undefined && value !== null) {
|
|
2500
|
-
this.style.webkitBoxDirection = value;
|
|
2501
|
-
}
|
|
2502
|
-
return this;
|
|
2503
|
-
}
|
|
2504
|
-
|
|
2505
|
-
public webkitBoxFlex(value: string) {
|
|
2506
|
-
if (value !== undefined && value !== null) {
|
|
2507
|
-
this.style.webkitBoxFlex = value;
|
|
2508
|
-
}
|
|
2509
|
-
return this;
|
|
2510
|
-
}
|
|
2511
|
-
|
|
2512
|
-
public webkitBoxOrdinalGroup(value: string) {
|
|
2513
|
-
if (value !== undefined && value !== null) {
|
|
2514
|
-
this.style.webkitBoxOrdinalGroup = value;
|
|
2515
|
-
}
|
|
2516
|
-
return this;
|
|
2517
|
-
}
|
|
2518
|
-
|
|
2519
|
-
public webkitBoxOrient(value: string) {
|
|
2520
|
-
if (value !== undefined && value !== null) {
|
|
2521
|
-
this.style.webkitBoxOrient = value;
|
|
2522
|
-
}
|
|
2523
|
-
return this;
|
|
2524
|
-
}
|
|
2525
|
-
|
|
2526
|
-
public webkitBoxPack(value: string) {
|
|
2527
|
-
if (value !== undefined && value !== null) {
|
|
2528
|
-
this.style.webkitBoxPack = value;
|
|
2529
|
-
}
|
|
2530
|
-
return this;
|
|
2531
|
-
}
|
|
2532
|
-
|
|
2533
|
-
public webkitBoxSizing(value: string) {
|
|
2534
|
-
if (value !== undefined && value !== null) {
|
|
2535
|
-
this.style.webkitBoxSizing = value;
|
|
2536
|
-
}
|
|
2537
|
-
return this;
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
|
-
public webkitColumnBreakAfter(value: string) {
|
|
2541
|
-
if (value !== undefined && value !== null) {
|
|
2542
|
-
this.style.webkitColumnBreakAfter = value;
|
|
2543
|
-
}
|
|
2544
|
-
return this;
|
|
2545
|
-
}
|
|
2546
|
-
|
|
2547
|
-
public webkitColumnBreakBefore(value: string) {
|
|
2548
|
-
if (value !== undefined && value !== null) {
|
|
2549
|
-
this.style.webkitColumnBreakBefore = value;
|
|
2550
|
-
}
|
|
2551
|
-
return this;
|
|
2552
|
-
}
|
|
2553
|
-
|
|
2554
|
-
public webkitColumnBreakInside(value: string) {
|
|
2555
|
-
if (value !== undefined && value !== null) {
|
|
2556
|
-
this.style.webkitColumnBreakInside = value;
|
|
2557
|
-
}
|
|
2558
|
-
return this;
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
|
-
public webkitColumnCount(value: any) {
|
|
2562
|
-
if (value !== undefined && value !== null) {
|
|
2563
|
-
this.style.webkitColumnCount = value;
|
|
2564
|
-
}
|
|
2565
|
-
return this;
|
|
2566
|
-
}
|
|
2567
|
-
|
|
2568
|
-
public webkitColumnGap(value: any) {
|
|
2569
|
-
if (value !== undefined && value !== null) {
|
|
2570
|
-
this.style.webkitColumnGap = value;
|
|
2571
|
-
}
|
|
2572
|
-
return this;
|
|
2573
|
-
}
|
|
2574
|
-
|
|
2575
|
-
public webkitColumnRule(value: string) {
|
|
2576
|
-
if (value !== undefined && value !== null) {
|
|
2577
|
-
this.style.webkitColumnRule = value;
|
|
2578
|
-
}
|
|
2579
|
-
return this;
|
|
2580
|
-
}
|
|
2581
|
-
|
|
2582
|
-
public webkitColumnRuleColor(value: any | ColorItem) {
|
|
2583
|
-
if (value !== undefined && value !== null) {
|
|
2584
|
-
this.style.webkitColumnRuleColor = value;
|
|
2585
|
-
}
|
|
2586
|
-
return this;
|
|
2587
|
-
}
|
|
2588
|
-
|
|
2589
|
-
public webkitColumnRuleStyle(value: string) {
|
|
2590
|
-
if (value !== undefined && value !== null) {
|
|
2591
|
-
this.style.webkitColumnRuleStyle = value;
|
|
2592
|
-
}
|
|
2593
|
-
return this;
|
|
2594
|
-
}
|
|
2595
|
-
|
|
2596
|
-
public webkitColumnRuleWidth(value: any) {
|
|
2597
|
-
if (value !== undefined && value !== null) {
|
|
2598
|
-
this.style.webkitColumnRuleWidth = value;
|
|
2599
|
-
}
|
|
2600
|
-
return this;
|
|
2601
|
-
}
|
|
2602
|
-
|
|
2603
|
-
public webkitColumnSpan(value: string) {
|
|
2604
|
-
if (value !== undefined && value !== null) {
|
|
2605
|
-
this.style.webkitColumnSpan = value;
|
|
2606
|
-
}
|
|
2607
|
-
return this;
|
|
2608
|
-
}
|
|
2609
|
-
|
|
2610
|
-
public webkitColumnWidth(value: any) {
|
|
2611
|
-
if (value !== undefined && value !== null) {
|
|
2612
|
-
this.style.webkitColumnWidth = value;
|
|
2613
|
-
}
|
|
2614
|
-
return this;
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
public webkitColumns(value: string) {
|
|
2618
|
-
if (value !== undefined && value !== null) {
|
|
2619
|
-
this.style.webkitColumns = value;
|
|
2620
|
-
}
|
|
2621
|
-
return this;
|
|
2622
|
-
}
|
|
2623
|
-
|
|
2624
|
-
public webkitFilter(value: string) {
|
|
2625
|
-
if (value !== undefined && value !== null) {
|
|
2626
|
-
this.style.webkitFilter = value;
|
|
2627
|
-
}
|
|
2628
|
-
return this;
|
|
2629
|
-
}
|
|
2630
|
-
|
|
2631
|
-
public webkitFlex(value: string) {
|
|
2632
|
-
if (value !== undefined && value !== null) {
|
|
2633
|
-
this.style.webkitFlex = value;
|
|
2634
|
-
}
|
|
2635
|
-
return this;
|
|
2636
|
-
}
|
|
2637
|
-
|
|
2638
|
-
public webkitFlexBasis(value: string) {
|
|
2639
|
-
if (value !== undefined && value !== null) {
|
|
2640
|
-
this.style.webkitFlexBasis = value;
|
|
2641
|
-
}
|
|
2642
|
-
return this;
|
|
2643
|
-
}
|
|
2644
|
-
|
|
2645
|
-
public webkitFlexDirection(value: string) {
|
|
2646
|
-
if (value !== undefined && value !== null) {
|
|
2647
|
-
this.style.webkitFlexDirection = value;
|
|
2648
|
-
}
|
|
2649
|
-
return this;
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
public webkitFlexFlow(value: string) {
|
|
2653
|
-
if (value !== undefined && value !== null) {
|
|
2654
|
-
this.style.webkitFlexFlow = value;
|
|
2655
|
-
}
|
|
2656
|
-
return this;
|
|
2657
|
-
}
|
|
2658
|
-
|
|
2659
|
-
public webkitFlexGrow(value: string) {
|
|
2660
|
-
if (value !== undefined && value !== null) {
|
|
2661
|
-
this.style.webkitFlexGrow = value;
|
|
2662
|
-
}
|
|
2663
|
-
return this;
|
|
2664
|
-
}
|
|
2665
|
-
|
|
2666
|
-
public webkitFlexShrink(value: string) {
|
|
2667
|
-
if (value !== undefined && value !== null) {
|
|
2668
|
-
this.style.webkitFlexShrink = value;
|
|
2669
|
-
}
|
|
2670
|
-
return this;
|
|
2671
|
-
}
|
|
2672
|
-
|
|
2673
|
-
public webkitFlexWrap(value: string) {
|
|
2674
|
-
if (value !== undefined && value !== null) {
|
|
2675
|
-
this.style.webkitFlexWrap = value;
|
|
2676
|
-
}
|
|
2677
|
-
return this;
|
|
2678
|
-
}
|
|
2679
|
-
|
|
2680
|
-
public webkitJustifyContent(value: string) {
|
|
2681
|
-
if (value !== undefined && value !== null) {
|
|
2682
|
-
this.style.webkitJustifyContent = value;
|
|
2683
|
-
}
|
|
2684
|
-
return this;
|
|
2685
|
-
}
|
|
2686
|
-
|
|
2687
|
-
public webkitOrder(value: string) {
|
|
2688
|
-
if (value !== undefined && value !== null) {
|
|
2689
|
-
this.style.webkitOrder = value;
|
|
2690
|
-
}
|
|
2691
|
-
return this;
|
|
2692
|
-
}
|
|
2693
|
-
|
|
2694
|
-
public webkitPerspective(value: string) {
|
|
2695
|
-
if (value !== undefined && value !== null) {
|
|
2696
|
-
this.style.webkitPerspective = value;
|
|
2697
|
-
}
|
|
2698
|
-
return this;
|
|
2699
|
-
}
|
|
2700
|
-
|
|
2701
|
-
public webkitPerspectiveOrigin(value: string) {
|
|
2702
|
-
if (value !== undefined && value !== null) {
|
|
2703
|
-
this.style.webkitPerspectiveOrigin = value;
|
|
2704
|
-
}
|
|
2705
|
-
return this;
|
|
2706
|
-
}
|
|
2707
|
-
|
|
2708
|
-
public webkitTapHighlightColor(value: string | ColorItem) {
|
|
2709
|
-
if (value !== undefined && value !== null) {
|
|
2710
|
-
this.style.webkitTapHighlightColor = value;
|
|
2711
|
-
}
|
|
2712
|
-
return this;
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
|
-
public webkitTextFillColor(value: string | ColorItem) {
|
|
2716
|
-
if (value !== undefined && value !== null) {
|
|
2717
|
-
this.style.webkitTextFillColor = value;
|
|
2718
|
-
}
|
|
2719
|
-
return this;
|
|
2720
|
-
}
|
|
2721
|
-
|
|
2722
|
-
public webkitTextSizeAdjust(value: any) {
|
|
2723
|
-
if (value !== undefined && value !== null) {
|
|
2724
|
-
this.style.webkitTextSizeAdjust = value;
|
|
2725
|
-
}
|
|
2726
|
-
return this;
|
|
2727
|
-
}
|
|
2728
|
-
|
|
2729
|
-
public webkitTextStroke(value: string) {
|
|
2730
|
-
if (value !== undefined && value !== null) {
|
|
2731
|
-
this.style.webkitTextStroke = value;
|
|
2732
|
-
}
|
|
2733
|
-
return this;
|
|
2734
|
-
}
|
|
2735
|
-
|
|
2736
|
-
public webkitTextStrokeColor(value: string | ColorItem) {
|
|
2737
|
-
if (value !== undefined && value !== null) {
|
|
2738
|
-
this.style.webkitTextStrokeColor = value;
|
|
2739
|
-
}
|
|
2740
|
-
return this;
|
|
2741
|
-
}
|
|
2742
|
-
|
|
2743
|
-
public webkitTextStrokeWidth(value: string) {
|
|
2744
|
-
if (value !== undefined && value !== null) {
|
|
2745
|
-
this.style.webkitTextStrokeWidth = value;
|
|
2746
|
-
}
|
|
2747
|
-
return this;
|
|
2748
|
-
}
|
|
2749
|
-
|
|
2750
|
-
public webkitTransform(value: string) {
|
|
2751
|
-
if (value !== undefined && value !== null) {
|
|
2752
|
-
this.style.webkitTransform = value;
|
|
2753
|
-
}
|
|
2754
|
-
return this;
|
|
2755
|
-
}
|
|
2756
|
-
|
|
2757
|
-
public webkitTransformOrigin(value: string) {
|
|
2758
|
-
if (value !== undefined && value !== null) {
|
|
2759
|
-
this.style.webkitTransformOrigin = value;
|
|
2760
|
-
}
|
|
2761
|
-
return this;
|
|
2762
|
-
}
|
|
2763
|
-
|
|
2764
|
-
public webkitTransformStyle(value: string) {
|
|
2765
|
-
if (value !== undefined && value !== null) {
|
|
2766
|
-
this.style.webkitTransformStyle = value;
|
|
2767
|
-
}
|
|
2768
|
-
return this;
|
|
2769
|
-
}
|
|
2770
|
-
|
|
2771
|
-
public webkitTransition(value: string) {
|
|
2772
|
-
if (value !== undefined && value !== null) {
|
|
2773
|
-
this.style.webkitTransition = value;
|
|
2774
|
-
}
|
|
2775
|
-
return this;
|
|
2776
|
-
}
|
|
2777
|
-
|
|
2778
|
-
public webkitTransitionDelay(value: string) {
|
|
2779
|
-
if (value !== undefined && value !== null) {
|
|
2780
|
-
this.style.webkitTransitionDelay = value;
|
|
2781
|
-
}
|
|
2782
|
-
return this;
|
|
2783
|
-
}
|
|
2784
|
-
|
|
2785
|
-
public webkitTransitionDuration(value: string) {
|
|
2786
|
-
if (value !== undefined && value !== null) {
|
|
2787
|
-
this.style.webkitTransitionDuration = value;
|
|
2788
|
-
}
|
|
2789
|
-
return this;
|
|
2790
|
-
}
|
|
2791
|
-
|
|
2792
|
-
public webkitTransitionProperty(value: string) {
|
|
2793
|
-
if (value !== undefined && value !== null) {
|
|
2794
|
-
this.style.webkitTransitionProperty = value;
|
|
2795
|
-
}
|
|
2796
|
-
return this;
|
|
2797
|
-
}
|
|
2798
|
-
|
|
2799
|
-
public webkitTransitionTimingFunction(value: string) {
|
|
2800
|
-
if (value !== undefined && value !== null) {
|
|
2801
|
-
this.style.webkitTransitionTimingFunction = value;
|
|
2802
|
-
}
|
|
2803
|
-
return this;
|
|
2804
|
-
}
|
|
2805
|
-
|
|
2806
|
-
public webkitUserModify(value: string) {
|
|
2807
|
-
if (value !== undefined && value !== null) {
|
|
2808
|
-
this.style.webkitUserModify = value;
|
|
2809
|
-
}
|
|
2810
|
-
return this;
|
|
2811
|
-
}
|
|
2812
|
-
|
|
2813
|
-
public webkitUserSelect(value: string) {
|
|
2814
|
-
if (value !== undefined && value !== null) {
|
|
2815
|
-
this.style.webkitUserSelect = value;
|
|
2816
|
-
}
|
|
2817
|
-
return this;
|
|
2818
|
-
}
|
|
2819
|
-
|
|
2820
|
-
public webkitUserDrag(value: string) {
|
|
2821
|
-
if (value !== undefined && value !== null) {
|
|
2822
|
-
this.style.webkitUserDrag = value;
|
|
2823
|
-
}
|
|
2824
|
-
return this;
|
|
2825
|
-
}
|
|
2826
|
-
|
|
2827
|
-
public webkitWritingMode(value: string) {
|
|
2828
|
-
if (value !== undefined && value !== null) {
|
|
2829
|
-
this.style.webkitWritingMode = value;
|
|
2830
|
-
}
|
|
2831
|
-
return this;
|
|
2832
|
-
}
|
|
2833
|
-
|
|
2834
|
-
public whiteSpace(value: WhiteSpaceType) {
|
|
2835
|
-
if (value !== undefined && value !== null) {
|
|
2836
|
-
this.style.whiteSpace = value;
|
|
2837
|
-
}
|
|
2838
|
-
return this;
|
|
2839
|
-
}
|
|
2840
|
-
|
|
2841
|
-
public widows(value: string) {
|
|
2842
|
-
if (value !== undefined && value !== null) {
|
|
2843
|
-
this.style.widows = value;
|
|
2844
|
-
}
|
|
2845
|
-
return this;
|
|
2846
|
-
}
|
|
2847
|
-
|
|
2848
|
-
public width(value: string | number, unit: Units = "px") {
|
|
2849
|
-
if (value !== undefined && value !== null) {
|
|
2850
|
-
this.style.width = toUnit(value, unit);
|
|
2851
|
-
}
|
|
2852
|
-
return this;
|
|
2853
|
-
}
|
|
2854
|
-
|
|
2855
|
-
public wordBreak(value: WordBreakType) {
|
|
2856
|
-
if (value !== undefined && value !== null) {
|
|
2857
|
-
this.style.wordBreak = value;
|
|
2858
|
-
}
|
|
2859
|
-
return this;
|
|
2860
|
-
}
|
|
2861
|
-
|
|
2862
|
-
public wordSpacing(value: WordSpacingType) {
|
|
2863
|
-
if (value !== undefined && value !== null) {
|
|
2864
|
-
this.style.wordSpacing = value;
|
|
2865
|
-
}
|
|
2866
|
-
return this;
|
|
2867
|
-
}
|
|
2868
|
-
|
|
2869
|
-
public wordWrap(value: WordWrapType) {
|
|
2870
|
-
if (value !== undefined && value !== null) {
|
|
2871
|
-
this.style.wordWrap = value;
|
|
2872
|
-
}
|
|
2873
|
-
return this;
|
|
2874
|
-
}
|
|
2875
|
-
|
|
2876
|
-
public writingMode(value: string) {
|
|
2877
|
-
if (value !== undefined && value !== null) {
|
|
2878
|
-
this.style.writingMode = value;
|
|
2879
|
-
}
|
|
2880
|
-
return this;
|
|
2881
|
-
}
|
|
2882
|
-
|
|
2883
|
-
public zIndex(value: string | number) {
|
|
2884
|
-
if (value !== undefined && value !== null) {
|
|
2885
|
-
this.style.zIndex = value as any;
|
|
2886
|
-
}
|
|
2887
|
-
return this;
|
|
2888
|
-
}
|
|
2889
|
-
|
|
2890
|
-
public zoom(value: string) {
|
|
2891
|
-
if (value !== undefined && value !== null) {
|
|
2892
|
-
this.style.zoom = value;
|
|
2893
|
-
}
|
|
2894
|
-
return this;
|
|
2895
|
-
}
|
|
2896
|
-
|
|
2897
|
-
public displayFlex() {
|
|
2898
|
-
this.style.display = "flex";
|
|
2899
|
-
return this;
|
|
2900
|
-
}
|
|
2901
|
-
|
|
2902
|
-
public flexStretch() {
|
|
2903
|
-
return this.flex("1 1 100%");
|
|
2904
|
-
}
|
|
2905
|
-
|
|
2906
|
-
public roundBorderFull() {
|
|
2907
|
-
this.style.borderRadius = "9999px";
|
|
2908
|
-
return this;
|
|
2909
|
-
}
|
|
2910
|
-
|
|
2911
|
-
public subclass(name: string, style: IStyleDeclaration | AtomStyleRules) {
|
|
2912
|
-
if (style instanceof AtomStyleRules) {
|
|
2913
|
-
style = style.style;
|
|
2914
|
-
}
|
|
2915
|
-
const sc = this.style.subclasses ??= {};
|
|
2916
|
-
sc[name] = style;
|
|
2917
|
-
return this;
|
|
2918
|
-
}
|
|
2919
|
-
|
|
2920
|
-
public childSubclass(name: string, style: IStyleDeclaration | AtomStyleRules) {
|
|
2921
|
-
return this.subclass(" > " + name, style);
|
|
2922
|
-
}
|
|
2923
|
-
|
|
2924
|
-
public subclasses(... styles: AtomStyleRules[]) {
|
|
2925
|
-
const sc = this.style.subclasses ??= {};
|
|
2926
|
-
for (const iterator of styles) {
|
|
2927
|
-
sc[iterator.name] = iterator.style;
|
|
2928
|
-
}
|
|
2929
|
-
return this;
|
|
2930
|
-
}
|
|
2931
|
-
|
|
2932
|
-
/**
|
|
2933
|
-
* Creates rule for immediate child like `this > child`
|
|
2934
|
-
* @param styles children
|
|
2935
|
-
* @returns this
|
|
2936
|
-
*/
|
|
2937
|
-
public childSubclasses(... styles: AtomStyleRules[]) {
|
|
2938
|
-
const sc = this.style.subclasses ??= {};
|
|
2939
|
-
for (const iterator of styles) {
|
|
2940
|
-
sc[" > " + iterator.name] = iterator.style;
|
|
2941
|
-
}
|
|
2942
|
-
return this;
|
|
2943
|
-
}
|
|
2944
|
-
|
|
2945
|
-
public roundBox(bgColor: string | ColorItem, padding: number = 5, radius: number = 5, unit: Units = "px") {
|
|
2946
|
-
this.style.padding = toUnit(padding, unit);
|
|
2947
|
-
this.style.borderRadius = toUnit(radius, unit);
|
|
2948
|
-
this.style.borderColor = bgColor;
|
|
2949
|
-
this.style.backgroundColor = bgColor;
|
|
2950
|
-
return this;
|
|
2951
|
-
}
|
|
2952
|
-
|
|
2953
|
-
public maximizeAbsolute() {
|
|
2954
|
-
this.style.position = "absolute";
|
|
2955
|
-
this.style.left = 0;
|
|
2956
|
-
this.style.top = 0;
|
|
2957
|
-
this.style.bottom = 0;
|
|
2958
|
-
this.style.right = 0;
|
|
2959
|
-
return this;
|
|
2960
|
-
}
|
|
2961
|
-
|
|
2962
|
-
public setRect(
|
|
2963
|
-
position: string,
|
|
2964
|
-
{
|
|
2965
|
-
top,
|
|
2966
|
-
left,
|
|
2967
|
-
right,
|
|
2968
|
-
bottom,
|
|
2969
|
-
width,
|
|
2970
|
-
height
|
|
2971
|
-
}: IRect = {},
|
|
2972
|
-
unit: Units = "px") {
|
|
2973
|
-
|
|
2974
|
-
this.style.position = position;
|
|
2975
|
-
if (typeof top !== "undefined") {
|
|
2976
|
-
this.style.top = toUnit(top, unit);
|
|
2977
|
-
}
|
|
2978
|
-
if (typeof left !== "undefined") {
|
|
2979
|
-
this.style.left = toUnit(left, unit);
|
|
2980
|
-
}
|
|
2981
|
-
if (typeof width !== "undefined") {
|
|
2982
|
-
this.style.width = toUnit(width, unit);
|
|
2983
|
-
}
|
|
2984
|
-
if (typeof height !== "undefined") {
|
|
2985
|
-
this.style.height = toUnit(height, unit);
|
|
2986
|
-
}
|
|
2987
|
-
if (typeof right !== "undefined") {
|
|
2988
|
-
this.style.right = toUnit(right, unit);
|
|
2989
|
-
}
|
|
2990
|
-
if (typeof bottom !== "undefined") {
|
|
2991
|
-
this.style.bottom = toUnit(bottom, unit);
|
|
2992
|
-
}
|
|
2993
|
-
return this;
|
|
2994
|
-
}
|
|
2995
|
-
|
|
2996
|
-
public absolutePosition(
|
|
2997
|
-
rect: IRect = {},
|
|
2998
|
-
unit: Units = "px") {
|
|
2999
|
-
return this.setRect("absolute", rect, unit);
|
|
3000
|
-
}
|
|
3001
|
-
|
|
3002
|
-
public relativePosition(
|
|
3003
|
-
rect: IRect = {},
|
|
3004
|
-
unit: Units = "px") {
|
|
3005
|
-
return this.setRect("relative", rect, unit);
|
|
3006
|
-
}
|
|
3007
|
-
|
|
3008
|
-
public absoluteDockTop(height: number | string, unit: Units = "px") {
|
|
3009
|
-
this.style.position = "absolute";
|
|
3010
|
-
this.style.left = 0;
|
|
3011
|
-
this.style.top = 0;
|
|
3012
|
-
this.style.right = 0;
|
|
3013
|
-
this.style.height = toUnit(height, unit);
|
|
3014
|
-
return this;
|
|
3015
|
-
}
|
|
3016
|
-
|
|
3017
|
-
public absoluteDockBottom(top: number | string, unit: Units = "px") {
|
|
3018
|
-
this.style.position = "absolute";
|
|
3019
|
-
this.style.left = 0;
|
|
3020
|
-
this.style.bottom = 0;
|
|
3021
|
-
this.style.right = 0;
|
|
3022
|
-
this.style.top = toUnit(top, unit);
|
|
3023
|
-
return this;
|
|
3024
|
-
}
|
|
3025
|
-
|
|
3026
|
-
public defaultBoxShadow() {
|
|
3027
|
-
this.style.boxShadow = "rgba(50, 50, 105, 0.07) 0px 2px 5px 0px, rgba(0, 0, 0, 0.03) 0px 1px 1px 0px;";
|
|
3028
|
-
this.style.border = "solid 1px rgba(0, 0, 0, 0.05)";
|
|
3029
|
-
return this;
|
|
3030
|
-
}
|
|
3031
|
-
|
|
3032
|
-
public textEllipsis() {
|
|
3033
|
-
this.style.overflow = "hidden";
|
|
3034
|
-
this.style.whiteSpace = "nowrap";
|
|
3035
|
-
this.style.textOverflow = "ellipsis";
|
|
3036
|
-
return this;
|
|
3037
|
-
}
|
|
3038
|
-
|
|
3039
|
-
public hover(style: AtomStyleRules) {
|
|
3040
|
-
const sc = this.style.subclasses ??= {};
|
|
3041
|
-
sc[":hover"] = { ... sc[":hover"], ... style.style };
|
|
3042
|
-
return this;
|
|
3043
|
-
}
|
|
3044
|
-
|
|
3045
|
-
public focus(style: AtomStyleRules) {
|
|
3046
|
-
const sc = this.style.subclasses ??= {};
|
|
3047
|
-
sc[":focus"] = { ... sc[":focus"], ... style.style };
|
|
3048
|
-
return this;
|
|
3049
|
-
}
|
|
3050
|
-
|
|
3051
|
-
public hoverBackgroundColor(color: ColorItem | string) {
|
|
3052
|
-
const sc = this.style.subclasses ??= {};
|
|
3053
|
-
const hover = sc[":hover"] ??= {};
|
|
3054
|
-
hover.backgroundColor = color;
|
|
3055
|
-
return this;
|
|
3056
|
-
}
|
|
3057
|
-
|
|
3058
|
-
public hoverColor(color: ColorItem | string) {
|
|
3059
|
-
const sc = this.style.subclasses ??= {};
|
|
3060
|
-
const hover = sc[":hover"] ??= {};
|
|
3061
|
-
hover.color = color;
|
|
3062
|
-
return this;
|
|
3063
|
-
}
|
|
3064
|
-
|
|
3065
|
-
public and( ... styles: AtomStyleRules[]) {
|
|
3066
|
-
const sc = this.style.subclasses ??= {};
|
|
3067
|
-
for (const style of styles) {
|
|
3068
|
-
sc[style.name] = style.style;
|
|
3069
|
-
}
|
|
3070
|
-
return this;
|
|
3071
|
-
}
|
|
3072
|
-
|
|
3073
|
-
public nested( ... styles: AtomStyleRules[]) {
|
|
3074
|
-
const sc = this.style.subclasses ??= {};
|
|
3075
|
-
for (const style of styles) {
|
|
3076
|
-
sc[" " + style.name] = style.style;
|
|
3077
|
-
}
|
|
3078
|
-
return this;
|
|
3079
|
-
}
|
|
3080
|
-
|
|
3081
|
-
public child( ... styles: AtomStyleRules[]) {
|
|
3082
|
-
const sc = this.style.subclasses ??= {};
|
|
3083
|
-
for (const style of styles) {
|
|
3084
|
-
sc[" > " + style.name] = style.style;
|
|
3085
|
-
}
|
|
3086
|
-
return this;
|
|
3087
|
-
}
|
|
3088
|
-
|
|
3089
|
-
public merge( ... styles: AtomStyleRules[]) {
|
|
3090
|
-
for (const { style } of styles) {
|
|
3091
|
-
for (const key in style) {
|
|
3092
|
-
if (Object.prototype.hasOwnProperty.call(style, key)) {
|
|
3093
|
-
const element = style[key];
|
|
3094
|
-
this.style[key] = element;
|
|
3095
|
-
}
|
|
3096
|
-
}
|
|
3097
|
-
}
|
|
3098
|
-
return this;
|
|
3099
|
-
}
|
|
3100
|
-
|
|
3101
|
-
public toStyleSheet() {
|
|
3102
|
-
const list = createStyleText(this.name, [], this.style);
|
|
3103
|
-
return list.join("\n");
|
|
3104
|
-
}
|
|
3105
|
-
|
|
3106
|
-
/**
|
|
3107
|
-
* @deprecated Please use `displayNone(":not(XX) > A.XX")` format
|
|
3108
|
-
* @param showSelector showSelector
|
|
3109
|
-
* @param hideSelector hideSelector
|
|
3110
|
-
* @returns AtomStyleRule
|
|
3111
|
-
*/
|
|
3112
|
-
public toggle(showSelector: string, hideSelector: string) {
|
|
3113
|
-
const sc = this.style.subclasses ??= {};
|
|
3114
|
-
const h = sc[hideSelector] ??= {};
|
|
3115
|
-
const d = sc[showSelector] ??= {};
|
|
3116
|
-
d.display = "inherit";
|
|
3117
|
-
h.display = "none";
|
|
3118
|
-
return this;
|
|
3119
|
-
}
|
|
3120
|
-
|
|
3121
|
-
public displayNone(... selectors: string[]) {
|
|
3122
|
-
const sc = this.style.subclasses ??= {};
|
|
3123
|
-
for (const iterator of selectors) {
|
|
3124
|
-
const d = sc[iterator] ??= {};
|
|
3125
|
-
d.display = "none";
|
|
3126
|
-
}
|
|
3127
|
-
return this;
|
|
3128
|
-
}
|
|
3129
|
-
|
|
3130
|
-
/**
|
|
3131
|
-
* Creates vertical flex layout with 5px gap
|
|
3132
|
-
* @param p defaults { direction: "column", alignItems: "center", justifyContent: "space-around" }
|
|
3133
|
-
* @param units px
|
|
3134
|
-
*/
|
|
3135
|
-
public verticalFlexLayout(a: IFlexAttributes = {}, units: Units = "px") {
|
|
3136
|
-
a.direction ??= "column";
|
|
3137
|
-
return this.flexLayout(a, units);
|
|
3138
|
-
}
|
|
3139
|
-
|
|
3140
|
-
/**
|
|
3141
|
-
* Creates flex layout with 5px gap
|
|
3142
|
-
* @param p defaults { direction: "row", alignItems: "center", justifyContent: "space-around" }
|
|
3143
|
-
* @param units px
|
|
3144
|
-
*/
|
|
3145
|
-
public flexLayout(
|
|
3146
|
-
{
|
|
3147
|
-
direction = "row",
|
|
3148
|
-
alignItems = "center",
|
|
3149
|
-
justifyContent = "space-around",
|
|
3150
|
-
stretch,
|
|
3151
|
-
inline,
|
|
3152
|
-
gap = 4
|
|
3153
|
-
}: IFlexAttributes = {},
|
|
3154
|
-
units: Units = "px") {
|
|
3155
|
-
if (direction !== void 0) {
|
|
3156
|
-
this.style.flexDirection = direction;
|
|
3157
|
-
}
|
|
3158
|
-
if (alignItems !== void 0) {
|
|
3159
|
-
this.style.alignItems = alignItems;
|
|
3160
|
-
}
|
|
3161
|
-
if (justifyContent !== void 0) {
|
|
3162
|
-
this.style.justifyContent = justifyContent;
|
|
3163
|
-
}
|
|
3164
|
-
if (stretch) {
|
|
3165
|
-
this.style.flex = "1 1 100%";
|
|
3166
|
-
}
|
|
3167
|
-
if (gap) {
|
|
3168
|
-
this.style.gap = toUnit(gap, units);
|
|
3169
|
-
}
|
|
3170
|
-
this.style.display = inline ? "inline-flex" : "flex";
|
|
3171
|
-
return this;
|
|
3172
|
-
}
|
|
3173
|
-
|
|
3174
|
-
public toString() {
|
|
3175
|
-
const list = [];
|
|
3176
|
-
if (this.style) {
|
|
3177
|
-
for (const key in this.style) {
|
|
3178
|
-
if (Object.prototype.hasOwnProperty.call(this.style, key)) {
|
|
3179
|
-
const element = this.style[key];
|
|
3180
|
-
if (key === "subclasses") {
|
|
3181
|
-
throw new Error("Single AtomStyleRule cannot contain subclasses");
|
|
3182
|
-
}
|
|
3183
|
-
if (key === "toString") {
|
|
3184
|
-
continue;
|
|
3185
|
-
}
|
|
3186
|
-
if (!element) {
|
|
3187
|
-
continue;
|
|
3188
|
-
}
|
|
3189
|
-
const name = fromCamelToHyphen(key);
|
|
3190
|
-
if (element.url) {
|
|
3191
|
-
list.push(`${name}: url(${element.url})`);
|
|
3192
|
-
continue;
|
|
3193
|
-
}
|
|
3194
|
-
list.push(`${name}: ${element}`);
|
|
3195
|
-
}
|
|
3196
|
-
}
|
|
3197
|
-
}
|
|
3198
|
-
return list.join(";");
|
|
3199
|
-
}
|
|
3200
|
-
}
|
|
3201
|
-
|
|
3202
|
-
/**
|
|
3203
|
-
* Creates new style rule
|
|
3204
|
-
* @param selector [optional] name of child subclass
|
|
3205
|
-
* @returns StyleRuleClass
|
|
3206
|
-
*/
|
|
3207
|
-
function StyleRule(selector?: string): AtomStyleRules {
|
|
3208
|
-
return new AtomStyleRules(selector);
|
|
3209
|
-
}
|
|
3210
|
-
|
|
3211
|
-
export default StyleRule;
|
|
3212
|
-
|
|
3213
|
-
const styleId = 1;
|
|
3214
|
-
|
|
3215
|
-
function fromCamelToHyphen(input: string): string {
|
|
3216
|
-
return input.replace( /([a-z])([A-Z])/g, "$1-$2" ).toLowerCase();
|
|
3217
|
-
}
|
|
3218
|
-
|
|
3219
|
-
function createStyleText(name: string, pairs: string[], styles: IStyleDeclaration): string[] {
|
|
3220
|
-
const styleList: any[] = [];
|
|
3221
|
-
for (const key in styles) {
|
|
3222
|
-
if (styles.hasOwnProperty(key)) {
|
|
3223
|
-
if (/^(\_\$\_|className$|toString$)/i.test(key)) {
|
|
3224
|
-
continue;
|
|
3225
|
-
}
|
|
3226
|
-
const element = styles[key];
|
|
3227
|
-
if (element === undefined || element === null) {
|
|
3228
|
-
continue;
|
|
3229
|
-
}
|
|
3230
|
-
const keyName = fromCamelToHyphen(key);
|
|
3231
|
-
if (key === "subclasses") {
|
|
3232
|
-
const n = name;
|
|
3233
|
-
for (const subclassKey in element) {
|
|
3234
|
-
if (element.hasOwnProperty(subclassKey)) {
|
|
3235
|
-
const ve = element[subclassKey];
|
|
3236
|
-
pairs = createStyleText(`${n}${subclassKey}`, pairs, ve);
|
|
3237
|
-
}
|
|
3238
|
-
}
|
|
3239
|
-
} else {
|
|
3240
|
-
if (element.url) {
|
|
3241
|
-
styleList.push(`${keyName}: url(${element})`);
|
|
3242
|
-
} else {
|
|
3243
|
-
styleList.push(`${keyName}: ${element}`);
|
|
3244
|
-
}
|
|
3245
|
-
}
|
|
3246
|
-
}
|
|
3247
|
-
}
|
|
3248
|
-
|
|
3249
|
-
if (!name) {
|
|
3250
|
-
return [styleList.join(";")];
|
|
3251
|
-
}
|
|
3252
|
-
|
|
3253
|
-
const cname = fromCamelToHyphen(name);
|
|
3254
|
-
|
|
3255
|
-
const styleClassName = `${cname}`;
|
|
3256
|
-
|
|
3257
|
-
if (styleList.length) {
|
|
3258
|
-
pairs.push(`.${styleClassName} { ${styleList.join(";\r\n")}; }`);
|
|
3259
|
-
}
|
|
3260
|
-
return pairs;
|
|
3261
|
-
}
|