| 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
5�aY � @ s` d Z ddlZddlmZmZmZmZmZ ddlm Z G dd� dej
�Zedkr.e� �
� dS dS )z"
Draws handles of selected paths.
� N)�Path�Curve�Move�Line� Quadratic)�Vector2dc @ s e Zd ZdZdd� ZdS )�HandleszK
Renders the handle lines for the selected curves onto the canvas.
c C s | j j�tj�D ]�}t� }t� }d }|j�� D ]U}|d u r#|� ||�}t
|t�rE|t|j
|j�t|j|j�t|j|j�t|j|j�g7 }n!t
|t�rf|t|j
|j�t|j|j�t|j
|j�t|j|j�g7 }|� ||�}q|spq|�� �t�� �}|�|j�|_dddddddd�|_qd S )N�miterz1.0pxz1.0z#000000�butt�none)zstroke-linejoinzstroke-widthzstroke-opacityzfill-opacity�strokezstroke-linecap�fill)�svg� selection�filter�inkex�PathElementr r �path�to_absolute� end_point�
isinstancer r �x2�y2r �x�y�x3�y3�x4�y4r � getparent�add� transform�style)�self�node�result�prev�start�seg�elem� r* �)/usr/share/inkscape/extensions/handles.py�effect s8
�
�
��zHandles.effectN)�__name__�
__module__�__qualname__�__doc__r, r* r* r* r+ r s r �__main__)r0 r �inkex.pathsr r r r r �inkex.transformsr �EffectExtensionr r- �runr* r* r* r+ �<module> s "�