mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 04:51:52 +00:00
G5: rustfmt dynamic symbol part paint paths
This commit is contained in:
@@ -94,9 +94,7 @@ pub(crate) fn edit_part(s: &mut Session, id: NodeId, path: &[u32], label: &str,
|
||||
/// or type while an object of a symbol instance's art is selected ([`selected_part`]), and of
|
||||
/// selecting any other object of the art.
|
||||
pub(crate) fn part_only() -> EngineError {
|
||||
EngineError::Other(
|
||||
"Only the fill, stroke, opacity and blend of a path, compound path or type selected in a symbol instance can change".into(),
|
||||
)
|
||||
EngineError::Other("Only the fill, stroke, opacity and blend of a path, compound path or type selected in a symbol instance can change".into())
|
||||
}
|
||||
|
||||
pub(super) fn symbol_instance_select_part(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
|
||||
@@ -985,7 +985,7 @@ fn transparency(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
let blend = match p.get("blend") {
|
||||
None => None,
|
||||
Some(Value::Null) => Some(None),
|
||||
Some(b) => {
|
||||
Some(b) => {
|
||||
let name = b.as_str().ok_or_else(|| bad(C, "blend must be a mode name"))?;
|
||||
Some(Some(BlendMode::parse(name).ok_or_else(|| bad(C, format!("unknown blend mode {b}")))?))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user