Файловый менеджер - Редактировать - /home/bean7936/deribos.com/wp-content3e392d/plugins/graphina-elementor-charts-and-graphs/dist/gauge_google.js.map
Назад
{"version":3,"file":"gauge_google.js","sources":["../assets/elementor/js/google-chart/GaugeGoogleChart.js"],"sourcesContent":["import GraphinaGoogleChartBase from './GraphinaGoogleChartBase';\n\n// Child class specifically for Gauge Charts\nexport default class GaugeChart extends GraphinaGoogleChartBase {\n constructor(settings) {\n super(settings);\n this.chart = null;\n this.data = null;\n this.options = {};\n }\n\n /**\n * Sets up the chart handlers for Google Gauge Chart.\n */\n setUpChartsHandler() {\n this.chartHandlers = {\n gauge_google: (element) => this.observeChartElement(element, 'Gauge'),\n };\n\n }\n\n /**\n * Observes the chart element and initializes it when in viewport.\n * @param {jQuery} element - The jQuery element reference.\n * @param {string} chartType - The type of chart to initialize.\n */\n observeChartElement(element, chartType) {\n if (gcfe_public_localize.view_port === 'off') {\n if (!this.observer) {\n this.observer = new IntersectionObserver((entries) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n // Initialize chart when in viewport\n this.setupChart(jQuery(entry.target), chartType);\n this.observer.unobserve(entry.target);\n }\n });\n }, { threshold: 0.1 });\n }\n this.observer.observe(element[0]);\n } else {\n this.setupChart(element, chartType);\n }\n }\n\n\n // Customize chart options for Gantt Charts (if needed)\n getFinalChartOptions(chartOptions,elementId){\n // Customize options here if needed\n return chartOptions;\n\n }\n\n setupTableData(dynamicData, dataTable, googleChart, googleChartTexture, extraData) {\n if(dynamicData?.google_chart_data?.data.length > 0){\n dataTable.addColumn('string', 'Month');\n dataTable.addColumn('number', 'Sale');\n dynamicData.google_chart_data.data.forEach(row => dataTable.addRow(row));\n googleChart.show()\n googleChartTexture.hide()\n } else if(dynamicData?.columns.length > 0 && dynamicData.rows.length > 0){\n dynamicData.columns.forEach((col, index) => {\n dataTable.addColumn(col[0],col[1])\n });\n dynamicData.rows.forEach(row => dataTable.addRow(row));\n } else{\n googleChart.hide()\n googleChartTexture.show()\n }\n var formatter = new google.visualization.NumberFormat({\n prefix: extraData.prefix ?? '',\n suffix: extraData.suffix ?? '',\n fractionDigits: extraData.fractionDigits ?? 0\n });\n formatter.format(dataTable, 1);;\n }\n \n afterSetupChart(element, extraData,chart,dataTable,finalChartOptions) {\n // Define color mappings\n const circleColors = {\n \"#4684ee\": extraData.ballColor ?? \"#4684ee\",\n \"#f7f7f7\": extraData.innerCircleColor ?? \"#f7f7f7\",\n \"#cccccc\": extraData.outerCircleColor ?? \"#cccccc\"\n };\n \n const needleColor = extraData.needleColor ?? \"#c63310\";\n \n // Update circle colors\n element.querySelectorAll(\"circle\").forEach(circle => {\n const fillColor = circleColors[circle.getAttribute(\"fill\")];\n if (fillColor) circle.setAttribute(\"fill\", fillColor);\n });\n \n // Update path colors\n element.querySelectorAll(\"path\").forEach(path => {\n if (path.getAttribute(\"stroke\") === \"#c63310\") {\n path.setAttribute(\"stroke\", needleColor);\n path.setAttribute(\"fill\", needleColor);\n }\n });\n }\n \n\n\n}\n// Initialize Gauge Chart\nwindow.graphinaGoogleGaugeChart = new GaugeChart();\n"],"names":["GaugeChart","GraphinaGoogleChartBase","settings","element","chartType","entries","entry","chartOptions","elementId","dynamicData","dataTable","googleChart","googleChartTexture","extraData","_a","row","col","index","formatter","chart","finalChartOptions","circleColors","needleColor","circle","fillColor","path"],"mappings":"iDAGe,MAAMA,UAAmBC,CAAwB,CAC5D,YAAYC,EAAU,CAClB,MAAMA,CAAQ,EACd,KAAK,MAAQ,KACb,KAAK,KAAO,KACZ,KAAK,QAAU,CAAA,CACnB,CAKA,oBAAqB,CACjB,KAAK,cAAgB,CACjB,aAAeC,GAAY,KAAK,oBAAoBA,EAAS,OAAO,CAChF,CAEI,CAOA,oBAAoBA,EAASC,EAAW,CAChC,qBAAqB,YAAc,OAC9B,KAAK,WACN,KAAK,SAAW,IAAI,qBAAsBC,GAAY,CAClDA,EAAQ,QAASC,GAAU,CACnBA,EAAM,iBAEN,KAAK,WAAW,OAAOA,EAAM,MAAM,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