delete test page
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
<script lang="ts">
|
||||
import domtoimage from "dom-to-image";
|
||||
import Cropper, {
|
||||
type CropArea,
|
||||
type OnCropComplete,
|
||||
type OnCropCompleteEvent,
|
||||
} from "svelte-easy-crop";
|
||||
import Cropper, { type OnCropCompleteEvent } from "svelte-easy-crop";
|
||||
|
||||
let crop = { x: 0, y: 0 };
|
||||
let zoom = 1;
|
||||
@@ -68,11 +64,6 @@
|
||||
|
||||
// Убираем лишние стили
|
||||
if (node) {
|
||||
node.style.border = "none";
|
||||
node.style.padding = "0";
|
||||
node.style.margin = "0";
|
||||
node.style.outline = "none";
|
||||
|
||||
domtoimage
|
||||
.toPng(node, {
|
||||
style: {
|
||||
@@ -193,6 +184,7 @@
|
||||
<!-- Текст -->
|
||||
{#if text}
|
||||
<div
|
||||
id="text-frame"
|
||||
class="absolute bottom-0 left-0 right-0 py-5 bg-black/70 rounded-t-4xl"
|
||||
>
|
||||
<h1
|
||||
|
||||
Reference in New Issue
Block a user