angular-three-postprocessing 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/effects/lib/bloom/bloom.mjs +3 -3
- package/esm2020/effects/lib/brightness-contrast/brightness-contrast.mjs +3 -3
- package/esm2020/effects/lib/color-depth/color-depth.mjs +3 -3
- package/esm2020/effects/lib/depth/depth.mjs +3 -3
- package/esm2020/effects/lib/dot-screen/dot-screen.mjs +3 -3
- package/esm2020/effects/lib/hue-saturation/hue-saturation.mjs +3 -3
- package/esm2020/effects/lib/lut/lut.mjs +3 -3
- package/esm2020/effects/lib/noise/noise.mjs +3 -3
- package/esm2020/effects/lib/scanline/scanline.mjs +3 -3
- package/esm2020/effects/lib/sepia/sepia.mjs +3 -3
- package/esm2020/effects/lib/ssao/ssao.mjs +3 -3
- package/esm2020/effects/lib/tilt-shift/tilt-shift.mjs +3 -3
- package/esm2020/effects/lib/tone-mapping/tone-mapping.mjs +3 -3
- package/esm2020/effects/lib/vignette/vignette.mjs +3 -3
- package/esm2020/lib/effect-composer.mjs +3 -3
- package/esm2020/lib/effect.mjs +3 -3
- package/esm2020/selection/angular-three-postprocessing-selection.mjs +5 -0
- package/esm2020/selection/index.mjs +3 -0
- package/esm2020/selection/lib/select.mjs +68 -0
- package/esm2020/selection/lib/selection.mjs +43 -0
- package/fesm2015/angular-three-postprocessing-effects.mjs +42 -42
- package/fesm2015/angular-three-postprocessing-selection.mjs +114 -0
- package/fesm2015/angular-three-postprocessing-selection.mjs.map +1 -0
- package/fesm2015/angular-three-postprocessing.mjs +6 -6
- package/fesm2020/angular-three-postprocessing-effects.mjs +42 -42
- package/fesm2020/angular-three-postprocessing-selection.mjs +114 -0
- package/fesm2020/angular-three-postprocessing-selection.mjs.map +1 -0
- package/fesm2020/angular-three-postprocessing.mjs +6 -6
- package/package.json +10 -2
- package/plugin/package.json +1 -1
- package/selection/README.md +3 -0
- package/selection/index.d.ts +2 -0
- package/selection/lib/select.d.ts +14 -0
- package/selection/lib/selection.d.ts +18 -0
|
@@ -14,11 +14,11 @@ class NgtpBloom extends NgtpEffect {
|
|
|
14
14
|
return BloomEffect;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
NgtpBloom.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18
|
-
NgtpBloom.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
17
|
+
NgtpBloom.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpBloom, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
NgtpBloom.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpBloom, isStandalone: true, selector: "ngtp-bloom", inputs: { mipmapBlur: "mipmapBlur", luminanceThreshold: "luminanceThreshold", luminanceSmoothing: "luminanceSmoothing", intensity: "intensity", resolutionScale: "resolutionScale", resolutionX: "resolutionX", resolutionY: "resolutionY", width: "width", height: "height", kernelSize: "kernelSize" }, usesInheritance: true, ngImport: i0, template: `
|
|
19
19
|
<ngt-primitive *args="[get('effect')]" ngtCompound />
|
|
20
20
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpBloom, decorators: [{
|
|
22
22
|
type: Component,
|
|
23
23
|
args: [{
|
|
24
24
|
selector: 'ngtp-bloom',
|
|
@@ -48,11 +48,11 @@ class NgtpBrightnessContrast extends NgtpEffect {
|
|
|
48
48
|
return BrightnessContrastEffect;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
NgtpBrightnessContrast.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
52
|
-
NgtpBrightnessContrast.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
51
|
+
NgtpBrightnessContrast.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpBrightnessContrast, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
52
|
+
NgtpBrightnessContrast.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpBrightnessContrast, isStandalone: true, selector: "ngtp-brightness-contrast", inputs: { brightness: "brightness", contrast: "contrast" }, usesInheritance: true, ngImport: i0, template: `
|
|
53
53
|
<ngt-primitive *args="[get('effect')]" ngtCompound />
|
|
54
54
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpBrightnessContrast, decorators: [{
|
|
56
56
|
type: Component,
|
|
57
57
|
args: [{
|
|
58
58
|
selector: 'ngtp-brightness-contrast',
|
|
@@ -71,11 +71,11 @@ class NgtpColorDepth extends NgtpEffect {
|
|
|
71
71
|
return ColorDepthEffect;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
NgtpColorDepth.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
75
|
-
NgtpColorDepth.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
74
|
+
NgtpColorDepth.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpColorDepth, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
75
|
+
NgtpColorDepth.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpColorDepth, isStandalone: true, selector: "ngtp-color-depth", inputs: { bits: "bits" }, usesInheritance: true, ngImport: i0, template: `
|
|
76
76
|
<ngt-primitive *args="[get('effect')]" ngtCompound />
|
|
77
77
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpColorDepth, decorators: [{
|
|
79
79
|
type: Component,
|
|
80
80
|
args: [{
|
|
81
81
|
selector: 'ngtp-color-depth',
|
|
@@ -94,11 +94,11 @@ class NgtpDepth extends NgtpEffect {
|
|
|
94
94
|
return DepthEffect;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
NgtpDepth.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
98
|
-
NgtpDepth.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
97
|
+
NgtpDepth.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpDepth, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
98
|
+
NgtpDepth.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpDepth, isStandalone: true, selector: "ngtp-depth", inputs: { inverted: "inverted" }, usesInheritance: true, ngImport: i0, template: `
|
|
99
99
|
<ngt-primitive *args="[get('effect')]" ngtCompound />
|
|
100
100
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpDepth, decorators: [{
|
|
102
102
|
type: Component,
|
|
103
103
|
args: [{
|
|
104
104
|
selector: 'ngtp-depth',
|
|
@@ -117,11 +117,11 @@ class NgtpDotScreen extends NgtpEffect {
|
|
|
117
117
|
return DotScreenEffect;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
NgtpDotScreen.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
121
|
-
NgtpDotScreen.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
120
|
+
NgtpDotScreen.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpDotScreen, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
121
|
+
NgtpDotScreen.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpDotScreen, isStandalone: true, selector: "ngtp-dot-screen", inputs: { angle: "angle", scale: "scale" }, usesInheritance: true, ngImport: i0, template: `
|
|
122
122
|
<ngt-primitive *args="[get('effect')]" ngtCompound />
|
|
123
123
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpDotScreen, decorators: [{
|
|
125
125
|
type: Component,
|
|
126
126
|
args: [{
|
|
127
127
|
selector: 'ngtp-dot-screen',
|
|
@@ -140,11 +140,11 @@ class NgtpHueSaturation extends NgtpEffect {
|
|
|
140
140
|
return HueSaturationEffect;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
NgtpHueSaturation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
144
|
-
NgtpHueSaturation.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
143
|
+
NgtpHueSaturation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpHueSaturation, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
144
|
+
NgtpHueSaturation.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpHueSaturation, isStandalone: true, selector: "ngtp-hue-saturation", inputs: { hue: "hue", saturation: "saturation" }, usesInheritance: true, ngImport: i0, template: `
|
|
145
145
|
<ngt-primitive *args="[get('effect')]" ngtCompound />
|
|
146
146
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpHueSaturation, decorators: [{
|
|
148
148
|
type: Component,
|
|
149
149
|
args: [{
|
|
150
150
|
selector: 'ngtp-hue-saturation',
|
|
@@ -189,11 +189,11 @@ class NgtpLUT extends NgtRxStore {
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
NgtpLUT.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
193
|
-
NgtpLUT.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
192
|
+
NgtpLUT.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpLUT, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
193
|
+
NgtpLUT.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpLUT, isStandalone: true, selector: "ngtp-lut", inputs: { blendFunction: "blendFunction", tetrahedralInterpolation: "tetrahedralInterpolation", lutRef: "lutRef", lut: "lut" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
194
194
|
<ngt-primitive *args="[get('effect')]" [ref]="lutRef" />
|
|
195
195
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpLUT, decorators: [{
|
|
197
197
|
type: Component,
|
|
198
198
|
args: [{
|
|
199
199
|
selector: 'ngtp-lut',
|
|
@@ -220,11 +220,11 @@ class NgtpNoise extends NgtpEffect {
|
|
|
220
220
|
return NoiseEffect;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
NgtpNoise.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
224
|
-
NgtpNoise.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
223
|
+
NgtpNoise.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpNoise, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
224
|
+
NgtpNoise.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpNoise, isStandalone: true, selector: "ngtp-noise", inputs: { premultiply: "premultiply" }, usesInheritance: true, ngImport: i0, template: `
|
|
225
225
|
<ngt-primitive *args="[get('effect')]" ngtCompound />
|
|
226
226
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpNoise, decorators: [{
|
|
228
228
|
type: Component,
|
|
229
229
|
args: [{
|
|
230
230
|
selector: 'ngtp-noise',
|
|
@@ -247,11 +247,11 @@ class NgtpScanline extends NgtpEffect {
|
|
|
247
247
|
return ScanlineEffect;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
NgtpScanline.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
251
|
-
NgtpScanline.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
250
|
+
NgtpScanline.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpScanline, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
251
|
+
NgtpScanline.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpScanline, isStandalone: true, selector: "ngtp-scanline", inputs: { density: "density" }, usesInheritance: true, ngImport: i0, template: `
|
|
252
252
|
<ngt-primitive *args="[get('effect')]" ngtCompound />
|
|
253
253
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpScanline, decorators: [{
|
|
255
255
|
type: Component,
|
|
256
256
|
args: [{
|
|
257
257
|
selector: 'ngtp-scanline',
|
|
@@ -270,11 +270,11 @@ class NgtpSepia extends NgtpEffect {
|
|
|
270
270
|
return SepiaEffect;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
NgtpSepia.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
274
|
-
NgtpSepia.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
273
|
+
NgtpSepia.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpSepia, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
274
|
+
NgtpSepia.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpSepia, isStandalone: true, selector: "ngtp-sepia", inputs: { intensity: "intensity" }, usesInheritance: true, ngImport: i0, template: `
|
|
275
275
|
<ngt-primitive *args="[get('effect')]" ngtCompound />
|
|
276
276
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpSepia, decorators: [{
|
|
278
278
|
type: Component,
|
|
279
279
|
args: [{
|
|
280
280
|
selector: 'ngtp-sepia',
|
|
@@ -336,11 +336,11 @@ class NgtpSSAO extends NgtRxStore {
|
|
|
336
336
|
})));
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
NgtpSSAO.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
340
|
-
NgtpSSAO.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
339
|
+
NgtpSSAO.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpSSAO, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
340
|
+
NgtpSSAO.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpSSAO, isStandalone: true, selector: "ngtp-ssao", inputs: { blendFunction: "blendFunction", distanceScaling: "distanceScaling", depthAwareUpsampling: "depthAwareUpsampling", normalDepthBuffer: "normalDepthBuffer", samples: "samples", rings: "rings", worldDistanceThreshold: "worldDistanceThreshold", worldDistanceFalloff: "worldDistanceFalloff", worldProximityThreshold: "worldProximityThreshold", worldProximityFalloff: "worldProximityFalloff", distanceThreshold: "distanceThreshold", distanceFalloff: "distanceFalloff", rangeThreshold: "rangeThreshold", rangeFalloff: "rangeFalloff", minRadiusScale: "minRadiusScale", luminanceInfluence: "luminanceInfluence", radius: "radius", intensity: "intensity", bias: "bias", fade: "fade", color: "color", resolutionScale: "resolutionScale", resolutionX: "resolutionX", resolutionY: "resolutionY", width: "width", height: "height", ssaoRef: "ssaoRef" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
341
341
|
<ngt-primitive *args="[get('effect')]" [ref]="ssaoRef" />
|
|
342
342
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpSSAO, decorators: [{
|
|
344
344
|
type: Component,
|
|
345
345
|
args: [{
|
|
346
346
|
selector: 'ngtp-ssao',
|
|
@@ -392,11 +392,11 @@ class NgtpTiltShift extends NgtpEffect {
|
|
|
392
392
|
return TiltShiftEffect;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
NgtpTiltShift.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
396
|
-
NgtpTiltShift.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
395
|
+
NgtpTiltShift.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpTiltShift, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
396
|
+
NgtpTiltShift.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpTiltShift, isStandalone: true, selector: "ngtp-tilt-shift", inputs: { offset: "offset", rotation: "rotation", focusArea: "focusArea", feather: "feather", bias: "bias", kernelSize: "kernelSize", resolutionScale: "resolutionScale", resolutionX: "resolutionX", resolutionY: "resolutionY" }, usesInheritance: true, ngImport: i0, template: `
|
|
397
397
|
<ngt-primitive *args="[get('effect')]" ngtCompound />
|
|
398
398
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpTiltShift, decorators: [{
|
|
400
400
|
type: Component,
|
|
401
401
|
args: [{
|
|
402
402
|
selector: 'ngtp-tilt-shift',
|
|
@@ -425,11 +425,11 @@ class NgtpToneMapping extends NgtpEffect {
|
|
|
425
425
|
return ToneMappingEffect;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
NgtpToneMapping.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
429
|
-
NgtpToneMapping.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
428
|
+
NgtpToneMapping.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpToneMapping, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
429
|
+
NgtpToneMapping.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpToneMapping, isStandalone: true, selector: "ngtp-tone-mapping", inputs: { adaptive: "adaptive", mode: "mode", resolution: "resolution", maxLuminance: "maxLuminance", whitePoint: "whitePoint", middleGrey: "middleGrey", minLuminance: "minLuminance", averageLuminance: "averageLuminance", adaptationRate: "adaptationRate" }, usesInheritance: true, ngImport: i0, template: `
|
|
430
430
|
<ngt-primitive *args="[get('effect')]" ngtCompound />
|
|
431
431
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpToneMapping, decorators: [{
|
|
433
433
|
type: Component,
|
|
434
434
|
args: [{
|
|
435
435
|
selector: 'ngtp-tone-mapping',
|
|
@@ -458,11 +458,11 @@ class NgtpVignette extends NgtpEffect {
|
|
|
458
458
|
return VignetteEffect;
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
NgtpVignette.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
462
|
-
NgtpVignette.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
461
|
+
NgtpVignette.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpVignette, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
462
|
+
NgtpVignette.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpVignette, isStandalone: true, selector: "ngtp-vignette", inputs: { technique: "technique", eskil: "eskil", offset: "offset", darkness: "darkness" }, usesInheritance: true, ngImport: i0, template: `
|
|
463
463
|
<ngt-primitive *args="[get('effect')]" ngtCompound />
|
|
464
464
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
|
|
465
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpVignette, decorators: [{
|
|
466
466
|
type: Component,
|
|
467
467
|
args: [{
|
|
468
468
|
selector: 'ngtp-vignette',
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Component, Input, inject, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
3
|
+
import { NgtRxStore, extend, injectNgtRef } from 'angular-three';
|
|
4
|
+
import { combineLatest } from 'rxjs';
|
|
5
|
+
import { Group } from 'three';
|
|
6
|
+
|
|
7
|
+
const NGTP_SELECTION_API = new InjectionToken('NgtpSelection API');
|
|
8
|
+
function ngtpSelectionApiFactory(selection) {
|
|
9
|
+
const api = {
|
|
10
|
+
get selected() {
|
|
11
|
+
return selection.get('selected');
|
|
12
|
+
},
|
|
13
|
+
select: selection.set.bind(selection),
|
|
14
|
+
get enabled() {
|
|
15
|
+
return selection.get('enabled');
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
return api;
|
|
19
|
+
}
|
|
20
|
+
class NgtpSelection extends NgtRxStore {
|
|
21
|
+
set enabled(enabled) {
|
|
22
|
+
this.set({ enabled });
|
|
23
|
+
}
|
|
24
|
+
initialize() {
|
|
25
|
+
super.initialize();
|
|
26
|
+
this.set({ selected: [], enabled: true });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
NgtpSelection.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpSelection, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
+
NgtpSelection.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpSelection, isStandalone: true, selector: "ngtp-selection", inputs: { enabled: "enabled" }, providers: [{ provide: NGTP_SELECTION_API, useFactory: ngtpSelectionApiFactory, deps: [NgtpSelection] }], usesInheritance: true, ngImport: i0, template: `
|
|
31
|
+
<ng-content />
|
|
32
|
+
`, isInline: true });
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpSelection, decorators: [{
|
|
34
|
+
type: Component,
|
|
35
|
+
args: [{
|
|
36
|
+
selector: 'ngtp-selection',
|
|
37
|
+
standalone: true,
|
|
38
|
+
template: `
|
|
39
|
+
<ng-content />
|
|
40
|
+
`,
|
|
41
|
+
providers: [{ provide: NGTP_SELECTION_API, useFactory: ngtpSelectionApiFactory, deps: [NgtpSelection] }],
|
|
42
|
+
}]
|
|
43
|
+
}], propDecorators: { enabled: [{
|
|
44
|
+
type: Input
|
|
45
|
+
}] } });
|
|
46
|
+
|
|
47
|
+
extend({ Group });
|
|
48
|
+
class NgtpSelect extends NgtRxStore {
|
|
49
|
+
constructor() {
|
|
50
|
+
super(...arguments);
|
|
51
|
+
this.groupRef = injectNgtRef();
|
|
52
|
+
this.selectionApi = inject(NGTP_SELECTION_API);
|
|
53
|
+
}
|
|
54
|
+
set enabled(enabled) {
|
|
55
|
+
this.set({ enabled });
|
|
56
|
+
}
|
|
57
|
+
initialize() {
|
|
58
|
+
super.initialize();
|
|
59
|
+
this.set({ enabled: false });
|
|
60
|
+
}
|
|
61
|
+
ngOnInit() {
|
|
62
|
+
this.setSelectEffect();
|
|
63
|
+
}
|
|
64
|
+
setSelectEffect() {
|
|
65
|
+
this.effect(combineLatest([this.select('enabled'), this.groupRef.children$()]), ([enabled]) => {
|
|
66
|
+
if (enabled) {
|
|
67
|
+
let changed = false;
|
|
68
|
+
const current = [];
|
|
69
|
+
this.groupRef.nativeElement.traverse((obj) => {
|
|
70
|
+
if (obj.type === 'Mesh')
|
|
71
|
+
current.push(obj);
|
|
72
|
+
if (this.selectionApi.selected.indexOf(obj) === -1)
|
|
73
|
+
changed = true;
|
|
74
|
+
});
|
|
75
|
+
if (changed) {
|
|
76
|
+
this.selectionApi.select((state) => ({ selected: [...state.selected, ...current] }));
|
|
77
|
+
return () => {
|
|
78
|
+
this.selectionApi.select((state) => ({
|
|
79
|
+
selected: state.selected.filter((selected) => !current.includes(selected)),
|
|
80
|
+
}));
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
NgtpSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
88
|
+
NgtpSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpSelect, isStandalone: true, selector: "ngtp-select", inputs: { enabled: "enabled" }, usesInheritance: true, ngImport: i0, template: `
|
|
89
|
+
<ngt-group ngtCompound [ref]="groupRef">
|
|
90
|
+
<ng-content />
|
|
91
|
+
</ngt-group>
|
|
92
|
+
`, isInline: true });
|
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpSelect, decorators: [{
|
|
94
|
+
type: Component,
|
|
95
|
+
args: [{
|
|
96
|
+
selector: 'ngtp-select',
|
|
97
|
+
standalone: true,
|
|
98
|
+
template: `
|
|
99
|
+
<ngt-group ngtCompound [ref]="groupRef">
|
|
100
|
+
<ng-content />
|
|
101
|
+
</ngt-group>
|
|
102
|
+
`,
|
|
103
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
104
|
+
}]
|
|
105
|
+
}], propDecorators: { enabled: [{
|
|
106
|
+
type: Input
|
|
107
|
+
}] } });
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Generated bundle index. Do not edit.
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
export { NGTP_SELECTION_API, NgtpSelect, NgtpSelection };
|
|
114
|
+
//# sourceMappingURL=angular-three-postprocessing-selection.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"angular-three-postprocessing-selection.mjs","sources":["../../../../libs/angular-three-postprocessing/selection/src/lib/selection.ts","../../../../libs/angular-three-postprocessing/selection/src/lib/select.ts","../../../../libs/angular-three-postprocessing/selection/src/angular-three-postprocessing-selection.ts"],"sourcesContent":["import { Component, InjectionToken, Input } from '@angular/core';\nimport { RxState } from '@rx-angular/state';\nimport { NgtRxStore } from 'angular-three';\n\nexport interface NgtpSelectionAPI {\n selected: THREE.Object3D[];\n select: RxState<{ selected: THREE.Object3D[] }>['set'];\n enabled: boolean;\n}\n\nexport const NGTP_SELECTION_API = new InjectionToken<NgtpSelectionAPI>('NgtpSelection API');\nfunction ngtpSelectionApiFactory(selection: NgtpSelection) {\n const api: NgtpSelectionAPI = {\n get selected() {\n return selection.get('selected');\n },\n select: selection.set.bind(selection),\n get enabled() {\n return selection.get('enabled');\n },\n };\n return api;\n}\n\n@Component({\n selector: 'ngtp-selection',\n standalone: true,\n template: `\n <ng-content />\n `,\n providers: [{ provide: NGTP_SELECTION_API, useFactory: ngtpSelectionApiFactory, deps: [NgtpSelection] }],\n})\nexport class NgtpSelection extends NgtRxStore {\n @Input() set enabled(enabled: boolean) {\n this.set({ enabled });\n }\n\n override initialize(): void {\n super.initialize();\n this.set({ selected: [], enabled: true });\n }\n}\n","import { Component, CUSTOM_ELEMENTS_SCHEMA, inject, Input, OnInit } from '@angular/core';\nimport { extend, injectNgtRef, NgtRxStore } from 'angular-three';\nimport { combineLatest } from 'rxjs';\nimport { Group } from 'three';\nimport { NGTP_SELECTION_API } from './selection';\n\nextend({ Group });\n\n@Component({\n selector: 'ngtp-select',\n standalone: true,\n template: `\n <ngt-group ngtCompound [ref]=\"groupRef\">\n <ng-content />\n </ngt-group>\n `,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class NgtpSelect extends NgtRxStore implements OnInit {\n readonly groupRef = injectNgtRef<THREE.Group>();\n\n private readonly selectionApi = inject(NGTP_SELECTION_API);\n\n @Input() set enabled(enabled: boolean) {\n this.set({ enabled });\n }\n\n override initialize(): void {\n super.initialize();\n this.set({ enabled: false });\n }\n\n ngOnInit() {\n this.setSelectEffect();\n }\n\n private setSelectEffect() {\n this.effect(combineLatest([this.select('enabled'), this.groupRef.children$()]), ([enabled]) => {\n if (enabled) {\n let changed = false;\n const current: THREE.Object3D[] = [];\n this.groupRef.nativeElement.traverse((obj) => {\n if (obj.type === 'Mesh') current.push(obj);\n if (this.selectionApi.selected.indexOf(obj) === -1) changed = true;\n });\n if (changed) {\n this.selectionApi.select((state) => ({ selected: [...state.selected, ...current] }));\n return () => {\n this.selectionApi.select((state) => ({\n selected: state.selected.filter((selected) => !current.includes(selected)),\n }));\n };\n }\n }\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAUa,kBAAkB,GAAG,IAAI,cAAc,CAAmB,mBAAmB,EAAE;AAC5F,SAAS,uBAAuB,CAAC,SAAwB,EAAA;AACrD,IAAA,MAAM,GAAG,GAAqB;AAC1B,QAAA,IAAI,QAAQ,GAAA;AACR,YAAA,OAAO,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;SACpC;QACD,MAAM,EAAE,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC;AACrC,QAAA,IAAI,OAAO,GAAA;AACP,YAAA,OAAO,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;SACnC;KACJ,CAAC;AACF,IAAA,OAAO,GAAG,CAAC;AACf,CAAC;AAUK,MAAO,aAAc,SAAQ,UAAU,CAAA;IACzC,IAAa,OAAO,CAAC,OAAgB,EAAA;AACjC,QAAA,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;KACzB;IAEQ,UAAU,GAAA;QACf,KAAK,CAAC,UAAU,EAAE,CAAC;AACnB,QAAA,IAAI,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;KAC7C;;0GARQ,aAAa,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAb,aAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,6FAFX,CAAC,EAAE,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,EAH9F,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;AAET,IAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;2FAGQ,aAAa,EAAA,UAAA,EAAA,CAAA;kBARzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,CAAA;;AAET,IAAA,CAAA;AACD,oBAAA,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAA,aAAA,CAAe,EAAE,CAAC;AAC3G,iBAAA,CAAA;8BAEgB,OAAO,EAAA,CAAA;sBAAnB,KAAK;;;AC3BV,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AAYZ,MAAO,UAAW,SAAQ,UAAU,CAAA;AAV1C,IAAA,WAAA,GAAA;;QAWa,IAAQ,CAAA,QAAA,GAAG,YAAY,EAAe,CAAC;AAE/B,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAmC9D,KAAA;IAjCG,IAAa,OAAO,CAAC,OAAgB,EAAA;AACjC,QAAA,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;KACzB;IAEQ,UAAU,GAAA;QACf,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;KAChC;IAED,QAAQ,GAAA;QACJ,IAAI,CAAC,eAAe,EAAE,CAAC;KAC1B;IAEO,eAAe,GAAA;QACnB,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,KAAI;AAC1F,YAAA,IAAI,OAAO,EAAE;gBACT,IAAI,OAAO,GAAG,KAAK,CAAC;gBACpB,MAAM,OAAO,GAAqB,EAAE,CAAC;gBACrC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,KAAI;AACzC,oBAAA,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM;AAAE,wBAAA,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3C,oBAAA,IAAI,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;wBAAE,OAAO,GAAG,IAAI,CAAC;AACvE,iBAAC,CAAC,CAAC;AACH,gBAAA,IAAI,OAAO,EAAE;oBACT,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,KAAK,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;AACrF,oBAAA,OAAO,MAAK;wBACR,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,KAAK,MAAM;AACjC,4BAAA,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,QAAQ,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC7E,yBAAA,CAAC,CAAC,CAAC;AACR,qBAAC,CAAC;AACL,iBAAA;AACJ,aAAA;AACL,SAAC,CAAC,CAAC;KACN;;uGArCQ,UAAU,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAV,UAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAU,EAPT,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;AAIT,IAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;2FAGQ,UAAU,EAAA,UAAA,EAAA,CAAA;kBAVtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,CAAA;;;;AAIT,IAAA,CAAA;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACpC,iBAAA,CAAA;8BAMgB,OAAO,EAAA,CAAA;sBAAnB,KAAK;;;ACvBV;;AAEG;;;;"}
|
|
@@ -49,9 +49,9 @@ class NgtpEffect extends NgtRxStore {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
NgtpEffect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
53
|
-
NgtpEffect.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
52
|
+
NgtpEffect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpEffect, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
53
|
+
NgtpEffect.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.0", type: NgtpEffect, inputs: { blendFunction: "blendFunction", opacity: "opacity" }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpEffect, decorators: [{
|
|
55
55
|
type: Directive
|
|
56
56
|
}], propDecorators: { blendFunction: [{
|
|
57
57
|
type: Input
|
|
@@ -262,8 +262,8 @@ class NgtpEffectComposer extends NgtRxStore {
|
|
|
262
262
|
this.actions.setBeforeRender();
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
|
-
NgtpEffectComposer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
266
|
-
NgtpEffectComposer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
|
265
|
+
NgtpEffectComposer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpEffectComposer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
266
|
+
NgtpEffectComposer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: NgtpEffectComposer, isStandalone: true, selector: "ngtp-effect-composer", inputs: { composerRef: "composerRef", enabled: "enabled", depthBuffer: "depthBuffer", disableNormalPass: "disableNormalPass", stencilBuffer: "stencilBuffer", autoClear: "autoClear", resolutionScale: "resolutionScale", multisampling: "multisampling", frameBufferType: "frameBufferType", renderPriority: "renderPriority", camera: "camera", scene: "scene" }, providers: [
|
|
267
267
|
{ provide: NGTP_EFFECT_COMPOSER_API, useFactory: effectComposerApiFactory, deps: [NgtpEffectComposer] },
|
|
268
268
|
RxActionFactory,
|
|
269
269
|
], usesInheritance: true, ngImport: i0, template: `
|
|
@@ -271,7 +271,7 @@ NgtpEffectComposer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
|
|
|
271
271
|
<ng-content />
|
|
272
272
|
</ngt-group>
|
|
273
273
|
`, isInline: true });
|
|
274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgtpEffectComposer, decorators: [{
|
|
275
275
|
type: Component,
|
|
276
276
|
args: [{
|
|
277
277
|
selector: 'ngtp-effect-composer',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-three-postprocessing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@angular/core": "^15.1.0",
|
|
27
27
|
"angular-three": "^1.0.0",
|
|
28
28
|
"postprocessing": "^6.0.0",
|
|
29
|
-
"three": "^0.148.0 || ^0.149.0",
|
|
29
|
+
"three": "^0.148.0 || ^0.149.0 || ^0.150.0",
|
|
30
30
|
"rxjs": "~7.8.0",
|
|
31
31
|
"@rx-angular/state": "^1.7.0",
|
|
32
32
|
"three-stdlib": "^2.21.8"
|
|
@@ -63,6 +63,14 @@
|
|
|
63
63
|
"es2015": "./fesm2015/angular-three-postprocessing-effects.mjs",
|
|
64
64
|
"node": "./fesm2015/angular-three-postprocessing-effects.mjs",
|
|
65
65
|
"default": "./fesm2020/angular-three-postprocessing-effects.mjs"
|
|
66
|
+
},
|
|
67
|
+
"./selection": {
|
|
68
|
+
"types": "./selection/index.d.ts",
|
|
69
|
+
"esm2020": "./esm2020/selection/angular-three-postprocessing-selection.mjs",
|
|
70
|
+
"es2020": "./fesm2020/angular-three-postprocessing-selection.mjs",
|
|
71
|
+
"es2015": "./fesm2015/angular-three-postprocessing-selection.mjs",
|
|
72
|
+
"node": "./fesm2015/angular-three-postprocessing-selection.mjs",
|
|
73
|
+
"default": "./fesm2020/angular-three-postprocessing-selection.mjs"
|
|
66
74
|
}
|
|
67
75
|
}
|
|
68
76
|
}
|
package/plugin/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { NgtRxStore } from 'angular-three';
|
|
3
|
+
import { Group } from 'three';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NgtpSelect extends NgtRxStore implements OnInit {
|
|
6
|
+
readonly groupRef: import("angular-three").NgtInjectedRef<Group>;
|
|
7
|
+
private readonly selectionApi;
|
|
8
|
+
set enabled(enabled: boolean);
|
|
9
|
+
initialize(): void;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
private setSelectEffect;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtpSelect, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtpSelect, "ngtp-select", never, { "enabled": "enabled"; }, {}, never, ["*"], true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { RxState } from '@rx-angular/state';
|
|
3
|
+
import { NgtRxStore } from 'angular-three';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface NgtpSelectionAPI {
|
|
6
|
+
selected: THREE.Object3D[];
|
|
7
|
+
select: RxState<{
|
|
8
|
+
selected: THREE.Object3D[];
|
|
9
|
+
}>['set'];
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const NGTP_SELECTION_API: InjectionToken<NgtpSelectionAPI>;
|
|
13
|
+
export declare class NgtpSelection extends NgtRxStore {
|
|
14
|
+
set enabled(enabled: boolean);
|
|
15
|
+
initialize(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtpSelection, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtpSelection, "ngtp-selection", never, { "enabled": "enabled"; }, {}, never, ["*"], true, never>;
|
|
18
|
+
}
|