@itachi3/mulit-point-touch
v1.0.2
Published
h5多点位触控识别
Downloads
5
Maintainers
Readme
��#� �Y�pMO执cƋ+R�(u�N�k�[$N�~执c�p�v�v<O' �
�
�
�
�#�#� ��N�~
�
�>�,g�]wQ�S(u�N�k�[$N�~�N�~pe�~�v�v<O'
��c�O�NYO&_�v<O�^�N�SY���v<O�^$N�y�k�[�e�l0;N��(u�Nh�5�5uP[pS�zO(u:Wof�����(u7b�L�6eƖ$N�~执cPWh6qT�(u,g�]wQۏL��k�[�(u7b�S9hncd�o�m��vt�o�u�c�h��N�N���S0R,g!k�p�Q�N�N�v@b g执c�pPWh�S�bY�pMO �
�
�
�
�#�#� �O(u
�
��[ň
�
��
��s�h�e�l�l�
�
�n�p�m� �i� �@�i�t�a�c�h�i�3�/�m�u�l�i�t�-�p�o�i�n�t�-�t�o�u�c�h�
�
�
��
�
�
�qQ�f2��N N�yO(u�e�l
�
�-� �h�a�n�d�l�e�S�i�m�i�l�a�r�i�t�y��Y���Ƌ+R
�
�-� �c�o�s�i�n�e�S�i�m�i�l�a�r�i�t�y��YO&_�v<O'Ƌ+R
�
�-� �M�u�l�t�i�P�o�i�n�t�T�o�u�c�h���f2�
N��$N�y�e_�vT�e�c�Od�e�b�u�g�g�e�r��Oo
SbpS��S.^�R�c�
�
�
�
�#�#�#� �h�a�n�d�l�e�S�i�m�i�l�a�r�i�t�y�
�
��
��j�s�
�
�i�m�p�o�r�t� �{� �h�a�n�d�l�e�S�i�m�i�l�a�r�i�t�y� �}� �f�r�o�m� �'�@�i�t�a�c�h�i�3�/�m�u�l�i�t�-�p�o�i�n�t�-�t�o�u�c�h�'�;�
�
�
�
�/�*�*�
�
� �*� �p�a�r�a�m�s�1�:��k�[�~1��t�y�p�e�:�n�u�m�b�e�r�[�]�[�]�
�
� �*� �p�a�r�a�m�s�2�:��k�[�~2��t�y�p�e�:�n�u�m�b�e�r�[�]�[�]�
�
� �*� �p�a�r�a�m�s�3�:��k�[�<P
�
� �*�/�
�
�h�a�n�d�l�e�S�i�m�i�l�a�r�i�t�y�(�
�
� � � � �[�[�1�,�2�]�,�[�2�,�3�]�,�[�3�,�4�]�]�,�
�
� � � � �[�[�2�,�4�]�,�[�2�,�4�]�,�[�3�,�4�]�]�,�
�
� � � � �1�0�)�
�
�
��
�
�
�#�#�#� �c�o�s�i�n�e�S�i�m�i�l�a�r�i�t�y�
�
��
��j�s�
�
�i�m�p�o�r�t� �{� �c�o�s�i�n�e�S�i�m�i�l�a�r�i�t�y� �}� �f�r�o�m� �'�@�i�t�a�c�h�i�3�/�m�u�l�i�t�-�p�o�i�n�t�-�t�o�u�c�h�'�;�
�
�
�
�/�*�*�
�
� �*� �p�a�r�a�m�s�1�:��k�[�~1��t�y�p�e�:�n�u�m�b�e�r�[�]�[�]�
�
� �*� �p�a�r�a�m�s�2�:��k�[�~2��t�y�p�e�:�n�u�m�b�e�r�[�]�[�]�
�
� �*�/�
�
�c�o�s�i�n�e�S�i�m�i�l�a�r�i�t�y�(�[�[�1�,�2�]�,�[�2�,�3�]�,�[�3�,�4�]�]�,�
�
� � � � �[�[�2�,�4�]�,�[�2�,�4�]�,�[�3�,�4�]�]�,�)�
�
�
��
�
�
�#�#�#� �M�u�l�t�i�P�o�i�n�t�T�o�u�c�h�
�
��
��j�s�
�
�/�/� �ُ/f�N*N{|��f2�
Nb�$N�y�e�l�T�e�c�OSbpSpenc��S(u�N�c�
�
�i�m�p�o�r�t� �{� �M�u�l�t�i�P�o�i�n�t�T�o�u�c�h� �}� �f�r�o�m� �'�@�i�t�a�c�h�i�3�/�m�u�l�i�t�-�p�o�i�n�t�-�t�o�u�c�h�'�;�
�
�
�
�c�o�n�s�t� �p�o�i�n�t�T�o�u�c�h� �=� �n�e�w� �M�u�l�t�i�P�o�i�n�t�T�o�u�c�h�(�{�
�
� � � � �d�e�b�u�g�g�e�r�:�t�r�u�e�
�
�}�)�
�
�p�o�i�n�t�T�o�u�c�h�.�h�a�n�d�l�e�S�i�m�i�l�a�r�i�t�y�(�)�
�
�p�o�i�n�t�T�o�u�c�h�.�c�o�s�i�n�e�S�i�m�i�l�a�r�i�t�y�(�)�
�
�
��
�
�
��f��~�v㉐g�T�[�sǏz���yek[��y�R�z5uP[pS�z㉳Q�eHh]�(�h�t�t�p�s�:�/�/�h�a�n�h�a�n�b�u�k�u�.�g�i�t�h�u�b�.�i�o�/�m�y�_�b�l�o�g�_�v�u�e�p�r�e�s�s�/�p�a�g�e�s�/�8�6�7�9�3�9�/�)�
�
�