interlinked/source/gegl/generic.ts

23 lines
482 B
TypeScript
Raw Normal View History

2022-03-07 15:33:44 +00:00
import {BaseOperation} from './base.js';
2022-03-08 22:53:20 +00:00
export type GenericParameters = Record<string, number | string | boolean>;
2022-03-07 15:33:44 +00:00
export class Generic extends BaseOperation<GenericParameters> {
public get default() {
return {};
}
2022-03-07 15:33:44 +00:00
public appendCrop: boolean;
public name: string;
constructor(
name: string,
parameters?: GenericParameters,
appendCrop?: boolean,
) {
super(parameters ?? {});
this.name = name;
this.appendCrop = appendCrop ?? false;
}
}