Skip to main content

ReplaceDigitalComponentHelpers

GetReplacementListKey

GetReplacementListKey(comp) => `${any}:${any}`

Description needed

Parameters

  •  comp: DigitalComponentDescription needed

Returns

  •   ${any}:${any}Description needed

CreateDigitalComponent

CreateDigitalComponent(id, designer) => any

Description needed

Parameters

  •  id: stringDescription needed

  •  designer: DigitalCircuitDesignerDescription needed

Returns

  •   anyDescription needed

GetDigitalIDFor

GetDigitalIDFor(comp, designer) => any

Description needed

Parameters

  •  comp: DigitalComponentDescription needed

  •  designer: DigitalCircuitDesignerDescription needed

Returns

  •   anyDescription needed

GetPortChangeAction

GetPortChangeAction(comp, amt) => GroupAction | InputPortChangeAction

Description needed

Parameters

  •  comp: DigitalComponentDescription needed

  •  amt: numberDescription needed

Returns

  •   GroupAction | InputPortChangeActionDescription needed

GenerateReplacementList

GenerateReplacementList(designer, allComponents) => ReplacementList<`${number}:${number}`, { id: string; amt?: number; }[]>

Description needed

Parameters

  •  designer: DigitalCircuitDesignerDescription needed

  •  allComponents: string[]Description needed

Returns

  •   ReplacementList<`${number}:${number}`, { id: string; amt?: number; }[]>Description needed

GetReplacements

GetReplacements(comp, designer, list) => { id: string; amt?: number; }[]

Description needed

Parameters

  •  comp: DigitalComponentDescription needed

  •  designer: DigitalCircuitDesignerDescription needed

  •  list: ReplacementList<`${number}:${number}`, { id: string; amt?: number; }[]>Description needed

Returns

  •   { id: string; amt?: number; }[]Description needed