Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Release 1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazerbeak12345 committed Sep 10, 2019
1 parent c44c9fc commit f78b892
Show file tree
Hide file tree
Showing 16 changed files with 260 additions and 276 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Spud-Slices v1.2.2
# Spud-Slices v1.2.3

[![Coverage Status](https://coveralls.io/repos/github/spud-game-engine/spud-slices/badge.svg?branch=master)](https://coveralls.io/github/spud-game-engine/spud-slices?branch=master) [![Build Status](https://travis-ci.org/spud-game-engine/spud-slices.svg?branch=master)](https://travis-ci.org/spud-game-engine/spud-slices)

Expand Down
42 changes: 13 additions & 29 deletions dist/lib/spudslices.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
*/
var spudslices;
(function (spudslices) {
spudslices.version = "1.2.2";
spudslices.version = "1.2.3";
/**
* Find the distance of (x,y) from the origin (0,0)
*/
Expand Down Expand Up @@ -167,48 +167,32 @@ var spudslices;
}
s.segments = [];
for (iterator = 0; iterator < this.segments.length; iterator++) {
if (typeof this.segments[iterator] == "number")
s.segments[iterator] = this.segments[iterator];
else {
s.segments.push([]);
for (ii = 0; ii < this.segments[iterator].length; ii++) {
s.segments[iterator][ii] = this.segments[iterator][ii];
}
s.segments.push([]);
for (ii = 0; ii < this.segments[iterator].length; ii++) {
s.segments[iterator][ii] = this.segments[iterator][ii];
}
}
s.segmentColor = this.segmentColor + "";
s.segmentColors = [];
for (iterator = 0; iterator < this.segmentColors.length; iterator++) {
if (typeof this.segmentColors[iterator] == "number")
s.segmentColors[iterator] = this.segmentColors[iterator];
else {
s.segmentColors.push([]);
for (ii = 0; ii < this.segmentColors[iterator].length; ii++) {
s.segmentColors[iterator][ii] = this.segmentColors[iterator][ii];
}
s.segmentColors.push([]);
for (ii = 0; ii < this.segmentColors[iterator].length; ii++) {
s.segmentColors[iterator][ii] = this.segmentColors[iterator][ii];
}
}
s.faces = [];
for (iterator = 0; iterator < this.faces.length; iterator++) {
if (typeof this.faces[iterator] == "number")
s.faces[iterator] = this.faces[iterator];
else {
s.faces.push([]);
for (ii = 0; ii < this.faces[iterator].length; ii++) {
s.faces[iterator][ii] = this.faces[iterator][ii];
}
s.faces.push([]);
for (ii = 0; ii < this.faces[iterator].length; ii++) {
s.faces[iterator][ii] = this.faces[iterator][ii];
}
}
s.faceColor = this.faceColor + "";
s.faceColors = [];
for (iterator = 0; iterator < this.faceColors.length; iterator++) {
if (typeof this.faceColors[iterator] == "number")
s.faceColors[iterator] = this.faceColors[iterator];
else {
s.faceColors.push([]);
for (ii = 0; ii < this.faceColors[iterator].length; ii++) {
s.faceColors[iterator][ii] = this.faceColors[iterator][ii];
}
s.faceColors.push([]);
for (ii = 0; ii < this.faceColors[iterator].length; ii++) {
s.faceColors[iterator][ii] = this.faceColors[iterator][ii];
}
}
return s;
Expand Down
52 changes: 26 additions & 26 deletions docs/classes/_spudslices_.spudslices.circle.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L403">spudslices.ts:403</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L391">spudslices.ts:391</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -195,7 +195,7 @@ <h3>category</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#category">category</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L72">spudslices.ts:72</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L72">spudslices.ts:72</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -212,7 +212,7 @@ <h3>dimensions</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#dimensions">dimensions</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L79">spudslices.ts:79</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L79">spudslices.ts:79</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -230,7 +230,7 @@ <h3>face<wbr>Color</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#facecolor">faceColor</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L136">spudslices.ts:136</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L136">spudslices.ts:136</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -247,7 +247,7 @@ <h3>face<wbr>Colors</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#facecolors">faceColors</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L141">spudslices.ts:141</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L141">spudslices.ts:141</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -264,7 +264,7 @@ <h3>faces</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#faces">faces</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L131">spudslices.ts:131</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L131">spudslices.ts:131</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -281,7 +281,7 @@ <h3>point<wbr>Color</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#pointcolor">pointColor</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L95">spudslices.ts:95</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L95">spudslices.ts:95</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -298,7 +298,7 @@ <h3>point<wbr>Colors</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#pointcolors">pointColors</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L100">spudslices.ts:100</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L100">spudslices.ts:100</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -315,7 +315,7 @@ <h3>point<wbr>Size</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#pointsize">pointSize</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L105">spudslices.ts:105</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L105">spudslices.ts:105</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -332,7 +332,7 @@ <h3>points</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#points">points</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L90">spudslices.ts:90</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L90">spudslices.ts:90</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -356,7 +356,7 @@ <h3>segment<wbr>Color</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#segmentcolor">segmentColor</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L116">spudslices.ts:116</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L116">spudslices.ts:116</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -373,7 +373,7 @@ <h3>segment<wbr>Colors</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#segmentcolors">segmentColors</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L121">spudslices.ts:121</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L121">spudslices.ts:121</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -390,7 +390,7 @@ <h3>segment<wbr>Size</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#segmentsize">segmentSize</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L126">spudslices.ts:126</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L126">spudslices.ts:126</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -407,7 +407,7 @@ <h3>segments</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#segments">segments</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L111">spudslices.ts:111</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L111">spudslices.ts:111</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -432,7 +432,7 @@ <h3>collision<wbr>With</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#collisionwith">collisionWith</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L368">spudslices.ts:368</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L356">spudslices.ts:356</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -464,7 +464,7 @@ <h3>draw<wbr>Faces<wbr>On</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#drawfaceson">drawFacesOn</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L199">spudslices.ts:199</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L199">spudslices.ts:199</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -496,7 +496,7 @@ <h3>draw<wbr>On</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#drawon">drawOn</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L146">spudslices.ts:146</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L146">spudslices.ts:146</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -528,7 +528,7 @@ <h3>draw<wbr>Points<wbr>On</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#drawpointson">drawPointsOn</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L156">spudslices.ts:156</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L156">spudslices.ts:156</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -560,7 +560,7 @@ <h3>draw<wbr>Segments<wbr>On</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#drawsegmentson">drawSegmentsOn</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L174">spudslices.ts:174</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L174">spudslices.ts:174</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -592,7 +592,7 @@ <h3>find<wbr>Center</h3>
<aside class="tsd-sources">
<p>Overrides <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#findcenter">findCenter</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L419">spudslices.ts:419</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L407">spudslices.ts:407</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -615,7 +615,7 @@ <h3>make<wbr>Dup</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#makedup">makeDup</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L290">spudslices.ts:290</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L290">spudslices.ts:290</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -638,7 +638,7 @@ <h3>rot<wbr>Center</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#rotcenter">rotCenter</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L283">spudslices.ts:283</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L283">spudslices.ts:283</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -670,7 +670,7 @@ <h3>rotate</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#rotate">rotate</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L254">spudslices.ts:254</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L254">spudslices.ts:254</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -708,7 +708,7 @@ <h3>round<wbr>Points</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#roundpoints">roundPoints</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L267">spudslices.ts:267</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L267">spudslices.ts:267</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -740,7 +740,7 @@ <h3>scale</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#scale">scale</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L238">spudslices.ts:238</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L238">spudslices.ts:238</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -780,7 +780,7 @@ <h3>transpose</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="_spudslices_.spudslices.shape.html">Shape</a>.<a href="_spudslices_.spudslices.shape.html#transpose">transpose</a></p>
<ul>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/73bb56c/lib/spudslices.ts#L223">spudslices.ts:223</a></li>
<li>Defined in <a href="https://github.com/spud-game-engine/spud-slices/blob/c44c9fc/lib/spudslices.ts#L223">spudslices.ts:223</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit f78b892

Please sign in to comment.