polygon miter paths. bump rev 2.3.D6
This commit is contained in:
parent
a4b6713acc
commit
4c00a41a2a
8 changed files with 83 additions and 8 deletions
|
|
@ -6,7 +6,7 @@
|
|||
var AP = Array.prototype;
|
||||
|
||||
/** ******************************************************************
|
||||
* array prototype helpers
|
||||
* Array prototype helpers
|
||||
******************************************************************* */
|
||||
|
||||
if (!AP.flat) {
|
||||
|
|
@ -148,7 +148,7 @@
|
|||
};
|
||||
|
||||
/** ******************************************************************
|
||||
* string prototype helpers
|
||||
* String prototype helpers
|
||||
******************************************************************* */
|
||||
|
||||
String.prototype.reverse = function() {
|
||||
|
|
@ -167,4 +167,13 @@
|
|||
return Math.max(min,Math.min(max,val));
|
||||
};
|
||||
|
||||
/** ******************************************************************
|
||||
* Number static helpers
|
||||
******************************************************************* */
|
||||
|
||||
Number.prototype.round = function(digits) {
|
||||
const pow = Math.pow(10,digits || 3);
|
||||
return Math.round(this.valueOf() * pow) / pow;
|
||||
};
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Reference in a new issue