Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/queuepro/node_modules/apexcharts/src/modules/helpers/ drwxrwxr-x | |
| Viewing file: Select action/file-type: 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(i, children) {
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.elAnnotations = null
domEls.elLegendWrap = null
domEls.baseEl = null
domEls.elGridRect = null
domEls.elGridRectMask = null
domEls.elGridRectMarkerMask = null
domEls.elForecastMask = null
domEls.elNonForecastMask = null
domEls.elDefs = null
}
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0048 ]-- |