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

Support being provided with a SVG as a string#76

Open
espeandr wants to merge 13 commits into
arkon:masterfrom
espeandr:master
Open

Support being provided with a SVG as a string#76
espeandr wants to merge 13 commits into
arkon:masterfrom
espeandr:master

Conversation

@espeandr
Copy link
Copy Markdown

Closes #75

Comment thread src/inline-svg.directive.ts Outdated
// 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
Copy Markdown
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.

Comment thread src/inline-svg.directive.ts Outdated
}

if (this.isSVGString) {
this.insertSvgElement(this._svgElementFromString(this.inlineSVG));
Copy link
Copy Markdown
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
Copy Markdown

juliusstoerrle commented Nov 12, 2018

Hi, can this be merged? Any changes required?

@espeandr
Copy link
Copy Markdown
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