From 1975b67e6fafb948c42a63097fd071342307dcdb Mon Sep 17 00:00:00 2001 From: Thomas Kennedy Date: Sat, 18 May 2024 18:43:04 -0500 Subject: [PATCH] Small tweaks for mouth order --- src/display.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/display.ts b/src/display.ts index 5dee411..3527c9e 100644 --- a/src/display.ts +++ b/src/display.ts @@ -691,10 +691,6 @@ export const display = ( opaqueLines: true, strokeColor: faceLineStrokeColor, }, - { - name: "mouth", - positions: [[200, 440]], - }, { name: "eye", positions: [ @@ -720,6 +716,10 @@ export const display = ( positions: [null], scaleFatness: true, }, + { + name: "mouth", + positions: [[200, 440]], + }, { name: "hair", positions: [null], @@ -782,7 +782,7 @@ export const display = ( console.log({ metadata, info, feature }); if (metadata.clip) { - clipToParent(insideSVG, baseFace, "beforeend"); + clipToParent(insideSVG, baseFace.clone(), "beforeend"); } // After we add hair (which is last feature on face), add outer stroke to wrap entire face