All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vladsch.flexmark.ext.emoji.internal.EmojiOptions Maven / Gradle / Ivy

Go to download

flexmark-java extension for emoji shortcuts using Emoji-Cheat-Sheet.com http://www.emoji-cheat-sheet.com/

There is a newer version: 0.64.8
Show newest version
package com.vladsch.flexmark.ext.emoji.internal;

import com.vladsch.flexmark.ext.emoji.EmojiExtension;
import com.vladsch.flexmark.ext.emoji.EmojiImageType;
import com.vladsch.flexmark.ext.emoji.EmojiShortcutType;
import com.vladsch.flexmark.util.data.DataHolder;

public class EmojiOptions {
    public final String rootImagePath;
    public final EmojiShortcutType useShortcutType;
    public final EmojiImageType useImageType;
    public final String attrImageSize;
    public final String attrAlign;
    public final String attrImageClass;

    public EmojiOptions(DataHolder options) {
        this.useShortcutType = EmojiExtension.USE_SHORTCUT_TYPE.getFrom(options);
        this.attrAlign = EmojiExtension.ATTR_ALIGN.getFrom(options);
        this.attrImageSize = EmojiExtension.ATTR_IMAGE_SIZE.getFrom(options);
        this.rootImagePath = EmojiExtension.ROOT_IMAGE_PATH.getFrom(options);
        this.useImageType = EmojiExtension.USE_IMAGE_TYPE.getFrom(options);
        this.attrImageClass = EmojiExtension.ATTR_IMAGE_CLASS.getFrom(options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy