diff --git a/Macaw.xcodeproj/project.pbxproj b/Macaw.xcodeproj/project.pbxproj index fcc68ee8..934c7325 100644 --- a/Macaw.xcodeproj/project.pbxproj +++ b/Macaw.xcodeproj/project.pbxproj @@ -512,6 +512,16 @@ A74C81ED229284790085A832 /* struct-use-01-t-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C81EB229284780085A832 /* struct-use-01-t-manual.svg */; }; A74C81F12292B3940085A832 /* color-prop-05-t-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C81F02292B3940085A832 /* color-prop-05-t-manual.svg */; }; A74C81F32292B45E0085A832 /* color-prop-05-t-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C81F22292B45D0085A832 /* color-prop-05-t-manual.reference */; }; + A74C821F2297D4810085A832 /* coords-trans-13-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C821A2297D4800085A832 /* coords-trans-13-f-manual.svg */; }; + A74C82202297D4810085A832 /* coords-trans-14-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C821B2297D4800085A832 /* coords-trans-14-f-manual.svg */; }; + A74C82212297D4810085A832 /* coords-trans-11-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C821C2297D4800085A832 /* coords-trans-11-f-manual.svg */; }; + A74C82222297D4810085A832 /* coords-trans-10-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C821D2297D4800085A832 /* coords-trans-10-f-manual.svg */; }; + A74C82232297D4810085A832 /* coords-trans-12-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C821E2297D4810085A832 /* coords-trans-12-f-manual.svg */; }; + A74C82292297D5350085A832 /* coords-trans-12-f-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82242297D5340085A832 /* coords-trans-12-f-manual.reference */; }; + A74C822A2297D5350085A832 /* coords-trans-11-f-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82252297D5340085A832 /* coords-trans-11-f-manual.reference */; }; + A74C822B2297D5350085A832 /* coords-trans-14-f-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82262297D5340085A832 /* coords-trans-14-f-manual.reference */; }; + A74C822C2297D5350085A832 /* coords-trans-10-f-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82272297D5340085A832 /* coords-trans-10-f-manual.reference */; }; + A74C822D2297D5350085A832 /* coords-trans-13-f-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82282297D5350085A832 /* coords-trans-13-f-manual.reference */; }; A74C82322297D8B40085A832 /* shapes-rect-06-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C822E2297D8B30085A832 /* shapes-rect-06-f-manual.svg */; }; A74C82332297D8B40085A832 /* shapes-rect-02-t-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C822F2297D8B30085A832 /* shapes-rect-02-t-manual.svg */; }; A74C82342297D8B40085A832 /* shapes-rect-03-t-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82302297D8B30085A832 /* shapes-rect-03-t-manual.svg */; }; @@ -941,6 +951,16 @@ A74C81EB229284780085A832 /* struct-use-01-t-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "struct-use-01-t-manual.svg"; sourceTree = ""; }; A74C81F02292B3940085A832 /* color-prop-05-t-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "color-prop-05-t-manual.svg"; sourceTree = ""; }; A74C81F22292B45D0085A832 /* color-prop-05-t-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "color-prop-05-t-manual.reference"; sourceTree = ""; }; + A74C821A2297D4800085A832 /* coords-trans-13-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "coords-trans-13-f-manual.svg"; sourceTree = ""; }; + A74C821B2297D4800085A832 /* coords-trans-14-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "coords-trans-14-f-manual.svg"; sourceTree = ""; }; + A74C821C2297D4800085A832 /* coords-trans-11-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "coords-trans-11-f-manual.svg"; sourceTree = ""; }; + A74C821D2297D4800085A832 /* coords-trans-10-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "coords-trans-10-f-manual.svg"; sourceTree = ""; }; + A74C821E2297D4810085A832 /* coords-trans-12-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "coords-trans-12-f-manual.svg"; sourceTree = ""; }; + A74C82242297D5340085A832 /* coords-trans-12-f-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "coords-trans-12-f-manual.reference"; sourceTree = ""; }; + A74C82252297D5340085A832 /* coords-trans-11-f-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "coords-trans-11-f-manual.reference"; sourceTree = ""; }; + A74C82262297D5340085A832 /* coords-trans-14-f-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "coords-trans-14-f-manual.reference"; sourceTree = ""; }; + A74C82272297D5340085A832 /* coords-trans-10-f-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "coords-trans-10-f-manual.reference"; sourceTree = ""; }; + A74C82282297D5350085A832 /* coords-trans-13-f-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "coords-trans-13-f-manual.reference"; sourceTree = ""; }; A74C822E2297D8B30085A832 /* shapes-rect-06-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "shapes-rect-06-f-manual.svg"; sourceTree = ""; }; A74C822F2297D8B30085A832 /* shapes-rect-02-t-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "shapes-rect-02-t-manual.svg"; sourceTree = ""; }; A74C82302297D8B30085A832 /* shapes-rect-03-t-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "shapes-rect-03-t-manual.svg"; sourceTree = ""; }; @@ -1424,6 +1444,16 @@ 5B1AE1F220B6A669007EECCB /* coords-trans-08-t-manual.svg */, 5B1AE20720B6A669007EECCB /* coords-trans-09-t-manual.reference */, 5B1AE1E520B6A669007EECCB /* coords-trans-09-t-manual.svg */, + A74C82272297D5340085A832 /* coords-trans-10-f-manual.reference */, + A74C821D2297D4800085A832 /* coords-trans-10-f-manual.svg */, + A74C82252297D5340085A832 /* coords-trans-11-f-manual.reference */, + A74C821C2297D4800085A832 /* coords-trans-11-f-manual.svg */, + A74C82242297D5340085A832 /* coords-trans-12-f-manual.reference */, + A74C821E2297D4810085A832 /* coords-trans-12-f-manual.svg */, + A74C82282297D5350085A832 /* coords-trans-13-f-manual.reference */, + A74C821A2297D4800085A832 /* coords-trans-13-f-manual.svg */, + A74C82262297D5340085A832 /* coords-trans-14-f-manual.reference */, + A74C821B2297D4800085A832 /* coords-trans-14-f-manual.svg */, 5B1AE1CC20B6A669007EECCB /* coords-transformattr-01-f-manual.reference */, 5B1AE1E320B6A669007EECCB /* coords-transformattr-01-f-manual.svg */, 5B1AE1D020B6A669007EECCB /* coords-transformattr-02-f-manual.reference */, @@ -1813,6 +1843,7 @@ 5B1AE2DA20B6A669007EECCB /* color-prop-02-f-manual.reference in Resources */, 5B1AE26620B6A669007EECCB /* painting-fill-04-t-manual.svg in Resources */, 5B3713A420BE9D8A004BB6EE /* shapes-grammar-01-f-manual.svg in Resources */, + A74C822D2297D5350085A832 /* coords-trans-13-f-manual.reference in Resources */, 5B1AE26C20B6A669007EECCB /* painting-fill-05-b-manual.svg in Resources */, 5B37139920BE95D7004BB6EE /* pservers-grad-02-b-manual.reference in Resources */, 5B1AE2D620B6A669007EECCB /* coords-trans-03-t-manual.svg in Resources */, @@ -1848,6 +1879,7 @@ 5B1AE29C20B6A669007EECCB /* paths-data-01-t-manual.reference in Resources */, 5B1AE29320B6A669007EECCB /* coords-trans-09-t-manual.svg in Resources */, 5B1AE2DC20B6A669007EECCB /* struct-defs-01-t-manual.svg in Resources */, + A74C821F2297D4810085A832 /* coords-trans-13-f-manual.svg in Resources */, A74C82052296BFC60085A832 /* paths-data-20-f-manual.reference in Resources */, 5B1AE29020B6A669007EECCB /* painting-stroke-08-t-manual.svg in Resources */, 5B1AE2A720B6A669007EECCB /* paths-data-09-t-manual.svg in Resources */, @@ -1865,6 +1897,7 @@ 5B1AE25620B6A669007EECCB /* paths-data-05-t-manual.reference in Resources */, 5B1AE2D020B6A669007EECCB /* struct-defs-01-t-manual.reference in Resources */, 5B1AE25020B6A669007EECCB /* render-elems-01-t-manual.reference in Resources */, + A74C822C2297D5350085A832 /* coords-trans-10-f-manual.reference in Resources */, 5B1AE24520B6A669007EECCB /* struct-frag-01-t-manual.reference in Resources */, 5B1AE25B20B6A669007EECCB /* painting-stroke-01-t-manual.svg in Resources */, A74C823E2297DB2C0085A832 /* shapes-rect-03-t-manual.reference in Resources */, @@ -1883,6 +1916,7 @@ 5B1AE2B420B6A669007EECCB /* shapes-ellipse-02-t-manual.svg in Resources */, 5B1AE2A120B6A669007EECCB /* paths-data-02-t-manual.reference in Resources */, 5B37139B20BE95D7004BB6EE /* pservers-grad-07-b-manual.svg in Resources */, + A74C82212297D4810085A832 /* coords-trans-11-f-manual.svg in Resources */, 5B1AE2B920B6A669007EECCB /* painting-control-02-f-manual.svg in Resources */, 5B7E79DE20D2781A00C50BCF /* masking-intro-01-f-manual.reference in Resources */, 5B1AE28A20B6A669007EECCB /* shapes-polygon-01-t-manual.reference in Resources */, @@ -1939,8 +1973,10 @@ 5B1AE24E20B6A669007EECCB /* paths-data-14-t-manual.svg in Resources */, 57CAB1301D7832E000FD8E47 /* group.svg in Resources */, 5B1AE28820B6A669007EECCB /* text-fonts-02-t-manual.svg in Resources */, + A74C82232297D4810085A832 /* coords-trans-12-f-manual.svg in Resources */, 5B1AE29920B6A669007EECCB /* pservers-grad-stops-01-f-manual.svg in Resources */, 5B1AE27520B6A669007EECCB /* struct-frag-04-t-manual.reference in Resources */, + A74C82292297D5350085A832 /* coords-trans-12-f-manual.reference in Resources */, 5B1AE28720B6A669007EECCB /* render-elems-03-t-manual.svg in Resources */, 5B1AE2AD20B6A669007EECCB /* painting-stroke-05-t-manual.reference in Resources */, 5B1AE25920B6A669007EECCB /* coords-trans-01-b-manual.svg in Resources */, @@ -1959,6 +1995,7 @@ 5B1AE2AE20B6A669007EECCB /* shapes-circle-02-t-manual.reference in Resources */, 5B1AE29520B6A669007EECCB /* shapes-ellipse-03-f-manual.reference in Resources */, 5B1AE23820B6A669007EECCB /* color-prop-01-b-manual.svg in Resources */, + A74C822A2297D5350085A832 /* coords-trans-11-f-manual.reference in Resources */, 5B1AE24620B6A669007EECCB /* painting-control-01-f-manual.svg in Resources */, 5B1AE2B120B6A669007EECCB /* color-prop-03-t-manual.svg in Resources */, A74C81EC229284790085A832 /* struct-use-01-t-manual.reference in Resources */, @@ -1986,11 +2023,14 @@ 5B1AE2D820B6A669007EECCB /* metadata-example-01-t-manual.svg in Resources */, 5B1AE2C620B6A669007EECCB /* painting-fill-05-b-manual.reference in Resources */, 57CAB1331D7832E000FD8E47 /* polyline.svg in Resources */, + A74C822B2297D5350085A832 /* coords-trans-14-f-manual.reference in Resources */, 5B1AE2DE20B6A669007EECCB /* painting-control-03-f-manual.svg in Resources */, 5B1AE25520B6A669007EECCB /* paths-data-15-t-manual.reference in Resources */, 5B1AE24D20B6A669007EECCB /* paths-data-13-t-manual.svg in Resources */, + A74C82202297D4810085A832 /* coords-trans-14-f-manual.svg in Resources */, 5B270B5D214BBC27001AD741 /* clearColor.reference in Resources */, 57CAB1311D7832E000FD8E47 /* line.svg in Resources */, + A74C82222297D4810085A832 /* coords-trans-10-f-manual.svg in Resources */, 57B7A4DF1EE70D17009D78D7 /* logo.png in Resources */, 5B1AE24F20B6A669007EECCB /* painting-stroke-02-t-manual.reference in Resources */, 5B1AE28420B6A669007EECCB /* shapes-polyline-01-t-manual.reference in Resources */, diff --git a/MacawTests/MacawSVGTests.swift b/MacawTests/MacawSVGTests.swift index 23774fa6..e6755d8a 100644 --- a/MacawTests/MacawSVGTests.swift +++ b/MacawTests/MacawSVGTests.swift @@ -281,10 +281,62 @@ class MacawSVGTests: XCTestCase { validateJSON("paths-data-12-t-manual") } + func testCoordsTrans01() { + validateJSON("coords-trans-01-b-manual") + } + + func testCoordsTrans02() { + validateJSON("coords-trans-02-t-manual") + } + + func testCoordsTrans03() { + validateJSON("coords-trans-03-t-manual") + } + + func testCoordsTrans04() { + validateJSON("coords-trans-04-t-manual") + } + + func testCoordsTrans05() { + validateJSON("coords-trans-05-t-manual") + } + func testCoordsTrans06() { validateJSON("coords-trans-06-t-manual") } + func testCoordsTrans07() { + validateJSON("coords-trans-07-t-manual") + } + + func testCoordsTrans08() { + validateJSON("coords-trans-08-t-manual") + } + + func testCoordsTrans09() { + validateJSON("coords-trans-09-t-manual") + } + + func testCoordsTrans10() { + validateJSON("coords-trans-10-f-manual") + } + + func testCoordsTrans11() { + validateJSON("coords-trans-11-f-manual") + } + + func testCoordsTrans12() { + validateJSON("coords-trans-12-f-manual") + } + + func testCoordsTrans13() { + validateJSON("coords-trans-13-f-manual") + } + + func testCoordsTrans14() { + validateJSON("coords-trans-14-f-manual") + } + func testCoordsCoord01() { validateJSON("coords-coord-01-t-manual") } @@ -321,14 +373,6 @@ class MacawSVGTests: XCTestCase { validateJSON("paths-data-06-t-manual") } - func testCoordsTrans07() { - validateJSON("coords-trans-07-t-manual") - } - - func testCoordsTrans01() { - validateJSON("coords-trans-01-b-manual") - } - func testPaintingStroke01() { validateJSON("painting-stroke-01-t-manual") } @@ -441,10 +485,6 @@ class MacawSVGTests: XCTestCase { validateJSON("coords-transformattr-01-f-manual") } - func testCoordsTrans09() { - validateJSON("coords-trans-09-t-manual") - } - func testShapesCircle01() { validateJSON("shapes-circle-01-t-manual") } @@ -473,10 +513,6 @@ class MacawSVGTests: XCTestCase { validateJSON("painting-stroke-09-t-manual") } - func testCoordsTrans08() { - validateJSON("coords-trans-08-t-manual") - } - func testPaintingFill01() { validateJSON("painting-fill-01-t-manual") } @@ -529,14 +565,6 @@ class MacawSVGTests: XCTestCase { validateJSON("coords-coord-02-t-manual") } - func testCoordsTrans05() { - validateJSON("coords-trans-05-t-manual") - } - - func testCoordsTrans02() { - validateJSON("coords-trans-02-t-manual") - } - func testPathsData02() { validateJSON("paths-data-02-t-manual") } @@ -557,14 +585,6 @@ class MacawSVGTests: XCTestCase { validateJSON("painting-stroke-05-t-manual") } - func testCoordsTrans03() { - validateJSON("coords-trans-03-t-manual") - } - - func testCoordsTrans04() { - validateJSON("coords-trans-04-t-manual") - } - func testMetadataExample01() { validateJSON("metadata-example-01-t-manual") } diff --git a/MacawTests/w3cSVGTests/coords-trans-10-f-manual.reference b/MacawTests/w3cSVGTests/coords-trans-10-f-manual.reference new file mode 100644 index 00000000..f2113416 --- /dev/null +++ b/MacawTests/w3cSVGTests/coords-trans-10-f-manual.reference @@ -0,0 +1,627 @@ +{ + "contents" : [ + { + "contents" : [ + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape" + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape" + } + ], + "node" : "Group", + "place" : "1, 0, 0, 1, 40, 20" + }, + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + }, + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 5 + } + } + ], + "node" : "Group", + "place" : "1, 0, 0, 1, 40, 20" + }, + { + "contents" : [ + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape" + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape" + } + ], + "node" : "Group", + "place" : "1, 0, 0, 1, 40, 20" + }, + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + }, + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 5 + } + } + ], + "node" : "Group", + "place" : "1, 0, 0, 1, 40, 20" + } + ], + "node" : "Group", + "place" : "1, 0, 0, 1, 0, 100" + } + ], + "node" : "Group" + }, + { + "contents" : [ + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 32, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 10, 340", + "text" : "$Revision: 1.9 $" + } + ], + "node" : "Group" + }, + { + "form" : { + "h" : 358, + "type" : "Rect", + "w" : 478, + "x" : 1, + "y" : 1 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + } + ], + "layout" : { + "scalingMode" : "meet", + "svgSize" : { + "height" : "100.0%", + "width" : "100.0%" + }, + "viewBox" : { + "h" : 360, + "type" : "Rect", + "w" : 480, + "x" : 0, + "y" : 0 + }, + "xAligningMode" : "mid", + "yAligningMode" : "mid" + }, + "node" : "Canvas" +} \ No newline at end of file diff --git a/MacawTests/w3cSVGTests/coords-trans-10-f-manual.svg b/MacawTests/w3cSVGTests/coords-trans-10-f-manual.svg new file mode 100644 index 00000000..b862af00 --- /dev/null +++ b/MacawTests/w3cSVGTests/coords-trans-10-f-manual.svg @@ -0,0 +1,90 @@ + + + + + + + + + + +

+ Translation is equivalent to the matrix [1 0 0 1 tx ty], where 'tx' + and 'ty' are the distances to translate coordinates in X and Y + respectively. The test overlays a group of black graphics elements + with a 'translate' transform specified on top of an identical group + of red elements with the equivalent 'matrix' transform and vice + versa. +

+ + +

+ Run the test. No interaction required. +

+
+ +

+ Test passes if there is no red visible on the page. +

+
+ + $RCSfile: coords-trans-10-f.svg,v $ + + + + + + + + + + + + + Filler Text + + + + + + + Filler Text + + + + + + + + Filler Text + + + + + + + Filler Text + + + + + + + + $Revision: 1.9 $ + + + + diff --git a/MacawTests/w3cSVGTests/coords-trans-11-f-manual.reference b/MacawTests/w3cSVGTests/coords-trans-11-f-manual.reference new file mode 100644 index 00000000..c94401f8 --- /dev/null +++ b/MacawTests/w3cSVGTests/coords-trans-11-f-manual.reference @@ -0,0 +1,627 @@ +{ + "contents" : [ + { + "contents" : [ + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape" + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape" + } + ], + "node" : "Group", + "place" : "1.2, 0, 0, 2.5, 0, 0" + }, + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + }, + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 5 + } + } + ], + "node" : "Group", + "place" : "1.2, 0, 0, 2.5, 0, 0" + }, + { + "contents" : [ + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape" + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape" + } + ], + "node" : "Group", + "place" : "1.2, 0, 0, 2.5, 0, 0" + }, + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + }, + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 5 + } + } + ], + "node" : "Group", + "place" : "1.2, 0, 0, 2.5, 0, 0" + } + ], + "node" : "Group", + "place" : "1, 0, 0, 1, 0, 150" + } + ], + "node" : "Group" + }, + { + "contents" : [ + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 32, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 10, 340", + "text" : "$Revision: 1.8 $" + } + ], + "node" : "Group" + }, + { + "form" : { + "h" : 358, + "type" : "Rect", + "w" : 478, + "x" : 1, + "y" : 1 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + } + ], + "layout" : { + "scalingMode" : "meet", + "svgSize" : { + "height" : "100.0%", + "width" : "100.0%" + }, + "viewBox" : { + "h" : 360, + "type" : "Rect", + "w" : 480, + "x" : 0, + "y" : 0 + }, + "xAligningMode" : "mid", + "yAligningMode" : "mid" + }, + "node" : "Canvas" +} \ No newline at end of file diff --git a/MacawTests/w3cSVGTests/coords-trans-11-f-manual.svg b/MacawTests/w3cSVGTests/coords-trans-11-f-manual.svg new file mode 100644 index 00000000..501ee1cd --- /dev/null +++ b/MacawTests/w3cSVGTests/coords-trans-11-f-manual.svg @@ -0,0 +1,86 @@ + + + + + + + + + + +

+ Scaling is equivalent to the matrix [sx 0 0 xy 0 0], where one unit in the X and Y directions in the new coordinate system equals 'sx' and 'sy' units in the previous coordinate system respectively.The test overlays a group of black graphics elements with a 'scale' transform specified on top of an identical group of red elements + with the equivalent 'matrix' transform and vice versa. +

+ + +

+Run the test. No interaction required. +

+
+ +

+ Test passes if there is no red visible on the page. +

+
+ + $RCSfile: coords-trans-11-f.svg,v $ + + + + + + + + + + + + + Filler Text + + + + + + + Filler Text + + + + + + + + Filler Text + + + + + + + Filler Text + + + + + + + + $Revision: 1.8 $ + + + + diff --git a/MacawTests/w3cSVGTests/coords-trans-12-f-manual.reference b/MacawTests/w3cSVGTests/coords-trans-12-f-manual.reference new file mode 100644 index 00000000..963aa1c7 --- /dev/null +++ b/MacawTests/w3cSVGTests/coords-trans-12-f-manual.reference @@ -0,0 +1,633 @@ +{ + "contents" : [ + { + "contents" : [ + { + "contents" : [ + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape" + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape" + } + ], + "node" : "Group", + "place" : "0, 1, -1, 0, 0, 0" + }, + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + }, + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 5 + } + } + ], + "node" : "Group", + "place" : "0, 1, -1, 0, 0, 0" + } + ], + "node" : "Group", + "place" : "1, 0, 0, 1, 200, 0" + }, + { + "contents" : [ + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape" + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape" + } + ], + "node" : "Group", + "place" : "0, 1, -1, 0, 0, 0" + }, + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + }, + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 5 + } + } + ], + "node" : "Group", + "place" : "0, 1, -1, 0, 0, 0" + } + ], + "node" : "Group", + "place" : "1, 0, 0, 1, 310, 0" + } + ], + "node" : "Group" + }, + { + "contents" : [ + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 32, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 10, 340", + "text" : "$Revision: 1.6 $" + } + ], + "node" : "Group" + }, + { + "form" : { + "h" : 358, + "type" : "Rect", + "w" : 478, + "x" : 1, + "y" : 1 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + } + ], + "layout" : { + "scalingMode" : "meet", + "svgSize" : { + "height" : "100.0%", + "width" : "100.0%" + }, + "viewBox" : { + "h" : 360, + "type" : "Rect", + "w" : 480, + "x" : 0, + "y" : 0 + }, + "xAligningMode" : "mid", + "yAligningMode" : "mid" + }, + "node" : "Canvas" +} \ No newline at end of file diff --git a/MacawTests/w3cSVGTests/coords-trans-12-f-manual.svg b/MacawTests/w3cSVGTests/coords-trans-12-f-manual.svg new file mode 100644 index 00000000..6984bb11 --- /dev/null +++ b/MacawTests/w3cSVGTests/coords-trans-12-f-manual.svg @@ -0,0 +1,88 @@ + + + + + + + + + + +

+ Rotation about the origin is equivalent to the matrix [cos(a) sin(a) -sin(a) cos(a) 0 0], which has the effect of rotating the coordinate system axes by angle 'a'. The test overlays a group of black graphics elements with a 'rotate' transform specified on top of an identical group of red elements + with the equivalent 'matrix' transform and vice versa. +

+ + +

+ Run the test. No interaction required. +

+
+ +

+ Test passes if there is no red visible on the page. +

+
+ + $RCSfile: coords-trans-12-f.svg,v $ + + + + + + + + + + + + + + Filler Text + + + + + + + Filler Text + + + + + + + + + Filler Text + + + + + + + Filler Text + + + + + + + + $Revision: 1.6 $ + + + + diff --git a/MacawTests/w3cSVGTests/coords-trans-13-f-manual.reference b/MacawTests/w3cSVGTests/coords-trans-13-f-manual.reference new file mode 100644 index 00000000..a84b7758 --- /dev/null +++ b/MacawTests/w3cSVGTests/coords-trans-13-f-manual.reference @@ -0,0 +1,627 @@ +{ + "contents" : [ + { + "contents" : [ + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape" + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape" + } + ], + "node" : "Group", + "place" : "1, 0, 1, 1, 0, 0" + }, + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + }, + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 5 + } + } + ], + "node" : "Group", + "place" : "1, 0, 1, 1, 0, 0" + }, + { + "contents" : [ + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape" + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape" + } + ], + "node" : "Group", + "place" : "1, 0, 1, 1, 0, 0" + }, + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + }, + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 5 + } + } + ], + "node" : "Group", + "place" : "1, 0, 1, 1, 0, 0" + } + ], + "node" : "Group", + "place" : "1, 0, 0, 1, 0, 150" + } + ], + "node" : "Group" + }, + { + "contents" : [ + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 32, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 10, 340", + "text" : "$Revision: 1.6 $" + } + ], + "node" : "Group" + }, + { + "form" : { + "h" : 358, + "type" : "Rect", + "w" : 478, + "x" : 1, + "y" : 1 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + } + ], + "layout" : { + "scalingMode" : "meet", + "svgSize" : { + "height" : "100.0%", + "width" : "100.0%" + }, + "viewBox" : { + "h" : 360, + "type" : "Rect", + "w" : 480, + "x" : 0, + "y" : 0 + }, + "xAligningMode" : "mid", + "yAligningMode" : "mid" + }, + "node" : "Canvas" +} \ No newline at end of file diff --git a/MacawTests/w3cSVGTests/coords-trans-13-f-manual.svg b/MacawTests/w3cSVGTests/coords-trans-13-f-manual.svg new file mode 100644 index 00000000..5638c90c --- /dev/null +++ b/MacawTests/w3cSVGTests/coords-trans-13-f-manual.svg @@ -0,0 +1,87 @@ + + + + + + + + + + +

+ A skew transformation along the x-axis is equivalent to the matrix [1 0 tan(a) 1 0 0], which has the effect of skewing X coordinates by angle 'a'. +The test overlays a group of black graphics elements with a 'skewX' transform specified on top of an identical group of red elements + with the equivalent 'matrix' transform and vice versa. +

+ + +

+ Run the test. No interaction required. +

+
+ +

+ Test passes if there is no red visible on the page. +

+
+ + $RCSfile: coords-trans-13-f.svg,v $ + + + + + + + + + + + + + Filler Text + + + + + + + Filler Text + + + + + + + + Filler Text + + + + + + + Filler Text + + + + + + + + $Revision: 1.6 $ + + + + diff --git a/MacawTests/w3cSVGTests/coords-trans-14-f-manual.reference b/MacawTests/w3cSVGTests/coords-trans-14-f-manual.reference new file mode 100644 index 00000000..db9708f8 --- /dev/null +++ b/MacawTests/w3cSVGTests/coords-trans-14-f-manual.reference @@ -0,0 +1,633 @@ +{ + "contents" : [ + { + "contents" : [ + { + "contents" : [ + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape" + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape" + } + ], + "node" : "Group", + "place" : "1, 1, 0, 1, 0, 0" + }, + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + }, + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 5 + } + } + ], + "node" : "Group", + "place" : "1, 1, 0, 1, 0, 0" + }, + { + "contents" : [ + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape" + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape" + }, + { + "fill" : { + "type" : "Color", + "val" : 16711680 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape" + } + ], + "node" : "Group", + "place" : "1, 1, 0, 1, 0, 0" + }, + { + "contents" : [ + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "segments" : [ + { + "data" : [ + 20, + 20 + ], + "type" : "M" + }, + { + "data" : [ + 70, + 20 + ], + "type" : "L" + }, + { + "data" : [ + 45, + 60 + ], + "type" : "L" + }, + { + "data" : [ + + ], + "type" : "z" + } + ], + "type" : "Path" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "ellipse" : { + "cx" : 120, + "cy" : 35, + "rx" : 30, + "ry" : 10, + "type" : "Ellipse" + }, + "extent" : 6.2831853071795862, + "shift" : 0, + "type" : "Arc" + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 18, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 160, 40", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + }, + "text" : "Filler Text" + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "h" : 50, + "type" : "Rect", + "w" : 30, + "x" : 250, + "y" : 20 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + }, + { + "fill" : { + "type" : "Color", + "val" : 0 + }, + "form" : { + "type" : "Line", + "x1" : 310, + "x2" : 350, + "y1" : 20, + "y2" : 70 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 5 + } + } + ], + "node" : "Group", + "place" : "1, 1, 0, 1, 0, 0" + } + ], + "node" : "Group", + "place" : "1, 0, 0, 1, 0, 150" + } + ], + "node" : "Group", + "place" : ".704769, -.256515, .256515, .704769, 0, 0" + } + ], + "node" : "Group" + }, + { + "contents" : [ + { + "align" : "min", + "baseline" : "bottom", + "fill" : { + "type" : "Color", + "val" : 0 + }, + "font" : { + "name" : "SVGFreeSansASCII,sans-serif", + "size" : 32, + "weight" : "normal" + }, + "node" : "Text", + "place" : "1, 0, 0, 1, 10, 340", + "text" : "$Revision: 1.6 $" + } + ], + "node" : "Group" + }, + { + "form" : { + "h" : 358, + "type" : "Rect", + "w" : 478, + "x" : 1, + "y" : 1 + }, + "node" : "Shape", + "stroke" : { + "cap" : "butt", + "dashes" : [ + + ], + "fill" : { + "type" : "Color", + "val" : 0 + }, + "join" : "miter", + "width" : 1 + } + } + ], + "layout" : { + "scalingMode" : "meet", + "svgSize" : { + "height" : "100.0%", + "width" : "100.0%" + }, + "viewBox" : { + "h" : 360, + "type" : "Rect", + "w" : 480, + "x" : 0, + "y" : 0 + }, + "xAligningMode" : "mid", + "yAligningMode" : "mid" + }, + "node" : "Canvas" +} \ No newline at end of file diff --git a/MacawTests/w3cSVGTests/coords-trans-14-f-manual.svg b/MacawTests/w3cSVGTests/coords-trans-14-f-manual.svg new file mode 100644 index 00000000..c05e9dad --- /dev/null +++ b/MacawTests/w3cSVGTests/coords-trans-14-f-manual.svg @@ -0,0 +1,89 @@ + + + + + + + + + + +

+ A skew transformation along the y-axis is equivalent to the matrix [1 tan(a) 0 1 0 0], which has the effect of skewing Y coordinates by angle 'a'. +The test overlays a group of black graphics elements with a 'skewY' transform specified on top of an identical group of red elements + with the equivalent 'matrix' transform and vice versa. +

+ + +

+ Run the test. No interaction required. +

+
+ +

+ Test passes if there is no red visible on the page. +

+
+ + $RCSfile: coords-trans-14-f.svg,v $ + + + + + + + + + + + + + + Filler Text + + + + + + + Filler Text + + + + + + + + Filler Text + + + + + + + Filler Text + + + + + + + + + $Revision: 1.6 $ + + + +