feat: Add sticky notes support to the new canvas (no-changelog) (#10031)
This commit is contained in:
@@ -14,6 +14,7 @@ export function useCanvasNode() {
|
||||
() =>
|
||||
node?.data.value ?? {
|
||||
id: '',
|
||||
name: '',
|
||||
type: '',
|
||||
typeVersion: 1,
|
||||
disabled: false,
|
||||
@@ -33,8 +34,10 @@ export function useCanvasNode() {
|
||||
},
|
||||
);
|
||||
|
||||
const id = computed(() => node?.id.value ?? '');
|
||||
const label = computed(() => node?.label.value ?? '');
|
||||
|
||||
const name = computed(() => data.value.name);
|
||||
const inputs = computed(() => data.value.inputs);
|
||||
const outputs = computed(() => data.value.outputs);
|
||||
const connections = computed(() => data.value.connections);
|
||||
@@ -56,10 +59,12 @@ export function useCanvasNode() {
|
||||
const runDataCount = computed(() => data.value.runData.count);
|
||||
const hasRunData = computed(() => data.value.runData.visible);
|
||||
|
||||
const renderOptions = computed(() => data.value.render.options);
|
||||
const render = computed(() => data.value.render);
|
||||
|
||||
return {
|
||||
node,
|
||||
id,
|
||||
name,
|
||||
label,
|
||||
inputs,
|
||||
outputs,
|
||||
@@ -75,6 +80,6 @@ export function useCanvasNode() {
|
||||
executionStatus,
|
||||
executionWaiting,
|
||||
executionRunning,
|
||||
renderOptions,
|
||||
render,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user