Skip to content

fix(dia.Paper): ensure grid pattern ids are unique #2654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 9, 2024

Conversation

kumilingus
Copy link
Contributor

Fixes #2648

Description

Fix to generate unique ids for paper <pattern/> elements to allow multiple paper instances draw a grid.

By definition, element id must be unique within a single document.

Because the pattern identifiers were unique within the paper instance (and not globally), only one of the grids was displayed.

@kumilingus kumilingus requested a review from Geliogabalus May 8, 2024 08:20
@Geliogabalus Geliogabalus merged commit 68c5be4 into clientIO:master May 9, 2024
@tkaabbc
Copy link

tkaabbc commented May 14, 2024

Hi team @kumilingus, may I ask when a new version will be released for this change, I'm currently using JointJS+ and I'm experiencing this problem.

@kumilingus
Copy link
Contributor Author

@tkaabbc we have just released v4.0.3 patch.

@kumilingus kumilingus deleted the grid-pattern-id branch May 15, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Grid-layer display only one when two or more papers exist at the same time
3 participants