feat: moved to shared-components and implemented focal point picker in RTE

This commit is contained in:
Erik Tiekstra
2024-10-15 11:15:58 +02:00
parent b1493bcd3d
commit 4c1ee66542
15 changed files with 246 additions and 27 deletions

View File

@@ -213,7 +213,10 @@ async function init() {
{
// @ts-expect-error: incorrect typings
type: "ImageVault",
attrs: result,
attrs: {
...result,
FocalPoint: result.FocalPoint || { x: 50, y: 50 },
},
uid: crypto.randomUUID(),
children: [{ text: "" }],
},