Skip to content
Snippets Groups Projects
Verified Commit c1622629 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

fix minor template issues

parent 38f9a078
No related branches found
No related tags found
No related merge requests found
Pipeline #17975 passed
...@@ -13,19 +13,3 @@ repos: ...@@ -13,19 +13,3 @@ repos:
args: [--fix=lf] args: [--fix=lf]
- id: detect-private-key - id: detect-private-key
- id: check-merge-conflict - id: check-merge-conflict
- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
args: ["-t", "py311"]
...@@ -55,6 +55,11 @@ export default { ...@@ -55,6 +55,11 @@ export default {
selectedEmoji (value) { selectedEmoji (value) {
const image = new Image() const image = new Image()
if (value === null || value === undefined) {
this.$emit('update:modelValue', null)
return
}
image.onload = () => { image.onload = () => {
this.$emit('update:modelValue', image) this.$emit('update:modelValue', image)
} }
......
...@@ -26,6 +26,7 @@ let fourthRow = null ...@@ -26,6 +26,7 @@ let fourthRow = null
let fourthEmoji = null let fourthEmoji = null
let nameText = null let nameText = null
let nameTextDesc = null let nameTextDesc = null
let gradientRect = null
let previousLogoPosition = null let previousLogoPosition = null
...@@ -49,7 +50,8 @@ const redraw = async (canvas, options) => { ...@@ -49,7 +50,8 @@ const redraw = async (canvas, options) => {
fourthRow, fourthRow,
fourthEmoji, fourthEmoji,
nameText, nameText,
nameTextDesc nameTextDesc,
gradientRect
], ],
canvas canvas
) )
...@@ -186,9 +188,9 @@ const redraw = async (canvas, options) => { ...@@ -186,9 +188,9 @@ const redraw = async (canvas, options) => {
/* BEGIN Main image render */ /* BEGIN Main image render */
var gradientRect = new fabric.Rect({ gradientRect = new fabric.Rect({
left: 0, left: 0,
top: 385, top: 400,
width: 684, width: 684,
height: 780, height: 780,
zIndex: 5, zIndex: 5,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment