Don't attach things to anchor points. Fixes #29.

pull/48/head
Atul Varma 2021-02-23 11:46:00 -05:00
rodzic 78e38f9654
commit f1bfc59c79
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -248,7 +248,9 @@ function getSymbolWithAttachments(
const root = rng.choice(SvgVocabulary); const root = rng.choice(SvgVocabulary);
if (root.specs) { if (root.specs) {
const attachmentKinds = rng.uniqueChoices( const attachmentKinds = rng.uniqueChoices(
Array.from(iterAttachmentPoints(root.specs)).map((point) => point.type), Array.from(iterAttachmentPoints(root.specs))
.filter((point) => point.type !== "anchor")
.map((point) => point.type),
numAttachmentKinds numAttachmentKinds
); );
for (let kind of attachmentKinds) { for (let kind of attachmentKinds) {