Skip to content

Commit c4c15ac

Browse files
committed
CLEANUP: Use same shortcuts for pos/neg links in CLDs and stock-flow.
1 parent c1e60a8 commit c4c15ac

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/frontend/src/stdlib/theories.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ stdTheories.add(
8686
id: "primitive-stock-flow",
8787
name: "Stock and flow",
8888
description: "Accumulation (stocks) and change (flows)",
89-
iconLetters: ["S", "f"],
89+
iconLetters: ["S", "F"],
9090
group: "System Dynamics",
9191
},
9292
async () => (await import("./theories/primitive-stock-flow")).default,
@@ -97,6 +97,7 @@ stdTheories.add(
9797
id: "primitive-signed-stock-flow",
9898
name: "Stock and flow with signed links",
9999
description: "Accumulation (stocks) and change (flows), with signed links",
100+
iconLetters: ["S", "F"],
100101
group: "System Dynamics",
101102
},
102103
async () => (await import("./theories/primitive-signed-stock-flow")).default,

packages/frontend/src/stdlib/theories/primitive-signed-stock-flow.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as analyses from "../analyses";
44
import styles from "../styles.module.css";
55
import svgStyles from "../svg_styles.module.css";
66

7-
export default function createPrimitiveStockFlowTheory(theoryMeta: TheoryMeta): Theory {
7+
export default function createPrimitiveSignedStockFlowTheory(theoryMeta: TheoryMeta): Theory {
88
const thCategorySignedLinks = new ThCategorySignedLinks();
99

1010
return new Theory({
@@ -39,7 +39,7 @@ export default function createPrimitiveStockFlowTheory(theoryMeta: TheoryMeta):
3939
description: "Positive influence of a stock on a flow",
4040
arrowStyle: "plus",
4141
preferUnnamed: true,
42-
shortcut: ["L"],
42+
shortcut: ["P"],
4343
},
4444
{
4545
tag: "MorType",
@@ -48,7 +48,7 @@ export default function createPrimitiveStockFlowTheory(theoryMeta: TheoryMeta):
4848
description: "Negative influence of a stock on a flow",
4949
arrowStyle: "minus",
5050
preferUnnamed: true,
51-
shortcut: ["K"],
51+
shortcut: ["N"],
5252
},
5353
],
5454
modelAnalyses: [

0 commit comments

Comments
 (0)