Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: animation loop count for opacity and size
- Loading branch information
1 parent
a5d72b6
commit d38a0a3
Showing
7 changed files
with
41 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface IParticleLoops { | ||
size: number; | ||
opacity: number; | ||
} |
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
8 changes: 3 additions & 5 deletions
8
core/main/src/Options/Interfaces/Particles/Opacity/IOpacityAnimation.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 |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import { DestroyType, StartValueType } from "../../../../Enums/Types"; | ||
import type { DestroyType, StartValueType } from "../../../../Enums/Types"; | ||
import type { IAnimation } from "../../IAnimation"; | ||
|
||
/** | ||
* @category Options | ||
*/ | ||
export interface IOpacityAnimation { | ||
export interface IOpacityAnimation extends IAnimation { | ||
/** | ||
* @deprecated use the new minimumValue instead | ||
*/ | ||
opacity_min: number; | ||
|
||
destroy: DestroyType | keyof typeof DestroyType; | ||
enable: boolean; | ||
minimumValue: number; | ||
speed: number; | ||
sync: boolean; | ||
startValue: StartValueType | keyof typeof StartValueType; | ||
} |
6 changes: 2 additions & 4 deletions
6
core/main/src/Options/Interfaces/Particles/Size/ISizeAnimation.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 |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import type { DestroyType, StartValueType } from "../../../../Enums"; | ||
import type { IAnimation } from "../../IAnimation"; | ||
|
||
/** | ||
* @category Options | ||
*/ | ||
export interface ISizeAnimation { | ||
export interface ISizeAnimation extends IAnimation { | ||
/** | ||
* @deprecated use the new minimumValue instead | ||
*/ | ||
size_min: number; | ||
|
||
destroy: DestroyType | keyof typeof DestroyType; | ||
enable: boolean; | ||
minimumValue: number; | ||
speed: number; | ||
sync: boolean; | ||
startValue: StartValueType | keyof typeof StartValueType; | ||
} |