Skip to content

Commit 4b9a685

Browse files
committed
thumb input/output WiP look
1 parent 2c2d7d4 commit 4b9a685

File tree

4 files changed

+30
-8
lines changed

4 files changed

+30
-8
lines changed

libs/app-canvas/src/app/nodes-gl/thumb-input.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import { GLNodeInfo } from '../types/gl-node-info';
1515

1616
const fieldName = 'thumb-input';
17-
const labelName = 'Thumb input';
17+
const labelName = 'Input';
1818
const nodeName = 'thumb-input';
1919
const familyName = 'flow-canvas';
2020
const thumbConstraint = 'value';
@@ -56,7 +56,7 @@ export const getThumbInputNode: NodeTaskFactory<GLNodeInfo> = (
5656
compute,
5757
initializeCompute,
5858
false,
59-
200,
59+
100,
6060
100,
6161
thumbs,
6262
(values?: InitialValues): FormField[] => {
@@ -138,6 +138,11 @@ export const getThumbInputNode: NodeTaskFactory<GLNodeInfo> = (
138138
theme?.compositionThumbInputNodeBackground ?? 'bg-yellow-300',
139139
textColorClassName: theme?.compositionThumbInputNodeText ?? 'text-black',
140140
category: 'Compositions',
141+
hasSettingsPopup: false,
142+
hasFormInPopup: true,
143+
144+
additionalInnerNodeClassNames: 'rounded-full',
145+
hasStaticWidthHeight: true,
141146
},
142147
undefined,
143148
undefined,

libs/app-canvas/src/app/nodes-gl/thumb-output.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import { GLNodeInfo } from '../types/gl-node-info';
1515

1616
const fieldName = 'thumb-output';
17-
const labelName = 'Thumb output';
17+
const labelName = 'Output';
1818
const nodeName = 'thumb-output';
1919
const familyName = 'flow-canvas';
2020
const thumbConstraint = 'value';
@@ -56,7 +56,7 @@ export const getThumbOutputNode: NodeTaskFactory<GLNodeInfo> = (
5656
compute,
5757
initializeCompute,
5858
false,
59-
200,
59+
100,
6060
100,
6161
thumbs,
6262
(values?: InitialValues): FormField[] => {
@@ -142,6 +142,12 @@ export const getThumbOutputNode: NodeTaskFactory<GLNodeInfo> = (
142142
theme?.compositionThumbOutputNodeBackground ?? 'bg-yellow-500',
143143
textColorClassName: theme?.compositionThumbOutputNodeText ?? 'text-black',
144144
category: 'Compositions',
145+
hasSettingsPopup: false,
146+
hasFormInPopup: true,
147+
additionalInnerNodeClassNames: 'rounded-full items-center justify-center',
148+
hasStaticWidthHeight: true,
149+
additionalClassNames:
150+
'rounded-full bg-yellow-500 border-[black] border-2 border-solid h-[90px] w-[90px] flex-[0_0_auto]',
145151
},
146152
undefined,
147153
undefined,

libs/web-flow-executor/src/nodes/thumb-input.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import { NodeInfo } from '../types/node-info';
1515

1616
const fieldName = 'thumb-input';
17-
const labelName = 'Thumb input';
17+
const labelName = 'Input';
1818
const nodeName = 'thumb-input';
1919
const familyName = 'flow-canvas';
2020
const thumbConstraint = 'value';
@@ -56,7 +56,7 @@ export const getThumbInputNode: NodeTaskFactory<NodeInfo> = (
5656
compute,
5757
initializeCompute,
5858
false,
59-
200,
59+
100,
6060
100,
6161
thumbs,
6262
(values?: InitialValues): FormField[] => {
@@ -148,6 +148,11 @@ export const getThumbInputNode: NodeTaskFactory<NodeInfo> = (
148148
theme?.compositionThumbInputNodeBackground ?? 'bg-yellow-300',
149149
textColorClassName: theme?.compositionThumbInputNodeText ?? 'text-black',
150150
category: 'Compositions',
151+
hasSettingsPopup: false,
152+
hasFormInPopup: true,
153+
//hideTitle: true,
154+
additionalInnerNodeClassNames: 'rounded-full',
155+
hasStaticWidthHeight: true,
151156
},
152157
undefined,
153158
undefined,

libs/web-flow-executor/src/nodes/thumb-output.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import { NodeInfo } from '../types/node-info';
1515

1616
const fieldName = 'thumb-output';
17-
const labelName = 'Thumb output';
17+
const labelName = 'Output';
1818
const nodeName = 'thumb-output';
1919
const familyName = 'flow-canvas';
2020
const thumbConstraint = 'value';
@@ -66,7 +66,7 @@ export const getThumbOutputNode: NodeTaskFactory<NodeInfo> = (
6666
compute,
6767
initializeCompute,
6868
false,
69-
200,
69+
100,
7070
100,
7171
thumbs,
7272
(values?: InitialValues): FormField[] => {
@@ -159,6 +159,12 @@ export const getThumbOutputNode: NodeTaskFactory<NodeInfo> = (
159159
theme?.compositionThumbOutputNodeBackground ?? 'bg-yellow-500',
160160
textColorClassName: theme?.compositionThumbOutputNodeText ?? 'text-black',
161161
category: 'Compositions',
162+
hasSettingsPopup: false,
163+
hasFormInPopup: true,
164+
additionalInnerNodeClassNames: 'rounded-full items-center justify-center',
165+
hasStaticWidthHeight: true,
166+
additionalClassNames:
167+
'rounded-full bg-yellow-500 border-[black] border-2 border-solid h-[90px] w-[90px] flex-[0_0_auto]',
162168
},
163169
undefined,
164170
undefined,

0 commit comments

Comments
 (0)