Skip to content

Commit

Permalink
docs: remove freeze call (#3332)
Browse files Browse the repository at this point in the history
  • Loading branch information
NewByVector authored Mar 2, 2023
1 parent 5338b73 commit 309b5a7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sites/x6-sites/examples/showcase/practices/demo/orgchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,12 @@ function setup() {
'New Employee',
Math.random() < 0.5 ? male : female,
)
graph.freeze()
graph.addCell([member, createEdge(node, member)])
layout()
})

graph.on('node:delete', ({ e, node }) => {
e.stopPropagation()
graph.freeze()
graph.removeCell(node)
layout()
})
Expand Down Expand Up @@ -248,8 +246,6 @@ function layout() {
const sourceBBox = source.getBBox()
const targetBBox = target.getBBox()

console.log(sourceBBox, targetBBox)

if ((dir === 'LR' || dir === 'RL') && sourceBBox.y !== targetBBox.y) {
const gap =
dir === 'LR'
Expand Down

0 comments on commit 309b5a7

Please sign in to comment.