From d290c7c3e1250c3173a386e3f22d8d0dfa176b43 Mon Sep 17 00:00:00 2001 From: German Molina Date: Wed, 17 Jul 2024 22:04:08 +1200 Subject: [PATCH] fixed tests? --- front/src/pages/atlas.astro | 560 ------------------ .../render/simple_types/boundary.ts | 20 +- src/components/render/simple_types/object.ts | 4 + .../render/simple_types/simple_model.ts | 14 +- src/components/render/simple_types/space.ts | 8 +- 5 files changed, 43 insertions(+), 563 deletions(-) delete mode 100644 front/src/pages/atlas.astro diff --git a/front/src/pages/atlas.astro b/front/src/pages/atlas.astro deleted file mode 100644 index f3992f2..0000000 --- a/front/src/pages/atlas.astro +++ /dev/null @@ -1,560 +0,0 @@ ---- -import MainLayout from "../layouts/MainLayout.astro"; -import colors from "../colors"; -const primaryOutlineLight = colors["primary_outline_light"]; -const primaryOutlineDark = colors["primary_outline_dark"]; ---- - - - - - - - - -
-

Small screens do not allow seeing the main diagram properly.

-

- - We strongly recommend viewing the Atlas of Comfort in - larger screens. - -

- -
-
- -
-
- -
-
-

This is the Atlas of Comfort

-
-
-
-
- - TOOLTIP! - -
-

BACK TO LAYERS

-

BACK

-
-
diff --git a/src/components/render/simple_types/boundary.ts b/src/components/render/simple_types/boundary.ts index 16242c6..7dd7bd5 100644 --- a/src/components/render/simple_types/boundary.ts +++ b/src/components/render/simple_types/boundary.ts @@ -31,6 +31,24 @@ interface BoundaryAmbientTemperature { temperature: Number } -type Boundary = BoundaryGround | BoundarySpace | BoundaryAmbientTemperature; +/** + * The surface does not transmit heat + + */ +interface BoundaryAdiabatic { + /** The discriminant used */ + type: "Adiabatic" +} + +/** + * The surface leads outdoors + + */ +interface BoundaryOutdoor { + /** The discriminant used */ + type: "Outdoor" +} + +type Boundary = BoundaryGround | BoundarySpace | BoundaryAmbientTemperature | BoundaryAdiabatic | BoundaryOutdoor; export type { Boundary as default }; \ No newline at end of file diff --git a/src/components/render/simple_types/object.ts b/src/components/render/simple_types/object.ts index 45a6dc4..133f179 100644 --- a/src/components/render/simple_types/object.ts +++ b/src/components/render/simple_types/object.ts @@ -10,6 +10,10 @@ type Point = { * An object */ type SimpleObject = { + /** + * The space in which the object is located + */ + space: string; /** * The name of the object */ diff --git a/src/components/render/simple_types/simple_model.ts b/src/components/render/simple_types/simple_model.ts index ffcf047..eb30ad4 100644 --- a/src/components/render/simple_types/simple_model.ts +++ b/src/components/render/simple_types/simple_model.ts @@ -4,6 +4,7 @@ import type HVAC from "./hvac" import type Luminaire from "./luminaire"; import type Space from "./space"; import type SimpleObject from "./object"; +import type { output } from "three/examples/jsm/nodes/Nodes.js"; /** * A description of a SimpleModel @@ -12,6 +13,17 @@ type SimpleModel = { /** The name of the model */ name?: string; + buildings: any[]; + + constructions: any[]; + + materials: any[]; + + outputs: any[]; + site_details: any; + solar_options: any; + substances: any[]; + /** The surfaces in the model*/ surfaces: Surface[]; @@ -32,7 +44,7 @@ type SimpleModel = { } -export interface DrawableModel { +export interface DrawableModel { surfaces: Surface[]; fenestrations: Fenestration[]; objects: SimpleObject[]; diff --git a/src/components/render/simple_types/space.ts b/src/components/render/simple_types/space.ts index 6ff8abd..f43bd2c 100644 --- a/src/components/render/simple_types/space.ts +++ b/src/components/render/simple_types/space.ts @@ -5,7 +5,9 @@ export type SpacePurpose = "DiningRoom" | "Kitchen" | "LivingRoom" | - "Unidentified"; + "Unidentified" | + string + ; type Space = { @@ -23,6 +25,10 @@ type Space = { purposes (e.g., a Living/Dining/Kithen space) */ purposes: SpacePurpose[] + + infiltration?: any + + building?: string; } export type { Space as default } \ No newline at end of file