Code Monkey home page Code Monkey logo

dash-svg's People

Contributors

jowlo avatar stevej2608 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jowlo woudt

dash-svg's Issues

filter not accepted as argument

The Circle component does not accept the attribute filter. I guess this issue applies not only to Circle but all other Elemnts, haven't tested that tough.

TypeError: The `dash_svg.Circle` component (version 0.0.12) received an unexpected keyword argument: `filter`

width attribute for Rect

I see that width is not a supported attribute of the Rect component in your library.

TypeError: The `dash_svg.Rect` component (version 0.0.8) received an unexpected keyword argument: `width`
Allowed arguments: aria-*, children, className, clipPath, colorInterpolation, colorRendering, data-*, fill, fillOpacity, id, key, loading_state, markerEnd, markerMid, markerStart, mask, n_clicks, n_clicks_timestamp, opacity, paintOrder, pathLength, pointerEvents, requiredFeatures, role, rx, ry, shapeRendering, stroke, strokeDasharray, strokeDashoffset, strokeLinejoin, strokeMiterlimit, strokeOpacity, strokeWidth, systemLanguage, vectorEffect, visibility, x, y

Is there an attribute for this functionality I'm overlooking? For reference, this is the traditional SVG code I'm attempting to replicate:

<rect x="30" y="25.5" width="200" height="400" fill="#000000" stroke="#ff8000" pointer-events="all" />

Generate API documentation

Is the generated API documented anywhere? This would be useful for documenting particular version (if https://developer.mozilla.org changes), as well as documenting the expected parameters.

Guessing valid parameters from the SVG documentation is not always straightforward (for instance Ellipse accepts x and y in addition to the svg-style cx and cy). It also wasn't clear to me when starting out whether all parameters expect strings or if python types would work too (eg if Polygon would accept a list of points like [(0,0), (0,1),...]

A tag for dash-svg?

Many thanks for your nice work.
I just really don't know how to make this code using dash-svg.
Please let me know bro...
""
//< svg id="circle">
// < a xlink:href="https://www.google.com" style="cursor: pointer" target="_blank">
// < circle cx="125" cy="70" r="60" stroke="darkblue" stroke-width="3" fill="green" />
// < /a>
///< svg>
"""

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.