@tsparticles/shape-star
Advanced tools
Comparing version 3.7.0 to 3.7.1
import { assertValidVersion } from "@tsparticles/engine"; | ||
import { StarDrawer } from "./StarDrawer.js"; | ||
export async function loadStarShape(engine, refresh = true) { | ||
assertValidVersion(engine, "3.7.0"); | ||
assertValidVersion(engine, "3.7.1"); | ||
await engine.addShape(new StarDrawer(), refresh); | ||
} |
@@ -7,4 +7,4 @@ "use strict"; | ||
async function loadStarShape(engine, refresh = true) { | ||
(0, engine_1.assertValidVersion)(engine, "3.7.0"); | ||
(0, engine_1.assertValidVersion)(engine, "3.7.1"); | ||
await engine.addShape(new StarDrawer_js_1.StarDrawer(), refresh); | ||
} |
import { assertValidVersion } from "@tsparticles/engine"; | ||
import { StarDrawer } from "./StarDrawer.js"; | ||
export async function loadStarShape(engine, refresh = true) { | ||
assertValidVersion(engine, "3.7.0"); | ||
assertValidVersion(engine, "3.7.1"); | ||
await engine.addShape(new StarDrawer(), refresh); | ||
} |
{ | ||
"name": "@tsparticles/shape-star", | ||
"version": "3.7.0", | ||
"version": "3.7.1", | ||
"description": "tsParticles star shape", | ||
@@ -62,3 +62,3 @@ "homepage": "https://particles.js.org", | ||
"dependencies": { | ||
"@tsparticles/engine": "3.7.0" | ||
"@tsparticles/engine": "3.7.1" | ||
}, | ||
@@ -65,0 +65,0 @@ "publishConfig": { |
@@ -7,3 +7,3 @@ /*! | ||
* How to use? : Check the GitHub README | ||
* v3.7.0 | ||
* v3.7.1 | ||
*/ | ||
@@ -58,3 +58,3 @@ /* | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadStarShape: () => (/* binding */ loadStarShape)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _StarDrawer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./StarDrawer.js */ \"./dist/browser/StarDrawer.js\");\n\n\nasync function loadStarShape(engine, refresh = true) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.assertValidVersion)(engine, \"3.7.0\");\n await engine.addShape(new _StarDrawer_js__WEBPACK_IMPORTED_MODULE_1__.StarDrawer(), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/shape-star/./dist/browser/index.js?"); | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadStarShape: () => (/* binding */ loadStarShape)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _StarDrawer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./StarDrawer.js */ \"./dist/browser/StarDrawer.js\");\n\n\nasync function loadStarShape(engine, refresh = true) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.assertValidVersion)(engine, \"3.7.1\");\n await engine.addShape(new _StarDrawer_js__WEBPACK_IMPORTED_MODULE_1__.StarDrawer(), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/shape-star/./dist/browser/index.js?"); | ||
@@ -61,0 +61,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={};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){(0,a.assertValidVersion)(e,"3.7.0"),await e.addShape(new p,t)}return 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){(0,a.assertValidVersion)(e,"3.7.1"),await e.addShape(new p,t)}return n})())); |
@@ -1,1 +0,1 @@ | ||
/*! tsParticles Star Shape v3.7.0 by Matteo Bruni */ | ||
/*! tsParticles Star Shape v3.7.1 by Matteo Bruni */ |
@@ -16,5 +16,5 @@ (function (factory) { | ||
async function loadStarShape(engine, refresh = true) { | ||
(0, engine_1.assertValidVersion)(engine, "3.7.0"); | ||
(0, engine_1.assertValidVersion)(engine, "3.7.1"); | ||
await engine.addShape(new StarDrawer_js_1.StarDrawer(), refresh); | ||
} | ||
}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
+ Added@tsparticles/engine@3.7.1(transitive)
- Removed@tsparticles/engine@3.7.0(transitive)
Updated@tsparticles/engine@3.7.1