RegenerateIds Module
Rewriting the ids a sheet holds - when a sheet is copied into a project, and when a loaded sheet breaks an id invariant.
Functions and values
| Function or value | Description |
Full Usage:
admitDesign ldcs
Parameters:
LoadedComponent list
Returns: LoadedComponent list * string list
|
|
|
Admit a sheet into the open design, re-minting what breaks an invariant: a component id already used elsewhere in the design (component ids are design-unique), or any id that is a sentinel or duplicated within the sheet (per-sheet uniqueness is every kind's floor). Clean ids are reserved so later minting cannot collide with them. Returns the sheet and whether anything had to change.
|
|
|
Full Usage:
remapCanvasState compMap portMap connMap (arg4, arg5)
Parameters:
Map<ComponentId, ComponentId>
portMap : Map<PortId, PortId>
connMap : Map<ConnectionId, ConnectionId>
arg3 : Component list
arg4 : Connection list
Returns: CanvasState
|
|
Full Usage:
remapLoadedComponent compMap portMap connMap ldc
Parameters:
Map<ComponentId, ComponentId>
portMap : Map<PortId, PortId>
connMap : Map<ConnectionId, ConnectionId>
ldc : LoadedComponent
Returns: LoadedComponent
|
|