fix: resolve preview not working
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { uiStore, setCurrentStep } from "../stores/uiStore";
|
import { uiStore, setCurrentStep } from "../stores/uiStore";
|
||||||
import type { Panel } from "../lib/types/panel";
|
import type { Panel } from "../lib/types/panel";
|
||||||
|
|
||||||
|
type TextItem = Panel["texts"][0];
|
||||||
import { Stage, Layer, Image, Text } from "svelte-konva";
|
import { Stage, Layer, Image, Text } from "svelte-konva";
|
||||||
import { Button, IconButton } from "../lib/components/ui";
|
import { Button } from "../lib/components/ui";
|
||||||
|
|
||||||
let {
|
let {
|
||||||
panel,
|
panel,
|
||||||
@@ -88,7 +90,7 @@
|
|||||||
{#each panel.texts || [] as textItem (textItem.id)}
|
{#each panel.texts || [] as textItem (textItem.id)}
|
||||||
{@const textPosition = getTextPosition(textItem)}
|
{@const textPosition = getTextPosition(textItem)}
|
||||||
<Text
|
<Text
|
||||||
text={editingText ? editText : textItem.text}
|
text={textItem.text}
|
||||||
fontSize={textItem.fontSize}
|
fontSize={textItem.fontSize}
|
||||||
fill={textItem.color}
|
fill={textItem.color}
|
||||||
fontFamily={textItem.fontFamily}
|
fontFamily={textItem.fontFamily}
|
||||||
|
|||||||
Reference in New Issue
Block a user