Skip to content

Commit

Permalink
fix: typo in node and edge command visible update (#173)
Browse files Browse the repository at this point in the history
* fix: visible type

* fix: add changelog

* chore: update changelog
  • Loading branch information
zxc0328 authored Mar 9, 2022
1 parent 6910c67 commit 1286ef2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .changeset/few-icons-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@antv/xflow-core': patch
'@antv/xflow': patch
'@antv/xflow-extension': patch
'@antv/xflow-hook': patch
---

fix: typo in node and edge command visible update
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class UpdateEdgeCommand implements ICommand {
// 默认更新edge的第一个label
await updateEdgeLabelService(x6Edge, edgeConfig, options)
}
if (isBoolean(edgeConfig?.visble)) {
if (isBoolean(edgeConfig?.visible)) {
x6Edge.setVisible(edgeConfig?.visible)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export class UpdateNodeCommand implements ICommand {
nodeConfig?.width || NsUpdateNode.NODE_WIDTH,
nodeConfig?.height || NsUpdateNode.NODE_HEIGHT,
)
if (isBoolean(nodeConfig?.visble)) {
x6Node.setVisible(nodeConfig?.visble)
if (isBoolean(nodeConfig?.visible)) {
x6Node.setVisible(nodeConfig?.visible)
}

// SVG 元素更新label
Expand Down

0 comments on commit 1286ef2

Please sign in to comment.