UNPKG

dropflow

Version:

A small CSS2 document renderer built from specifications

11 lines (10 loc) 497 B
import wasm from './wasm.js'; import UnicodeTrie from './text-unicode-trie.js'; export const Emoji = 1 << 0; export const Emoji_Presentation = 1 << 1; export const Emoji_Modifier = 1 << 2; export const Emoji_Modifier_Base = 1 << 3; export const Extended_Pictographic = 1 << 4; // I don't know why the pointer value is stored directly in the .value here. // It must be an emscripten weirdness, so watch out in the future export const trie = new UnicodeTrie(wasm.instance.exports.emoji_trie.value);