| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- |
| 3 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 4 |
contributor license agreements. See the NOTICE file distributed with |
| 5 |
this work for additional information regarding copyright ownership. |
| 6 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 7 |
(the "License"); you may not use this file except in compliance with |
| 8 |
the License. You may obtain a copy of the License at |
| 9 |
|
| 10 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 11 |
|
| 12 |
Unless required by applicable law or agreed to in writing, software |
| 13 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 14 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 |
See the License for the specific language governing permissions and |
| 16 |
limitations under the License. |
| 17 |
--> |
| 18 |
|
| 19 |
<!-- |
| 20 |
- [BATIK-1361]: https://issues.apache.org/jira/browse/BATIK-1361 |
| 21 |
--> |
| 22 |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" |
| 23 |
width="200" height="200" viewBox="0 0 200 200"> |
| 24 |
<title>Animated rotate transform with center</title> |
| 25 |
|
| 26 |
<g stroke="red"> |
| 27 |
<line x1="0" y1="100.5" x2="200" y2="100.5" /> |
| 28 |
<line x1="100.5" y1="0" x2="100.5" y2="200" /> |
| 29 |
</g> |
| 30 |
<rect x="50.5" y="50.5" width="99" height="99" |
| 31 |
stroke="currentColor" fill="none" |
| 32 |
stroke-opacity="0.5" stroke-dasharray="0 0.5 5 4.5" /> |
| 33 |
|
| 34 |
<g transform="translate(50 50)" id="container"> |
| 35 |
<rect x="0" y="0" width="100" height="100" |
| 36 |
stroke="none" fill="cornflowerblue"> |
| 37 |
<animateTransform attributeName="transform" type="rotate" |
| 38 |
from="270 50 50" to="630 50 50" dur="4s" /> |
| 39 |
</rect> |
| 40 |
</g> |
| 41 |
|
| 42 |
</svg> |