Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: moved more code out from engine to specific plugins, added new …
…method to interactors
- Loading branch information
1 parent
cd23778
commit c3aab68
Showing
23 changed files
with
132 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...ions/Classes/Interactivity/Modes/Light.ts → ...ctions/light/src/Options/Classes/Light.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
.../Classes/Interactivity/Modes/LightArea.ts → ...ns/light/src/Options/Classes/LightArea.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
...sses/Interactivity/Modes/LightGradient.ts → ...ight/src/Options/Classes/LightGradient.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { Options, ParticlesOptions } from "tsparticles-engine"; | ||
import type { LightInteractivity } from "../../Types"; | ||
|
||
export type LightOptions = Options & { | ||
interactivity?: LightInteractivity; | ||
}; | ||
|
||
export type LightParticlesOptions = ParticlesOptions & { | ||
interactivity?: LightInteractivity; | ||
}; |
7 changes: 3 additions & 4 deletions
7
...lasses/Interactivity/Modes/LightShadow.ts → .../light/src/Options/Classes/LightShadow.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ces/Interactivity/Modes/ILightGradient.ts → .../src/Options/Interfaces/ILightGradient.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
interactions/light/src/Options/Interfaces/ILightOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { IOptions, IParticlesOptions } from "tsparticles-engine"; | ||
import type { LightInteractivity } from "../../Types"; | ||
|
||
export type ILightOptions = IOptions & { | ||
interactivity?: LightInteractivity; | ||
}; | ||
|
||
export type ILightParticlesOptions = IParticlesOptions & { | ||
interactivity?: LightInteractivity; | ||
}; |
2 changes: 1 addition & 1 deletion
2
...faces/Interactivity/Modes/ILightShadow.ts → ...ht/src/Options/Interfaces/ILightShadow.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
import type { Container, IRgb, Particle } from "tsparticles-engine"; | ||
import type { LightOptions, LightParticlesOptions } from "./Options/Classes/LightOptions"; | ||
import type { Light } from "./Options/Classes/Light"; | ||
|
||
export type LightInteractivity = { | ||
modes?: { | ||
light?: Light; | ||
}; | ||
}; | ||
|
||
export type LightContainer = Container & { | ||
actualOptions: LightOptions; | ||
canvas: { | ||
mouseLight?: { start?: IRgb; stop?: IRgb }; | ||
}; | ||
interactivity?: LightInteractivity; | ||
}; | ||
|
||
export type LightParticle = Particle & { | ||
interactivity?: LightInteractivity; | ||
lightShadow?: IRgb; | ||
options: LightParticlesOptions; | ||
}; |
Oops, something went wrong.