Skip to content
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

fix: keep shape properties form and the fabric state in sync (fix #719, #682) #723

Closed
wants to merge 1 commit into from

Conversation

jaltekruse
Copy link

@jaltekruse jaltekruse commented Feb 24, 2022

Please check if the PR fulfills these requirements

  • It's submitted to right branch according to our branching model
  • It's right issue type on title
  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • I didn't add tests, but happy to take suggestions for the right tests to add
  • Docs have been added/updated (for bug fixes/features)
  • It does not introduce a breaking change or has description for the breaking change

Description


The bugs are described in the linked issues.

The fix for updating the fill color on selecting an existing object highlights something that isn't very clear in the code. The stroke color is a simple string value for the color Hex, while the fill property is actually an object with a color and a "fill type" ( I assume to support fill patterns which I know fabric has).

Properties on an object as seen in the debugger in the objectActivated() method in actions.js

    "fill": {
        "type": "color",
        "color": "#ff6518"
    },
    "stroke": "#03bd9e",

@lja1018
Copy link
Contributor

lja1018 commented Mar 2, 2022

@jaltekruse
Thank you for your contribution. I'll merge after the review.

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!

@stale stale bot added the inactive label Apr 17, 2022
@jaltekruse
Copy link
Author

I was testing this out manually and this isn't a complete fix, unfortunately the fill is sometimes an object and sometimes a string. I'll try to update the PR soon with a proper fix.

@stale stale bot removed the inactive label Apr 17, 2022
@lja1018
Copy link
Contributor

lja1018 commented Apr 20, 2022

@jaltekruse
Thank you. I'll look forward to it.

@stale
Copy link

stale bot commented Jun 12, 2022

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!

@stale stale bot added the inactive label Jun 12, 2022
@stale
Copy link

stale bot commented Jun 23, 2022

This issue will be closed due to inactivity. Thanks for your contribution!

1 similar comment
@stale
Copy link

stale bot commented Jul 10, 2022

This issue will be closed due to inactivity. Thanks for your contribution!

@stale stale bot closed this Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants