Giter VIP home page Giter VIP logo

tpsvg_android_svg_library's People

Contributors

kernald avatar trevorpage avatar

Stargazers

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

Watchers

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

tpsvg_android_svg_library's Issues

sample

could you release a sample application plz.

Add a Drawable class.

Add a Drawable extension class so that the rendered SVG image can be used as a Drawable. A Bitmap should be used to cache the rendered image internally.

Aside from the obvious advantages of having a Drawable class, such a class would also be particularly useful for implementing a pattern fill feature, which I'm raising as a separate issue.

Broken support for closed arc shape with two radii

In Inkscape, a semi-circle arc can be made either open or closed. If it's made closed then there are two radii added to make it a fully-enclosed shape.

When attempting to render a closed arc with the two radii, one radial is missing. This is suspected to be due to broken support of the 'z' command possibly, so the path is not completed properly.

A second issue is that I did this using a very thick path, and the arc and radial don't look nicely joined which suggests I need to properly sort out path miter.

Path that shows the issues:

<path
   transform="matrix(1.6694954,0,0,1.6694954,-490.42618,100.25687)"
   sodipodi:type="arc"
   style="fill:none;stroke:#38a3a6;stroke-width:30;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
   id="path2987-1-1-4"
   sodipodi:cx="350"
   sodipodi:cy="512.36218"
   sodipodi:rx="160"
   sodipodi:ry="160"
   d="m 484.18729,425.21994 a 160,160 0 0 1 25.20386,73.19732 L 350,512.36218 z"
   sodipodi:start="5.7072267"
   sodipodi:end="6.1959188" />

License

Which license does apply for this library?

Pattern fill support.

Introduce support for pattern fill. I personally require support for the type of pattern fill where the pattern tile is itself defined in terms of vectors, though support for pattern fill using an external bitmap tile might also be nice to have. To achieve the pattern fill based on a vector pattern, I'm proposing to use sort of recursion whereby the pattern vector image is processed by a child SVGParserRenderer, and then a resulting bitmap from that would then be used by a BitmapShader for the Paint that is performing the pattern fill.

When group <g> element has gradient fill, child text elements inherit it

In following example, text should be white (when viewed in Inkscape) but is actually shown with the gradient:

<g
   id="abcd"
   transform="matrix(0.73981966,0,0,0.7515789,11.907041,9.6662007)"
   style="fill-opacity:1;fill:url(#linearGradient3843)">


         <text
     xml:space="preserve"
     style="font-size:64.37111664px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:-1.34106481px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Helvetica;-inkscape-font-specification:Helvetica"
     x="160.09323"
     y="50.767563"
     id="text3071"
     sodipodi:linespacing="125%"
     transform="scale(1.0079161,0.99214609)"><tspan
       sodipodi:role="line"
       id="tspan3073"
       x="160.09323"
       y="50.767563"
       style="font-size:53.64259338px;fill:#ffffff">1234</tspan></text>

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.