Skip to content

Added Line element #253

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 4 commits into from
May 29, 2014
Merged

Added Line element #253

merged 4 commits into from
May 29, 2014

Conversation

basjan
Copy link
Contributor

@basjan basjan commented May 29, 2014

Added Line element, such that straight lines can be added to a document. Includes arrow ends and line dashing.

@basjan
Copy link
Contributor Author

basjan commented May 29, 2014

@ivanlanin could you please take a look at this code ? I duplicated the writeStyle function from Image, because the function calls $this->getElementStyle and I needed to override this function.
Now Travis complains that there is duplicate code.
My coding skills are not sufficient here to resolve this. Do you have any suggestions on how to tackle this issue ?

@ivanlanin
Copy link
Contributor

Another great enhancement! 👍 This will resolve #123 when we can draw rectangular etc. I'll work on the duplication.

@basjan
Copy link
Contributor Author

basjan commented May 29, 2014

Thanks @ivanlanin I just commited a final try to resolve the Travis build errors. I renamed the writeStyle function to writeLineStyle, but I am not quite happy with it as a lot of code duplication is still present.
I hope you can come up with a solution.

@ivanlanin ivanlanin merged commit 748e164 into PHPOffice:develop May 29, 2014
ivanlanin added a commit that referenced this pull request May 29, 2014
@basjan basjan deleted the Line-element branch May 29, 2014 18:12
@ivanlanin
Copy link
Contributor

Merged. I've made some adjustments to your code: a57b28d. Nothing major. Thanks, @basjan.

@ivanlanin ivanlanin added this to the 0.11.0 milestone Jun 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants