File: //usr/share/inkscape/extensions/grid_polar.pyc
�
��Yc @ s� d Z d d l Z d d l Z d d l Z d d l Td d l m Z d � Z d � Z d � Z d e j
f d � � YZ e d
k r� e � Z
e
j � n d S( se
Copyright (C) 2007 John Beard john.j.beard@gmail.com
##This extension allows you to draw a polar grid in Inkscape.
##There is a wide range of options including subdivision and labels.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
i����N( t *( t computePointInNodec
C s� i d d 6t | � d 6| d 6} i t j | � d 6t | � d 6t | � d 6t | � d 6| t j d d
� 6} t j j | t j d d � | � } d S(
Ns #000000t strokes stroke-widtht fillt stylet cxt cyt rt labelt inkscapet circlet svg( t strt simplestylet formatStylet inkext addNSt etreet
SubElement(
R R R t widthR t namet parentR t circ_attribsR
( ( s, /usr/share/inkscape/extensions/grid_polar.pyt draw_SVG_circle s !
c C s� i d d 6t | � d 6d d 6} i t j | � d 6| t j d d � 6d t | � d
t | � d t | � d
t | � d 6} t j j | t j d
d � | � d S( Ns #000000R s stroke-widtht noneR R R R s M t ,s L t dt pathR ( R R
R R R R R ( t x1t y1t x2t y2R R R R t line_attribs( ( s, /usr/share/inkscape/extensions/grid_polar.pyt
draw_SVG_line$ s
!>c C s� i d d 6d d 6d d 6t | � d d 6d d
6d d 6d
d 6d
d 6d d 6} i t j | � d 6| t j d d � 6t | � d 6t | � d 6} t j j | t j d d � | � } | | _ d S( Nt centers
text-alignt tops vertical-alignt middles text-anchort pxs font-sizes 1.0s fill-opacityR R t normals font-weights
font-styles #000000R R R R t xt yt textR ( R R
R R R R R R) ( R'