File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
libs/soba/abstractions/src/lib Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ export class NgtsBillboard {
55
55
this . innerRef ( ) . nativeElement ,
56
56
] ;
57
57
58
- if ( ! follow || ! group ) return ;
58
+ if ( ! follow || ! group || ! inner ) return ;
59
59
60
60
// save previous rotation in case we're locking an axis
61
- const prevRotation = group . rotation . clone ( ) ;
61
+ const prevRotation = inner . rotation . clone ( ) ;
62
62
63
63
// always face the camera
64
64
group . updateMatrix ( ) ;
@@ -67,9 +67,9 @@ export class NgtsBillboard {
67
67
camera . getWorldQuaternion ( inner . quaternion ) . premultiply ( q . invert ( ) ) ;
68
68
69
69
// readjust any axis that is locked
70
- if ( lockX ) group . rotation . x = prevRotation . x ;
71
- if ( lockY ) group . rotation . y = prevRotation . y ;
72
- if ( lockZ ) group . rotation . z = prevRotation . z ;
70
+ if ( lockX ) inner . rotation . x = prevRotation . x ;
71
+ if ( lockY ) inner . rotation . y = prevRotation . y ;
72
+ if ( lockZ ) inner . rotation . z = prevRotation . z ;
73
73
} ) ;
74
74
}
75
75
}
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export interface NgtsTextOptions extends Partial<NgtThreeElements['ngt-mesh']> {
45
45
fillOpacity ?: number ;
46
46
sdfGlyphSize : number ;
47
47
debugSDF ?: boolean ;
48
+ glyphGeometryDetail ?: number ;
48
49
}
49
50
50
51
const defaultOptions : NgtsTextOptions = {
You can’t perform that action at this time.
0 commit comments