clean dirty changes

This commit is contained in:
Guilhem
2025-11-11 15:56:12 +01:00
parent c429a57deb
commit 2e8a739b14
2 changed files with 4 additions and 8 deletions
@@ -342,7 +342,7 @@
}
const yOffset = insertable ? 100 : 0
return dag.descendants().map((des) => ({
const newNodes = dag.descendants().map((des) => ({
id: des.data.id,
position: {
x: des.x
@@ -358,6 +358,9 @@
y: (des.y || 0) + yOffset + (nodeSpacingMap[des.data.id] ?? 0) / 2
}
}))
lastNodes = [nodes, newNodes]
return newNodes
}
let eventHandler = {
@@ -41,13 +41,6 @@
const locked = $derived(data.locked ?? false)
const textForDisplay = $derived(data.text ?? '')
// Sync textContent with data.text when not in edit mode
$effect(() => {
if (!editMode) {
textContent = data.text ?? ''
}
})
function handleTextSave() {
// Only update when done editing
if (isEditModeAvailable && noteEditorContext?.noteEditor) {