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

@tsparticles/shape-star

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsparticles/shape-star - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

3

cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadStarShape = void 0;
exports.loadStarShape = loadStarShape;
const StarDrawer_js_1 = require("./StarDrawer.js");

@@ -8,2 +8,1 @@ async function loadStarShape(engine, refresh = true) {

}
exports.loadStarShape = loadStarShape;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.drawStar = void 0;
exports.drawStar = drawStar;
const defaultInset = 2, origin = { x: 0, y: 0 };

@@ -15,2 +15,1 @@ function drawStar(data) {

}
exports.drawStar = drawStar;
{
"name": "@tsparticles/shape-star",
"version": "3.4.0",
"version": "3.5.0",
"description": "tsParticles star shape",

@@ -62,3 +62,3 @@ "homepage": "https://particles.js.org",

"dependencies": {
"@tsparticles/engine": "^3.4.0"
"@tsparticles/engine": "^3.5.0"
},

@@ -65,0 +65,0 @@ "publishConfig": {

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.4.0
* v3.5.0
*/

@@ -10,0 +10,0 @@ /*

/*! For license information please see tsparticles.shape.star.min.js.LICENSE.txt */
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine"],t);else{var o="object"==typeof exports?t(require("@tsparticles/engine")):t(e.window);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(this,(e=>(()=>{var t={303:t=>{t.exports=e}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{loadStarShape:()=>s});var e=r(303);const t=0,o=0;class a{constructor(){this.validTypes=["star"]}draw(e){!function(e){const{context:r,particle:n,radius:a}=e,s=n.sides,i=n.starInset??2;r.moveTo(t,o-a);for(let e=0;e<s;e++)r.rotate(Math.PI/s),r.lineTo(t,o-a*i),r.rotate(Math.PI/s),r.lineTo(t,o-a)}(e)}getSidesCount(t){const o=t.shapeData;return Math.round((0,e.getRangeValue)(o?.sides??5))}particleInit(t,o){const r=o.shapeData;o.starInset=(0,e.getRangeValue)(r?.inset??2)}}async function s(e,t=!0){await e.addShape(new a,t)}})(),n})()));
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine"],t);else{var o="object"==typeof exports?t(require("@tsparticles/engine")):t(e.window);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(this,(e=>(()=>{var t={303:t=>{t.exports=e}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{loadStarShape:()=>c});var a=r(303);const s=0,i=0;class p{constructor(){this.validTypes=["star"]}draw(e){!function(e){const{context:t,particle:o,radius:r}=e,n=o.sides,a=o.starInset??2;t.moveTo(s,i-r);for(let e=0;e<n;e++)t.rotate(Math.PI/n),t.lineTo(s,i-r*a),t.rotate(Math.PI/n),t.lineTo(s,i-r)}(e)}getSidesCount(e){const t=e.shapeData;return Math.round((0,a.getRangeValue)(t?.sides??5))}particleInit(e,t){const o=t.shapeData;t.starInset=(0,a.getRangeValue)(o?.inset??2)}}async function c(e,t=!0){await e.addShape(new p,t)}return n})()));

@@ -1,1 +0,1 @@

/*! tsParticles Star Shape v3.4.0 by Matteo Bruni */
/*! tsParticles Star Shape v3.5.0 by Matteo Bruni */

@@ -12,3 +12,3 @@ (function (factory) {

Object.defineProperty(exports, "__esModule", { value: true });
exports.loadStarShape = void 0;
exports.loadStarShape = loadStarShape;
const StarDrawer_js_1 = require("./StarDrawer.js");

@@ -18,3 +18,2 @@ async function loadStarShape(engine, refresh = true) {

}
exports.loadStarShape = loadStarShape;
});

@@ -12,3 +12,3 @@ (function (factory) {

Object.defineProperty(exports, "__esModule", { value: true });
exports.drawStar = void 0;
exports.drawStar = drawStar;
const defaultInset = 2, origin = { x: 0, y: 0 };

@@ -25,3 +25,2 @@ function drawStar(data) {

}
exports.drawStar = drawStar;
});

Sorry, the diff of this file is not supported yet

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