angular-three-postprocessing 1.6.0 → 2.0.0-beta.10

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.
Files changed (101) hide show
  1. package/README.md +4 -12
  2. package/esm2022/angular-three-postprocessing.mjs +1 -1
  3. package/esm2022/index.mjs +2 -1
  4. package/esm2022/lib/effect-composer.mjs +180 -173
  5. package/esm2022/lib/effect.mjs +62 -64
  6. package/esm2022/lib/effects/bloom/bloom.mjs +33 -0
  7. package/esm2022/lib/effects/brightness-contrast/brightness-contrast.mjs +29 -0
  8. package/esm2022/lib/effects/color-depth/color-depth.mjs +29 -0
  9. package/esm2022/lib/effects/depth/depth.mjs +29 -0
  10. package/esm2022/lib/effects/dot-screen/dot-screen.mjs +29 -0
  11. package/esm2022/lib/effects/hue-saturation/hue-saturation.mjs +29 -0
  12. package/esm2022/lib/effects/index.mjs +18 -0
  13. package/esm2022/lib/effects/lut/lut.mjs +70 -0
  14. package/esm2022/lib/effects/noise/noise.mjs +33 -0
  15. package/esm2022/lib/effects/pixelation/pixelation.mjs +33 -0
  16. package/esm2022/lib/effects/scanline/scanline.mjs +33 -0
  17. package/esm2022/lib/effects/sepia/sepia.mjs +29 -0
  18. package/esm2022/lib/effects/shock-wave/shock-wave.mjs +29 -0
  19. package/esm2022/lib/effects/smaa/smaa.mjs +29 -0
  20. package/esm2022/lib/effects/ssao/ssao.mjs +213 -0
  21. package/esm2022/lib/effects/tilt-shift/tilt-shift.mjs +33 -0
  22. package/esm2022/lib/effects/tone-mapping/tone-mapping.mjs +29 -0
  23. package/esm2022/lib/effects/vignette/vignette.mjs +29 -0
  24. package/fesm2022/angular-three-postprocessing.mjs +892 -229
  25. package/fesm2022/angular-three-postprocessing.mjs.map +1 -1
  26. package/index.d.ts +1 -0
  27. package/lib/effect-composer.d.ts +89 -28
  28. package/lib/effect.d.ts +23 -18
  29. package/lib/effects/bloom/bloom.d.ts +13 -0
  30. package/lib/effects/brightness-contrast/brightness-contrast.d.ts +15 -0
  31. package/{effects/lib → lib/effects}/color-depth/color-depth.d.ts +9 -3
  32. package/{effects/lib → lib/effects}/depth/depth.d.ts +9 -3
  33. package/lib/effects/dot-screen/dot-screen.d.ts +15 -0
  34. package/lib/effects/hue-saturation/hue-saturation.d.ts +15 -0
  35. package/lib/effects/index.d.ts +17 -0
  36. package/lib/effects/lut/lut.d.ts +29 -0
  37. package/lib/effects/noise/noise.d.ts +15 -0
  38. package/lib/effects/pixelation/pixelation.d.ts +20 -0
  39. package/lib/effects/scanline/scanline.d.ts +15 -0
  40. package/{effects/lib → lib/effects}/sepia/sepia.d.ts +9 -3
  41. package/lib/effects/shock-wave/shock-wave.d.ts +17 -0
  42. package/lib/effects/smaa/smaa.d.ts +16 -0
  43. package/lib/effects/ssao/ssao.d.ts +42 -0
  44. package/lib/effects/tilt-shift/tilt-shift.d.ts +23 -0
  45. package/lib/effects/tone-mapping/tone-mapping.d.ts +22 -0
  46. package/lib/effects/vignette/vignette.d.ts +17 -0
  47. package/package.json +7 -26
  48. package/effects/README.md +0 -3
  49. package/effects/index.d.ts +0 -14
  50. package/effects/lib/bloom/bloom.d.ts +0 -9
  51. package/effects/lib/brightness-contrast/brightness-contrast.d.ts +0 -8
  52. package/effects/lib/dot-screen/dot-screen.d.ts +0 -8
  53. package/effects/lib/hue-saturation/hue-saturation.d.ts +0 -8
  54. package/effects/lib/lut/lut.d.ts +0 -13
  55. package/effects/lib/noise/noise.d.ts +0 -9
  56. package/effects/lib/scanline/scanline.d.ts +0 -9
  57. package/effects/lib/ssao/ssao.d.ts +0 -13
  58. package/effects/lib/tilt-shift/tilt-shift.d.ts +0 -9
  59. package/effects/lib/tone-mapping/tone-mapping.d.ts +0 -8
  60. package/effects/lib/vignette/vignette.d.ts +0 -8
  61. package/esm2022/effects/angular-three-postprocessing-effects.mjs +0 -5
  62. package/esm2022/effects/index.mjs +0 -15
  63. package/esm2022/effects/lib/bloom/bloom.mjs +0 -44
  64. package/esm2022/effects/lib/brightness-contrast/brightness-contrast.mjs +0 -29
  65. package/esm2022/effects/lib/color-depth/color-depth.mjs +0 -29
  66. package/esm2022/effects/lib/depth/depth.mjs +0 -29
  67. package/esm2022/effects/lib/dot-screen/dot-screen.mjs +0 -29
  68. package/esm2022/effects/lib/hue-saturation/hue-saturation.mjs +0 -29
  69. package/esm2022/effects/lib/lut/lut.mjs +0 -60
  70. package/esm2022/effects/lib/noise/noise.mjs +0 -33
  71. package/esm2022/effects/lib/scanline/scanline.mjs +0 -33
  72. package/esm2022/effects/lib/sepia/sepia.mjs +0 -29
  73. package/esm2022/effects/lib/ssao/ssao.mjs +0 -102
  74. package/esm2022/effects/lib/tilt-shift/tilt-shift.mjs +0 -43
  75. package/esm2022/effects/lib/tone-mapping/tone-mapping.mjs +0 -39
  76. package/esm2022/effects/lib/vignette/vignette.mjs +0 -29
  77. package/esm2022/selection/angular-three-postprocessing-selection.mjs +0 -5
  78. package/esm2022/selection/index.mjs +0 -3
  79. package/esm2022/selection/lib/select.mjs +0 -69
  80. package/esm2022/selection/lib/selection.mjs +0 -44
  81. package/fesm2022/angular-three-postprocessing-effects.mjs +0 -484
  82. package/fesm2022/angular-three-postprocessing-effects.mjs.map +0 -1
  83. package/fesm2022/angular-three-postprocessing-selection.mjs +0 -114
  84. package/fesm2022/angular-three-postprocessing-selection.mjs.map +0 -1
  85. package/plugin/README.md +0 -11
  86. package/plugin/generators.json +0 -19
  87. package/plugin/package.json +0 -9
  88. package/plugin/src/generators/init/compat.d.ts +0 -2
  89. package/plugin/src/generators/init/compat.js +0 -6
  90. package/plugin/src/generators/init/compat.js.map +0 -1
  91. package/plugin/src/generators/init/init.d.ts +0 -4
  92. package/plugin/src/generators/init/init.js +0 -26
  93. package/plugin/src/generators/init/init.js.map +0 -1
  94. package/plugin/src/generators/init/schema.json +0 -6
  95. package/plugin/src/index.d.ts +0 -1
  96. package/plugin/src/index.js +0 -6
  97. package/plugin/src/index.js.map +0 -1
  98. package/selection/README.md +0 -3
  99. package/selection/index.d.ts +0 -2
  100. package/selection/lib/select.d.ts +0 -14
  101. package/selection/lib/selection.d.ts +0 -18
@@ -1,114 +0,0 @@
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
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtpSelection, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
29
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.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: `
30
- <ng-content />
31
- `, isInline: true }); }
32
- }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.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
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtpSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
87
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgtpSelect, isStandalone: true, selector: "ngtp-select", inputs: { enabled: "enabled" }, usesInheritance: true, ngImport: i0, template: `
88
- <ngt-group ngtCompound [ref]="groupRef">
89
- <ng-content />
90
- </ngt-group>
91
- `, isInline: true }); }
92
- }
93
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.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
@@ -1 +0,0 @@
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;AAED,MAQa,aAAc,SAAQ,UAAU,CAAA;IACzC,IAAa,OAAO,CAAC,OAAgB,EAAA;AACjC,QAAA,IAAI,CAAC,G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
4
-
5
- ## Building
6
-
7
- Run `nx build plugin` to build the library.
8
-
9
- ## Running unit tests
10
-
11
- Run `nx test plugin` to execute the unit tests via [Jest](https://jestjs.io).
@@ -1,19 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "name": "angular-three-postprocessing-plugin",
4
- "version": "0.0.1",
5
- "generators": {
6
- "init": {
7
- "factory": "./src/generators/init/init",
8
- "schema": "./src/generators/init/schema.json",
9
- "description": "Init Angular Three Postprocessing"
10
- }
11
- },
12
- "schematics": {
13
- "ng-add": {
14
- "factory": "./src/generators/init/compat",
15
- "schema": "./src/generators/init/schema.json",
16
- "description": "Add Angular Three Postprocessing"
17
- }
18
- }
19
- }
@@ -1,9 +0,0 @@
1
- {
2
- "type": "commonjs",
3
- "peerDependencies": {
4
- "tslib": "2.5.0"
5
- },
6
- "main": "./src/index.js",
7
- "types": "./src/index.d.ts",
8
- "version": "1.6.0"
9
- }
@@ -1,2 +0,0 @@
1
- declare const _default: (generatorOptions: any) => (tree: any, context: any) => Promise<any>;
2
- export default _default;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const devkit_1 = require("@nx/devkit");
4
- const init_1 = require("./init");
5
- exports.default = (0, devkit_1.convertNxGenerator)(init_1.default);
6
- //# sourceMappingURL=compat.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../libs/plugin/src/generators/init/compat.ts"],"names":[],"mappings":";;AAAA,uCAAgD;AAChD,iCAA0B;AAE1B,kBAAe,IAAA,2BAAkB,EAAC,cAAI,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import { Tree } from '@nx/devkit';
2
- export declare const ANGULAR_THREE_POSTPROCESSING_VERSION = "^1.0.0";
3
- export declare const POSTPROCESSING_VERSION = "^6.0.0";
4
- export default function (tree: Tree): Promise<() => void>;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.POSTPROCESSING_VERSION = exports.ANGULAR_THREE_POSTPROCESSING_VERSION = void 0;
4
- const tslib_1 = require("tslib");
5
- const devkit_1 = require("@nx/devkit");
6
- exports.ANGULAR_THREE_POSTPROCESSING_VERSION = '^1.0.0';
7
- exports.POSTPROCESSING_VERSION = '^6.0.0';
8
- function default_1(tree) {
9
- var _a, _b;
10
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
- devkit_1.logger.log('Initializing Angular Three Cannon...');
12
- const packageJson = (0, devkit_1.readJson)(tree, 'package.json');
13
- const version = ((_a = packageJson['dependencies']) === null || _a === void 0 ? void 0 : _a['angular-three-postprocessing']) ||
14
- ((_b = packageJson['devDependencies']) === null || _b === void 0 ? void 0 : _b['angular-three-postprocessing']) ||
15
- exports.ANGULAR_THREE_POSTPROCESSING_VERSION;
16
- (0, devkit_1.addDependenciesToPackageJson)(tree, {
17
- 'angular-three-postprocessing': version,
18
- postprocessing: exports.POSTPROCESSING_VERSION,
19
- }, {});
20
- return () => {
21
- (0, devkit_1.installPackagesTask)(tree);
22
- };
23
- });
24
- }
25
- exports.default = default_1;
26
- //# sourceMappingURL=init.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../../libs/plugin/src/generators/init/init.ts"],"names":[],"mappings":";;;;AAAA,uCAAuG;AAE1F,QAAA,oCAAoC,GAAG,QAAQ,CAAC;AAChD,QAAA,sBAAsB,GAAG,QAAQ,CAAC;AAE/C,mBAA+B,IAAU;;;QACrC,eAAM,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;QAEnD,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QAEnD,MAAM,OAAO,GACT,CAAA,MAAA,WAAW,CAAC,cAAc,CAAC,0CAAG,8BAA8B,CAAC;aAC7D,MAAA,WAAW,CAAC,iBAAiB,CAAC,0CAAG,8BAA8B,CAAC,CAAA;YAChE,4CAAoC,CAAC;QAEzC,IAAA,qCAA4B,EACxB,IAAI,EACJ;YACI,8BAA8B,EAAE,OAAO;YACvC,cAAc,EAAE,8BAAsB;SACzC,EACD,EAAE,CACL,CAAC;QAEF,OAAO,GAAG,EAAE;YACR,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;QAC9B,CAAC,CAAC;;CACL;AAtBD,4BAsBC"}
@@ -1,6 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "cli": "nx",
4
- "$id": "Init",
5
- "title": "Init Angular Three Postprocessing"
6
- }
@@ -1 +0,0 @@
1
- export { default as initGenerator } from './generators/init/init';
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initGenerator = void 0;
4
- var init_1 = require("./generators/init/init");
5
- Object.defineProperty(exports, "initGenerator", { enumerable: true, get: function () { return init_1.default; } });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/plugin/src/index.ts"],"names":[],"mappings":";;;AAAA,+CAAkE;AAAzD,qGAAA,OAAO,OAAiB"}
@@ -1,3 +0,0 @@
1
- # angular-three-postprocessing/selection
2
-
3
- Secondary entry point of `angular-three-postprocessing`. It can be used by importing from `angular-three-postprocessing/selection`.
@@ -1,2 +0,0 @@
1
- export * from './lib/select';
2
- export * from './lib/selection';
@@ -1,14 +0,0 @@
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": { "alias": "enabled"; "required": false; }; }, {}, never, ["*"], true, never>;
14
- }
@@ -1,18 +0,0 @@
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": { "alias": "enabled"; "required": false; }; }, {}, never, ["*"], true, never>;
18
- }