This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Rewrite of https://github.com/cmfcmf/ColumnWidthCalculator, don't understand the logic :) | |
const NARROWS = '!ifjl,;.:-|\xC2\xA0\n\r\t\0\x0B'; | |
const WIDES = 'wm—G@'; | |
const textWidth = (text = '') => Math.max(1, text.split('').reduce((width, c) => width + | |
(NARROWS.includes(c) ? 0.4 : WIDES.includes(c) ? 1.3 : 1), 0)); | |
const calculate = (col) => { | |
col.avg = col.sum / col.count; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<base href="http://polygit.org/polymer+v1.9.1/components/"> | |
<link href="iron-icons/iron-icons.html" rel="import"> | |
<link href="iron-icons/av-icons.html" rel="import"> | |
<link href="paper-icon-button/paper-icon-button.html" rel="import"> | |
<link href="paper-checkbox/paper-checkbox.html" rel="import"> | |
<link rel="import" href="iron-pages/iron-pages.html"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
info: ------------ ------------------------ ------------------------ Copying answer crm_nummer { | |
"data": { | |
"value": "000056566", | |
"_id": "5efcaf88451895001488ed8f" | |
}, | |
"evidence": { | |
"notes": [], | |
"attachments": [] | |
} | |
} |