Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html content reactive support #407

Open
5 tasks done
jackywongmm opened this issue May 8, 2024 · 0 comments
Open
5 tasks done

Html content reactive support #407

jackywongmm opened this issue May 8, 2024 · 0 comments

Comments

@jackywongmm
Copy link

jackywongmm commented May 8, 2024

Describe the bug

const text = ref('this is text!')

const onClick = ( )=>{
text.value='text change!'
}

<TresMesh @click="onClick" :position="[1, 1, 1]">
  <TresBoxGeometry />
  <TresMeshNormalMaterial />
  <Html
    center
    transform
    :distance-factor="4"
    :position="[0, 0, 0.65]"
    :scale="[0.75, 0.75, 0.75]"
  >
    <h1 class="bg-white dark:bg-dark text-xs p-1 rounded">
      {{ text }}
    </h1>
  </Html>
</TresMesh>

Reproduction

N

Steps to reproduce

No response

System Info

No response

Used Package Manager

npm

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant