re-enable complexity measurement

This commit is contained in:
be5invis 2021-02-27 21:10:44 -08:00
parent a81c477fab
commit d0862e25eb
3 changed files with 26 additions and 14 deletions

View file

@ -7,7 +7,6 @@ const util = require("util");
module.exports = finalizeGlyphs;
function finalizeGlyphs(para, glyphStore) {
suppressNaN(glyphStore);
const skew = Math.tan(((para.slopeAngle || 0) / 180) * Math.PI);
regulateGlyphStore(skew, glyphStore);
return glyphStore;
@ -15,14 +14,6 @@ function finalizeGlyphs(para, glyphStore) {
///////////////////////////////////////////////////////////////////////////////////////////////////
function suppressNaN(glyphStore) {
for (const g of glyphStore.glyphs()) {
// if (g.geometry) g.geometry.suppressNaN();
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////
function regulateGlyphStore(skew, glyphStore) {
for (const g of glyphStore.glyphs()) {
if (g.geometry.isEmpty()) continue;