Skip to content

Commit

Permalink
fix(plugin:export): more logical condition after last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorryhx committed Dec 20, 2023
1 parent bf5d472 commit 4b04fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x6-plugin-export/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class Export extends Basecoat<Export.EventArgs> implements Graph.Plugin {
// custom stylesheets onto the `style` attribute of each of the nodes
// in SVG.

if (options.copyStyles !== false) {
if (options.copyStyles) {
const document = rawSVG.ownerDocument!
const raws = Array.from(rawSVG.querySelectorAll('*'))
const clones = Array.from(clonedSVG.querySelectorAll('*'))
Expand Down

0 comments on commit 4b04fa0

Please sign in to comment.