Skip to content

Commit

Permalink
fix(background): avoid to cover the other plugin's dom, eg grid-line (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
TZZack authored Dec 11, 2024
1 parent b1861bf commit 78575a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/g6/src/plugins/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export class Background extends BasePlugin<BackgroundOptions> {
static defaultOptions: Partial<BackgroundOptions> = {
transition: 'background 0.5s',
backgroundSize: 'cover',
zIndex: '-1', // aviod to cover the other plugin's dom, eg: grid-line.
};

private $element: HTMLElement = createPluginContainer('background');
Expand Down

0 comments on commit 78575a6

Please sign in to comment.