commit 23f99c252a8013764f54a9ba20a64e35727a6cd6
parent 412fdeacb5a4a44cd208aea1b2d96d6ed5128ec6
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Mon, 19 Aug 2024 09:08:18 -0700
Add meter and centimeter symbols
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js
@@ -133,8 +133,8 @@ export class FloorplanEditor {
this.units = new Units()
this.units.add("inch", 96, { symbol: '"', system: "imperial" })
this.units.add("foot", 12, { base: "inch", symbol: "'" })
- this.units.add("centimeter", this.units.get("inch") / 2.54, { system: "metric" })
- this.units.add("meter", 100, { base: "centimeter" })
+ this.units.add("centimeter", this.units.get("inch") / 2.54, { symbol: "cm", system: "metric" })
+ this.units.add("meter", 100, { symbol: "m", base: "centimeter" })
if (!options.backend) {
options.backend = {}