Input handling library for Zdog.
JavaScript 100.0%
2 1 0

Clone this repository

https://tangled.org/jaromino.com/ZFetch https://tangled.org/did:plc:pwobb7u5cfav54onoit7zi66/ZFetch
git@tangled.org:jaromino.com/ZFetch git@tangled.org:did:plc:pwobb7u5cfav54onoit7zi66/ZFetch

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

Zfetch#

Better input handling for Zdog, the pseudo-3D engine.

Status#

Currently un-minified and under active development.

About Zfetch#

I'm working on an application built on Zdog and I needed better input handling that was aware of Zdog and its quirks. What Zfetch does is allow you to set event event handlers for click and pointerdown/move/up events and have those handlers be aware of exactly which Zdog shape the mouse is over.

In the future, I'd like to support setting event handlers on arbitrary Zdog objects and have events bubble up the Zdog hierarchy. Currently, all events pass through the root SVG or Canvas and must be delegated from there.

Current limitations:

  • Canvas is not supported, only SVG. (This wouldn't be a large task)

Pull requests and suggestions are welcome!

This is currently being actively developed alongside Zoodle.