|
|
@ -1,42 +1,66 @@ |
|
|
|
const GroovyFunctions = [ |
|
|
|
{ label: 'PI', type: 'constant', apply: 'PI', detail: '常量 π' }, |
|
|
|
{ label: 'E', type: 'constant', apply: 'E', detail: '常量 e' }, |
|
|
|
{ label: 'IEEEremainder(v1,v2)', type: 'function', apply: 'IEEEremainder(v1,v2)', detail: '根据 IEEE 754 标准返回 v1 除以 v2 的余数' }, |
|
|
|
{ label: 'abs(v)', type: 'function', apply: 'abs(v)', detail: '绝对值' }, |
|
|
|
{ label: 'acos(v)', type: 'function', apply: 'acos(v)', detail: '反余弦' }, |
|
|
|
{ label: 'asin(v)', type: 'function', apply: 'asin(v)', detail: '反正弦' }, |
|
|
|
{ label: 'atan(v)', type: 'function', apply: 'atan(v)', detail: '' }, |
|
|
|
{ label: 'atan2(v)', type: 'function', apply: 'atan2(v)', detail: '' }, |
|
|
|
{ label: 'cbrt(v)', type: 'function', apply: 'cbrt(v)', detail: '' }, |
|
|
|
{ label: 'ceil(v)', type: 'function', apply: 'ceil(v)', detail: '' }, |
|
|
|
{ label: 'cos(v)', type: 'function', apply: 'cos(v)', detail: '' }, |
|
|
|
{ label: 'cosh(v)', type: 'function', apply: 'cosh(v)', detail: '' }, |
|
|
|
{ label: 'exp(v)', type: 'function', apply: 'exp(v)', detail: '' }, |
|
|
|
{ label: 'expm1(v)', type: 'function', apply: 'expm1(v)', detail: '' }, |
|
|
|
{ label: 'floor(v)', type: 'function', apply: 'floor(v)', detail: '' }, |
|
|
|
{ label: 'inverseNormalDistributioin(x)', type: 'function', apply: 'inverseNormalDistributioin(x)', detail: '' }, |
|
|
|
{ label: 'join(split,s1,s2,s3...,sn)', type: 'function', apply: 'join(split,s1,s2,s3...,sn)', detail: '' }, |
|
|
|
{ label: 'ln(v)', type: 'function', apply: 'ln(v)', detail: '' }, |
|
|
|
{ label: 'max(v1,v2,...)', type: 'function', apply: 'max(v1,v2,...)', detail: '' }, |
|
|
|
{ label: 'min(v1,v2,...)', type: 'function', apply: 'min(v1,v2,...)', detail: '' }, |
|
|
|
{ label: 'normalDistributioin(x)', type: 'function', apply: 'normalDistributioin(x)', detail: '' }, |
|
|
|
{ label: 'pow(x,y)', type: 'function', apply: 'pow(x,y)', detail: '' }, |
|
|
|
{ label: 'random()', type: 'function', apply: 'random()', detail: '' }, |
|
|
|
{ label: 'rint(v)', type: 'function', apply: 'rint(v)', detail: '' }, |
|
|
|
{ label: 'round(v)', type: 'function', apply: 'round(v)', detail: '' }, |
|
|
|
{ label: 'sin(v)', type: 'function', apply: 'sin(v)', detail: '' }, |
|
|
|
{ label: 'sinh(v)', type: 'function', apply: 'sinh(v)', detail: '' }, |
|
|
|
{ label: 'sqrt(v)', type: 'function', apply: 'sqrt(v)', detail: '' }, |
|
|
|
{ label: 'sum(v1,v2,...)', type: 'function', apply: 'sum(v1,v2,...)', detail: '' }, |
|
|
|
{ label: 'tan(v)', type: 'function', apply: 'tan(v)', detail: '' }, |
|
|
|
{ label: 'tanh(v)', type: 'function', apply: 'tanh(v)', detail: '' }, |
|
|
|
{ label: 'toDegrees(v)', type: 'function', apply: 'toDegrees(v)', detail: '' }, |
|
|
|
{ label: 'toRadians(v)', type: 'function', apply: 'toRadians(v)', detail: '' }, |
|
|
|
{ boost: -50, label: '==', type: 'keyword', apply: '==', detail: '等于', info: '等于' }, |
|
|
|
{ boost: -50, label: '>', type: 'keyword', apply: '>', detail: '大于', info: '大于' }, |
|
|
|
{ boost: -50, label: '>=', type: 'keyword', apply: '>=', detail: '大于等于', info: '大于等于' }, |
|
|
|
{ boost: -50, label: '<', type: 'keyword', apply: '<', detail: '小于', info: '小于' }, |
|
|
|
{ boost: -50, label: '<=', type: 'keyword', apply: '<=', detail: '小于等于', info: '小于等于' }, |
|
|
|
{ boost: -50, label: '&&', type: 'keyword', apply: '&&', detail: '并且', info: '并且' }, |
|
|
|
{ boost: -50, label: '||', type: 'keyword', apply: '||', detail: '或者', info: '或者' }, |
|
|
|
{ boost: -50, label: '!', type: 'keyword', apply: '!', detail: '非', info: '非' }, |
|
|
|
{ boost: -60, label: 'PI', type: 'constant', apply: 'PI', detail: '常量 π', info: '常量 π' }, |
|
|
|
{ boost: -60, label: 'E', type: 'constant', apply: 'E', detail: '常量 e', info: '常量 e' }, |
|
|
|
{ |
|
|
|
label: 'transformSequencing(value,sourceMin,sourceMax,targetMin,targetMax)', |
|
|
|
boost: -70, |
|
|
|
label: 'IEEEremainder(v1,v2)', |
|
|
|
type: 'function', |
|
|
|
apply: 'transformSequencing(value,sourceMin,sourceMax,targetMin,targetMax)', |
|
|
|
detail: '', |
|
|
|
apply: 'IEEEremainder(v1,v2)', |
|
|
|
detail: '余数', |
|
|
|
info: '根据 IEEE 754 标准返回 v1 除以 v2 的余数', |
|
|
|
}, |
|
|
|
{ boost: -70, label: 'abs(v)', type: 'function', apply: 'abs(v)', detail: '绝对值', info: '绝对值' }, |
|
|
|
{ boost: -70, label: 'acos(v)', type: 'function', apply: 'acos(v)', detail: '反余弦', info: '反余弦' }, |
|
|
|
{ boost: -70, label: 'asin(v)', type: 'function', apply: 'asin(v)', detail: '反正弦', info: '大于' }, |
|
|
|
{ boost: -70, label: 'atan(v)', type: 'function', apply: 'atan(v)', detail: '反正切', info: '反正切' }, |
|
|
|
{ boost: -70, label: 'atan2(v)', type: 'function', apply: 'atan2(v)', detail: '', info: '大于' }, |
|
|
|
{ boost: -70, label: 'cbrt(v)', type: 'function', apply: 'cbrt(v)', detail: '立方根', info: '立方根' }, |
|
|
|
{ boost: -70, label: 'ceil(v)', type: 'function', apply: 'ceil(v)', detail: '向上取整', info: '返回大于或等于 v 的最接近的整数' }, |
|
|
|
{ boost: -70, label: 'cos(v)', type: 'function', apply: 'cos(v)', detail: '余弦', info: '余弦' }, |
|
|
|
{ boost: -70, label: 'cosh(v)', type: 'function', apply: 'cosh(v)', detail: '双曲余弦', info: '双曲余弦' }, |
|
|
|
{ boost: -70, label: 'exp(v)', type: 'function', apply: 'exp(v)', detail: 'e 的 v 次方', info: 'e 的 v 次方' }, |
|
|
|
{ boost: -70, label: 'expm1(v)', type: 'function', apply: 'expm1(v)', detail: '', info: '大于' }, |
|
|
|
{ boost: -70, label: 'floor(v)', type: 'function', apply: 'floor(v)', detail: '向下取整', info: '返回小于或等于 v 的最接近的整数' }, |
|
|
|
{ boost: -70, label: 'inverseNormalDistributioin(x)', type: 'function', apply: 'inverseNormalDistributioin(x)', detail: '反正态分布', info: '反正态分布' }, |
|
|
|
{ |
|
|
|
boost: -70, |
|
|
|
label: 'join(split,V1,V2,V3...,Vn)', |
|
|
|
type: 'function', |
|
|
|
apply: 'join(split,V1,V2,V3...,Vn)', |
|
|
|
detail: '字符串连接', |
|
|
|
info: '采用 split 分隔符连接 V1, V2, V3..., Vn', |
|
|
|
}, |
|
|
|
{ boost: -70, label: 'ln(v)', type: 'function', apply: 'ln(v)', detail: '自然对数', info: '自然对数' }, |
|
|
|
{ boost: -70, label: 'max(V1,V2,V3...,Vn)', type: 'function', apply: 'max(V1,V2,V3...,Vn)', detail: '最大值', info: '返回 V1, V2, V3..., Vn 中最大的那个值' }, |
|
|
|
{ boost: -70, label: 'min(v1,v2,...)', type: 'function', apply: 'min(v1,v2,...)', detail: '最小值', info: '返回 V1, V2, V3..., Vn 中最小的那个值' }, |
|
|
|
{ boost: -70, label: 'normalDistributioin(x)', type: 'function', apply: 'normalDistributioin(x)', detail: '正态分布', info: '正态分布' }, |
|
|
|
{ boost: -70, label: 'pow(x,y)', type: 'function', apply: 'pow(x,y)', detail: '指数', info: '返回 x 的 y 次方' }, |
|
|
|
{ boost: -70, label: 'random()', type: 'function', apply: 'random()', detail: '随机数', info: '返回 0 ~ 1 之间的一个随机数' }, |
|
|
|
{ boost: -70, label: 'rint(v)', type: 'function', apply: 'rint(v)', detail: '最近整数', info: '返回和 v 最接近的整数' }, |
|
|
|
{ boost: -70, label: 'round(v)', type: 'function', apply: 'round(v)', detail: '四舍五入', info: '四舍五入' }, |
|
|
|
{ boost: -70, label: 'sin(v)', type: 'function', apply: 'sin(v)', detail: '正弦', info: '正弦' }, |
|
|
|
{ boost: -70, label: 'sinh(v)', type: 'function', apply: 'sinh(v)', detail: '双曲正弦', info: '双曲正弦' }, |
|
|
|
{ boost: -70, label: 'sqrt(v)', type: 'function', apply: 'sqrt(v)', detail: '平方根', info: '平方根' }, |
|
|
|
{ boost: -70, label: 'sum(V1,V2,V3...,Vn)', type: 'function', apply: 'sum(V1,V2,V3...,Vn)', detail: '求和', info: '返回 V1, V2, V3..., Vn 的和' }, |
|
|
|
{ boost: -70, label: 'tan(v)', type: 'function', apply: 'tan(v)', detail: '正切', info: '正切' }, |
|
|
|
{ boost: -70, label: 'tanh(v)', type: 'function', apply: 'tanh(v)', detail: '双曲正切', info: '双曲正切' }, |
|
|
|
{ boost: -70, label: 'toDegrees(v)', type: 'function', apply: 'toDegrees(v)', detail: '幅度转角度', info: '返回 v 的角度值' }, |
|
|
|
{ boost: -70, label: 'toRadians(v)', type: 'function', apply: 'toRadians(v)', detail: '角度转幅度', info: '返回 v 的幅度值' }, |
|
|
|
{ |
|
|
|
boost: -70, |
|
|
|
label: 'transformSequencing(v,si,sm,ti,tm)', |
|
|
|
type: 'function', |
|
|
|
apply: 'transformSequencing(v,si,sm,ti,tm)', |
|
|
|
detail: '缩放', |
|
|
|
info: '根据 v 所在 si 和 sm 的位置, 缩放到 ti 和 tm 对应的位置', |
|
|
|
}, |
|
|
|
]; |
|
|
|
|
|
|
|