further macro cleanup

This commit is contained in:
be5invis 2020-07-30 23:58:12 -07:00
parent 0712611709
commit 44fe2aacf0
15 changed files with 371 additions and 422 deletions

View file

@ -59,10 +59,12 @@ module.exports = class Glyph {
return;
} else if (component instanceof Transform) {
this.applyTransform(component, copyAnchors);
} else if (component instanceof Array) {
throw new Error("Attempt to include an array.");
} else {
} else if (component.isMarkSet) {
this.copyAnchors(component);
} else if (component instanceof Glyph) {
this.includeGlyph(component, copyAnchors, copyWidth);
} else {
throw new Error("Invalid component to be introduced.");
}
}
includeGlyph(g, copyAnchors, copyWidth) {