mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 23:50:08 +00:00
20 lines
481 B
TypeScript
20 lines
481 B
TypeScript
import { LGraphNode, LGraphGroup, LGraphCanvas } from '@comfyorg/litegraph'
|
|
import { defineStore } from 'pinia'
|
|
import { shallowRef } from 'vue'
|
|
|
|
export const useTitleEditorStore = defineStore('titleEditor', () => {
|
|
const titleEditorTarget = shallowRef<LGraphNode | LGraphGroup | null>(null)
|
|
|
|
return {
|
|
titleEditorTarget
|
|
}
|
|
})
|
|
|
|
export const useCanvasStore = defineStore('canvas', () => {
|
|
const canvas = shallowRef<LGraphCanvas | null>(null)
|
|
|
|
return {
|
|
canvas
|
|
}
|
|
})
|