-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
constant
committed
Jun 13, 2024
1 parent
310f024
commit 4c3cf09
Showing
2 changed files
with
122 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,26 @@ | ||
import type { | ||
ImageElement, | ||
ImageElementWithVariables, | ||
RectElement, | ||
RectElementWithVariables, | ||
TextElement, | ||
TextElementWithVariables, | ||
import { | ||
defaultImageElement, | ||
defaultRectElement, | ||
defaultTextElement, | ||
type ImageElement, | ||
type ImageElementWithVariables, | ||
type RectElement, | ||
type RectElementWithVariables, | ||
type TextElement, | ||
type TextElementWithVariables, | ||
} from "~/stores/elementTypes"; | ||
|
||
export const defaultElements = { | ||
rect: { | ||
id: "", | ||
type: "rect", | ||
x: 0, | ||
y: 0, | ||
rotate: 0, | ||
width: 100, | ||
height: 100, | ||
backgroundColor: "#e41212", | ||
backgroundOpacity: 1, | ||
borderTopLeftRadius: 0, | ||
borderTopRightRadius: 0, | ||
borderBottomRightRadius: 0, | ||
borderBottomLeftRadius: 0, | ||
borderType: null, | ||
borderWidth: null, | ||
borderColor: null, | ||
...defaultRectElement, | ||
variables: [], | ||
blur: null, | ||
} as RectElementWithVariables, | ||
text: { | ||
id: "", | ||
type: "text", | ||
x: 0, | ||
y: 0, | ||
rotate: 0, | ||
width: 100, | ||
height: 100, | ||
color: "#000000", | ||
textColorOpacity: 1, | ||
textTransform: "none", | ||
fontSize: 28, | ||
fontWeight: 400, | ||
fontStyle: "normal", | ||
fontFamily: "Open Sans", | ||
textAlign: "left", | ||
content: "Text", | ||
lineHeight: 1.5, | ||
...defaultTextElement, | ||
variables: [], | ||
} as TextElementWithVariables, | ||
image: { | ||
id: "", | ||
type: "image", | ||
x: 0, | ||
y: 0, | ||
rotate: 0, | ||
width: 100, | ||
height: 100, | ||
src: null, | ||
borderTopLeftRadius: 0, | ||
borderTopRightRadius: 0, | ||
borderBottomRightRadius: 0, | ||
borderBottomLeftRadius: 0, | ||
objectFit: "cover", | ||
...defaultImageElement, | ||
variables: [], | ||
} as ImageElementWithVariables, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters