Skip to content

Output for <ngt-canvas /> #71

@dolanmiu

Description

@dolanmiu

I am creating a component in a library which uses angular-three

Somewhere in the Scene Graph, it emits output. I want this to be bubbled up out of the component, into the host app.

I added an output on my SceneGraph, but I can't see it in <ngt-canvas />

export class SceneGraph {
  protected readonly Math = Math;
  pointsOfInterest = output<Vector3>();
}
@Component({
  selector: 'lib-three-d-hero',
  standalone: true,
  imports: [NgtCanvas],
  template: ` <ngt-canvas [sceneGraph]="sceneGraph" (pointsOfInterest)="pointsOfInterest.emit($event)" /> `,
  styles: `
    :host {
      display: block;
      height: 100dvh;
    }
  `,
})

How can I make this work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions