density should be a parsed as a float

pull/13/head
Anthony Catel 2022-03-27 16:23:17 +02:00
rodzic e13c88c8c5
commit c4fcb487cd
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -73,7 +73,7 @@ export default {
}, },
densityUpdate(val) { densityUpdate(val) {
this.density = val; this.density = Math.round(val * 100) / 100;
}, },
formatArea(val) { formatArea(val) {

Wyświetl plik

@ -194,7 +194,7 @@
this.surfaceUpdated(); this.surfaceUpdated();
} }
this.$emit('densityChange', parseInt(meta[0])); this.$emit('densityChange', parseFloat(meta[0]));
}, },
loadLegacyHash(hash) { loadLegacyHash(hash) {