Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* @module fusioncharts.jqueryplugin
* @private
* @requires fusioncharts.transcoder.htmltable
*
* @export fusioncharts.jqueryplugin.js
*/
var FusionCharts = require('fusioncharts');
var jQuery = require('jquery');
// Require the html table module
require('./transcoder-htmltable/transcoder-htmltable');
FusionCharts.register('module', ['private', 'extensions.jQueryPlugin', function () {
var global = this,
win = global.window,
lib = global.hcLib,
doc = win.document,
jQ = jQuery,
renderFusionCharts,
captureAllFusionChartsEvents,
getChartObjectsFromSelection,
configureLinkedCharts,
math = win.Math,
mathMin = math.min,
isArray = lib.isArray,
realtimeCommandMap = {
feed: 'feedData',
setdata: 'setData',
/**
* HTMLTable Data Handler
* This module maps chart type alias with particular FusionCharts object.
* @private
*
* @module fusioncharts.transcoder.htmltable
*/
var FusionCharts = require('fusioncharts');
FusionCharts.register('module', ['private', 'HTMLTableDataHandler', function () {
var global = this,
win = global.window,
doc = win.document,
/**
* Used to remove all textNodes in an array of nodes. Textnodes get created
* inadvertently, when the table HTML has newline and space. Returns an
* array of nodes that is not an HTMLCollection and has only the non-text
* nodes in it.
*
* @param {array} nodeArr Contains the array of nodes that have to be
* sanitized.
*/
sanitizeNodesArray = function (nodeArr) {
var l,
/**
* HTMLTable Data Handler
* This module maps chart type alias with particular FusionCharts object.
* @private
*
* @module fusioncharts.transcoder.htmltable
*/
var FusionCharts = require('fusioncharts');
FusionCharts.register('module', ['private', 'HTMLTableDataHandler', function () {
var global = this,
win = global.window,
doc = win.document,
/**
* Used to remove all textNodes in an array of nodes. Textnodes get created
* inadvertently, when the table HTML has newline and space. Returns an
* array of nodes that is not an HTMLCollection and has only the non-text
* nodes in it.
*
* @param {array} nodeArr Contains the array of nodes that have to be
* sanitized.
*/
sanitizeNodesArray = function (nodeArr) {
var l, i, sanitizedArr = [];
for (i = 0, l = nodeArr.length; i < l; i += 1) {