Open sandeepsaini309 opened 1 week ago
I'm sorry, but it looks like an error has occurred due to a code validation failure. The error message is /mnt/caches/repos/tsparticles/angular/13a43a8aec836b87092e683e7c767034e6767ed18cfa1a5f2539985d8ad63974/main/components/particles/projects/ng-particles/src/lib/ng-particles.component.ts does not exist.. Here were the changes I had planned:
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/.
[!TIP] To recreate the pull request, edit the issue title or description.
This is an automated message generated by Sweep AI.
Details
ClickMode and HoverMode has no exported members in this package