Title: Fix bq-style whitespace handling and spring variable frame rate by Copilot · Pull Request #32 · bQuery/bQuery · GitHub
Open Graph Title: Fix bq-style whitespace handling and spring variable frame rate by Copilot · Pull Request #32 · bQuery/bQuery
X Title: Fix bq-style whitespace handling and spring variable frame rate by Copilot · Pull Request #32 · bQuery/bQuery
Description: Addresses two issues from PR #16 review: bq-style directive failing with leading whitespace and spring animations running at inconsistent speeds across different frame rates. Changes bq-style directive whitespace handling (src/view/directives/style.ts) Use trimStart() before checking for object-literal syntax to match bq-class behavior Prevents bq-style=" { color: 'red' }" from falling through to generic evaluation path Added test case in tests/view.test.ts to verify whitespace handling and prevent regressions Spring integrator variable frame rate (src/motion/spring.ts) Replace fixed 60fps timestep with requestAnimationFrame timestamp-based delta calculation Clamp deltas to 1/30s maximum to prevent instability during tab backgrounding Track lastTime state and reset in to()/stop() methods Add JSDoc noting frame-rate-independent timing behavior Example // Spring now runs at consistent speed regardless of device frame rate const x = spring(0, { stiffness: 120, damping: 14 }); // Animation speed same on 60Hz, 120Hz, or throttled (background) contexts await x.to(100); Testing ✅ All 68 view tests pass, including new whitespace handling test ✅ TypeScript compilation passes ✅ ESLint validation passes ✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Open Graph Description: Addresses two issues from PR #16 review: bq-style directive failing with leading whitespace and spring animations running at inconsistent speeds across different frame rates. Changes bq-style dir...
X Description: Addresses two issues from PR #16 review: bq-style directive failing with leading whitespace and spring animations running at inconsistent speeds across different frame rates. Changes bq-style dir...
Opengraph URL: https://github.com/bQuery/bQuery/pull/32
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5f53c7ec-d76c-3ab6-5a69-690cb54540e2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DC0A:77702:9576D0:DA27CE:6A4E16EB |
| html-safe-nonce | c62a8d93c4022e900eca907ed6b8c22dc186d68bf5105e1949c7525678dda6e8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzBBOjc3NzAyOjk1NzZEMDpEQTI3Q0U6NkE0RTE2RUIiLCJ2aXNpdG9yX2lkIjoiNDI0MzY0MTA3NzA5MTY2OTc0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b7c0228809c6162c926481f39efdca3cd4c2ff86e8751852f4a7db512caa224a |
| hovercard-subject-tag | pull_request:3216342294 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/bQuery/bQuery/pull/32/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | Addresses two issues from PR #16 review: bq-style directive failing with leading whitespace and spring animations running at inconsistent speeds across different frame rates. Changes bq-style dir... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/bQuery/bQuery git https://github.com/bQuery/bQuery.git |
| octolytics-dimension-user_id | 256381806 |
| octolytics-dimension-user_login | bQuery |
| octolytics-dimension-repository_id | 1139284244 |
| octolytics-dimension-repository_nwo | bQuery/bQuery |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1139284244 |
| octolytics-dimension-repository_network_root_nwo | bQuery/bQuery |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ea9187571e3edc5f2780f750631138669441ca50 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width