CatalogueView Module
Nested modules
| Modules | Description |
Functions and values
| Function or value | Description |
|
|
Full Usage:
createCompStdLabel comp createParam model dispatch
Parameters:
ComponentType
createParam : (ComponentId -> Unit) option
model : Model
dispatch : Msg -> unit
|
|
|
|
Full Usage:
createVerilogPopup model showExtraErrors correctedCode moduleName origin dispatch
Parameters:
Model
showExtraErrors : bool
correctedCode : string option
moduleName : string option
origin : CodeEditorOpen
dispatch : Msg -> unit
|
|
Full Usage:
menuItem styles label onClick
Parameters:
CSSProp list
label : string
onClick : MouseEvent -> unit
Returns: ReactElement
|
|
Full Usage:
parseBusCompareValue wMax w cText
Parameters:
int
w : int
cText : string
Returns: ReactElement * ComponentType option
|
|
Full Usage:
parseConstant wMax w cText
Parameters:
int
w : int
cText : string
Returns: ReactElement * ComponentType option
|
|
Full Usage:
startPlacingCustomComponent loadedComponent model dispatch
Parameters:
LoadedComponent
model : Model
dispatch : Msg -> unit
|
|
|
|
|
The component a catalogue drag is carrying, drawn following the cursor. This is the draw block's own drawing - createNewSymbol and drawComponent, the pair the canvas itself uses - and not a picture of one, so what is being carried cannot fall out of step with what will be placed: a symbol whose look depends on its ports, its size or the theme comes out right here for nothing, and stays right when that drawing changes. It is scaled by the sheet's zoom for the same reason. Nothing is added to any model. The symbol is built, drawn and discarded on each mouse move, which is what lets the popup still stand in front of the component being created. Carried over a component already on the sheet it is drawn red, because there it cannot be dropped - see ghostOverlaps.
|