+
+
+ {scales.map(s => (
+ setScale(s)}
+ />
+ ))}
+
+
{actionManager.renderAction(
"changeExportBackground",
elements,
diff --git a/src/components/Stack.tsx b/src/components/Stack.tsx
index 7e40b4cb..f1b9c329 100644
--- a/src/components/Stack.tsx
+++ b/src/components/Stack.tsx
@@ -5,7 +5,7 @@ import React from "react";
type StackProps = {
children: React.ReactNode;
gap?: number;
- align?: "start" | "center" | "end";
+ align?: "start" | "center" | "end" | "baseline";
};
function RowStack({ children, gap, align }: StackProps) {
diff --git a/src/components/ToolIcon.scss b/src/components/ToolIcon.scss
index 64a5d8f0..f5225c4a 100644
--- a/src/components/ToolIcon.scss
+++ b/src/components/ToolIcon.scss
@@ -20,6 +20,12 @@
}
}
+.ToolIcon_size_s .ToolIcon__icon {
+ width: 25px;
+ height: 25px;
+ font-size: 0.8em;
+}
+
.ToolIcon_type_button {
padding: 0;
border: none;
diff --git a/src/components/ToolIcon.tsx b/src/components/ToolIcon.tsx
index 374149eb..84a2a506 100644
--- a/src/components/ToolIcon.tsx
+++ b/src/components/ToolIcon.tsx
@@ -2,6 +2,8 @@ import "./ToolIcon.scss";
import React from "react";
+type ToolIconSize = "s" | "m";
+
type ToolIconProps =
| {
type: "button";
@@ -11,6 +13,7 @@ type ToolIconProps =
name?: string;
id?: string;
onClick?(): void;
+ size?: ToolIconSize;
}
| {
type: "radio";
@@ -20,12 +23,17 @@ type ToolIconProps =
id?: string;
checked: boolean;
onChange?(): void;
+ size?: ToolIconSize;
};
+const DEFAULT_SIZE: ToolIconSize = "m";
+
export function ToolIcon(props: ToolIconProps) {
+ const sizeCn = `ToolIcon_size_${props.size || DEFAULT_SIZE}`;
+
if (props.type === "button")
return (
-