Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
dqnykamp committed Jul 9, 2024
1 parent 50ebfd6 commit 711724f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export const PointInGraph: BasicComponent<PointData> = ({ node }) => {
const board = React.useContext(GraphContext);
const pointRef = React.useRef<JSG.Point | null>(null);

let x = JSON.parse(
const x = JSON.parse(
node.data.props.x.math_object,
serializedComponentsReviver,
).evaluate_to_constant();
let y = JSON.parse(
const y = JSON.parse(
node.data.props.y.math_object,
serializedComponentsReviver,
).evaluate_to_constant();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub const fn prop_profile_to_type(profile: PropProfile) -> PropValueType {
PropProfile::ListCodeNumber => PropValueType::String,
PropProfile::Renderable => PropValueType::ComponentRef,
PropProfile::RenderedChildren => PropValueType::AnnotatedContentRefs,
PropProfile::SplitSymbols => super::PropValueDiscriminants::Boolean,
PropProfile::SplitSymbols => super::PropValueType::Boolean,
PropProfile::_Ref => PropValueType::ComponentRef,
PropProfile::XrefLabel => PropValueType::XrefLabel,
PropProfile::XrefDisplayContent => PropValueType::AnnotatedContentRefs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ impl serde::Serialize for MathExpr {
where
S: serde::Serializer,
{
// Serialize as a struct named `MathExpr` with `1` field: `math_object`
let mut m = serializer.serialize_struct("MathExpr", 1)?;
m.serialize_field("math_object", &self.math_object.0)?;
m.end()
Expand Down

0 comments on commit 711724f

Please sign in to comment.