Skip to content

Commit 5f857ab

Browse files
committed
Changed 1.1.0 version file
1 parent f2df8aa commit 5f857ab

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

versions/1.1.0/pSEngine.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,23 @@ class pSDrawer {
206206
return this;
207207
}
208208

209+
line(x0, y0, x1, y1) {
210+
let v0 = this.plotter.computeForXY(x0, y0);
211+
let v1 = this.plotter.computeForXY(x1, y1);
212+
line(v0.x, v0.y, v1.x, v1.y);
213+
return this;
214+
}
215+
209216
ellipse(x, y, rx, ry) {
210217
let v = this.plotter.computeForXY(x, y);
211218
ellipse(v.x, v.y, rx, ry);
212219
return this;
213220
}
214221

222+
circle(x, y, r) {
223+
return this.ellipse(x, y, r, r);
224+
}
225+
215226

216227

217228

versions/1.1.0/pSEngine.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)