Skip to content

fix: add ResizeObserver to fix Preview3D initial render stretch#8351

Merged
jtydhr88 merged 1 commit intomainfrom
fix/preview3d-initial-render-stretch
Jan 28, 2026
Merged

fix: add ResizeObserver to fix Preview3D initial render stretch#8351
jtydhr88 merged 1 commit intomainfrom
fix/preview3d-initial-render-stretch

Conversation

@jtydhr88
Copy link
Collaborator

@jtydhr88 jtydhr88 commented Jan 28, 2026

Summary

When Preview3D node was added to canvas, the Three.js scene would stretch outside the node bounds until mouse hover. This happened because the container size was not stable during initialization.

Add ResizeObserver to Load3d class to automatically refresh viewport when container size changes, ensuring correct render dimensions.

┆Issue is synchronized with this Notion page by Unito

@jtydhr88 jtydhr88 requested a review from a team as a code owner January 28, 2026 03:00
@jtydhr88 jtydhr88 self-assigned this Jan 28, 2026
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jan 28, 2026
@jtydhr88 jtydhr88 assigned christian-byrne and unassigned jtydhr88 Jan 28, 2026
@github-actions
Copy link

github-actions bot commented Jan 28, 2026

🎭 Playwright Tests: ⚠️ Passed with flaky tests

Results: 505 passed, 0 failed, 1 flaky, 8 skipped (Total: 514)

❌ Failed Tests

📊 Browser Reports
  • chromium: View Report (✅ 493 / ❌ 0 / ⚠️ 1 / ⏭️ 8)
  • chromium-2x: View Report (✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0)
  • chromium-0.5x: View Report (✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0)
  • mobile-chrome: View Report (✅ 9 / ❌ 0 / ⚠️ 0 / ⏭️ 0)

@github-actions
Copy link

github-actions bot commented Jan 28, 2026

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 01/28/2026, 03:13:41 AM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 28, 2026

📝 Walkthrough

Walkthrough

A ResizeObserver was added to Load3d: it is initialized to observe the viewer container, calls handleResize and forceRender on resize events, and is disconnected/cleared in remove(). No public/exported signatures changed.

Changes

Cohort / File(s) Summary
Load3d ResizeObserver
src/extensions/core/load3d/Load3d.ts
Added private resizeObserver property; new initResizeObserver(container) initializes an observer that calls handleResize and forceRender on resize; observer is observed on init and disconnected/cleared in remove()

Sequence Diagram(s)

sequenceDiagram
  participant Container as Container (DOM)
  participant Observer as ResizeObserver
  participant Load3d as Load3d instance
  participant Renderer as Renderer / forceRender

  Container->>Observer: DOM resize event
  Observer->>Load3d: invoke handleResize()
  Load3d->>Load3d: update size/state
  Load3d->>Renderer: forceRender()
Loading

Possibly related PRs

Suggested reviewers

  • DrJKL
✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai bot requested a review from DrJKL January 28, 2026 03:00
@github-actions
Copy link

github-actions bot commented Jan 28, 2026

Bundle Size Report

Summary

  • Raw size: 22.1 MB baseline 22.1 MB — 🔴 +150 B
  • Gzip: 4.59 MB baseline 4.59 MB — 🟢 -5 B
  • Brotli: 3.41 MB baseline 3.41 MB — 🟢 -105 B
  • Bundles: 176 current • 176 baseline • 85 added / 85 removed

Category Glance
Data & Services 🔴 +358 B (2.71 MB) · Other 🟢 -200 B (7.04 MB) · Panels & Settings 🟢 -8 B (470 kB) · Vendor & Third-Party ⚪ 0 B (10.7 MB) · Graph Workspace ⚪ 0 B (961 kB) · Views & Navigation ⚪ 0 B (80.7 kB) · + 5 more

Per-category breakdown
App Entry Points — 23.6 kB (baseline 23.6 kB) • ⚪ 0 B

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-Bb2G9KkT.js (new) 23.6 kB 🔴 +23.6 kB 🔴 +7.1 kB 🔴 +6.25 kB
assets/index-DMbAwTX1.js (removed) 23.6 kB 🟢 -23.6 kB 🟢 -7.1 kB 🟢 -6.22 kB

Status: 1 added / 1 removed

Graph Workspace — 961 kB (baseline 961 kB) • ⚪ 0 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-BM1JdsfX.js (removed) 961 kB 🟢 -961 kB 🟢 -195 kB 🟢 -147 kB
assets/GraphView-C3gOBBa9.js (new) 961 kB 🔴 +961 kB 🔴 +195 kB 🔴 +147 kB

Status: 1 added / 1 removed

Views & Navigation — 80.7 kB (baseline 80.7 kB) • ⚪ 0 B

Top-level views, pages, and routed surfaces

File Before After Δ Raw Δ Gzip Δ Brotli
assets/CloudSurveyView-CD7b43v3.js (removed) 17.1 kB 🟢 -17.1 kB 🟢 -3.6 kB 🟢 -3.05 kB
assets/CloudSurveyView-n0Ifgd3v.js (new) 17.1 kB 🔴 +17.1 kB 🔴 +3.61 kB 🔴 +3.05 kB
assets/CloudLoginView-CkUJGXNK.js (removed) 11.8 kB 🟢 -11.8 kB 🟢 -3.09 kB 🟢 -2.72 kB
assets/CloudLoginView-DYSYM9Wn.js (new) 11.8 kB 🔴 +11.8 kB 🔴 +3.09 kB 🔴 +2.72 kB
assets/UserCheckView-B6GibQbM.js (removed) 10.5 kB 🟢 -10.5 kB 🟢 -2.45 kB 🟢 -2.13 kB
assets/UserCheckView-shEnIih4.js (new) 10.5 kB 🔴 +10.5 kB 🔴 +2.44 kB 🔴 +2.13 kB
assets/CloudLayoutView-DJ1KHLd2.js (new) 8.54 kB 🔴 +8.54 kB 🔴 +2.25 kB 🔴 +1.95 kB
assets/CloudLayoutView-GqEo1uiX.js (removed) 8.54 kB 🟢 -8.54 kB 🟢 -2.25 kB 🟢 -1.96 kB
assets/CloudSignupView-C4xcb-uH.js (removed) 8.22 kB 🟢 -8.22 kB 🟢 -2.34 kB 🟢 -2.04 kB
assets/CloudSignupView-CfCFJ8IN.js (new) 8.22 kB 🔴 +8.22 kB 🔴 +2.34 kB 🔴 +2.04 kB
assets/CloudForgotPasswordView-SAgR2Huf.js (new) 6.26 kB 🔴 +6.26 kB 🔴 +1.93 kB 🔴 +1.69 kB
assets/CloudForgotPasswordView-YElk194X.js (removed) 6.26 kB 🟢 -6.26 kB 🟢 -1.93 kB 🟢 -1.69 kB
assets/UserSelectView-CJ73X03T.js (removed) 5.28 kB 🟢 -5.28 kB 🟢 -1.76 kB 🟢 -1.58 kB
assets/UserSelectView-Lu7Cu9vi.js (new) 5.28 kB 🔴 +5.28 kB 🔴 +1.76 kB 🔴 +1.57 kB
assets/CloudSubscriptionRedirectView-BH6avAm5.js (new) 5.27 kB 🔴 +5.27 kB 🔴 +1.73 kB 🔴 +1.54 kB
assets/CloudSubscriptionRedirectView-D4xSleLU.js (removed) 5.27 kB 🟢 -5.27 kB 🟢 -1.73 kB 🟢 -1.54 kB
assets/CloudAuthTimeoutView-DoqFMjeH.js (new) 5.24 kB 🔴 +5.24 kB 🔴 +1.71 kB 🔴 +1.48 kB
assets/CloudAuthTimeoutView-DY1JMzqx.js (removed) 5.24 kB 🟢 -5.24 kB 🟢 -1.71 kB 🟢 -1.48 kB
assets/CloudSorryContactSupportView-DPSDjCKF.js 1.97 kB 1.97 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/layout-ouzJzFyy.js 500 B 500 B ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 9 added / 9 removed

Panels & Settings — 470 kB (baseline 470 kB) • 🟢 -8 B

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/WorkspacePanel-C5vMWsX2.js (removed) 29.8 kB 🟢 -29.8 kB 🟢 -5.89 kB 🟢 -5.14 kB
assets/WorkspacePanel-CJgxmWbO.js (new) 29.8 kB 🔴 +29.8 kB 🔴 +5.9 kB 🔴 +5.14 kB
assets/LegacyCreditsPanel-CVzJ4xQu.js (new) 23.8 kB 🔴 +23.8 kB 🔴 +5.95 kB 🔴 +5.22 kB
assets/LegacyCreditsPanel-w36g9YH3.js (removed) 23.8 kB 🟢 -23.8 kB 🟢 -5.95 kB 🟢 -5.23 kB
assets/SubscriptionPanel-oWmEVM2t.js (new) 21 kB 🔴 +21 kB 🔴 +5.06 kB 🔴 +4.46 kB
assets/SubscriptionPanel-WSkoQlxG.js (removed) 21 kB 🟢 -21 kB 🟢 -5.06 kB 🟢 -4.46 kB
assets/KeybindingPanel-BYZqwVjN.js (removed) 14.2 kB 🟢 -14.2 kB 🟢 -3.74 kB 🟢 -3.31 kB
assets/KeybindingPanel-D3SiLRjo.js (new) 14.2 kB 🔴 +14.2 kB 🔴 +3.74 kB 🔴 +3.31 kB
assets/AboutPanel-Bij2Y_KB.js (new) 10.8 kB 🔴 +10.8 kB 🔴 +2.68 kB 🔴 +2.43 kB
assets/AboutPanel-pxCQ-HcU.js (removed) 10.8 kB 🟢 -10.8 kB 🟢 -2.68 kB 🟢 -2.43 kB
assets/ExtensionPanel-BZAhHSKS.js (new) 10.2 kB 🔴 +10.2 kB 🔴 +2.71 kB 🔴 +2.4 kB
assets/ExtensionPanel-DkUVV_6W.js (removed) 10.2 kB 🟢 -10.2 kB 🟢 -2.71 kB 🟢 -2.4 kB
assets/ServerConfigPanel-0GpbG4ZB.js (new) 7.26 kB 🔴 +7.26 kB 🔴 +2.18 kB 🔴 +1.95 kB
assets/ServerConfigPanel-DIVwdhwC.js (removed) 7.26 kB 🟢 -7.26 kB 🟢 -2.18 kB 🟢 -1.95 kB
assets/UserPanel-BJnVtKtq.js (new) 6.58 kB 🔴 +6.58 kB 🔴 +1.9 kB 🔴 +1.67 kB
assets/UserPanel-g3XyCQfc.js (removed) 6.58 kB 🟢 -6.58 kB 🟢 -1.91 kB 🟢 -1.67 kB
assets/config-7fwyFDVl.js (removed) 1.16 kB 🟢 -1.16 kB 🟢 -604 B 🟢 -531 B
assets/config-B1Y-wvqK.js (new) 1.15 kB 🔴 +1.15 kB 🔴 +600 B 🔴 +526 B
assets/refreshRemoteConfig-BnJd5ZOm.js (removed) 1.14 kB 🟢 -1.14 kB 🟢 -525 B 🟢 -464 B
assets/refreshRemoteConfig-CISW7s5m.js (new) 1.14 kB 🔴 +1.14 kB 🔴 +526 B 🔴 +489 B
assets/cloudRemoteConfig-BtKFkpQf.js (removed) 1.11 kB 🟢 -1.11 kB 🟢 -509 B 🟢 -437 B
assets/cloudRemoteConfig-D5Jsvy5y.js (new) 1.11 kB 🔴 +1.11 kB 🔴 +509 B 🔴 +437 B
assets/refreshRemoteConfig-BdWft1lL.js (new) 169 B 🔴 +169 B 🔴 +108 B 🔴 +103 B
assets/refreshRemoteConfig-bjNAj9Mt.js (removed) 169 B 🟢 -169 B 🟢 -108 B 🟢 -103 B
assets/remoteConfig-BfvcASY0.js 536 B 536 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings--v6Wg3FT.js 29.4 kB 29.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-6AWMdbEo.js 25.8 kB 25.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-Bd_PrHyW.js 29.6 kB 29.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BvViWXfv.js 31.2 kB 31.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CBT5fUQX.js 32.9 kB 32.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-Cr7txePz.js 30.2 kB 30.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DdPwS08h.js 39.4 kB 39.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DqMxzK_S.js 30.4 kB 30.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-Dwt3wMav.js 26.4 kB 26.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-pjwHe3bJ.js 32 kB 32 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-yUgaGSFI.js 35.2 kB 35.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 12 added / 12 removed

User & Accounts — 3.94 kB (baseline 3.94 kB) • ⚪ 0 B

Authentication, profile, and account management bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/auth-DLfMsocS.js (new) 3.54 kB 🔴 +3.54 kB 🔴 +1.24 kB 🔴 +1.07 kB
assets/auth-DV5cq3pi.js (removed) 3.54 kB 🟢 -3.54 kB 🟢 -1.24 kB 🟢 -1.05 kB
assets/firebaseAuthStore-B9X5pMOo.js (removed) 217 B 🟢 -217 B 🟢 -136 B 🟢 -117 B
assets/firebaseAuthStore-CbB3BMXi.js (new) 217 B 🔴 +217 B 🔴 +136 B 🔴 +119 B
assets/auth-CHvzOJGe.js (new) 178 B 🔴 +178 B 🔴 +142 B 🔴 +132 B
assets/auth-CnIq-Uy8.js (removed) 178 B 🟢 -178 B 🟢 -142 B 🟢 -130 B

Status: 3 added / 3 removed

Editors & Dialogs — 2.9 kB (baseline 2.9 kB) • ⚪ 0 B

Modals, dialogs, drawers, and in-app editors

File Before After Δ Raw Δ Gzip Δ Brotli
assets/useSubscriptionDialog-BKEpVJU6.js (new) 2.73 kB 🔴 +2.73 kB 🔴 +1.3 kB 🔴 +1.14 kB
assets/useSubscriptionDialog-q_PA3dyI.js (removed) 2.73 kB 🟢 -2.73 kB 🟢 -1.3 kB 🟢 -1.16 kB
assets/useSubscriptionDialog-CPkd20sG.js (new) 179 B 🔴 +179 B 🔴 +110 B 🔴 +95 B
assets/useSubscriptionDialog-Ws6nUtQi.js (removed) 179 B 🟢 -179 B 🟢 -110 B 🟢 -96 B

Status: 2 added / 2 removed

UI Components — 33.7 kB (baseline 33.7 kB) • ⚪ 0 B

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/ComfyQueueButton-aL--rDc1.js (new) 9.52 kB 🔴 +9.52 kB 🔴 +2.69 kB 🔴 +2.41 kB
assets/ComfyQueueButton-DoL9lpyv.js (removed) 9.52 kB 🟢 -9.52 kB 🟢 -2.69 kB 🟢 -2.42 kB
assets/SubscribeButton-CJWvMYBq.js (removed) 4.63 kB 🟢 -4.63 kB 🟢 -1.56 kB 🟢 -1.38 kB
assets/SubscribeButton-DzsnMPRM.js (new) 4.63 kB 🔴 +4.63 kB 🔴 +1.56 kB 🔴 +1.38 kB
assets/cloudFeedbackTopbarButton-BPNCxNB_.js (new) 1.24 kB 🔴 +1.24 kB 🔴 +675 B 🔴 +573 B
assets/cloudFeedbackTopbarButton-ChVL6IG_.js (removed) 1.24 kB 🟢 -1.24 kB 🟢 -676 B 🟢 -573 B
assets/ComfyQueueButton-Be1JejMp.js (removed) 181 B 🟢 -181 B 🟢 -118 B 🟢 -107 B
assets/ComfyQueueButton-WzWM90k5.js (new) 181 B 🔴 +181 B 🔴 +118 B 🔴 +121 B
assets/Button-DMDKiCng.js 3.82 kB 3.82 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/CloudBadge-C8RdkOOk.js 1.85 kB 1.85 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/TopbarBadge-evNElHF1.js 8.36 kB 8.36 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/UserAvatar-BcT4RJD_.js 1.73 kB 1.73 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetButton-BGT7rdIi.js 2.41 kB 2.41 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 4 added / 4 removed

Data & Services — 2.71 MB (baseline 2.71 MB) • 🔴 +358 B

Stores, services, APIs, and repositories

File Before After Δ Raw Δ Gzip Δ Brotli
assets/dialogService-BbStqKjF.js (new) 2.01 MB 🔴 +2.01 MB 🔴 +425 kB 🔴 +324 kB
assets/dialogService-BJlFQz96.js (removed) 2.01 MB 🟢 -2.01 MB 🟢 -425 kB 🟢 -324 kB
assets/api-CuY6G4Iy.js (removed) 672 kB 🟢 -672 kB 🟢 -148 kB 🟢 -118 kB
assets/api-ZEG9gkGI.js (new) 672 kB 🔴 +672 kB 🔴 +148 kB 🔴 +118 kB
assets/releaseStore-d1b-osR8.js (removed) 8.94 kB 🟢 -8.94 kB 🟢 -2.41 kB 🟢 -2.13 kB
assets/releaseStore-QSDiExRF.js (new) 8.94 kB 🔴 +8.94 kB 🔴 +2.41 kB 🔴 +2.13 kB
assets/keybindingService-Clnqm1MK.js (removed) 6.78 kB 🟢 -6.78 kB 🟢 -1.74 kB 🟢 -1.52 kB
assets/keybindingService-Cx4121Ij.js (new) 6.78 kB 🔴 +6.78 kB 🔴 +1.74 kB 🔴 +1.51 kB
assets/bootstrapStore--vTTmv7f.js (removed) 2.73 kB 🟢 -2.73 kB 🟢 -1.04 kB 🟢 -974 B
assets/bootstrapStore-COK6RlB1.js (new) 2.73 kB 🔴 +2.73 kB 🔴 +1.04 kB 🔴 +982 B
assets/userStore-BrF4hqcj.js (removed) 2.16 kB 🟢 -2.16 kB 🟢 -813 B 🟢 -723 B
assets/userStore-Bs0ZSjFs.js (new) 2.16 kB 🔴 +2.16 kB 🔴 +813 B 🔴 +725 B
assets/audioService-DbQfYDUv.js (removed) 2.03 kB 🟢 -2.03 kB 🟢 -932 B 🟢 -808 B
assets/audioService-g0CNeJYS.js (new) 2.03 kB 🔴 +2.03 kB 🔴 +932 B 🔴 +816 B
assets/teamWorkspaceStore-BlpZgPnL.js (removed) 165 B 🟢 -165 B 🟢 -123 B 🟢 -115 B
assets/teamWorkspaceStore-Cu9dML6Y.js (new) 165 B 🔴 +165 B 🔴 +123 B 🔴 +107 B
assets/releaseStore-Bq3UtJ42.js (new) 140 B 🔴 +140 B 🔴 +106 B 🔴 +107 B
assets/releaseStore-CZ9EwuA0.js (removed) 140 B 🟢 -140 B 🟢 -106 B 🟢 -106 B
assets/serverConfigStore-Bx_up0Gg.js 2.64 kB 2.64 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 9 added / 9 removed

Utilities & Hooks — 25.5 kB (baseline 25.5 kB) • ⚪ 0 B

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/useErrorHandling-Bz7V-Ssz.js (new) 5.15 kB 🔴 +5.15 kB 🔴 +1.52 kB 🔴 +1.33 kB
assets/useErrorHandling-DooKVIcJ.js (removed) 5.15 kB 🟢 -5.15 kB 🟢 -1.52 kB 🟢 -1.33 kB
assets/useWorkspaceUI-BnPEyOH0.js (removed) 3.42 kB 🟢 -3.42 kB 🟢 -978 B 🟢 -839 B
assets/useWorkspaceUI-vC7OKV0E.js (new) 3.42 kB 🔴 +3.42 kB 🔴 +976 B 🔴 +839 B
assets/subscriptionCheckoutUtil-Dj9vG4dG.js (removed) 2.23 kB 🟢 -2.23 kB 🟢 -911 B 🟢 -799 B
assets/subscriptionCheckoutUtil-DytH8FpF.js (new) 2.23 kB 🔴 +2.23 kB 🔴 +909 B 🔴 +802 B
assets/useSubscriptionActions-76TP3ZF8.js (new) 2.22 kB 🔴 +2.22 kB 🔴 +870 B 🔴 +755 B
assets/useSubscriptionActions-npAbwNyi.js (removed) 2.22 kB 🟢 -2.22 kB 🟢 -868 B 🟢 -754 B
assets/useSubscriptionCredits-_0tH0N-8.js (new) 1.39 kB 🔴 +1.39 kB 🔴 +600 B 🔴 +531 B
assets/useSubscriptionCredits-DPJgSWLL.js (removed) 1.39 kB 🟢 -1.39 kB 🟢 -601 B 🟢 -531 B
assets/audioUtils-BBuLSdAx.js (removed) 970 B 🟢 -970 B 🟢 -548 B 🟢 -488 B
assets/audioUtils-ClcYm8kW.js (new) 970 B 🔴 +970 B 🔴 +548 B 🔴 +459 B
assets/useCurrentUser-CT_4Nk5Z.js (removed) 145 B 🟢 -145 B 🟢 -114 B 🟢 -108 B
assets/useCurrentUser-DV6bwKNv.js (new) 145 B 🔴 +145 B 🔴 +114 B 🔴 +102 B
assets/_plugin-vue_export-helper-D8rH49Eq.js 467 B 467 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/colorUtil-DqLCx1BB.js 7.2 kB 7.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/markdownRendererUtil-CE67zEoD.js 1.78 kB 1.78 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/tailwindUtil-_s9SadH1.js 488 B 488 B ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 7 added / 7 removed

Vendor & Third-Party — 10.7 MB (baseline 10.7 MB) • ⚪ 0 B

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-chart-CKfqpTaz.js 408 kB 408 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-other-kYGuXLQE.js 4.1 MB 4.1 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-primevue-C6oIq5r_.js 3.04 MB 3.04 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-reka-ui-BIaZqDUN.js 256 kB 256 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-three-DyMKDuqR.js 1.83 MB 1.83 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-tiptap-TV831oRr.js 650 kB 650 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-vue-DzppPAJv.js 13.6 kB 13.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-xterm-B0dJmw9h.js 398 kB 398 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
Other — 7.04 MB (baseline 7.04 MB) • 🟢 -200 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/core-DWU5AqZ1.js (removed) 180 kB 🟢 -180 kB 🟢 -43.4 kB 🟢 -36.2 kB
assets/core-B6NebbNi.js (new) 180 kB 🔴 +180 kB 🔴 +43.3 kB 🔴 +36.2 kB
assets/WidgetSelect-BlzZPSEc.js (removed) 51 kB 🟢 -51 kB 🟢 -11.3 kB 🟢 -9.82 kB
assets/WidgetSelect-tmuEPun0.js (new) 51 kB 🔴 +51 kB 🔴 +11.3 kB 🔴 +9.81 kB
assets/Load3DControls-BeoSDnbN.js (new) 35.9 kB 🔴 +35.9 kB 🔴 +5.87 kB 🔴 +5.07 kB
assets/Load3DControls-Bg1DCRtg.js (removed) 35.9 kB 🟢 -35.9 kB 🟢 -5.87 kB 🟢 -5.09 kB
assets/SubscriptionRequiredDialogContent-0AIKgp5E.js (new) 28.7 kB 🔴 +28.7 kB 🔴 +6.78 kB 🔴 +5.9 kB
assets/SubscriptionRequiredDialogContent-CcVIxWbr.js (removed) 28.7 kB 🟢 -28.7 kB 🟢 -6.79 kB 🟢 -5.92 kB
assets/CurrentUserPopoverWorkspace-CDn7KMtE.js (new) 22.2 kB 🔴 +22.2 kB 🔴 +4.99 kB 🔴 +4.43 kB
assets/CurrentUserPopoverWorkspace-DVdZ_20H.js (removed) 22.2 kB 🟢 -22.2 kB 🟢 -4.99 kB 🟢 -4.43 kB
assets/Load3D-BaYG7kfm.js (removed) 20.9 kB 🟢 -20.9 kB 🟢 -4.58 kB 🟢 -4.01 kB
assets/Load3D-DNPT2VMi.js (new) 20.9 kB 🔴 +20.9 kB 🔴 +4.58 kB 🔴 +4.02 kB
assets/WidgetRecordAudio-DgnmVxWX.js (new) 18.3 kB 🔴 +18.3 kB 🔴 +4.97 kB 🔴 +4.43 kB
assets/WidgetRecordAudio-HbzDM0Pk.js (removed) 18.3 kB 🟢 -18.3 kB 🟢 -4.97 kB 🟢 -4.44 kB
assets/WidgetInputNumber-9brZIGRc.js (removed) 18.3 kB 🟢 -18.3 kB 🟢 -4.51 kB 🟢 -4.01 kB
assets/WidgetInputNumber-DZKVh9Ke.js (new) 18.3 kB 🔴 +18.3 kB 🔴 +4.51 kB 🔴 +4.02 kB
assets/SubscriptionPanelContentWorkspace-HwQLs66l.js (removed) 18.2 kB 🟢 -18.2 kB 🟢 -4.47 kB 🟢 -3.9 kB
assets/SubscriptionPanelContentWorkspace-kMtB9dL1.js (new) 18.2 kB 🔴 +18.2 kB 🔴 +4.47 kB 🔴 +3.89 kB
assets/WidgetImageCrop-CgYJunGH.js (removed) 17.1 kB 🟢 -17.1 kB 🟢 -4.14 kB 🟢 -3.63 kB
assets/WidgetImageCrop-Cs8hJxAU.js (new) 17.1 kB 🔴 +17.1 kB 🔴 +4.14 kB 🔴 +3.62 kB
assets/PanelTemplate-Bl2lXaCj.js (removed) 16.3 kB 🟢 -16.3 kB 🟢 -5.47 kB 🟢 -4.82 kB
assets/PanelTemplate-DRsBtO3k.js (new) 16.3 kB 🔴 +16.3 kB 🔴 +5.47 kB 🔴 +4.82 kB
assets/AudioPreviewPlayer-7flEojVM.js (new) 10.8 kB 🔴 +10.8 kB 🔴 +2.97 kB 🔴 +2.66 kB
assets/AudioPreviewPlayer-DOH_IiDT.js (removed) 10.8 kB 🟢 -10.8 kB 🟢 -2.97 kB 🟢 -2.65 kB
assets/InviteMemberDialogContent-BZGLAZhr.js (new) 8.36 kB 🔴 +8.36 kB 🔴 +2.51 kB 🔴 +2.18 kB
assets/InviteMemberDialogContent-T6pEkgLt.js (removed) 8.36 kB 🟢 -8.36 kB 🟢 -2.51 kB 🟢 -2.18 kB
assets/WidgetWithControl-jc5hS8EQ.js (removed) 8.09 kB 🟢 -8.09 kB 🟢 -2.7 kB 🟢 -2.43 kB
assets/WidgetWithControl-rjATrgpM.js (new) 8.09 kB 🔴 +8.09 kB 🔴 +2.7 kB 🔴 +2.42 kB
assets/CreateWorkspaceDialogContent-BjHQR1lv.js (new) 5.93 kB 🔴 +5.93 kB 🔴 +1.93 kB 🔴 +1.68 kB
assets/CreateWorkspaceDialogContent-D2j9E1WC.js (removed) 5.93 kB 🟢 -5.93 kB 🟢 -1.93 kB 🟢 -1.68 kB
assets/EditWorkspaceDialogContent-CFwxINDn.js (new) 5.7 kB 🔴 +5.7 kB 🔴 +1.88 kB 🔴 +1.64 kB
assets/EditWorkspaceDialogContent-DRR_Mz2Q.js (removed) 5.7 kB 🟢 -5.7 kB 🟢 -1.88 kB 🟢 -1.64 kB
assets/ValueControlPopover-BSNxODaa.js (new) 5.17 kB 🔴 +5.17 kB 🔴 +1.69 kB 🔴 +1.5 kB
assets/ValueControlPopover-CTVT046D.js (removed) 5.17 kB 🟢 -5.17 kB 🟢 -1.69 kB 🟢 -1.5 kB
assets/DeleteWorkspaceDialogContent-0OXoIds6.js (new) 4.59 kB 🔴 +4.59 kB 🔴 +1.56 kB 🔴 +1.35 kB
assets/DeleteWorkspaceDialogContent-CGVs10co.js (removed) 4.59 kB 🟢 -4.59 kB 🟢 -1.57 kB 🟢 -1.36 kB
assets/LeaveWorkspaceDialogContent-E-Jq8ImF.js (new) 4.41 kB 🔴 +4.41 kB 🔴 +1.51 kB 🔴 +1.3 kB
assets/LeaveWorkspaceDialogContent-lDGw9Soj.js (removed) 4.41 kB 🟢 -4.41 kB 🟢 -1.51 kB 🟢 -1.31 kB
assets/RemoveMemberDialogContent-D-1Kb0fd.js (removed) 4.38 kB 🟢 -4.38 kB 🟢 -1.46 kB 🟢 -1.27 kB
assets/RemoveMemberDialogContent-DPZn3tAp.js (new) 4.38 kB 🔴 +4.38 kB 🔴 +1.46 kB 🔴 +1.27 kB
assets/RevokeInviteDialogContent-BCiaxaJM.js (removed) 4.29 kB 🟢 -4.29 kB 🟢 -1.47 kB 🟢 -1.29 kB
assets/RevokeInviteDialogContent-Dzs1YopB.js (new) 4.29 kB 🔴 +4.29 kB 🔴 +1.47 kB 🔴 +1.29 kB
assets/GlobalToast-BrKTRFM7.js (new) 3.05 kB 🔴 +3.05 kB 🔴 +1.1 kB 🔴 +945 B
assets/GlobalToast-DP9KmZLj.js (removed) 3.05 kB 🟢 -3.05 kB 🟢 -1.1 kB 🟢 -947 B
assets/cloudSessionCookie-CCSyNc-A.js (new) 2.97 kB 🔴 +2.97 kB 🔴 +943 B 🔴 +815 B
assets/cloudSessionCookie-CX3OddLa.js (removed) 2.97 kB 🟢 -2.97 kB 🟢 -945 B 🟢 -815 B
assets/SubscribeToRun-DkUn1lqC.js (removed) 2.96 kB 🟢 -2.96 kB 🟢 -1.15 kB 🟢 -1.01 kB
assets/SubscribeToRun-DNenaL_Q.js (new) 2.96 kB 🔴 +2.96 kB 🔴 +1.15 kB 🔴 +1.01 kB
assets/BaseViewTemplate-B2j8OPUA.js (removed) 2.42 kB 🟢 -2.42 kB 🟢 -1.05 kB 🟢 -933 B
assets/BaseViewTemplate-y5IgE3vW.js (new) 2.42 kB 🔴 +2.42 kB 🔴 +1.04 kB 🔴 +935 B
assets/CloudRunButtonWrapper-BVQB50Vg.js (new) 1.79 kB 🔴 +1.79 kB 🔴 +642 B 🔴 +599 B
assets/CloudRunButtonWrapper-DoI8HuD0.js (removed) 1.79 kB 🟢 -1.79 kB 🟢 -644 B 🟢 -561 B
assets/gtm-CkX_rs8c.js (removed) 1.3 kB 🟢 -1.3 kB 🟢 -625 B 🟢 -527 B
assets/gtm-DanqTfzl.js (new) 1.3 kB 🔴 +1.3 kB 🔴 +626 B 🔴 +500 B
assets/cloudBadges-B6nKn1kj.js (removed) 1.08 kB 🟢 -1.08 kB 🟢 -539 B 🟢 -480 B
assets/cloudBadges-BKwoZmBq.js (new) 1.08 kB 🔴 +1.08 kB 🔴 +538 B 🔴 +482 B
assets/graphHasMissingNodes-BD8Zlmg1.js (removed) 1.06 kB 🟢 -1.06 kB 🟢 -462 B 🟢 -420 B
assets/graphHasMissingNodes-CXlLoBsz.js (new) 1.06 kB 🔴 +1.06 kB 🔴 +462 B 🔴 +422 B
assets/cloudSubscription-Dl_xCSGE.js (new) 976 B 🔴 +976 B 🔴 +459 B 🔴 +397 B
assets/cloudSubscription-LV2EIqcm.js (removed) 976 B 🟢 -976 B 🟢 -462 B 🟢 -399 B
assets/types-9RyZweiA.js (new) 909 B 🔴 +909 B 🔴 +458 B 🔴 +384 B
assets/types-Cm9RavTs.js (removed) 908 B 🟢 -908 B 🟢 -455 B 🟢 -385 B
assets/nightlyBadges-BNIItvgK.js (new) 595 B 🔴 +595 B 🔴 +356 B 🔴 +312 B
assets/nightlyBadges-ByBmg5-5.js (removed) 595 B 🟢 -595 B 🟢 -357 B 🟢 -310 B
assets/SubscriptionPanelContentWorkspace-BMujNu2E.js (new) 266 B 🔴 +266 B 🔴 +136 B 🔴 +124 B
assets/SubscriptionPanelContentWorkspace-C045Wdsd.js (removed) 266 B 🟢 -266 B 🟢 -136 B 🟢 -117 B
assets/WidgetInputNumber-CTqP4TkD.js (removed) 186 B 🟢 -186 B 🟢 -119 B 🟢 -123 B
assets/WidgetInputNumber-Dn_iL1Wd.js (new) 186 B 🔴 +186 B 🔴 +119 B 🔴 +110 B
assets/WidgetLegacy-2us-udkB.js (removed) 164 B 🟢 -164 B 🟢 -125 B 🟢 -106 B
assets/WidgetLegacy-BqfJezWe.js (new) 164 B 🔴 +164 B 🔴 +125 B 🔴 +112 B
assets/Load3D-BsEhQ5WP.js (new) 131 B 🔴 +131 B 🔴 +107 B 🔴 +110 B
assets/Load3D-DmihB7jm.js (removed) 131 B 🟢 -131 B 🟢 -107 B 🟢 -108 B
assets/gtm-dUv7avmH.js (new) 122 B 🔴 +122 B 🔴 +116 B 🔴 +110 B
assets/gtm-jkR_i4KL.js (removed) 122 B 🟢 -122 B 🟢 -116 B 🟢 -109 B
assets/auto-CIz1W2VX.js 1.73 kB 1.73 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-B2kaqXwB.js 19.3 kB 19.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-C4b7jkru.js 18 kB 18 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CfyfvZ26.js 17.9 kB 17.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CVGDesiQ.js 18.8 kB 18.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-D5s7OQ2Y.js 19.3 kB 19.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DIpat94F.js 18.5 kB 18.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DIyyDM8B.js 20.6 kB 20.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DmapSMuR.js 17.8 kB 17.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DVgVR6E3.js 17.2 kB 17.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-rL7INiLx.js 17 kB 17 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-XNemNPrT.js 18 kB 18 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/i18n-DHOeERpV.js 188 B 188 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/i18n-DRP_FUVU.js 496 kB 496 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/LazyImage-DaPgFlDo.js 14.1 kB 14.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BYMeROYU.js 112 kB 112 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CgEoH02C.js 154 kB 154 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CI3jqob9.js 172 kB 172 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CKO629VV.js 150 kB 150 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CL7lQuTU.js 132 kB 132 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Cz7KlYu8.js 128 kB 128 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-D1SebohP.js 125 kB 125 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DcZO51UE.js 143 kB 143 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-De_XRzjK.js 111 kB 111 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DPjf0Yxm.js 125 kB 125 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-K82I8n9k.js 129 kB 129 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/Media3DTop-C2-Fo6sU.js 2.38 kB 2.38 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaAudioTop-Ci-kpVMy.js 2 kB 2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaImageTop-DGHrmsG1.js 2.34 kB 2.34 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaVideoTop-CTPTvpaW.js 2.82 kB 2.82 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/mixpanel.module-D2psgEhK.js 143 B 143 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Bnfj3jVd.js 412 kB 412 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BOtpSRhY.js 366 kB 366 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CJdnE3iS.js 373 kB 373 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CUtkGNC5.js 369 kB 369 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CvJk0KJv.js 448 kB 448 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DMSL5DLd.js 413 kB 413 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Dun_mUNl.js 369 kB 369 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-eLEyykRM.js 383 kB 383 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-mMDG_apG.js 363 kB 363 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Q0xInTMU.js 342 kB 342 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-wT_xujHW.js 339 kB 339 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/OBJLoader2WorkerModule-DTMpvldF.js 109 kB 109 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/previousFullPath-CATisLRM.js 838 B 838 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/rolldown-runtime-cVp-94Rc.js 1.96 kB 1.96 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/Slider-CQgQc3BO.js 4.21 kB 4.21 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/widget-BEaQgM5X.js 518 B 518 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetBoundingBox-BdFPwTvH.js 186 B 186 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetBoundingBox-D_TNvFYD.js 4.71 kB 4.71 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetChart-CLCIoBG-.js 2.79 kB 2.79 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetColorPicker-CanUnjIO.js 3.71 kB 3.71 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetGalleria-xXISrgBX.js 4.57 kB 4.57 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetImageCompare-BsjQ0cGs.js 3.79 kB 3.79 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetInputText-pGYR6qb7.js 2.58 kB 2.58 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetLayoutField-Dk8frFKs.js 2.61 kB 2.61 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetMarkdown-CHxeeWZW.js 3.22 kB 3.22 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/widgetPropFilter-BFYO1LwS.js 1.31 kB 1.31 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetTextarea-B6NaOy9u.js 3.52 kB 3.52 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetToggleSwitch-BK1i1Z9b.js 3.08 kB 3.08 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 37 added / 37 removed

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@src/extensions/core/load3d/Load3d.ts`:
- Line 58: The ResizeObserver currently causes a duplicate render because it
calls forceRender() while handleResize() also calls forceRender(); update the
observer setup so it invokes handleResize() (or only schedules a single render)
instead of calling forceRender() directly, and add a runtime guard for
ResizeObserver (e.g., check for typeof ResizeObserver !== 'undefined') before
instantiating this.resizeObserver so environments without ResizeObserver don’t
crash—if not available, fall back to a safe alternative such as
window.addEventListener('resize') or skip creating the observer. Ensure you
update the code paths referenced by the resizeObserver field, the observer
creation/teardown logic, and any callbacks that currently call forceRender()
directly.

private rightMouseMoved: boolean = false
private readonly dragThreshold: number = 5
private contextMenuAbortController: AbortController | null = null
private resizeObserver: ResizeObserver | null = null
Copy link
Contributor

@coderabbitai coderabbitai bot Jan 28, 2026

Choose a reason for hiding this comment

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

🧹 Nitpick | 🔵 Trivial

Avoid double render on resize; confirm ResizeObserver support.

handleResize() already ends with forceRender(), so calling forceRender() again in the observer doubles work per resize. Also, if target environments aren’t guaranteed to support ResizeObserver, guard or fallback to avoid a runtime crash.

🛠️ Proposed adjustment
  private initResizeObserver(container: Element | HTMLElement): void {
+   if (typeof ResizeObserver === 'undefined') {
+     return
+   }
    this.resizeObserver = new ResizeObserver(() => {
      this.handleResize()
-     this.forceRender()
    })
    this.resizeObserver.observe(container)
  }

Also applies to: 149-165

🤖 Prompt for AI Agents
In `@src/extensions/core/load3d/Load3d.ts` at line 58, The ResizeObserver
currently causes a duplicate render because it calls forceRender() while
handleResize() also calls forceRender(); update the observer setup so it invokes
handleResize() (or only schedules a single render) instead of calling
forceRender() directly, and add a runtime guard for ResizeObserver (e.g., check
for typeof ResizeObserver !== 'undefined') before instantiating
this.resizeObserver so environments without ResizeObserver don’t crash—if not
available, fall back to a safe alternative such as
window.addEventListener('resize') or skip creating the observer. Ensure you
update the code paths referenced by the resizeObserver field, the observer
creation/teardown logic, and any callbacks that currently call forceRender()
directly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we always follow handleResize with forceRender?

Copy link
Contributor

Choose a reason for hiding this comment

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

@DrJKL Good question! Looking at the handleResize() method implementation (around line 662), it already ends with this.forceRender():

handleResize(): void {
  // ... resize logic ...
  
  this.forceRender()  // ← Already calls forceRender at the end
}

So calling forceRender() after handleResize() is redundant and causes double rendering. This pattern appears in several places:

  • initResizeObserver() (the one CodeRabbit flagged)
  • refreshViewport()
  • setTargetSize()
  • _loadModelInternal()
  • toggleCamera()

The extra forceRender() calls in these methods aren't necessary since handleResize() already triggers a render. This could be cleaned up throughout the codebase to avoid the duplicate work.

@jtydhr88 jtydhr88 force-pushed the fix/preview3d-initial-render-stretch branch from 5657130 to e541bd1 Compare January 28, 2026 03:12
@jtydhr88 jtydhr88 assigned DrJKL and unassigned christian-byrne Jan 28, 2026
}

private initResizeObserver(container: Element | HTMLElement): void {
this.resizeObserver = new ResizeObserver(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just for safety, want to disconnect if there's an existing resizeObserver before assigning?

@jtydhr88 jtydhr88 merged commit 26eb3ef into main Jan 28, 2026
27 checks passed
@jtydhr88 jtydhr88 deleted the fix/preview3d-initial-render-stretch branch January 28, 2026 10:11
DrJKL pushed a commit that referenced this pull request Jan 28, 2026
…8372)

## Summary
- Remove duplicate forceRender() in ResizeObserver callback since
handleResize() already calls it
- Add guard for environments without ResizeObserver support
- Disconnect existing observer before reassigning to prevent leaks

requested by @DrJKL in
#8351

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-8372-fix-remove-redundant-forceRender-call-and-add-ResizeObserver-guard-2f66d73d3650811bb3a6de5c59b3c1fb)
by [Unito](https://www.unito.io)
@christian-byrne christian-byrne added needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch core/1.38 Backport PRs for core 1.38 cloud/1.38 Backport PRs for cloud 1.38 labels Jan 29, 2026
github-actions bot pushed a commit that referenced this pull request Jan 29, 2026
## Summary

When Preview3D node was added to canvas, the Three.js scene would
stretch outside the node bounds until mouse hover. This happened because
the container size was not stable during initialization.

Add ResizeObserver to Load3d class to automatically refresh viewport
when container size changes, ensuring correct render dimensions.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-8351-fix-add-ResizeObserver-to-fix-Preview3D-initial-render-stretch-2f66d73d3650810cbd1fc64dde9ddc17)
by [Unito](https://www.unito.io)
github-actions bot pushed a commit that referenced this pull request Jan 29, 2026
## Summary

When Preview3D node was added to canvas, the Three.js scene would
stretch outside the node bounds until mouse hover. This happened because
the container size was not stable during initialization.

Add ResizeObserver to Load3d class to automatically refresh viewport
when container size changes, ensuring correct render dimensions.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-8351-fix-add-ResizeObserver-to-fix-Preview3D-initial-render-stretch-2f66d73d3650810cbd1fc64dde9ddc17)
by [Unito](https://www.unito.io)
@comfy-pr-bot
Copy link
Member

@jtydhr88 Successfully backported to #8423

@comfy-pr-bot
Copy link
Member

@jtydhr88 Successfully backported to #8424

@github-actions github-actions bot removed the needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch label Jan 29, 2026
AustinMroz pushed a commit that referenced this pull request Jan 29, 2026
… render stretch (#8423)

Backport of #8351 to `core/1.38`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-8423-backport-core-1-38-fix-add-ResizeObserver-to-fix-Preview3D-initial-render-stretch-2f76d73d365081a28ccbd2b5d9eb1aa5)
by [Unito](https://www.unito.io)

Co-authored-by: Terry Jia <terryjia88@gmail.com>
AustinMroz pushed a commit that referenced this pull request Jan 29, 2026
…l render stretch (#8424)

Backport of #8351 to `cloud/1.38`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-8424-backport-cloud-1-38-fix-add-ResizeObserver-to-fix-Preview3D-initial-render-stretch-2f76d73d365081a9974fe055b2a5894d)
by [Unito](https://www.unito.io)

Co-authored-by: Terry Jia <terryjia88@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cloud/1.38 Backport PRs for cloud 1.38 core/1.38 Backport PRs for core 1.38 size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants