Add ligation configurability

This commit is contained in:
be5invis 2020-10-27 00:36:12 -07:00
parent c1c3ce79ee
commit 2e601b641c
14 changed files with 770 additions and 659 deletions

View file

@ -88,10 +88,10 @@ class Composite {
}
resolve(para, selTree, catalog, vs) {
if (this.inherits) {
for (const item of this.inherits) {
if (!catalog.has(item)) throw new Error(`Cannot find composite variant: ${item}`);
catalog.get(item).resolve(para, selTree, catalog, vs);
if (!catalog.has(this.inherits)) {
throw new Error(`Cannot find composite variant: ${this.inherits}`);
}
catalog.get(this.inherits).resolve(para, selTree, catalog, vs);
}
for (const [prime, variant] of this.decompose(para, selTree)) {
variant.resolve(para, vs);