-
Notifications
You must be signed in to change notification settings - Fork 0
/
8f39b3aa.js
1 lines (1 loc) · 3.49 KB
/
8f39b3aa.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{RU0W:function(A,h,c){"use strict";c.r(h),c.d(h,"default",function(){return E});var d=c("nKUr"),y=c.n(d),g=c("XKWP"),v=c("N7Kx"),R=c("kFHX"),p=c("4jIl"),O=c("q1tI"),D=c.n(O),t=c("VphZ"),E=function(B){Object(R.a)(l,B);var w=Object(p.a)(l);function l(){return Object(g.a)(this,l),w.apply(this,arguments)}return Object(v.a)(l,[{key:"componentDidMount",value:function(){var o=function(e){var W=e.color,a=e.row,s=e.col,G=e.title,m=e.rectWidth,i=m===void 0?50:m,_=e.rectHeight,u=_===void 0?50:_;t.select(".scale-chromatic-test").append("div").html(G);var j=i*s,C=u*a,U=t.select(".scale-chromatic-test").append("svg").attr("width",j).attr("height",C).style("border","1px solid black"),P=U.selectAll("rect").data(Array(a*s).fill(0));P.enter().append("rect").attr("width",i).attr("height",u).attr("x",function(f,n){return n%s*i}).attr("y",function(f,n){return Math.floor(n/s)*u}).attr("fill",function(f,n){return W(n)}),P.exit().remove()};o({title:"d3.schemeCategory10",color:function(e){return t.schemeCategory10[e]},row:1,col:10}),o({title:"d3.schemeAccent",color:function(e){return t.schemeAccent[e]},row:1,col:t.schemeAccent.length}),o({title:"d3.schemeDark2",color:function(e){return t.schemeDark2[e]},row:1,col:t.schemeDark2.length}),o({title:"d3.schemePaired",color:function(e){return t.schemePaired[e]},row:1,col:t.schemePaired.length}),o({title:"d3.schemePastel1",color:function(e){return t.schemePastel1[e]},row:1,col:t.schemePastel1.length}),o({title:"d3.schemePastel2",color:function(e){return t.schemePastel2[e]},row:1,col:t.schemePastel2.length}),o({title:"d3.schemeSet1",color:function(e){return t.schemeSet1[e]},row:1,col:t.schemeSet1.length}),o({title:"d3.schemeSet2",color:function(e){return t.schemeSet2[e]},row:1,col:t.schemeSet2.length}),o({title:"d3.schemeSet3",color:function(e){return t.schemeSet3[e]},row:1,col:t.schemeSet3.length}),o({title:"d3.schemeBrBG[11]",color:function(e){return t.schemeBrBG[11][e]},row:1,col:t.schemeBrBG[11].length}),o({title:"d3.interpolatePRGn(t)",color:function(e){return t.interpolatePRGn(e/100)},row:10,col:10,rectWidth:20,rectHeight:20}),o({title:"d3.schemePRGn[k]",color:function(e){return t.schemePRGn[11][e]},row:1,col:t.schemePRGn[11].length}),o({title:"d3.interpolatePiYG(t)",color:function(e){return t.interpolatePiYG(e/100)},row:10,col:10,rectWidth:20,rectHeight:20}),o({title:"d3.schemePiYG[k]",color:function(e){return t.schemePiYG[11][e]},row:1,col:t.schemePiYG[11].length}),o({title:"d3.interpolatePuOr(t)",color:function(e){return t.interpolatePuOr(e/100)},row:10,col:10,rectWidth:20,rectHeight:20}),o({title:"d3.schemePuOr[k]",color:function(e){return t.schemePuOr[11][e]},row:1,col:t.schemePuOr[11].length}),o({title:"d3.interpolateRdBu(t)",color:function(e){return t.interpolateRdBu(e/100)},row:10,col:10,rectWidth:20,rectHeight:20}),o({title:"d3.schemeRdBu[k]",color:function(e){return t.schemeRdBu[11][e]},row:1,col:t.schemeRdBu[11].length}),o({title:"d3.interpolateRdGy(t)",color:function(e){return t.interpolateRdGy(e/100)},row:10,col:10,rectWidth:20,rectHeight:20}),o({title:"d3.schemeRdGy[k]",color:function(e){return t.schemeRdGy[11][e]},row:1,col:t.schemeRdGy[11].length}),o({title:"d3.interpolateRdYlBu(t)",color:function(e){return t.interpolateRdYlBu(e/100)},row:10,col:10,rectWidth:20,rectHeight:20}),o({title:"d3.schemeRdYlBu[k]",color:function(e){return t.schemeRdYlBu[11][e]},row:1,col:t.schemeRdYlBu[11].length})}},{key:"render",value:function(){return Object(d.jsx)("div",{className:"scale-chromatic-test"})}}]),l}(D.a.Component)}}]);