lecoffre-back/node_modules/tsparticles-shape-circle/tsparticles.shape.circle.min.js
2023-02-17 11:06:01 +01:00

2 lines
1.1 KiB
JavaScript

/*! For license information please see tsparticles.shape.circle.min.js.LICENSE.txt */
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var a in o)("object"==typeof exports?exports:e)[a]=o[a]}}(this,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var a in o)e.o(o,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:o[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{loadCircleShape:()=>a});class o{draw(e,t,o){t.circleRange||(t.circleRange={min:0,max:2*Math.PI});const a=t.circleRange;e.arc(0,0,o,a.min,a.max,!1)}getSidesCount(){return 12}particleInit(e,t){var o;const a=t.shapeData,n=null!==(o=null==a?void 0:a.angle)&&void 0!==o?o:{max:360,min:0};t.circleRange="object"!=typeof n?{min:0,max:n*Math.PI/180}:{min:n.min*Math.PI/180,max:n.max*Math.PI/180}}}async function a(e){await e.addShape("circle",new o)}return t})()));