chore: clean up dead code
This commit is contained in:
parent
9b772a11ef
commit
cd0f97b134
2 changed files with 0 additions and 34 deletions
|
|
@ -25,8 +25,6 @@ export default class ChartWidget extends Widget {
|
|||
}
|
||||
|
||||
set_summary() {
|
||||
// this.summary.length && this.title_field.addClass('text-muted');
|
||||
|
||||
let $summary = $(`<div class="report-summary"></div>`).hide().prependTo(this.body);
|
||||
|
||||
this.summary.forEach((summary) => {
|
||||
|
|
|
|||
|
|
@ -113,36 +113,4 @@ const build_summary_item = (summary) => {
|
|||
</div>`);
|
||||
};
|
||||
|
||||
// function get_luminosity(color) {
|
||||
// let c = color.substring(1); // strip #
|
||||
// let rgb = parseInt(c, 16); // convert rrggbb to decimal
|
||||
// let r = (rgb >> 16) & 0xff; // extract red
|
||||
// let g = (rgb >> 8) & 0xff; // extract green
|
||||
// let b = (rgb >> 0) & 0xff; // extract blue
|
||||
|
||||
// let luma = 0.2126 * r + 0.7152 * g + 0.0722 * b; // per ITU-R BT.709
|
||||
|
||||
// return luma
|
||||
// }
|
||||
|
||||
// function shadeColor(color, percent) {
|
||||
// var R = parseInt(color.substring(1,3),16);
|
||||
// var G = parseInt(color.substring(3,5),16);
|
||||
// var B = parseInt(color.substring(5,7),16);
|
||||
|
||||
// R = parseInt(R * (100 + percent) / 100);
|
||||
// G = parseInt(G * (100 + percent) / 100);
|
||||
// B = parseInt(B * (100 + percent) / 100);
|
||||
|
||||
// R = (R<255)?R:255;
|
||||
// G = (G<255)?G:255;
|
||||
// B = (B<255)?B:255;
|
||||
|
||||
// var RR = ((R.toString(16).length==1)?"0"+R.toString(16):R.toString(16));
|
||||
// var GG = ((G.toString(16).length==1)?"0"+G.toString(16):G.toString(16));
|
||||
// var BB = ((B.toString(16).length==1)?"0"+B.toString(16):B.toString(16));
|
||||
|
||||
// return "#"+RR+GG+BB;
|
||||
// }
|
||||
|
||||
export { generate_route, generate_grid, build_summary_item };
|
||||
Loading…
Add table
Reference in a new issue