GCConfig conf = new GCConfig(gc);
GeneralGC tgc = new TranslatedGC(gc, getPosX(), getPosY(), submodelScale, true);
conf.reset(tgc);
- double visibleRegionFillRatio = Math.max(getWidth() / visibleRegion.width, getHeight() / visibleRegion.height);
+ double visibleRegionFillRatio = getWidth() * getHeight() / (visibleRegion.width * visibleRegion.height);
/**
* If this {@link SubmodelComponent} fills at least this amount of the visible region vertically or horizontally, the submodel
* starts to be visible.
case "net.mograsim.logic.model.linewidth.wire.multibit":
return 0.85;
case "net.mograsim.logic.model.submodel.zoomalpha0":
- return 0.8;
+ return 0.1;
case "net.mograsim.logic.model.submodel.zoomalpha1":
- return 0.9;
+ return 0.2;
default:
throw new IllegalArgumentException("Unknown double preference name: " + name);
}