Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/dom
StyleRule
Interface StyleRule<V>
Type parameters
V
:
CssContext
Hierarchy
CssRule
<
V
>
StyleMap
StyleRule
Callable
Style
Rule
(
property
:
string
)
:
unknown
Style
Rule
(
property
:
string
, value
:
unknown
)
:
V
Parameters
property:
string
Returns
unknown
Parameters
property:
string
value:
unknown
Returns
V
Index
Properties
align
Content
align
Items
align
Self
animation
Tracks
appearance
backdrop
Filter
background
Clip
background
Color
background
Image
border
Bottom
Color
border
Bottom
Left
Radius
border
Bottom
Right
Radius
border
Bottom
Style
border
Bottom
Width
border
Collapse
border
Left
Color
border
Left
Style
border
Left
Width
border
Right
Color
border
Right
Style
border
Right
Width
border
Spacing
border
Top
Color
border
Top
Left
Radius
border
Top
Right
Radius
border
Top
Style
border
Top
Width
bottom
box
Shadow
box
Sizing
color
cursor
display
filter
flex
Basis
flex
Direction
flex
Grow
flex
Shrink
flex
Wrap
font
Family
font
Size
font
Stretch
font
Style
font
Variant
font
Weight
height
justify
Content
left
line
Height
margin
Bottom
margin
Left
margin
Right
margin
Top
max
Height
max
Width
min
Height
min
Width
name
node
opacity
order
outline
Color
outline
Style
outline
Width
overflow
Scrolling
overflowX
overflowY
overscroll
BehaviorX
overscroll
BehaviorY
owner
padding
Bottom
padding
Left
padding
Right
padding
Top
pointer
Events
position
right
rule
selector
style
Animators
text
Align
text
Decoration
Color
text
Decoration
Line
text
Decoration
Style
text
Overflow
text
Transform
top
touch
Action
transform
user
Select
vertical
Align
visibility
white
Space
width
z
Index
Methods
add
Constraint
add
Constraint
Variable
apply
Theme
border
Color
border
Radius
border
Style
border
Width
constraint
constraint
Variable
create
Rule
did
Set
Style
font
get
Look
get
Look
Or
get
Style
get
Style
Animator
has
Constraint
has
Constraint
Variable
has
Style
Animator
init
Css
init
Rule
is
Mounted
margin
mount
on
Animate
on
Set
Style
overflow
overscroll
Behavior
padding
remove
Constraint
remove
Constraint
Variable
require
Update
set
Constraint
Variable
set
Selector
set
Style
set
Style
Animator
track
Did
Start
Animating
track
Did
Stop
Animating
track
Will
Start
Animating
track
Will
Stop
Animating
unmount
update
Animations
will
Set
Style
Properties
Readonly
align
Content
align
Content
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
AlignContent
,
never
>
Readonly
align
Items
align
Items
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
AlignItems
,
never
>
Readonly
align
Self
align
Self
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
AlignSelf
,
never
>
Readonly
animation
Tracks
animation
Tracks
:
readonly
AnimationTrack
[]
Readonly
appearance
appearance
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
Appearance
,
never
>
Readonly
backdrop
Filter
backdrop
Filter
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
string
,
never
>
Readonly
background
Clip
background
Clip
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
BackgroundClip
,
never
>
Readonly
background
Color
background
Color
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Color
,
null
|
AnyColor
>
Readonly
background
Image
background
Image
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
string
|
LinearGradient
,
null
|
AnyLinearGradient
>
Readonly
border
Bottom
Color
border
Bottom
Color
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Color
,
null
|
AnyColor
>
Readonly
border
Bottom
Left
Radius
border
Bottom
Left
Radius
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
border
Bottom
Right
Radius
border
Bottom
Right
Radius
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
border
Bottom
Style
border
Bottom
Style
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
BorderStyle
,
never
>
Readonly
border
Bottom
Width
border
Bottom
Width
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
border
Collapse
border
Collapse
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
BorderCollapse
,
never
>
Readonly
border
Left
Color
border
Left
Color
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Color
,
null
|
AnyColor
>
Readonly
border
Left
Style
border
Left
Style
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
BorderStyle
,
never
>
Readonly
border
Left
Width
border
Left
Width
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
border
Right
Color
border
Right
Color
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Color
,
null
|
AnyColor
>
Readonly
border
Right
Style
border
Right
Style
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
BorderStyle
,
never
>
Readonly
border
Right
Width
border
Right
Width
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
border
Spacing
border
Spacing
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
string
,
never
>
Readonly
border
Top
Color
border
Top
Color
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Color
,
null
|
AnyColor
>
Readonly
border
Top
Left
Radius
border
Top
Left
Radius
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
border
Top
Right
Radius
border
Top
Right
Radius
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
border
Top
Style
border
Top
Style
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
BorderStyle
,
never
>
Readonly
border
Top
Width
border
Top
Width
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
bottom
bottom
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
box
Shadow
box
Shadow
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
BoxShadow
,
null
|
AnyBoxShadow
>
Readonly
box
Sizing
box
Sizing
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
BoxSizing
,
never
>
Readonly
color
color
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Color
,
null
|
AnyColor
>
Readonly
cursor
cursor
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
CssCursor
,
never
>
Readonly
display
display
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
CssDisplay
,
never
>
Readonly
filter
filter
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
string
,
never
>
Readonly
flex
Basis
flex
Basis
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
FlexBasis
,
null
|
string
|
number
|
Length
>
Readonly
flex
Direction
flex
Direction
:
StyleAnimator
<
StyleRule
<
V
>
,
string
,
never
>
Readonly
flex
Grow
flex
Grow
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
number
,
never
>
Readonly
flex
Shrink
flex
Shrink
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
number
,
never
>
Readonly
flex
Wrap
flex
Wrap
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
FlexWrap
,
never
>
Readonly
font
Family
font
Family
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
string
|
string
[]
,
undefined
|
string
|
readonly
string
[]
>
Readonly
font
Size
font
Size
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
font
Stretch
font
Stretch
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
FontStretch
,
never
>
Readonly
font
Style
font
Style
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
FontStyle
,
never
>
Readonly
font
Variant
font
Variant
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
FontVariant
,
never
>
Readonly
font
Weight
font
Weight
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
FontWeight
,
never
>
Readonly
height
height
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
justify
Content
justify
Content
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
JustifyContent
,
never
>
Readonly
left
left
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
line
Height
line
Height
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
margin
Bottom
margin
Bottom
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
margin
Left
margin
Left
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
margin
Right
margin
Right
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
margin
Top
margin
Top
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
max
Height
max
Height
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
max
Width
max
Width
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
min
Height
min
Height
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
min
Width
min
Width
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
name
name
:
undefined
|
string
Readonly
node
node
:
null
|
Node
Readonly
opacity
opacity
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
number
,
never
>
Readonly
order
order
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
number
,
never
>
Readonly
outline
Color
outline
Color
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Color
,
null
|
AnyColor
>
Readonly
outline
Style
outline
Style
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
BorderStyle
,
never
>
Readonly
outline
Width
outline
Width
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
overflow
Scrolling
overflow
Scrolling
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
"touch"
|
"auto"
,
never
>
Readonly
overflowX
overflowX
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
Overflow
,
never
>
Readonly
overflowY
overflowY
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
Overflow
,
never
>
Readonly
overscroll
BehaviorX
overscroll
BehaviorX
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
OverscrollBehavior
,
never
>
Readonly
overscroll
BehaviorY
overscroll
BehaviorY
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
OverscrollBehavior
,
never
>
Readonly
owner
owner
:
V
Readonly
padding
Bottom
padding
Bottom
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
padding
Left
padding
Left
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
padding
Right
padding
Right
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
padding
Top
padding
Top
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
pointer
Events
pointer
Events
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
PointerEvents
,
never
>
Readonly
position
position
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
Position
,
never
>
Readonly
right
right
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
rule
rule
:
CSSStyleRule
Readonly
selector
selector
:
string
style
Animators
style
Animators
:
{}
Type declaration
[
animatorName:
string
]:
StyleAnimator
<
StyleRule
<
CssContext
>
,
unknown
>
|
undefined
Readonly
text
Align
text
Align
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
TextAlign
,
never
>
Readonly
text
Decoration
Color
text
Decoration
Color
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Color
,
null
|
AnyColor
>
Readonly
text
Decoration
Line
text
Decoration
Line
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
string
,
never
>
Readonly
text
Decoration
Style
text
Decoration
Style
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
TextDecorationStyle
,
never
>
Readonly
text
Overflow
text
Overflow
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
string
,
never
>
Readonly
text
Transform
text
Transform
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
TextTransform
,
never
>
Readonly
top
top
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
touch
Action
touch
Action
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
TouchAction
,
never
>
Readonly
transform
transform
:
StyleAnimator
<
StyleRule
<
V
>
,
null
|
Transform
,
null
|
AnyTransform
>
Readonly
user
Select
user
Select
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
UserSelect
,
never
>
Readonly
vertical
Align
vertical
Align
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
VerticalAlign
,
undefined
|
string
|
number
|
Length
>
Readonly
visibility
visibility
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
Visibility
,
never
>
Readonly
white
Space
white
Space
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
WhiteSpace
,
never
>
Readonly
width
width
:
StyleAnimatorConstraint
<
StyleRule
<
V
>
,
null
|
Length
,
null
|
AnyLength
>
Readonly
z
Index
z
Index
:
StyleAnimator
<
StyleRule
<
V
>
,
undefined
|
number
,
never
>
Methods
add
Constraint
add
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
add
Constraint
Variable
add
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
void
Parameters
variable:
ConstraintVariable
Returns
void
apply
Theme
apply
Theme
(
theme
:
ThemeMatrix
, mood
:
MoodVector
<
Feel
>
, timing
?:
boolean
|
AnyTiming
)
:
void
Parameters
theme:
ThemeMatrix
mood:
MoodVector
<
Feel
>
Optional
timing:
boolean
|
AnyTiming
Returns
void
border
Color
border
Color
(
)
:
null
|
Color
|
[
null
|
Color
,
null
|
Color
,
null
|
Color
,
null
|
Color
]
border
Color
(
value
:
null
|
AnyColor
|
[
null
|
AnyColor
,
null
|
AnyColor
,
null
|
AnyColor
,
null
|
AnyColor
]
, timing
?:
boolean
|
AnyTiming
, precedence
?:
number
)
:
StyleRule
<
V
>
Returns
null
|
Color
|
[
null
|
Color
,
null
|
Color
,
null
|
Color
,
null
|
Color
]
Parameters
value:
null
|
AnyColor
|
[
null
|
AnyColor
,
null
|
AnyColor
,
null
|
AnyColor
,
null
|
AnyColor
]
Optional
timing:
boolean
|
AnyTiming
Optional
precedence:
number
Returns
StyleRule
<
V
>
border
Radius
border
Radius
(
)
:
null
|
Length
|
[
null
|
Length
,
null
|
Length
,
null
|
Length
,
null
|
Length
]
border
Radius
(
value
:
null
|
AnyLength
|
[
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
]
, timing
?:
boolean
|
AnyTiming
, precedence
?:
number
)
:
StyleRule
<
V
>
Returns
null
|
Length
|
[
null
|
Length
,
null
|
Length
,
null
|
Length
,
null
|
Length
]
Parameters
value:
null
|
AnyLength
|
[
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
]
Optional
timing:
boolean
|
AnyTiming
Optional
precedence:
number
Returns
StyleRule
<
V
>
border
Style
border
Style
(
)
:
undefined
|
BorderStyle
|
[
undefined
|
BorderStyle
,
undefined
|
BorderStyle
,
undefined
|
BorderStyle
,
undefined
|
BorderStyle
]
border
Style
(
value
:
undefined
|
BorderStyle
|
[
undefined
|
BorderStyle
,
undefined
|
BorderStyle
,
undefined
|
BorderStyle
,
undefined
|
BorderStyle
]
, timing
?:
boolean
|
AnyTiming
, precedence
?:
number
)
:
StyleRule
<
V
>
Returns
undefined
|
BorderStyle
|
[
undefined
|
BorderStyle
,
undefined
|
BorderStyle
,
undefined
|
BorderStyle
,
undefined
|
BorderStyle
]
Parameters
value:
undefined
|
BorderStyle
|
[
undefined
|
BorderStyle
,
undefined
|
BorderStyle
,
undefined
|
BorderStyle
,
undefined
|
BorderStyle
]
Optional
timing:
boolean
|
AnyTiming
Optional
precedence:
number
Returns
StyleRule
<
V
>
border
Width
border
Width
(
)
:
null
|
Length
|
[
null
|
Length
,
null
|
Length
,
null
|
Length
,
null
|
Length
]
border
Width
(
value
:
null
|
AnyLength
|
[
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
]
, timing
?:
boolean
|
AnyTiming
, precedence
?:
number
)
:
StyleRule
<
V
>
Returns
null
|
Length
|
[
null
|
Length
,
null
|
Length
,
null
|
Length
,
null
|
Length
]
Parameters
value:
null
|
AnyLength
|
[
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
]
Optional
timing:
boolean
|
AnyTiming
Optional
precedence:
number
Returns
StyleRule
<
V
>
constraint
constraint
(
lhs
:
AnyConstraintExpression
, relation
:
ConstraintRelation
, rhs
?:
AnyConstraintExpression
, strength
?:
AnyConstraintStrength
)
:
Constraint
Parameters
lhs:
AnyConstraintExpression
relation:
ConstraintRelation
Optional
rhs:
AnyConstraintExpression
Optional
strength:
AnyConstraintStrength
Returns
Constraint
constraint
Variable
constraint
Variable
(
name
:
string
, value
?:
number
, strength
?:
AnyConstraintStrength
)
:
ConstraintBinding
Parameters
name:
string
Optional
value:
number
Optional
strength:
AnyConstraintStrength
Returns
ConstraintBinding
create
Rule
create
Rule
(
cssText
:
string
)
:
CSSStyleRule
Parameters
cssText:
string
Returns
CSSStyleRule
did
Set
Style
did
Set
Style
(
propertyName
:
string
, value
:
unknown
, priority
:
undefined
|
string
)
:
void
Parameters
propertyName:
string
value:
unknown
priority:
undefined
|
string
Returns
void
font
font
(
)
:
null
|
Font
font
(
value
:
null
|
AnyFont
, timing
?:
boolean
|
AnyTiming
, precedence
?:
number
)
:
StyleRule
<
V
>
Returns
null
|
Font
Parameters
value:
null
|
AnyFont
Optional
timing:
boolean
|
AnyTiming
Optional
precedence:
number
Returns
StyleRule
<
V
>
get
Look
get
Look<T>
(
look
:
Look
<
T
,
unknown
>
, mood
?:
null
|
MoodVector
<
Feel
>
)
:
undefined
|
T
Type parameters
T
Parameters
look:
Look
<
T
,
unknown
>
Optional
mood:
null
|
MoodVector
<
Feel
>
Returns
undefined
|
T
get
Look
Or
get
Look
Or<T, E>
(
look
:
Look
<
T
,
unknown
>
, elseValue
:
E
)
:
T
|
E
get
Look
Or<T, E>
(
look
:
Look
<
T
,
unknown
>
, mood
:
null
|
MoodVector
<
Feel
>
, elseValue
:
E
)
:
T
|
E
Type parameters
T
E
Parameters
look:
Look
<
T
,
unknown
>
elseValue:
E
Returns
T
|
E
Type parameters
T
E
Parameters
look:
Look
<
T
,
unknown
>
mood:
null
|
MoodVector
<
Feel
>
elseValue:
E
Returns
T
|
E
get
Style
get
Style
(
propertyNames
:
string
|
readonly
string
[]
)
:
undefined
|
string
|
CSSStyleValue
Parameters
propertyNames:
string
|
readonly
string
[]
Returns
undefined
|
string
|
CSSStyleValue
get
Style
Animator
get
Style
Animator
(
animatorName
:
string
)
:
null
|
StyleAnimator
<
StyleRule
<
V
>
,
unknown
,
never
>
Parameters
animatorName:
string
Returns
null
|
StyleAnimator
<
StyleRule
<
V
>
,
unknown
,
never
>
has
Constraint
has
Constraint
(
constraint
:
Constraint
)
:
boolean
Parameters
constraint:
Constraint
Returns
boolean
has
Constraint
Variable
has
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
boolean
Parameters
variable:
ConstraintVariable
Returns
boolean
has
Style
Animator
has
Style
Animator
(
animatorName
:
string
)
:
boolean
Parameters
animatorName:
string
Returns
boolean
Optional
init
Css
init
Css
(
)
:
string
Returns
string
Optional
init
Rule
init
Rule
(
rule
:
CSSStyleRule
)
:
CSSStyleRule
Parameters
rule:
CSSStyleRule
Returns
CSSStyleRule
is
Mounted
is
Mounted
(
)
:
boolean
Returns
boolean
margin
margin
(
)
:
null
|
Length
|
[
null
|
Length
,
null
|
Length
,
null
|
Length
,
null
|
Length
]
margin
(
value
:
null
|
AnyLength
|
[
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
]
, timing
?:
boolean
|
AnyTiming
, precedence
?:
number
)
:
StyleRule
<
V
>
Returns
null
|
Length
|
[
null
|
Length
,
null
|
Length
,
null
|
Length
,
null
|
Length
]
Parameters
value:
null
|
AnyLength
|
[
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
]
Optional
timing:
boolean
|
AnyTiming
Optional
precedence:
number
Returns
StyleRule
<
V
>
mount
mount
(
)
:
void
Returns
void
on
Animate
on
Animate
(
t
:
number
)
:
void
Parameters
t:
number
Returns
void
on
Set
Style
on
Set
Style
(
propertyName
:
string
, value
:
unknown
, priority
:
undefined
|
string
)
:
void
Parameters
propertyName:
string
value:
unknown
priority:
undefined
|
string
Returns
void
overflow
overflow
(
)
:
undefined
|
Overflow
|
[
undefined
|
Overflow
,
undefined
|
Overflow
]
overflow
(
value
:
undefined
|
Overflow
|
[
undefined
|
Overflow
,
undefined
|
Overflow
]
, timing
?:
boolean
|
AnyTiming
, precedence
?:
number
)
:
StyleRule
<
V
>
Returns
undefined
|
Overflow
|
[
undefined
|
Overflow
,
undefined
|
Overflow
]
Parameters
value:
undefined
|
Overflow
|
[
undefined
|
Overflow
,
undefined
|
Overflow
]
Optional
timing:
boolean
|
AnyTiming
Optional
precedence:
number
Returns
StyleRule
<
V
>
overscroll
Behavior
overscroll
Behavior
(
)
:
undefined
|
OverscrollBehavior
|
[
undefined
|
OverscrollBehavior
,
undefined
|
OverscrollBehavior
]
overscroll
Behavior
(
value
:
undefined
|
OverscrollBehavior
|
[
undefined
|
OverscrollBehavior
,
undefined
|
OverscrollBehavior
]
, timing
?:
boolean
|
AnyTiming
, precedence
?:
number
)
:
StyleRule
<
V
>
Returns
undefined
|
OverscrollBehavior
|
[
undefined
|
OverscrollBehavior
,
undefined
|
OverscrollBehavior
]
Parameters
value:
undefined
|
OverscrollBehavior
|
[
undefined
|
OverscrollBehavior
,
undefined
|
OverscrollBehavior
]
Optional
timing:
boolean
|
AnyTiming
Optional
precedence:
number
Returns
StyleRule
<
V
>
padding
padding
(
)
:
null
|
Length
|
[
null
|
Length
,
null
|
Length
,
null
|
Length
,
null
|
Length
]
padding
(
value
:
null
|
AnyLength
|
[
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
]
, timing
?:
boolean
|
AnyTiming
, precedence
?:
number
)
:
StyleRule
<
V
>
Returns
null
|
Length
|
[
null
|
Length
,
null
|
Length
,
null
|
Length
,
null
|
Length
]
Parameters
value:
null
|
AnyLength
|
[
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
,
null
|
AnyLength
]
Optional
timing:
boolean
|
AnyTiming
Optional
precedence:
number
Returns
StyleRule
<
V
>
remove
Constraint
remove
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
remove
Constraint
Variable
remove
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
void
Parameters
variable:
ConstraintVariable
Returns
void
require
Update
require
Update
(
updateFlags
:
number
)
:
void
Parameters
updateFlags:
number
Returns
void
set
Constraint
Variable
set
Constraint
Variable
(
constraintVariable
:
ConstraintVariable
, state
:
number
)
:
void
Parameters
constraintVariable:
ConstraintVariable
state:
number
Returns
void
set
Selector
set
Selector
(
selector
:
string
)
:
void
Parameters
selector:
string
Returns
void
set
Style
set
Style
(
propertyName
:
string
, value
:
unknown
, priority
?:
string
)
:
StyleRule
<
V
>
Parameters
propertyName:
string
value:
unknown
Optional
priority:
string
Returns
StyleRule
<
V
>
set
Style
Animator
set
Style
Animator
(
animatorName
:
string
, animator
:
null
|
StyleAnimator
<
StyleRule
<
V
>
,
unknown
,
never
>
)
:
void
Parameters
animatorName:
string
animator:
null
|
StyleAnimator
<
StyleRule
<
V
>
,
unknown
,
never
>
Returns
void
track
Did
Start
Animating
track
Did
Start
Animating
(
track
:
AnimationTrack
)
:
void
Parameters
track:
AnimationTrack
Returns
void
track
Did
Stop
Animating
track
Did
Stop
Animating
(
track
:
AnimationTrack
)
:
void
Parameters
track:
AnimationTrack
Returns
void
track
Will
Start
Animating
track
Will
Start
Animating
(
track
:
AnimationTrack
)
:
void
Parameters
track:
AnimationTrack
Returns
void
track
Will
Stop
Animating
track
Will
Stop
Animating
(
track
:
AnimationTrack
)
:
void
Parameters
track:
AnimationTrack
Returns
void
unmount
unmount
(
)
:
void
Returns
void
update
Animations
update
Animations
(
t
:
number
)
:
void
Parameters
t:
number
Returns
void
will
Set
Style
will
Set
Style
(
propertyName
:
string
, value
:
unknown
, priority
:
undefined
|
string
)
:
void
Parameters
propertyName:
string
value:
unknown
priority:
undefined
|
string
Returns
void
Modules
@swim/system
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/component
@swim/ux
@swim/vis
@swim/maps
Style
Rule
align
Content
align
Items
align
Self
animation
Tracks
appearance
backdrop
Filter
background
Clip
background
Color
background
Image
border
Bottom
Color
border
Bottom
Left
Radius
border
Bottom
Right
Radius
border
Bottom
Style
border
Bottom
Width
border
Collapse
border
Left
Color
border
Left
Style
border
Left
Width
border
Right
Color
border
Right
Style
border
Right
Width
border
Spacing
border
Top
Color
border
Top
Left
Radius
border
Top
Right
Radius
border
Top
Style
border
Top
Width
bottom
box
Shadow
box
Sizing
color
cursor
display
filter
flex
Basis
flex
Direction
flex
Grow
flex
Shrink
flex
Wrap
font
Family
font
Size
font
Stretch
font
Style
font
Variant
font
Weight
height
justify
Content
left
line
Height
margin
Bottom
margin
Left
margin
Right
margin
Top
max
Height
max
Width
min
Height
min
Width
name
node
opacity
order
outline
Color
outline
Style
outline
Width
overflow
Scrolling
overflowX
overflowY
overscroll
BehaviorX
overscroll
BehaviorY
owner
padding
Bottom
padding
Left
padding
Right
padding
Top
pointer
Events
position
right
rule
selector
style
Animators
text
Align
text
Decoration
Color
text
Decoration
Line
text
Decoration
Style
text
Overflow
text
Transform
top
touch
Action
transform
user
Select
vertical
Align
visibility
white
Space
width
z
Index
add
Constraint
add
Constraint
Variable
apply
Theme
border
Color
border
Radius
border
Style
border
Width
constraint
constraint
Variable
create
Rule
did
Set
Style
font
get
Look
get
Look
Or
get
Style
get
Style
Animator
has
Constraint
has
Constraint
Variable
has
Style
Animator
init
Css
init
Rule
is
Mounted
margin
mount
on
Animate
on
Set
Style
overflow
overscroll
Behavior
padding
remove
Constraint
remove
Constraint
Variable
require
Update
set
Constraint
Variable
set
Selector
set
Style
set
Style
Animator
track
Did
Start
Animating
track
Did
Stop
Animating
track
Will
Start
Animating
track
Will
Stop
Animating
unmount
update
Animations
will
Set
Style
Generated using
TypeDoc