tsparticles / angular

Angular tsParticles official component
MIT License
31 stars 5 forks source link

Sweep (slow): ClickMode and HoverMode has no exported member this package #114

Open sandeepsaini309 opened 1 week ago

sandeepsaini309 commented 1 week ago

Details

ClickMode and HoverMode has no exported members in this package

image

sweep-ai[bot] commented 1 week ago
Sweeping

75%

Actions

components/particles/projects/ng-particles/src/lib/ng-particles.module.ts

Export the ClickMode type from @tsparticles/engine.
--- 
+++ 
@@ -1,6 +1,6 @@
 import { NgModule } from '@angular/core';
 import { NgxParticlesComponent } from './ng-particles.component';
-import type { ISourceOptions } from '@tsparticles/engine';
+import type { ISourceOptions, ClickMode } from '@tsparticles/engine';
 import { NgParticlesService } from './ng-particles.service';

 @NgModule({
@@ -11,4 +11,4 @@
 export class NgxParticlesModule {}

 export type IParticlesProps = ISourceOptions;
-export { NgParticlesService };
+export { NgParticlesService, ClickMode };

components/particles/projects/ng-particles/src/lib/ng-particles.module.ts

Update the original_code and new_code blocks as required, ensuring that the
--- 
+++ 
@@ -1,6 +1,6 @@
 import { NgModule } from '@angular/core';
 import { NgxParticlesComponent } from './ng-particles.component';
-import type { ISourceOptions } from '@tsparticles/engine';
+import type { ISourceOptions, ClickMode, HoverMode } from '@tsparticles/engine';
 import { NgParticlesService } from './ng-particles.service';

 @NgModule({
@@ -11,4 +11,4 @@
 export class NgxParticlesModule {}

 export type IParticlesProps = ISourceOptions;
-export { NgParticlesService };
+export { NgParticlesService, ClickMode, HoverMode };

components/particles/projects/ng-particles/src/lib/ng-particles.component.ts

Import the ClickMode and HoverMode types in particles-background.component.ts.
--- 
+++ 
@@ -13,5 +13,5 @@
 import { from, mergeMap, Subject, Subscription, takeUntil } from 'rxjs';
 import { tsParticles } from '@tsparticles/engine';
 import type { Container, Engine } from '@tsparticles/engine';
-import { IParticlesProps } from './ng-particles.module';
+import { IParticlesProps, ClickMode, HoverMode } from './ng-particles.module';
 import { NgParticlesService } from './ng-particles.service';

Feel free to add more details to the issue description so Sweep can better address it. Alternatively, reach out to Kevin or William for help at https://community.sweep.dev/.

Report a bug.


[!TIP] To recreate the pull request, edit the issue title or description.

This is an automated message generated by Sweep AI.