angular-three-soba 2.0.0 → 2.1.0
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/abstractions/lib/catmull-rom-line.d.ts +125 -125
- package/abstractions/lib/edges.d.ts +123 -123
- package/abstractions/lib/line.d.ts +2 -2
- package/abstractions/lib/text.d.ts +1 -1
- package/esm2022/staging/index.mjs +2 -1
- package/esm2022/staging/lib/mask.mjs +78 -0
- package/fesm2022/angular-three-soba-staging.mjs +92 -21
- package/fesm2022/angular-three-soba-staging.mjs.map +1 -1
- package/materials/lib/mesh-refraction-material.d.ts +1 -1
- package/misc/lib/decal.d.ts +1 -1
- package/package.json +13 -13
- package/performances/lib/instances/instances.d.ts +1 -1
- package/performances/lib/points/points.d.ts +1 -1
- package/shaders/lib/mesh-refraction-material.d.ts +2 -2
- package/staging/index.d.ts +1 -0
- package/staging/lib/accumulative-shadows.d.ts +1 -1
- package/staging/lib/center.d.ts +2 -2
- package/staging/lib/mask.d.ts +30 -0
- package/staging/lib/sky.d.ts +1 -1
- package/staging/lib/spot-light.d.ts +1 -1
- package/staging/lib/stage.d.ts +5 -5
|
@@ -20,7 +20,7 @@ export declare class NgtsMeshRefractionMaterial {
|
|
|
20
20
|
envMap: import("@angular/core").InputSignal<Texture | CubeTexture>;
|
|
21
21
|
attach: import("@angular/core").InputSignal<NgtAttachable>;
|
|
22
22
|
options: import("@angular/core").InputSignalWithTransform<NgtsMeshRefractionMaterialOptions, "" | Partial<NgtsMeshRefractionMaterialOptions>>;
|
|
23
|
-
parameters: import("@angular/core").Signal<Omit<NgtsMeshRefractionMaterialOptions, "
|
|
23
|
+
parameters: import("@angular/core").Signal<Omit<NgtsMeshRefractionMaterialOptions, "fastChroma" | "aberrationStrength">>;
|
|
24
24
|
private fastChroma;
|
|
25
25
|
aberrationStrength: import("@angular/core").Signal<number>;
|
|
26
26
|
materialRef: import("@angular/core").Signal<ElementRef<import("three").ShaderMaterial & {
|
package/misc/lib/decal.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface NgtsDecalOptions extends Partial<NgtMesh> {
|
|
|
11
11
|
export declare class NgtsDecal {
|
|
12
12
|
mesh: import("@angular/core").InputSignal<Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> | ElementRef<Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>> | null | undefined>;
|
|
13
13
|
options: import("@angular/core").InputSignalWithTransform<NgtsDecalOptions, "" | Partial<NgtsDecalOptions>>;
|
|
14
|
-
parameters: import("@angular/core").Signal<Omit<NgtsDecalOptions, "position" | "scale" | "rotation" | "
|
|
14
|
+
parameters: import("@angular/core").Signal<Omit<NgtsDecalOptions, "position" | "scale" | "rotation" | "debug" | "map" | "depthTest" | "polygonOffsetFactor">>;
|
|
15
15
|
meshRef: import("@angular/core").Signal<ElementRef<Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>>>;
|
|
16
16
|
helperRef: import("@angular/core").Signal<ElementRef<Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>> | undefined>;
|
|
17
17
|
map: import("@angular/core").Signal<Texture | null | undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-three-soba",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -57,36 +57,36 @@
|
|
|
57
57
|
"esm": "./esm2022/angular-three-soba.mjs",
|
|
58
58
|
"default": "./fesm2022/angular-three-soba.mjs"
|
|
59
59
|
},
|
|
60
|
-
"./cameras": {
|
|
61
|
-
"types": "./cameras/index.d.ts",
|
|
62
|
-
"esm2022": "./esm2022/cameras/angular-three-soba-cameras.mjs",
|
|
63
|
-
"esm": "./esm2022/cameras/angular-three-soba-cameras.mjs",
|
|
64
|
-
"default": "./fesm2022/angular-three-soba-cameras.mjs"
|
|
65
|
-
},
|
|
66
60
|
"./abstractions": {
|
|
67
61
|
"types": "./abstractions/index.d.ts",
|
|
68
62
|
"esm2022": "./esm2022/abstractions/angular-three-soba-abstractions.mjs",
|
|
69
63
|
"esm": "./esm2022/abstractions/angular-three-soba-abstractions.mjs",
|
|
70
64
|
"default": "./fesm2022/angular-three-soba-abstractions.mjs"
|
|
71
65
|
},
|
|
66
|
+
"./cameras": {
|
|
67
|
+
"types": "./cameras/index.d.ts",
|
|
68
|
+
"esm2022": "./esm2022/cameras/angular-three-soba-cameras.mjs",
|
|
69
|
+
"esm": "./esm2022/cameras/angular-three-soba-cameras.mjs",
|
|
70
|
+
"default": "./fesm2022/angular-three-soba-cameras.mjs"
|
|
71
|
+
},
|
|
72
72
|
"./materials": {
|
|
73
73
|
"types": "./materials/index.d.ts",
|
|
74
74
|
"esm2022": "./esm2022/materials/angular-three-soba-materials.mjs",
|
|
75
75
|
"esm": "./esm2022/materials/angular-three-soba-materials.mjs",
|
|
76
76
|
"default": "./fesm2022/angular-three-soba-materials.mjs"
|
|
77
77
|
},
|
|
78
|
-
"./performances": {
|
|
79
|
-
"types": "./performances/index.d.ts",
|
|
80
|
-
"esm2022": "./esm2022/performances/angular-three-soba-performances.mjs",
|
|
81
|
-
"esm": "./esm2022/performances/angular-three-soba-performances.mjs",
|
|
82
|
-
"default": "./fesm2022/angular-three-soba-performances.mjs"
|
|
83
|
-
},
|
|
84
78
|
"./controls": {
|
|
85
79
|
"types": "./controls/index.d.ts",
|
|
86
80
|
"esm2022": "./esm2022/controls/angular-three-soba-controls.mjs",
|
|
87
81
|
"esm": "./esm2022/controls/angular-three-soba-controls.mjs",
|
|
88
82
|
"default": "./fesm2022/angular-three-soba-controls.mjs"
|
|
89
83
|
},
|
|
84
|
+
"./performances": {
|
|
85
|
+
"types": "./performances/index.d.ts",
|
|
86
|
+
"esm2022": "./esm2022/performances/angular-three-soba-performances.mjs",
|
|
87
|
+
"esm": "./esm2022/performances/angular-three-soba-performances.mjs",
|
|
88
|
+
"default": "./fesm2022/angular-three-soba-performances.mjs"
|
|
89
|
+
},
|
|
90
90
|
"./staging": {
|
|
91
91
|
"types": "./staging/index.d.ts",
|
|
92
92
|
"esm2022": "./esm2022/staging/angular-three-soba-staging.mjs",
|
|
@@ -107,7 +107,7 @@ export interface NgtsInstancesOptions extends Partial<NgtInstancedMesh> {
|
|
|
107
107
|
export declare class NgtsInstances {
|
|
108
108
|
protected readonly DynamicDrawUsage: 35048;
|
|
109
109
|
options: import("@angular/core").InputSignalWithTransform<NgtsInstancesOptions, "" | Partial<NgtsInstancesOptions>>;
|
|
110
|
-
parameters: import("@angular/core").Signal<Omit<NgtsInstancesOptions, "frames" | "
|
|
110
|
+
parameters: import("@angular/core").Signal<Omit<NgtsInstancesOptions, "frames" | "limit" | "range">>;
|
|
111
111
|
instancedMeshRef: import("@angular/core").Signal<ElementRef<InstancedMesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").InstancedMeshEventMap>>>;
|
|
112
112
|
limit: import("@angular/core").Signal<number>;
|
|
113
113
|
buffers: import("@angular/core").Signal<{
|
|
@@ -207,7 +207,7 @@ export interface NgtsPointsInstancesOptions extends Partial<NgtPoints> {
|
|
|
207
207
|
}
|
|
208
208
|
export declare class NgtsPointsInstances {
|
|
209
209
|
options: import("@angular/core").InputSignalWithTransform<NgtsPointsInstancesOptions, "" | Partial<NgtsPointsInstancesOptions>>;
|
|
210
|
-
parameters: import("@angular/core").Signal<Omit<NgtsPointsInstancesOptions, "
|
|
210
|
+
parameters: import("@angular/core").Signal<Omit<NgtsPointsInstancesOptions, "limit" | "range">>;
|
|
211
211
|
pointsRef: import("@angular/core").Signal<ElementRef<Points<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>>>;
|
|
212
212
|
private limit;
|
|
213
213
|
buffers: import("@angular/core").Signal<{
|
|
@@ -3,9 +3,9 @@ declare module 'three-mesh-bvh' {
|
|
|
3
3
|
const shaderIntersectFunction: string;
|
|
4
4
|
}
|
|
5
5
|
export declare const MeshRefractionMaterial: (new (parameters?: (THREE.ShaderMaterialParameters & Partial<{
|
|
6
|
-
[name: string]: number | boolean | any[] | THREE.
|
|
6
|
+
[name: string]: number | boolean | any[] | THREE.CubeTexture | THREE.Texture | Int32Array | Float32Array | THREE.Matrix4 | THREE.Matrix3 | THREE.Quaternion | THREE.Vector4 | THREE.Vector3 | THREE.Vector2 | THREE.Color | null;
|
|
7
7
|
}>) | undefined) => THREE.ShaderMaterial & {
|
|
8
|
-
[name: string]: number | boolean | any[] | THREE.
|
|
8
|
+
[name: string]: number | boolean | any[] | THREE.CubeTexture | THREE.Texture | Int32Array | Float32Array | THREE.Matrix4 | THREE.Matrix3 | THREE.Quaternion | THREE.Vector4 | THREE.Vector3 | THREE.Vector2 | THREE.Color | null;
|
|
9
9
|
}) & {
|
|
10
10
|
key: string;
|
|
11
11
|
};
|
package/staging/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './lib/contact-shadows';
|
|
|
9
9
|
export * from './lib/environment';
|
|
10
10
|
export * from './lib/float';
|
|
11
11
|
export * from './lib/lightformer';
|
|
12
|
+
export * from './lib/mask';
|
|
12
13
|
export * from './lib/matcap-texture';
|
|
13
14
|
export * from './lib/normal-texture';
|
|
14
15
|
export * from './lib/randomized-lights';
|
|
@@ -30,7 +30,7 @@ export declare class NgtsAccumulativeShadows {
|
|
|
30
30
|
nullTraversal: () => null;
|
|
31
31
|
Math: Math;
|
|
32
32
|
options: import("@angular/core").InputSignalWithTransform<NgtsAccumulativeShadowsOptions, "" | Partial<NgtsAccumulativeShadowsOptions>>;
|
|
33
|
-
parameters: import("@angular/core").Signal<Omit<NgtsAccumulativeShadowsOptions, "scale" | "
|
|
33
|
+
parameters: import("@angular/core").Signal<Omit<NgtsAccumulativeShadowsOptions, "scale" | "temporal" | "frames" | "limit" | "blend" | "opacity" | "alphaTest" | "color" | "colorBlend" | "resolution" | "toneMapped">>;
|
|
34
34
|
lightsRef: import("@angular/core").Signal<ElementRef<Group<import("three").Object3DEventMap>>>;
|
|
35
35
|
planeRef: import("@angular/core").Signal<ElementRef<Mesh<PlaneGeometry, import("three").ShaderMaterial & {
|
|
36
36
|
map: import("three").Texture | null;
|
package/staging/lib/center.d.ts
CHANGED
|
@@ -293,7 +293,7 @@ export declare class NgtsCenter {
|
|
|
293
293
|
layers: import("angular-three").NgtLayers;
|
|
294
294
|
dispose: (() => void) | null;
|
|
295
295
|
raycast: Object3D["raycast"] | null;
|
|
296
|
-
}> & NgtsCenterOptions, "disable" | "
|
|
296
|
+
}> & NgtsCenterOptions, "disable" | "top" | "right" | "bottom" | "left" | "front" | "back" | "disableX" | "disableY" | "disableZ" | "precise" | "cacheKey">>;
|
|
297
297
|
centered: import("@angular/core").OutputEmitterRef<NgtsCenterState>;
|
|
298
298
|
groupRef: import("@angular/core").Signal<ElementRef<Group<import("three").Object3DEventMap>>>;
|
|
299
299
|
private outerRef;
|
|
@@ -383,7 +383,7 @@ export declare class NgtsCenter {
|
|
|
383
383
|
layers: import("angular-three").NgtLayers;
|
|
384
384
|
dispose: (() => void) | null;
|
|
385
385
|
raycast: Object3D["raycast"] | null;
|
|
386
|
-
}> & NgtsCenterOptions, "disable" | "
|
|
386
|
+
}> & NgtsCenterOptions, "disable" | "top" | "right" | "bottom" | "left" | "front" | "back" | "disableX" | "disableY" | "disableZ" | "precise" | "cacheKey">>;
|
|
387
387
|
constructor();
|
|
388
388
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCenter, never>;
|
|
389
389
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCenter, "ngts-center", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "centered": "centered"; }, never, ["*"], true, never>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
+
import { NgtMesh } from 'angular-three';
|
|
3
|
+
import { BufferGeometry, Material, Mesh } from 'three';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface NgtsMaskOptions extends Partial<NgtMesh> {
|
|
6
|
+
colorWrite: boolean;
|
|
7
|
+
depthWrite: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class NgtsMask {
|
|
10
|
+
id: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
11
|
+
options: import("@angular/core").InputSignalWithTransform<NgtsMaskOptions, "" | Partial<NgtsMaskOptions>>;
|
|
12
|
+
parameters: import("@angular/core").Signal<Omit<NgtsMaskOptions, "colorWrite" | "depthWrite">>;
|
|
13
|
+
meshRef: import("@angular/core").Signal<ElementRef<Mesh<BufferGeometry<import("three").NormalBufferAttributes>, Material, import("three").Object3DEventMap>>>;
|
|
14
|
+
private colorWrite;
|
|
15
|
+
private depthWrite;
|
|
16
|
+
private spread;
|
|
17
|
+
constructor();
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsMask, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMask, "ngts-mask", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
20
|
+
}
|
|
21
|
+
export declare function injectMask(id: () => number, inverse?: () => boolean, { injector }?: {
|
|
22
|
+
injector?: Injector;
|
|
23
|
+
}): import("@angular/core").Signal<{
|
|
24
|
+
stencilWrite: boolean;
|
|
25
|
+
stencilRef: number;
|
|
26
|
+
stencilFunc: 517 | 514;
|
|
27
|
+
stencilFail: 7680;
|
|
28
|
+
stencilZFail: 7680;
|
|
29
|
+
stencilZPass: 7680;
|
|
30
|
+
}>;
|
package/staging/lib/sky.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface NgtsSkyOptions extends Partial<Omit<NgtMesh, 'scale'>> {
|
|
|
15
15
|
}
|
|
16
16
|
export declare class NgtsSky {
|
|
17
17
|
options: import("@angular/core").InputSignalWithTransform<NgtsSkyOptions, "" | Partial<NgtsSkyOptions>>;
|
|
18
|
-
parameters: import("@angular/core").Signal<Omit<NgtsSkyOptions, "distance" | "inclination" | "azimuth" | "
|
|
18
|
+
parameters: import("@angular/core").Signal<Omit<NgtsSkyOptions, "distance" | "inclination" | "azimuth" | "sunPosition" | "turbidity" | "mieCoefficient" | "mieDirectionalG">>;
|
|
19
19
|
distance: import("@angular/core").Signal<number>;
|
|
20
20
|
turbidity: import("@angular/core").Signal<number>;
|
|
21
21
|
mieCoefficient: import("@angular/core").Signal<number>;
|
|
@@ -104,7 +104,7 @@ export declare class NgtsSpotLightShadow {
|
|
|
104
104
|
export declare class NgtsSpotLight {
|
|
105
105
|
protected readonly SpotLightHelper: typeof SpotLightHelper;
|
|
106
106
|
options: import("@angular/core").InputSignalWithTransform<NgtsSpotLightOptions, "" | Partial<NgtsSpotLightOptions>>;
|
|
107
|
-
parameters: import("@angular/core").Signal<Omit<NgtsSpotLightOptions, "opacity" | "color" | "distance" | "debug" | "depthBuffer" | "angle" | "attenuation" | "anglePower" | "radiusTop" | "radiusBottom"
|
|
107
|
+
parameters: import("@angular/core").Signal<Omit<NgtsSpotLightOptions, "opacity" | "color" | "distance" | "debug" | "depthBuffer" | "volumetric" | "angle" | "attenuation" | "anglePower" | "radiusTop" | "radiusBottom">>;
|
|
108
108
|
volumetricOptions: import("@angular/core").Signal<Pick<NgtsSpotLightOptions, "opacity" | "color" | "distance" | "debug" | "depthBuffer" | "angle" | "attenuation" | "anglePower" | "radiusTop" | "radiusBottom">>;
|
|
109
109
|
spotLight: import("@angular/core").Signal<ElementRef<SpotLight>>;
|
|
110
110
|
debug: import("@angular/core").Signal<boolean | undefined>;
|
package/staging/lib/stage.d.ts
CHANGED
|
@@ -54,11 +54,14 @@ export declare class NgtsStage {
|
|
|
54
54
|
intensity: import("@angular/core").Signal<number>;
|
|
55
55
|
shadows: import("@angular/core").Signal<boolean | "contact" | "accumulative" | NgtsStageShadowsOptions>;
|
|
56
56
|
environment: import("@angular/core").Signal<Partial<NgtsEnvironmentOptions> | "apartment" | "city" | "dawn" | "forest" | "lobby" | "night" | "park" | "studio" | "sunset" | "warehouse" | null>;
|
|
57
|
-
preset: import("@angular/core").Signal<{
|
|
57
|
+
preset: import("@angular/core").Signal<"rembrandt" | "portrait" | "upfront" | "soft" | {
|
|
58
58
|
main: [x: number, y: number, z: number];
|
|
59
59
|
fill: [x: number, y: number, z: number];
|
|
60
|
-
}
|
|
60
|
+
}>;
|
|
61
61
|
config: import("@angular/core").Signal<{
|
|
62
|
+
main: [x: number, y: number, z: number];
|
|
63
|
+
fill: [x: number, y: number, z: number];
|
|
64
|
+
} | {
|
|
62
65
|
readonly main: readonly [1, 2, 1];
|
|
63
66
|
readonly fill: readonly [-2, -0.5, -2];
|
|
64
67
|
} | {
|
|
@@ -70,9 +73,6 @@ export declare class NgtsStage {
|
|
|
70
73
|
} | {
|
|
71
74
|
readonly main: readonly [-2, 4, 4];
|
|
72
75
|
readonly fill: readonly [-1, 0.5, -1.5];
|
|
73
|
-
} | {
|
|
74
|
-
main: [x: number, y: number, z: number];
|
|
75
|
-
fill: [x: number, y: number, z: number];
|
|
76
76
|
}>;
|
|
77
77
|
shadowBias: import("@angular/core").Signal<number>;
|
|
78
78
|
normalBias: import("@angular/core").Signal<number>;
|