Skip to main content

Component to acquire coordinates and movements for smartphones

Project description

touchable component

touchable component is a Dash component library. Component to acquire coordinates and movements for smartphones.

Installation


$ pip install touchable_component

Properties


  • children (dash component)

  • id (string)

  • className (string)

  • n_clicks (int)

  • direction (string; readonly)

    Flick-swipe direction.

    • up
    • down
    • left
    • right
  • flick (float; readonly)

    Timestamp at end of flick operation.

  • swipe (float; readonly)

    Timestamp at end of swipe operation.

  • long_tap (float; readonly)

    Timestamp of the start of the long press.

  • long_tap_end (float; readonly)

    Timestamp of the end of the long press.

  • long_swipe (float; readonly)

    Timestamp when swiped after long press.

  • start_timestamp (float; readonly)

    Timestamp of the start of the touch.

  • end_timestamp (float; readonly)

    Timestamp of the end of the touch.

  • touches (list[dict]; readonly) List of coordinate information.

    • x x-coordinate in component.
    • y y-coordinate in component.
    • clientX Relative x-coordinates, not including the scroll offset from the viewport of the touch points.
    • clientY Relative y-coordinates, not including the scroll offset from the viewport of the touch points.
    • top Relative position of the upper left corner of the browser's display area as a base point.
    • left Relative position of the upper left corner of the browser's display area as a base point.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

touchable_component-2.1.16.tar.gz (8.0 kB view details)

Uploaded Source

File details

Details for the file touchable_component-2.1.16.tar.gz.

File metadata

  • Download URL: touchable_component-2.1.16.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for touchable_component-2.1.16.tar.gz
Algorithm Hash digest
SHA256 46725c38a8fa6b2f8101dc16dd8bcff91a0f8171fa257bc8f24150e552962870
MD5 72fc26ea0a5629e116e64db92275e7dc
BLAKE2b-256 2e08d6c2b89d4a2c97c1b13b40a560eea95fd2e1f79e56ce673c8dddef207b6d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page