Clean up PlotId

This commit is contained in:
Alexander Söderberg
2020-07-18 11:05:16 +02:00
parent d077fafd29
commit e80ade65c7
33 changed files with 378 additions and 392 deletions

View File

@ -34,20 +34,20 @@ if (PS.hasPlotArea("%s0")) {
var maxplot;
for (var i in plots) {
var plot = plots[i];
if (plot.x > max) {
max = plot.x;
if (plot.getX() > max) {
max = plot.getX();
maxplot = plot;
}
if (plot.y > max) {
max = plot.y;
if (plot.getY() > max) {
max = plot.getY();
maxplot = plot;
}
if (-plot.x > max) {
max = -plot.x;
if (-plot.getX() > max) {
max = -plot.getX();
maxplot = plot;
}
if (-plot.y > max) {
max = -plot.y;
if (-plot.getY() > max) {
max = -plot.getY();
maxplot = plot;
}
}