Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Verbesserung für Graphen. #104

Merged
merged 1 commit into from
Dec 29, 2020
Merged

Conversation

TiborAdk
Copy link
Contributor

Die Graphen werden aktuell teilweise etwas unscharf Dargestellt.

Durch das setzen der eigenschaft respectScreenScale einse DrawContext auf True lässt sich dies in Teieln.

Dazu aus der Dokumentation aus Scriptable:

When respecting the screen scale is disabled, you may experience that your images looks blurry because essentially the size you have specified will be stretched when rendered on the screen.
Default is false.

Dadurch sehen die Graphen nicht nur an sich schärfer aus, sondern es ist auch möglich genauere Werte ohne runden zu verwenden.

--- Aktuell Änderung
Inzidnez graph_incidenc_old graph_incidenc_new
Fälle graph_cases_old graph_cases_new

…rateIcidenceGraph`.

Using `DrawContext.respectScreenScale`. Created image from `DrawContext` should be sharper then before.
This allows for removal of Math.round() around the height values, therefore allowing greater precision in the bar heights.
@rphl rphl merged commit 54fc442 into rphl:master Dec 29, 2020
@rphl
Copy link
Owner

rphl commented Dec 29, 2020

Sieht soweit gut. Danke für die Optimierung, habe es mal gemerged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants