Skip to content

Commit ce7ad7e

Browse files
rename node types for slightly better clarity
1 parent 345af18 commit ce7ad7e

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/.vuepress/components/Layer/LayerTreeExplaination.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const explanations: { [key: string]: TreeGridNode } = {
1717
content: {
1818
text: "Operator"
1919
},
20-
nodeType: "connector",
20+
nodeType: "combine",
2121
sideInput: {
2222
content: {
2323
text: "Operand B"
@@ -43,7 +43,7 @@ const explanations: { [key: string]: TreeGridNode } = {
4343
content: {
4444
text: "mul"
4545
},
46-
nodeType: "connector",
46+
nodeType: "combine",
4747
sideInput: {
4848
content: {
4949
text: "Dim"
@@ -55,7 +55,7 @@ const explanations: { [key: string]: TreeGridNode } = {
5555
content: {
5656
text: "add"
5757
},
58-
nodeType: "connector",
58+
nodeType: "combine",
5959
sideInput:
6060
{
6161
content: {
@@ -67,7 +67,7 @@ const explanations: { [key: string]: TreeGridNode } = {
6767
content: {
6868
text: "mul"
6969
},
70-
nodeType: "connector",
70+
nodeType: "combine",
7171
sideInput: {
7272
content: {
7373
text: "AdditionDim"

src/.vuepress/components/Layer/layerConfigSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function LayerToTreeRecursive(layer: LayerConfigLayer): TreeGridNodeConnector {
9797
}
9898

9999
return {
100-
nodeType: "connector",
100+
nodeType: "combine",
101101
content: {
102102
text: operator,
103103
},

src/.vuepress/components/Tree/TreeNode.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const props = defineProps<{
88
}>()
99
</script>
1010
<template>
11-
<template v-if="node.nodeType == 'dot'">
11+
<template v-if="node.nodeType == 'dot' || node.nodeType == undefined">
1212
<div class="dotNode">
1313
</div>
1414
</template>
@@ -22,7 +22,7 @@ const props = defineProps<{
2222
{{ node.content?.text }}
2323
</div>
2424
</template>
25-
<template v-else-if="node.nodeType == 'connector'">
25+
<template v-else-if="node.nodeType == 'combine'">
2626
<div :class="{connectorNode:true, topNode: isTopNode}">
2727
{{ node.content?.text }}
2828
</div>

src/.vuepress/components/Tree/treeGridType.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ export type TreeGridNodeContent = {
22
text: string
33
}
44

5-
export type TreeNodeTypes = "big" | "header" | "connector" | "dot"
5+
export type TreeNodeTypes = "big" | "header" | "combine" | "dot"
66

77
export type TreeGridNodeConnector = {
88
sideInput?: TreeGridNode,
9-
nodeType: TreeNodeTypes,
9+
nodeType?: TreeNodeTypes,
1010
content?: TreeGridNodeContent
1111
}
1212
export type TreeGridNode = {

0 commit comments

Comments
 (0)