ParameterView Module
Types
Type | Description |
Functions and values
Function or value | Description |
Full Usage:
addParamComponent newCompSpec dispatch compId
Parameters:
NewParamCompSpec
dispatch : Msg -> Unit
compId : ComponentId
Returns: Unit
|
|
|
|
Full Usage:
compSlot_ compSlotName
Parameters:
CompSlotName
Returns: Lens<Component, int>
|
|
|
|
|
|
Full Usage:
editParameterBindingPopup model parameterName currValue comp custom dispatch
Parameters:
Model
parameterName : string
currValue : int
comp : Component
custom : CustomComponentType
dispatch : Msg -> unit
|
|
|
|
Full Usage:
evaluateConstraints paramBindings exprSpecs dispatch
Parameters:
ParamBindings
exprSpecs : ConstrainedExpr list
dispatch : Msg -> unit
Returns: Result<Unit, ParamConstraint list>
|
|
Full Usage:
evaluateParamExpression paramBindings paramExpr
Parameters:
ParamBindings
paramExpr : ParamExpression
Returns: Result<ParamInt, ParamError>
|
|
|
|
|
|
Full Usage:
getDefaultParams loadedComponent
Parameters:
LoadedComponent
Returns: ParamBindings
|
|
|
|
Full Usage:
getParamSlots loadedComponent
Parameters:
LoadedComponent
Returns: ComponentSlotExpr
|
|
Full Usage:
getParamsSlot currentSheet
Parameters:
LoadedComponent
Returns: ComponentSlotExpr option
|
|
|
|
Full Usage:
makeParamBindingEntryBoxes model comp custom dispatch
Parameters:
Model
comp : Component
custom : CustomComponentType
dispatch : Msg -> unit
Returns: ReactElement
|
|
|
Return a Lens that can be used to read or update the value of a component slot integer in the component. The value is contained in the ComponentType part of a Component record. The Component record will be found in various places, depending on the context. For Properties changes, the Component record will be in the Model under SelectedComponent. For changes in a newly created component the component is created by CatalogueView.createComponent. A partial implementation of this function would be OK for MVP. NB - the Lens cannot be part of the slot record because the Lens type can change depending on 'PINT. Maybe this will be fixed by using a D.U. for the slot type: however for MVP we can simplify things by dealing only with int parameters.
|
|
|
Full Usage:
modifyInfoSheet project choise dispatch
Parameters:
Project
choise : UpdateInfoSheetChoise
dispatch : Msg -> 'a
Returns: 'a
|
|
Full Usage:
paramInputField model prompt defaultValue currentValue constraints comp compSlotName dispatch
Parameters:
Model
prompt : string
defaultValue : int
currentValue : Option<int>
constraints : ParamConstraint list
comp : Component option
compSlotName : CompSlotName
dispatch : Msg -> unit
Returns: ReactElement
|
|
|
|
Full Usage:
parseExpression text
Parameters:
string
Returns: Result<ParamExpression, ParamError>
|
|
Full Usage:
renderParamExpression expr precedence
Parameters:
ParamExpression
precedence : int
Returns: string
|
|
|
|
Full Usage:
symbolsToSymbol_ componentId
Parameters:
ComponentId
Returns: Lens<Map<ComponentId, Symbol>, Symbol>
|
|
|
|
Full Usage:
updateComponents newBindings model dispatch
Parameters:
ParamBindings
model : Model
dispatch : Msg -> Unit
Returns: Unit
|
|
Full Usage:
updateCustomComponent labelToEval newBindings comp
Parameters:
Map<string, int>
newBindings : ParamBindings
comp : Component
Returns: Component
|
|
Full Usage:
updateInfoSheetDefaultParams currentSheetInfo paramName value delete
Parameters:
ParameterDefs option
paramName : string
value : int
delete : bool
Returns: ParameterDefs option
|
|
Full Usage:
updateInfoSheetParamSlots currentSheetInfo paramSlot expression constraints
Parameters:
ParameterDefs option
paramSlot : ParamSlot
expression : ParamExpression
constraints : ParamConstraint list
Returns: ParameterDefs option
|
|
Full Usage:
updateParamSlot slot exprSpec model
Parameters:
ParamSlot
exprSpec : ConstrainedExpr
model : Model
Returns: Model
|
|
|
|
|
|