sequence node drawing v1
This commit is contained in:
1 parent
1d7b6e96c1
commit
edb3dafe12
7 files changed
+70
-58
No files matched your search
@@ -1,5 +1,7 @@
|
||||
.collection-nodes--wrap {
|
||||
--padding: 1.5em;
|
||||
--child-height: calc(var(--node-height) - 2*var(--padding));
|
||||
--child-width: calc(var(--node-width) - 2*var(--padding));
|
||||
|
||||
min-width: var(--node-width);
|
||||
min-height: var(--node-height);
|
||||
@@ -10,6 +12,8 @@
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
/* outline: 1px dotted white; */
|
||||
}
|
||||
|
||||
.collection-nodes {
|
||||
@@ -18,11 +22,11 @@
|
||||
flex-wrap: wrap;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 1.5em;
|
||||
max-width: var(--node-width);
|
||||
max-height: var(--node-height);
|
||||
gap: 0em 1em;
|
||||
max-width: var(--child-width);
|
||||
max-height: var(--child-height);
|
||||
|
||||
border-color: var(--node-color);
|
||||
border-color: var(--child-color);
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-radius: 10px;
|
||||
|
||||
@@ -26,8 +26,8 @@ export const CollectionNode: FC<CollectionNodeProps> = ({
|
||||
style={
|
||||
{
|
||||
"--node-color": nodeColor,
|
||||
"--node-height": `calc(${height}px - 2*var(--padding))`,
|
||||
"--node-width": `calc(${width}px - 2*var(--padding))`,
|
||||
"--node-height": `${height}px`,
|
||||
"--node-width": `${width}px`,
|
||||
} as any
|
||||
}
|
||||
>
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: default;
|
||||
/* outline-width: 1px;
|
||||
outline-style: dotted;
|
||||
outline-color: white; */
|
||||
|
||||
/* outline: 1px dotted white; */
|
||||
}
|
||||
|
||||
.sequence-node--inner {
|
||||
|
||||
Reference in new issue
Block a user