diff --git a/source/gegl/base.ts b/source/gegl/base.ts index e809032..32762d6 100644 --- a/source/gegl/base.ts +++ b/source/gegl/base.ts @@ -17,10 +17,19 @@ export abstract class BaseOperation
{
this.parameters = parameters;
}
- public graph(): string[] {
+ public graph(includeDefaults = false): string[] {
+ const defaults = this.default;
const graph: string[] = [this.name];
for (const [key, value] of Object.entries(this.parameters)) {
+ if (
+ includeDefaults &&
+ key in defaults &&
+ (defaults as Record