Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function expressionFunctions(codegen) {
var fn = functions(codegen);
eventFunctions.forEach(function(name) {
fn[name] = eventPrefix + name;
});
for (var name in extendedFunctions) {
fn[name] = thisPrefix + name;
}
return fn;
}
function expressionFunctions(codegen) {
var fn = functions(codegen);
eventFunctions.forEach(function(name) {
fn[name] = eventPrefix + name;
});
for (var name in extendedFunctions) {
fn[name] = thisPrefix + name;
}
return fn;
}
function buildFunctions(codegen) {
var fn = functions(codegen);
eventFunctions.forEach(function(name) { fn[name] = eventPrefix + name; });
for (var name in functionContext) { fn[name] = thisPrefix + name; }
return fn;
}
functions: function(codegen) {
var fn = expr.functions(codegen);
fn.eventItem = 'event.vg.getItem';
fn.eventGroup = 'event.vg.getGroup';
fn.eventX = 'event.vg.getX';
fn.eventY = 'event.vg.getY';
fn.open = 'window.open';
fn.scale = scaleGen(codegen, false);
fn.iscale = scaleGen(codegen, true);
fn.inrange = 'this.defs.inrange';
fn.indata = indataGen(codegen);
fn.format = 'this.defs.format';
fn.timeFormat = 'this.defs.timeFormat';
fn.utcFormat = 'this.defs.utcFormat';
return fn;
},
functionDefs: function(/*codegen*/) {
function buildFunctions(codegen) {
const fn = functions(codegen);
eventFunctions.forEach(name => fn[name] = eventPrefix + name);
for (let name in functionContext) { fn[name] = thisPrefix + name; }
return fn;
}