Loading ...
Sorry, an error occurred while loading the content.
 

Re: Gaps in patterns

Expand Messages
  • Peter Sorotokin
    This looks like a bug, I will log it. A workaround would be to put shape-rendering:optimizeSpeed on the element that *references* pattern. You still can use
    Message 1 of 4 , Mar 29, 2001
      This looks like a bug, I will log it. A workaround would
      be to put shape-rendering:optimizeSpeed on the element
      that *references* pattern. You still can use
      shape-rendering:optimizeQuality on the pattern element
      itself if you want the content of the pattern to be
      rendered with antialiasing.

      Thanks,

      Peter

      --- In svg-developers@y..., roger.holmes@m... wrote:
      > Hi Peter and all,
      >
      > Here is some SVG which shows the probelm with gaps between tiles.
      > I have also attached it as a file.
      >
      > Roger Holmes.
      >
      >
      >
      > <?xml version="1.0" standalone="no"?>
      > <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"
      > "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
      > <svg width="10cm" height="10cm" viewBox="0 0 1200 1200">
      > <defs> <pattern id="pat1" y="100%" width="128" height="128"
      viewbox="0 0 128 128" patternUnits="userSpaceOnUse" >
      > <rect x="-4" y="-4" width="136" height="136"
      style="fill:#4100FF" />
      > <rect x="36" y="40" width="60" height="52" style="fill:#DD0806" />
      > </pattern> </defs>
      > <path d="M162 234V901H937V234H162Z" style="fill:url(#pat1);fill-
      rule:evenodd"/>
      > </svg>
      >
      >
      >
      >
      > >> Hi all,
      > >>
      > >> I am new to SVG and am having a problem with patterns.
      > >>
      > >> Even if I define a sort of background rectangle which more
      > >> than covers the whole pattern area, when it gets drawn
      > >> (By Adobe's latest plugin for Explorer on Mac), I get
      > >> white lines between the tiles at default scale. When I
      > >> zoom in they disappear.
      > >>
      > >> Any ideas how to fix this?
      > >>
      > >> Roger Holmes, Microspot Ltd. (That SPOT not SOFT by the way)
      > >
      > >Any sample code?
      > >
      > >Peter
      > >
    Your message has been successfully submitted and would be delivered to recipients shortly.