1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-25 23:59:02 +02:00

axes fix + components section

This commit is contained in:
Pomax
2020-08-16 08:52:50 -07:00
parent 2bb9813af4
commit 18f062b352
39 changed files with 461 additions and 582 deletions

View File

@@ -452,9 +452,9 @@ class GraphicsAPI extends BaseAPI {
* api.drawAxes(pad, "t",0,1, "S","0%","100%");
*
*/
drawAxes(hlabel, hs, he, vlabel, vs, ve) {
const h = this.height;
const w = this.width;
drawAxes(hlabel, hs, he, vlabel, vs, ve, w, h) {
h = h || this.height;
w = w || this.width;
this.line(0, 0, w, 0);
this.line(0, 0, 0, h);