ReplaceDigitalComponentHelpers
GetReplacementListKey
GetReplacementListKey(comp) => `${any}:${any}`
Description needed
Parameters
-
comp: DigitalComponent
– Description needed
Returns
-
${any}:${any}
CreateDigitalComponent
CreateDigitalComponent(id, designer) => any
Description needed
Parameters
id: string
– Description neededdesigner: DigitalCircuitDesigner
– Description needed
Returns
-
any
– Description needed
GetDigitalIDFor
GetDigitalIDFor(comp, designer) => any
Description needed
Parameters
comp: DigitalComponent
– Description neededdesigner: DigitalCircuitDesigner
– Description needed
Returns
-
any
– Description needed
GetPortChangeAction
GetPortChangeAction(comp, amt) => GroupAction | InputPortChangeAction
Description needed
Parameters
comp: DigitalComponent
– Description neededamt: number
– Description needed
Returns
-
GroupAction | InputPortChangeAction
– Description needed
GenerateReplacementList
GenerateReplacementList(designer, allComponents) => ReplacementList<`${number}:${number}`, { id: string; amt?: number; }[]>
Description needed
Parameters
designer: DigitalCircuitDesigner
– Description neededallComponents: 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: DigitalComponent
– Description neededdesigner: DigitalCircuitDesigner
– Description neededlist: ReplacementList<`${number}:${number}`, { id: string; amt?: number; }[]>
– Description needed
Returns
-
{ id: string; amt?: number; }[]
– Description needed