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

refactor(editor): move viewport renderer to gfx #10338

Closed
wants to merge 5 commits into from
Closed

Conversation

doodlewind
Copy link
Member

@doodlewind doodlewind commented Feb 21, 2025

This allows referencing it in GfxViewportElement

@doodlewind doodlewind requested a review from a team as a code owner February 21, 2025 04:45
Copy link

graphite-app bot commented Feb 21, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@graphite-app graphite-app bot requested review from a team February 21, 2025 04:45
@github-actions github-actions bot added the test Related to test cases label Feb 21, 2025
Copy link

socket-security bot commented Feb 21, 2025

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/[email protected] None 0 4.05 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 6 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 48.3 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 11.8 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 37.7 kB nicolo-ribaudo
npm/@humanwhocodes/[email protected] unsafe 0 21.2 kB nzakas
npm/@opentelemetry/[email protected] None 0 1.22 MB pichlermarc
npm/[email protected] None 0 27.2 kB qix
npm/[email protected] None 0 670 kB iamkun
npm/[email protected] None 0 8.11 kB thlorenz
npm/[email protected] None 0 106 kB eslint
npm/[email protected] None 0 32.3 kB eslintbot
npm/[email protected] None 0 36.3 kB michaelficarra
npm/[email protected] None 0 37.3 kB sssayegh
npm/[email protected] None 0 13 kB esp
npm/[email protected] None 0 9.44 kB hiddentao
npm/[email protected] None 0 16.7 kB jonschlinkert
npm/[email protected] None 0 405 kB vitaly
npm/[email protected] None 0 14.2 kB samn
npm/[email protected] None 0 54.1 kB jdalton
npm/[email protected] None 0 114 kB flipp
npm/[email protected] None 0 3.92 kB sindresorhus
npm/[email protected] None 0 36.7 kB gkz
npm/[email protected] None 0 241 kB rbuckton
npm/[email protected] None 0 470 kB garycourt

🚮 Removed packages: npm/@affine-tools/[email protected], npm/@babel/[email protected], npm/@cspotcode/[email protected], npm/@istanbuljs/[email protected], npm/@nodelib/[email protected], npm/@swc/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

codecov bot commented Feb 21, 2025

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.

Project coverage is 54.41%. Comparing base (c362737) to head (3980b80).
Report is 4 commits behind head on canary.

Files with missing lines Patch % Lines
.../src/gfx/viewport/turbo-renderer/turbo-renderer.ts 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           canary   #10338      +/-   ##
==========================================
+ Coverage   54.31%   54.41%   +0.10%     
==========================================
  Files        2336     2334       -2     
  Lines      108084   108037      -47     
  Branches    17848    17845       -3     
==========================================
+ Hits        58708    58793      +85     
+ Misses      48053    47907     -146     
- Partials     1323     1337      +14     
Flag Coverage Δ
server-test 78.70% <ø> (+0.11%) ⬆️
unittest 31.34% <71.42%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -0,0 +1,2 @@
export * from './turbo-renderer.js';
export * from './types.js';
Copy link
Contributor

Choose a reason for hiding this comment

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

Unacceptable block specific concept in types.ts

export interface ParagraphLayout {
  sentences: SentenceLayout[];
  zoom: number;
}

Copy link
Member Author

@doodlewind doodlewind Feb 21, 2025

Choose a reason for hiding this comment

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

This won't be away very soon, I'll find a workaround to bridge the TurboRenderer with GfxViewportElement.

Copy link
Contributor

Choose a reason for hiding this comment

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

You'll need to add extension load point in TurboRenderer, and let paragraph block register add it's only renderer.

@doodlewind doodlewind closed this Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Related to test cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants