Skip to content

Commit

Permalink
fix: avoid generating redundant dom structure for document element #1578
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver authored Nov 6, 2023
1 parent 92b82eb commit 5f82710
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/g-plugin-svg-renderer/src/SVGRendererPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,9 @@ export class SVGRendererPlugin implements RenderingPlugin {
) {
const svgElement = (object as any).elementSVG as ElementSVG;
let $hitTestingEl = svgElement.$hitTestingEl;
const increasedLineWidthForHitTesting =
object.parsedStyle.increasedLineWidthForHitTesting;
const increasedLineWidthForHitTesting = Number(
object.parsedStyle.increasedLineWidthForHitTesting,
);

// account for hitArea
if (increasedLineWidthForHitTesting) {
Expand Down

0 comments on commit 5f82710

Please sign in to comment.