Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add vertical align property#758

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Siemienik merged 3 commits intoexceljs:masterfromMikeZyatkov:master
Apr 26, 2019
Merged

Conversation

@MikeZyatkov
Copy link
Contributor

@MikeZyatkovMikeZyatkov commentedMar 7, 2019
edited
Loading

Add support vertical align property (vertAlign) with possible values are superscript and subscript.
Related to#555

Use:
for entire cell
firstRow.font = { name: 'Arial', family: 2, size: 20, vertAlign: 'superscript'}

rich text:
worksheet.getCell('A10').value = { 'richText': [ {'font': {'size': 12,'color': {'theme': 1},'name': 'Calibri','family': 2,'scheme': 'minor'},'text': 'This is '}, {'font': {'italic': true,'size': 12,'color': {'theme': 1},'name': 'Calibri','vertAlign': 'superscript'},'text': 'superscript'}, {'font': {'size': 12,'color': {'theme': 1},'name': 'Calibri','family': 2,'scheme': 'minor'},'text': 'and '}, {'font': {'italic': true,'size': 12,'color': {'theme': 1},'name': 'Calibri','vertAlign': 'subscript'},'text': 'subscript'}, ] };

Add support vertical align property (vertAlign) with possible values are superscript and subscript.Use:for entire cellfirstRow.font = { name: 'Arial', family: 2, size: 20, vertAlign: 'superscript'}rich text:worksheet.getCell('A10').value = {'richText': [{'font': {'size': 12,'color': {'theme': 1},'name': 'Calibri','family': 2,'scheme': 'minor'},'text': 'This is '},{'font': {'italic': true,'size': 12,'color': {'theme': 1},'name': 'Calibri','vertAlign': 'superscript'},'text': 'superscript'},{'font': {'size': 12,'color': {'theme': 1},'name': 'Calibri','family': 2,'scheme': 'minor'},'text': 'and '},{'font': {'italic': true,'size': 12,'color': {'theme': 1},'name': 'Calibri','vertAlign': 'subscript'},'text': 'subscript'},]};
Copy link

@BridgeARBridgeAR left a comment

Choose a reason for hiding this comment

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

Would you be so kind and add some tests? That would be awesome!

@MikeZyatkov
Copy link
ContributorAuthor

@BridgeAR
I added some tests, but I'm not sure that they are completely correct. If they aren't good enough, please give me advice and I will correct them.

@alubbealubbe requested a review fromguyonrocheApril 3, 2019 08:59
@wukaikailive
Copy link

wukaikailive commentedApr 21, 2019
edited
Loading

@guyonroche When to merge this part of the code

@Siemienik
Copy link
Member

@MikeZyatkov could I please you for update Readme?

@MikeZyatkov
Copy link
ContributorAuthor

@Siemienik done

Siemienik reacted with hooray emoji

@SiemienikSiemienik merged commite7926cf intoexceljs:masterApr 26, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@SiemienikSiemienikSiemienik approved these changes

@guyonrocheguyonrocheAwaiting requested review from guyonroche

+1 more reviewer

@BridgeARBridgeARBridgeAR left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@MikeZyatkov@wukaikailive@Siemienik@BridgeAR

[8]ページ先頭

©2009-2025 Movatter.jp