| 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�a� � @ sJ d Z ddlZddlmZmZ G dd� deej�Zedkr#e� �� dS dS )z-Extension to sssign jessyInk views to objects� N)�
JessyInkMixin�_c @ s e Zd ZdZdd� Zdd� ZdS )�Viewz Assign jessyInk views to objectsc C sB |j ddd� |j dtdd� |j dtdd� |j d tjd
� d S )Nz--tab�what)�destz--viewOrder� )�type�defaultz--viewDurationg�������?z--removeView)r )�add_argument�int�float�inkex�Boolean)�self�pars� r �//usr/share/inkscape/extensions/jessyink_view.py�
add_arguments s zView.add_argumentsc C s� | � � | jj�� }|d u rt�td���| jjsYt | jj
�}|�d�D ]}t�|�
d��}|d |kr:|�dd � q$|�dtjd|t| jjd �d�� | �d� | �d � d S | �d� d S )
Nz`No object selected. Please select the object you want to assign a view to and then press apply.
zJancestor::svg:g[@inkscape:groupmode='layer']/descendant::*[@jessyink:view]z
jessyink:view�order�viewi� )�namer �length�effectIn� effectOut)�is_installed�svg�selected�firstr
�AbortExtensionr �options�
removeView�str� viewOrder�xpath�Style�get�setr �viewDuration�attr_remove)r �rect�
view_order�node� prop_dictr r r �effect s&