further macro cleanup
This commit is contained in:
parent
0712611709
commit
44fe2aacf0
15 changed files with 371 additions and 422 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue