Skip to content

cientos v5, html with model integration is broken #626

@alvarosabu

Description

@alvarosabu

Describe the bug

Adding a Html component inside a primitive no longer works.

<primitive :object="model">
        <Html v-if="!closeUp" :distance-factor="1.39" transform :position="[1, 0, 0.2]" :occlude="[back]">
        <button class="
          p-6
          flex
          items-center
          rounded-full
          text-4xl
          hover:bg-dark
          hover:text-white
          transition-colors
          duration-200
          ease-in-out
          " @click="onViewClose">
          <i class="i-carbon-view" />
        </button>

        </Html>
        <Html transform wrapper-class="webpage" :distance-factor="1.39" center :occlude="[back]"
          :position="[0.17, -0.25, 0.05]">
        <iframe class="rounded-xl overflow-hidden w-[430px] h-[852px] bg-white dark:bg-dark" src="https://tresjs.org"
          frameborder="0" />

        </Html>
      </primitive>

Image

Reproduction

Internal, cientos playground

Steps to reproduce

No response

System Info

Used Package Manager

pnpm

Code of Conduct

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions