Minor changes to case builder

feature/gui
Alinson S. Xavier 4 years ago
parent 0beb30800e
commit e797cb98e0
No known key found for this signature in database
GPG Key ID: DCA0DAD4D2F58624

@ -169,13 +169,13 @@ const PipelineBlock = (props) => {
onConnect={onConnect} onConnect={onConnect}
onElementsRemove={onElementsRemove} onElementsRemove={onElementsRemove}
deleteKeyCode={46} deleteKeyCode={46}
maxZoom={3} maxZoom={1.25}
minZoom={0.5} minZoom={0.5}
snapToGrid={true} snapToGrid={true}
preventScrolling={false} preventScrolling={false}
> >
<Background /> <Background />
<Controls /> <Controls showInteractive={false} />
</ReactFlow> </ReactFlow>
</div> </div>
<div style={{ textAlign: "center" }}> <div style={{ textAlign: "center" }}>
@ -185,11 +185,11 @@ const PipelineBlock = (props) => {
onClick={props.onAddProduct} onClick={props.onAddProduct}
/> />
<Button label="Add plant" kind="inline" onClick={props.onAddPlant} /> <Button label="Add plant" kind="inline" onClick={props.onAddPlant} />
<Button label="Auto-Layout" kind="inline" onClick={onLayout} /> <Button label="Auto Layout" kind="inline" onClick={onLayout} />
<Button <Button
label="?" label="?"
kind="inline" kind="inline"
tooltip="Drag from one connector to another to create links between products and plants. Double click to rename an element. Press [Delete] to remove an element." tooltip="Drag from one connector to another to create links between products and plants. Double click to rename an element. Click an element to select and move it. Press the [Delete] key to remove it."
/> />
</div> </div>
</Card> </Card>

@ -1,5 +1,5 @@
.PipelineBlock { .PipelineBlock {
height: 600px !important; height: 800px !important;
border: 1px solid rgba(0, 0, 0, 0.1) !important; border: 1px solid rgba(0, 0, 0, 0.1) !important;
border-radius: var(--border-radius) !important; border-radius: var(--border-radius) !important;
margin-bottom: 12px !important; margin-bottom: 12px !important;

@ -219,6 +219,7 @@ const PlantBlock = (props) => {
tooltip="The cost to store a tonne of input product for one time period." tooltip="The cost to store a tonne of input product for one time period."
value={props.value["storage"]["cost ($/tonne)"]} value={props.value["storage"]["cost ($/tonne)"]}
onChange={(v) => onChange(v, "storage", "cost ($/tonne)")} onChange={(v) => onChange(v, "storage", "cost ($/tonne)")}
validate="float"
/> />
<TextInputRow <TextInputRow
label="Storage limit" label="Storage limit"
@ -226,6 +227,7 @@ const PlantBlock = (props) => {
tooltip="The maximum amount of input product this plant can have in storage at any given time." tooltip="The maximum amount of input product this plant can have in storage at any given time."
value={props.value["storage"]["limit (tonne)"]} value={props.value["storage"]["limit (tonne)"]}
onChange={(v) => onChange(v, "storage", "limit (tonne)")} onChange={(v) => onChange(v, "storage", "limit (tonne)")}
validate="float"
/> />
<h1>Disposal</h1> <h1>Disposal</h1>
@ -236,6 +238,7 @@ const PlantBlock = (props) => {
value={props.value["disposal cost ($/tonne)"]} value={props.value["disposal cost ($/tonne)"]}
onChange={(v) => onChange(v, "disposal cost ($/tonne)")} onChange={(v) => onChange(v, "disposal cost ($/tonne)")}
disableKeys={true} disableKeys={true}
validate="float"
/> />
<DictInputRow <DictInputRow
label="Disposal limit" label="Disposal limit"
@ -245,6 +248,7 @@ const PlantBlock = (props) => {
onChange={(v) => onChange(v, "disposal limit (tonne)")} onChange={(v) => onChange(v, "disposal limit (tonne)")}
disableKeys={true} disableKeys={true}
valuePlaceholder="Unlimited" valuePlaceholder="Unlimited"
validate="float"
/> />
<h1>Emissions</h1> <h1>Emissions</h1>
@ -256,6 +260,7 @@ const PlantBlock = (props) => {
onChange={(v) => onChange(v, "emissions (tonne/tonne)")} onChange={(v) => onChange(v, "emissions (tonne/tonne)")}
keyPlaceholder="Emission name" keyPlaceholder="Emission name"
valuePlaceholder="0" valuePlaceholder="0"
validate="float"
/> />
</Form> </Form>
</Card> </Card>

Loading…
Cancel
Save