Skip to content

Conversation

@dpvc
Copy link
Member

@dpvc dpvc commented Sep 20, 2017

This PR adds support for msubsup, msub, and msup elements. It currently doesn't handle italic correction (so positions relative to something like an integral sign will be bad).

There is a base class CHTMLscriptbase that is the basis for all three elements. It will also be the basis for the munderover, munder and mover elements, since the movablelimits attribute 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 the CHTMLscriptbase class when under-over support is added.

@dpvc dpvc force-pushed the mfrac-improvements branch from d491743 to 7ffb8b1 Compare October 10, 2017 10:32
Copy link
Member

@zorkow zorkow left a 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() {
Copy link
Member

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();
Copy link
Member

Choose a reason for hiding this comment

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

ditto

Copy link
Member Author

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.

@dpvc
Copy link
Member Author

dpvc commented Oct 28, 2017

Changes made.

@zorkow
Copy link
Member

zorkow commented Nov 17, 2017

Lgtn

Add support for munder/mover/munderover
@dpvc dpvc merged commit 1e45331 into mfrac-improvements Dec 6, 2017
@dpvc dpvc deleted the msubsup-support branch December 6, 2017 13:45
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.

3 participants