diff --git a/projects/avatar/src/lib/parts/avatar.ts b/projects/avatar/src/lib/parts/avatar.ts
index 2044448..e7305bb 100644
--- a/projects/avatar/src/lib/parts/avatar.ts
+++ b/projects/avatar/src/lib/parts/avatar.ts
@@ -52,7 +52,7 @@ export class AvatarHelper {
/>
@@ -65,7 +65,7 @@ export class AvatarHelper {
id="Avataaar"
stroke-width="1"
fill-rule="evenodd"
- mask="url(#mask-4)">
+ mask="url(${window.location.href}#mask-4)">
@@ -76,7 +76,7 @@ export class AvatarHelper {
id="Neck-Shadow"
fill-opacity="0.100000001"
fill="#000000"
- mask="url(#mask-6)"
+ mask="url(${window.location.href}#mask-6)"
/>
${ClothesHelper.getClothesSvg(options.clothes, options.clothColor, options.graphic)}
${FaceHelper.getFaceSvg(options.mouth, options.eyes, options.eyebrow)}
diff --git a/projects/avatar/src/lib/parts/clothes.ts b/projects/avatar/src/lib/parts/clothes.ts
index 72bf571..8c05b4b 100644
--- a/projects/avatar/src/lib/parts/clothes.ts
+++ b/projects/avatar/src/lib/parts/clothes.ts
@@ -44,7 +44,7 @@ export class ClothesHelper {
-
+
@@ -52,7 +52,7 @@ export class ClothesHelper {
@@ -113,7 +113,7 @@ export class ClothesHelper {
/>
@@ -226,7 +226,7 @@ export class ClothesHelper {
id='Straps'
fill='#F4F4F4'
fill-rule='evenodd'
- mask='url(#hoodie_mask)'
+ mask='url(${window.location.href}#hoodie_mask)'
/>
`;
}
@@ -299,7 +299,7 @@ export class ClothesHelper {
opacity='0.599999964'
stroke-width='1'
fill-rule='evenodd'
- mask='url(#crew_path)'
+ mask='url(${window.location.href}#crew_path)'
fill-opacity='0.16'
fill='#000000'>
@@ -362,7 +362,7 @@ export class ClothesHelper {
return `
@@ -373,7 +373,7 @@ export class ClothesHelper {
return `
@@ -430,7 +430,7 @@ export class ClothesHelper {
return `
@@ -441,7 +441,7 @@ export class ClothesHelper {
return `
@@ -473,7 +473,7 @@ export class ClothesHelper {
return `
@@ -484,7 +484,7 @@ export class ClothesHelper {
return `
@@ -511,7 +511,7 @@ export class ClothesHelper {
return `
@@ -563,7 +563,7 @@ export class ClothesHelper {
return `
@@ -590,7 +590,7 @@ export class ClothesHelper {
return `
@@ -608,7 +608,7 @@ export class ClothesHelper {
d='M34.4465814,31.5861741 C33.968066,34.4016565 30.3675711,38.9307388 27.2995299,35.97048 C23.8326433,32.6262918 31.5245196,31.1602447 28.7810969,28.3763859 C27.5974268,27.1761741 24.3685608,27.83928 22.7791175,27.96528 C21.289633,28.0833741 18.9133856,28.4198682 19.4834474,30.5900329 C19.9159423,32.2398918 21.1926433,31.5342918 21.8715711,32.4815153 C22.4069938,33.2301035 22.1798598,35.9887624 21.3826639,36.7492094 C20.3796124,37.7053271 19.193468,37.4123153 17.7975093,36.7996094 C14.6057567,35.39928 13.1212206,31.4868565 15.2228289,28.5829271 C19.3780454,22.8417741 35.2897979,21.5244565 34.4465814,31.5861741 M14.9853031,14.7244094 C15.9695505,14.2811859 17.132932,14.5213271 17.7173443,15.5110447 C18.5189938,16.8669035 17.3595711,18.6842682 15.7424165,18.4668565 C14.0347052,18.2365976 13.1726845,15.5481035 14.9853031,14.7244094 M32.9472,16.3787153 C32.0911175,19.3854212 27.3109113,16.0012094 30.0112825,14.08848 C31.5626227,12.9900565 33.4583753,14.5801271 32.9472,16.3787153 M47.8267052,23.16888 C47.5911588,20.7887153 46.9270763,18.5231859 45.7389526,16.4385035 C45.1164371,15.3460094 44.3464577,14.3276329 43.5492619,13.35768 C43.2483959,12.9930212 42.6432,12.34968 42.5264165,12.1446212 C41.8173031,10.90488 41.888066,11.7834212 42.2789938,10.3598682 C42.8950763,8.11657412 44.2262103,6.28043294 43.1627876,3.87062118 C42.1735918,1.62930353 39.5078598,0.576832941 37.1791175,0.443915294 C36.0914474,0.382150588 35.0017979,0.525938824 33.9720247,0.892574118 C32.9368082,1.26069176 31.9708701,2.53255059 31.0717361,2.79393882 C30.3740041,2.99702118 28.3872,2.33391529 27.6305814,2.28549176 C26.2356124,2.19605647 24.8332206,2.23558588 23.4387464,2.31859765 C21.8087258,2.41544471 18.0632412,3.58205647 16.5257567,3.19565647 C15.5108289,2.94069176 14.3172619,1.41485647 13.1449732,1.03191529 C11.852932,0.610432941 10.4673649,0.467632941 9.17829278,0.954338824 C6.89260206,1.81805647 5.17845773,4.50605647 5.12501443,6.89560941 C5.09680825,8.15066824 5.78018969,9.01092706 5.91528247,10.1469035 C6.11816907,11.8619859 6.35223093,10.5026682 5.42835464,11.8718682 C4.9577567,12.5690682 4.13284948,13.1822682 3.60385979,13.8537741 C0.778787629,17.4405741 -0.278696907,22.73208 0.974746392,27.0733976 C4.13284948,38.0131624 14.6423753,42.4676329 25.4136742,41.86728 C34.6648082,41.3509271 48.9782103,34.1491624 47.8267052,23.16888'
id='Fill-74'
fill='#FFFFFF'
- mask='url(#bear_mask)'
+ mask='url(${window.location.href}#bear_mask)'
/>
@@ -617,7 +617,7 @@ export class ClothesHelper {
return `
@@ -649,7 +649,7 @@ export class ClothesHelper {
return `
diff --git a/projects/avatar/src/lib/parts/colors.ts b/projects/avatar/src/lib/parts/colors.ts
index 0316d23..8503bd8 100644
--- a/projects/avatar/src/lib/parts/colors.ts
+++ b/projects/avatar/src/lib/parts/colors.ts
@@ -4,7 +4,7 @@ export class ColorHelper {
private static makeColor(hex: string, maskId: string) {
return `
diff --git a/projects/avatar/src/lib/parts/face.ts b/projects/avatar/src/lib/parts/face.ts
index 68bcdc3..03ebb73 100644
--- a/projects/avatar/src/lib/parts/face.ts
+++ b/projects/avatar/src/lib/parts/face.ts
@@ -187,7 +187,7 @@ export class FaceHelper {
@@ -595,7 +595,7 @@ export class FaceHelper {
id='Grimace-Teeth'
fill='#E6E6E6'
fill-rule='evenodd'
- mask='url(#grimace_mask)'
+ mask='url(${window.location.href}#grimace_mask)'
/>
`;
case Mouth.SAD:
@@ -638,7 +638,7 @@ export class FaceHelper {
id='Teeth'
fill='#FFFFFF'
fill-rule='evenodd'
- mask='url(#scream_mask)'
+ mask='url(${window.location.href}#scream_mask)'
x='39'
y='2'
width='31'
@@ -649,7 +649,7 @@ export class FaceHelper {
id='Tongue'
stroke-width='1'
fill-rule='evenodd'
- mask='url(#scream_mask)'
+ mask='url(${window.location.href}#scream_mask)'
fill='#FF4F6D'>
@@ -689,7 +689,7 @@ export class FaceHelper {
id='Teeth'
fill='#FFFFFF'
fill-rule='evenodd'
- mask='url(#smile_mask)'
+ mask='url(${window.location.href}#smile_mask)'
x='39'
y='2'
width='31'
@@ -700,7 +700,7 @@ export class FaceHelper {
id='Tongue'
stroke-width='1'
fill-rule='evenodd'
- mask='url(#smile_mask)'
+ mask='url(${window.location.href}#smile_mask)'
fill='#FF4F6D'>
@@ -731,7 +731,7 @@ export class FaceHelper {
id='Teeth'
fill='#FFFFFF'
fill-rule='evenodd'
- mask='url(#tongue_mask)'
+ mask='url(${window.location.href}#tongue_mask)'
x='39'
y='2'
width='31'
@@ -816,7 +816,7 @@ export class FaceHelper {
id='Teeth'
fill='#FFFFFF'
fill-rule='evenodd'
- mask='url(#vomit_mask)'
+ mask='url(${window.location.href}#vomit_mask)'
x='39'
y='0'
width='31'
@@ -828,7 +828,7 @@ export class FaceHelper {
diff --git a/projects/avatar/src/lib/parts/tops.ts b/projects/avatar/src/lib/parts/tops.ts
index 03e3cab..8f107de 100644
--- a/projects/avatar/src/lib/parts/tops.ts
+++ b/projects/avatar/src/lib/parts/tops.ts
@@ -117,7 +117,7 @@ export class TopsHelper {
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}
`;
@@ -133,7 +133,7 @@ export class TopsHelper {
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}
-
+
-
+
@@ -278,7 +278,7 @@ export class TopsHelper {
fill-opacity='0.5'
fill='#FFFFFF'
fill-rule='evenodd'
- mask='url(#hijab_mask2)'
+ mask='url(${window.location.href}#hijab_mask2)'
/>
${ AccessoriesHelper.getAccessorySvg(accessories)}
`;
@@ -336,7 +336,7 @@ export class TopsHelper {
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}
@@ -494,7 +494,7 @@ export class TopsHelper {
y='21'
width='146'
height='46'
- mask='url(#hat_mask2)'
+ mask='url(${window.location.href}#hat_mask2)'
/>
@@ -680,7 +680,7 @@ export class TopsHelper {
@@ -706,7 +706,7 @@ export class TopsHelper {
-
+
+ mask='url(${window.location.href}#hair_mask1)'/>
-
+
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}
@@ -819,7 +819,7 @@ export class TopsHelper {
-
+
-
+
id='Shadow'
fill-opacity='0.24'
fill='#000000'
- mask='url(#curvy_mask2)'
+ mask='url(${window.location.href}#curvy_mask2)'
/>
-
+
id='Shadows'
fill-opacity='0.24'
fill='#000000'
- mask='url(#dread_mask2)'
+ mask='url(${window.location.href}#dread_mask2)'
/>
${ AccessoriesHelper.getAccessorySvg(accessories)}
-
+
transform='translate(67.000000, 0.000000)'>
@@ -1168,7 +1168,7 @@ ${ AccessoriesHelper.getAccessorySvg(accessories)}
-
+
-
+
@@ -1372,7 +1372,7 @@ ${ AccessoriesHelper.getAccessorySvg(accessories)}
-
+
@@ -1416,7 +1416,7 @@ ${ AccessoriesHelper.getAccessorySvg(accessories)}
-
+
d='M116.179148,40 L146,40 C171.405098,40 192,60.5949015 192,86 L192,154.108712 C192,180.650314 210.758775,204.349179 222.609956,226.05167 C234.461138,247.754161 215.254522,268.242596 195.770735,276.769484 C190.902336,278.900091 185.645645,280 180.331438,280 L135.26309,280 C78.9108161,280 70.2166412,216.309596 67.6972794,146.504423 L70.2166412,84.1431398 C71.212998,59.4805095 91.4964003,40 116.179148,40 Z'
id='Hair'
fill='#CCB55A'
- mask='url(#side_mask3)'
+ mask='url(${window.location.href}#side_mask3)'
/>
id='Shadow'
fill-opacity='0.16'
fill='#000000'
- mask='url(#side_mask1)'
+ mask='url(${window.location.href}#side_mask1)'
/>
-
+
-
+
-
+
-
+
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}
@@ -1765,7 +1765,7 @@ ${ AccessoriesHelper.getAccessorySvg(accessories)}
-
+
${ AccessoriesHelper.getAccessorySvg(accessories)}
@@ -1825,7 +1825,7 @@ ${ AccessoriesHelper.getAccessorySvg(accessories)}
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}
@@ -1879,7 +1879,7 @@ ${ AccessoriesHelper.getAccessorySvg(accessories)}
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}
@@ -1933,7 +1933,7 @@ ${ AccessoriesHelper.getAccessorySvg(accessories)}
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}
@@ -1988,7 +1988,7 @@ ${ AccessoriesHelper.getAccessorySvg(accessories)}
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}
@@ -2021,7 +2021,7 @@ ${ AccessoriesHelper.getAccessorySvg(accessories)}
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}
-
+
${ TopsHelper.getFacialHair(facialHair, facialHairColor)}${ AccessoriesHelper.g
/>