Kebab-case GEGL graph keys.

This commit is contained in:
Bauke 2024-01-23 13:59:06 +01:00
parent 3312cf055a
commit 3d7ee11150
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
3 changed files with 9 additions and 8 deletions

View File

@ -31,6 +31,7 @@ pub trait GeglOperation: Default + std::fmt::Debug {
continue;
}
let key = key.replace('_', "-");
graph.push(format!("{key}={value}"));
}

View File

@ -7,7 +7,7 @@ expression: graphs
"non-default: exclude defaults",
[
"gegl:bloom",
"limit_exposure=true",
"limit-exposure=true",
"radius=100",
"softness=100",
],
@ -16,7 +16,7 @@ expression: graphs
"non-default: include defaults",
[
"gegl:bloom",
"limit_exposure=true",
"limit-exposure=true",
"radius=100",
"softness=100",
"strength=50",
@ -33,7 +33,7 @@ expression: graphs
"default: include defaults",
[
"gegl:bloom",
"limit_exposure=false",
"limit-exposure=false",
"radius=10",
"softness=25",
"strength=50",

View File

@ -7,15 +7,15 @@ expression: graphs
"non-default: exclude defaults",
[
"gegl:cartoon",
"mask_radius=0.1",
"mask-radius=0.1",
],
),
(
"non-default: include defaults",
[
"gegl:cartoon",
"mask_radius=0.1",
"pct_black=0.2",
"mask-radius=0.1",
"pct-black=0.2",
],
),
(
@ -28,8 +28,8 @@ expression: graphs
"default: include defaults",
[
"gegl:cartoon",
"mask_radius=7",
"pct_black=0.2",
"mask-radius=7",
"pct-black=0.2",
],
),
]