Skip to content

[Bug]: Group clipPath with non-zero shadow offset error #10671

@mshndev

Description

@mshndev

CheckList

  • I agree to follow this project's Code of Conduct
  • I have read and followed the Contributing Guide
  • I have read and followed the Issue Tracker Guide
  • I have searched and referenced existing issues and discussions
  • I am filing a BUG report.
  • I have managed to reproduce the bug after upgrading to the latest version
  • I have created an accurate and minimal reproduction

Version

6.6.4

In What environments are you experiencing the problem?

Chrome

Node Version (if applicable)

None

Link To Reproduction

https://jsfiddle.net/mshndev/yLua1w5g/

Steps To Reproduce

  1. Open the reproduction
  2. Change the shadow.offsetX or shadow.offsetY to a non 0 value (or open this fiddle )
  3. Click "Run fiddle"

Expected Behavior

It should work and clip like with shadow.offsetX = 0 and shadow.offsetX = 0

Image

Actual Behavior

Wierd rendering, throwing errors

Image

Error Message & Stack Trace

Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')
    at Hr.createClipPathLayer (Object.ts:866:29)
    at Hr._drawClipPath (Object.ts:895:50)
    at Hr.drawObject (Group.ts:514:10)
    at Hr.render (Object.ts:686:12)
    at Hr.render (Group.ts:541:11)
    at Bn._renderObjects (StaticCanvas.ts:637:32)
    at Bn.renderCanvas (StaticCanvas.ts:580:10)
    at Bn.renderAll (SelectableCanvas.ts:387:10)
    at Bn.renderAndReset (StaticCanvas.ts:510:10)
    at StaticCanvas.ts:520:59

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions