Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -377,6 +377,8 @@ with gr.Blocks(css=css) as demo:
|
|
377 |
pl_a[i] = x+\",\"+parseInt(lerp( yold, y, (i-xold)/(x-xold) ));
|
378 |
}
|
379 |
pl_a[x] = x+\",\"+y;
|
|
|
|
|
380 |
document.getElementById(\"pl\").setAttribute(\"points\", pl_a.join(\" \"));
|
381 |
}
|
382 |
}
|
@@ -393,6 +395,8 @@ with gr.Blocks(css=css) as demo:
|
|
393 |
}
|
394 |
this.onpointerleave = this.onpointerup;
|
395 |
}
|
|
|
|
|
396 |
this.title = xold+\",\"+yold;
|
397 |
}catch(e){alert(e);}
|
398 |
'>
|
|
|
377 |
pl_a[i] = x+\",\"+parseInt(lerp( yold, y, (i-xold)/(x-xold) ));
|
378 |
}
|
379 |
pl_a[x] = x+\",\"+y;
|
380 |
+
xold = x;
|
381 |
+
yold = y;
|
382 |
document.getElementById(\"pl\").setAttribute(\"points\", pl_a.join(\" \"));
|
383 |
}
|
384 |
}
|
|
|
395 |
}
|
396 |
this.onpointerleave = this.onpointerup;
|
397 |
}
|
398 |
+
xold = x;
|
399 |
+
yold = y;
|
400 |
this.title = xold+\",\"+yold;
|
401 |
}catch(e){alert(e);}
|
402 |
'>
|