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
StyleSheet
Class StyleSheet
Hierarchy
StyleSheet
Implements
AnimationTrack
CssContext
Index
Constructors
constructor
Properties
animation
Tracks
css
Rules
owner
stylesheet
Methods
add
Constraint
add
Constraint
Variable
apply
Theme
constraint
constraint
Variable
create
Stylesheet
get
Css
Rule
get
Lazy
Css
Rule
get
Look
get
Look
Or
get
Rule
has
Constraint
has
Constraint
Variable
has
Css
Rule
insert
Rule
mount
on
Animate
remove
Constraint
remove
Constraint
Variable
remove
Rule
require
Update
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
Constructors
constructor
new
Style
Sheet
(
owner
:
StyleSheetContext
, stylesheet
?:
CSSStyleSheet
)
:
StyleSheet
Parameters
owner:
StyleSheetContext
Optional
stylesheet:
CSSStyleSheet
Returns
StyleSheet
Properties
Readonly
animation
Tracks
animation
Tracks
:
readonly
AnimationTrack
[]
Readonly
css
Rules
css
Rules
:
{}
Type declaration
[
ruleName:
string
]:
CssRule
<
StyleSheet
>
|
undefined
Readonly
owner
owner
:
StyleSheetContext
Readonly
stylesheet
stylesheet
:
CSSStyleSheet
Methods
add
Constraint
add
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
add
Constraint
Variable
add
Constraint
Variable
(
constraintVariable
:
ConstraintVariable
)
:
void
Parameters
constraintVariable:
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
Protected
create
Stylesheet
create
Stylesheet
(
)
:
CSSStyleSheet
Returns
CSSStyleSheet
get
Css
Rule
get
Css
Rule
(
ruleName
:
string
)
:
null
|
CssRule
<
StyleSheet
>
Parameters
ruleName:
string
Returns
null
|
CssRule
<
StyleSheet
>
get
Lazy
Css
Rule
get
Lazy
Css
Rule
(
ruleName
:
string
)
:
null
|
CssRule
<
StyleSheet
>
Parameters
ruleName:
string
Returns
null
|
CssRule
<
StyleSheet
>
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
(
constraintVariable
:
ConstraintVariable
)
:
boolean
Parameters
constraintVariable:
ConstraintVariable
Returns
boolean
has
Css
Rule
has
Css
Rule
(
ruleName
:
string
)
:
boolean
Parameters
ruleName:
string
Returns
boolean
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
(
constraintVariable
:
ConstraintVariable
)
:
void
Parameters
constraintVariable:
ConstraintVariable
Returns
void
remove
Rule
remove
Rule
(
index
:
number
)
:
void
Parameters
index:
number
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
Css
Rule
set
Css
Rule
(
ruleName
:
string
, cssRule
:
null
|
CssRule
<
StyleSheet
>
)
:
void
Parameters
ruleName:
string
cssRule:
null
|
CssRule
<
StyleSheet
>
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
Style
Sheet
constructor
animation
Tracks
css
Rules
owner
stylesheet
add
Constraint
add
Constraint
Variable
apply
Theme
constraint
constraint
Variable
create
Stylesheet
get
Css
Rule
get
Lazy
Css
Rule
get
Look
get
Look
Or
get
Rule
has
Constraint
has
Constraint
Variable
has
Css
Rule
insert
Rule
mount
on
Animate
remove
Constraint
remove
Constraint
Variable
remove
Rule
require
Update
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