AdaCAD Library Documentation - v1.1.4
    Preparing search index...

    Type Alias DynamicOperation

    DynamicOperation: Operation & {
        dynamic_param_id: number[];
        dynamic_param_type:
            | "number"
            | "notation"
            | "system"
            | "color"
            | "static"
            | "draft"
            | "profile"
            | "null";
        onParamChange: (
            param_vals: OpParamVal[],
            static_inlets: OperationInlet[],
            inlet_vals: OpInletValType[],
            changed_param_id: number,
            dynamic_param_vals: OpParamValType[],
        ) => OpInletValType[];
        perform: (
            param_vals: OpParamVal[],
            op_inputs: OpInput[],
        ) => Promise<Draft[]>;
    }

    A container operation that takes drafts with some parameter assigned to them

    which parameter ids should we use to determine the number and value of parameterized input slots

    dynamic parameters convert parameter inputs to inlets of a given type, this specifies the type of inlet created

    a function that executes when a dynamic parameter is changed and returns the values for the inlets