-
-
Notifications
You must be signed in to change notification settings - Fork 687
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(sheet): support range theme template #4369
base: dev
Are you sure you want to change the base?
Conversation
View Deployment
|
Playwright test resultsDetails 21 tests across 10 suites Failed testschromium › disposing/disposing.spec.ts › no error on constructing and disposing |
70bd910
to
a77fb5b
Compare
22c0b27
to
26624fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/sheets/src/commands/commands/add-worksheet-range-theme.command.ts
Show resolved
Hide resolved
packages/sheets/src/commands/mutations/delete-worksheet-range-theme.mutation.ts
Outdated
Show resolved
Hide resolved
packages/sheets/src/commands/mutations/add-worksheet-range-theme.mutation.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Origin Title: feat(sheet): support range theme template Title: feat(sheet): support range theme template
const fwb = univerAPI.getActiveWorkbook()
const fws = fwb.getActiveSheet()
// const fRange = fws.getRange('A1:D21');
// fRange.useThemeStyle('default');
// fRange.useThemeStyle('rowYellow');
let startRowoffset = 0;
const themes = fwb.getRegisteredRangeThemes();
const count = (themes.length -1) /3;
for(let i =0 ;i < count; i++){
fws.getRange(startRowoffset, 0, 6 ,5 ).useThemeStyle(themes[i*3+1]);
fws.getRange(startRowoffset, 6, 6 ,5 ).useThemeStyle(themes[i*3+2]);
fws.getRange(startRowoffset, 12, 6 ,5 ).useThemeStyle(themes[i*3+3]);
startRowoffset+= 7
} |
Strategy: