Skip to content

Commit

Permalink
Merge pull request #4858 from systeminit/victor/eng-2696-migrate-curr…
Browse files Browse the repository at this point in the history
…ent-diagram-to-view

Victor/eng 2696 migrate current diagram to view
  • Loading branch information
vbustamante authored Oct 23, 2024
2 parents a48c3af + 68caa95 commit 91a4a76
Show file tree
Hide file tree
Showing 58 changed files with 3,464 additions and 512 deletions.
11 changes: 8 additions & 3 deletions lib/dal-test/src/expected.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#![allow(clippy::expect_used)]

use crate::helpers::ChangeSetTestHelpers;
use dal::diagram::geometry::RawGeometry;
use dal::{
self,
component::ComponentGeometry,
prop::{Prop, PropPath},
property_editor::values::PropertyEditorValues,
schema::variant::authoring::VariantAuthoringClient,
Expand Down Expand Up @@ -380,8 +380,13 @@ impl ExpectComponent {
.expect("get component by id")
}

pub async fn geometry(self, ctx: &DalContext) -> ComponentGeometry {
self.component(ctx).await.geometry()
pub async fn geometry(self, ctx: &DalContext) -> RawGeometry {
self.component(ctx)
.await
.geometry(ctx)
.await
.expect("get geometry for component")
.raw()
}

pub async fn view(self, ctx: &DalContext) -> Option<serde_json::Value> {
Expand Down
Loading

0 comments on commit 91a4a76

Please sign in to comment.