Skip to content

Commit e7ada67

Browse files
committed
docs: adjust docs
1 parent 8c7915a commit e7ada67

File tree

1 file changed

+13
-2
lines changed
  • apps/kitchen-sink/src/app/soba/portal-shapes

1 file changed

+13
-2
lines changed

apps/kitchen-sink/src/app/soba/portal-shapes/letter.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ import {
88
TemplateRef,
99
viewChild,
1010
} from '@angular/core';
11-
import { injectBeforeRender, injectStore, NgtArgs, NgtEuler, NgtThreeEvent, NgtVector3 } from 'angular-three';
11+
import {
12+
injectBeforeRender,
13+
injectStore,
14+
NgtArgs,
15+
NgtEuler,
16+
NgtObjectEvents,
17+
NgtThreeEvent,
18+
NgtVector3,
19+
} from 'angular-three';
1220
import { NgtrRigidBody } from 'angular-three-rapier';
1321
import { NgtsText3D } from 'angular-three-soba/abstractions';
1422
import { NgtsMeshTransmissionMaterial } from 'angular-three-soba/materials';
@@ -28,11 +36,12 @@ import boldFont from './bold.blob';
2836
[options]="{ restitution: 0.1, colliders: 'cuboid' }"
2937
[position]="position()"
3038
[rotation]="rotation()"
31-
(dblclick)="onDblClick($any($event))"
3239
(pointermissed)="onPointerMissed($any($event))"
3340
>
3441
<ngts-center>
3542
<ngts-text-3d
43+
#text3D
44+
[ngtObjectEvents]="text3D.meshRef()"
3645
[text]="char()"
3746
[font]="boldFont"
3847
[options]="{
@@ -46,6 +55,7 @@ import boldFont from './bold.blob';
4655
bevelSize: 2,
4756
bevelOffset: 0,
4857
}"
58+
(dblclick)="onDblClick($any($event))"
4959
>
5060
<ngts-mesh-transmission-material
5161
[options]="$any({ clearcoat: 1, samples: 3, thickness: 40, chromaticAberration: 0.25, anisotropy: 0.4 })"
@@ -80,6 +90,7 @@ import boldFont from './bold.blob';
8090
NgtsRenderTextureContent,
8191
NgtArgs,
8292
NgTemplateOutlet,
93+
NgtObjectEvents,
8394
],
8495
})
8596
export class Letter {

0 commit comments

Comments
 (0)