Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Support being provided with a SVG as a string #76

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

espeandr
Copy link

Closes #75

// Check if a URL was actually passed into the directive
if (!this.inlineSVG) {
// Check if a URL/string was actually passed into the directive
if (!this.inlineSVG && !this.isSVGString) {
Copy link
Owner

Choose a reason for hiding this comment

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

Just leave it as a single check and reword the failure message.

}

if (this.isSVGString) {
this.insertSvgElement(this._svgElementFromString(this.inlineSVG));
Copy link
Owner

Choose a reason for hiding this comment

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

Can you refactor it so we get the SVG here, and then call insertSvgElement with it?

@juliusstoerrle
Copy link

juliusstoerrle commented Nov 12, 2018

Hi, can this be merged? Any changes required?

@espeandr
Copy link
Author

Master has changed since this PR was posted, and this PR can't be merged without adaptions. The reason it wasn't merged, is that the repo creator redecided on the approach to solving my initial problem. I still think the implementation this PR provides is the simplest and most versatile solution, as I believe the responses in the corresponding issue has proven to confirm: ://github.com//issues/75

What do you think @arkon ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants