aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/button/FontIconBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-08-30 10:23:13 -0400
committerbobzel <zzzman@gmail.com>2021-08-30 10:23:13 -0400
commit962a1a3f1ae9a55c5aea630d3252cecb740fa15c (patch)
tree9f5f234786af112a475ea5be962e2e2907fb2dfe /src/client/views/nodes/button/FontIconBox.tsx
parent584926578067f023b52c7754e65bc289f2a745e6 (diff)
parent2d2e027f11253834a337680bbfd1ac549bb2a1f0 (diff)
merged with master - fixed warnings and errors.
Diffstat (limited to 'src/client/views/nodes/button/FontIconBox.tsx')
-rw-r--r--src/client/views/nodes/button/FontIconBox.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx
index 040e8f0f4..a6887cbba 100644
--- a/src/client/views/nodes/button/FontIconBox.tsx
+++ b/src/client/views/nodes/button/FontIconBox.tsx
@@ -336,7 +336,7 @@ export class FontIconBox extends DocComponent<ButtonProps, FontIconDocument>(Fon
const checkWidth = ScriptField.MakeScript("setStrokeWidth(0, true)")?.script.run().result;
const width = 20 + (checkWidth / 100) * 70;
const height = 20 + (checkWidth / 100) * 70;
- strokeIcon = (<div style={{ borderRadius: "100%", width: width + '%', height: height + '%', backgroundColor: boolResult ? boolResult : "#FFFFFF" }} />)
+ strokeIcon = (<div style={{ borderRadius: "100%", width: width + '%', height: height + '%', backgroundColor: boolResult ? boolResult : "#FFFFFF" }} />);
}
const colorOptions: string[] = ['#D0021B', '#F5A623', '#F8E71C', '#8B572A', '#7ED321', '#417505',
@@ -451,7 +451,7 @@ export class FontIconBox extends DocComponent<ButtonProps, FontIconDocument>(Fon
const script: string = StrCast(this.rootDoc.script);
// Script for checking the outcome of the toggle
- let checkScript: string = StrCast(this.rootDoc.script) + "('', true)";
+ const checkScript: string = StrCast(this.rootDoc.script) + "('', true)";
// Function to run the script
const checkResult = ScriptField.MakeScript(checkScript)?.script.run().result;
@@ -609,7 +609,7 @@ Scripting.addGlobal(function getActiveTextInfo(info: "family" | "size" | "color"
case "color": return style?.activeColors[0];
case "highlight": return style?.activeHighlights[0];
}
-})
+});
Scripting.addGlobal(function setAlignment(align: "left" | "right" | "center", checkResult?: boolean) {
const editorView = RichTextMenu.Instance?.TextView?.EditorView;