@tsparticles/angular 4.5.0 → 4.5.2

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.
@@ -37,7 +37,7 @@ var NgParticlesService = class NgParticlesService {
37
37
  }
38
38
  static ɵfac = i0.ɵɵngDeclareFactory({
39
39
  minVersion: "12.0.0",
40
- version: "22.2.3",
40
+ version: "22.2.4",
41
41
  ngImport: i0,
42
42
  type: NgParticlesService,
43
43
  deps: [],
@@ -45,7 +45,7 @@ var NgParticlesService = class NgParticlesService {
45
45
  });
46
46
  static ɵprov = i0.ɵɵngDeclareInjectable({
47
47
  minVersion: "12.0.0",
48
- version: "22.2.3",
48
+ version: "22.2.4",
49
49
  ngImport: i0,
50
50
  type: NgParticlesService,
51
51
  providedIn: "root"
@@ -53,7 +53,7 @@ var NgParticlesService = class NgParticlesService {
53
53
  };
54
54
  i0.ɵɵngDeclareClassMetadata({
55
55
  minVersion: "12.0.0",
56
- version: "22.2.3",
56
+ version: "22.2.4",
57
57
  ngImport: i0,
58
58
  type: NgParticlesService,
59
59
  decorators: [{
@@ -69,7 +69,9 @@ var NgxParticlesComponent = class NgxParticlesComponent {
69
69
  theme;
70
70
  particlesLoaded = new EventEmitter();
71
71
  #container;
72
+ #loadId = 0;
72
73
  #loadingPromise;
74
+ #viewReady = false;
73
75
  #particlesService;
74
76
  constructor(platformId, particlesService) {
75
77
  this.platformId = platformId;
@@ -77,34 +79,41 @@ var NgxParticlesComponent = class NgxParticlesComponent {
77
79
  }
78
80
  ngAfterViewInit() {
79
81
  if (isPlatformServer(this.platformId)) return;
82
+ this.#viewReady = true;
80
83
  this.#loadingPromise = this.#loadParticles();
81
84
  }
82
85
  ngOnChanges(changes) {
83
86
  if (isPlatformServer(this.platformId)) return;
84
- if (!this.#container) return;
85
- if (changes["id"] || changes["options"] || changes["url"]) this.#loadParticles();
86
- if (changes["theme"]) this.#container.loadTheme?.(changes["theme"].currentValue);
87
+ if (this.#viewReady && (changes["id"] || changes["options"] || changes["url"])) this.#loadParticles();
88
+ if (changes["theme"] && this.#container) this.#container.loadTheme?.(changes["theme"].currentValue);
87
89
  }
88
90
  ngOnDestroy() {
91
+ this.#loadId++;
89
92
  this.#container?.destroy();
90
93
  this.#loadingPromise = void 0;
91
94
  }
92
95
  async #loadParticles() {
96
+ const loadId = ++this.#loadId;
93
97
  await this.#particlesService.waitForInitialization();
94
98
  this.#particlesService.assertInitialized();
99
+ if (loadId !== this.#loadId) return;
95
100
  this.#container?.destroy();
96
101
  const container = await tsParticles.load({
97
102
  id: this.id,
98
103
  options: this.options,
99
104
  url: this.url
100
105
  });
106
+ if (loadId !== this.#loadId) {
107
+ container?.destroy();
108
+ return;
109
+ }
101
110
  this.#container = container;
102
111
  if (container && this.theme) container.loadTheme?.(this.theme);
103
112
  this.particlesLoaded.emit(container);
104
113
  }
105
114
  static ɵfac = i0.ɵɵngDeclareFactory({
106
115
  minVersion: "12.0.0",
107
- version: "22.2.3",
116
+ version: "22.2.4",
108
117
  ngImport: i0,
109
118
  type: NgxParticlesComponent,
110
119
  deps: [{ token: PLATFORM_ID }, { token: NgParticlesService }],
@@ -112,7 +121,7 @@ var NgxParticlesComponent = class NgxParticlesComponent {
112
121
  });
113
122
  static ɵcmp = i0.ɵɵngDeclareComponent({
114
123
  minVersion: "14.0.0",
115
- version: "22.2.3",
124
+ version: "22.2.4",
116
125
  type: NgxParticlesComponent,
117
126
  isStandalone: false,
118
127
  selector: "ngx-particles",
@@ -131,7 +140,7 @@ var NgxParticlesComponent = class NgxParticlesComponent {
131
140
  };
132
141
  i0.ɵɵngDeclareClassMetadata({
133
142
  minVersion: "12.0.0",
134
- version: "22.2.3",
143
+ version: "22.2.4",
135
144
  ngImport: i0,
136
145
  type: NgxParticlesComponent,
137
146
  decorators: [{
@@ -160,7 +169,7 @@ i0.ɵɵngDeclareClassMetadata({
160
169
  var NgxParticlesModule = class NgxParticlesModule {
161
170
  static ɵfac = i0.ɵɵngDeclareFactory({
162
171
  minVersion: "12.0.0",
163
- version: "22.2.3",
172
+ version: "22.2.4",
164
173
  ngImport: i0,
165
174
  type: NgxParticlesModule,
166
175
  deps: [],
@@ -168,7 +177,7 @@ var NgxParticlesModule = class NgxParticlesModule {
168
177
  });
169
178
  static ɵmod = i0.ɵɵngDeclareNgModule({
170
179
  minVersion: "14.0.0",
171
- version: "22.2.3",
180
+ version: "22.2.4",
172
181
  ngImport: i0,
173
182
  type: NgxParticlesModule,
174
183
  declarations: [NgxParticlesComponent],
@@ -176,7 +185,7 @@ var NgxParticlesModule = class NgxParticlesModule {
176
185
  });
177
186
  static ɵinj = i0.ɵɵngDeclareInjector({
178
187
  minVersion: "12.0.0",
179
- version: "22.2.3",
188
+ version: "22.2.4",
180
189
  ngImport: i0,
181
190
  type: NgxParticlesModule,
182
191
  providers: [NgParticlesService]
@@ -184,7 +193,7 @@ var NgxParticlesModule = class NgxParticlesModule {
184
193
  };
185
194
  i0.ɵɵngDeclareClassMetadata({
186
195
  minVersion: "12.0.0",
187
- version: "22.2.3",
196
+ version: "22.2.4",
188
197
  ngImport: i0,
189
198
  type: NgxParticlesModule,
190
199
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"tsparticles-angular.mjs","names":[],"sources":["../../../projects/ng-particles/src/lib/ng-particles.service.ts","../../../projects/ng-particles/src/lib/ng-particles.component.ts","../../../projects/ng-particles/src/lib/ng-particles.module.ts"],"sourcesContent":["import { Injectable } from \"@angular/core\";\nimport { Engine, tsParticles } from \"@tsparticles/engine\";\n\nexport type ParticlesPluginRegistrar = (engine: Engine) => Promise<void> | void;\n\nlet initialized = false;\nlet initPromise: Promise<void> | undefined;\nlet initCallback: ParticlesPluginRegistrar | undefined;\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class NgParticlesService {\n public get loaded(): boolean {\n return initialized;\n }\n\n public assertInitialized(): void {\n if (!initialized) {\n throw new Error(\"NgParticlesService.init(...) must be called once before rendering ngx-particles components.\");\n }\n }\n\n public async init(particlesInit?: ParticlesPluginRegistrar): Promise<void> {\n if (initialized) {\n return;\n }\n\n if (initPromise) {\n if (initCallback !== particlesInit) {\n throw new Error(\"NgParticlesService init callback must be stable across the app lifecycle.\");\n }\n\n await initPromise;\n\n return;\n }\n\n initCallback = particlesInit;\n initPromise = (async () => {\n if (particlesInit) {\n await particlesInit(tsParticles);\n }\n\n await tsParticles.init();\n\n initialized = true;\n })().catch((error: unknown) => {\n initPromise = undefined;\n initCallback = undefined;\n initialized = false;\n\n throw error;\n });\n\n await initPromise;\n }\n\n public async waitForInitialization(): Promise<void> {\n await (initPromise ?? Promise.resolve());\n }\n}\n","import {\n AfterViewInit,\n Component,\n EventEmitter,\n Inject,\n Input,\n OnChanges,\n OnDestroy,\n Output,\n PLATFORM_ID,\n SimpleChanges,\n} from \"@angular/core\";\nimport { isPlatformServer } from \"@angular/common\";\nimport { tsParticles } from \"@tsparticles/engine\";\nimport type { Container } from \"@tsparticles/engine\";\nimport { IParticlesProps } from \"./ng-particles.module\";\nimport { NgParticlesService } from \"./ng-particles.service\";\n\n@Component({\n selector: \"ngx-particles\",\n standalone: false,\n template: '<div [id]=\"id\"></div>',\n})\nexport class NgxParticlesComponent implements AfterViewInit, OnChanges, OnDestroy {\n @Input() options?: IParticlesProps;\n @Input() url?: string;\n @Input() id = \"tsparticles\";\n @Input() theme?: string;\n @Output() particlesLoaded: EventEmitter<Container | undefined> = new EventEmitter<Container | undefined>();\n\n #container?: Container;\n #loadingPromise?: Promise<void>;\n readonly #particlesService: NgParticlesService;\n\n constructor(\n @Inject(PLATFORM_ID) protected platformId: string,\n particlesService: NgParticlesService,\n ) {\n this.#particlesService = particlesService;\n }\n\n public ngAfterViewInit(): void {\n if (isPlatformServer(this.platformId)) {\n return;\n }\n\n this.#loadingPromise = this.#loadParticles();\n }\n\n public ngOnChanges(changes: SimpleChanges): void {\n if (isPlatformServer(this.platformId)) {\n return;\n }\n\n if (!this.#container) {\n return;\n }\n\n if (changes[\"id\"] || changes[\"options\"] || changes[\"url\"]) {\n void this.#loadParticles();\n }\n\n if (changes[\"theme\"]) {\n (this.#container as unknown as { loadTheme?: (name?: string) => Promise<void> }).loadTheme?.(\n changes[\"theme\"].currentValue,\n );\n }\n }\n\n public ngOnDestroy(): void {\n this.#container?.destroy();\n\n this.#loadingPromise = undefined;\n }\n\n async #loadParticles(): Promise<void> {\n await this.#particlesService.waitForInitialization();\n this.#particlesService.assertInitialized();\n\n this.#container?.destroy();\n\n const container = await tsParticles.load({ id: this.id, options: this.options, url: this.url });\n\n this.#container = container;\n\n if (container && this.theme) {\n (container as unknown as { loadTheme?: (name?: string) => Promise<void> }).loadTheme?.(this.theme);\n }\n\n this.particlesLoaded.emit(container);\n }\n}\n","import { NgModule } from \"@angular/core\";\nimport { NgxParticlesComponent } from \"./ng-particles.component\";\nimport type { ISourceOptions } from \"@tsparticles/engine\";\nimport { NgParticlesService } from \"./ng-particles.service\";\n\n@NgModule({\n declarations: [NgxParticlesComponent],\n exports: [NgxParticlesComponent],\n providers: [NgParticlesService],\n})\nexport class NgxParticlesModule {}\n\nexport type IParticlesProps = ISourceOptions;\nexport { NgParticlesService };\n"],"mappings":";;;;AAKA,IAAI,cAAc;AAClB,IAAI;AACJ,IAAI;AAKJ,IAAa,qBAAb,MAAa,mBAAkB;CAC7B,IAAW,SAAM;EACf,OAAO;CACT;CAEO,oBAAiB;EACtB,IAAI,CAAC,aACH,MAAM,IAAI,MAAM,6FAA6F;CAEjH;CAEO,MAAM,KAAK,eAAwC;EACxD,IAAI,aACF;EAGF,IAAI,aAAa;GACf,IAAI,iBAAiB,eACnB,MAAM,IAAI,MAAM,2EAA2E;GAG7F,MAAM;GAEN;EACF;EAEA,eAAe;EACf,eAAe,YAAW;GACxB,IAAI,eACF,MAAM,cAAc,WAAW;GAGjC,MAAM,YAAY,KAAI;GAEtB,cAAc;EAChB,EAAA,CAAE,CAAE,CAAC,OAAO,UAAkB;GAC5B,cAAc;GACd,eAAe;GACf,cAAc;GAEd,MAAM;EACR,C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A,MAAA;EAAkB,cAAA,CAJd,qBAAqB;EAAA,SAAA,CAC1B,qBAAqB;CAAA,CAAA;CAGpB,OAAA,OAAA,GAAA,oBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAkB,WAFlB,CAAC,kBAAkB;CAAC,CAAA;;AAEpB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAkB,YAAA,CAAA;EAL9B,MAAA;EAAS,MAAA,CAAA;GACR,cAAc,CAAC,qBAAqB;GACpC,SAAS,CAAC,qBAAqB;GAC/B,WAAW,CAAC,kBAAkB;EAC/B,CAAA"}
1
+ {"version":3,"file":"tsparticles-angular.mjs","names":["i1.NgParticlesService"],"sources":["../../../projects/ng-particles/src/lib/ng-particles.service.ts","../../../projects/ng-particles/src/lib/ng-particles.component.ts","../../../projects/ng-particles/src/lib/ng-particles.module.ts"],"sourcesContent":["import { Injectable } from \"@angular/core\";\nimport { Engine, tsParticles } from \"@tsparticles/engine\";\n\nexport type ParticlesPluginRegistrar = (engine: Engine) => Promise<void> | void;\n\nlet initialized = false;\nlet initPromise: Promise<void> | undefined;\nlet initCallback: ParticlesPluginRegistrar | undefined;\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class NgParticlesService {\n public get loaded(): boolean {\n return initialized;\n }\n\n public assertInitialized(): void {\n if (!initialized) {\n throw new Error(\"NgParticlesService.init(...) must be called once before rendering ngx-particles components.\");\n }\n }\n\n public async init(particlesInit?: ParticlesPluginRegistrar): Promise<void> {\n if (initialized) {\n return;\n }\n\n if (initPromise) {\n if (initCallback !== particlesInit) {\n throw new Error(\"NgParticlesService init callback must be stable across the app lifecycle.\");\n }\n\n await initPromise;\n\n return;\n }\n\n initCallback = particlesInit;\n initPromise = (async () => {\n if (particlesInit) {\n await particlesInit(tsParticles);\n }\n\n await tsParticles.init();\n\n initialized = true;\n })().catch((error: unknown) => {\n initPromise = undefined;\n initCallback = undefined;\n initialized = false;\n\n throw error;\n });\n\n await initPromise;\n }\n\n public async waitForInitialization(): Promise<void> {\n await (initPromise ?? Promise.resolve());\n }\n}\n","import {\n AfterViewInit,\n Component,\n EventEmitter,\n Inject,\n Input,\n OnChanges,\n OnDestroy,\n Output,\n PLATFORM_ID,\n SimpleChanges,\n} from \"@angular/core\";\nimport { isPlatformServer } from \"@angular/common\";\nimport { tsParticles } from \"@tsparticles/engine\";\nimport type { Container } from \"@tsparticles/engine\";\nimport { IParticlesProps } from \"./ng-particles.module\";\nimport { NgParticlesService } from \"./ng-particles.service\";\n\n@Component({\n selector: \"ngx-particles\",\n standalone: false,\n template: '<div [id]=\"id\"></div>',\n})\nexport class NgxParticlesComponent implements AfterViewInit, OnChanges, OnDestroy {\n @Input() options?: IParticlesProps;\n @Input() url?: string;\n @Input() id = \"tsparticles\";\n @Input() theme?: string;\n @Output() particlesLoaded: EventEmitter<Container | undefined> = new EventEmitter<Container | undefined>();\n\n #container?: Container;\n #loadId = 0;\n #loadingPromise?: Promise<void>;\n #viewReady = false;\n readonly #particlesService: NgParticlesService;\n\n constructor(\n @Inject(PLATFORM_ID) protected platformId: string,\n particlesService: NgParticlesService,\n ) {\n this.#particlesService = particlesService;\n }\n\n public ngAfterViewInit(): void {\n if (isPlatformServer(this.platformId)) {\n return;\n }\n\n this.#viewReady = true;\n this.#loadingPromise = this.#loadParticles();\n }\n\n public ngOnChanges(changes: SimpleChanges): void {\n if (isPlatformServer(this.platformId)) {\n return;\n }\n\n /* the view can be ready while the first load is still pending, so readiness is tracked separately */\n if (this.#viewReady && (changes[\"id\"] || changes[\"options\"] || changes[\"url\"])) {\n void this.#loadParticles();\n }\n\n if (changes[\"theme\"] && this.#container) {\n (this.#container as unknown as { loadTheme?: (name?: string) => Promise<void> }).loadTheme?.(\n changes[\"theme\"].currentValue,\n );\n }\n }\n\n public ngOnDestroy(): void {\n this.#loadId++;\n this.#container?.destroy();\n\n this.#loadingPromise = undefined;\n }\n\n async #loadParticles(): Promise<void> {\n const loadId = ++this.#loadId;\n\n await this.#particlesService.waitForInitialization();\n this.#particlesService.assertInitialized();\n\n if (loadId !== this.#loadId) {\n return;\n }\n\n this.#container?.destroy();\n\n const container = await tsParticles.load({ id: this.id, options: this.options, url: this.url });\n\n if (loadId !== this.#loadId) {\n /* a newer load has been requested with the latest inputs, so this container is not the current one */\n container?.destroy();\n\n return;\n }\n\n this.#container = container;\n\n if (container && this.theme) {\n (container as unknown as { loadTheme?: (name?: string) => Promise<void> }).loadTheme?.(this.theme);\n }\n\n this.particlesLoaded.emit(container);\n }\n}\n","import { NgModule } from \"@angular/core\";\nimport { NgxParticlesComponent } from \"./ng-particles.component\";\nimport type { ISourceOptions } from \"@tsparticles/engine\";\nimport { NgParticlesService } from \"./ng-particles.service\";\n\n@NgModule({\n declarations: [NgxParticlesComponent],\n exports: [NgxParticlesComponent],\n providers: [NgParticlesService],\n})\nexport class NgxParticlesModule {}\n\nexport type IParticlesProps = ISourceOptions;\nexport { NgParticlesService };\n"],"mappings":";;;;AAKA,IAAI,cAAc;AAClB,IAAI;AACJ,IAAI;AAKJ,IAAa,qBAAb,MAAa,mBAAkB;CAC7B,IAAW,SAAM;EACf,OAAO;CACT;CAEO,oBAAiB;EACtB,IAAI,CAAC,aACH,MAAM,IAAI,MAAM,6FAA6F;CAEjH;CAEO,MAAM,KAAK,eAAwC;EACxD,IAAI,aACF;EAGF,IAAI,aAAa;GACf,IAAI,iBAAiB,eACnB,MAAM,IAAI,MAAM,2EAA2E;GAG7F,MAAM;GAEN;EACF;EAEA,eAAe;EACf,eAAe,YAAW;GACxB,IAAI,eACF,MAAM,cAAc,WAAW;GAGjC,MAAM,YAAY,KAAI;GAEtB,cAAc;EAChB,EAAA,CAAE,CAAE,CAAC,OAAO,UAAkB;GAC5B,cAAc;GACd,eAAe;GACf,cAAc;GAEd,MAAM;EACR,CAAC;EAED,MAAM;CACR;CAEO,MAAM,wBAAqB;EAChC,OAAO,eAAe,QAAQ,QAAO;CACvC;CAhDW,OAA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A,CAC1B,qBAAqB;CAAA,CAAA;CAGpB,OAAA,OAAA,GAAA,oBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAkB,WAFlB,CAAC,kBAAkB;CAAC,CAAA;;AAEpB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAkB,YAAA,CAAA;EAL9B,MAAA;EAAS,MAAA,CAAA;GACR,cAAc,CAAC,qBAAqB;GACpC,SAAS,CAAC,qBAAqB;GAC/B,WAAW,CAAC,kBAAkB;EAC/B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/angular",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
4
4
  "description": "Official tsParticles Angular Component - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for Web Components, React, Vue.js (2.x and 3.x), Svelte, jQuery, Preact, Riot.js, Solid.js, Inferno.",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -88,10 +88,10 @@
88
88
  "@angular/common": ">=12.0.0",
89
89
  "@angular/core": ">=12.0.0",
90
90
  "rxjs": ">=7.0.0",
91
- "@tsparticles/engine": "^4.5.0"
91
+ "@tsparticles/engine": "^4.5.2"
92
92
  },
93
93
  "dependencies": {
94
- "tslib": "^2.8.1"
94
+ "tslib": "^2.9.1"
95
95
  },
96
96
  "module": "fesm2022/tsparticles-angular.mjs",
97
97
  "typings": "types/tsparticles-angular.d.ts",