decrypt notes
This commit is contained in:
@@ -12,7 +12,7 @@ const emit = defineEmits<{
|
||||
const results = computed<Note[]>(() => {
|
||||
return (
|
||||
props.autocompleteText ? findNotesByByTitle(props.autocompleteText) : notes.value
|
||||
).filter((note) => note.id !== activeNote.value?.id)
|
||||
).filter((note) => note.id !== activeNote.value?.id).slice(10)
|
||||
})
|
||||
|
||||
const activeResult = ref<Note>()
|
||||
|
||||
@@ -10,6 +10,8 @@ const props = defineProps<{
|
||||
const emit = defineEmits<{
|
||||
goToNote: []
|
||||
}>()
|
||||
|
||||
console.log(props.activeResult)
|
||||
</script>
|
||||
<template>
|
||||
<li class="flex flex-row">
|
||||
|
||||
@@ -57,7 +57,8 @@ const renderMindmap = () => {
|
||||
// A function that determines whether the node should be animated
|
||||
// All nodes animated by default on animate enabled
|
||||
// Non-animated nodes are positioned immediately when the layout starts
|
||||
animateFilter: function (node, i) {
|
||||
// animateFilter: function (node, i) {
|
||||
animateFilter: function () {
|
||||
return true
|
||||
},
|
||||
|
||||
@@ -88,7 +89,8 @@ const renderMindmap = () => {
|
||||
componentSpacing: 40,
|
||||
|
||||
// Node repulsion (non overlapping) multiplier
|
||||
nodeRepulsion: function (node) {
|
||||
// nodeRepulsion: function (node) {
|
||||
nodeRepulsion: function () {
|
||||
return 2048
|
||||
},
|
||||
|
||||
@@ -96,12 +98,14 @@ const renderMindmap = () => {
|
||||
nodeOverlap: 4,
|
||||
|
||||
// Ideal edge (non nested) length
|
||||
idealEdgeLength: function (edge) {
|
||||
// idealEdgeLength: function (edge) {
|
||||
idealEdgeLength: function () {
|
||||
return 32
|
||||
},
|
||||
|
||||
// Divisor to compute edge forces
|
||||
edgeElasticity: function (edge) {
|
||||
// edgeElasticity: function (edge) {
|
||||
edgeElasticity: function () {
|
||||
return 32
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user