Skip to content

Commit 892a253

Browse files
committed
feat: revert to [ref]
1 parent f5cdadd commit 892a253

File tree

5 files changed

+399
-404
lines changed

5 files changed

+399
-404
lines changed

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

+3-5
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, NgtRef, NgtRxStore, NgtStore, startWithUndefined } from 'angular-three';
2+
import { injectNgtRef, NgtArgs, 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,11 +8,9 @@ import { combineLatest, map } from 'rxjs';
88
selector: 'ngtp-lut',
99
standalone: true,
1010
template: `
11-
<ng-container *args="[get('effect')]">
12-
<ngt-primitive *ref="lutRef" />
13-
</ng-container>
11+
<ngt-primitive *args="[get('effect')]" [ref]="lutRef" />
1412
`,
15-
imports: [NgtArgs, NgtRef],
13+
imports: [NgtArgs],
1614
schemas: [CUSTOM_ELEMENTS_SCHEMA],
1715
inputs: ['blendFunction', 'tetrahedralInterpolation'],
1816
})

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

+3-5
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, NgtRef, NgtRxStore } from 'angular-three';
2+
import { injectNgtRef, NgtArgs, NgtRxStore } from 'angular-three';
33
import {
44
componentInputsToCombinedStream,
55
NGTP_EFFECT_COMPOSER_API,
@@ -12,11 +12,9 @@ import { combineLatest, map } from 'rxjs';
1212
selector: 'ngtp-ssao',
1313
standalone: true,
1414
template: `
15-
<ng-container *args="[get('effect')]">
16-
<ngt-primitive *ref="ssaoRef" />
17-
</ng-container>
15+
<ngt-primitive *args="[get('effect')]" [ref]="ssaoRef" />
1816
`,
19-
imports: [NgtArgs, NgtRef],
17+
imports: [NgtArgs],
2018
schemas: [CUSTOM_ELEMENTS_SCHEMA],
2119
inputs: [
2220
'blendFunction',

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

+2-3
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, NgtRef, NgtRxStore, NgtStore, startWithUndefined } from 'angular-three';
3+
import { extend, getLocalState, injectNgtRef, 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,15 +43,14 @@ 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],
5554
schemas: [CUSTOM_ELEMENTS_SCHEMA],
5655
})
5756
export class NgtpEffectComposer extends NgtRxStore implements OnInit {

package.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
},
88
"private": true,
99
"devDependencies": {
10-
"@angular-devkit/build-angular": "~15.1.4",
10+
"@angular-devkit/build-angular": "~15.1.5",
1111
"@angular-eslint/eslint-plugin": "~15.2.0",
1212
"@angular-eslint/eslint-plugin-template": "~15.2.0",
1313
"@angular-eslint/template-parser": "~15.2.0",
14-
"@angular/cli": "~15.1.4",
15-
"@angular/compiler-cli": "~15.1.3",
16-
"@angular/language-service": "~15.1.3",
14+
"@angular/cli": "~15.1.5",
15+
"@angular/compiler-cli": "~15.1.4",
16+
"@angular/language-service": "~15.1.4",
1717
"@nrwl/angular": "^15.6.3",
1818
"@nrwl/devkit": "15.6.3",
1919
"@nrwl/eslint-plugin-nx": "15.6.3",
@@ -24,14 +24,14 @@
2424
"@nrwl/workspace": "15.6.3",
2525
"@release-it/bumper": "^4.0.2",
2626
"@release-it/conventional-changelog": "^5.1.1",
27-
"@swc-node/register": "^1.5.5",
27+
"@swc-node/register": "^1.5.6",
2828
"@swc/cli": "~0.1.61",
29-
"@swc/core": "^1.3.32",
29+
"@swc/core": "^1.3.34",
3030
"@types/jest": "28.1.1",
31-
"@types/node": "18.11.19",
31+
"@types/node": "18.13.0",
3232
"@types/three": "^0.149.0",
33-
"@typescript-eslint/eslint-plugin": "^5.50.0",
34-
"@typescript-eslint/parser": "^5.50.0",
33+
"@typescript-eslint/eslint-plugin": "^5.51.0",
34+
"@typescript-eslint/parser": "^5.51.0",
3535
"dotenv-cli": "^7.0.0",
3636
"eslint": "~8.33.0",
3737
"eslint-config-prettier": "8.6.0",
@@ -45,25 +45,25 @@
4545
"postcss-import": "~15.1.0",
4646
"postcss-preset-env": "~8.0.1",
4747
"postcss-url": "~10.1.3",
48-
"prettier": "^2.8.3",
48+
"prettier": "^2.8.4",
4949
"prettier-plugin-organize-imports": "^3.2.2",
5050
"release-it": "^15.6.0",
5151
"ts-jest": "28.0.5",
5252
"ts-node": "10.9.1",
5353
"typescript": "~4.9.5"
5454
},
5555
"dependencies": {
56-
"@angular/animations": "~15.1.3",
57-
"@angular/common": "~15.1.3",
58-
"@angular/compiler": "~15.1.3",
59-
"@angular/core": "~15.1.3",
60-
"@angular/forms": "~15.1.3",
61-
"@angular/platform-browser": "~15.1.3",
62-
"@angular/platform-browser-dynamic": "~15.1.3",
63-
"@angular/router": "~15.1.3",
56+
"@angular/animations": "~15.1.4",
57+
"@angular/common": "~15.1.4",
58+
"@angular/compiler": "~15.1.4",
59+
"@angular/core": "~15.1.4",
60+
"@angular/forms": "~15.1.4",
61+
"@angular/platform-browser": "~15.1.4",
62+
"@angular/platform-browser-dynamic": "~15.1.4",
63+
"@angular/router": "~15.1.4",
6464
"@rx-angular/state": "^1.7.0",
6565
"@swc/helpers": "~0.4.14",
66-
"angular-three": "^1.5.0",
66+
"angular-three": "^1.6.0",
6767
"postprocessing": "^6.29.3",
6868
"rxjs": "~7.8.0",
6969
"three": "^0.149.0",

0 commit comments

Comments
 (0)