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

feat(sheets): support ref-range-formula-service & custom-cell-render-extension #1564

Closed
wants to merge 16 commits into from

Conversation

weird94
Copy link
Contributor

@weird94 weird94 commented Mar 13, 2024

  • I am sure that the code is update-to-date with the dev branch.

close #

Copy link

github-actions bot commented Mar 13, 2024

View Deployment

📑 Examples 📚 Storybook
🔗 Preview link 🔗 Preview link

Copy link

codecov bot commented Mar 13, 2024

Codecov Report

Attention: Patch coverage is 0% with 110 lines in your changes are missing coverage. Please review.

Project coverage is 32.37%. Comparing base (5aeb65f) to head (8597ede).
Report is 83 commits behind head on dev.

❗ Current head 8597ede differs from pull request most recent head e1e5003. Consider uploading reports for the commit e1e5003 to get more accurate results

Files Patch % Lines
...i/src/controllers/cell-custom-render.controller.ts 0.00% 71 Missing ⚠️
...-render/src/components/sheets/extensions/custom.ts 0.00% 24 Missing ⚠️
packages/sheets-ui/src/common/utils.ts 0.00% 14 Missing ⚠️
packages/sheets-ui/src/sheets-ui-plugin.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1564      +/-   ##
==========================================
- Coverage   32.86%   32.37%   -0.49%     
==========================================
  Files         919      925       +6     
  Lines       51202    52254    +1052     
  Branches    10661    10903     +242     
==========================================
+ Hits        16825    16917      +92     
- Misses      34377    35337     +960     

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

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Codecov Report

Attention: Patch coverage is 0% with 109 lines in your changes are missing coverage. Please review.

Project coverage is 32.79%. Comparing base (5aeb65f) to head (da98c90).

Files Patch % Lines
...i/src/controllers/cell-custom-render.controller.ts 0.00% 71 Missing ⚠️
...-render/src/components/sheets/extensions/custom.ts 0.00% 24 Missing ⚠️
packages/sheets-ui/src/common/utils.ts 0.00% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1564      +/-   ##
==========================================
- Coverage   32.86%   32.79%   -0.07%     
==========================================
  Files         919      921       +2     
  Lines       51202    51311     +109     
  Branches    10661    10686      +25     
==========================================
  Hits        16825    16825              
- Misses      34377    34486     +109     

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

}

// current cell is hidden
if (!worksheet.getColVisible(col) || !worksheet.getRowVisible(row)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

贴图渲染缓存要在这里考虑下
image

super();
}

registerFormula(formulaId: string, formula: string, callback: FormulaChangeCallback): IDisposable {
Copy link
Collaborator

Choose a reason for hiding this comment

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

update-formula.controller.ts 里的逻辑有做抽象么?这里没有看到,最好是一套逻辑来维护

Copy link
Member

@wzhudev wzhudev left a comment

Choose a reason for hiding this comment

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

JSDoc is not provided. IMHO there should be examples to demonstrate how to use this API.

import type { ICellDataForSheetInterceptor } from './i-cell-data';
import type { ISelectionCellWithCoord } from './i-selection-data';

export interface ICellRenderContext {
Copy link
Member

Choose a reason for hiding this comment

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

These interface may be not the most appropriate to be placed in package core.

@@ -48,6 +49,7 @@ export interface ICellData {
export interface ICellDataForSheetInterceptor extends ICellData {
interceptorStyle?: Nullable<IStyleData>;
isInArrayFormulaRange?: Nullable<boolean>;
customRender?: Nullable<ICellCustomRender[]>;
Copy link
Member

Choose a reason for hiding this comment

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

We should provide a similar interceptor on the rendering package instead of making into core.

@jikkai jikkai changed the title feat(sheet): support ref-range-formula-service & custom-cell-render-extension feat(sheets): support ref-range-formula-service & custom-cell-render-extension Mar 28, 2024
@weird94 weird94 closed this Apr 1, 2024
@weird94 weird94 deleted the feat/ref-range-formula branch May 31, 2024 07:04
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.

None yet

4 participants