comparison src/DML/MainVisBundle/Resources/assets/lib/vega/vega.expr.centroid.js @ 0:493bcb69166c

added public content
author Daniel Wolff
date Tue, 09 Feb 2016 20:54:02 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:493bcb69166c
1 /**
2 * centroid function in vega expression
3 */
4 if (vg && false) { // see https://github.com/vega/vega/issues/385
5
6 vg.parse.expr.codegen.functions["myFunction"] = function(args) {
7 var a = args.map(vg.parse.expr.codegen);
8 return 'window.myFunction('+a[0]+')';
9 }
10 } else {
11 //console.error("Can't register centroid function in vega expression");
12 }