Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
fix(soba): use aliases for THREE types
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Nov 22, 2021
1 parent 49b6c7c commit 064b585
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/soba/abstractions/src/lib/line/line.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
NgtColor,
NgtCoreModule,
NgtObject3dController,
NgtVector3,
} from '@angular-three/core';
import { NgtLineGeometryModule } from '@angular-three/core/geometries';
import { NgtLineMaterialModule } from '@angular-three/core/materials';
Expand Down Expand Up @@ -49,8 +50,8 @@ import {
providers: [NGT_OBJECT_3D_CONTROLLER_PROVIDER],
})
export class NgtSobaLine implements OnChanges {
@Input() points!: Array<THREE.Vector3 | [number, number, number]>;
@Input() vertexColors?: Array<THREE.Color | [number, number, number]>;
@Input() points!: Array<NgtVector3>;
@Input() vertexColors?: Array<NgtColor>;

@Input() color: NgtColor = 'black';
@Input() lineWidth?: LineMaterialParameters['linewidth'];
Expand Down
3 changes: 2 additions & 1 deletion packages/soba/abstractions/src/lib/text/text.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
NgtCoreModule,
NgtObject3d,
NgtPrimitiveModule,
NgtVector4,
} from '@angular-three/core';
import { CommonModule } from '@angular/common';
import {
Expand Down Expand Up @@ -60,7 +61,7 @@ export class NgtSobaText
| 'middle'
| 'bottom-baseline'
| 'bottom' = 'middle';
@Input() clipRect?: [number, number, number, number];
@Input() clipRect?: NgtVector4;
@Input() depthOffset?: number;
@Input() direction?: 'auto' | 'ltr' | 'rtl';
@Input() overflowWrap?: 'normal' | 'break-word';
Expand Down

0 comments on commit 064b585

Please sign in to comment.