Skip to content

Commit 3af613a

Browse files
committed
docs(soba): rename injectTurnable to turnable
1 parent d18fa11 commit 3af613a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libs/soba/src/abstractions/rounded-box.stories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, input, viewChild } from '@angular/core';
22
import { Meta } from '@storybook/angular';
33
import { NgtsRoundedBox } from 'angular-three-soba/abstractions';
4-
import { injectTurnable, number, storyDecorators, storyObject } from '../setup-canvas';
4+
import { number, storyDecorators, storyObject, turnable } from '../setup-canvas';
55

66
@Component({
77
template: `
@@ -30,7 +30,7 @@ class DefaultRoundedBoxStory {
3030
roundedBox = viewChild.required(NgtsRoundedBox);
3131

3232
constructor() {
33-
injectTurnable(() => this.roundedBox().meshRef());
33+
turnable(() => this.roundedBox().meshRef());
3434
}
3535

3636
protected readonly Math = Math;

libs/soba/src/setup-canvas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,11 @@ export function storyDecorators(providers: Provider[] = [], ...decorators: Decor
311311
export class Turnable {
312312
constructor() {
313313
const element = inject<ElementRef<THREE.Object3D>>(ElementRef);
314-
injectTurnable(() => element);
314+
turnable(() => element);
315315
}
316316
}
317317

318-
export function injectTurnable(object: () => THREE.Object3D | ElementRef<THREE.Object3D> | undefined | null) {
318+
export function turnable(object: () => THREE.Object3D | ElementRef<THREE.Object3D> | undefined | null) {
319319
return beforeRender(() => {
320320
const obj = resolveRef(object());
321321
if (!obj) return;

0 commit comments

Comments
 (0)