Skip to content

Commit

Permalink
Merge pull request #19 from 1solation/add-equivalent-symbol
Browse files Browse the repository at this point in the history
Add equivalent symbol to algebra keys
  • Loading branch information
krirkrirk authored Dec 16, 2024
2 parents 6f09521 + 68c75cf commit 2c7b75f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
7 changes: 1 addition & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/keyboard/keys/algebraKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,12 @@ export const algebraKeysProps: KeyProps[] = [
mathfieldInstructions: { content: "x^3", method: "write" },
groups: ["algebra"],
},
{
id: "equivalent",
label: "≡",
labelType: "tex",

mathfieldInstructions: { content: "≡", method: "write" },
groups: ["algebra"],
},
];
4 changes: 2 additions & 2 deletions src/keyboard/keys/keyIds.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type KeyId =
export type KeyId =
/**quantities */
"volumeMere" | "volumeFille" | "concentrationMere" | "concentrationFille"
/**units */
Expand All @@ -10,7 +10,7 @@ export type KeyId =
/**geometry */
| "overrightarrow" | "degree" | "vectorU"
/**operations */
| "plus" | "minus" | "times" | "frac" | "obelus" | "sqrt" | "sqrtCub" | "square" | "cube" | "power" | "percent" | "leftParenthesis" | "leftParenthesisNoLeft" | "rightParenthesis" | "rightParenthesisNoRight" | "equal" | "comma" | "semicolon" | "dot" | "sup" | "inf" | "geq" | "leq" | "approx" | "xsquare" | "xcube"
| "plus" | "minus" | "times" | "frac" | "obelus" | "sqrt" | "sqrtCub" | "square" | "cube" | "power" | "percent" | "leftParenthesis" | "leftParenthesisNoLeft" | "rightParenthesis" | "rightParenthesisNoRight" | "equal" | "comma" | "semicolon" | "dot" | "sup" | "inf" | "geq" | "leq" | "approx" | "xsquare" | "xcube" | "equivalent"
/**sets */
| "belongs" | "notin" | "cap" | "cup" | "lbrace" | "rbrace" | "lbracket" | "rbracket" | "varnothing" | "naturals" | "integers" | "rationals" | "decimals" | "reals" | "complex" | "ast" | "del" | "right" | "left" | "rightarrow" | "overrightarrow" | "infty"
/**fcts */
Expand Down
1 change: 1 addition & 0 deletions src/keyboard/keys/keyIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export type KeyId =
| "approx"
| "xsquare"
| "xcube"
| "equivalent"

/**sets */
| "belongs"
Expand Down

0 comments on commit 2c7b75f

Please sign in to comment.