Preparing search index...
The search index is not available
@carbon/charts
@carbon/charts
DOMUtils
Class DOMUtils
Hierarchy (
View Summary
)
Service
DOMUtils
Index
Constructors
constructor
Properties
height
main
Container
model
services
width
Methods
add
Holder
Listeners
add
Main
Container
add
Resize
Listener
export
ToJPG
export
ToPNG
generate
ElementIDString
get
ChartID
get
Element
Offset
get
Holder
get
Main
Container
handle
Fullscreen
Change
init
is
Full
Screen
Mode
set
Model
set
Services
setSVGMax
Height
style
Holder
Element
toggle
Fullscreen
update
append
Or
Select
getHTMLElement
Size
getSVGElement
Size
Constructors
constructor
new
DOMUtils
(
model
:
ChartModel
,
services
:
any
)
:
DOMUtils
Parameters
model
:
ChartModel
services
:
any
Returns
DOMUtils
Properties
Protected
height
height
:
string
Protected
main
Container
mainContainer
:
HTMLDivElement
Protected
model
model
:
ChartModel
Protected
services
services
:
interfaces
.
Services
Protected
width
width
:
string
Methods
add
Holder
Listeners
addHolderListeners
()
:
void
Returns
void
add
Main
Container
addMainContainer
()
:
void
Returns
void
add
Resize
Listener
addResizeListener
()
:
void
Returns
void
export
ToJPG
exportToJPG
()
:
void
Returns
void
export
ToPNG
exportToPNG
()
:
void
Returns
void
generate
ElementIDString
generateElementIDString
(
originalID
:
string
|
number
)
:
string
Parameters
originalID
:
string
|
number
Returns
string
get
ChartID
getChartID
()
:
string
Returns
string
get
Element
Offset
getElementOffset
(
element
:
HTMLElement
,
byViewPort
?:
boolean
,
)
:
{
left
:
number
;
top
:
number
}
Parameters
element
:
HTMLElement
byViewPort
:
boolean
= false
Returns
{
left
:
number
;
top
:
number
}
get
Holder
getHolder
()
:
any
Returns
any
get
Main
Container
getMainContainer
()
:
HTMLDivElement
Returns
HTMLDivElement
handle
Fullscreen
Change
handleFullscreenChange
()
:
void
Returns
void
init
init
()
:
void
Returns
void
is
Full
Screen
Mode
isFullScreenMode
()
:
boolean
Returns
boolean
set
Model
setModel
(
newObj
:
ChartModel
)
:
void
Parameters
newObj
:
ChartModel
Returns
void
set
Services
setServices
(
newObj
:
interfaces
.
Services
)
:
void
Parameters
newObj
:
interfaces
.
Services
Returns
void
setSVGMax
Height
setSVGMaxHeight
()
:
void
Returns
void
style
Holder
Element
styleHolderElement
()
:
void
Returns
void
toggle
Fullscreen
toggleFullscreen
()
:
void
Returns
void
update
update
()
:
void
Returns
void
Static
append
Or
Select
appendOrSelect
(
parent
:
Selection
<
SVGElement
|
HTMLDivElement
,
any
,
Element
,
any
>
,
query
:
string
,
)
:
Selection
<
any
,
any
,
Element
,
any
>
Parameters
parent
:
Selection
<
SVGElement
|
HTMLDivElement
,
any
,
Element
,
any
>
query
:
string
Returns
Selection
<
any
,
any
,
Element
,
any
>
Static
getHTMLElement
Size
getHTMLElementSize
(
element
:
HTMLElement
)
:
{
height
:
number
;
width
:
number
}
Parameters
element
:
HTMLElement
Returns
{
height
:
number
;
width
:
number
}
Static
getSVGElement
Size
getSVGElementSize
(
svgSelector
:
Selection
<
SVGGraphicsElement
,
any
,
Element
,
any
>
,
options
?:
getSVGElementSizeOptions
,
)
:
{
height
:
number
;
width
:
number
}
Parameters
svgSelector
:
Selection
<
SVGGraphicsElement
,
any
,
Element
,
any
>
options
:
getSVGElementSizeOptions
= ...
Returns
{
height
:
number
;
width
:
number
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
height
main
Container
model
services
width
Methods
add
Holder
Listeners
add
Main
Container
add
Resize
Listener
export
ToJPG
export
ToPNG
generate
ElementIDString
get
ChartID
get
Element
Offset
get
Holder
get
Main
Container
handle
Fullscreen
Change
init
is
Full
Screen
Mode
set
Model
set
Services
setSVGMax
Height
style
Holder
Element
toggle
Fullscreen
update
append
Or
Select
getHTMLElement
Size
getSVGElement
Size
@carbon/charts
Loading...