Skip to content

Commit 94692a6

Browse files
committed
feat: update angular-three and *ref
1 parent 43664d3 commit 94692a6

File tree

5 files changed

+18
-13
lines changed

5 files changed

+18
-13
lines changed

libs/angular-three-postprocessing/effects/src/lib/lut/lut.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, CUSTOM_ELEMENTS_SCHEMA, inject, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2-
import { injectNgtRef, NgtArgs, NgtRxStore, NgtStore, startWithUndefined } from 'angular-three';
2+
import { injectNgtRef, NgtArgs, NgtRef, NgtRxStore, NgtStore, startWithUndefined } from 'angular-three';
33
import { componentInputsToCombinedStream, simpleChangesToStateObject } from 'angular-three-postprocessing';
44
import { LUT3DEffect } from 'postprocessing';
55
import { combineLatest, map } from 'rxjs';
@@ -8,9 +8,11 @@ import { combineLatest, map } from 'rxjs';
88
selector: 'ngtp-lut',
99
standalone: true,
1010
template: `
11-
<ngt-primitive *args="[get('effect')]" [ref]="lutRef" />
11+
<ng-container *args="[get('effect')]">
12+
<ngt-primitive *ref="lutRef" />
13+
</ng-container>
1214
`,
13-
imports: [NgtArgs],
15+
imports: [NgtArgs, NgtRef],
1416
schemas: [CUSTOM_ELEMENTS_SCHEMA],
1517
inputs: ['blendFunction', 'tetrahedralInterpolation'],
1618
})

libs/angular-three-postprocessing/effects/src/lib/ssao/ssao.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, CUSTOM_ELEMENTS_SCHEMA, inject, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2-
import { injectNgtRef, NgtArgs, NgtRxStore } from 'angular-three';
2+
import { injectNgtRef, NgtArgs, NgtRef, NgtRxStore } from 'angular-three';
33
import {
44
componentInputsToCombinedStream,
55
NGTP_EFFECT_COMPOSER_API,
@@ -12,9 +12,11 @@ import { combineLatest, map } from 'rxjs';
1212
selector: 'ngtp-ssao',
1313
standalone: true,
1414
template: `
15-
<ngt-primitive *args="[get('effect')]" [ref]="ssaoRef" />
15+
<ng-container *args="[get('effect')]">
16+
<ngt-primitive *ref="ssaoRef" />
17+
</ng-container>
1618
`,
17-
imports: [NgtArgs],
19+
imports: [NgtArgs, NgtRef],
1820
schemas: [CUSTOM_ELEMENTS_SCHEMA],
1921
inputs: [
2022
'blendFunction',

libs/angular-three-postprocessing/src/lib/effect-composer.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, CUSTOM_ELEMENTS_SCHEMA, inject, InjectionToken, Input, OnInit } from '@angular/core';
22
import { RxActionFactory } from '@rx-angular/state/actions';
3-
import { extend, getLocalState, injectNgtRef, NgtRxStore, NgtStore, startWithUndefined } from 'angular-three';
3+
import { extend, getLocalState, injectNgtRef, NgtRef, NgtRxStore, NgtStore, startWithUndefined } from 'angular-three';
44
import { DepthDownsamplingPass, EffectComposer, EffectPass, NormalPass, RenderPass } from 'postprocessing';
55
import { combineLatest, map } from 'rxjs';
66
import * as THREE from 'three';
@@ -43,14 +43,15 @@ function effectComposerApiFactory(composer: NgtpEffectComposer) {
4343
selector: 'ngtp-effect-composer',
4444
standalone: true,
4545
template: `
46-
<ngt-group [ref]="composerRef">
46+
<ngt-group *ref="composerRef">
4747
<ng-content />
4848
</ngt-group>
4949
`,
5050
providers: [
5151
{ provide: NGTP_EFFECT_COMPOSER_API, useFactory: effectComposerApiFactory, deps: [NgtpEffectComposer] },
5252
RxActionFactory,
5353
],
54+
imports: [NgtRef],
5455
schemas: [CUSTOM_ELEMENTS_SCHEMA],
5556
})
5657
export class NgtpEffectComposer extends NgtRxStore implements OnInit {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@angular/router": "~15.1.3",
6464
"@rx-angular/state": "^1.7.0",
6565
"@swc/helpers": "~0.4.14",
66-
"angular-three": "^1.3.0",
66+
"angular-three": "^1.5.0",
6767
"postprocessing": "^6.29.3",
6868
"rxjs": "~7.8.0",
6969
"three": "^0.149.0",

pnpm-lock.yaml

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)