You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I ran into this problem recently where the position of the i after the letter when curving was always wrong.
First, I imported the library after installing it npm install circletype --save
then import CircleType from 'circletype';
I get my element let profil = ref(null);
the element <p class="font-semibold text-sm text-center relative top-[3px]" v-else ref="profil">{{ profileInformation }}</p>
then i created the new instance in the onMounted const handleCurveText = () => { setTimeout(() => { new CircleType(profil.value).radius(1300).dir(-1); }, 1000); }
onMounted onMounted(() => { handleCurveText(); })
Thank you in advance for your help !
The text was updated successfully, but these errors were encountered:
Yes, I'm also seeing this in the case of "fish".
Not sure if it's exclusive to the case of "f" followed by "i" but when it occurs, the <span> that is created for "i" has the inline style transform: translateX(0em) instead of an appropriate negative value, causing the "i" to be out position.
Here's my quick and dirty hack to fix it:
if the translateX value is exactly 0em, use the transformX value of next or previous letter.
Seems to work OK for my "fish" case.
Hello !
So I ran into this problem recently where the position of the i after the letter when curving was always wrong.
First, I imported the library after installing it
npm install circletype --save
then
import CircleType from 'circletype';
I get my element
let profil = ref(null);
the element
<p class="font-semibold text-sm text-center relative top-[3px]" v-else ref="profil">{{ profileInformation }}</p>
then i created the new instance in the onMounted
const handleCurveText = () => { setTimeout(() => { new CircleType(profil.value).radius(1300).dir(-1); }, 1000); }
onMounted
onMounted(() => { handleCurveText(); })
Thank you in advance for your help !
The text was updated successfully, but these errors were encountered: