From 4b04fa0171f5ec2582ed24235b1d164226867840 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 20 Dec 2023 15:51:31 +0800 Subject: [PATCH] fix(plugin:export): more logical condition after last fix --- packages/x6-plugin-export/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x6-plugin-export/src/index.ts b/packages/x6-plugin-export/src/index.ts index fc80fd7fcc7..2961c06413f 100644 --- a/packages/x6-plugin-export/src/index.ts +++ b/packages/x6-plugin-export/src/index.ts @@ -104,7 +104,7 @@ export class Export extends Basecoat 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('*'))