diff --git a/README.md b/README.md index 6fd9ef0..643006c 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,19 @@
-- - + + + + + +
+ ++ +
{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 = ({