Initial fixes for userSpaceOnUse
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
if( ( self = [super initWithFrame:frameRect] ) != nil )
|
||||
{
|
||||
svg = [self svg];
|
||||
svg.renderQuality = IJSVGRenderQualityLow;
|
||||
svg.renderQuality = IJSVGRenderQualityFullResolution;
|
||||
svg.renderingBackingScaleHelper = ^{
|
||||
return self.window.backingScaleFactor;
|
||||
};
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
- (IJSVG *)svg
|
||||
{
|
||||
return [IJSVG svgNamed:@"car"];
|
||||
return [IJSVG svgNamed:@"test 2"];
|
||||
}
|
||||
|
||||
- (void)drawRect:(NSRect)dirtyRect
|
||||
|
||||
@@ -1,20 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<svg width="120" height="120"
|
||||
viewPort="0 0 120 120" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<svg viewBox="-5 -5 10 10" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="-3" y="-3" width="6" height="6" />
|
||||
|
||||
<line stroke-linecap="butt"
|
||||
x1="30" y1="30" x2="30" y2="90"
|
||||
stroke="black" stroke-width="20"/>
|
||||
|
||||
<line stroke-linecap="round"
|
||||
x1="60" y1="30" x2="60" y2="90"
|
||||
stroke="black" stroke-width="20"/>
|
||||
|
||||
<line stroke-linecap="square"
|
||||
x1="90" y1="30" x2="90" y2="90"
|
||||
stroke="black" stroke-width="20"/>
|
||||
|
||||
<path d="M30,30 L30,90 M60,30 L60,90 M90,30 L90,90"
|
||||
stroke="white" />
|
||||
</svg>
|
||||
<rect x="-3" y="-3" width="6" height="6" fill="red"
|
||||
transform="skewY(30)" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 593 B After Width: | Height: | Size: 203 B |
Reference in New Issue
Block a user