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(facade): range API add setFontWeight #1045

Merged
merged 5 commits into from
Jan 8, 2024

Conversation

hexf00
Copy link
Member

@hexf00 hexf00 commented Jan 7, 2024

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

#1009

  • add range api setFontWeight
const activeSheet = univerAPI.getCurrentSheet().getActiveSheet();

// Set A1:B2 to bold
activeSheet.getRange(0, 0, 2, 2).setFontWeight('bold');
// Set B2 to normal
activeSheet.getRange(1, 1, 1, 1).setFontWeight('normal');
// reset A1 to normal
activeSheet.getRange(0, 0, 1, 1).setFontWeight(null);
  • range api test setFontWeight
  • add demo to change font Weight

Copy link

codecov bot commented Jan 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a2141e5) 27.72% compared to head (b7843d6) 27.73%.

❗ Current head b7843d6 differs from pull request most recent head 46a3f53. Consider uploading reports for the commit 46a3f53 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #1045   +/-   ##
=======================================
  Coverage   27.72%   27.73%           
=======================================
  Files         740      740           
  Lines       43787    43792    +5     
  Branches     9031     9032    +1     
=======================================
+ Hits        12142    12147    +5     
  Misses      27659    27659           
  Partials     3986     3986           

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

@hexf00 hexf00 requested a review from Dushusir January 7, 2024 18:17
Copy link

github-actions bot commented Jan 7, 2024

View Deployment

🥐 🍔 🥓 🥗 🥘 🌯 🍚 🍛 🍖 🍭 🍧 🍝 🥪 🥖 🍪
Still cooking, please come back later
🥙 🥮 🥨 🌭 🍦 🍙 🍕 🍰 🍮 🍜 🍡 🍱 🍿 🍕 🥟

packages/facade/src/apis/sheet/f-range.ts Outdated Show resolved Hide resolved
packages/facade/src/apis/sheet/f-range.ts Outdated Show resolved Hide resolved
@hexf00 hexf00 requested a review from DR-Univer as a code owner January 8, 2024 04:37
@hexf00 hexf00 requested review from wzhudev and jikkai and removed request for jikkai and Dushusir January 8, 2024 06:13
@wzhudev wzhudev merged commit bfab3d0 into dream-num:dev Jan 8, 2024
9 checks passed
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.

2 participants