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: 新增 s2.facet.getContentWidth() API #2883

Merged
merged 2 commits into from
Sep 18, 2024
Merged

Conversation

lijinke666
Copy link
Member

👀 PR includes

✨ Feature

  • New feature

📝 Description

新增

s2.facet.getContentWidth()

BREAKING CHANGE: 移除

s2.getContentHeight()

🖼️ Screenshot

Before After

🔗 Related issue link

close #2881

🔍 Self-Check before the merge

  • Add or update relevant docs.
  • Add or update relevant demos.
  • Add or update test case.
  • Add or update relevant TypeScript definitions.

s2.facet.getContentHeight() 和 s2.facet.getContentWidth()

BREAKING CHANGE: 移除 s2.getContentHeight() API
Copy link

vercel bot commented Aug 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
antvis-s2 ❌ Failed (Inspect) Aug 30, 2024 9:24am

@github-actions github-actions bot added next 2.0-next 版本的问题 pr(feature) new feature labels Aug 30, 2024
@@ -637,12 +641,6 @@ export abstract class BaseFacet {
};
}

public getContentHeight(): number {
Copy link
Member Author

Choose a reason for hiding this comment

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

这个在 table-facet 中重写, 其实只有 pivot-facet 使用, 所以摞到相应的位置中

/**
* 获取当前表格实际内容高度
*/
public getContentHeight(): number {
Copy link
Member Author

Choose a reason for hiding this comment

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

统一在 s2.facet 命名空间下

Copy link
Contributor

github-actions bot commented Aug 30, 2024

Size Change: +6 B (0%)

Total Size: 329 kB

Filename Size Change
./packages/s2-core/dist/index.min.js 229 kB +6 B (0%)
ℹ️ View Unchanged
Filename Size
./packages/s2-core/dist/style.min.css 388 B
./packages/s2-react/dist/index.min.js 70.9 kB
./packages/s2-react/dist/style.min.css 3.88 kB
./packages/s2-vue/dist/index.min.js 22.9 kB
./packages/s2-vue/dist/style.min.css 1.97 kB

compressed-size-action

@codecov-commenter
Copy link

codecov-commenter commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.80%. Comparing base (ecdc9c8) to head (9f62830).
Report is 431 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #2883      +/-   ##
==========================================
+ Coverage   75.77%   80.80%   +5.03%     
==========================================
  Files         257      180      -77     
  Lines       11994    10415    -1579     
  Branches     2464     2360     -104     
==========================================
- Hits         9088     8416     -672     
+ Misses       1398      555     -843     
+ Partials     1508     1444      -64     

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

@lijinke666 lijinke666 merged commit 395db7e into next Sep 18, 2024
8 of 9 checks passed
@lijinke666 lijinke666 deleted the feat-content-width branch September 18, 2024 10:52
@lijinke666
Copy link
Member Author

🎉 This PR is included in version @antv/s2-v2.0.0-next.28 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next 2.0-next 版本的问题 pr(feature) new feature released on @next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants