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

Closed
wants to merge 3 commits into from
Closed

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 benlesh force-pushed the benlesh/update-examples branch from 7dea4cc to 82be7a9 Compare November 29, 2023 00:05
@benlesh
Copy link
Collaborator Author

benlesh commented Nov 29, 2023

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

@benlesh benlesh requested a review from domfarolino November 29, 2023 00:05
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 benlesh requested a review from domfarolino December 19, 2023 17:15
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?

@domfarolino
Copy link
Collaborator

I'm going to close this since there is no activity. Feel free to re-open if you want to finish this.

@benlesh
Copy link
Collaborator Author

benlesh commented Nov 30, 2024

Sorry... I've just been busy with personal life things. I'll try to circle back to this soon.

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