Skip to content

Commit 214eb87

Browse files
committed
fix: Typo in hightSegments property #447
1 parent 4b3af4f commit 214eb87

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

projects/atft/src/lib/object/mesh/sphere-mesh.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class SphereMeshComponent extends AbstractMesh {
1414

1515
@Input() radius!: number;
1616
@Input() widthSegments!: number;
17-
@Input() hightSegments!: number;
17+
@Input() heightSegments!: number;
1818

1919
constructor(
2020
protected override rendererService: RendererService,
@@ -25,7 +25,7 @@ export class SphereMeshComponent extends AbstractMesh {
2525

2626
protected newObject3DInstance(): THREE.Mesh {
2727
// console.log('SphereMeshComponent.newObject3DInstance');
28-
const geometry = new THREE.SphereGeometry(this.radius, this.widthSegments, this.hightSegments);
28+
const geometry = new THREE.SphereGeometry(this.radius, this.widthSegments, this.heightSegments);
2929
const material = this.getMaterial();
3030
const mesh = new THREE.Mesh(geometry, material);
3131
this.applyShadowProps(mesh);

src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<atft-empty [translateZ]="-50">
3131
<atft-sphere-mesh atft-raycaster-group (mouseEnter)="mouseEnter()" (mouseExit)="mouseExit()" (click)="click()"
32-
[radius]="4" [widthSegments]="20" [hightSegments]="20" material="phong" materialColor="#ff0000"
32+
[radius]="4" [widthSegments]="20" [heightSegments]="20" material="phong" materialColor="#ff0000"
3333
[translateX]=10 [translateY]=5 [translateZ]="20">
3434
</atft-sphere-mesh>
3535
<atft-cylinder-mesh [radiusTop]="2" [radiusBottom]="3" [height]="10" [radialSegments]="36" [heightSegments]="1"

src/stories/animation/connector/connector-line-animated.stories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import {AnimationService} from '../../../../projects/atft/src/lib/animation/anim
99
@Component({
1010
selector: 'app-storybook',
1111
template: axesSceneWrapper(`
12-
<atft-sphere-mesh [radius]="2" [widthSegments]="10" [hightSegments]="20" material="lamb" materialColor="#00ff00"
12+
<atft-sphere-mesh [radius]="2" [widthSegments]="10" [heightSegments]="20" material="lamb" materialColor="#00ff00"
1313
#a [translateY]="50" [translateX]="-10" [translateZ]="translateZ">
1414
</atft-sphere-mesh>
15-
<atft-sphere-mesh [radius]="2" [widthSegments]="10" [hightSegments]="20" material="lamb" materialColor="#00ff00"
15+
<atft-sphere-mesh [radius]="2" [widthSegments]="10" [heightSegments]="20" material="lamb" materialColor="#00ff00"
1616
#b [translateY]="-50" [translateX]="10" [translateZ]="+10">
1717
</atft-sphere-mesh>
1818

src/stories/animation/connector/connector-line-bloom.stories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import {worldSceneWrapper} from "../../scene-wrapper/world-scene-wrapper";
1111
<atft-effect-composer>
1212
</atft-effect-composer>
1313
14-
<atft-sphere-mesh [radius]="0.5" [widthSegments]="10" [hightSegments]="20" material="lamb" materialColor="#0000ff"
14+
<atft-sphere-mesh [radius]="0.5" [widthSegments]="10" [heightSegments]="20" material="lamb" materialColor="#0000ff"
1515
#a [translateY]="50" [translateX]="-10" [translateZ]="translateZ">
1616
</atft-sphere-mesh>
17-
<atft-sphere-mesh [radius]="0.5" [widthSegments]="10" [hightSegments]="20" material="lamb" materialColor="#0000ff"
17+
<atft-sphere-mesh [radius]="0.5" [widthSegments]="10" [heightSegments]="20" material="lamb" materialColor="#0000ff"
1818
#b [translateY]="-50" [translateX]="10" [translateZ]="5">
1919
</atft-sphere-mesh>
2020

src/stories/animation/connector/connector-line.stories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import {axesSceneWrapper} from '../../scene-wrapper/axes-scene-wrapper';
88
@Component({
99
selector: 'app-storybook',
1010
template: axesSceneWrapper(`
11-
<atft-sphere-mesh [radius]="2" [widthSegments]="10" [hightSegments]="20" material="lamb" materialColor="#00ff00"
11+
<atft-sphere-mesh [radius]="2" [widthSegments]="10" [heightSegments]="20" material="lamb" materialColor="#00ff00"
1212
#a [translateY]="50" [translateX]="-10" [translateZ]="translateZ">
1313
</atft-sphere-mesh>
14-
<atft-sphere-mesh [radius]="2" [widthSegments]="10" [hightSegments]="20" material="lamb" materialColor="#00ff00"
14+
<atft-sphere-mesh [radius]="2" [widthSegments]="10" [heightSegments]="20" material="lamb" materialColor="#00ff00"
1515
#b [translateY]="-20" [translateX]="-30" [translateZ]="0">
1616
</atft-sphere-mesh>
1717

src/stories/basic/dynamic/for-loop.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {AtftDataCenterActorModule} from "../../../../projects/atft/src/lib/actor
1111
<atft-empty name="emptyObj">
1212
<div>
1313
<atft-sphere-mesh *ngFor="let x of fakeArray(numObjects)" [radius]="4" [translateY]="x" name="dynamicObj"
14-
widthSegments="64" hightSegments="64">
14+
widthSegments="64" heightSegments="64">
1515
</atft-sphere-mesh>
1616
</div>
1717
</atft-empty>

src/stories/effect/dashed-draw.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {performanceSceneWrapper} from '../scene-wrapper/performance-scene-wrappe
1616
<atft-sphere-mesh
1717
atft-dashed-draw materialColor="#0000FF" dashColor="#0000FF"
1818
[targetOpacity]="0.1"
19-
[radius]="10" [hightSegments]="10" [widthSegments]="10"
19+
[radius]="10" [heightSegments]="10" [widthSegments]="10"
2020
[translateY]="20"
2121
></atft-sphere-mesh>
2222

0 commit comments

Comments
 (0)