Skip to content

Commit 617e987

Browse files
committedFeb 14, 2025
chore(repo): stay consistent with boolean coercion
1 parent 6308326 commit 617e987

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+233
-123
lines changed
 

‎apps/examples/src/app/cannon/basic/basic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { State } from './state';
55

66
@Component({
77
template: `
8-
<ngt-canvas [shadows]="true" [camera]="{ position: [0, 0, 15] }">
8+
<ngt-canvas shadows [camera]="{ position: [0, 0, 15] }">
99
<app-scene-graph *canvasContent />
1010
</ngt-canvas>
1111
<div class="font-mono absolute top-0 right-0 flex gap-4 text-white">

‎apps/examples/src/app/cannon/basic/scene.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { State } from './state';
2020
@Component({
2121
selector: 'app-plane',
2222
template: `
23-
<ngt-mesh #mesh [receiveShadow]="true">
23+
<ngt-mesh #mesh receiveShadow>
2424
<ngt-plane-geometry *args="args" />
2525
<ngt-mesh-standard-material color="#171717" />
2626
</ngt-mesh>
@@ -42,7 +42,7 @@ export class Plane {
4242
@Component({
4343
selector: 'app-box',
4444
template: `
45-
<ngt-mesh #mesh [receiveShadow]="true" [castShadow]="true">
45+
<ngt-mesh #mesh receiveShadow castShadow>
4646
<ngt-box-geometry *args="args" />
4747
<ngt-mesh-standard-material [roughness]="0.5" color="#575757" />
4848
</ngt-mesh>
@@ -71,7 +71,7 @@ export class Box {
7171
[angle]="0.2"
7272
[penumbra]="1"
7373
[decay]="0"
74-
[castShadow]="true"
74+
castShadow
7575
/>
7676
7777
<ngtc-physics

0 commit comments

Comments
 (0)