Sha256: 531ea12af7179518b77a363e12fa3d00128ca5de2ebae4db14876c031bfa3048
Contents?: true
Size: 916 Bytes
Versions: 9
Compression:
Stored size: 916 Bytes
Contents
//>>built define("dojox/charting/themes/gradientGenerator",["dojo/_base/lang","dojo/_base/array","dojo/_base/Color","../Theme","dojox/color/_base","./common"],function(_1,_2,_3,_4,_5,_6){ var gg=_1.getObject("gradientGenerator",true,_6); gg.generateFills=function(_7,_8,_9,_a){ return _2.map(_7,function(c){ return _4.generateHslGradient(c,_8,_9,_a); }); }; gg.updateFills=function(_b,_c,_d,_e){ _2.forEach(_b,function(t){ if(t.fill&&!t.fill.type){ t.fill=_4.generateHslGradient(t.fill,_c,_d,_e); } }); }; gg.generateMiniTheme=function(_f,_10,_11,_12,_13){ return _2.map(_f,function(c){ c=new _5.Color(c); return {fill:_4.generateHslGradient(c,_10,_11,_12),stroke:{color:_4.generateHslColor(c,_13)}}; }); }; gg.generateGradientByIntensity=function(_14,_15){ _14=new _3(_14); return _2.map(_15,function(_16){ var s=_16.i/255; return {offset:_16.o,color:new _3([_14.r*s,_14.g*s,_14.b*s,_14.a])}; }); }; return gg; });
Version data entries
9 entries across 9 versions & 2 rubygems