litecanvas 0.55.0 → 0.55.1
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.
- package/package.json +1 -1
- package/types/index.d.ts +4 -4
- package/types/types.d.ts +2 -2
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -511,16 +511,16 @@ declare global {
|
|
|
511
511
|
* If the first argument is omitted, plays an default sound.
|
|
512
512
|
*
|
|
513
513
|
* @param {number|number[]} [zzfxParams] a ZzFX array of params
|
|
514
|
-
* @param {number} [pitchSlide] a value to increment/decrement the pitch
|
|
515
|
-
* @param {number} [volumeFactor] the volume factor
|
|
514
|
+
* @param {number} [pitchSlide=0] a value to increment/decrement the pitch
|
|
515
|
+
* @param {number} [volumeFactor=1] the volume factor
|
|
516
516
|
* @returns The sound that was played or `false`
|
|
517
517
|
*
|
|
518
518
|
* @see https://github.com/KilledByAPixel/ZzFX
|
|
519
519
|
*/
|
|
520
520
|
function sfx(
|
|
521
521
|
zzfxParams?: number[],
|
|
522
|
-
pitchSlide?: number
|
|
523
|
-
volumeFactor?: number
|
|
522
|
+
pitchSlide?: number,
|
|
523
|
+
volumeFactor?: number
|
|
524
524
|
): number[] | boolean
|
|
525
525
|
/**
|
|
526
526
|
* Set the ZzFX's global volume factor.
|
package/types/types.d.ts
CHANGED
|
@@ -502,8 +502,8 @@ type LitecanvasInstance = {
|
|
|
502
502
|
*/
|
|
503
503
|
sfx(
|
|
504
504
|
zzfxParams?: number[],
|
|
505
|
-
pitchSlide?: number
|
|
506
|
-
volumeFactor?: number
|
|
505
|
+
pitchSlide?: number,
|
|
506
|
+
volumeFactor?: number
|
|
507
507
|
): number[] | boolean
|
|
508
508
|
/**
|
|
509
509
|
* Set the ZzFX's global volume factor.
|