mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2025-12-24 06:58:48 -05:00
feat: removes custom label container for now
This commit is contained in:
@@ -115,7 +115,6 @@ export const Node = ({ node, iconUrl }: Props) => {
|
||||
connectorDotSize={5 * zoom}
|
||||
>
|
||||
{node.label && <MarkdownLabel label={node.label} />}
|
||||
{node.labelComponent}
|
||||
</LabelContainer>
|
||||
</Box>
|
||||
<Box
|
||||
|
||||
@@ -71,7 +71,6 @@ export const CustomNode = () => {
|
||||
{
|
||||
id: 'server',
|
||||
label: 'Requests per minute',
|
||||
labelComponent: <CustomLabel />,
|
||||
labelHeight: 40,
|
||||
iconId: 'server',
|
||||
position: {
|
||||
@@ -82,7 +81,6 @@ export const CustomNode = () => {
|
||||
{
|
||||
id: 'database',
|
||||
label: 'Transactions',
|
||||
labelComponent: <CustomLabel />,
|
||||
labelHeight: 40,
|
||||
iconId: 'server',
|
||||
position: {
|
||||
|
||||
@@ -5,16 +5,10 @@ import {
|
||||
connectorInput,
|
||||
groupInput
|
||||
} from 'src/validation/sceneItems';
|
||||
import { sceneInput } from 'src/validation/scene';
|
||||
|
||||
export type IconInput = z.infer<typeof iconInput>;
|
||||
export type NodeInput = z.infer<typeof nodeInput> & {
|
||||
labelComponent?: React.ReactNode;
|
||||
};
|
||||
export type NodeInput = z.infer<typeof nodeInput>;
|
||||
export type ConnectorInput = z.infer<typeof connectorInput>;
|
||||
export type GroupInput = z.infer<typeof groupInput>;
|
||||
export type SceneInput = {
|
||||
icons: IconInput[];
|
||||
nodes: NodeInput[];
|
||||
connectors: ConnectorInput[];
|
||||
groups: GroupInput[];
|
||||
};
|
||||
export type SceneInput = z.infer<typeof sceneInput>;
|
||||
|
||||
@@ -24,7 +24,6 @@ export interface Node {
|
||||
labelHeight: number;
|
||||
position: Coords;
|
||||
isSelected: boolean;
|
||||
labelComponent?: React.ReactNode;
|
||||
}
|
||||
|
||||
export interface Connector {
|
||||
|
||||
@@ -16,7 +16,6 @@ export const nodeInputToNode = (nodeInput: NodeInput): Node => {
|
||||
type: SceneItemTypeEnum.NODE,
|
||||
id: nodeInput.id,
|
||||
label: nodeInput.label ?? NODE_DEFAULTS.label,
|
||||
labelComponent: nodeInput.labelComponent,
|
||||
labelHeight: nodeInput.labelHeight ?? NODE_DEFAULTS.labelHeight,
|
||||
color: nodeInput.color ?? NODE_DEFAULTS.color,
|
||||
iconId: nodeInput.iconId,
|
||||
|
||||
Reference in New Issue
Block a user