| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/inkscape/extensions/__pycache__/ |
Upload File : |
o
0�a�D � @ s� d Z ddlmZmZmZmZmZmZ ddlZddlm Z m
Z
ed�\ZZ
dd� Zdd � Zd
d� Zdd
� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� ZG d$d%� d%e�ZG d&d'� d'ej�Z e!d(kr|e � �"� dS dS ))ag
This extension allows you to draw various triangle constructions
It requires a path to be selected
It will use the first three nodes of this path
Dimensions of a triangle__
/`__
/ a_c``--__
/ ``--__ s_a
s_b / ``--__
/a_a a_b`--__
/--------------------------------``B
A s_b
� )�acos�cos�pi�sin�sqrt�tanN)�PathElement�Circle� c C s� | dkr|j }|jt|j�|jd�}n
| }|jt|j�|jd�}t||�\}} t|�t| �t|�d�}
|� t
di |
���}||_||_d S )Nr ��strokezstroke-width�fill)�cx�cy�r� )
�d_rad�d_col�str�d_th�d_fill�c_col�c_th�c_fill�get_cartesian_pt�addr �style�label)�rad�centre�paramsr �name�parentr �
circ_styler r �circ_attribs�elemr r �4/usr/share/inkscape/extensions/draw_from_triangle.py�draw_SVG_circle. s
r'