From 5dacf24145223fcc9422486717257cdc17340a01 Mon Sep 17 00:00:00 2001
From: ssi02014
- - + + + + + +
+ ++ +
{value}
{isOpenSelect ? (
diff --git a/src/constants/select.ts b/src/constants/select.ts
new file mode 100644
index 0000000..4d8c0e8
--- /dev/null
+++ b/src/constants/select.ts
@@ -0,0 +1,29 @@
+export const fontFamilies = [
+ 'Arial',
+ 'monospace',
+ 'Times New Roman',
+ 'Georgia',
+ 'Courier New',
+ 'Verdana',
+];
+export const strokeTypes = ['None', 'Thin', 'Normal', 'Thick'];
+
+export const imageTypes = ['png', 'jpg', 'webp'];
+
+export const fontSizes = [
+ '10px',
+ '20px',
+ '30px',
+ '40px',
+ '50px',
+ '60px',
+ '70px',
+ '80px',
+ '90px',
+ '100px',
+ '120px',
+ '140px',
+ '160px',
+ '180px',
+ '200px',
+];
diff --git a/src/lib/ThumbnailGenerator.tsx b/src/lib/ThumbnailGenerator.tsx
index ceeb6a4..7b66626 100644
--- a/src/lib/ThumbnailGenerator.tsx
+++ b/src/lib/ThumbnailGenerator.tsx
@@ -11,6 +11,8 @@ interface ThumbnailGeneratorProps {
iconSrc?: string;
iconSize?: 'small' | 'medium' | 'large';
position?: Position;
+ iconPosition?: [number, number, number, number];
+ modalPosition?: 'left' | 'right' | 'center';
additionalFontFamily?: string[];
}
@@ -18,7 +20,8 @@ const ThumbnailGenerator = ({
id,
iconSrc = toggleButton,
iconSize = 'medium',
- position = 'bottom-right',
+ iconPosition = [0, 20, 20, 0],
+ modalPosition = 'right',
additionalFontFamily = [],
}: ThumbnailGeneratorProps) => {
const [isOpen, setIsOpen] = useState(false);
@@ -33,12 +36,12 @@ const ThumbnailGenerator = ({