Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Deep copy inherited style#1850

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Siemienik merged 6 commits intoexceljs:masterfromikzhr:fix/deep-copy-inherited-style
Oct 9, 2021
Merged

Deep copy inherited style#1850

Siemienik merged 6 commits intoexceljs:masterfromikzhr:fix/deep-copy-inherited-style
Oct 9, 2021

Conversation

ikzhr
Copy link
Contributor

@ikzhrikzhr commentedSep 29, 2021
edited
Loading

Summary

When a row is inserted with inherited style, the style of the inserted row is immutable but the style should be mutable.
This PR solves#1813.

Test plan

npm run test:unitnpm run test:integration

Related to source code (for typings update)

Typings update is not required.

Note

I did not implement general deep-copy function because it's too complex for the purpose and the structure of style is known.
However, depending on the known structure weakens resistance to change of style structure so I think the style should be implemented as class with clone method for logic coherent in the future.

@SiemienikSiemienik self-requested a reviewOctober 7, 2021 14:16
Copy link
Member

@SiemienikSiemienik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you@ikzhr, your changes resolve a problem with styles changes via reference (for rows) and make styles mutable. It looks good to me. 🥇

ikzhr reacted with laugh emoji
@SiemienikSiemienik merged commitda5e743 intoexceljs:masterOct 9, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@SiemienikSiemienikSiemienik approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ikzhr@Siemienik

[8]ページ先頭

©2009-2025 Movatter.jp