-
Notifications
You must be signed in to change notification settings - Fork 233
Add support for mub/msup/msubsup #49
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
Conversation
d491743 to
7ffb8b1
Compare
zorkow
left a comment
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.
See email.
| /* | ||
| * @return{CHTMLWrapper} The base element's wrapper | ||
| */ | ||
| public get base() { |
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.
Can we make a name distinction as in mmlnodes base is a position.
| public computeBBox(bbox: BBox) { | ||
| const basebox = this.base.getBBox(); | ||
| const subbox = this.sub.getBBox(); | ||
| const supbox = this.sup.getBBox(); |
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.
ditto
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.
OK, changed to baseChild, supChild, subChild.
|
Changes made. |
|
Lgtn |
Add support for munder/mover/munderover
This PR adds support for
msubsup,msub, andmsupelements. It currently doesn't handle italic correction (so positions relative to something like an integral sign will be bad).There is a base class
CHTMLscriptbasethat is the basis for all three elements. It will also be the basis for themunderover,munderandmoverelements, since themovablelimitsattribute can cause the under-over elements to render as sub-sup elements in non-display modes. So the latter under-over elements will be subclasses of the sub-sup classes, and the common under-over methods will be added to theCHTMLscriptbaseclass when under-over support is added.