typograph-editor-documentation
Preparing search index...
gradientui
GradiantBar
Class GradiantBar
Index
Constructors
constructor
Properties
bar
bar_
background
endcolor
gradient
gradienttype
height
id
local_
library
rotation
sample_
size
samples
startcolor
type
update_
gradient
width
Methods
add
Sample
beep
beep1
deselectsamples
get_
selected_
sample
get
HTML
Element
get
Sample
gradientclick
keydown
panelclick
remove
Sample
sample_
selected
samples_
sort
set
Gradient
start_
listening
stop_
listening
update
Constructors
constructor
new
GradiantBar
(
type
:
string
,
id
:
string
,
width
:
number
,
height
:
number
,
update_gradient
:
any
,
startcolor
:
color
,
endcolor
:
color
,
gradienttype
?:
string
,
dialog
?:
Dialog
,
)
:
GradiantBar
Parameters
type
:
string
id
:
string
width
:
number
height
:
number
update_gradient
:
any
startcolor
:
color
endcolor
:
color
gradienttype
:
string
= 'linear'
dialog
:
Dialog
= null
Returns
GradiantBar
Properties
bar
bar
:
HTMLElement
bar_
background
bar_background
:
HTMLElement
endcolor
endcolor
:
color
gradient
gradient
:
HTMLElement
gradienttype
gradienttype
:
string
= 'linear'
height
height
:
number
id
id
:
string
local_
library
local_library
:
swatchlibrary
= null
rotation
rotation
:
number
= 90
sample_
size
sample_size
:
number
= 14
samples
samples
:
SamplePatch
[]
= []
startcolor
startcolor
:
color
type
type
:
string
update_
gradient
update_gradient
:
any
width
width
:
number
Methods
add
Sample
addSample
(
pos
:
number
,
gb
:
GradiantBar
,
width
:
number
,
id
:
string
,
color
:
color
,
opacity
:
number
,
swatch_uuid
:
string
,
)
:
void
Parameters
pos
:
number
gb
:
GradiantBar
width
:
number
id
:
string
color
:
color
opacity
:
number
swatch_uuid
:
string
Returns
void
beep
beep
()
:
void
Returns
void
beep1
beep1
()
:
void
Returns
void
deselectsamples
deselectsamples
()
:
void
Returns
void
get_
selected_
sample
get_selected_sample
()
:
number
Returns
number
get
HTML
Element
getHTMLElement
()
:
HTMLDivElement
Returns
HTMLDivElement
get
Sample
getSample
(
id
:
string
)
:
SamplePatch
Parameters
id
:
string
Returns
SamplePatch
gradientclick
gradientclick
(
e
:
MouseEvent
)
:
void
Parameters
e
:
MouseEvent
Returns
void
keydown
keydown
(
e
:
KeyboardEvent
)
:
void
Parameters
e
:
KeyboardEvent
Returns
void
panelclick
panelclick
()
:
void
Returns
void
remove
Sample
removeSample
(
remove
:
SamplePatch
)
:
void
Parameters
remove
:
SamplePatch
Returns
void
sample_
selected
sample_selected
(
sample
:
SamplePatch
)
:
void
Parameters
sample
:
SamplePatch
Returns
void
samples_
sort
samples_sort
()
:
void
Returns
void
set
Gradient
setGradient
(
gr
:
Gradient
)
:
void
Parameters
gr
:
Gradient
Returns
void
start_
listening
start_listening
()
:
void
Returns
void
stop_
listening
stop_listening
()
:
void
Returns
void
update
update
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
bar
bar_
background
endcolor
gradient
gradienttype
height
id
local_
library
rotation
sample_
size
samples
startcolor
type
update_
gradient
width
Methods
add
Sample
beep
beep1
deselectsamples
get_
selected_
sample
get
HTML
Element
get
Sample
gradientclick
keydown
panelclick
remove
Sample
sample_
selected
samples_
sort
set
Gradient
start_
listening
stop_
listening
update
typograph-editor-documentation
Loading...