Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ it.skip('attribute changed callback', () => {
}

expect(spy).toHaveBeenCalled();
expect(spy).toHaveBeenLastCalledWith('component', oldComponent, component, undefined, undefined);
expect(spy).toHaveBeenLastCalledWith('component', oldComponent, component);
});
7 changes: 4 additions & 3 deletions packages/g6/__tests__/demos/behavior-expand-collapse-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const behaviorExpandCollapseNode: TestCase = async (context) => {
id: 'A',
children: [
{ id: 'B', children: [{ id: 'D' }, { id: 'E' }] },
{ id: 'C', children: [{ id: 'F' }, { id: 'G' }] },
{ id: 'C', children: [{ id: 'F' }, { id: 'G' }], style: { collapsed: true } },
],
}),
node: {
Expand All @@ -26,9 +26,10 @@ export const behaviorExpandCollapseNode: TestCase = async (context) => {
type: 'dendrogram',
nodeSep: 30,
rankSep: 100,
preLayout: false,
preLayout: true,
isLayoutInvisibleNodes: true,
},
behaviors: [{ type: 'collapse-expand', trigger: 'click', align: false }, 'drag-element'],
behaviors: [{ type: 'collapse-expand', trigger: 'click' }, 'drag-element'],
});

await graph.render();
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading