angular-three-soba 1.3.2 → 1.4.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.
Files changed (47) hide show
  1. package/abstractions/README.md +3 -0
  2. package/abstractions/index.d.ts +6 -0
  3. package/abstractions/lib/billboard/billboard.d.ts +14 -0
  4. package/abstractions/lib/gizmo-helper/gizmo-helper.d.ts +41 -0
  5. package/abstractions/lib/gizmo-helper/gizmo-viewcube/constants.d.ts +12 -0
  6. package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.d.ts +16 -0
  7. package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.d.ts +24 -0
  8. package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.d.ts +14 -0
  9. package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube.d.ts +15 -0
  10. package/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.d.ts +28 -0
  11. package/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport.d.ts +21 -0
  12. package/abstractions/lib/text/text.d.ts +21 -0
  13. package/abstractions/lib/text-3d/text-3d.d.ts +39 -0
  14. package/esm2020/abstractions/angular-three-soba-abstractions.mjs +5 -0
  15. package/esm2020/abstractions/index.mjs +7 -0
  16. package/esm2020/abstractions/lib/billboard/billboard.mjs +73 -0
  17. package/esm2020/abstractions/lib/gizmo-helper/gizmo-helper.mjs +206 -0
  18. package/esm2020/abstractions/lib/gizmo-helper/gizmo-viewcube/constants.mjs +31 -0
  19. package/esm2020/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +91 -0
  20. package/esm2020/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +182 -0
  21. package/esm2020/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.mjs +45 -0
  22. package/esm2020/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +133 -0
  23. package/esm2020/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +193 -0
  24. package/esm2020/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +266 -0
  25. package/esm2020/abstractions/lib/text/text.mjs +110 -0
  26. package/esm2020/abstractions/lib/text-3d/text-3d.mjs +144 -0
  27. package/esm2020/cameras/lib/orthographic-camera/orthographic-camera.mjs +5 -5
  28. package/esm2020/staging/index.mjs +3 -1
  29. package/esm2020/staging/lib/camera-shake/camera-shake.mjs +121 -0
  30. package/esm2020/staging/lib/cloud/cloud.mjs +159 -0
  31. package/fesm2015/angular-three-soba-abstractions.mjs +1431 -0
  32. package/fesm2015/angular-three-soba-abstractions.mjs.map +1 -0
  33. package/fesm2015/angular-three-soba-cameras.mjs +4 -4
  34. package/fesm2015/angular-three-soba-cameras.mjs.map +1 -1
  35. package/fesm2015/angular-three-soba-staging.mjs +274 -4
  36. package/fesm2015/angular-three-soba-staging.mjs.map +1 -1
  37. package/fesm2020/angular-three-soba-abstractions.mjs +1428 -0
  38. package/fesm2020/angular-three-soba-abstractions.mjs.map +1 -0
  39. package/fesm2020/angular-three-soba-cameras.mjs +4 -4
  40. package/fesm2020/angular-three-soba-cameras.mjs.map +1 -1
  41. package/fesm2020/angular-three-soba-staging.mjs +274 -4
  42. package/fesm2020/angular-three-soba-staging.mjs.map +1 -1
  43. package/package.json +11 -3
  44. package/plugin/package.json +1 -1
  45. package/staging/index.d.ts +2 -0
  46. package/staging/lib/camera-shake/camera-shake.d.ts +28 -0
  47. package/staging/lib/cloud/cloud.d.ts +23 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-three-soba",
3
- "version": "1.3.2",
3
+ "version": "1.4.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,8 +30,8 @@
30
30
  "troika-three-text": "^0.47.0",
31
31
  "@storybook/addons": "6.5.16",
32
32
  "@storybook/theming": "6.5.16",
33
- "rxjs": "7.8.0",
34
- "@rx-angular/state": "1.7.0"
33
+ "@rx-angular/state": "1.7.0",
34
+ "rxjs": "7.8.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "@nrwl/devkit": "^15.0.0",
@@ -58,6 +58,14 @@
58
58
  "node": "./fesm2015/angular-three-soba.mjs",
59
59
  "default": "./fesm2020/angular-three-soba.mjs"
60
60
  },
61
+ "./abstractions": {
62
+ "types": "./abstractions/index.d.ts",
63
+ "esm2020": "./esm2020/abstractions/angular-three-soba-abstractions.mjs",
64
+ "es2020": "./fesm2020/angular-three-soba-abstractions.mjs",
65
+ "es2015": "./fesm2015/angular-three-soba-abstractions.mjs",
66
+ "node": "./fesm2015/angular-three-soba-abstractions.mjs",
67
+ "default": "./fesm2020/angular-three-soba-abstractions.mjs"
68
+ },
61
69
  "./cameras": {
62
70
  "types": "./cameras/index.d.ts",
63
71
  "esm2020": "./esm2020/cameras/angular-three-soba-cameras.mjs",
@@ -6,5 +6,5 @@
6
6
  },
7
7
  "main": "./src/index.js",
8
8
  "types": "./src/index.d.ts",
9
- "version": "1.3.2"
9
+ "version": "1.4.0"
10
10
  }
@@ -1,7 +1,9 @@
1
1
  export { NgtsAccumulativeShadows } from './lib/accumulative-shadows/accumulative-shadows';
2
2
  export { NgtsRandomizedLights } from './lib/accumulative-shadows/randomized-lights';
3
3
  export * from './lib/bounds/bounds';
4
+ export * from './lib/camera-shake/camera-shake';
4
5
  export * from './lib/center/center';
6
+ export * from './lib/cloud/cloud';
5
7
  export * from './lib/contact-shadows/contact-shadows';
6
8
  export * from './lib/environment/assets';
7
9
  export * from './lib/environment/environment';
@@ -0,0 +1,28 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { NgtRxStore } from 'angular-three';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NgtsCameraShake extends NgtRxStore implements OnInit {
5
+ private readonly store;
6
+ private initialRotation;
7
+ private readonly yawNoise;
8
+ private readonly pitchNoise;
9
+ private readonly rollNoise;
10
+ set intensity(intensity: number);
11
+ set decay(decay: boolean);
12
+ set decayRate(decayRate: number);
13
+ set maxYaw(maxYaw: number);
14
+ set maxPitch(maxPitch: number);
15
+ set maxRoll(maxRoll: number);
16
+ set yawFrequency(yawFrequency: number);
17
+ set pitchFrequency(pitchFrequency: number);
18
+ set rollFrequency(rollFrequency: number);
19
+ initialize(): void;
20
+ constructor();
21
+ ngOnInit(): void;
22
+ private setChangeEvent;
23
+ getIntensity(): any;
24
+ setIntensity(intensity: number): void;
25
+ private constraintIntensity;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCameraShake, never>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsCameraShake, "ngts-camera-shake", never, { "intensity": "intensity"; "decay": "decay"; "decayRate": "decayRate"; "maxYaw": "maxYaw"; "maxPitch": "maxPitch"; "maxRoll": "maxRoll"; "yawFrequency": "yawFrequency"; "pitchFrequency": "pitchFrequency"; "rollFrequency": "rollFrequency"; }, {}, never, never, true, never>;
28
+ }
@@ -0,0 +1,23 @@
1
+ import { NgtBeforeRenderEvent, NgtRxStore } from 'angular-three';
2
+ import { Observable } from 'rxjs';
3
+ import { ColorRepresentation, Group, Texture } from 'three';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NgtsCloud extends NgtRxStore {
6
+ private readonly store;
7
+ readonly encoding: import("three").TextureEncoding;
8
+ groupRef: import("angular-three").NgtInjectedRef<Group>;
9
+ set opacity(opacity: number);
10
+ set speed(speed: number);
11
+ set width(width: number);
12
+ set depth(depth: number);
13
+ set segments(segments: number);
14
+ set texture(texture: string);
15
+ set color(color: ColorRepresentation);
16
+ set depthTest(depthTest: boolean);
17
+ readonly clouds$: Observable<any>;
18
+ readonly cloudTexture$: Observable<Texture>;
19
+ initialize(): void;
20
+ onBeforeRender({ state, object }: NgtBeforeRenderEvent<Group>): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCloud, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCloud, "ngts-cloud", never, { "groupRef": "groupRef"; "opacity": "opacity"; "speed": "speed"; "width": "width"; "depth": "depth"; "segments": "segments"; "texture": "texture"; "color": "color"; "depthTest": "depthTest"; }, {}, never, never, true, never>;
23
+ }