RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
 * Increase or decrease font size in selection
 * @param editor The editor instance
 * @param change Whether increase or decrease font size
 * @param fontSizes A sorted font size array, in pt. Default value is FONT_SIZES
 */
Increase or decrease font size in selection
@param editor The editor instance
@param change Whether increase or decrease font size
@param fontSizes A sorted font size array, in pt. Default value is FONT_SIZES
Increase or decrease font size in selection @param editor The editor instance @param change Whether increase or decrease font size @param fontSizes A sorted font size array in pt . Default value is FONT_SIZES
function changeFontSize(editor, change, fontSizes) {
    if (fontSizes === void 0) { fontSizes = exports.FONT_SIZES; }
    var changeBase = change == 0  ? 1 : -1;
    applyInlineStyle_1.default(editor, function (element) {
        var pt = parseFloat(roosterjs_editor_dom_1.getComputedStyle(element, 'font-size'));
        element.style.fontSize = getNewFontSize(pt, changeBase, fontSizes) + 'pt';
        var lineHeight = roosterjs_editor_dom_1.getComputedStyle(element, 'line-height');
        if (lineHeight != 'normal') {
            element.style.lineHeight = 'normal';
        }
    });
}
function changeFontSize ( editor , change , fontSizes ) { if ( fontSizes === void 0 ) { fontSizes = exports . FONT_SIZES ; } var changeBase = change == 0 ? 1 : - 1 ; applyInlineStyle_1 . default ( editor , function ( element ) { var pt = parseFloat ( roosterjs_editor_dom_1 . getComputedStyle ( element , 'font-size' ) ) ; element . style . fontSize = getNewFontSize ( pt , changeBase , fontSizes ) + 'pt' ; var lineHeight = roosterjs_editor_dom_1 . getComputedStyle ( element , 'line-height' ) ; if ( lineHeight != 'normal' ) { element . style . lineHeight = 'normal' ; } } ) ; }
Increase or decrease font size in selection
 @param editor The editor instance
 @param change Whether increase or decrease font size
 @param fontSizes A sorted font size array, in pt.
Increase or decrease font size in selection @param editor The editor instance @param change Whether increase or decrease font size @param fontSizes A sorted font size array in pt .
/* Increase */