Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update examples #83

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

benlesh
Copy link
Collaborator

@benlesh benlesh commented Nov 13, 2023

Updates the examples to reflect recent changes. Also ensures that we have imperative versions for each example.

Adds a new example that creates a measuring tool to measure distance on the page.

@domfarolino
Copy link
Collaborator

It looks like there are conflicts in this PR now because this PR somehow contained all of the "prettier" changes that the PR did.

@domfarolino
Copy link
Collaborator

Ping :)

…have imperative versions for each example.

Adds a new example that creates a measuring tool to measure distance on the page.
@benlesh
Copy link
Collaborator Author

benlesh commented Nov 29, 2023

Weird... That diff was gnarly. I just redid the changes on top of master.

README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated
element.addEventListener(
'mousemove',
(e) => {
element.addEventListener('mouseup', (e) => controller.abort());
element.addEventListener('mouseup', (e) => ac.abort(), {
signal: controller.signal,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would have to be ac.signal, since controller shouldn't exist. But also, why do we have to pass it in here anyways, if the previous version of this example wasn't?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you didn't get to this:

But also, why do we have to pass it in here anyways, if the previous version of this example wasn't?

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
benlesh and others added 2 commits December 19, 2023 11:09
Co-authored-by: Dominic Farolino <domfarolino@gmail.com>
const { clientX: startX, clientY: startY } = e;

const svg = document.createElement('svg');
svg.width = document.body.width;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@domfarolino
Copy link
Collaborator

@benlesh do you plan on finishing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants