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
MediaRule
Interface MediaRule<V>
Type parameters
V
:
CssContext
Hierarchy
CssRule
<
V
>
CssContext
MediaRule
Index
Properties
animation
Tracks
css
Rules
name
node
owner
rule
Methods
add
Constraint
add
Constraint
Variable
apply
Theme
constraint
constraint
Variable
create
Rule
get
Css
Rule
get
Look
get
Look
Or
get
Rule
has
Constraint
has
Constraint
Variable
has
Css
Rule
init
Css
init
Rule
insert
Rule
mount
on
Animate
remove
Constraint
remove
Constraint
Variable
remove
Rule
set
Constraint
Variable
set
Css
Rule
track
Did
Start
Animating
track
Did
Stop
Animating
track
Will
Start
Animating
track
Will
Stop
Animating
unmount
update
Animations
Properties
Readonly
animation
Tracks
animation
Tracks
:
readonly
AnimationTrack
[]
css
Rules
css
Rules
:
{}
Type declaration
[
ruleName:
string
]:
CssRule
<
MediaRule
<
CssContext
>
>
|
undefined
Readonly
name
name
:
undefined
|
string
Readonly
node
node
:
undefined
|
Node
Readonly
owner
owner
:
V
Readonly
rule
rule
:
CSSMediaRule
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
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
)
:
CSSMediaRule
Parameters
cssText:
string
Returns
CSSMediaRule
get
Css
Rule
get
Css
Rule
(
ruleName
:
string
)
:
null
|
CssRule
<
MediaRule
<
V
>
>
Parameters
ruleName:
string
Returns
null
|
CssRule
<
MediaRule
<
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
Rule
get
Rule
(
index
:
number
)
:
null
|
CSSRule
Parameters
index:
number
Returns
null
|
CSSRule
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
Css
Rule
has
Css
Rule
(
ruleName
:
string
)
:
boolean
Parameters
ruleName:
string
Returns
boolean
Optional
init
Css
init
Css
(
)
:
string
Returns
string
Optional
init
Rule
init
Rule
(
rule
:
CSSMediaRule
)
:
CSSMediaRule
Parameters
rule:
CSSMediaRule
Returns
CSSMediaRule
insert
Rule
insert
Rule
(
cssText
:
string
, index
?:
number
)
:
number
Parameters
cssText:
string
Optional
index:
number
Returns
number
mount
mount
(
)
:
void
Returns
void
on
Animate
on
Animate
(
t
:
number
)
:
void
Parameters
t:
number
Returns
void
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
remove
Rule
remove
Rule
(
index
:
number
)
:
void
Parameters
index:
number
Returns
void
set
Constraint
Variable
set
Constraint
Variable
(
constraintVariable
:
ConstraintVariable
, state
:
number
)
:
void
Parameters
constraintVariable:
ConstraintVariable
state:
number
Returns
void
set
Css
Rule
set
Css
Rule
(
ruleName
:
string
, cssRule
:
null
|
CssRule
<
MediaRule
<
V
>
>
)
:
void
Parameters
ruleName:
string
cssRule:
null
|
CssRule
<
MediaRule
<
V
>
>
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
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
Media
Rule
animation
Tracks
css
Rules
name
node
owner
rule
add
Constraint
add
Constraint
Variable
apply
Theme
constraint
constraint
Variable
create
Rule
get
Css
Rule
get
Look
get
Look
Or
get
Rule
has
Constraint
has
Constraint
Variable
has
Css
Rule
init
Css
init
Rule
insert
Rule
mount
on
Animate
remove
Constraint
remove
Constraint
Variable
remove
Rule
set
Constraint
Variable
set
Css
Rule
track
Did
Start
Animating
track
Did
Stop
Animating
track
Will
Start
Animating
track
Will
Stop
Animating
unmount
update
Animations
Generated using
TypeDoc