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

@pixi/graphics-extras

Package Overview
Dependencies
Maintainers
2
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/graphics-extras - npm Package Compare versions

Comparing version 6.3.0 to 6.3.1

6

dist/browser/graphics-extras.js
/*!
* @pixi/graphics-extras - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
* @pixi/graphics-extras - v6.3.1
* Compiled Tue, 03 May 2022 13:21:19 UTC
*

@@ -443,3 +443,3 @@ * @pixi/graphics-extras is licensed under the MIT License.

}(PIXI, PIXI));
})(PIXI, PIXI);
//# sourceMappingURL=graphics-extras.js.map
/*!
* @pixi/graphics-extras - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
* @pixi/graphics-extras - v6.3.1
* Compiled Tue, 03 May 2022 13:21:19 UTC
*

@@ -8,3 +8,3 @@ * @pixi/graphics-extras is licensed under the MIT License.

*/
this.PIXI=this.PIXI||{},function(t,a){"use strict";var r=function(t,a){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var r in a)a.hasOwnProperty(r)&&(t[r]=a[r])})(t,a)};var o=function(t){function o(r,o,n,i,e,h){void 0===h&&(h=0);e=e||i/2;for(var s=-1*Math.PI/2+h,c=2*n,u=a.PI_2/c,l=[],M=0;M<c;M++){var P=M%2?e:i,f=M*u+s;l.push(r+P*Math.cos(f),o+P*Math.sin(f))}return t.call(this,l)||this}return function(t,a){function o(){this.constructor=t}r(t,a),t.prototype=null===a?Object.create(a):(o.prototype=a.prototype,new o)}(o,t),o}(a.Polygon);Object.defineProperties(t.Graphics.prototype,{drawTorus:{value:function(t,a,r,o,n,i){return void 0===n&&(n=0),void 0===i&&(i=2*Math.PI),Math.abs(i-n)>=2*Math.PI?this.drawCircle(t,a,o).beginHole().drawCircle(t,a,r).endHole():(this.finishPoly(),this.arc(t,a,r,i,n,!0).arc(t,a,o,n,i,!1).finishPoly(),this)}},drawChamferRect:{value:function(t,a,r,o,n){if(n<=0)return this.drawRect(t,a,r,o);for(var i=Math.min(n,Math.min(r,o)/2),e=t+r,h=a+o,s=[t+i,a,e-i,a,e,a+i,e,h-i,e-i,h,t+i,h,t,h-i,t,a+i],c=s.length-1;c>=2;c-=2)s[c]===s[c-2]&&s[c-1]===s[c-3]&&s.splice(c-1,2);return this.drawPolygon(s)}},drawFilletRect:{value:function(t,a,r,o,n){if(0===n)return this.drawRect(t,a,r,o);var i=Math.min(r,o)/2,e=Math.min(i,Math.max(-i,n)),h=t+r,s=a+o,c=e<0?-e:0,u=Math.abs(e);return this.moveTo(t,a+u).arcTo(t+c,a+c,t+u,a,u).lineTo(h-u,a).arcTo(h-c,a+c,h,a+u,u).lineTo(h,s-u).arcTo(h-c,s-c,t+r-u,s,u).lineTo(t+u,s).arcTo(t+c,s-c,t,s-u,u).closePath()}},drawRegularPolygon:{value:function(t,a,r,o,n){void 0===n&&(n=0),o=Math.max(0|o,3);for(var i=-1*Math.PI/2+n,e=2*Math.PI/o,h=[],s=0;s<o;s++){var c=s*e+i;h.push(t+r*Math.cos(c),a+r*Math.sin(c))}return this.drawPolygon(h)}},drawRoundedPolygon:{value:function(t,a,r,o,n,i){if(void 0===i&&(i=0),o=Math.max(0|o,3),n<=0)return this.drawRegularPolygon(t,a,r,o,i);var e=r*Math.sin(Math.PI/o)-.001;n=Math.min(n,e);for(var h=-1*Math.PI/2+i,s=2*Math.PI/o,c=(o-2)*Math.PI/o/2,u=0;u<o;u++){var l=u*s+h,M=t+r*Math.cos(l),P=a+r*Math.sin(l),f=l+Math.PI+c,v=l-Math.PI-c,d=M+n*Math.cos(f),I=P+n*Math.sin(f),p=M+n*Math.cos(v),w=P+n*Math.sin(v);0===u?this.moveTo(d,I):this.lineTo(d,I),this.quadraticCurveTo(M,P,p,w)}return this.closePath()}},drawStar:{value:function(t,a,r,n,i,e){return void 0===e&&(e=0),this.drawPolygon(new o(t,a,r,n,i,e))}}})}(PIXI,PIXI);
this.PIXI=this.PIXI||{},function(t,a){"use strict";var r=function(t,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var r in a)a.hasOwnProperty(r)&&(t[r]=a[r])},r(t,a)};var o=function(t){function o(r,o,n,i,e,h){void 0===h&&(h=0);e=e||i/2;for(var s=-1*Math.PI/2+h,c=2*n,u=a.PI_2/c,l=[],M=0;M<c;M++){var P=M%2?e:i,f=M*u+s;l.push(r+P*Math.cos(f),o+P*Math.sin(f))}return t.call(this,l)||this}return function(t,a){function o(){this.constructor=t}r(t,a),t.prototype=null===a?Object.create(a):(o.prototype=a.prototype,new o)}(o,t),o}(a.Polygon);Object.defineProperties(t.Graphics.prototype,{drawTorus:{value:function(t,a,r,o,n,i){return void 0===n&&(n=0),void 0===i&&(i=2*Math.PI),Math.abs(i-n)>=2*Math.PI?this.drawCircle(t,a,o).beginHole().drawCircle(t,a,r).endHole():(this.finishPoly(),this.arc(t,a,r,i,n,!0).arc(t,a,o,n,i,!1).finishPoly(),this)}},drawChamferRect:{value:function(t,a,r,o,n){if(n<=0)return this.drawRect(t,a,r,o);for(var i=Math.min(n,Math.min(r,o)/2),e=t+r,h=a+o,s=[t+i,a,e-i,a,e,a+i,e,h-i,e-i,h,t+i,h,t,h-i,t,a+i],c=s.length-1;c>=2;c-=2)s[c]===s[c-2]&&s[c-1]===s[c-3]&&s.splice(c-1,2);return this.drawPolygon(s)}},drawFilletRect:{value:function(t,a,r,o,n){if(0===n)return this.drawRect(t,a,r,o);var i=Math.min(r,o)/2,e=Math.min(i,Math.max(-i,n)),h=t+r,s=a+o,c=e<0?-e:0,u=Math.abs(e);return this.moveTo(t,a+u).arcTo(t+c,a+c,t+u,a,u).lineTo(h-u,a).arcTo(h-c,a+c,h,a+u,u).lineTo(h,s-u).arcTo(h-c,s-c,t+r-u,s,u).lineTo(t+u,s).arcTo(t+c,s-c,t,s-u,u).closePath()}},drawRegularPolygon:{value:function(t,a,r,o,n){void 0===n&&(n=0),o=Math.max(0|o,3);for(var i=-1*Math.PI/2+n,e=2*Math.PI/o,h=[],s=0;s<o;s++){var c=s*e+i;h.push(t+r*Math.cos(c),a+r*Math.sin(c))}return this.drawPolygon(h)}},drawRoundedPolygon:{value:function(t,a,r,o,n,i){if(void 0===i&&(i=0),o=Math.max(0|o,3),n<=0)return this.drawRegularPolygon(t,a,r,o,i);var e=r*Math.sin(Math.PI/o)-.001;n=Math.min(n,e);for(var h=-1*Math.PI/2+i,s=2*Math.PI/o,c=(o-2)*Math.PI/o/2,u=0;u<o;u++){var l=u*s+h,M=t+r*Math.cos(l),P=a+r*Math.sin(l),f=l+Math.PI+c,v=l-Math.PI-c,d=M+n*Math.cos(f),I=P+n*Math.sin(f),p=M+n*Math.cos(v),w=P+n*Math.sin(v);0===u?this.moveTo(d,I):this.lineTo(d,I),this.quadraticCurveTo(M,P,p,w)}return this.closePath()}},drawStar:{value:function(t,a,r,n,i,e){return void 0===e&&(e=0),this.drawPolygon(new o(t,a,r,n,i,e))}}})}(PIXI,PIXI);
//# sourceMappingURL=graphics-extras.min.js.map
/*!
* @pixi/graphics-extras - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
* @pixi/graphics-extras - v6.3.1
* Compiled Tue, 03 May 2022 13:21:19 UTC
*

@@ -5,0 +5,0 @@ * @pixi/graphics-extras is licensed under the MIT License.

/*!
* @pixi/graphics-extras - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
* @pixi/graphics-extras - v6.3.1
* Compiled Tue, 03 May 2022 13:21:19 UTC
*

@@ -8,3 +8,3 @@ * @pixi/graphics-extras is licensed under the MIT License.

*/
"use strict";var graphics=require("@pixi/graphics"),math=require("@pixi/math");function drawTorus(t,a,r,o,e,n){return void 0===e&&(e=0),void 0===n&&(n=2*Math.PI),Math.abs(n-e)>=2*Math.PI?this.drawCircle(t,a,o).beginHole().drawCircle(t,a,r).endHole():(this.finishPoly(),this.arc(t,a,r,n,e,!0).arc(t,a,o,e,n,!1).finishPoly(),this)}function drawChamferRect(t,a,r,o,e){if(e<=0)return this.drawRect(t,a,r,o);for(var n=Math.min(e,Math.min(r,o)/2),i=t+r,h=a+o,s=[t+n,a,i-n,a,i,a+n,i,h-n,i-n,h,t+n,h,t,h-n,t,a+n],c=s.length-1;c>=2;c-=2)s[c]===s[c-2]&&s[c-1]===s[c-3]&&s.splice(c-1,2);return this.drawPolygon(s)}function drawFilletRect(t,a,r,o,e){if(0===e)return this.drawRect(t,a,r,o);var n=Math.min(r,o)/2,i=Math.min(n,Math.max(-n,e)),h=t+r,s=a+o,c=i<0?-i:0,u=Math.abs(i);return this.moveTo(t,a+u).arcTo(t+c,a+c,t+u,a,u).lineTo(h-u,a).arcTo(h-c,a+c,h,a+u,u).lineTo(h,s-u).arcTo(h-c,s-c,t+r-u,s,u).lineTo(t+u,s).arcTo(t+c,s-c,t,s-u,u).closePath()}function drawRegularPolygon(t,a,r,o,e){void 0===e&&(e=0),o=Math.max(0|o,3);for(var n=-1*Math.PI/2+e,i=2*Math.PI/o,h=[],s=0;s<o;s++){var c=s*i+n;h.push(t+r*Math.cos(c),a+r*Math.sin(c))}return this.drawPolygon(h)}function drawRoundedPolygon(t,a,r,o,e,n){if(void 0===n&&(n=0),o=Math.max(0|o,3),e<=0)return this.drawRegularPolygon(t,a,r,o,n);var i=r*Math.sin(Math.PI/o)-.001;e=Math.min(e,i);for(var h=-1*Math.PI/2+n,s=2*Math.PI/o,c=(o-2)*Math.PI/o/2,u=0;u<o;u++){var d=u*s+h,l=t+r*Math.cos(d),M=a+r*Math.sin(d),P=d+Math.PI+c,f=d-Math.PI-c,w=l+e*Math.cos(P),v=M+e*Math.sin(P),p=l+e*Math.cos(f),g=M+e*Math.sin(f);0===u?this.moveTo(w,v):this.lineTo(w,v),this.quadraticCurveTo(l,M,p,g)}return this.closePath()}var extendStatics=function(t,a){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var r in a)a.hasOwnProperty(r)&&(t[r]=a[r])})(t,a)};function __extends(t,a){function r(){this.constructor=t}extendStatics(t,a),t.prototype=null===a?Object.create(a):(r.prototype=a.prototype,new r)}var Star=function(t){function a(a,r,o,e,n,i){void 0===i&&(i=0);n=n||e/2;for(var h=-1*Math.PI/2+i,s=2*o,c=math.PI_2/s,u=[],d=0;d<s;d++){var l=d%2?n:e,M=d*c+h;u.push(a+l*Math.cos(M),r+l*Math.sin(M))}return t.call(this,u)||this}return __extends(a,t),a}(math.Polygon);function drawStar(t,a,r,o,e,n){return void 0===n&&(n=0),this.drawPolygon(new Star(t,a,r,o,e,n))}Object.defineProperties(graphics.Graphics.prototype,{drawTorus:{value:drawTorus},drawChamferRect:{value:drawChamferRect},drawFilletRect:{value:drawFilletRect},drawRegularPolygon:{value:drawRegularPolygon},drawRoundedPolygon:{value:drawRoundedPolygon},drawStar:{value:drawStar}});
"use strict";var t=require("@pixi/graphics"),r=require("@pixi/math");var a=function(t,r){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var a in r)r.hasOwnProperty(a)&&(t[a]=r[a])},a(t,r)};var o=function(t){function o(a,o,i,n,e,h){void 0===h&&(h=0);e=e||n/2;for(var s=-1*Math.PI/2+h,c=2*i,u=r.PI_2/c,l=[],M=0;M<c;M++){var v=M%2?e:n,f=M*u+s;l.push(a+v*Math.cos(f),o+v*Math.sin(f))}return t.call(this,l)||this}return function(t,r){function o(){this.constructor=t}a(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}(o,t),o}(r.Polygon);Object.defineProperties(t.Graphics.prototype,{drawTorus:{value:function(t,r,a,o,i,n){return void 0===i&&(i=0),void 0===n&&(n=2*Math.PI),Math.abs(n-i)>=2*Math.PI?this.drawCircle(t,r,o).beginHole().drawCircle(t,r,a).endHole():(this.finishPoly(),this.arc(t,r,a,n,i,!0).arc(t,r,o,i,n,!1).finishPoly(),this)}},drawChamferRect:{value:function(t,r,a,o,i){if(i<=0)return this.drawRect(t,r,a,o);for(var n=Math.min(i,Math.min(a,o)/2),e=t+a,h=r+o,s=[t+n,r,e-n,r,e,r+n,e,h-n,e-n,h,t+n,h,t,h-n,t,r+n],c=s.length-1;c>=2;c-=2)s[c]===s[c-2]&&s[c-1]===s[c-3]&&s.splice(c-1,2);return this.drawPolygon(s)}},drawFilletRect:{value:function(t,r,a,o,i){if(0===i)return this.drawRect(t,r,a,o);var n=Math.min(a,o)/2,e=Math.min(n,Math.max(-n,i)),h=t+a,s=r+o,c=e<0?-e:0,u=Math.abs(e);return this.moveTo(t,r+u).arcTo(t+c,r+c,t+u,r,u).lineTo(h-u,r).arcTo(h-c,r+c,h,r+u,u).lineTo(h,s-u).arcTo(h-c,s-c,t+a-u,s,u).lineTo(t+u,s).arcTo(t+c,s-c,t,s-u,u).closePath()}},drawRegularPolygon:{value:function(t,r,a,o,i){void 0===i&&(i=0),o=Math.max(0|o,3);for(var n=-1*Math.PI/2+i,e=2*Math.PI/o,h=[],s=0;s<o;s++){var c=s*e+n;h.push(t+a*Math.cos(c),r+a*Math.sin(c))}return this.drawPolygon(h)}},drawRoundedPolygon:{value:function(t,r,a,o,i,n){if(void 0===n&&(n=0),o=Math.max(0|o,3),i<=0)return this.drawRegularPolygon(t,r,a,o,n);var e=a*Math.sin(Math.PI/o)-.001;i=Math.min(i,e);for(var h=-1*Math.PI/2+n,s=2*Math.PI/o,c=(o-2)*Math.PI/o/2,u=0;u<o;u++){var l=u*s+h,M=t+a*Math.cos(l),v=r+a*Math.sin(l),f=l+Math.PI+c,P=l-Math.PI-c,d=M+i*Math.cos(f),p=v+i*Math.sin(f),w=M+i*Math.cos(P),y=v+i*Math.sin(P);0===u?this.moveTo(d,p):this.lineTo(d,p),this.quadraticCurveTo(M,v,w,y)}return this.closePath()}},drawStar:{value:function(t,r,a,i,n,e){return void 0===e&&(e=0),this.drawPolygon(new o(t,r,a,i,n,e))}}});
//# sourceMappingURL=graphics-extras.min.js.map
/*!
* @pixi/graphics-extras - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
* @pixi/graphics-extras - v6.3.1
* Compiled Tue, 03 May 2022 13:21:19 UTC
*

@@ -5,0 +5,0 @@ * @pixi/graphics-extras is licensed under the MIT License.

/*!
* @pixi/graphics-extras - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
* @pixi/graphics-extras - v6.3.1
* Compiled Tue, 03 May 2022 13:21:19 UTC
*

@@ -8,3 +8,3 @@ * @pixi/graphics-extras is licensed under the MIT License.

*/
import{Graphics as t}from"@pixi/graphics";import{Polygon as r,PI_2 as a}from"@pixi/math";var o=function(t,r){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var a in r)r.hasOwnProperty(a)&&(t[a]=r[a])})(t,r)};var i=function(t){function r(r,o,i,n,e,h){void 0===h&&(h=0);e=e||n/2;for(var s=-1*Math.PI/2+h,c=2*i,u=a/c,l=[],M=0;M<c;M++){var f=M%2?e:n,v=M*u+s;l.push(r+f*Math.cos(v),o+f*Math.sin(v))}return t.call(this,l)||this}return function(t,r){function a(){this.constructor=t}o(t,r),t.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}(r,t),r}(r);Object.defineProperties(t.prototype,{drawTorus:{value:function(t,r,a,o,i,n){return void 0===i&&(i=0),void 0===n&&(n=2*Math.PI),Math.abs(n-i)>=2*Math.PI?this.drawCircle(t,r,o).beginHole().drawCircle(t,r,a).endHole():(this.finishPoly(),this.arc(t,r,a,n,i,!0).arc(t,r,o,i,n,!1).finishPoly(),this)}},drawChamferRect:{value:function(t,r,a,o,i){if(i<=0)return this.drawRect(t,r,a,o);for(var n=Math.min(i,Math.min(a,o)/2),e=t+a,h=r+o,s=[t+n,r,e-n,r,e,r+n,e,h-n,e-n,h,t+n,h,t,h-n,t,r+n],c=s.length-1;c>=2;c-=2)s[c]===s[c-2]&&s[c-1]===s[c-3]&&s.splice(c-1,2);return this.drawPolygon(s)}},drawFilletRect:{value:function(t,r,a,o,i){if(0===i)return this.drawRect(t,r,a,o);var n=Math.min(a,o)/2,e=Math.min(n,Math.max(-n,i)),h=t+a,s=r+o,c=e<0?-e:0,u=Math.abs(e);return this.moveTo(t,r+u).arcTo(t+c,r+c,t+u,r,u).lineTo(h-u,r).arcTo(h-c,r+c,h,r+u,u).lineTo(h,s-u).arcTo(h-c,s-c,t+a-u,s,u).lineTo(t+u,s).arcTo(t+c,s-c,t,s-u,u).closePath()}},drawRegularPolygon:{value:function(t,r,a,o,i){void 0===i&&(i=0),o=Math.max(0|o,3);for(var n=-1*Math.PI/2+i,e=2*Math.PI/o,h=[],s=0;s<o;s++){var c=s*e+n;h.push(t+a*Math.cos(c),r+a*Math.sin(c))}return this.drawPolygon(h)}},drawRoundedPolygon:{value:function(t,r,a,o,i,n){if(void 0===n&&(n=0),o=Math.max(0|o,3),i<=0)return this.drawRegularPolygon(t,r,a,o,n);var e=a*Math.sin(Math.PI/o)-.001;i=Math.min(i,e);for(var h=-1*Math.PI/2+n,s=2*Math.PI/o,c=(o-2)*Math.PI/o/2,u=0;u<o;u++){var l=u*s+h,M=t+a*Math.cos(l),f=r+a*Math.sin(l),v=l+Math.PI+c,d=l-Math.PI-c,P=M+i*Math.cos(v),p=f+i*Math.sin(v),w=M+i*Math.cos(d),m=f+i*Math.sin(d);0===u?this.moveTo(P,p):this.lineTo(P,p),this.quadraticCurveTo(M,f,w,m)}return this.closePath()}},drawStar:{value:function(t,r,a,o,n,e){return void 0===e&&(e=0),this.drawPolygon(new i(t,r,a,o,n,e))}}});
import{Graphics as t}from"@pixi/graphics";import{Polygon as r,PI_2 as a}from"@pixi/math";var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var a in r)r.hasOwnProperty(a)&&(t[a]=r[a])},o(t,r)};var i=function(t){function r(r,o,i,n,e,h){void 0===h&&(h=0);e=e||n/2;for(var s=-1*Math.PI/2+h,c=2*i,u=a/c,l=[],M=0;M<c;M++){var f=M%2?e:n,v=M*u+s;l.push(r+f*Math.cos(v),o+f*Math.sin(v))}return t.call(this,l)||this}return function(t,r){function a(){this.constructor=t}o(t,r),t.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}(r,t),r}(r);Object.defineProperties(t.prototype,{drawTorus:{value:function(t,r,a,o,i,n){return void 0===i&&(i=0),void 0===n&&(n=2*Math.PI),Math.abs(n-i)>=2*Math.PI?this.drawCircle(t,r,o).beginHole().drawCircle(t,r,a).endHole():(this.finishPoly(),this.arc(t,r,a,n,i,!0).arc(t,r,o,i,n,!1).finishPoly(),this)}},drawChamferRect:{value:function(t,r,a,o,i){if(i<=0)return this.drawRect(t,r,a,o);for(var n=Math.min(i,Math.min(a,o)/2),e=t+a,h=r+o,s=[t+n,r,e-n,r,e,r+n,e,h-n,e-n,h,t+n,h,t,h-n,t,r+n],c=s.length-1;c>=2;c-=2)s[c]===s[c-2]&&s[c-1]===s[c-3]&&s.splice(c-1,2);return this.drawPolygon(s)}},drawFilletRect:{value:function(t,r,a,o,i){if(0===i)return this.drawRect(t,r,a,o);var n=Math.min(a,o)/2,e=Math.min(n,Math.max(-n,i)),h=t+a,s=r+o,c=e<0?-e:0,u=Math.abs(e);return this.moveTo(t,r+u).arcTo(t+c,r+c,t+u,r,u).lineTo(h-u,r).arcTo(h-c,r+c,h,r+u,u).lineTo(h,s-u).arcTo(h-c,s-c,t+a-u,s,u).lineTo(t+u,s).arcTo(t+c,s-c,t,s-u,u).closePath()}},drawRegularPolygon:{value:function(t,r,a,o,i){void 0===i&&(i=0),o=Math.max(0|o,3);for(var n=-1*Math.PI/2+i,e=2*Math.PI/o,h=[],s=0;s<o;s++){var c=s*e+n;h.push(t+a*Math.cos(c),r+a*Math.sin(c))}return this.drawPolygon(h)}},drawRoundedPolygon:{value:function(t,r,a,o,i,n){if(void 0===n&&(n=0),o=Math.max(0|o,3),i<=0)return this.drawRegularPolygon(t,r,a,o,n);var e=a*Math.sin(Math.PI/o)-.001;i=Math.min(i,e);for(var h=-1*Math.PI/2+n,s=2*Math.PI/o,c=(o-2)*Math.PI/o/2,u=0;u<o;u++){var l=u*s+h,M=t+a*Math.cos(l),f=r+a*Math.sin(l),v=l+Math.PI+c,d=l-Math.PI-c,P=M+i*Math.cos(v),p=f+i*Math.sin(v),w=M+i*Math.cos(d),m=f+i*Math.sin(d);0===u?this.moveTo(P,p):this.lineTo(P,p),this.quadraticCurveTo(M,f,w,m)}return this.closePath()}},drawStar:{value:function(t,r,a,o,n,e){return void 0===e&&(e=0),this.drawPolygon(new i(t,r,a,o,n,e))}}});
//# sourceMappingURL=graphics-extras.min.js.map
{
"name": "@pixi/graphics-extras",
"version": "6.3.0",
"version": "6.3.1",
"main": "dist/cjs/graphics-extras.js",

@@ -26,6 +26,6 @@ "module": "dist/esm/graphics-extras.js",

"peerDependencies": {
"@pixi/graphics": "6.3.0",
"@pixi/math": "6.3.0"
"@pixi/graphics": "6.3.1",
"@pixi/math": "6.3.1"
},
"gitHead": "dc311cdd7a28e6817556cdc674fd15ef71069467"
"gitHead": "a520915d81f307c40fcbad5d877b0f2de465c4bf"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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