2020-06-26 01:23:38 +00:00
|
|
|
pragma Singleton
|
|
|
|
|
|
|
|
import QtQuick 2.13
|
|
|
|
import "./twemoji/twemoji.js" as Twemoji
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
property string base: Qt.resolvedUrl("twemoji/")
|
|
|
|
function parse(text, size) {
|
|
|
|
Twemoji.twemoji.base = base
|
|
|
|
Twemoji.twemoji.ext = ".png"
|
|
|
|
Twemoji.twemoji.size = size
|
|
|
|
return Twemoji.twemoji.parse(text)
|
|
|
|
}
|
2020-07-02 18:49:02 +00:00
|
|
|
function fromCodePoint(value) {
|
|
|
|
return Twemoji.twemoji.convert.fromCodePoint(value)
|
|
|
|
}
|
|
|
|
}
|