re-enable complexity measurement
This commit is contained in:
parent
a81c477fab
commit
d0862e25eb
3 changed files with 26 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue