| <?xml version="1.0" standalone="no"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" |
| "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| |
| <!-- ====================================================================== --> |
| <!-- Test clip property with 'shape-rendering' set to 'geometricPrecision' --> |
| <!-- --> |
| <!-- @author tkormann@apache.org --> |
| <!-- @author deweese@apache.org --> |
| <!-- @version $Id$ --> |
| <!-- ====================================================================== --> |
| |
| <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| |
| <svg id="body" width="450" height="500" viewBox="0 0 450 500" |
| xmlns="http://www.w3.org/2000/svg" |
| xmlns:xlink="http://www.w3.org/1999/xlink"> |
| |
| <title>Clip Test (geometricPrecision)</title> |
| |
| <!-- ============================================================= --> |
| <!-- Test content --> |
| <!-- ============================================================= --> |
| <g id="testContent"> |
| |
| <text x="225" y="40" class="title" |
| >Clip Test (geometricPrecision)</text> |
| |
| <defs shape-rendering="geometricPrecision"> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : default (userSpaceOnUse) --> |
| <!-- ============================================== --> |
| <clipPath id="clip_1_1"> |
| <circle cx="36" cy="60" r="36"/> |
| <circle cx="84" cy="60" r="36"/> |
| </clipPath> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : objectBoundingBox --> |
| <!-- ============================================== --> |
| <clipPath id="clip_1_2" clipPathUnits="objectBoundingBox"> |
| <circle cx=".3" cy=".5" r=".3"/> |
| <circle cx=".7" cy=".5" r=".3"/> |
| </clipPath> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : userSpaceOnUse --> |
| <!-- ============================================== --> |
| <clipPath id="clip_1_3" clipPathUnits="userSpaceOnUse"> |
| <circle cx="36" cy="60" r="36"/> |
| <circle cx="84" cy="60" r="36"/> |
| </clipPath> |
| |
| <clipPath id="clip00" clipPathUnits="objectBoundingBox"> |
| <circle cx=".5" cy=".5" r=".16"/> |
| </clipPath> |
| |
| <clipPath id="clip0" clipPathUnits="objectBoundingBox"> |
| <circle cx=".5" cy=".5" r=".16" style="clip-path:url(#clip00)"/> |
| </clipPath> |
| |
| <clipPath id="clip" clipPathUnits="objectBoundingBox" |
| style="clip-path:url(#clip0)"> |
| <circle cx=".5" cy=".5" r=".16"/> |
| </clipPath> |
| |
| <!-- ============================================== --> |
| <!-- clipPathUnits : default (userSpaceOnUse) --> |
| <!-- clip-path on the clipPath element --> |
| <!-- ============================================== --> |
| <clipPath id="clip_2_1" style="clip-path:url(#clip)"> |
| <circle cx="36" cy="60" r="36"/> |
| <circle cx="84" cy="60" r="36"/> |
| </clipPath> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : objectBoundingBox --> |
| <!-- clip-path on the clipPath element --> |
| <!-- ============================================== --> |
| <clipPath id="clip_2_2" clipPathUnits="objectBoundingBox" |
| style="clip-path:url(#clip)"> |
| <circle cx=".3" cy=".5" r=".3"/> |
| <circle cx=".7" cy=".5" r=".3"/> |
| </clipPath> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : userSpaceOnUse --> |
| <!-- clip-path on the clipPath element --> |
| <!-- ============================================== --> |
| <clipPath id="clip_2_3" clipPathUnits="userSpaceOnUse" |
| style="clip-path:url(#clip)"> |
| <circle cx="36" cy="60" r="36"/> |
| <circle cx="84" cy="60" r="36"/> |
| </clipPath> |
| |
| <!-- ============================================== --> |
| <!-- clipPathUnits : default (userSpaceOnUse) --> |
| <!-- clip-path on the clipPath children elements --> |
| <!-- ============================================== --> |
| <clipPath id="clip_3_1"> |
| <circle cx="36" cy="60" r="36" style="clip-path:url(#clip)"/> |
| <circle cx="84" cy="60" r="36" style="clip-path:url(#clip)"/> |
| </clipPath> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : objectBoundingBox --> |
| <!-- clip-path on the clipPath children elements --> |
| <!-- ============================================== --> |
| <clipPath id="clip_3_2" clipPathUnits="objectBoundingBox"> |
| <circle cx=".3" cy=".5" r=".3" style="clip-path:url(#clip)"/> |
| <circle cx=".7" cy=".5" r=".3" style="clip-path:url(#clip)"/> |
| </clipPath> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : userSpaceOnUse --> |
| <!-- clip-path on the clipPath children elements --> |
| <!-- ============================================== --> |
| <clipPath id="clip_3_3" clipPathUnits="userSpaceOnUse"> |
| <circle cx="36" cy="60" r="36" style="clip-path:url(#clip)"/> |
| <circle cx="84" cy="60" r="36" style="clip-path:url(#clip)"/> |
| </clipPath> |
| |
| </defs> |
| |
| <!-- ============================================== --> |
| <!-- clip_1_* --> |
| <!-- ============================================== --> |
| <g transform="translate(0 40)" class="legend"> |
| <g id="c1" transform="translate(20 20)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:PaleVioletRed; clip-path:url(#clip_1_1)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_1_1</text> |
| </g> |
| </g> |
| |
| <g id="c2" transform="translate(20 160)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:PaleVioletRed; clip-path:url(#clip_1_2)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_1_2</text> |
| </g> |
| </g> |
| |
| <g id="c3" transform="translate(20 300)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:PaleVioletRed; clip-path:url(#clip_1_3)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_1_2</text> |
| </g> |
| </g> |
| |
| <!-- ============================================== --> |
| <!-- clip_2_* --> |
| <!-- ============================================== --> |
| |
| <g id="c4" transform="translate(160 20)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:PaleVioletRed; clip-path:url(#clip_2_1)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_2_1</text> |
| </g> |
| </g> |
| |
| <g id="c5" transform="translate(160 160)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:PaleVioletRed; clip-path:url(#clip_2_2)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_2_2</text> |
| </g> |
| </g> |
| |
| <g id="c6" transform="translate(160 300)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:PaleVioletRed; clip-path:url(#clip_2_3)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_2_3</text> |
| </g> |
| </g> |
| |
| <!-- ============================================== --> |
| <!-- clip_3_* --> |
| <!-- ============================================== --> |
| |
| <g id="c7" transform="translate(300 20)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:PaleVioletRed; clip-path:url(#clip_3_1)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_3_1</text> |
| </g> |
| </g> |
| |
| <g id="c8" transform="translate(300 160)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:PaleVioletRed; clip-path:url(#clip_3_2)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_3_2</text> |
| </g> |
| </g> |
| |
| <g id="c9" transform="translate(300 300)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:PaleVioletRed; clip-path:url(#clip_3_3)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_3_2</text> |
| </g> |
| </g> |
| </g> |
| |
| </g> |
| |
| <!-- ============================================================= --> |
| <!-- Batik sample mark --> |
| <!-- ============================================================= --> |
| <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| |
| </svg> |