Skip to content

Conversation

@saqimtiaz
Copy link
Member

@saqimtiaz saqimtiaz commented Jan 20, 2026

Refactors $tw.utils.collectDOMProperties:

  • to remove repetitive code and improve readability and maintainability.
  • provide variables for scroll position
  • provide variables representing the properties of the output of node.boundingClientRect(). We already make this call but were discarding some of the results.

Requires: #9609

Question:
should we provide individual variables for the properties of the boundingClientRect, as this PR currently does, such as tv-selectednode-client-width, tv-selectednode-client-height, tv-selectednode-client-left and tv-selectednode-client.top, OR one variable as a JSON blob: tv-selectednode-clientRect

@netlify
Copy link

netlify bot commented Jan 20, 2026

Deploy Preview for tiddlywiki-previews ready!

Name Link
🔨 Latest commit 69fe1c5
🔍 Latest deploy log https://app.netlify.com/projects/tiddlywiki-previews/deploys/69774d0e77523d0008bb0547
😎 Deploy Preview https://deploy-preview-9601--tiddlywiki-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link

github-actions bot commented Jan 20, 2026

📊 Build Size Comparison: empty.html

Branch Size
Base (master) 2447.9 KB
PR 2448.1 KB

Diff: ⬆️ Increase: +0.2 KB


⚠️ Change Note Status

This PR appears to contain code changes but doesn't include a change note.

Please add a change note by creating a .tid file in editions/tw5.com/tiddlers/releasenotes/<version>/

📚 Documentation: Release Notes and Changes

💡 Note: If this is a documentation-only change, you can ignore this message.

@github-actions
Copy link

Confirmed: saqimtiaz has already signed the Contributor License Agreement (see contributing.md)

@saqimtiaz saqimtiaz changed the title Refactors utils.collectDOMProperties to remove repetitive code Refactors and extends utils.collectDOMProperties Jan 26, 2026
});
};

const getBoundingRect = (node) => {
Copy link
Member

@pmario pmario Jan 26, 2026

Choose a reason for hiding this comment

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

@Jermolene @saqimtiaz ... I would like, if this code formatting for arrow functions would be the default. See draft PR at: #9590

So the error message below will be gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs feedback

Development

Successfully merging this pull request may close these issues.

2 participants