@wolsok/thanos 18.0.0 → 18.1.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/README.md CHANGED
@@ -53,7 +53,7 @@ export class SharedModule {}
53
53
  | field | type | default | description |
54
54
  | -------------------- | :-----: | ------: | -------------------------------------------------------------------: |
55
55
  | animationLength | number | 5000 | the animation length in ms |
56
- | maxParticleCount | number | 1500000 | max amount of particles (capped at 400000 without WebGL2, see below) |
56
+ | maxParticleCount | number | 3000000 | max amount of particles (capped at 400000 without WebGL2, see below) |
57
57
  | particleAcceleration | number | 30 | speed of the particle acceleration |
58
58
  | sound | boolean | true | play a windy, sandy sound while vaporizing |
59
59
  | soundVolume | number | 0.5 | volume of the sound from 0 to 1 |
@@ -192,7 +192,7 @@ To the release with sound and GPU rendering
192
192
 
193
193
  - The snap sound is on by default. Turn it off with `provideWsThanosOptions({ sound: false })`.
194
194
  - Elements crumble into shards by default. Use `provideWsThanosOptions({ crumble: 'dust' })` for the previous look.
195
- - `maxParticleCount` defaults to 1500000, one particle per device pixel on the GPU.
195
+ - `maxParticleCount` defaults to 3000000, one particle per device pixel on the GPU.
196
196
  Without WebGL2 at most 400000 particles are used, even if you configured more.
197
197
 
198
198
  From `1.0.1` to `2.0.0`
@@ -1,7 +1,7 @@
1
1
  export function createWsThanosOptions(options) {
2
2
  return {
3
3
  animationLength: 5000,
4
- maxParticleCount: 1_500_000,
4
+ maxParticleCount: 3_000_000,
5
5
  particleAcceleration: 30,
6
6
  sound: true,
7
7
  soundVolume: 0.5,
@@ -1 +1 @@
1
- {"version":3,"file":"create-ws-thanos-options.js","sourceRoot":"","sources":["../../../../../../libs/public/ws-thanos/src/lib/create-ws-thanos-options.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,qBAAqB,CACnC,OAAkC;IAElC,OAAO;QACL,eAAe,EAAE,IAAI;QACrB,gBAAgB,EAAE,SAAS;QAC3B,oBAAoB,EAAE,EAAE;QACxB,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,GAAG;QAChB,OAAO,EAAE,QAAQ;QACjB,GAAG,OAAO;KACX,CAAC;AACJ,CAAC","sourcesContent":["import { WsThanosOptions } from './ws-thanos.options';\n\nexport function createWsThanosOptions(\n options?: Partial<WsThanosOptions>\n): WsThanosOptions {\n return {\n animationLength: 5000,\n maxParticleCount: 1_500_000,\n particleAcceleration: 30,\n sound: true,\n soundVolume: 0.5,\n crumble: 'shards',\n ...options,\n };\n}\n"]}
1
+ {"version":3,"file":"create-ws-thanos-options.js","sourceRoot":"","sources":["../../../../../../libs/public/ws-thanos/src/lib/create-ws-thanos-options.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,qBAAqB,CACnC,OAAkC;IAElC,OAAO;QACL,eAAe,EAAE,IAAI;QACrB,gBAAgB,EAAE,SAAS;QAC3B,oBAAoB,EAAE,EAAE;QACxB,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,GAAG;QAChB,OAAO,EAAE,QAAQ;QACjB,GAAG,OAAO;KACX,CAAC;AACJ,CAAC","sourcesContent":["import { WsThanosOptions } from './ws-thanos.options';\n\nexport function createWsThanosOptions(\n options?: Partial<WsThanosOptions>\n): WsThanosOptions {\n return {\n animationLength: 5000,\n maxParticleCount: 3_000_000,\n particleAcceleration: 30,\n sound: true,\n soundVolume: 0.5,\n crumble: 'shards',\n ...options,\n };\n}\n"]}
@@ -78,10 +78,10 @@ export class SnapSoundService {
78
78
  this.audio = { context, limiter, noise: createNoiseBuffer(context) };
79
79
  return this.audio;
80
80
  }
81
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: SnapSoundService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
82
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: SnapSoundService, providedIn: 'root' }); }
81
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: SnapSoundService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
82
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: SnapSoundService, providedIn: 'root' }); }
83
83
  }
84
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: SnapSoundService, decorators: [{
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: SnapSoundService, decorators: [{
85
85
  type: Injectable,
86
86
  args: [{ providedIn: 'root' }]
87
87
  }] });
@@ -54,10 +54,10 @@ export class WsThanosDirective {
54
54
  this.vaporize$(removeElem).pipe(this.untilDestroyed).subscribe();
55
55
  return this.wsThanosComplete.pipe(take(1));
56
56
  }
57
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: WsThanosDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
58
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.1", type: WsThanosDirective, isStandalone: true, selector: "[wsThanos], ws-thanos", inputs: { wsThanosOptions: { classPropertyName: "wsThanosOptions", publicName: "wsThanosOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { wsThanosComplete: "wsThanosComplete" }, exportAs: ["thanos"], ngImport: i0 }); }
57
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: WsThanosDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
58
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.2", type: WsThanosDirective, isStandalone: true, selector: "[wsThanos], ws-thanos", inputs: { wsThanosOptions: { classPropertyName: "wsThanosOptions", publicName: "wsThanosOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { wsThanosComplete: "wsThanosComplete" }, exportAs: ["thanos"], ngImport: i0 }); }
59
59
  }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: WsThanosDirective, decorators: [{
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: WsThanosDirective, decorators: [{
61
61
  type: Directive,
62
62
  args: [{
63
63
  // Bare prefix is the published public API of @wolsok/thanos; renaming it would be breaking.
@@ -125,10 +125,10 @@ export class WsThanosService {
125
125
  top: elemRect.top - parentRect.top - parent.clientTop + parent.scrollTop,
126
126
  };
127
127
  }
128
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: WsThanosService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
129
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: WsThanosService, providedIn: 'root' }); }
128
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: WsThanosService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
129
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: WsThanosService, providedIn: 'root' }); }
130
130
  }
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: WsThanosService, decorators: [{
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.2", ngImport: i0, type: WsThanosService, decorators: [{
132
132
  type: Injectable,
133
133
  args: [{ providedIn: 'root' }]
134
134
  }] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wolsok/thanos",
3
- "version": "18.0.0",
3
+ "version": "18.1.1",
4
4
  "description": "Wolf Soko's implementation of a cool Thanos snapping vaporizing effect for destroying dom elements",
5
5
  "bugs": {
6
6
  "url": "https://github.com/WolfSoko/wol-sok-mono/issues"
@@ -24,7 +24,7 @@
24
24
  "npm"
25
25
  ],
26
26
  "peerDependencies": {
27
- "@angular/core": "22.2.1",
27
+ "@angular/core": "22.2.2",
28
28
  "html2canvas": "^1.4.1",
29
29
  "rxjs": "7.8.2"
30
30
  },