Skip to content

Conversation

@ashwintemkar
Copy link
Contributor

FIXES

#8575

DEMO

2024-10-02.15-26-39.mp4

@vercel
Copy link

vercel bot commented Oct 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
excalidraw ✅ Ready (Inspect) Visit Preview Oct 2, 2024 1:31pm
excalidraw-package-example ✅ Ready (Inspect) Visit Preview Oct 2, 2024 1:31pm
excalidraw-package-example-with-nextjs ✅ Ready (Inspect) Visit Preview Oct 2, 2024 1:31pm
1 Skipped Deployment
Name Status Preview Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Oct 2, 2024 1:31pm

@mtolmacs
Copy link
Collaborator

mtolmacs commented Oct 2, 2024

Yes, it works. Can you also make sure that the arrow uses the stroke and color of the starting shape instead of the global arrow setting?

@ashwintemkar
Copy link
Contributor Author

Yes, it works. Can you also make sure that the arrow uses the stroke and color of the starting shape instead of the global arrow setting?

I have a few doubts on the same where in the current cone is using the stroke and color of the starting shape like this
image

on changing it again in the global settings it takes that color
like this
image

I think that would be another issue to solve to stop making the color of the global arrow to intefere after changing it specifically

below is the demo of the same process

DEMO

2024-10-02.15-59-13.mp4

@mtolmacs
Copy link
Collaborator

mtolmacs commented Oct 2, 2024

I'm not sure what you're saying, but the goal would be to override the color, stroke and sloppyness of the arrow with the starting shape values, not get it from the global settings.

The arrowhead part looks perfect, we just need to unify the the flowchart arrow style with the starting shape and its good to go.

@ashwintemkar
Copy link
Contributor Author

ashwintemkar commented Oct 2, 2024

I'm not sure what you're saying, but the goal would be to override the color, stroke and sloppyness of the arrow with the starting shape values, not get it from the global settings.

The arrowhead part looks perfect, we just need to unify the the flowchart arrow style with the starting shape and its good to go.

so Yes the current the color, stroke and sloppyness of the arrow comes is being taken from the staring shape,

for eg:

current situation

  1. starting shap's color and stroke: red
  2. global Arrow's color and stroke: white
  3. flowchart arrow color and stroke: Same as 1.

On change of the global arrow once again

  1. starting shap's color and stroke: red
  2. global Arrow's color and stroke: white
  3. flowchart arrow color and stroke: white.

can you confirm if you need whether

On change of the global arrow once again

  1. starting shap's color and stroke: red
  2. global Arrow's color and stroke: white
  3. flowchart arrow color and stroke: Same as 1.

Copy link
Collaborator

@mtolmacs mtolmacs left a comment

Choose a reason for hiding this comment

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

Make the attributes come from the starting shape (including the sloppiness, which is currently not set).

startArrowhead: appState.currentItemStartArrowhead,
startArrowhead: null,
endArrowhead: appState.currentItemEndArrowhead,
strokeColor: appState.currentItemStrokeColor,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use the starting (startBindingElement) stroke color instead of appState.currentItemStrokeColor

Copy link
Contributor Author

Choose a reason for hiding this comment

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

understood

startArrowhead: null,
endArrowhead: appState.currentItemEndArrowhead,
strokeColor: appState.currentItemStrokeColor,
strokeStyle: appState.currentItemStrokeStyle,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use the starting (startBindingElement) stroke style instead of appState.currentItemStrokeStyle

Copy link
Contributor Author

Choose a reason for hiding this comment

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

understood

@mtolmacs
Copy link
Collaborator

mtolmacs commented Oct 2, 2024

The current situation is that the arrow color, style and sloppiness comes from the global app state. Please check it out again, you'll see that if you previously changed the color to white it will create a white arrow, even though the starting shape was red:

color

@ashwintemkar
Copy link
Contributor Author

can you please check it now ? I have updated the PR

@mtolmacs
Copy link
Collaborator

mtolmacs commented Oct 2, 2024

Awsome, thanks! @dwelle I believe this is ready for your review.

@mtolmacs mtolmacs self-requested a review October 2, 2024 14:02
mtolmacs
mtolmacs previously approved these changes Oct 2, 2024
@mtolmacs mtolmacs dismissed their stale review October 2, 2024 14:03

Mistake

@ashwintemkar
Copy link
Contributor Author

@mtolmacs is anything pending from my side? on this issue as I am not able to see any activity in this PR since 2 days, I think it is pending @dwelle 's review right? after which this might get merged?

@mtolmacs
Copy link
Collaborator

mtolmacs commented Oct 4, 2024

Yes, nothing else for the moment.

@ashwintemkar
Copy link
Contributor Author

@mtolmacs and @dwelle I wanted to check in on the status of the PR – it hasn't been merged yet, and I was wondering if you might have an estimate for when it might be completed?

@mtolmacs
Copy link
Collaborator

mtolmacs commented Oct 8, 2024

Hi @rothardo it will be done when dwelle has time to review it. No need to ping him, I'm tracking all the PRs I reviewed.

@ashwintemkar
Copy link
Contributor Author

Hi @mtolmacs, It has been quite a while since this PR was submitted, may I know the status of it,
even though you said,

Hi @rothardo it will be done when dwelle has time to review it. No need to ping him, I'm tracking all the PRs I reviewed.

I gave not seen anything change since , is there anything needed from my side? then please let me know, I shall do it

@dwelle
Copy link
Member

dwelle commented Jan 24, 2025

Thank you, and really sorry for taking so long 😊

A followup issue could be to make sure the other rectangle also copies the attributes of the starting rectangle.

@dwelle dwelle merged commit 8f20b29 into excalidraw:master Jan 24, 2025
8 checks passed
@ashwintemkar
Copy link
Contributor Author

Thank you, and really sorry for taking so long 😊

A followup issue could be to make sure the other rectangle also copies the attributes of the starting rectangle.

so, are you opening up an issue on the same?

then I am ready to take that issue and work on it?

@dwelle
Copy link
Member

dwelle commented Jan 24, 2025

@rothardo #9045 👍

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.

Flowchart clones the current arrowhead settings instead of setting no arrowhead on the start and arrowhead at the end

3 participants