forked from 1b-agent/opencadstudio-upstream
docs: reattach the Properties helper doc comments to their functions
Three doc paragraphs had stacked above one helper, so each described the function after the one it sits on. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
967d5ec9c2
commit
8fefff5d2b
1 file changed
+5
-5
@@ -3702,11 +3702,6 @@ fn set_row(sections: &mut [crate::scene::model::object::PropSection], field: &st
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Replace a row's value with an arbitrary control (editable field, dropdown,
|
|
||||||
/// colour picker …) rather than plain read-only text.
|
|
||||||
/// A dimensional constraint's Properties as the reference shows them: the
|
|
||||||
/// Constraint rows, then only the text rotation for a dynamic dimension
|
|
||||||
/// and the full dimension sections for an annotational one.
|
|
||||||
/// A Yes/No list row, as the reference shows on/off object properties.
|
/// A Yes/No list row, as the reference shows on/off object properties.
|
||||||
fn yes_no_choice(flag: bool) -> crate::scene::model::object::PropValue {
|
fn yes_no_choice(flag: bool) -> crate::scene::model::object::PropValue {
|
||||||
crate::scene::model::object::PropValue::Choice {
|
crate::scene::model::object::PropValue::Choice {
|
||||||
@@ -3715,6 +3710,9 @@ fn yes_no_choice(flag: bool) -> crate::scene::model::object::PropValue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// A dimensional constraint's Properties as the reference shows them: the
|
||||||
|
/// Constraint rows, then only the text rotation for a dynamic dimension
|
||||||
|
/// and the full dimension sections for an annotational one.
|
||||||
fn dynamic_dimension_sections(
|
fn dynamic_dimension_sections(
|
||||||
scene: &crate::scene::Scene,
|
scene: &crate::scene::Scene,
|
||||||
handle: Handle,
|
handle: Handle,
|
||||||
@@ -3850,6 +3848,8 @@ fn dynamic_dimension_sections(
|
|||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Replace a row's value with an arbitrary control (editable field, dropdown,
|
||||||
|
/// colour picker …) rather than plain read-only text.
|
||||||
fn set_row_value(
|
fn set_row_value(
|
||||||
sections: &mut [crate::scene::model::object::PropSection],
|
sections: &mut [crate::scene::model::object::PropSection],
|
||||||
field: &str,
|
field: &str,
|
||||||
|
|||||||
Reference in new issue
Block a user