Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@exercism/active-background

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exercism/active-background - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

4

dist/ActiveBackground/Confetti.d.ts
import type { ActiveBackgroundPattern, PatternOptions } from '../ActiveBackground';
declare type ColorPair = [string, string];
export interface ConfettiOptions extends PatternOptions {

@@ -8,2 +9,3 @@ speed?: number;

confettiRibbonCount?: number;
colorPairs?: ColorPair[];
}

@@ -20,2 +22,3 @@ export declare class Confetti implements ActiveBackgroundPattern {

private readonly confettiRibbons;
private readonly colorPairs;
private animationFrameRequestId;

@@ -27,1 +30,2 @@ constructor(canvas: HTMLCanvasElement, options?: ConfettiOptions);

}
export {};

15

dist/ActiveBackground/Confetti.js

@@ -42,2 +42,3 @@ "use strict";

_options$duration,
_options$colorPairs,
_options$confettiPape,

@@ -59,2 +60,3 @@ _options$scaleConfett,

this.height = canvas.offsetHeight * this.ratio;
this.colorPairs = (_options$colorPairs = options === null || options === void 0 ? void 0 : options.colorPairs) !== null && _options$colorPairs !== void 0 ? _options$colorPairs : COLORS;
var confettiPaperCount = (_options$confettiPape = options === null || options === void 0 ? void 0 : options.confettiPaperCount) !== null && _options$confettiPape !== void 0 ? _options$confettiPape : DEFAULT_CONFETTI_PAPERS;

@@ -66,6 +68,7 @@

var getRandomColorPair = getRandomColors(this.colorPairs);
this.confettiPapers = _toConsumableArray(new Array(confettiPaperCount)).map(function () {
return new _ConfettiPaper.ConfettiPaper({
parent: _this,
fetchColors: getRandomColors
fetchColors: getRandomColorPair
});

@@ -77,3 +80,3 @@ });

parent: _this,
fetchColors: getRandomColors
fetchColors: getRandomColorPair
});

@@ -146,5 +149,7 @@ });

var colors = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : COLORS;
var randomIndex = Math.round(Math.random() * (colors.length - 1));
return colors[randomIndex];
return function () {
var randomIndex = Math.round(Math.random() * (colors.length - 1));
return colors[randomIndex];
};
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9BY3RpdmVCYWNrZ3JvdW5kL0NvbmZldHRpLnRzIl0sIm5hbWVzIjpbIlNQRUVEIiwiREVGQVVMVF9DT05GRVRUSV9QQVBFUlMiLCJERUZBVUxUX0NPTkZFVFRJX1JJQkJPTlMiLCJERUZBVUxUX1NDQUxFX0NPTkZFVFRJX0NPVU5UIiwiQ09MT1JTIiwiQ29uZmV0dGkiLCJjYW52YXMiLCJvcHRpb25zIiwiY29udGV4dCIsImdldENvbnRleHQiLCJzcGVlZCIsImR1cmF0aW9uIiwicmF0aW8iLCJ3aW5kb3ciLCJkZXZpY2VQaXhlbFJhdGlvIiwid2lkdGgiLCJvZmZzZXRXaWR0aCIsImhlaWdodCIsIm9mZnNldEhlaWdodCIsImNvbmZldHRpUGFwZXJDb3VudCIsInNjYWxlQ29uZmV0dGlDb3VudCIsIk1hdGgiLCJyb3VuZCIsImNvbmZldHRpUGFwZXJzIiwiQXJyYXkiLCJtYXAiLCJDb25mZXR0aVBhcGVyIiwicGFyZW50IiwiZmV0Y2hDb2xvcnMiLCJnZXRSYW5kb21Db2xvcnMiLCJjb25mZXR0aVJpYmJvbkNvdW50IiwiY29uZmV0dGlSaWJib25zIiwiQ29uZmV0dGlSaWJib24iLCJhbmltYXRpb25GcmFtZVJlcXVlc3RJZCIsInJlcXVlc3RBbmltYXRpb25GcmFtZSIsInJlbmRlciIsImJpbmQiLCJjYW5jZWxBbmltYXRpb25GcmFtZSIsImNsZWFyUmVjdCIsImNvbmZldHRpUGFwZXIiLCJ1cGRhdGUiLCJkcmF3IiwiY29uZmV0dGlSaWJib24iLCJjb2xvcnMiLCJyYW5kb21JbmRleCIsInJhbmRvbSIsImxlbmd0aCJdLCJtYXBwaW5ncyI6Ijs7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kID0gcmVxdWVzdEFuaW1hdGlvbkZyYW1lKHRoaXMucmVuZGVyLmJpbmQodGhpcykpXG4gIH1cbn1cblxuZnVuY3Rpb24gZ2V0UmFuZG9tQ29sb3JzKGNvbG9yczogQ29sb3JQYWlyW10gPSBDT0xPUlMpOiAoKSA9PiBDb2xvclBhaXIge1xuICByZXR1cm4gZnVuY3Rpb24gKCkge1xuICAgIGNvbnN0IHJhbmRvbUluZGV4ID0gTWF0aC5yb3VuZChNYXRoLnJhbmRvbSgpICogKGNvbG9ycy5sZW5ndGggLSAxKSlcbiAgICByZXR1cm4gY29sb3JzW3JhbmRvbUluZGV4XVxuICB9XG59XG4iXX0=
{
"name": "@exercism/active-background",
"version": "0.4.0",
"version": "0.5.0",
"description": "Give your elements an animated canvas background!",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc