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

cannot pass attributes to the svg element #1

Closed
ghost opened this issue Apr 12, 2012 · 3 comments
Closed

cannot pass attributes to the svg element #1

ghost opened this issue Apr 12, 2012 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 12, 2012

Hi,

Using Tikkba, I tried the following code:

(svg {:width "15cm" :height "15cm" :viewBox "0 0 15 15"}
  (-> (circle "8cm" "8cm" "6cm")
    (style :stroke "#000000" :fill "none")))

The generated xml looks like

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="text/ecmascript" zoomAndPan="magnify" contentStyleType="text/css" preserveAspectRatio="xMidYMid meet" version="1.0">
  <circle r="6cm" style=" fill: none;  stroke: #000000; " cx="8cm" cy="8cm"/>
</svg>

i.e. no trace of the width, height and viewBox parameters. Any hints? Thanks

pallix pushed a commit that referenced this issue Apr 13, 2012
pallix pushed a commit that referenced this issue Apr 13, 2012
@pallix
Copy link
Owner

pallix commented Apr 13, 2012

Thanks for reporting this bug!

This has been fixed and an informal test has been added.

Fill free to reopen this issue if you encounter further problems.

@pallix pallix closed this as completed Apr 13, 2012
@pallix
Copy link
Owner

pallix commented Apr 13, 2012

I also uploaded the new 0.3.1 version to Clojars.

@ghost
Copy link
Author

ghost commented Apr 13, 2012

Cool, thanks for the fix!

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

No branches or pull requests

1 participant