@wolsok/thanos 18.0.0 → 18.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/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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wolsok/thanos",
3
- "version": "18.0.0",
3
+ "version": "18.1.0",
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"