Created
August 25, 2021 15:09
-
-
Save ladifire/f29363e8ad4b94c06f6b76d920a7bd4c to your computer and use it in GitHub Desktop.
Learning Figma technology
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.executeFullscreenEmscriptenCode = () => { | |
var Module = typeof Module !== "undefined" ? Module : {}; | |
Module = self["Module"] || {}; | |
Module["noExitRuntime"] = true; | |
Error["stackTraceLimit"] = 100; | |
Module["onAbort"] = function(what) { | |
ABORT = true; | |
EXITSTATUS = 1; | |
var text = "abort(" + (what && !/^\d+$/.test(what + "") ? JSON.stringify(what) : "") + ")"; | |
console.error(text); | |
throw new Error(text) | |
}; | |
var moduleOverrides = {}; | |
var key; | |
for (key in Module) { | |
if (Module.hasOwnProperty(key)) { | |
moduleOverrides[key] = Module[key] | |
} | |
} | |
var arguments_ = []; | |
var thisProgram = "./this.program"; | |
var quit_ = function(status, toThrow) { | |
throw toThrow | |
}; | |
var ENVIRONMENT_IS_WEB = false; | |
var ENVIRONMENT_IS_WORKER = false; | |
var ENVIRONMENT_IS_NODE = false; | |
var ENVIRONMENT_IS_SHELL = false; | |
ENVIRONMENT_IS_WEB = typeof window === "object"; | |
ENVIRONMENT_IS_WORKER = typeof importScripts === "function"; | |
ENVIRONMENT_IS_NODE = typeof process === "object" && typeof process.versions === "object" && typeof process.versions.node === "string"; | |
ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER; | |
var scriptDirectory = ""; | |
function locateFile(path) { | |
if (Module["locateFile"]) { | |
return Module["locateFile"](path, scriptDirectory) | |
} | |
return scriptDirectory + path | |
} | |
var read_, readAsync, readBinary, setWindowTitle; | |
var nodeFS; | |
var nodePath; | |
if (ENVIRONMENT_IS_NODE) { | |
if (ENVIRONMENT_IS_WORKER) { | |
scriptDirectory = require("path").dirname(scriptDirectory) + "/" | |
} else { | |
scriptDirectory = __dirname + "/" | |
} | |
read_ = function shell_read(filename, binary) { | |
if (!nodeFS) nodeFS = require("fs"); | |
if (!nodePath) nodePath = require("path"); | |
filename = nodePath["normalize"](filename); | |
return nodeFS["readFileSync"](filename, binary ? null : "utf8") | |
}; | |
readBinary = function readBinary(filename) { | |
var ret = read_(filename, true); | |
if (!ret.buffer) { | |
ret = new Uint8Array(ret) | |
} | |
assert(ret.buffer); | |
return ret | |
}; | |
if (process["argv"].length > 1) { | |
thisProgram = process["argv"][1].replace(/\\/g, "/") | |
} | |
arguments_ = process["argv"].slice(2); | |
if (typeof module !== "undefined") { | |
module["exports"] = Module | |
} | |
process["on"]("uncaughtException", function(ex) { | |
if (!(ex instanceof ExitStatus)) { | |
throw ex | |
} | |
}); | |
process["on"]("unhandledRejection", abort); | |
quit_ = function(status) { | |
process["exit"](status) | |
}; | |
Module["inspect"] = function() { | |
return "[Emscripten Module object]" | |
} | |
} else if (ENVIRONMENT_IS_SHELL) { | |
if (typeof read != "undefined") { | |
read_ = function shell_read(f) { | |
return read(f) | |
} | |
} | |
readBinary = function readBinary(f) { | |
var data; | |
if (typeof readbuffer === "function") { | |
return new Uint8Array(readbuffer(f)) | |
} | |
data = read(f, "binary"); | |
assert(typeof data === "object"); | |
return data | |
}; | |
if (typeof scriptArgs != "undefined") { | |
arguments_ = scriptArgs | |
} else if (typeof arguments != "undefined") { | |
arguments_ = arguments | |
} | |
if (typeof quit === "function") { | |
quit_ = function(status) { | |
quit(status) | |
} | |
} | |
if (typeof print !== "undefined") { | |
if (typeof console === "undefined") console = {}; | |
console.log = print; | |
console.warn = console.error = typeof printErr !== "undefined" ? printErr : print | |
} | |
} else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) { | |
if (ENVIRONMENT_IS_WORKER) { | |
scriptDirectory = self.location.href | |
} else if (document.currentScript) { | |
scriptDirectory = document.currentScript.src | |
} | |
if (scriptDirectory.indexOf("blob:") !== 0) { | |
scriptDirectory = scriptDirectory.substr(0, scriptDirectory.lastIndexOf("/") + 1) | |
} else { | |
scriptDirectory = "" | |
} { | |
read_ = function shell_read(url) { | |
var xhr = new XMLHttpRequest; | |
xhr.open("GET", url, false); | |
xhr.send(null); | |
return xhr.responseText | |
}; | |
if (ENVIRONMENT_IS_WORKER) { | |
readBinary = function readBinary(url) { | |
var xhr = new XMLHttpRequest; | |
xhr.open("GET", url, false); | |
xhr.responseType = "arraybuffer"; | |
xhr.send(null); | |
return new Uint8Array(xhr.response) | |
} | |
} | |
readAsync = function readAsync(url, onload, onerror) { | |
var xhr = new XMLHttpRequest; | |
xhr.open("GET", url, true); | |
xhr.responseType = "arraybuffer"; | |
xhr.onload = function xhr_onload() { | |
if (xhr.status == 200 || xhr.status == 0 && xhr.response) { | |
onload(xhr.response); | |
return | |
} | |
onerror() | |
}; | |
xhr.onerror = onerror; | |
xhr.send(null) | |
} | |
} | |
setWindowTitle = function(title) { | |
document.title = title | |
} | |
} else {} | |
var out = Module["print"] || console.log.bind(console); | |
var err = Module["printErr"] || console.warn.bind(console); | |
for (key in moduleOverrides) { | |
if (moduleOverrides.hasOwnProperty(key)) { | |
Module[key] = moduleOverrides[key] | |
} | |
} | |
moduleOverrides = null; | |
if (Module["arguments"]) arguments_ = Module["arguments"]; | |
if (Module["thisProgram"]) thisProgram = Module["thisProgram"]; | |
if (Module["quit"]) quit_ = Module["quit"]; | |
function dynamicAlloc(size) { | |
var ret = HEAP32[DYNAMICTOP_PTR >> 2]; | |
var end = ret + size + 15 & -16; | |
HEAP32[DYNAMICTOP_PTR >> 2] = end; | |
return ret | |
} | |
function getNativeTypeSize(type) { | |
switch (type) { | |
case "i1": | |
case "i8": | |
return 1; | |
case "i16": | |
return 2; | |
case "i32": | |
return 4; | |
case "i64": | |
return 8; | |
case "float": | |
return 4; | |
case "double": | |
return 8; | |
default: { | |
if (type[type.length - 1] === "*") { | |
return 4 | |
} else if (type[0] === "i") { | |
var bits = Number(type.substr(1)); | |
assert(bits % 8 === 0, "getNativeTypeSize invalid bits " + bits + ", type " + type); | |
return bits / 8 | |
} else { | |
return 0 | |
} | |
} | |
} | |
} | |
function warnOnce(text) { | |
if (!warnOnce.shown) warnOnce.shown = {}; | |
if (!warnOnce.shown[text]) { | |
warnOnce.shown[text] = 1; | |
err(text) | |
} | |
} | |
var tempRet0 = 0; | |
var setTempRet0 = function(value) { | |
tempRet0 = value | |
}; | |
var getTempRet0 = function() { | |
return tempRet0 | |
}; | |
var wasmBinary; | |
if (Module["wasmBinary"]) wasmBinary = Module["wasmBinary"]; | |
var noExitRuntime; | |
if (Module["noExitRuntime"]) noExitRuntime = Module["noExitRuntime"]; | |
if (typeof WebAssembly !== "object") { | |
abort("no native wasm support detected") | |
} | |
function setValue(ptr, value, type, noSafe) { | |
type = type || "i8"; | |
if (type.charAt(type.length - 1) === "*") type = "i32"; | |
switch (type) { | |
case "i1": | |
HEAP8[ptr >> 0] = value; | |
break; | |
case "i8": | |
HEAP8[ptr >> 0] = value; | |
break; | |
case "i16": | |
HEAP16[ptr >> 1] = value; | |
break; | |
case "i32": | |
HEAP32[ptr >> 2] = value; | |
break; | |
case "i64": | |
tempI64 = [value >>> 0, (tempDouble = value, +Math_abs(tempDouble) >= 1 ? tempDouble > 0 ? (Math_min(+Math_floor(tempDouble / 4294967296), 4294967295) | 0) >>> 0 : ~~+Math_ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)], HEAP32[ptr >> 2] = tempI64[0], HEAP32[ptr + 4 >> 2] = tempI64[1]; | |
break; | |
case "float": | |
HEAPF32[ptr >> 2] = value; | |
break; | |
case "double": | |
HEAPF64[ptr >> 3] = value; | |
break; | |
default: | |
abort("invalid type for setValue: " + type) | |
} | |
} | |
var wasmMemory; | |
var wasmTable = new WebAssembly.Table({ | |
"initial": 9110, | |
"maximum": 9110 + 0, | |
"element": "anyfunc" | |
}); | |
var ABORT = false; | |
var EXITSTATUS = 0; | |
function assert(condition, text) { | |
if (!condition) { | |
abort("Assertion failed: " + text) | |
} | |
} | |
var ALLOC_NORMAL = 0; | |
var ALLOC_NONE = 3; | |
function allocate(slab, types, allocator, ptr) { | |
var zeroinit, size; | |
if (typeof slab === "number") { | |
zeroinit = true; | |
size = slab | |
} else { | |
zeroinit = false; | |
size = slab.length | |
} | |
var singleType = typeof types === "string" ? types : null; | |
var ret; | |
if (allocator == ALLOC_NONE) { | |
ret = ptr | |
} else { | |
ret = [_malloc, stackAlloc, dynamicAlloc][allocator](Math.max(size, singleType ? 1 : types.length)) | |
} | |
if (zeroinit) { | |
var stop; | |
ptr = ret; | |
assert((ret & 3) == 0); | |
stop = ret + (size & ~3); | |
for (; ptr < stop; ptr += 4) { | |
HEAP32[ptr >> 2] = 0 | |
} | |
stop = ret + size; | |
while (ptr < stop) { | |
HEAP8[ptr++ >> 0] = 0 | |
} | |
return ret | |
} | |
if (singleType === "i8") { | |
if (slab.subarray || slab.slice) { | |
HEAPU8.set(slab, ret) | |
} else { | |
HEAPU8.set(new Uint8Array(slab), ret) | |
} | |
return ret | |
} | |
var i = 0, | |
type, typeSize, previousType; | |
while (i < size) { | |
var curr = slab[i]; | |
type = singleType || types[i]; | |
if (type === 0) { | |
i++; | |
continue | |
} | |
if (type == "i64") type = "i32"; | |
setValue(ret + i, curr, type); | |
if (previousType !== type) { | |
typeSize = getNativeTypeSize(type); | |
previousType = type | |
} | |
i += typeSize | |
} | |
return ret | |
} | |
var UTF8Decoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf8") : undefined; | |
function UTF8ArrayToString(heap, idx, maxBytesToRead) { | |
var endIdx = idx + maxBytesToRead; | |
var endPtr = idx; | |
while (heap[endPtr] && !(endPtr >= endIdx)) ++endPtr; | |
if (endPtr - idx > 16 && heap.subarray && UTF8Decoder) { | |
return UTF8Decoder.decode(heap.subarray(idx, endPtr)) | |
} else { | |
var str = ""; | |
while (idx < endPtr) { | |
var u0 = heap[idx++]; | |
if (!(u0 & 128)) { | |
str += String.fromCharCode(u0); | |
continue | |
} | |
var u1 = heap[idx++] & 63; | |
if ((u0 & 224) == 192) { | |
str += String.fromCharCode((u0 & 31) << 6 | u1); | |
continue | |
} | |
var u2 = heap[idx++] & 63; | |
if ((u0 & 240) == 224) { | |
u0 = (u0 & 15) << 12 | u1 << 6 | u2 | |
} else { | |
u0 = (u0 & 7) << 18 | u1 << 12 | u2 << 6 | heap[idx++] & 63 | |
} | |
if (u0 < 65536) { | |
str += String.fromCharCode(u0) | |
} else { | |
var ch = u0 - 65536; | |
str += String.fromCharCode(55296 | ch >> 10, 56320 | ch & 1023) | |
} | |
} | |
} | |
return str | |
} | |
function UTF8ToString(ptr, maxBytesToRead) { | |
return ptr ? UTF8ArrayToString(HEAPU8, ptr, maxBytesToRead) : "" | |
} | |
function stringToUTF8Array(str, heap, outIdx, maxBytesToWrite) { | |
if (!(maxBytesToWrite > 0)) return 0; | |
var startIdx = outIdx; | |
var endIdx = outIdx + maxBytesToWrite - 1; | |
for (var i = 0; i < str.length; ++i) { | |
var u = str.charCodeAt(i); | |
if (u >= 55296 && u <= 57343) { | |
var u1 = str.charCodeAt(++i); | |
u = 65536 + ((u & 1023) << 10) | u1 & 1023 | |
} | |
if (u <= 127) { | |
if (outIdx >= endIdx) break; | |
heap[outIdx++] = u | |
} else if (u <= 2047) { | |
if (outIdx + 1 >= endIdx) break; | |
heap[outIdx++] = 192 | u >> 6; | |
heap[outIdx++] = 128 | u & 63 | |
} else if (u <= 65535) { | |
if (outIdx + 2 >= endIdx) break; | |
heap[outIdx++] = 224 | u >> 12; | |
heap[outIdx++] = 128 | u >> 6 & 63; | |
heap[outIdx++] = 128 | u & 63 | |
} else { | |
if (outIdx + 3 >= endIdx) break; | |
heap[outIdx++] = 240 | u >> 18; | |
heap[outIdx++] = 128 | u >> 12 & 63; | |
heap[outIdx++] = 128 | u >> 6 & 63; | |
heap[outIdx++] = 128 | u & 63 | |
} | |
} | |
heap[outIdx] = 0; | |
return outIdx - startIdx | |
} | |
function stringToUTF8(str, outPtr, maxBytesToWrite) { | |
return stringToUTF8Array(str, HEAPU8, outPtr, maxBytesToWrite) | |
} | |
function lengthBytesUTF8(str) { | |
var len = 0; | |
for (var i = 0; i < str.length; ++i) { | |
var u = str.charCodeAt(i); | |
if (u >= 55296 && u <= 57343) u = 65536 + ((u & 1023) << 10) | str.charCodeAt(++i) & 1023; | |
if (u <= 127) ++len; | |
else if (u <= 2047) len += 2; | |
else if (u <= 65535) len += 3; | |
else len += 4 | |
} | |
return len | |
} | |
function writeArrayToMemory(array, buffer) { | |
HEAP8.set(array, buffer) | |
} | |
function writeAsciiToMemory(str, buffer, dontAddNull) { | |
for (var i = 0; i < str.length; ++i) { | |
HEAP8[buffer++ >> 0] = str.charCodeAt(i) | |
} | |
if (!dontAddNull) HEAP8[buffer >> 0] = 0 | |
} | |
var WASM_PAGE_SIZE = 65536; | |
function alignUp(x, multiple) { | |
if (x % multiple > 0) { | |
x += multiple - x % multiple | |
} | |
return x | |
} | |
var buffer, HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64; | |
function updateGlobalBufferAndViews(buf) { | |
buffer = buf; | |
Module["HEAP8"] = HEAP8 = new Int8Array(buf); | |
Module["HEAP16"] = HEAP16 = new Int16Array(buf); | |
Module["HEAP32"] = HEAP32 = new Int32Array(buf); | |
Module["HEAPU8"] = HEAPU8 = new Uint8Array(buf); | |
Module["HEAPU16"] = HEAPU16 = new Uint16Array(buf); | |
Module["HEAPU32"] = HEAPU32 = new Uint32Array(buf); | |
Module["HEAPF32"] = HEAPF32 = new Float32Array(buf); | |
Module["HEAPF64"] = HEAPF64 = new Float64Array(buf) | |
} | |
var DYNAMIC_BASE = 6683920, | |
DYNAMICTOP_PTR = 1440880; | |
var INITIAL_INITIAL_MEMORY = Module["INITIAL_MEMORY"] || 16777216; | |
if (Module["wasmMemory"]) { | |
wasmMemory = Module["wasmMemory"] | |
} else { | |
wasmMemory = new WebAssembly.Memory({ | |
"initial": INITIAL_INITIAL_MEMORY / WASM_PAGE_SIZE, | |
"maximum": 2147483648 / WASM_PAGE_SIZE | |
}) | |
} | |
if (wasmMemory) { | |
buffer = wasmMemory.buffer | |
} | |
INITIAL_INITIAL_MEMORY = buffer.byteLength; | |
updateGlobalBufferAndViews(buffer); | |
HEAP32[DYNAMICTOP_PTR >> 2] = DYNAMIC_BASE; | |
function callRuntimeCallbacks(callbacks) { | |
while (callbacks.length > 0) { | |
var callback = callbacks.shift(); | |
if (typeof callback == "function") { | |
callback(Module); | |
continue | |
} | |
var func = callback.func; | |
if (typeof func === "number") { | |
if (callback.arg === undefined) { | |
Module["dynCall_v"](func) | |
} else { | |
Module["dynCall_vi"](func, callback.arg) | |
} | |
} else { | |
func(callback.arg === undefined ? null : callback.arg) | |
} | |
} | |
} | |
var __ATPRERUN__ = []; | |
var __ATINIT__ = []; | |
var __ATMAIN__ = []; | |
var __ATPOSTRUN__ = []; | |
var runtimeInitialized = false; | |
var runtimeExited = false; | |
function preRun() { | |
if (Module["preRun"]) { | |
if (typeof Module["preRun"] == "function") Module["preRun"] = [Module["preRun"]]; | |
while (Module["preRun"].length) { | |
addOnPreRun(Module["preRun"].shift()) | |
} | |
} | |
callRuntimeCallbacks(__ATPRERUN__) | |
} | |
function initRuntime() { | |
runtimeInitialized = true; | |
callRuntimeCallbacks(__ATINIT__) | |
} | |
function preMain() { | |
callRuntimeCallbacks(__ATMAIN__) | |
} | |
function exitRuntime() { | |
runtimeExited = true | |
} | |
function postRun() { | |
if (Module["postRun"]) { | |
if (typeof Module["postRun"] == "function") Module["postRun"] = [Module["postRun"]]; | |
while (Module["postRun"].length) { | |
addOnPostRun(Module["postRun"].shift()) | |
} | |
} | |
callRuntimeCallbacks(__ATPOSTRUN__) | |
} | |
function addOnPreRun(cb) { | |
__ATPRERUN__.unshift(cb) | |
} | |
function addOnPostRun(cb) { | |
__ATPOSTRUN__.unshift(cb) | |
} | |
var Math_abs = Math.abs; | |
var Math_ceil = Math.ceil; | |
var Math_floor = Math.floor; | |
var Math_min = Math.min; | |
var runDependencies = 0; | |
var runDependencyWatcher = null; | |
var dependenciesFulfilled = null; | |
function getUniqueRunDependency(id) { | |
return id | |
} | |
function addRunDependency(id) { | |
runDependencies++; | |
if (Module["monitorRunDependencies"]) { | |
Module["monitorRunDependencies"](runDependencies) | |
} | |
} | |
function removeRunDependency(id) { | |
runDependencies--; | |
if (Module["monitorRunDependencies"]) { | |
Module["monitorRunDependencies"](runDependencies) | |
} | |
if (runDependencies == 0) { | |
if (runDependencyWatcher !== null) { | |
clearInterval(runDependencyWatcher); | |
runDependencyWatcher = null | |
} | |
if (dependenciesFulfilled) { | |
var callback = dependenciesFulfilled; | |
dependenciesFulfilled = null; | |
callback() | |
} | |
} | |
} | |
Module["preloadedImages"] = {}; | |
Module["preloadedAudios"] = {}; | |
function abort(what) { | |
if (Module["onAbort"]) { | |
Module["onAbort"](what) | |
} | |
what += ""; | |
err(what); | |
ABORT = true; | |
EXITSTATUS = 1; | |
what = "abort(" + what + "). Build with -s ASSERTIONS=1 for more info."; | |
var e = new WebAssembly.RuntimeError(what); | |
throw e | |
} | |
function hasPrefix(str, prefix) { | |
return String.prototype.startsWith ? str.startsWith(prefix) : str.indexOf(prefix) === 0 | |
} | |
var dataURIPrefix = "data:application/octet-stream;base64,"; | |
function isDataURI(filename) { | |
return hasPrefix(filename, dataURIPrefix) | |
} | |
var fileURIPrefix = "file://"; | |
function isFileURI(filename) { | |
return hasPrefix(filename, fileURIPrefix) | |
} | |
var wasmBinaryFile = "release_wasm.wasm"; | |
if (!isDataURI(wasmBinaryFile)) { | |
wasmBinaryFile = locateFile(wasmBinaryFile) | |
} | |
function getBinary() { | |
try { | |
if (wasmBinary) { | |
return new Uint8Array(wasmBinary) | |
} | |
if (readBinary) { | |
return readBinary(wasmBinaryFile) | |
} else { | |
throw "both async and sync fetching of the wasm failed" | |
} | |
} catch (err) { | |
abort(err) | |
} | |
} | |
function getBinaryPromise() { | |
if (!wasmBinary && (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) && typeof fetch === "function" && !isFileURI(wasmBinaryFile)) { | |
return fetch(wasmBinaryFile, { | |
credentials: "same-origin" | |
}).then(function(response) { | |
if (!response["ok"]) { | |
throw "failed to load wasm binary file at '" + wasmBinaryFile + "'" | |
} | |
return response["arrayBuffer"]() | |
}).catch(function() { | |
return getBinary() | |
}) | |
} | |
return new Promise(function(resolve, reject) { | |
resolve(getBinary()) | |
}) | |
} | |
function createWasm() { | |
var info = { | |
"a": asmLibraryArg | |
}; | |
function receiveInstance(instance, module) { | |
var exports = instance.exports; | |
Module["asm"] = exports; | |
removeRunDependency("wasm-instantiate") | |
} | |
addRunDependency("wasm-instantiate"); | |
function receiveInstantiatedSource(output) { | |
receiveInstance(output["instance"]) | |
} | |
function instantiateArrayBuffer(receiver) { | |
return getBinaryPromise().then(function(binary) { | |
return WebAssembly.instantiate(binary, info) | |
}).then(receiver, function(reason) { | |
err("failed to asynchronously prepare wasm: " + reason); | |
abort(reason) | |
}) | |
} | |
function instantiateAsync() { | |
if (!wasmBinary && typeof WebAssembly.instantiateStreaming === "function" && !isDataURI(wasmBinaryFile) && !isFileURI(wasmBinaryFile) && typeof fetch === "function") { | |
fetch(wasmBinaryFile, { | |
credentials: "same-origin" | |
}).then(function(response) { | |
var result = WebAssembly.instantiateStreaming(response, info); | |
return result.then(receiveInstantiatedSource, function(reason) { | |
err("wasm streaming compile failed: " + reason); | |
err("falling back to ArrayBuffer instantiation"); | |
return instantiateArrayBuffer(receiveInstantiatedSource) | |
}) | |
}) | |
} else { | |
return instantiateArrayBuffer(receiveInstantiatedSource) | |
} | |
} | |
if (Module["instantiateWasm"]) { | |
try { | |
var exports = Module["instantiateWasm"](info, receiveInstance); | |
return exports | |
} catch (e) { | |
err("Module.instantiateWasm callback failed with error: " + e); | |
return false | |
} | |
} | |
instantiateAsync(); | |
return {} | |
} | |
var tempDouble; | |
var tempI64; | |
var ASM_CONSTS = { | |
849631: function($0) { | |
(Module["_IB_"] || (Module["_IB_"] = {}))[$0] = new Uint8Array | |
}, | |
849703: function($0) { | |
delete Module["_IB_"][$0] | |
}, | |
849737: function($0, $1, $2, $3) { | |
Module["_IB_"][$0].set(Module["HEAPU8"].subarray($2, $2 + $3), $1) | |
}, | |
849814: function($0, $1) { | |
var old = Module["_IB_"][$0]; | |
(Module["_IB_"][$0] = new Uint8Array($1)).set(old.length < $1 ? old : old.subarray(0, $1)) | |
} | |
}; | |
function _emscripten_asm_const_iii(code, sigPtr, argbuf) { | |
var args = readAsmConstArgs(sigPtr, argbuf); | |
return ASM_CONSTS[code].apply(null, args) | |
} | |
__ATINIT__.push({ | |
func: function() { | |
___wasm_call_ctors() | |
} | |
}); | |
var _handles = {}; | |
function _BitmapContext_beginPath(handle) { | |
var context = _handles[handle]._context; | |
context.beginPath() | |
} | |
function _BitmapContext_clear(handle) { | |
var context = _handles[handle]._context; | |
var canvas = context.canvas; | |
context.save(); | |
context.setTransform(1, 0, 0, 1, 0, 0); | |
context.clearRect(0, 0, canvas.width, canvas.height); | |
context.restore() | |
} | |
function _BitmapContext_closePath(handle) { | |
var context = _handles[handle]._context; | |
context.closePath() | |
} | |
function _BitmapContext_curveTo(handle, x1, y1, x2, y2, x3, y3) { | |
var context = _handles[handle]._context; | |
context.bezierCurveTo(x1, y1, x2, y2, x3, y3) | |
} | |
function _BitmapContext_download(handle, x, y, width, height, rgba) { | |
var context = _handles[handle]._context; | |
var imageData = context.getImageData(x, y, width, height); | |
HEAPU8.set(imageData.data, rgba) | |
} | |
function _cssColorFromCPPColor(color) { | |
return "rgba(" + (color & 255) + "," + (color >> 8 & 255) + "," + (color >> 16 & 255) + "," + ((color >>> 24) / 255).toFixed(6) + ")" | |
} | |
function _BitmapContext_fill(handle, color) { | |
var context = _handles[handle]._context; | |
context.fillStyle = _cssColorFromCPPColor(color); | |
context.fill() | |
} | |
function _BitmapContext_fillGradient(handle, stops, count, x1, y1, x2, y2) { | |
var context = _handles[handle]._context; | |
var gradient = context.createLinearGradient(x1, y1, x2, y2); | |
stops >>= 2; | |
for (var i = 0; i < count; i++) { | |
gradient.addColorStop(HEAPF32[stops + i * 2 + 1], _cssColorFromCPPColor(HEAP32[stops + i * 2])) | |
} | |
context.fillStyle = gradient; | |
context.fill() | |
} | |
function _jsStringFromCPPString(ptr) { | |
return UTF8ToString(ptr) | |
} | |
function _BitmapContext_fillText(handle, x, y, string, font, color) { | |
var context = _handles[handle]._context; | |
context.font = _handles[font]; | |
context.fillStyle = _cssColorFromCPPColor(color); | |
context.fillText(_jsStringFromCPPString(string), x, y) | |
} | |
function _BitmapContext_lineTo(handle, x, y) { | |
var context = _handles[handle]._context; | |
context.lineTo(x, y) | |
} | |
function _BitmapContext_moveTo(handle, x, y) { | |
var context = _handles[handle]._context; | |
context.moveTo(x, y) | |
} | |
function _HTMLBitmapContext() { | |
this._canvas = document.createElement("canvas"); | |
this._context = this._canvas.getContext("2d"); | |
this._devicePixelRatio = 1 | |
} | |
function _BitmapContext_new(handle) { | |
_handles[handle] = new _HTMLBitmapContext | |
} | |
function _BitmapContext_setSize(handle, width, height, devicePixelRatio) { | |
var bitmapContext = _handles[handle]; | |
var canvas = bitmapContext._canvas; | |
canvas.width = width; | |
canvas.height = height; | |
bitmapContext._devicePixelRatio = devicePixelRatio; | |
bitmapContext._context.scale(devicePixelRatio, devicePixelRatio) | |
} | |
function _BitmapContext_stroke(handle, color, thickness) { | |
var context = _handles[handle]._context; | |
context.strokeStyle = _cssColorFromCPPColor(color); | |
context.lineWidth = thickness; | |
context.stroke() | |
} | |
function _BitmapContext_upload(handle, x, y, width, height, rgba) { | |
var context = _handles[handle]._context; | |
var imageData = context.createImageData(width, height); | |
imageData.data.set(HEAPU8.subarray(rgba, rgba + width * height * 4)); | |
context.putImageData(imageData, x, y) | |
} | |
var _Window_expectingCopyCutEvent = null; | |
var _FigmaAppObj = null; | |
function _PlatformInfo_isSafari() { | |
return _FigmaAppObj.PlatformBrowser.isSafari | |
} | |
var _CommonAppObj = null; | |
function _isFeatureFlagEnabled(flag) { | |
return _CommonAppObj && _CommonAppObj.getFeatureFlags()[flag] | |
} | |
var _Window_focusEventBeingCalled = false; | |
var _Window_expectingTextInput = null; | |
var _Window_expectingPasteEvent = null; | |
function _isExpectingTextInput() { | |
return _Window_expectingTextInput || _Window_expectingCopyCutEvent || _Window_expectingPasteEvent | |
} | |
var _Window_customFocusElementReadOnly = null; | |
function _PlatformInfo_isChrome() { | |
return _FigmaAppObj.PlatformBrowser.isChrome | |
} | |
var _PlatformInfo_didCallInit = false; | |
var _isMac = false; | |
var _isIpad = false; | |
var _isWindows = false; | |
var _isiOS = false; | |
var _isChromeOS = false; | |
var _isLinux = false; | |
function _PlatformInfo_init() { | |
if (_PlatformInfo_didCallInit) return; | |
_PlatformInfo_didCallInit = true; | |
var userAgent = self.navigator.userAgent; | |
var platform = self.navigator.platform; | |
var vendor = self.navigator.vendor; | |
var maxTouchPoints = self.navigator.maxTouchPoints; | |
if (/Mac/.test(platform)) { | |
_isMac = true; | |
_isIpad = /iPad/.test(userAgent) || maxTouchPoints > 2 && !/iPhone/.test(userAgent) | |
} else { | |
_isWindows = /Win/.test(platform); | |
if (!_isWindows) { | |
_isiOS = /iOS/.test(platform); | |
if (!_isiOS) { | |
_isChromeOS = /CrOS/.test(userAgent); | |
if (!_isChromeOS) { | |
_isLinux = /Linux/.test(platform) | |
} | |
} | |
} | |
} | |
} | |
function _PlatformInfo_isIpad() { | |
_PlatformInfo_init(); | |
return _isIpad | |
} | |
var _Window_customFocusElementReadWrite = null; | |
function _updateCustomFocusType() { | |
var oldFocusEventBeingCalled = _Window_focusEventBeingCalled; | |
_Window_focusEventBeingCalled = true; | |
if (_Window_expectingCopyCutEvent || !_isExpectingTextInput()) { | |
if (document.activeElement !== _Window_customFocusElementReadOnly) { | |
_Window_customFocusElementReadOnly.focus(); | |
_Window_customFocusElementReadOnly.value = _PlatformInfo_isChrome() ? "" : " "; | |
_Window_customFocusElementReadOnly.selectionStart = 0; | |
_Window_customFocusElementReadOnly.selectionEnd = 1 | |
} | |
} else { | |
if (_PlatformInfo_isIpad()) { | |
_Window_customFocusElementReadWrite.style.left = "0px"; | |
_Window_customFocusElementReadWrite.style.top = "0px" | |
} | |
if (document.activeElement !== _Window_customFocusElementReadWrite) { | |
_Window_customFocusElementReadWrite.focus() | |
} | |
} | |
_Window_focusEventBeingCalled = oldFocusEventBeingCalled | |
} | |
function _Window_setExpectingCopyCutEvent(newValue) { | |
if (_Window_expectingCopyCutEvent === newValue) { | |
return | |
} | |
_Window_expectingCopyCutEvent = newValue; | |
_updateCustomFocusType() | |
} | |
function _PlatformInfo_isEdge() { | |
return _FigmaAppObj.PlatformBrowser.isEdge | |
} | |
function _ClipboardEvent_execCommandCopy() { | |
var showExec = false; | |
var oldExpectingCopyCutEvent = _Window_expectingCopyCutEvent; | |
if (_PlatformInfo_isSafari() || _isFeatureFlagEnabled("copy_properties_from_menu")) { | |
_Window_setExpectingCopyCutEvent(true) | |
} | |
try { | |
var success = document.execCommand("copy"); | |
if (!success) { | |
if (_PlatformInfo_isEdge()) { | |
if (showExec) console.log("ignoring execCommand failure on Edge"); | |
success = true | |
} else { | |
if (showExec) console.warn("could not copy data to the clipboard") | |
} | |
} | |
if (success) { | |
if (showExec) console.log("copied data to system clipboard") | |
} | |
} catch (err) { | |
console.warn(err) | |
} | |
if (_PlatformInfo_isSafari() || _isFeatureFlagEnabled("copy_properties_from_menu")) { | |
_Window_setExpectingCopyCutEvent(oldExpectingCopyCutEvent) | |
} | |
} | |
var _Clipboard_dataTransfer = null; | |
function _ClipboardEvent_tryToDetectSpreadsheetDataOnClipboard() { | |
if (!_Clipboard_dataTransfer) return false; | |
try { | |
const data = _Clipboard_dataTransfer["getData"]("text/html"); | |
const TABLE_TAG_OPEN = "<table"; | |
const TABLE_TAG_CLOSE = "</table>"; | |
const tableOpen = data.indexOf(TABLE_TAG_OPEN); | |
const tableClose = data.indexOf(TABLE_TAG_CLOSE); | |
if (tableOpen >= 0 && tableClose >= 0 && tableOpen < tableClose) { | |
const isGoogleSheets = data.indexOf("google-sheets-html-origin") >= 0; | |
const isExcel = data.indexOf("content=Excel.Sheet") >= 0; | |
if (isGoogleSheets || isExcel) { | |
return true | |
} | |
const containsOneTable = data.indexOf(TABLE_TAG_OPEN, tableOpen + 1) < 0; | |
const tableIsEntireFile = tableOpen === 0 && tableClose + TABLE_TAG_CLOSE.length === data.length - 1; | |
return containsOneTable && tableIsEntireFile | |
} | |
} catch (e) {} | |
return false | |
} | |
function _cppStringFromJSString(text) { | |
text = text || ""; | |
var ctor = window.TextEncoder; | |
var utf8 = ctor ? (new ctor).encode(text + "\0") : intArrayFromString(text); | |
return allocate(utf8, "i8", ALLOC_NORMAL) | |
} | |
var _FileProxy_nextBlobID = 0; | |
var _FileProxy_blobs = {}; | |
function _FileProxy_createBlob(blob) { | |
var blobID = _FileProxy_nextBlobID++; | |
_FileProxy_blobs[blobID] = blob; | |
return blobID | |
} | |
function _defaultNameForFile(file) { | |
return /^image\//.test(file.type) ? "Image" : "File" | |
} | |
function _fileArrayToString(files) { | |
var result = []; | |
for (var i = 0; i < files.length; i++) { | |
var file = files[i]; | |
var blobID = _FileProxy_createBlob(file); | |
result.push({ | |
"name": file.name || _defaultNameForFile(file), | |
"mimeType": file.type, | |
"blobID": blobID | |
}) | |
} | |
return JSON.stringify(result) | |
} | |
function _ClipboardEvent_tryToReadFilesFromClipboard() { | |
if (!_Clipboard_dataTransfer) return 0; | |
try { | |
var files = []; | |
var items = _Clipboard_dataTransfer["items"]; | |
for (var i = 0; i < items.length; i++) { | |
var item = items[i]; | |
if (item["kind"] === "file") { | |
var file = item["getAsFile"](); | |
if (file != null && file.size > 0) { | |
files.push(file) | |
} | |
} | |
} | |
if (files.length > 0) { | |
return _cppStringFromJSString(_fileArrayToString(files)) | |
} | |
} catch (e) {} | |
return null | |
} | |
function _ClipboardEvent_tryToReadJSSubstringFromClipboard(start, end) { | |
start = _jsStringFromCPPString(start); | |
end = _jsStringFromCPPString(end); | |
if (!_Clipboard_dataTransfer) return 0; | |
try { | |
var data = _Clipboard_dataTransfer["getData"]("text/html"); | |
var startIndex = data.indexOf(start); | |
var endIndex = data.indexOf(end); | |
if (startIndex >= 0 && endIndex >= 0 && startIndex < endIndex) { | |
return data.slice(startIndex + start.length, endIndex) | |
} | |
} catch (e) {} | |
return null | |
} | |
function _base64_decode(text) { | |
var i = 0; | |
var size = text.length >>> 2; | |
var data = new Uint8Array(size * 3); | |
var j = 0; | |
var table = []; | |
var key = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
for (var k = 0; k < 127; k++) { | |
table[k] = key.indexOf(String.fromCharCode(k)) | |
} | |
while (i < size << 2) { | |
var a = table[text.charCodeAt(i++)]; | |
var b = table[text.charCodeAt(i++)]; | |
var c = table[text.charCodeAt(i++)]; | |
var d = table[text.charCodeAt(i++)]; | |
data[j++] = a << 2 | b >>> 4; | |
if (c >= 0) data[j++] = b << 4 | c >>> 2; | |
if (d >= 0) data[j++] = c << 6 | d | |
} | |
return j === data.length ? data : data.subarray(0, j) | |
} | |
var _jsValueSlots = null; | |
function _IndirectBuffer_wrapUint8Array(array) { | |
var buffer = _IndirectBuffer_newForJS(); | |
var indirectBufferHandle = _IndirectBuffer_resizeForJS(buffer, array.length); | |
_jsValueSlots[indirectBufferHandle] = array; | |
return buffer | |
} | |
Module["_IndirectBuffer_wrapUint8Array"] = _IndirectBuffer_wrapUint8Array; | |
function _ClipboardEvent_tryToReadFromClipboardAsBlobInHTML(start, end) { | |
var blob = _ClipboardEvent_tryToReadJSSubstringFromClipboard(start, end); | |
if (blob === null) return null; | |
var array = _base64_decode(blob); | |
return _IndirectBuffer_wrapUint8Array(array) | |
} | |
function _ClipboardEvent_tryToReadSubstringFromClipboard(start, end) { | |
var result = _ClipboardEvent_tryToReadJSSubstringFromClipboard(start, end); | |
if (result === null) return null; | |
return _cppStringFromJSString(decodeURIComponent(escape(atob(result)))) | |
} | |
function _base64_encode(array) { | |
var text = ""; | |
var chunk = 1024; | |
var n = array.length; | |
for (var i = 0; i < n; i += chunk) { | |
text += String.fromCharCode.apply(String, array.subarray(i, i + chunk)) | |
} | |
return btoa(text) | |
} | |
function _ClipboardEvent_writeToClipboardAsBlobInHTML(prefixStart, prefix, prefixEnd, bufferStart, indirectBufferHandle, bufferEnd, text) { | |
prefixStart = _jsStringFromCPPString(prefixStart); | |
prefix = _jsStringFromCPPString(prefix); | |
prefixEnd = _jsStringFromCPPString(prefixEnd); | |
bufferStart = _jsStringFromCPPString(bufferStart); | |
bufferEnd = _jsStringFromCPPString(bufferEnd); | |
text = _jsStringFromCPPString(text); | |
if (!_Clipboard_dataTransfer) return; | |
var array = _jsValueSlots[indirectBufferHandle]; | |
function escapeAsHTML(text) { | |
return text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">") | |
} | |
var textAsHTML = '<span style="white-space:pre-wrap;">' + escapeAsHTML(text).replace(/\n/g, "<br>") + "</span>"; | |
var html = '<meta charset="utf-8">' + prefixStart + btoa(unescape(encodeURIComponent(prefix))) + prefixEnd + bufferStart + _base64_encode(array) + bufferEnd + textAsHTML; | |
try { | |
_Clipboard_dataTransfer["setData"]("text/html", html); | |
return true | |
} catch (e) {} | |
return false | |
} | |
function _ClipboardEvent_writeToClipboardAsData(indirectBufferHandle, cStringmimeType) { | |
if (!navigator.clipboard || !navigator.clipboard.write) { | |
console.error("clipboard.write not available on this browser"); | |
return | |
} | |
const mimeType = _jsStringFromCPPString(cStringmimeType); | |
const array = _jsValueSlots[indirectBufferHandle]; | |
const blob = new Blob([array], { | |
type: mimeType | |
}); | |
const itemData = {}; | |
itemData[mimeType] = blob; | |
let data = [new ClipboardItem(itemData)]; | |
navigator.clipboard.write(data).then(function() {}, function(e) { | |
console.log("Error writing clipboard data", e) | |
}) | |
} | |
function _Clipboard_clearContents() { | |
if (!_Clipboard_dataTransfer) return; | |
_Clipboard_dataTransfer["clearData"]() | |
} | |
function _Clipboard_readContents(mimeType) { | |
if (!_Clipboard_dataTransfer) return 0; | |
try { | |
var data = _Clipboard_dataTransfer["getData"](_jsStringFromCPPString(mimeType)); | |
if (data.charCodeAt(0) === 65279) { | |
data = data.slice(1) | |
} | |
if (data.charCodeAt(data.length - 1) == 0) { | |
data = data.slice(0, data.length - 1) | |
} | |
return _cppStringFromJSString(data) | |
} catch (e) {} | |
return null | |
} | |
function _Clipboard_writeContents(mimeType, contents) { | |
if (!_Clipboard_dataTransfer) return; | |
try { | |
_Clipboard_dataTransfer["setData"](_jsStringFromCPPString(mimeType), _jsStringFromCPPString(contents)); | |
return true | |
} catch (e) {} | |
return false | |
} | |
var _CommentsObj = null; | |
function _Comments_handleMouseDown(x, y) { | |
_CommentsObj["handleMouseDown"](x, y) | |
} | |
function _Comments_handleMouseMove(x, y) { | |
_CommentsObj["handleMouseMove"](x, y) | |
} | |
function _Comments_handleMouseUp(x, y) { | |
_CommentsObj["handleMouseUp"](x, y) | |
} | |
function _CommonApp_appCanRenderFrameNames() { | |
var jsReturnValue = _CommonAppObj["appCanRenderFrameNames"](); | |
return jsReturnValue | |
} | |
function _CommonApp_appCanRenderMultiplayerCursors() { | |
var jsReturnValue = _CommonAppObj["appCanRenderMultiplayerCursors"](); | |
return jsReturnValue | |
} | |
function _CommonApp_appCanShowHyperlinks() { | |
var jsReturnValue = _CommonAppObj["appCanShowHyperlinks"](); | |
return jsReturnValue | |
} | |
function _CommonApp_appIsReadOnly() { | |
var jsReturnValue = _CommonAppObj["appIsReadOnly"](); | |
return jsReturnValue | |
} | |
function _CommonApp_appType() { | |
var jsReturnValue = _CommonAppObj["appType"](); | |
return jsReturnValue | |
} | |
function _CommonApp_canLoadImageResource() { | |
var jsReturnValue = _CommonAppObj["canLoadImageResource"](); | |
return jsReturnValue | |
} | |
function _CommonApp_desktopAppGetAPIVersion() { | |
var jsReturnValue = _CommonAppObj["desktopAppGetAPIVersion"](); | |
return jsReturnValue | |
} | |
function _CommonApp_getFeatureFlags() { | |
var jsReturnValue = _CommonAppObj["getFeatureFlags"](); | |
return _cppStringFromJSString(JSON.stringify(jsReturnValue || null)) | |
} | |
function _CommonApp_slogImpl(level, category, message, data) { | |
var js_category = _jsStringFromCPPString(category); | |
var js_message = _jsStringFromCPPString(message); | |
var js_data = JSON.parse(_jsStringFromCPPString(data)); | |
_CommonAppObj["slogImpl"](level, js_category, js_message, js_data) | |
} | |
function _View_new(handle, view) { | |
_handles[handle] = view; | |
view._parent = null; | |
view._cursor = null; | |
view._selectedBackgroundColor = null; | |
view._element._pointer = handle; | |
view._knownWidth = 0; | |
view._knownHeight = 0; | |
view._useLayer = false; | |
view._debugInfo = null | |
} | |
function _HTMLContainerView() { | |
this._element = document.createElement("div"); | |
this._element.className = "view container-view" | |
} | |
function _ContainerView_new(handle) { | |
_View_new(handle, new _HTMLContainerView) | |
} | |
function _PlatformInfo_isIE() { | |
return _FigmaAppObj.PlatformBrowser.isIE | |
} | |
function _makeCursor(width, height, data, hotspotX, hotspotY) { | |
var pixels = new Uint8Array(data.length); | |
for (var y = 0; y < height; y++) { | |
for (var x = 0; x < width; x++) { | |
var i = x + y * width << 2; | |
var j = x + (height - y - 1) * width << 2; | |
pixels[i + 0] = data[j + 2]; | |
pixels[i + 1] = data[j + 1]; | |
pixels[i + 2] = data[j + 0]; | |
pixels[i + 3] = data[j + 3] | |
} | |
} | |
var bytes = new Uint8Array(6 + 16 + 40 + pixels.length * 2); | |
var view = new DataView(bytes.buffer); | |
var parts = [ | |
[2, 0], | |
[2, 2], | |
[2, 1], | |
[1, width], | |
[1, height], | |
[1, 0], | |
[1, 0], | |
[2, hotspotX], | |
[2, hotspotY], | |
[4, bytes.length - 6 - 16], | |
[4, 6 + 16], | |
[4, 40], | |
[4, width], | |
[4, 2 * height], | |
[2, 1], | |
[2, 32], | |
[4, 0], | |
[4, pixels.length * 2], | |
[4, 0], | |
[4, 0], | |
[4, 0], | |
[4, 0] | |
]; | |
var offset = 0; | |
parts.forEach(function(part) { | |
switch (part[0]) { | |
case 1: | |
view.setUint8(offset, part[1], true); | |
break; | |
case 2: | |
view.setUint16(offset, part[1], true); | |
break; | |
case 4: | |
view.setUint32(offset, part[1], true); | |
break | |
} | |
offset += part[0] | |
}); | |
bytes.set(new Uint8Array(pixels.buffer), offset); | |
return bytes | |
} | |
function _PlatformInfo_isFirefox() { | |
return _FigmaAppObj.PlatformBrowser.isFirefox | |
} | |
function _PlatformInfo_isWindows() { | |
_PlatformInfo_init(); | |
return _isWindows | |
} | |
function _nextUniqueID() { | |
return "_" + Math.random().toString(36).slice(2) | |
} | |
var _cssTextToCachedStyle = {}; | |
function _CachedStyle(cssText) { | |
this._refCount = 0; | |
this._element = document.createElement("style"); | |
this._element.textContent = cssText | |
} | |
function _allocateStyle(cssText) { | |
var style = _cssTextToCachedStyle[cssText]; | |
if (!style) { | |
var style = new _CachedStyle(cssText); | |
_cssTextToCachedStyle[cssText] = style; | |
document.head.appendChild(style._element) | |
} | |
style._refCount++ | |
} | |
function _CustomCursor_new(width, height, devicePixelRatio, pixelsIndirectBufferHandle, hotspotX, hotspotY) { | |
var attempts = []; | |
if (!width || !height) { | |
return _cppStringFromJSString("") | |
} | |
if (_PlatformInfo_isEdge() || _PlatformInfo_isIE()) { | |
var blob = new Blob([_makeCursor(width, height, _jsValueSlots[pixelsIndirectBufferHandle], hotspotX, hotspotY)], { | |
type: "image/x-icon" | |
}); | |
attempts.push("cursor:url(" + URL.createObjectURL(blob) + "),auto !important;") | |
} else { | |
var context = document.createElement("canvas").getContext("2d"); | |
context.canvas.width = width; | |
context.canvas.height = height; | |
var imageData = context.createImageData(width, height); | |
new Uint8Array(imageData.data.buffer).set(_jsValueSlots[pixelsIndirectBufferHandle]); | |
context.putImageData(imageData, 0, 0); | |
var pngURL = JSON.stringify(context.canvas.toDataURL()); | |
var scaledWidth = Math.ceil(width / devicePixelRatio); | |
var scaledHeight = Math.ceil(height / devicePixelRatio); | |
var svg = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="' + scaledWidth + 'px" height="' + scaledHeight + 'px">' + "<image xlink:href=" + pngURL + ' width="' + scaledWidth + '" height="' + scaledHeight + '"/>' + "</svg>"; | |
var scale = _PlatformInfo_isFirefox() && _PlatformInfo_isWindows() ? 1 : 1 / devicePixelRatio; | |
var suffix = Math.round(hotspotX * scale) + " " + Math.round(hotspotY * scale) + ",auto !important;"; | |
attempts.push("cursor:url(" + pngURL + ")" + suffix); | |
if (devicePixelRatio !== 1) { | |
attempts.push("cursor:url(data:image/svg+xml;base64," + btoa(svg) + ")" + suffix); | |
attempts.push("cursor:-webkit-image-set(url(" + pngURL + ")" + devicePixelRatio + "x,url(" + pngURL + ")1x)" + suffix) | |
} | |
} | |
var className = _nextUniqueID(); | |
var cssText = "body." + className + " *, ." + className + "{" + attempts.join("") + "}"; | |
_allocateStyle(cssText); | |
return _cppStringFromJSString(className) | |
} | |
function _Device_bindVertexArray(handle, vaoHandle) { | |
var device = _handles[handle]; | |
var vao = _handles[vaoHandle]; | |
if (vao) device.vaoExt.bindVertexArrayOES(vao) | |
} | |
function _Device_bufferSubData(handle, target, bufOffset, indirectBufferHandle, dataOffset, dataSize) { | |
var device = _handles[handle]; | |
var array = _jsValueSlots[indirectBufferHandle]; | |
if (device && array) { | |
device.glctx.bufferSubData(target, bufOffset, array.subarray(dataOffset, dataOffset + dataSize)) | |
} | |
} | |
function _Device_delete(handle) { | |
delete _handles[handle] | |
} | |
function _Device_deleteVertexArrays(handle, vaoHandle) { | |
var device = _handles[handle]; | |
var vao = _handles[vaoHandle]; | |
if (vao) { | |
device.vaoExt.deleteVertexArrayOES(vao); | |
delete _handles[vaoHandle] | |
} | |
} | |
function _Device_downloadWebGLTrace(handle, filename) { | |
var device = _handles[handle]; | |
console.log("downloading WebGL trace"); | |
device.glctx["downloadTrace"](_jsStringFromCPPString(filename)) | |
} | |
function _Device_drawingBufferHeight(handle) { | |
var device = _handles[handle]; | |
return device ? device.glctx.drawingBufferHeight : 0 | |
} | |
function _Device_drawingBufferWidth(handle) { | |
var device = _handles[handle]; | |
return device ? device.glctx.drawingBufferWidth : 0 | |
} | |
function _Device_genVertexArrays(handle, vaoHandle) { | |
var device = _handles[handle]; | |
var vao = device.vaoExt ? device.vaoExt.createVertexArrayOES() : null; | |
if (vao) { | |
_handles[vaoHandle] = vao; | |
return true | |
} | |
return false | |
} | |
function _on(target, event, callback, opts) { | |
target.addEventListener(event, callback, opts) | |
} | |
function _Device_clearContextLost(handle) { | |
var device = _handles[handle]; | |
device.gl.counter = 1; | |
device.gl.buffers = []; | |
device.gl.programs = []; | |
device.gl.framebuffers = []; | |
device.gl.renderbuffers = []; | |
device.gl.textures = []; | |
device.gl.uniforms = []; | |
device.gl.shaders = []; | |
device.gl.programInfos = {}; | |
device.gl.programShaders = {}; | |
device.gl.shaderInfos = {}; | |
device.gl.stringCache = {} | |
} | |
function _Device_isContextLost(handle) { | |
var device = _handles[handle]; | |
return device.glctx ? device.glctx.isContextLost() : false | |
} | |
function _Device_restoreContextLost(handle) { | |
var device = _handles[handle]; | |
if (_Device_isContextLost(handle)) return; | |
if (!device.isLost) return; | |
console.log("Handling context restore"); | |
GL.currentContext.initExtensionsDone = false; | |
GL.initExtensions(GL.currentContext); | |
_Device_setContextLost(handle, false); | |
device.isLost = false | |
} | |
function _Device_installContextLostHandler(handle) { | |
var device = _handles[handle]; | |
device.testContextLost = device.glctx.getExtension("WEBGL_lose_context"); | |
var canvas = device.glctx["canvas"]; | |
_on(canvas, "webglcontextlost", function(event) { | |
_Fullscreen_reportContextLost(); | |
console.log("Handling context lost event"); | |
event.preventDefault(); | |
event.stopImmediatePropagation(); | |
_Device_clearContextLost(handle); | |
_Device_setContextLost(handle, true); | |
device.isLost = true | |
}); | |
_on(canvas, "webglcontextrestored", function(event) { | |
_Fullscreen_reportContextRestored(); | |
if (!device.isLost) { | |
console.log("Handling context lost event - faked on broken Firefox"); | |
_Device_clearContextLost(handle); | |
_Device_setContextLost(handle, true); | |
device.isLost = true | |
} | |
console.log("Handling context restore event"); | |
_Device_restoreContextLost(handle) | |
}) | |
} | |
function _Device() { | |
this.gliContext = null; | |
this.gliFrameTerminator = null; | |
this.glctx = null; | |
this.gl = null; | |
this.isLost = false; | |
this.debugRendererInfo = null; | |
this.vendorName = null; | |
this.rendererName = null; | |
this.debugShaders = null; | |
this.hasIntercept = false | |
} | |
function _Device_new(handle) { | |
var device = new _Device; | |
_handles[handle] = device | |
} | |
function _Device_readPixels(handle, x, y, width, height, format, type, indirectBufferHandle) { | |
var device = _handles[handle]; | |
var array = _jsValueSlots[indirectBufferHandle]; | |
if (device && array) { | |
device.glctx.readPixels(x, y, width, height, format, type, array) | |
} | |
} | |
function _Device_reinit(handle) { | |
var device = _handles[handle]; | |
if (!device) return; | |
device.glctx = Module.ctx; | |
device.gl = GL; | |
device.gliFrameTerminator = device.glctx.getExtension("GLI_frame_terminator"); | |
device.gliContext = device.gliFrameTerminator ? device.glctx : null; | |
device.debugRendererInfo = device.glctx.getExtension("WEBGL_debug_renderer_info"); | |
if (device.debugRendererInfo) { | |
device.vendorName = device.glctx.getParameter(device.debugRendererInfo.UNMASKED_VENDOR_WEBGL); | |
device.rendererName = device.glctx.getParameter(device.debugRendererInfo.UNMASKED_RENDERER_WEBGL) | |
} else if (_PlatformInfo_isWindows()) { | |
console.warn('the "WEBGL_debug_renderer_info" extension is missing so rendering may be incorrect' + (_PlatformInfo_isFirefox() ? ', please enable "webgl.enable-debug-renderer-info" in about:config' : "")) | |
} | |
device.glctx.pixelStorei(device.glctx.UNPACK_COLORSPACE_CONVERSION_WEBGL, device.glctx.NONE); | |
device.glctx.pixelStorei(device.glctx.UNPACK_PREMULTIPLY_ALPHA_WEBGL, device.glctx.NONE); | |
device.debugShaders = device.glctx.getExtension("WEBGL_debug_shaders"); | |
device.timerQuery = device.glctx.getExtension("EXT_disjoint_timer_query"); | |
device.vaoExt = device.glctx.getExtension("OES_vertex_array_object"); | |
device.hasIntercept = device.glctx["callCount"] != undefined | |
} | |
function _Device_screenHeight() { | |
return screen.height | |
} | |
function _Device_screenWidth() { | |
return screen.width | |
} | |
function _Device_texSubImage2D(handle, target, level, x, y, width, height, format, type, indirectBufferHandle) { | |
var device = _handles[handle]; | |
var array = _jsValueSlots[indirectBufferHandle]; | |
if (device && array) { | |
device.glctx.texSubImage2D(target, level, x, y, width, height, format, type, array) | |
} | |
} | |
function _Device_texSubImageBitmap(handle, target, level, x, y, format, type, imageBitmapHandle) { | |
var device = _handles[handle]; | |
var imageBitmap = _handles[imageBitmapHandle]; | |
if (device && imageBitmap) { | |
device.glctx.texSubImage2D(target, level, x, y, format, type, imageBitmap) | |
} | |
} | |
function _Device_transferVertexArrayHandle(handle, vaoHandleOld, vaoHandleNew) { | |
var vao = _handles[vaoHandleNew]; | |
delete _handles[vaoHandleNew]; | |
_handles[vaoHandleOld] = vao | |
} | |
function _Device_unmaskedRendererName(handle) { | |
var device = _handles[handle]; | |
return _cppStringFromJSString(device.rendererName) | |
} | |
function _Device_unmaskedVendorName(handle) { | |
var device = _handles[handle]; | |
return _cppStringFromJSString(device.vendorName) | |
} | |
var _EmojiWheelBindingsObj = null; | |
function _EmojiWheelBindings_handleShortcutPress(viewportX, viewportY) { | |
_EmojiWheelBindingsObj["handleShortcutPress"](viewportX, viewportY) | |
} | |
function _EmojiWheelBindings_handleShortcutRelease(viewportX, viewportY) { | |
_EmojiWheelBindingsObj["handleShortcutRelease"](viewportX, viewportY) | |
} | |
function _EmojiWheelBindings_startChat(viewportX, viewportY) { | |
_EmojiWheelBindingsObj["startChat"](viewportX, viewportY) | |
} | |
function __sendMessage(name, message) { | |
window["webkit"]["messageHandlers"][name]["postMessage"](message) | |
} | |
var _MSG = { | |
WILL_SEND_BASE64_ENCODED_ZIP_FILE_CHUNKS: "willSendBase64EncodedZipFileChunks", | |
HANDLE_BASE64_ENCODED_ZIP_FILE_CHUNK: "handleBase64EncodedZipFileChunk", | |
COMMIT_BASE64_ENCODED_ZIP_FILE: "commitBase64EncodedZipFile" | |
}; | |
function _ExportIntegration_deliverZipFile(indirectBufferHandle) { | |
var array = _jsValueSlots[indirectBufferHandle]; | |
setTimeout(function() { | |
var chunkSize = 128 * 1024; | |
var n = array.length; | |
var numChunks = Math.ceil(array.length / chunkSize); | |
__sendMessage(_MSG.WILL_SEND_BASE64_ENCODED_ZIP_FILE_CHUNKS, { | |
"numChunks": numChunks | |
}); | |
for (var i = 0; i < array.length; i += chunkSize) { | |
var base64EncodedData = _base64_encode(array.subarray(i, i + chunkSize)); | |
__sendMessage(_MSG.HANDLE_BASE64_ENCODED_ZIP_FILE_CHUNK, { | |
"base64EncodedData": base64EncodedData | |
}) | |
} | |
__sendMessage(_MSG.COMMIT_BASE64_ENCODED_ZIP_FILE, null) | |
}, 0) | |
} | |
function _ExportIntegration_isThirdPartyAppReady() { | |
if (!window["webkit"] || !window["webkit"]["messageHandlers"]) { | |
return false | |
} | |
var messageHandlers = window["webkit"]["messageHandlers"]; | |
for (var key in _MSG) { | |
var messageName = _MSG[key]; | |
if (!messageHandlers[messageName]) { | |
return false | |
} | |
} | |
return true | |
} | |
function _FigmaApp_allocationFailed(mallocHighWatermark, currentAllocatedBytes, maxAllocatedBytes, failedSize) { | |
_FigmaAppObj["allocationFailed"](mallocHighWatermark, currentAllocatedBytes, maxAllocatedBytes, failedSize) | |
} | |
function _FigmaApp_attemptedSketchFileDrop() { | |
_FigmaAppObj["attemptedSketchFileDrop"]() | |
} | |
function _FigmaApp_backToFiles() { | |
_FigmaAppObj["backToFiles"]() | |
} | |
function _FigmaApp_copyLinkToPage(nodeId) { | |
var js_nodeId = _jsStringFromCPPString(nodeId); | |
_FigmaAppObj["copyLinkToPage"](js_nodeId) | |
} | |
function _FigmaApp_desktopAppQueueFileForWriting(name, buffer) { | |
var js_name = _jsStringFromCPPString(name); | |
var js_buffer = _jsValueSlots[buffer]; | |
_FigmaAppObj["desktopAppQueueFileForWriting"](js_name, js_buffer) | |
} | |
function _FigmaApp_desktopAppWriteFiles() { | |
_FigmaAppObj["desktopAppWriteFiles"]() | |
} | |
function _FigmaApp_dismissEphemeralVisualBells() { | |
_FigmaAppObj["dismissEphemeralVisualBells"]() | |
} | |
function _FigmaApp_documentIsLoaded() { | |
_FigmaAppObj["documentIsLoaded"]() | |
} | |
function _FigmaApp_downloadImage(hash, internal_promiseID) { | |
var js_hash = _jsStringFromCPPString(hash); | |
_FigmaAppObj["downloadImage"](js_hash).then(function(result) { | |
_FigmaApp_downloadImage_promiseCallback(internal_promiseID, _IndirectBuffer_wrapUint8Array(result), null) | |
}, function(error) { | |
_FigmaApp_downloadImage_promiseCallback(internal_promiseID, null, _cppStringFromJSString(error + "")) | |
}) | |
} | |
function _FigmaApp_escapeAndSaveCSVData(data, name, includeHeader) { | |
var js_data = JSON.parse(_jsStringFromCPPString(data)); | |
var js_name = _jsStringFromCPPString(name); | |
var js_includeHeader = !!includeHeader; | |
_FigmaAppObj["escapeAndSaveCSVData"](js_data, js_name, js_includeHeader) | |
} | |
function _FigmaApp_fetchComponentBuffers(fileKey, versionedComponents, versionedStateGroups, allowDuplicateSubscriptions, fileVersion, internal_promiseID) { | |
var js_fileKey = _jsStringFromCPPString(fileKey); | |
var js_versionedComponents = JSON.parse(_jsStringFromCPPString(versionedComponents)); | |
var js_versionedStateGroups = JSON.parse(_jsStringFromCPPString(versionedStateGroups)); | |
_FigmaAppObj["fetchComponentBuffers"](js_fileKey, js_versionedComponents, js_versionedStateGroups, allowDuplicateSubscriptions, fileVersion).then(function(result) { | |
_FigmaApp_fetchComponentBuffers_promiseCallback(internal_promiseID, result, null) | |
}, function(error) { | |
_FigmaApp_fetchComponentBuffers_promiseCallback(internal_promiseID, null, _cppStringFromJSString(error + "")) | |
}) | |
} | |
function _FigmaApp_fetchFontFile(source, id, postscriptName, internal_promiseID) { | |
var js_id = _jsStringFromCPPString(id); | |
var js_postscriptName = _jsStringFromCPPString(postscriptName); | |
_FigmaAppObj["fetchFontFile"](source, js_id, js_postscriptName).then(function(result) { | |
_FigmaApp_fetchFontFile_promiseCallback(internal_promiseID, _IndirectBuffer_wrapUint8Array(result), null) | |
}, function(error) { | |
_FigmaApp_fetchFontFile_promiseCallback(internal_promiseID, null, _cppStringFromJSString(error + "")) | |
}) | |
} | |
function _FigmaApp_fetchFontFileWithoutPickerInfo(family, style, version, internal_promiseID) { | |
var js_family = _jsStringFromCPPString(family); | |
var js_style = _jsStringFromCPPString(style); | |
var js_version = _jsStringFromCPPString(version); | |
_FigmaAppObj["fetchFontFileWithoutPickerInfo"](js_family, js_style, js_version).then(function(result) { | |
_FigmaApp_fetchFontFileWithoutPickerInfo_promiseCallback(internal_promiseID, _IndirectBuffer_wrapUint8Array(result), null) | |
}, function(error) { | |
_FigmaApp_fetchFontFileWithoutPickerInfo_promiseCallback(internal_promiseID, null, _cppStringFromJSString(error + "")) | |
}) | |
} | |
function _FigmaApp_fontResourceStatusChanged(family, style, status) { | |
var js_family = _jsStringFromCPPString(family); | |
var js_style = _jsStringFromCPPString(style); | |
_FigmaAppObj["fontResourceStatusChanged"](js_family, js_style, status) | |
} | |
function _FigmaApp_fullscreenIsReady() { | |
_FigmaAppObj["fullscreenIsReady"]() | |
} | |
function _FigmaApp_generateLinkToNode(nodeId) { | |
var js_nodeId = _jsStringFromCPPString(nodeId); | |
var jsReturnValue = _FigmaAppObj["generateLinkToNode"](js_nodeId); | |
return _cppStringFromJSString(jsReturnValue) | |
} | |
function _FigmaApp_generateLinkToRemoteNode(fileKey, nodeId) { | |
var js_fileKey = _jsStringFromCPPString(fileKey); | |
var js_nodeId = _jsStringFromCPPString(nodeId); | |
var jsReturnValue = _FigmaAppObj["generateLinkToRemoteNode"](js_fileKey, js_nodeId); | |
return _cppStringFromJSString(jsReturnValue) | |
} | |
function _FigmaApp_getAllLineBreakPositions(stringToParse) { | |
var js_stringToParse = _jsStringFromCPPString(stringToParse); | |
var jsReturnValue = _FigmaAppObj["getAllLineBreakPositions"](js_stringToParse); | |
return _cppStringFromJSString(JSON.stringify(jsReturnValue || null)) | |
} | |
function _FigmaApp_getClipboardData(format, internal_promiseID) { | |
var js_format = _jsStringFromCPPString(format); | |
_FigmaAppObj["getClipboardData"](js_format).then(function(result) { | |
_FigmaApp_getClipboardData_promiseCallback(internal_promiseID, _IndirectBuffer_wrapUint8Array(result), null) | |
}, function(error) { | |
_FigmaApp_getClipboardData_promiseCallback(internal_promiseID, null, _cppStringFromJSString(error + "")) | |
}) | |
} | |
function _FigmaApp_getCurrentFileName() { | |
var jsReturnValue = _FigmaAppObj["getCurrentFileName"](); | |
return _cppStringFromJSString(jsReturnValue) | |
} | |
function _FigmaApp_getDefaultOnOTFeatures() { | |
var jsReturnValue = _FigmaAppObj["getDefaultOnOTFeatures"](); | |
return _cppStringFromJSString(JSON.stringify(jsReturnValue || null)) | |
} | |
function _FigmaApp_getDeviceInfoForSize(x, y) { | |
var jsReturnValue = _FigmaAppObj["getDeviceInfoForSize"](x, y); | |
return _cppStringFromJSString(JSON.stringify(jsReturnValue || null)) | |
} | |
function _FigmaApp_getLatestPublishedVersionForStateGroup(fileKey, guidString) { | |
var js_fileKey = _jsStringFromCPPString(fileKey); | |
var js_guidString = _jsStringFromCPPString(guidString); | |
var jsReturnValue = _FigmaAppObj["getLatestPublishedVersionForStateGroup"](js_fileKey, js_guidString); | |
return _cppStringFromJSString(jsReturnValue) | |
} | |
function _FigmaApp_getLatestPublishedVersionHashForComponent(fileKey, guidString) { | |
var js_fileKey = _jsStringFromCPPString(fileKey); | |
var js_guidString = _jsStringFromCPPString(guidString); | |
var jsReturnValue = _FigmaAppObj["getLatestPublishedVersionHashForComponent"](js_fileKey, js_guidString); | |
return _cppStringFromJSString(jsReturnValue) | |
} | |
function _FigmaApp_getLocalGUIDFromUrl(url) { | |
var js_url = _jsStringFromCPPString(url); | |
var jsReturnValue = _FigmaAppObj["getLocalGUIDFromUrl"](js_url); | |
return _cppStringFromJSString(jsReturnValue) | |
} | |
function _FigmaApp_getParsedCodeTokens(input, language) { | |
var js_input = _jsStringFromCPPString(input); | |
var js_language = _jsStringFromCPPString(language); | |
var jsReturnValue = _FigmaAppObj["getParsedCodeTokens"](js_input, js_language); | |
return _cppStringFromJSString(JSON.stringify(jsReturnValue || null)) | |
} | |
function _FigmaApp_getUserName() { | |
var jsReturnValue = _FigmaAppObj["getUserName"](); | |
return _cppStringFromJSString(jsReturnValue) | |
} | |
function _FigmaApp_handleSignedOutEditAttempt(ignoreWorkshop) { | |
var js_ignoreWorkshop = !!ignoreWorkshop; | |
_FigmaAppObj["handleSignedOutEditAttempt"](js_ignoreWorkshop) | |
} | |
function _FigmaApp_handleStateSwapCreated() { | |
_FigmaAppObj["handleStateSwapCreated"]() | |
} | |
function _FigmaApp_handleUserClickOnHyperlink(url) { | |
var js_url = _jsStringFromCPPString(url); | |
_FigmaAppObj["handleUserClickOnHyperlink"](js_url) | |
} | |
function _FigmaApp_hasUnsavedChanges() { | |
var jsReturnValue = _FigmaAppObj["hasUnsavedChanges"](); | |
return jsReturnValue | |
} | |
function _FigmaApp_imageResourceStatusChanged(sha1, status) { | |
var js_sha1 = _jsStringFromCPPString(sha1); | |
_FigmaAppObj["imageResourceStatusChanged"](js_sha1, status) | |
} | |
function _FigmaApp_insertComponentOrShowError(fileKey, nodeId, canvasX, canvasY) { | |
var js_fileKey = _jsStringFromCPPString(fileKey); | |
var js_nodeId = _jsStringFromCPPString(nodeId); | |
_FigmaAppObj["insertComponentOrShowError"](js_fileKey, js_nodeId, canvasX, canvasY) | |
} | |
function _FigmaApp_isCopyExportRestricted() { | |
var jsReturnValue = _FigmaAppObj["isCopyExportRestricted"](); | |
return jsReturnValue | |
} | |
function _FigmaApp_isInWorkshopMode() { | |
var jsReturnValue = _FigmaAppObj["isInWorkshopMode"](); | |
return jsReturnValue | |
} | |
function _FigmaApp_isMigrationBackwardCompatible(fileVersion, contentVersion) { | |
var jsReturnValue = _FigmaAppObj["isMigrationBackwardCompatible"](fileVersion, contentVersion); | |
return jsReturnValue | |
} | |
function _FigmaApp_isUserPresent() { | |
var jsReturnValue = _FigmaAppObj["isUserPresent"](); | |
return jsReturnValue | |
} | |
function _FigmaApp_migratePendingChanges(changes, changesVersion, file, fileVersion) { | |
var js_changes = _jsValueSlots[changes]; | |
var js_file = _jsValueSlots[file]; | |
var jsReturnValue = _FigmaAppObj["migratePendingChanges"](js_changes, changesVersion, js_file, fileVersion); | |
return _IndirectBuffer_wrapUint8Array(jsReturnValue) | |
} | |
function _FigmaApp_migrateTo(buffer, startingVersion, targetVersion, context) { | |
var js_buffer = _jsValueSlots[buffer]; | |
var js_context = _jsStringFromCPPString(context); | |
var jsReturnValue = _FigmaAppObj["migrateTo"](js_buffer, startingVersion, targetVersion, js_context); | |
return _IndirectBuffer_wrapUint8Array(jsReturnValue) | |
} | |
function _FigmaApp_mobileAppPush(fileKey, frameID, frameName) { | |
var js_fileKey = _jsStringFromCPPString(fileKey); | |
var js_frameID = _jsStringFromCPPString(frameID); | |
var js_frameName = _jsStringFromCPPString(frameName); | |
_FigmaAppObj["mobileAppPush"](js_fileKey, js_frameID, js_frameName) | |
} | |
function _FigmaApp_navigateToURL(url, target) { | |
var js_url = _jsStringFromCPPString(url); | |
_FigmaAppObj["navigateToURL"](js_url, target) | |
} | |
function _FigmaApp_openCSVExportPicker() { | |
_FigmaAppObj["openCSVExportPicker"]() | |
} | |
function _FigmaApp_openExportPicker() { | |
_FigmaAppObj["openExportPicker"]() | |
} | |
function _FigmaApp_openExportSettingsPicker() { | |
_FigmaAppObj["openExportSettingsPicker"]() | |
} | |
function _FigmaApp_openFontSettings() { | |
_FigmaAppObj["openFontSettings"]() | |
} | |
function _FigmaApp_openHelp() { | |
_FigmaAppObj["openHelp"]() | |
} | |
function _FigmaApp_openNewFile() { | |
_FigmaAppObj["openNewFile"]() | |
} | |
function _FigmaApp_openNewSketchFile() { | |
_FigmaAppObj["openNewSketchFile"]() | |
} | |
function _FigmaApp_openPreferencesModal() { | |
_FigmaAppObj["openPreferencesModal"]() | |
} | |
function _FigmaApp_openSettings() { | |
_FigmaAppObj["openSettings"]() | |
} | |
function _FigmaApp_openShortcuts() { | |
_FigmaAppObj["openShortcuts"]() | |
} | |
function _FigmaApp_openStartingPointFlowInPrototypeViewer(nodeId) { | |
var js_nodeId = _jsStringFromCPPString(nodeId); | |
_FigmaAppObj["openStartingPointFlowInPrototypeViewer"](js_nodeId) | |
} | |
function _FigmaApp_openSupportForum() { | |
_FigmaAppObj["openSupportForum"]() | |
} | |
function _FigmaApp_openTemplatesPickerModal() { | |
_FigmaAppObj["openTemplatesPickerModal"]() | |
} | |
function _FigmaApp_openTimerModal() { | |
_FigmaAppObj["openTimerModal"]() | |
} | |
function _FigmaApp_openTutorials() { | |
_FigmaAppObj["openTutorials"]() | |
} | |
function _FigmaApp_parseCSVString(stringToParse, delimiter) { | |
var js_stringToParse = _jsStringFromCPPString(stringToParse); | |
var js_delimiter = _jsStringFromCPPString(delimiter); | |
var jsReturnValue = _FigmaAppObj["parseCSVString"](js_stringToParse, js_delimiter); | |
return _cppStringFromJSString(JSON.stringify(jsReturnValue || null)) | |
} | |
function _FigmaApp_prepFileMigrations(internal_promiseID) { | |
_FigmaAppObj["prepFileMigrations"]().then(function(result) { | |
_FigmaApp_prepFileMigrations_promiseCallback(internal_promiseID, result, null) | |
}, function(error) { | |
_FigmaApp_prepFileMigrations_promiseCallback(internal_promiseID, null, _cppStringFromJSString(error + "")) | |
}) | |
} | |
function _FigmaApp_recordImages(originFileKey, imageSha1s) { | |
var js_originFileKey = _jsStringFromCPPString(originFileKey); | |
var js_imageSha1s = JSON.parse(_jsStringFromCPPString(imageSha1s)); | |
_FigmaAppObj["recordImages"](js_originFileKey, js_imageSha1s) | |
} | |
function _FigmaApp_requestEditorType(editorType) { | |
_FigmaAppObj["requestEditorType"](editorType) | |
} | |
function _FigmaApp_resendTimer() { | |
_FigmaAppObj["resendTimer"]() | |
} | |
function _FigmaApp_retrieveMetadataAndSelectBrokenFixedScrollingNodes() { | |
_FigmaAppObj["retrieveMetadataAndSelectBrokenFixedScrollingNodes"]() | |
} | |
function _FigmaApp_runLastPlugin() { | |
_FigmaAppObj["runLastPlugin"]() | |
} | |
function _FigmaApp_saveFileForAutosaveMigration(file, fileVersion) { | |
var js_file = _jsValueSlots[file]; | |
_FigmaAppObj["saveFileForAutosaveMigration"](js_file, fileVersion) | |
} | |
function _FigmaApp_setFileVersion(fileVersion) { | |
_FigmaAppObj["setFileVersion"](fileVersion) | |
} | |
function _FigmaApp_setHyperlinkPopup(url, position, size, mouse, guid) { | |
var js_url = _jsStringFromCPPString(url); | |
var js_position = JSON.parse(_jsStringFromCPPString(position)); | |
var js_size = JSON.parse(_jsStringFromCPPString(size)); | |
var js_mouse = JSON.parse(_jsStringFromCPPString(mouse)); | |
var js_guid = _jsStringFromCPPString(guid); | |
_FigmaAppObj["setHyperlinkPopup"](js_url, js_position, js_size, js_mouse, js_guid) | |
} | |
function _FigmaApp_setSentryTag(key, value) { | |
var js_key = _jsStringFromCPPString(key); | |
var js_value = _jsStringFromCPPString(value); | |
_FigmaAppObj["setSentryTag"](js_key, js_value) | |
} | |
function _FigmaApp_setTimer(sessionID, totalTimeMs, timeRemainingMs, isPaused, timerID, setBy) { | |
var js_isPaused = !!isPaused; | |
var js_setBy = _jsStringFromCPPString(setBy); | |
_FigmaAppObj["setTimer"](sessionID, totalTimeMs, timeRemainingMs, js_isPaused, timerID, js_setBy) | |
} | |
function _FigmaApp_shouldEnableInteractiveStates() { | |
var jsReturnValue = _FigmaAppObj["shouldEnableInteractiveStates"](); | |
return jsReturnValue | |
} | |
function _FigmaApp_showAutosaveVisualBell() { | |
_FigmaAppObj["showAutosaveVisualBell"]() | |
} | |
function _FigmaApp_showBrowserAlert(message) { | |
var js_message = _jsStringFromCPPString(message); | |
_FigmaAppObj["showBrowserAlert"](js_message) | |
} | |
function _FigmaApp_showCanvasContextMenu(x, y) { | |
_FigmaAppObj["showCanvasContextMenu"](x, y) | |
} | |
function _FigmaApp_showDetachedStyleWarning() { | |
_FigmaAppObj["showDetachedStyleWarning"]() | |
} | |
function _FigmaApp_showDribbbleDialog(fileKey, nodeId) { | |
var js_fileKey = _jsStringFromCPPString(fileKey); | |
var js_nodeId = _jsStringFromCPPString(nodeId); | |
_FigmaAppObj["showDribbbleDialog"](js_fileKey, js_nodeId) | |
} | |
function _FigmaApp_showFileUpgradeNeededModal(targetFileVersion, errorType) { | |
_FigmaAppObj["showFileUpgradeNeededModal"](targetFileVersion, errorType) | |
} | |
function _FigmaApp_showGIFConvertedAndScaledDownWarning() { | |
_FigmaAppObj["showGIFConvertedAndScaledDownWarning"]() | |
} | |
function _FigmaApp_showImageScaledDownWarning() { | |
_FigmaAppObj["showImageScaledDownWarning"]() | |
} | |
function _FigmaApp_showLeftPanelTab(tab) { | |
_FigmaAppObj["showLeftPanelTab"](tab) | |
} | |
function _FigmaApp_showMissingFontPopover(missingFonts, counts) { | |
var js_missingFonts = JSON.parse(_jsStringFromCPPString(missingFonts)); | |
var js_counts = JSON.parse(_jsStringFromCPPString(counts)); | |
_FigmaAppObj["showMissingFontPopover"](js_missingFonts, js_counts) | |
} | |
function _FigmaApp_showNudgeAmountPicker() { | |
_FigmaAppObj["showNudgeAmountPicker"]() | |
} | |
function _FigmaApp_showPasteLoadingIndicatorAndPaste() { | |
_FigmaAppObj["showPasteLoadingIndicatorAndPaste"]() | |
} | |
function _FigmaApp_showPromptToMoveLibraryItems(movableItems, fallbackString) { | |
var js_movableItems = JSON.parse(_jsStringFromCPPString(movableItems)); | |
var js_fallbackString = _jsStringFromCPPString(fallbackString); | |
_FigmaAppObj["showPromptToMoveLibraryItems"](js_movableItems, js_fallbackString) | |
} | |
function _FigmaApp_showPublishDialog(guidsToPublish) { | |
var js_guidsToPublish = JSON.parse(_jsStringFromCPPString(guidsToPublish)); | |
_FigmaAppObj["showPublishDialog"](js_guidsToPublish) | |
} | |
function _FigmaApp_showPushOverridesVisualBell() { | |
_FigmaAppObj["showPushOverridesVisualBell"]() | |
} | |
function _FigmaApp_showReturnToInstanceVisualBell() { | |
_FigmaAppObj["showReturnToInstanceVisualBell"]() | |
} | |
function _FigmaApp_showReturnToVariantVisualBell(instanceId, instanceOverridePath, sourceStateId) { | |
var js_instanceId = _jsStringFromCPPString(instanceId); | |
var js_instanceOverridePath = _jsStringFromCPPString(instanceOverridePath); | |
var js_sourceStateId = _jsStringFromCPPString(sourceStateId); | |
_FigmaAppObj["showReturnToVariantVisualBell"](js_instanceId, js_instanceOverridePath, js_sourceStateId) | |
} | |
function _FigmaApp_showSavepointModal() { | |
_FigmaAppObj["showSavepointModal"]() | |
} | |
function _FigmaApp_showSelectLayerContextMenu(x, y) { | |
_FigmaAppObj["showSelectLayerContextMenu"](x, y) | |
} | |
function _FigmaApp_showSelectionContextMenu(x, y) { | |
_FigmaAppObj["showSelectionContextMenu"](x, y) | |
} | |
function _FigmaApp_showUpdateCopiedContentModal() { | |
_FigmaAppObj["showUpdateCopiedContentModal"]() | |
} | |
function _FigmaApp_showVisualBell(type, message, error) { | |
var js_type = _jsStringFromCPPString(type); | |
var js_message = _jsStringFromCPPString(message); | |
var js_error = !!error; | |
_FigmaAppObj["showVisualBell"](js_type, js_message, js_error) | |
} | |
function _FigmaApp_startRenamingNodes(guids) { | |
var js_guids = JSON.parse(_jsStringFromCPPString(guids)); | |
_FigmaAppObj["startRenamingNodes"](js_guids) | |
} | |
function _FigmaApp_syncPencilStyle(style) { | |
var js_style = JSON.parse(_jsStringFromCPPString(style)); | |
_FigmaAppObj["syncPencilStyle"](js_style) | |
} | |
function _FigmaApp_syncToolStyles(style) { | |
var js_style = JSON.parse(_jsStringFromCPPString(style)); | |
_FigmaAppObj["syncToolStyles"](js_style) | |
} | |
function _FigmaApp_toggleComponentInsertModal() { | |
_FigmaAppObj["toggleComponentInsertModal"]() | |
} | |
function _FigmaApp_toggleHistoryMode() { | |
_FigmaAppObj["toggleHistoryMode"]() | |
} | |
function _FigmaApp_toggleInteractionRecorderVisibility() { | |
_FigmaAppObj["toggleInteractionRecorderVisibility"]() | |
} | |
function _FigmaApp_toggleMenu(mode, source) { | |
var js_source = _jsStringFromCPPString(source); | |
_FigmaAppObj["toggleMenu"](mode, js_source) | |
} | |
function _FigmaApp_togglePerfHUDVisibility() { | |
_FigmaAppObj["togglePerfHUDVisibility"]() | |
} | |
function _FigmaApp_toggleTeamLibraryModal() { | |
_FigmaAppObj["toggleTeamLibraryModal"]() | |
} | |
function _FigmaApp_trackComponentInstanceDetachment(componentKey) { | |
var js_componentKey = _jsStringFromCPPString(componentKey); | |
_FigmaAppObj["trackComponentInstanceDetachment"](js_componentKey) | |
} | |
function _FigmaApp_trackComponentInstanceInsertion(componentCounts) { | |
var js_componentCounts = JSON.parse(_jsStringFromCPPString(componentCounts)); | |
_FigmaAppObj["trackComponentInstanceInsertion"](js_componentCounts) | |
} | |
function _FigmaApp_trackFromFullscreen(event, args, forwardToDatadog) { | |
var js_event = _jsStringFromCPPString(event); | |
var js_args = JSON.parse(_jsStringFromCPPString(args)); | |
var js_forwardToDatadog = !!forwardToDatadog; | |
_FigmaAppObj["trackFromFullscreen"](js_event, js_args, js_forwardToDatadog) | |
} | |
function _FigmaApp_updateHyperlinkPopupPosition(position, size) { | |
var js_position = JSON.parse(_jsStringFromCPPString(position)); | |
var js_size = JSON.parse(_jsStringFromCPPString(size)); | |
_FigmaAppObj["updateHyperlinkPopupPosition"](js_position, js_size) | |
} | |
function _FigmaApp_updateSelectedStyleProperties(buffer, intrinsicLineHeight, availableOTFeatures) { | |
var js_buffer = _jsValueSlots[buffer]; | |
var js_availableOTFeatures = JSON.parse(_jsStringFromCPPString(availableOTFeatures)); | |
_FigmaAppObj["updateSelectedStyleProperties"](js_buffer, intrinsicLineHeight, js_availableOTFeatures) | |
} | |
function _FigmaApp_updateSelectedStyleThumbnail(buffer) { | |
var js_buffer = _jsValueSlots[buffer]; | |
_FigmaAppObj["updateSelectedStyleThumbnail"](js_buffer) | |
} | |
function _FigmaApp_updateSelectionRect(x, y, width, height) { | |
_FigmaAppObj["updateSelectionRect"](x, y, width, height) | |
} | |
function _FigmaApp_updateStyleThumbnail(nodeId, buffer) { | |
var js_nodeId = _jsStringFromCPPString(nodeId); | |
var js_buffer = _jsValueSlots[buffer]; | |
_FigmaAppObj["updateStyleThumbnail"](js_nodeId, js_buffer) | |
} | |
function _FigmaApp_updateViewportInfo(x, y, width, height, offsetX, offsetY, zoomScale, isZooming, isPanning) { | |
var js_isZooming = !!isZooming; | |
var js_isPanning = !!isPanning; | |
_FigmaAppObj["updateViewportInfo"](x, y, width, height, offsetX, offsetY, zoomScale, js_isZooming, js_isPanning) | |
} | |
function _FigmaApp_usedKeyboardShortcut(key) { | |
var js_key = _jsStringFromCPPString(key); | |
_FigmaAppObj["usedKeyboardShortcut"](js_key) | |
} | |
function _FigmaApp_validateAndParseURL(maybeURL) { | |
var js_maybeURL = _jsStringFromCPPString(maybeURL); | |
var jsReturnValue = _FigmaAppObj["validateAndParseURL"](js_maybeURL); | |
return _cppStringFromJSString(JSON.stringify(jsReturnValue || null)) | |
} | |
var _FileDialog_handleToUniqueID = {}; | |
function _FileDialog_delete(dialog) { | |
delete _FileDialog_handleToUniqueID[dialog] | |
} | |
function _FileDialog_new(dialog, uniqueID) { | |
_FileDialog_handleToUniqueID[dialog] = uniqueID | |
} | |
var _hiddenFileInput = null; | |
function _removeHiddenInputIfNecessary() { | |
if (_hiddenFileInput) { | |
document.body.removeChild(_hiddenFileInput); | |
_hiddenFileInput = null | |
} | |
} | |
var _SelectionLimit = { | |
ONE: 0, | |
NONE: 1 | |
}; | |
var _FileTypes = { | |
ALL: 0, | |
FIG: 1, | |
IMAGE: 2 | |
}; | |
function _off(target, event, callback) { | |
target.removeEventListener(event, callback, false) | |
} | |
function _FileDialog_open(dialog, limit, types) { | |
var uniqueID = _FileDialog_handleToUniqueID[dialog]; | |
_removeHiddenInputIfNecessary(); | |
_hiddenFileInput = document.createElement("input"); | |
_hiddenFileInput.type = "file"; | |
document.body.appendChild(_hiddenFileInput); | |
function callback() { | |
if (_FileDialog_handleToUniqueID[dialog] !== uniqueID) return; | |
_FileDialog_handleOpen(dialog, _cppStringFromJSString(_fileArrayToString(_hiddenFileInput["files"]))); | |
_removeHiddenInputIfNecessary() | |
} | |
_hiddenFileInput.onchange = callback; | |
_hiddenFileInput.style.position = "absolute"; | |
_hiddenFileInput.style.right = "200%"; | |
_hiddenFileInput.style.margin = "0"; | |
if (limit == _SelectionLimit.NONE) { | |
_hiddenFileInput.multiple = true | |
} | |
if (types == _FileTypes.IMAGE) { | |
_hiddenFileInput.accept = "image/*" | |
} else if (types == _FileTypes.FIG) { | |
_hiddenFileInput.accept = ".fig" | |
} | |
if (_PlatformInfo_isFirefox()) { | |
var listener = function() { | |
_off(document, "click", listener); | |
_hiddenFileInput.click() | |
}; | |
_on(document, "click", listener) | |
} else { | |
_hiddenFileInput.click() | |
} | |
} | |
function _FileDialog_saveArray(name, array, mimeType) { | |
name = _jsStringFromCPPString(name); | |
var blob = new Blob([array], { | |
type: _jsStringFromCPPString(mimeType) | |
}); | |
if (_PlatformInfo_isIE() || _PlatformInfo_isEdge()) { | |
var element = document.createElement("a"); | |
if (typeof element["download"] != "undefined") { | |
var url = URL.createObjectURL(blob); | |
element.href = url; | |
element["download"] = name; | |
element.click() | |
} else { | |
try { | |
window.navigator["msSaveOrOpenBlob"](blob, name) | |
} catch (x) { | |
console.error("IE can't save the file " + name + " " + x) | |
} | |
} | |
} else { | |
var url = URL.createObjectURL(blob); | |
var element = document.createElement("a"); | |
element.href = url; | |
var hasAnchorDownload = typeof element["download"] != "undefined"; | |
if (hasAnchorDownload) { | |
element["download"] = name | |
} | |
if (_PlatformInfo_isSafari()) { | |
if (!hasAnchorDownload) { | |
element["target"] = "_blank" | |
} | |
element.click() | |
} else if (_PlatformInfo_isFirefox()) { | |
document.body.appendChild(element); | |
element.click(); | |
document.body.removeChild(element) | |
} else { | |
element.click() | |
} | |
} | |
} | |
function _FileDialog_saveIndirect(name, indirectBufferHandle, mimeType) { | |
var contents = _jsValueSlots[indirectBufferHandle]; | |
if (contents) _FileDialog_saveArray(name, contents, mimeType) | |
} | |
function _FileProxy_blobSize(blobID) { | |
var blob = _FileProxy_blobs[blobID]; | |
if (!blob) { | |
return 0 | |
} | |
return blob.size | |
} | |
function _FileProxy_deleteBlob(blobID) { | |
delete _FileProxy_blobs[blobID] | |
} | |
function _FileProxy_startLoadingBlob(indirectBufferHandle, blobID, promiseID) { | |
var blob = _FileProxy_blobs[blobID]; | |
if (!blob) { | |
_FileProxy_blobLoadingFailed(promiseID); | |
return | |
} | |
var reader = new FileReader; | |
reader.onerror = function() { | |
_FileProxy_blobLoadingFailed(promiseID) | |
}; | |
reader.onload = function() { | |
_jsValueSlots[indirectBufferHandle] = new Uint8Array(reader.result); | |
_FileProxy_blobLoadingSucceeded(promiseID) | |
}; | |
reader.readAsArrayBuffer(blob) | |
} | |
var _fontContext = null; | |
function _Font_measureWidth(handle, text) { | |
_fontContext.font = _handles[handle]; | |
return _fontContext.measureText(_jsStringFromCPPString(text)).width | |
} | |
function _Font_new(handle, name, pixelSize, pixelLineHeight, prefersBold, prefersMedium, prefersItalic, id) { | |
var fonts = [JSON.stringify(_jsStringFromCPPString(name)), "sans-serif"]; | |
var text = pixelSize + "px/" + pixelLineHeight + "px " + fonts.join(","); | |
if (prefersMedium) { | |
text = "normal 500 " + text | |
} else { | |
if (prefersItalic) text = "italic " + text; | |
if (prefersBold) text = "bold " + text | |
} | |
_handles[handle] = text; | |
if (document.fonts) { | |
document.fonts.load(text).then(function(_) { | |
_Font_markLoaded(id) | |
}).catch(function(e) { | |
console.error("Font_new: failed to load font", e) | |
}) | |
} else { | |
_Font_markLoaded(id) | |
} | |
} | |
function _FullscreenApp_abortOOM() { | |
Module["onAbort"]("Out of memory") | |
} | |
function _whenFullscreenPresent(target, event, callback, opts) { | |
var wrappedCallback = function(e) { | |
var fullscreenRoot = document.getElementById("fullscreen-root"); | |
if (fullscreenRoot != null && fullscreenRoot.style.visibility !== "hidden") { | |
callback(e) | |
} | |
}; | |
_on(target, event, wrappedCallback, opts) | |
} | |
var _tabClosePrompt = null; | |
function _ImageIO_terminateCurrentImageWorkers() { | |
var ImageIO = _FigmaAppObj["ImageIO"]; | |
ImageIO["terminateWorker"]() | |
} | |
function _FullscreenApp_finishInitialization() { | |
window["enableDumpingMouseBehaviors"] = function() { | |
_FullscreenApp_enableDumpingMouseBehaviors() | |
}; | |
_FigmaAppObj["fileArrayToString"] = _fileArrayToString; | |
window["mallocHighWaterMark"] = function() { | |
return _FullscreenApp_mallocHighWaterMark() | |
}; | |
window["nodePoolCacheMissCount"] = function() { | |
return _FullscreenApp_nodePoolCacheMissCount() | |
}; | |
window["nodePoolResidentCount"] = function() { | |
return _FullscreenApp_nodePoolResidentCount() | |
}; | |
window["nodePoolResidentBytes"] = function() { | |
return _FullscreenApp_nodePoolResidentBytes() | |
}; | |
window["nodePoolActiveCount"] = function() { | |
return _FullscreenApp_nodePoolActiveCount() | |
}; | |
_whenFullscreenPresent(window, "beforeunload", function(e) { | |
if (_tabClosePrompt !== null) { | |
return e["returnValue"] = _tabClosePrompt | |
} | |
_ImageIO_terminateCurrentImageWorkers() | |
}); | |
_on(window, "online", function(e) { | |
_FullscreenApp_setOnline(true) | |
}); | |
_on(window, "offline", function(e) { | |
_FullscreenApp_setOnline(false) | |
}) | |
} | |
function _FullscreenApp_runOutOfMemoryDone(hitOOM) { | |
if (hitOOM) console.log("successfully ran out of memory"); | |
else console.log("failed to run out of memory") | |
} | |
function _FullscreenApp_runOutOfMemoryHelper(count, total) { | |
console.log("total so far is " + total + " bytes, attempting to allocate " + count + " bytes") | |
} | |
function _FullscreenApp_setBrowserTabClosePrompt(text) { | |
_tabClosePrompt = text ? _jsStringFromCPPString(text) : null | |
} | |
function _GpuView_setSize(handle, width, height) { | |
var view = _handles[handle]; | |
var canvas = view._canvas; | |
view._width = width; | |
view._height = height; | |
canvas.width = width; | |
canvas.height = height; | |
canvas.style.width = Math.round(width / view._ratio) + "px"; | |
canvas.style.height = Math.round(height / view._ratio) + "px" | |
} | |
function _GpuView_handleDevicePixelRatioChange(handle, ratio) { | |
var view = _handles[handle]; | |
view._ratio = ratio; | |
_GpuView_setSize(handle, view._width, view._height) | |
} | |
function _HTMLGpuView() { | |
this._element = document.createElement("div"); | |
this._element.className = "view gpu-view-content"; | |
this._canvas = document.createElement("canvas"); | |
this._element.appendChild(this._canvas); | |
this._canvas.addEventListener("webglcontextcreationerror", function(e) { | |
_FigmaAppObj.reportErrorToSentry(e) | |
}); | |
Module.canvas = this._canvas; | |
this._ratio = 1; | |
this._width = 0; | |
this._height = 0 | |
} | |
function _GpuView_new(handle) { | |
_View_new(handle, new _HTMLGpuView) | |
} | |
function _ImageBitmapHandle_delete(imageBitmapHandle) { | |
var imageBitmap = _handles[imageBitmapHandle]; | |
if (imageBitmap) { | |
if (imageBitmap["close]"]) imageBitmap["close"](); | |
delete _handles[imageBitmapHandle] | |
} | |
} | |
function _ImageContent_delete(handle) { | |
delete _handles[handle] | |
} | |
var _AlignX = { | |
LEFT: 0, | |
CENTER: 1, | |
RIGHT: 2 | |
}; | |
var _AlignY = { | |
TOP: 0, | |
CENTER: 1, | |
BOTTOM: 2 | |
}; | |
function _HTMLImageContent(width, height) { | |
this._width = width; | |
this._height = height; | |
this._xml = ""; | |
this._path = ""; | |
this.render = function(alignX, alignY, width, height) { | |
var widthParityFix = alignX === _AlignX.CENTER && (this._width & 1) !== (width & 1); | |
var heightParityFix = alignY === _AlignY.CENTER && (this._height & 1) !== (height & 1); | |
return '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" ' + 'width="' + (this._width + widthParityFix) + '" height="' + (this._height + heightParityFix) + '">' + this._xml + "</svg>" | |
} | |
} | |
function _ImageContent_new(handle, width, height) { | |
_handles[handle] = new _HTMLImageContent(width, height) | |
} | |
function _ImageContent_setPixels(handle, width, height, pixels, devicePixelRatio) { | |
var content = _handles[handle]; | |
var canvas = document.createElement("canvas"); | |
var context = canvas.getContext("2d"); | |
canvas.width = width; | |
canvas.height = height; | |
var imageData = context.createImageData(width, height); | |
imageData.data.set(HEAPU8.subarray(pixels, pixels + width * height * 4)); | |
context.putImageData(imageData, 0, 0); | |
content._xml += '<image width="' + width / devicePixelRatio + 'px" height="' + height / devicePixelRatio + 'px" xlink:href="' + canvas.toDataURL() + '">' | |
} | |
function _ImageIO_cancelCurrentImageWorkers() { | |
var ImageIO = _FigmaAppObj["ImageIO"]; | |
ImageIO["reset"]() | |
} | |
var _ImageIO_imageBitmapCallback = null; | |
var _ImageIO_indirectBufferCallback = null; | |
var _jsValueHelp = null; | |
function _JsValue_assign(idx, value, category, numBytes) { | |
if (idx < 0) { | |
return | |
} | |
if (!_jsValueHelp) { | |
_jsValueHelp = _FigmaAppObj["jsValueHelp"] | |
} | |
_jsValueHelp.setMeta(idx, category, numBytes); | |
_jsValueSlots[idx] = value | |
} | |
function _ImageIO_decodeAsync(indirectBufferHandle, maxWidth, maxHeight, createWithOriginalSize, id, mimeType, useImageBitmap) { | |
var array = _jsValueSlots[indirectBufferHandle]; | |
if (array) { | |
var type = _jsStringFromCPPString(mimeType); | |
var ImageIO = _FigmaAppObj["ImageIO"]; | |
var promise = ImageIO["decodeAsync"](array, type, maxWidth, maxHeight, useImageBitmap); | |
promise.then(function(info) { | |
var asImageBitmap = !!info.bitmap; | |
if (asImageBitmap) { | |
_ImageIO_imageBitmapCallback = function(data) { | |
_handles[data] = info.bitmap | |
} | |
} else { | |
_ImageIO_indirectBufferCallback = function(data) { | |
_JsValue_assign(data, info.rgba, "ImageIO.decode.rgba", info.rgba.byteLength) | |
} | |
} | |
_ImageIO_decodeDone(info.width, info.height, info.originalWidth, info.originalHeight, createWithOriginalSize, asImageBitmap, info.isMultiFrameGIF, info.isRotated, id) | |
}).catch(function(error) { | |
console.error(error); | |
_ImageIO_decodeDone(0, 0, 0, 0, true, false, false, false, id) | |
}) | |
} | |
} | |
function _ImageIO_decodeDoneHelper(indirectBufferHandle) { | |
if (_ImageIO_indirectBufferCallback) _ImageIO_indirectBufferCallback(indirectBufferHandle); | |
_ImageIO_indirectBufferCallback = null | |
} | |
function _ImageIO_decodeDoneHelperImageBitmap(imageBitmapHandle) { | |
if (_ImageIO_imageBitmapCallback) _ImageIO_imageBitmapCallback(imageBitmapHandle); | |
_ImageIO_imageBitmapCallback = null | |
} | |
function _ImageIO_encode(indirectBufferHandle, width, height, isJPEG, quality, bufferHandle, isPremultiplied) { | |
var array = _jsValueSlots[indirectBufferHandle]; | |
if (array) { | |
var ImageIO = _FigmaAppObj["ImageIO"]; | |
var file = ImageIO["encode"](width, height, array, isJPEG, quality, isPremultiplied); | |
_ImageIO_indirectBufferCallback = function(data) { | |
_JsValue_assign(data, file, "ImageIO.encode", file.byteLength) | |
}; | |
_ImageIO_encodeResult(file.length, bufferHandle) | |
} | |
} | |
function _ImageIO_encodeResultHelper(indirectBufferHandle) { | |
if (_ImageIO_indirectBufferCallback) _ImageIO_indirectBufferCallback(indirectBufferHandle); | |
_ImageIO_indirectBufferCallback = null | |
} | |
function _ImageIO_scale(imageHandle, bufferHandle, w, h, mimeType) { | |
var imageBitmap = _handles[imageHandle]; | |
var type = _jsStringFromCPPString(mimeType); | |
var buf = _FigmaAppObj.ImageIO.scaleImageBitmap(imageBitmap, w, h, type); | |
_JsValue_assign(bufferHandle, buf, "ImageIO.scale", buf.byteLength) | |
} | |
function _IndirectBuffer_aliasFromRenderTree(handle) { | |
return _IndirectBuffer_wrapUint8Array(Module["_IB_"][handle]) | |
} | |
var _JsBindingsTestHelpersObj = null; | |
function _JsBindingsTestHelpers_jsEchoUintValue(value) { | |
var js_value = value < 0 ? value + 4294967296 : value; | |
var jsReturnValue = _JsBindingsTestHelpersObj["jsEchoUintValue"](js_value); | |
return jsReturnValue | |
} | |
function _JsValue_asInt(handle) { | |
return _jsValueSlots[handle] | 0 | |
} | |
var _jsFreeSlots = null; | |
function _JsValue_new(value) { | |
var handle = _jsFreeSlots.pop(); | |
if (handle === void 0) handle = _jsValueSlots.length; | |
_jsValueSlots[handle] = value; | |
return handle | |
} | |
function _JsValue_newUndefined() { | |
return _JsValue_new(void 0) | |
} | |
function _JsValue_call(handle, thisValue, argumentCount, firstArgument) { | |
var fn = _jsValueSlots[handle]; | |
if (!(fn instanceof Function)) { | |
console.warn("ignoring attempt to call a non-function value"); | |
return _JsValue_newUndefined() | |
} | |
var args = []; | |
for (var i = 0; i < argumentCount; i++) { | |
args.push(_jsValueSlots[HEAP32[(firstArgument >> 2) + i]]) | |
} | |
try { | |
var value = fn.apply(_jsValueSlots[thisValue], args) | |
} catch (e) { | |
console.error(e); | |
return _JsValue_newUndefined() | |
} | |
return _JsValue_new(value) | |
} | |
function _JsValue_construct(handle, argumentCount, firstArgument) { | |
var fn = _jsValueSlots[handle]; | |
if (!(fn instanceof Function)) { | |
console.warn("ignoring attempt to construct a non-function value"); | |
return _JsValue_newUndefined() | |
} | |
var args = [null]; | |
for (var i = 0; i < argumentCount; i++) { | |
args.push(_jsValueSlots[HEAP32[(firstArgument >> 2) + i]]) | |
} | |
try { | |
var value = new(fn.bind.apply(fn, args)) | |
} catch (e) { | |
console.error(e); | |
return _JsValue_newUndefined() | |
} | |
return _JsValue_new(value) | |
} | |
function _JsValue_deleteSlot(handle) { | |
if (handle >= 0) { | |
if (_jsValueHelp) { | |
_jsValueHelp.clearMeta(handle) | |
} | |
_jsValueSlots[handle] = void 0; | |
_jsFreeSlots.push(handle) | |
} | |
} | |
function _JsValue_get(handle, property) { | |
var object = _jsValueSlots[handle]; | |
return object ? _JsValue_new(object[_jsStringFromCPPString(property)]) : _JsValue_newUndefined() | |
} | |
function _JsValue_initializeJsValueSlots() { | |
const arrays = _CommonAppObj["getJsValueSlots"](); | |
_jsValueSlots = arrays[0]; | |
_jsFreeSlots = arrays[1] | |
} | |
function _JsValue_isFunction(handle) { | |
return typeof _jsValueSlots[handle] === "function" | |
} | |
function _JsValue_isStrictEqual(left, right) { | |
return _jsValueSlots[left] === _jsValueSlots[right] | |
} | |
function _JsValue_newGlobal() { | |
return _JsValue_new(window) | |
} | |
function _JsValue_newNull() { | |
return _JsValue_new(null) | |
} | |
function _JsValue_newNumber(value) { | |
return _JsValue_new(value) | |
} | |
function _JsValue_setAt(handle, index, value) { | |
var array = _jsValueSlots[handle]; | |
if (array) array[index] = _jsValueSlots[value] | |
} | |
function _JsValue_uint8ArrayEquals(handle, otherHandle) { | |
var array = _jsValueSlots[handle]; | |
if (array) { | |
var otherArray = _jsValueSlots[otherHandle]; | |
if (otherArray) { | |
var n = array.length; | |
if (n === otherArray.length) { | |
for (var i = 0; i < n; i++) { | |
if (array[i] !== otherArray[i]) { | |
return false | |
} | |
} | |
return true | |
} | |
} | |
} | |
return false | |
} | |
function _JsValue_uint8ArrayGet(handle, index, bytes, count) { | |
var array = _jsValueSlots[handle]; | |
if (array) { | |
if (count <= 128) { | |
for (var i = 0; i < count; ++i) { | |
HEAPU8[bytes + i | 0] = array[index + i | 0] | |
} | |
} else { | |
HEAPU8.set(array.subarray(index, index + count), bytes) | |
} | |
} | |
} | |
function _JsValue_uint8ArraySet(handle, index, bytes, count) { | |
var array = _jsValueSlots[handle]; | |
if (array) { | |
if (index + count <= array.length) { | |
array.set(HEAPU8.subarray(bytes, bytes + count), index) | |
} else { | |
var message = index > array.length ? "Source is too large: index > array.length" : "Source is too large: index + count > array.length"; | |
console.warn("JSValue_uint8ArraySet: handle=" + handle + ", index=" + index + ", count=" + count + ", array.length=" + array.length); | |
var error = new Error(message); | |
setTimeout(function() { | |
throw error | |
}, 0) | |
} | |
} | |
} | |
function _PlatformCursor_new(name) { | |
name = _jsStringFromCPPString(name); | |
var className = "platform_cursor_" + name; | |
var cssText = "." + className + "{cursor:" + name + "!important;}"; | |
_allocateStyle(cssText); | |
return _cppStringFromJSString(className) | |
} | |
function _PlatformInfo_is64BitBrowser() { | |
return _FigmaAppObj.PlatformBrowser.is64BitBrowser | |
} | |
function _PlatformInfo_isChromeOS() { | |
_PlatformInfo_init(); | |
return _isChromeOS | |
} | |
function _PlatformInfo_isDirectXBrowser() { | |
return _FigmaAppObj.PlatformBrowser.isDirectXBrowser | |
} | |
function _PlatformInfo_isLinux() { | |
_PlatformInfo_init(); | |
return _isLinux | |
} | |
function _PlatformInfo_isMac() { | |
_PlatformInfo_init(); | |
return _isMac | |
} | |
function _PlatformInfo_isMobileBrowser() { | |
return _FigmaAppObj.PlatformBrowser.isMobileBrowser | |
} | |
var _PluginCallbacksObj = null; | |
function _PluginCallbacks_boxSelectionEnded() { | |
_PluginCallbacksObj["boxSelectionEnded"]() | |
} | |
function _PluginCallbacks_currentPageChange() { | |
_PluginCallbacksObj["currentPageChange"]() | |
} | |
function _PluginCallbacks_selectionChange(inBoxSelection) { | |
var js_inBoxSelection = !!inBoxSelection; | |
_PluginCallbacksObj["selectionChange"](js_inBoxSelection) | |
} | |
var _PrototypeAppObj = null; | |
function _PrototypeApp_applyDerivedDataToPrototypeScene(data) { | |
var js_data = _jsValueSlots[data]; | |
_PrototypeAppObj["applyDerivedDataToPrototypeScene"](js_data) | |
} | |
function _PrototypeApp_ready() { | |
_PrototypeAppObj["ready"]() | |
} | |
function _PrototypeApp_triggerViewerEvent(event) { | |
var js_event = _jsStringFromCPPString(event); | |
_PrototypeAppObj["triggerViewerEvent"](js_event) | |
} | |
function _Regex_delete(handle) { | |
delete _handles[handle] | |
} | |
function _Regex_emitResult(index, strings) { | |
var result = Module["_malloc"](4 * 3); | |
HEAP32[result >> 2] = index; | |
HEAP32[(result >> 2) + 1] = strings.length; | |
var subgroups = HEAP32[(result >> 2) + 2] = Module["_malloc"](4 * strings.length); | |
for (var i = 0; i < strings.length; i++) { | |
HEAP32[(subgroups >> 2) + i] = _cppStringFromJSString(strings[i] || "") | |
} | |
return result | |
} | |
function _Regex_findAll(handle, text) { | |
text = _jsStringFromCPPString(text); | |
var regex = new RegExp(_handles[handle].source, "g"); | |
var strings = [""]; | |
var match; | |
while (match = regex.exec(text)) { | |
strings.push(match[0]) | |
} | |
return _Regex_emitResult(-1, strings) | |
} | |
function _Regex_new(handle, pattern) { | |
_handles[handle] = new RegExp(_jsStringFromCPPString(pattern)) | |
} | |
function _Regex_replaceAll(handle, text, replacement) { | |
var regex = new RegExp(_handles[handle].source, "g"); | |
return _cppStringFromJSString(_jsStringFromCPPString(text).replace(regex, _jsStringFromCPPString(replacement))) | |
} | |
function _Regex_search(handle, text) { | |
text = _jsStringFromCPPString(text); | |
var match = _handles[handle].exec(text); | |
if (!match) { | |
return 0 | |
} | |
var index = intArrayFromString(text.slice(0, match.index), true).length; | |
return _Regex_emitResult(index, match) | |
} | |
function _Regex_test(handle, text, start) { | |
text = _jsStringFromCPPString(text); | |
_handles[handle].lastIndex = start; | |
var match = _handles[handle].exec(text); | |
if (!match) { | |
return _cppStringFromJSString(JSON.stringify([-1, 0])) | |
} | |
return _cppStringFromJSString(JSON.stringify([match.index, match[0].length])) | |
} | |
var _currentTimestamp = null; | |
function _Support_currentTimestampFromEmscripten() { | |
return _currentTimestamp() | |
} | |
var _Support_didCallInit = false; | |
function _Font_init() { | |
if (self.document) { | |
_fontContext = document.createElement("canvas").getContext("2d") | |
} | |
} | |
var _View_supportsTransforms = null; | |
function _View_init() { | |
if (self.document) { | |
_View_supportsTransforms = "transform" in document.body.style | |
} | |
} | |
var _tsapi_returnValue = null; | |
var _WebAsyncObj = null; | |
var _WidgetBindingsObj = null; | |
var _WebUserSyncingObj = null; | |
var _WebMultiplayerObj = null; | |
var _WebReportingObj = null; | |
var _WebSelectionObj = null; | |
function _TypeScriptAPI_initialize() { | |
var WebAsyncCallback = {}; | |
WebAsyncCallback["timeoutCallback"] = function(callbackId) { | |
_WebAsyncCallback_timeoutCallback(callbackId) | |
}; | |
var CppBindingsTestHelpers = {}; | |
CppBindingsTestHelpers["cppEchoUintValue"] = function(value) { | |
var cReturnValue = _CppBindingsTestHelpers_cppEchoUintValue(value); | |
return cReturnValue < 0 ? cReturnValue + 4294967296 : cReturnValue | |
}; | |
var PerfInfo = {}; | |
PerfInfo["getAllocCallCount"] = function() { | |
var cReturnValue = _PerfInfo_getAllocCallCount(); | |
return cReturnValue < 0 ? cReturnValue + 4294967296 : cReturnValue | |
}; | |
PerfInfo["getAllocTotal"] = function() { | |
var cReturnValue = _PerfInfo_getAllocTotal(); | |
return cReturnValue < 0 ? cReturnValue + 4294967296 : cReturnValue | |
}; | |
PerfInfo["resetAllocCountsAndTotal"] = function() { | |
_PerfInfo_resetAllocCountsAndTotal() | |
}; | |
PerfInfo["getTotalUsedHeapMemory"] = function() { | |
var cReturnValue = _PerfInfo_getTotalUsedHeapMemory(); | |
return cReturnValue < 0 ? cReturnValue + 4294967296 : cReturnValue | |
}; | |
PerfInfo["getMaxUsedHeapMemory"] = function() { | |
var cReturnValue = _PerfInfo_getMaxUsedHeapMemory(); | |
return cReturnValue < 0 ? cReturnValue + 4294967296 : cReturnValue | |
}; | |
PerfInfo["getIndirectBufferMemory"] = function() { | |
var cReturnValue = _PerfInfo_getIndirectBufferMemory(); | |
return cReturnValue < 0 ? cReturnValue + 4294967296 : cReturnValue | |
}; | |
PerfInfo["getTotalImageMemory"] = function() { | |
var cReturnValue = _PerfInfo_getTotalImageMemory(); | |
return cReturnValue < 0 ? cReturnValue + 4294967296 : cReturnValue | |
}; | |
PerfInfo["getSizeofNode"] = function() { | |
var cReturnValue = _PerfInfo_getSizeofNode(); | |
return cReturnValue < 0 ? cReturnValue + 4294967296 : cReturnValue | |
}; | |
var Fullscreen = {}; | |
Fullscreen["setEditorType"] = function(editorType) { | |
_Fullscreen_setEditorType(editorType) | |
}; | |
Fullscreen["triggerAction"] = function(action, payload) { | |
var js_action = _cppStringFromJSString(action); | |
var js_payload = _cppStringFromJSString(JSON.stringify(payload || null)); | |
_Fullscreen_triggerAction(js_action, js_payload) | |
}; | |
Fullscreen["updateFeatureFlags"] = function(featureFlagsJson) { | |
var js_featureFlagsJson = _cppStringFromJSString(JSON.stringify(featureFlagsJson || null)); | |
_Fullscreen_updateFeatureFlags(js_featureFlagsJson) | |
}; | |
Fullscreen["addToFontList"] = function(data) { | |
var js_data = _cppStringFromJSString(JSON.stringify(data || null)); | |
_Fullscreen_addToFontList(js_data) | |
}; | |
Fullscreen["fontIsLoaded"] = function(family, style) { | |
var js_family = _cppStringFromJSString(family); | |
var js_style = _cppStringFromJSString(style); | |
var cReturnValue = _Fullscreen_fontIsLoaded(js_family, js_style); | |
return !!cReturnValue | |
}; | |
Fullscreen["setMissingFontOnSelectedText"] = function(fontFamily, fontStyle) { | |
var js_fontFamily = _cppStringFromJSString(fontFamily); | |
var js_fontStyle = _cppStringFromJSString(fontStyle); | |
_Fullscreen_setMissingFontOnSelectedText(js_fontFamily, js_fontStyle) | |
}; | |
Fullscreen["selectMissingFontNodes"] = function(fontFamily, fontStyle) { | |
var js_fontFamily = _cppStringFromJSString(fontFamily); | |
var js_fontStyle = _cppStringFromJSString(fontStyle); | |
_Fullscreen_selectMissingFontNodes(js_fontFamily, js_fontStyle) | |
}; | |
Fullscreen["interfaceFontLoaded"] = function() { | |
_Fullscreen_interfaceFontLoaded() | |
}; | |
Fullscreen["findMissingFontsAndShowPopover"] = function() { | |
_Fullscreen_findMissingFontsAndShowPopover() | |
}; | |
Fullscreen["createStyleFromSelection"] = function(inheritStyleField, styleName) { | |
var js_inheritStyleField = _cppStringFromJSString(inheritStyleField); | |
var js_styleName = _cppStringFromJSString(styleName); | |
var cReturnValue = _Fullscreen_createStyleFromSelection(js_inheritStyleField, js_styleName); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["changeSelectionToFrameOrGroup"] = function(frameLayoutMode) { | |
_Fullscreen_changeSelectionToFrameOrGroup(frameLayoutMode) | |
}; | |
Fullscreen["makeSelectedFramesManuallySized"] = function() { | |
_Fullscreen_makeSelectedFramesManuallySized() | |
}; | |
Fullscreen["setStackCounterAlignOfSelection"] = function(stackCounterAlign) { | |
_Fullscreen_setStackCounterAlignOfSelection(stackCounterAlign) | |
}; | |
Fullscreen["setStackHorizontalSizeOnSelection"] = function(size, usedDropdown) { | |
_Fullscreen_setStackHorizontalSizeOnSelection(size, usedDropdown) | |
}; | |
Fullscreen["setStackVerticalSizeOnSelection"] = function(size, usedDropdown) { | |
_Fullscreen_setStackVerticalSizeOnSelection(size, usedDropdown) | |
}; | |
Fullscreen["setDistributeOnSelectedStacks"] = function() { | |
_Fullscreen_setDistributeOnSelectedStacks() | |
}; | |
Fullscreen["selectStackParents"] = function() { | |
_Fullscreen_selectStackParents() | |
}; | |
Fullscreen["isOrInInstanceWithDeprecatedAlignmentOverride"] = function() { | |
var cReturnValue = _Fullscreen_isOrInInstanceWithDeprecatedAlignmentOverride(); | |
return !!cReturnValue | |
}; | |
Fullscreen["isOrInInstanceWithDeprecatedHugOverride"] = function() { | |
var cReturnValue = _Fullscreen_isOrInInstanceWithDeprecatedHugOverride(); | |
return !!cReturnValue | |
}; | |
Fullscreen["updateStackToAutoLayoutV3"] = function() { | |
_Fullscreen_updateStackToAutoLayoutV3() | |
}; | |
Fullscreen["createStyle"] = function(styleType) { | |
var cReturnValue = _Fullscreen_createStyle(styleType); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
Fullscreen["getAllLocalStyles"] = function(styleType) { | |
var cReturnValue = _Fullscreen_getAllLocalStyles(styleType); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
Fullscreen["applyStyleToSelection"] = function(inheritStyleKeyField, key, version, shouldCommit) { | |
var js_inheritStyleKeyField = _cppStringFromJSString(inheritStyleKeyField); | |
var js_key = _cppStringFromJSString(key); | |
var js_version = _cppStringFromJSString(version); | |
_Fullscreen_applyStyleToSelection(js_inheritStyleKeyField, js_key, js_version, shouldCommit) | |
}; | |
Fullscreen["selectStyle"] = function(key, version) { | |
var js_key = _cppStringFromJSString(key); | |
var js_version = _cppStringFromJSString(version); | |
_Fullscreen_selectStyle(js_key, js_version) | |
}; | |
Fullscreen["selectExternalStyle"] = function(buffer) { | |
var js_buffer = _IndirectBuffer_wrapUint8Array(buffer); | |
_Fullscreen_selectExternalStyle(js_buffer) | |
}; | |
Fullscreen["changeSharedStyleStatus"] = function(stylesInfo) { | |
var js_stylesInfo = _cppStringFromJSString(JSON.stringify(stylesInfo || null)); | |
_Fullscreen_changeSharedStyleStatus(js_stylesInfo) | |
}; | |
Fullscreen["getNextStylePositions"] = function(styleIDs) { | |
var js_styleIDs = _cppStringFromJSString(JSON.stringify(styleIDs || null)); | |
var cReturnValue = _Fullscreen_getNextStylePositions(js_styleIDs); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
Fullscreen["insertStyleBetween"] = function(styleIDToMove, prevStyleID, nextStyleID) { | |
var js_styleIDToMove = _cppStringFromJSString(styleIDToMove); | |
var js_prevStyleID = _cppStringFromJSString(prevStyleID); | |
var js_nextStyleID = _cppStringFromJSString(nextStyleID); | |
_Fullscreen_insertStyleBetween(js_styleIDToMove, js_prevStyleID, js_nextStyleID) | |
}; | |
Fullscreen["getStyleNodeId"] = function(key, version) { | |
var js_key = _cppStringFromJSString(key); | |
var js_version = _cppStringFromJSString(version); | |
var cReturnValue = _Fullscreen_getStyleNodeId(js_key, js_version); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["deleteNode"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
_Fullscreen_deleteNode(js_guid) | |
}; | |
Fullscreen["renameNode"] = function(guid, name) { | |
var js_guid = _cppStringFromJSString(guid); | |
var js_name = _cppStringFromJSString(name); | |
_Fullscreen_renameNode(js_guid, js_name) | |
}; | |
Fullscreen["setIsDraggingInstanceFromSidebar"] = function(value) { | |
_Fullscreen_setIsDraggingInstanceFromSidebar(value) | |
}; | |
Fullscreen["isOverlayVisible"] = function(overlay) { | |
var cReturnValue = _Fullscreen_isOverlayVisible(overlay); | |
return !!cReturnValue | |
}; | |
Fullscreen["isStrokeMaskableAsSVG"] = function() { | |
var cReturnValue = _Fullscreen_isStrokeMaskableAsSVG(); | |
return !!cReturnValue | |
}; | |
Fullscreen["shouldShowTextNodeExportOptions"] = function() { | |
var cReturnValue = _Fullscreen_shouldShowTextNodeExportOptions(); | |
return !!cReturnValue | |
}; | |
Fullscreen["onWindowFocus"] = function() { | |
_Fullscreen_onWindowFocus() | |
}; | |
Fullscreen["onFrame"] = function() { | |
_Fullscreen_onFrame() | |
}; | |
Fullscreen["onStorage"] = function(storageKey) { | |
var js_storageKey = _cppStringFromJSString(storageKey); | |
_Fullscreen_onStorage(js_storageKey) | |
}; | |
Fullscreen["getFirstSelectedNodeIdForCurrentPage"] = function() { | |
var cReturnValue = _Fullscreen_getFirstSelectedNodeIdForCurrentPage(); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["selectInstances"] = function(guids, shouldCenterViewport) { | |
var js_guids = _cppStringFromJSString(guids); | |
_Fullscreen_selectInstances(js_guids, shouldCenterViewport) | |
}; | |
Fullscreen["generateCSSCodeForSelectedStyle"] = function() { | |
var cReturnValue = _Fullscreen_generateCSSCodeForSelectedStyle(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
Fullscreen["generateIOSSwiftCodeForSelectedStyle"] = function() { | |
var cReturnValue = _Fullscreen_generateIOSSwiftCodeForSelectedStyle(); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["generateAndroidCodeForSelectedStyle"] = function() { | |
var cReturnValue = _Fullscreen_generateAndroidCodeForSelectedStyle(); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["uploadPaintImage"] = function(blendMode, opacity) { | |
var js_blendMode = _cppStringFromJSString(blendMode); | |
_Fullscreen_uploadPaintImage(js_blendMode, opacity) | |
}; | |
Fullscreen["dropImageOnPaintThumbnail"] = function(blendMode, opacity, files, selectedIndex, selectedPropertyType) { | |
var js_blendMode = _cppStringFromJSString(blendMode); | |
var js_files = _cppStringFromJSString(files); | |
_Fullscreen_dropImageOnPaintThumbnail(js_blendMode, opacity, js_files, selectedIndex, selectedPropertyType) | |
}; | |
Fullscreen["setThumbnailsOnly"] = function(value) { | |
_Fullscreen_setThumbnailsOnly(value) | |
}; | |
Fullscreen["selectBrokenFixedScrollingNodesOnCurrentPage"] = function(metadata) { | |
var js_metadata = _cppStringFromJSString(JSON.stringify(metadata || null)); | |
var cReturnValue = _Fullscreen_selectBrokenFixedScrollingNodesOnCurrentPage(js_metadata); | |
return cReturnValue | |
}; | |
Fullscreen["setActiveCommentNode"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
_Fullscreen_setActiveCommentNode(js_guid) | |
}; | |
Fullscreen["getCommentAnchorNodeAtPosition"] = function(x, y) { | |
var cReturnValue = _Fullscreen_getCommentAnchorNodeAtPosition(x, y); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
Fullscreen["setCurrentPageFromNode"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
_Fullscreen_setCurrentPageFromNode(js_guid) | |
}; | |
Fullscreen["setCanvasSpaceCenter"] = function(x, y) { | |
_Fullscreen_setCanvasSpaceCenter(x, y) | |
}; | |
Fullscreen["setCanvasZoomScale"] = function(zoomScale) { | |
_Fullscreen_setCanvasZoomScale(zoomScale) | |
}; | |
Fullscreen["hasPendingPaintOpenRequest"] = function() { | |
var cReturnValue = _Fullscreen_hasPendingPaintOpenRequest(); | |
return !!cReturnValue | |
}; | |
Fullscreen["clearFillAndStrokePaintsOnSelectedGroups"] = function() { | |
_Fullscreen_clearFillAndStrokePaintsOnSelectedGroups() | |
}; | |
Fullscreen["showHyperlinkEditor"] = function(centerX, centerY, guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
_Fullscreen_showHyperlinkEditor(centerX, centerY, js_guid) | |
}; | |
Fullscreen["hideHyperlinkEditor"] = function() { | |
_Fullscreen_hideHyperlinkEditor() | |
}; | |
Fullscreen["setHyperlink"] = function(url, nodeID, rangeStart, rangeEnd) { | |
var js_url = _cppStringFromJSString(url); | |
var js_nodeID = _cppStringFromJSString(nodeID); | |
var cReturnValue = _Fullscreen_setHyperlink(js_url, js_nodeID, rangeStart, rangeEnd); | |
return !!cReturnValue | |
}; | |
Fullscreen["stopDismissingHyperlinkPopup"] = function() { | |
_Fullscreen_stopDismissingHyperlinkPopup() | |
}; | |
Fullscreen["immediatelyDismissHyperlinkPopup"] = function() { | |
_Fullscreen_immediatelyDismissHyperlinkPopup() | |
}; | |
Fullscreen["hideOnCanvasNameEditor"] = function() { | |
_Fullscreen_hideOnCanvasNameEditor() | |
}; | |
Fullscreen["getRecordedFullscreenAction"] = function() { | |
var cReturnValue = _Fullscreen_getRecordedFullscreenAction(); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["markSharedComponentPublished"] = function(guid, version) { | |
var js_guid = _cppStringFromJSString(guid); | |
var js_version = _cppStringFromJSString(version); | |
_Fullscreen_markSharedComponentPublished(js_guid, js_version) | |
}; | |
Fullscreen["removePublishedVersion"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
_Fullscreen_removePublishedVersion(js_guid) | |
}; | |
Fullscreen["generateUniqueID"] = function() { | |
var cReturnValue = _Fullscreen_generateUniqueID(); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["getDefaultStateForLocalStateGroup"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _Fullscreen_getDefaultStateForLocalStateGroup(js_guid); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["getDefaultStateForSubscribedStateGroup"] = function(guid, defaultStateKey) { | |
var js_guid = _cppStringFromJSString(guid); | |
var js_defaultStateKey = _cppStringFromJSString(defaultStateKey); | |
var cReturnValue = _Fullscreen_getDefaultStateForSubscribedStateGroup(js_guid, js_defaultStateKey); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["getSimilarStates"] = function(guidsToSwap, guidStateGroup, defaultStateKeyIfSubscribed) { | |
var js_guidsToSwap = _cppStringFromJSString(JSON.stringify(guidsToSwap || null)); | |
var js_guidStateGroup = _cppStringFromJSString(guidStateGroup); | |
var js_defaultStateKeyIfSubscribed = _cppStringFromJSString(defaultStateKeyIfSubscribed); | |
var cReturnValue = _Fullscreen_getSimilarStates(js_guidsToSwap, js_guidStateGroup, js_defaultStateKeyIfSubscribed); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
Fullscreen["isSelectionContainedInStateOrStateInstance"] = function() { | |
var cReturnValue = _Fullscreen_isSelectionContainedInStateOrStateInstance(); | |
return !!cReturnValue | |
}; | |
Fullscreen["getContainingStateGroupOrSelf"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _Fullscreen_getContainingStateGroupOrSelf(js_guid); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["getStateGroupAnalyticsInfo"] = function(stateGroupID) { | |
var js_stateGroupID = _cppStringFromJSString(stateGroupID); | |
var cReturnValue = _Fullscreen_getStateGroupAnalyticsInfo(js_stateGroupID); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
Fullscreen["setSelectedInteractions"] = function(interactions) { | |
var js_interactions = _cppStringFromJSString(JSON.stringify(interactions || null)); | |
_Fullscreen_setSelectedInteractions(js_interactions) | |
}; | |
Fullscreen["setMockFileKey"] = function(fileKey) { | |
var js_fileKey = _cppStringFromJSString(fileKey); | |
_Fullscreen_setMockFileKey(js_fileKey) | |
}; | |
Fullscreen["createFrame"] = function(name, width, height) { | |
var js_name = _cppStringFromJSString(name); | |
_Fullscreen_createFrame(js_name, width, height) | |
}; | |
Fullscreen["hoverInteractions"] = function(noodleIDs) { | |
var js_noodleIDs = _cppStringFromJSString(JSON.stringify(noodleIDs || null)); | |
_Fullscreen_hoverInteractions(js_noodleIDs) | |
}; | |
Fullscreen["deleteInteractions"] = function(noodleIDs) { | |
var js_noodleIDs = _cppStringFromJSString(JSON.stringify(noodleIDs || null)); | |
_Fullscreen_deleteInteractions(js_noodleIDs) | |
}; | |
Fullscreen["clearEmptyPrototypeInteractions"] = function() { | |
_Fullscreen_clearEmptyPrototypeInteractions() | |
}; | |
Fullscreen["repairThumbnails"] = function() { | |
_Fullscreen_repairThumbnails() | |
}; | |
Fullscreen["deletePrototypeStartingPoints"] = function(nodeIds) { | |
var js_nodeIds = _cppStringFromJSString(JSON.stringify(nodeIds || null)); | |
_Fullscreen_deletePrototypeStartingPoints(js_nodeIds) | |
}; | |
Fullscreen["updatePrototypeStartingPointDescription"] = function(guid, newDescription) { | |
var js_guid = _cppStringFromJSString(guid); | |
var js_newDescription = _cppStringFromJSString(newDescription); | |
_Fullscreen_updatePrototypeStartingPointDescription(js_guid, js_newDescription) | |
}; | |
Fullscreen["updatePrototypeStartingPointName"] = function(guid, newName) { | |
var js_guid = _cppStringFromJSString(guid); | |
var js_newName = _cppStringFromJSString(newName); | |
_Fullscreen_updatePrototypeStartingPointName(js_guid, js_newName) | |
}; | |
Fullscreen["insertPrototypeStartingPointsBetween"] = function(sortedNodeIdsToMove, prevNodeID, nextNodeID) { | |
var js_sortedNodeIdsToMove = _cppStringFromJSString(JSON.stringify(sortedNodeIdsToMove || null)); | |
var js_prevNodeID = _cppStringFromJSString(prevNodeID); | |
var js_nextNodeID = _cppStringFromJSString(nextNodeID); | |
_Fullscreen_insertPrototypeStartingPointsBetween(js_sortedNodeIdsToMove, js_prevNodeID, js_nextNodeID) | |
}; | |
Fullscreen["reorderStateGroupPropertyValue"] = function(stateGroupId, property, value, destIndex) { | |
var js_stateGroupId = _cppStringFromJSString(stateGroupId); | |
var js_property = _cppStringFromJSString(property); | |
var js_value = _cppStringFromJSString(value); | |
_Fullscreen_reorderStateGroupPropertyValue(js_stateGroupId, js_property, js_value, destIndex) | |
}; | |
Fullscreen["handlePaste"] = function() { | |
_Fullscreen_handlePaste() | |
}; | |
Fullscreen["updatePencilStyle"] = function(style) { | |
var js_style = _cppStringFromJSString(JSON.stringify(style || null)); | |
_Fullscreen_updatePencilStyle(js_style) | |
}; | |
Fullscreen["updateToolStyles"] = function(toolStyles) { | |
var js_toolStyles = _cppStringFromJSString(JSON.stringify(toolStyles || null)); | |
_Fullscreen_updateToolStyles(js_toolStyles) | |
}; | |
Fullscreen["getNumInstancesOfComponentOrStateGroup"] = function(key) { | |
var js_key = _cppStringFromJSString(key); | |
var cReturnValue = _Fullscreen_getNumInstancesOfComponentOrStateGroup(js_key); | |
return cReturnValue | |
}; | |
Fullscreen["swapAllInstancesOfComponentOrStateGroup"] = function(key, newSymbolGUID, defaultStateKey) { | |
var js_key = _cppStringFromJSString(key); | |
var js_newSymbolGUID = _cppStringFromJSString(newSymbolGUID); | |
var js_defaultStateKey = _cppStringFromJSString(defaultStateKey); | |
_Fullscreen_swapAllInstancesOfComponentOrStateGroup(js_key, js_newSymbolGUID, js_defaultStateKey) | |
}; | |
Fullscreen["getNumUsagesOfStyle"] = function(key, includeAllUsagesInInstances) { | |
var js_key = _cppStringFromJSString(key); | |
var cReturnValue = _Fullscreen_getNumUsagesOfStyle(js_key, includeAllUsagesInInstances); | |
return cReturnValue | |
}; | |
Fullscreen["swapAllUsesOfStyle"] = function(key, newStyleGUID, includeAllUsagesInInstances) { | |
var js_key = _cppStringFromJSString(key); | |
var js_newStyleGUID = _cppStringFromJSString(newStyleGUID); | |
var cReturnValue = _Fullscreen_swapAllUsesOfStyle(js_key, js_newStyleGUID, includeAllUsagesInInstances); | |
return !!cReturnValue | |
}; | |
Fullscreen["goToSymbolOrStateGroupById"] = function(nodeId) { | |
var js_nodeId = _cppStringFromJSString(nodeId); | |
_Fullscreen_goToSymbolOrStateGroupById(js_nodeId) | |
}; | |
Fullscreen["getSymbolNodeId"] = function(key, version) { | |
var js_key = _cppStringFromJSString(key); | |
var js_version = _cppStringFromJSString(version); | |
var cReturnValue = _Fullscreen_getSymbolNodeId(js_key, js_version); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["getStateGroupNodeId"] = function(key, version) { | |
var js_key = _cppStringFromJSString(key); | |
var js_version = _cppStringFromJSString(version); | |
var cReturnValue = _Fullscreen_getStateGroupNodeId(js_key, js_version); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["getInstanceSublayerNodeId"] = function(guid, overridePath) { | |
var js_guid = _cppStringFromJSString(guid); | |
var js_overridePath = _cppStringFromJSString(overridePath); | |
var cReturnValue = _Fullscreen_getInstanceSublayerNodeId(js_guid, js_overridePath); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["activateStampTool"] = function(stampImage, label) { | |
var js_stampImage = _IndirectBuffer_wrapUint8Array(stampImage); | |
var js_label = _cppStringFromJSString(label); | |
_Fullscreen_activateStampTool(js_stampImage, js_label) | |
}; | |
Fullscreen["addBoolComponentPropDef"] = function(name, initialValue) { | |
var js_name = _cppStringFromJSString(name); | |
_Fullscreen_addBoolComponentPropDef(js_name, initialValue) | |
}; | |
Fullscreen["delightfulToolbarDropItemOntoCanvas"] = function(tool, x, y) { | |
_Fullscreen_delightfulToolbarDropItemOntoCanvas(tool, x, y) | |
}; | |
Fullscreen["setIsInCursorChat"] = function(isInCursorChat) { | |
_Fullscreen_setIsInCursorChat(isInCursorChat) | |
}; | |
Fullscreen["setHasLowAvailableMemory"] = function(lowAvailableMemory) { | |
_Fullscreen_setHasLowAvailableMemory(lowAvailableMemory) | |
}; | |
Fullscreen["figjamInlineMenuPositionUpdate"] = function(positionX, positionY, height) { | |
_Fullscreen_figjamInlineMenuPositionUpdate(positionX, positionY, height) | |
}; | |
Fullscreen["clobberSelectedTextStyles"] = function() { | |
_Fullscreen_clobberSelectedTextStyles() | |
}; | |
Fullscreen["swapStrokeEndCaps"] = function() { | |
_Fullscreen_swapStrokeEndCaps() | |
}; | |
Fullscreen["clearLibraryMoveInfo"] = function(nodeId) { | |
var js_nodeId = _cppStringFromJSString(nodeId); | |
_Fullscreen_clearLibraryMoveInfo(js_nodeId) | |
}; | |
Fullscreen["doesSymbolHaveInstances"] = function(nodeId) { | |
var js_nodeId = _cppStringFromJSString(nodeId); | |
var cReturnValue = _Fullscreen_doesSymbolHaveInstances(js_nodeId); | |
return !!cReturnValue | |
}; | |
Fullscreen["generatePublishableCopy"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _Fullscreen_generatePublishableCopy(js_guid); | |
return _tsapi_returnValue | |
}; | |
Fullscreen["setDefaultEditMode"] = function() { | |
_Fullscreen_setDefaultEditMode() | |
}; | |
Fullscreen["exportSelectionOrCurrentPage"] = function(selectionOnly) { | |
_Fullscreen_exportSelectionOrCurrentPage(selectionOnly) | |
}; | |
Fullscreen["insertWidget"] = function(pluginID) { | |
var js_pluginID = _cppStringFromJSString(pluginID); | |
_Fullscreen_insertWidget(js_pluginID) | |
}; | |
Fullscreen["exportStickiesAsCSV"] = function(selectionOnly, includeAuthor) { | |
_Fullscreen_exportStickiesAsCSV(selectionOnly, includeAuthor) | |
}; | |
Fullscreen["insertTemplateInCanvas"] = function(buffer) { | |
var js_buffer = _IndirectBuffer_wrapUint8Array(buffer); | |
_Fullscreen_insertTemplateInCanvas(js_buffer) | |
}; | |
var Multiplayer = {}; | |
Multiplayer["observeUser"] = function(sessionID) { | |
_Multiplayer_observeUser(sessionID) | |
}; | |
Multiplayer["reconnect"] = function(ignorePreviousSnapshotHash) { | |
_Multiplayer_reconnect(ignorePreviousSnapshotHash) | |
}; | |
Multiplayer["updateConnectionStateIfNeeded"] = function(ignoreBackoff) { | |
_Multiplayer_updateConnectionStateIfNeeded(ignoreBackoff) | |
}; | |
Multiplayer["flush"] = function() { | |
_Multiplayer_flush() | |
}; | |
Multiplayer["startUpgrade"] = function() { | |
_Multiplayer_startUpgrade() | |
}; | |
Multiplayer["forceCheckpoint"] = function(uuid) { | |
var js_uuid = _cppStringFromJSString(uuid); | |
_Multiplayer_forceCheckpoint(js_uuid) | |
}; | |
Multiplayer["currentSessionID"] = function() { | |
var cReturnValue = _Multiplayer_currentSessionID(); | |
return cReturnValue | |
}; | |
Multiplayer["pendingRegistersDump"] = function() { | |
var cReturnValue = _Multiplayer_pendingRegistersDump(); | |
return _tsapi_returnValue | |
}; | |
Multiplayer["startLoadingAllPages"] = function() { | |
var cReturnValue = _Multiplayer_startLoadingAllPages(); | |
return !!cReturnValue | |
}; | |
Multiplayer["detach"] = function() { | |
var cReturnValue = _Multiplayer_detach(); | |
return cReturnValue | |
}; | |
Multiplayer["reattachAndSync"] = function() { | |
var cReturnValue = _Multiplayer_reattachAndSync(); | |
return cReturnValue | |
}; | |
Multiplayer["abandonAndReattach"] = function() { | |
var cReturnValue = _Multiplayer_abandonAndReattach(); | |
return cReturnValue | |
}; | |
Multiplayer["sendChatMessage"] = function(text) { | |
var js_text = _cppStringFromJSString(text); | |
_Multiplayer_sendChatMessage(js_text) | |
}; | |
Multiplayer["sendVoiceMetadata"] = function(connectedCallId) { | |
var js_connectedCallId = _cppStringFromJSString(connectedCallId); | |
_Multiplayer_sendVoiceMetadata(js_connectedCallId) | |
}; | |
Multiplayer["sendReaction"] = function(reactionId) { | |
var js_reactionId = _cppStringFromJSString(reactionId); | |
_Multiplayer_sendReaction(js_reactionId) | |
}; | |
Multiplayer["sendTimer"] = function(totalTimeMs, timeRemainingMs, isPaused, timerID, setBy) { | |
var js_setBy = _cppStringFromJSString(setBy); | |
_Multiplayer_sendTimer(totalTimeMs, timeRemainingMs, isPaused, timerID, js_setBy) | |
}; | |
Multiplayer["sendSignal"] = function(signalName, payload) { | |
var js_signalName = _cppStringFromJSString(signalName); | |
var js_payload = _cppStringFromJSString(payload); | |
_Multiplayer_sendSignal(js_signalName, js_payload) | |
}; | |
Multiplayer["sendHighFiveStatus"] = function(isHighFiving) { | |
_Multiplayer_sendHighFiveStatus(isHighFiving) | |
}; | |
Multiplayer["setName"] = function(name) { | |
var js_name = _cppStringFromJSString(name); | |
_Multiplayer_setName(js_name) | |
}; | |
Multiplayer["setImgUrl"] = function(url) { | |
var js_url = _cppStringFromJSString(url); | |
_Multiplayer_setImgUrl(js_url) | |
}; | |
var AutosaveHelpers = {}; | |
AutosaveHelpers["fileIsReadOnly"] = function() { | |
var cReturnValue = _AutosaveHelpers_fileIsReadOnly(); | |
return !!cReturnValue | |
}; | |
AutosaveHelpers["currentFileVersion"] = function() { | |
var cReturnValue = _AutosaveHelpers_currentFileVersion(); | |
return cReturnValue | |
}; | |
AutosaveHelpers["disableAutosave"] = function() { | |
_AutosaveHelpers_disableAutosave() | |
}; | |
AutosaveHelpers["mergeMultiplayerMessages"] = function(changes1, changes2, fileVersion) { | |
var js_changes1 = _IndirectBuffer_wrapUint8Array(changes1); | |
var js_changes2 = _IndirectBuffer_wrapUint8Array(changes2); | |
var cReturnValue = _AutosaveHelpers_mergeMultiplayerMessages(js_changes1, js_changes2, fileVersion); | |
return _tsapi_returnValue | |
}; | |
AutosaveHelpers["loadAutosavedNodeChanges"] = function(guid, changes, fileVersion) { | |
var js_guid = _cppStringFromJSString(guid); | |
var js_changes = _IndirectBuffer_wrapUint8Array(changes); | |
_AutosaveHelpers_loadAutosavedNodeChanges(js_guid, js_changes, fileVersion) | |
}; | |
AutosaveHelpers["changesAreAllDerivedData"] = function() { | |
var cReturnValue = _AutosaveHelpers_changesAreAllDerivedData(); | |
return !!cReturnValue | |
}; | |
AutosaveHelpers["getImagesUsedInAutosavedChanges"] = function() { | |
var cReturnValue = _AutosaveHelpers_getImagesUsedInAutosavedChanges(); | |
return _tsapi_returnValue | |
}; | |
AutosaveHelpers["restoreReferencedNodeFile"] = function(guid, buffer) { | |
var js_guid = _cppStringFromJSString(guid); | |
var js_buffer = _IndirectBuffer_wrapUint8Array(buffer); | |
_AutosaveHelpers_restoreReferencedNodeFile(js_guid, js_buffer) | |
}; | |
AutosaveHelpers["restoreReferencedNodesMessage"] = function(guids, buffer) { | |
var js_guids = _cppStringFromJSString(JSON.stringify(guids || null)); | |
var js_buffer = _IndirectBuffer_wrapUint8Array(buffer); | |
_AutosaveHelpers_restoreReferencedNodesMessage(js_guids, js_buffer) | |
}; | |
AutosaveHelpers["takeAllReferencedNodes"] = function() { | |
var cReturnValue = _AutosaveHelpers_takeAllReferencedNodes(); | |
return _tsapi_returnValue | |
}; | |
AutosaveHelpers["getAllAutosavedChanges"] = function() { | |
var cReturnValue = _AutosaveHelpers_getAllAutosavedChanges(); | |
return _tsapi_returnValue | |
}; | |
AutosaveHelpers["setAllAutosavedChanges"] = function(message, version) { | |
var js_message = _IndirectBuffer_wrapUint8Array(message); | |
_AutosaveHelpers_setAllAutosavedChanges(js_message, version) | |
}; | |
AutosaveHelpers["applyAutosavedChanges"] = function() { | |
var cReturnValue = _AutosaveHelpers_applyAutosavedChanges(); | |
return cReturnValue | |
}; | |
AutosaveHelpers["clearAutosavedChanges"] = function() { | |
_AutosaveHelpers_clearAutosavedChanges() | |
}; | |
AutosaveHelpers["getImageBytes"] = function(hash) { | |
var js_hash = _cppStringFromJSString(hash); | |
var cReturnValue = _AutosaveHelpers_getImageBytes(js_hash); | |
return _tsapi_returnValue | |
}; | |
AutosaveHelpers["restoreImageBytes"] = function(hash, bytes) { | |
var js_hash = _cppStringFromJSString(hash); | |
var js_bytes = _IndirectBuffer_wrapUint8Array(bytes); | |
_AutosaveHelpers_restoreImageBytes(js_hash, js_bytes) | |
}; | |
AutosaveHelpers["encodeChangesAsJson"] = function(changes, fileVersion) { | |
var js_changes = _IndirectBuffer_wrapUint8Array(changes); | |
var cReturnValue = _AutosaveHelpers_encodeChangesAsJson(js_changes, fileVersion); | |
return _tsapi_returnValue | |
}; | |
var DiffImpl = {}; | |
DiffImpl["setActiveDiff"] = function(diff, sourceFileKey) { | |
var js_diff = _IndirectBuffer_wrapUint8Array(diff); | |
var js_sourceFileKey = _cppStringFromJSString(sourceFileKey); | |
var cReturnValue = _DiffImpl_setActiveDiff(js_diff, js_sourceFileKey); | |
return cReturnValue | |
}; | |
DiffImpl["getActiveDiffVersion"] = function() { | |
var cReturnValue = _DiffImpl_getActiveDiffVersion(); | |
return cReturnValue | |
}; | |
DiffImpl["clearActiveDiff"] = function() { | |
_DiffImpl_clearActiveDiff() | |
}; | |
DiffImpl["applyDiff"] = function(mergeType) { | |
var cReturnValue = _DiffImpl_applyDiff(mergeType); | |
return cReturnValue | |
}; | |
DiffImpl["applyAllChunks"] = function(chunkGUIDs, conflictDetectionGUIDs, mergeType) { | |
var js_chunkGUIDs = _cppStringFromJSString(JSON.stringify(chunkGUIDs || null)); | |
var js_conflictDetectionGUIDs = _cppStringFromJSString(JSON.stringify(conflictDetectionGUIDs || null)); | |
var cReturnValue = _DiffImpl_applyAllChunks(js_chunkGUIDs, js_conflictDetectionGUIDs, mergeType); | |
return cReturnValue | |
}; | |
DiffImpl["recreateBranchPoint"] = function(diffType) { | |
var cReturnValue = _DiffImpl_recreateBranchPoint(diffType); | |
return cReturnValue | |
}; | |
DiffImpl["unapplyAllChunks"] = function() { | |
var cReturnValue = _DiffImpl_unapplyAllChunks(); | |
return cReturnValue | |
}; | |
DiffImpl["getChunks"] = function() { | |
var cReturnValue = _DiffImpl_getChunks(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
DiffImpl["getChunkChanges"] = function(index) { | |
var cReturnValue = _DiffImpl_getChunkChanges(index); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
DiffImpl["getDisplayChunks"] = function() { | |
var cReturnValue = _DiffImpl_getDisplayChunks(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
DiffImpl["setConflictDetectionDiff"] = function(diff) { | |
var js_diff = _IndirectBuffer_wrapUint8Array(diff); | |
var cReturnValue = _DiffImpl_setConflictDetectionDiff(js_diff); | |
return cReturnValue | |
}; | |
DiffImpl["getConflictDetectionDiffVersion"] = function() { | |
var cReturnValue = _DiffImpl_getConflictDetectionDiffVersion(); | |
return cReturnValue | |
}; | |
DiffImpl["getConflictingChunkGroups"] = function() { | |
var cReturnValue = _DiffImpl_getConflictingChunkGroups(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
DiffImpl["clearConflictDetectionDiff"] = function() { | |
_DiffImpl_clearConflictDetectionDiff() | |
}; | |
DiffImpl["enterBranchingDetachedState"] = function() { | |
var cReturnValue = _DiffImpl_enterBranchingDetachedState(); | |
return cReturnValue | |
}; | |
DiffImpl["commitBranchingStagedChanges"] = function() { | |
var cReturnValue = _DiffImpl_commitBranchingStagedChanges(); | |
return cReturnValue | |
}; | |
DiffImpl["abandonBranchingChanges"] = function() { | |
var cReturnValue = _DiffImpl_abandonBranchingChanges(); | |
return cReturnValue | |
}; | |
var ColorHelpers = {}; | |
ColorHelpers["hslFromRGB"] = function(r, g, b) { | |
var cReturnValue = _ColorHelpers_hslFromRGB(r, g, b); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
ColorHelpers["hslToRGB"] = function(h, s, l) { | |
var cReturnValue = _ColorHelpers_hslToRGB(h, s, l); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
ColorHelpers["hsvFromRGB"] = function(r, g, b) { | |
var cReturnValue = _ColorHelpers_hsvFromRGB(r, g, b); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
ColorHelpers["hsvToRGB"] = function(h, s, v) { | |
var cReturnValue = _ColorHelpers_hsvToRGB(h, s, v); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
var CSSExportHelpers = {}; | |
CSSExportHelpers["convertGradientPaintToCSS"] = function(paint, colorFormat) { | |
var js_paint = _cppStringFromJSString(paint); | |
var cReturnValue = _CSSExportHelpers_convertGradientPaintToCSS(js_paint, colorFormat); | |
return _tsapi_returnValue | |
}; | |
var FontHelpers = {}; | |
FontHelpers["collectDocumentFonts"] = function() { | |
var cReturnValue = _FontHelpers_collectDocumentFonts(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
FontHelpers["searchForFonts"] = function(query) { | |
var js_query = _cppStringFromJSString(query); | |
var cReturnValue = _FontHelpers_searchForFonts(js_query); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
FontHelpers["debugSelectionOpenTypeFeatures"] = function() { | |
var cReturnValue = _FontHelpers_debugSelectionOpenTypeFeatures(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
FontHelpers["getOpenTypeFeaturePreview"] = function(styleOverride, feature, maxWidth, maxHeight) { | |
var js_feature = _cppStringFromJSString(feature); | |
var cReturnValue = _FontHelpers_getOpenTypeFeaturePreview(styleOverride, js_feature, maxWidth, maxHeight); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
var InteractionTestHelpers = {}; | |
InteractionTestHelpers["startRecordingInteraction"] = function() { | |
_InteractionTestHelpers_startRecordingInteraction() | |
}; | |
InteractionTestHelpers["stopRecordingInteraction"] = function() { | |
_InteractionTestHelpers_stopRecordingInteraction() | |
}; | |
InteractionTestHelpers["setIsRunningInteractionTests"] = function(val) { | |
_InteractionTestHelpers_setIsRunningInteractionTests(val) | |
}; | |
InteractionTestHelpers["playbackInteraction"] = function(event) { | |
var js_event = _cppStringFromJSString(JSON.stringify(event || null)); | |
_InteractionTestHelpers_playbackInteraction(js_event) | |
}; | |
InteractionTestHelpers["resetToNewDocument"] = function() { | |
_InteractionTestHelpers_resetToNewDocument() | |
}; | |
InteractionTestHelpers["setReadOnly"] = function() { | |
_InteractionTestHelpers_setReadOnly() | |
}; | |
InteractionTestHelpers["dumpFile"] = function() { | |
var cReturnValue = _InteractionTestHelpers_dumpFile(); | |
return _tsapi_returnValue | |
}; | |
InteractionTestHelpers["inspectNode"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _InteractionTestHelpers_inspectNode(js_guid); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
InteractionTestHelpers["inspectListDetector"] = function() { | |
var cReturnValue = _InteractionTestHelpers_inspectListDetector(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
InteractionTestHelpers["inspectViewport"] = function() { | |
var cReturnValue = _InteractionTestHelpers_inspectViewport(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
InteractionTestHelpers["inspectCurrentDetectedList"] = function() { | |
var cReturnValue = _InteractionTestHelpers_inspectCurrentDetectedList(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
InteractionTestHelpers["inspectCurrentDetectedGrid"] = function() { | |
var cReturnValue = _InteractionTestHelpers_inspectCurrentDetectedGrid(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
InteractionTestHelpers["useNewTextLayoutLogicForSelection"] = function() { | |
_InteractionTestHelpers_useNewTextLayoutLogicForSelection() | |
}; | |
InteractionTestHelpers["triggerReleaseAssert"] = function() { | |
_InteractionTestHelpers_triggerReleaseAssert() | |
}; | |
InteractionTestHelpers["triggerReleaseReport"] = function() { | |
_InteractionTestHelpers_triggerReleaseReport() | |
}; | |
InteractionTestHelpers["abortTheAppForTesting"] = function() { | |
_InteractionTestHelpers_abortTheAppForTesting() | |
}; | |
InteractionTestHelpers["runOutOfMemoryForTesting"] = function() { | |
_InteractionTestHelpers_runOutOfMemoryForTesting() | |
}; | |
InteractionTestHelpers["setShowHyperlinkPopupsImmediately"] = function(showHyperlinkPopupsImmediately) { | |
_InteractionTestHelpers_setShowHyperlinkPopupsImmediately(showHyperlinkPopupsImmediately) | |
}; | |
var UserPreferencesTestHelpers = {}; | |
UserPreferencesTestHelpers["has"] = function(key) { | |
var js_key = _cppStringFromJSString(key); | |
var cReturnValue = _UserPreferencesTestHelpers_has(js_key); | |
return !!cReturnValue | |
}; | |
UserPreferencesTestHelpers["get"] = function(key) { | |
var js_key = _cppStringFromJSString(key); | |
var cReturnValue = _UserPreferencesTestHelpers_get(js_key); | |
return _tsapi_returnValue | |
}; | |
UserPreferencesTestHelpers["set"] = function(key, value) { | |
var js_key = _cppStringFromJSString(key); | |
var js_value = _cppStringFromJSString(value); | |
_UserPreferencesTestHelpers_set(js_key, js_value) | |
}; | |
UserPreferencesTestHelpers["clear"] = function(key) { | |
var js_key = _cppStringFromJSString(key); | |
_UserPreferencesTestHelpers_clear(js_key) | |
}; | |
var SceneGraphHelpers = {}; | |
SceneGraphHelpers["pageMoveBeforePage"] = function(pageToMoveID, pageToMoveBeforeID) { | |
var js_pageToMoveID = _cppStringFromJSString(pageToMoveID); | |
var js_pageToMoveBeforeID = _cppStringFromJSString(pageToMoveBeforeID); | |
_SceneGraphHelpers_pageMoveBeforePage(js_pageToMoveID, js_pageToMoveBeforeID) | |
}; | |
SceneGraphHelpers["pageMoveAfterPage"] = function(pageToMoveID, pageToMoveAfterID) { | |
var js_pageToMoveID = _cppStringFromJSString(pageToMoveID); | |
var js_pageToMoveAfterID = _cppStringFromJSString(pageToMoveAfterID); | |
_SceneGraphHelpers_pageMoveAfterPage(js_pageToMoveID, js_pageToMoveAfterID) | |
}; | |
SceneGraphHelpers["nodeIsSoftDeleted"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _SceneGraphHelpers_nodeIsSoftDeleted(js_guid); | |
return !!cReturnValue | |
}; | |
SceneGraphHelpers["findBestAncestorInRestorePath"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _SceneGraphHelpers_findBestAncestorInRestorePath(js_guid); | |
return _tsapi_returnValue | |
}; | |
SceneGraphHelpers["nodeIsSubscribedSymbolOrStateGroup"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _SceneGraphHelpers_nodeIsSubscribedSymbolOrStateGroup(js_guid); | |
return !!cReturnValue | |
}; | |
SceneGraphHelpers["getComponentOrStateGroupKeyForPublish"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _SceneGraphHelpers_getComponentOrStateGroupKeyForPublish(js_guid); | |
return _tsapi_returnValue | |
}; | |
SceneGraphHelpers["nodeIsPage"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _SceneGraphHelpers_nodeIsPage(js_guid); | |
return !!cReturnValue | |
}; | |
SceneGraphHelpers["symbolContainsInstance"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _SceneGraphHelpers_symbolContainsInstance(js_guid); | |
return !!cReturnValue | |
}; | |
SceneGraphHelpers["getNodeSize"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _SceneGraphHelpers_getNodeSize(js_guid); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
SceneGraphHelpers["getNodePageBackgroundColor"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _SceneGraphHelpers_getNodePageBackgroundColor(js_guid); | |
return _tsapi_returnValue | |
}; | |
SceneGraphHelpers["getNodeTransformProperties"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _SceneGraphHelpers_getNodeTransformProperties(js_guid); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
SceneGraphHelpers["setNodeTransformProperties"] = function(guid, properties) { | |
var js_guid = _cppStringFromJSString(guid); | |
var js_properties = _cppStringFromJSString(JSON.stringify(properties || null)); | |
_SceneGraphHelpers_setNodeTransformProperties(js_guid, js_properties) | |
}; | |
var PrototypingHelpers = {}; | |
PrototypingHelpers["setOriginNodeId"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
_PrototypingHelpers_setOriginNodeId(js_guid) | |
}; | |
PrototypingHelpers["safelySetDestinationNodeId"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
_PrototypingHelpers_safelySetDestinationNodeId(js_guid) | |
}; | |
PrototypingHelpers["getTransitionDestinationsOnActiveCanvas"] = function(destinationType) { | |
var cReturnValue = _PrototypingHelpers_getTransitionDestinationsOnActiveCanvas(destinationType); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PrototypingHelpers["currentPagePrototypeStatus"] = function() { | |
var cReturnValue = _PrototypingHelpers_currentPagePrototypeStatus(); | |
return cReturnValue | |
}; | |
PrototypingHelpers["firstPagePrototypeStatus"] = function() { | |
var cReturnValue = _PrototypingHelpers_firstPagePrototypeStatus(); | |
return cReturnValue | |
}; | |
PrototypingHelpers["currentPagePrototypeStatusWithStartingPoint"] = function(startingPointNodeId) { | |
var js_startingPointNodeId = _cppStringFromJSString(startingPointNodeId); | |
var cReturnValue = _PrototypingHelpers_currentPagePrototypeStatusWithStartingPoint(js_startingPointNodeId); | |
return cReturnValue | |
}; | |
PrototypingHelpers["firstPagePrototypeStatusWithStartingPoint"] = function(startingPointNodeId) { | |
var js_startingPointNodeId = _cppStringFromJSString(startingPointNodeId); | |
var cReturnValue = _PrototypingHelpers_firstPagePrototypeStatusWithStartingPoint(js_startingPointNodeId); | |
return cReturnValue | |
}; | |
PrototypingHelpers["getActivePrototypeStartingPointNodeIdOnCurrentPage"] = function() { | |
var cReturnValue = _PrototypingHelpers_getActivePrototypeStartingPointNodeIdOnCurrentPage(); | |
return _tsapi_returnValue | |
}; | |
PrototypingHelpers["isViewerSidebarShownByDefault"] = function() { | |
var cReturnValue = _PrototypingHelpers_isViewerSidebarShownByDefault(); | |
return !!cReturnValue | |
}; | |
PrototypingHelpers["getTopLevelProtototypeStartNodeIdOnCurrentPage"] = function() { | |
var cReturnValue = _PrototypingHelpers_getTopLevelProtototypeStartNodeIdOnCurrentPage(); | |
return _tsapi_returnValue | |
}; | |
PrototypingHelpers["migrateSyntheticStartingPointAndSetName"] = function(guid, name) { | |
var js_guid = _cppStringFromJSString(guid); | |
var js_name = _cppStringFromJSString(name); | |
_PrototypingHelpers_migrateSyntheticStartingPointAndSetName(js_guid, js_name) | |
}; | |
PrototypingHelpers["subtreeContainsStateSwap"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _PrototypingHelpers_subtreeContainsStateSwap(js_guid); | |
return !!cReturnValue | |
}; | |
PrototypingHelpers["currentPageContainsStateSwappableInstance"] = function() { | |
var cReturnValue = _PrototypingHelpers_currentPageContainsStateSwappableInstance(); | |
return !!cReturnValue | |
}; | |
PrototypingHelpers["documentContainsInteractiveComponent"] = function() { | |
var cReturnValue = _PrototypingHelpers_documentContainsInteractiveComponent(); | |
return !!cReturnValue | |
}; | |
PrototypingHelpers["aggressivelySetScrollBehaviorOfSelection"] = function(behavior) { | |
_PrototypingHelpers_aggressivelySetScrollBehaviorOfSelection(behavior) | |
}; | |
PrototypingHelpers["currentDeviceType"] = function() { | |
var cReturnValue = _PrototypingHelpers_currentDeviceType(); | |
return cReturnValue | |
}; | |
PrototypingHelpers["isNodeVisibleInViewport"] = function(nodeId) { | |
var js_nodeId = _cppStringFromJSString(nodeId); | |
var cReturnValue = _PrototypingHelpers_isNodeVisibleInViewport(js_nodeId); | |
return !!cReturnValue | |
}; | |
PrototypingHelpers["centerViewportOnNodeIfNecessary"] = function(nodeId) { | |
var js_nodeId = _cppStringFromJSString(nodeId); | |
_PrototypingHelpers_centerViewportOnNodeIfNecessary(js_nodeId) | |
}; | |
PrototypingHelpers["updateCurrentPagePrototypeDeviceIfNecessary"] = function() { | |
_PrototypingHelpers_updateCurrentPagePrototypeDeviceIfNecessary() | |
}; | |
var CustomFocusHelpers = {}; | |
CustomFocusHelpers["setExpectingTextInput"] = function(value) { | |
_CustomFocusHelpers_setExpectingTextInput(value) | |
}; | |
CustomFocusHelpers["setExpectingCopyCutEvent"] = function(value) { | |
_CustomFocusHelpers_setExpectingCopyCutEvent(value) | |
}; | |
CustomFocusHelpers["setExpectingPasteEvent"] = function(value) { | |
_CustomFocusHelpers_setExpectingPasteEvent(value) | |
}; | |
var DebuggingHelpers = {}; | |
DebuggingHelpers["logNode"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _DebuggingHelpers_logNode(js_guid); | |
return _tsapi_returnValue | |
}; | |
DebuggingHelpers["logRenderTree"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _DebuggingHelpers_logRenderTree(js_guid); | |
return _tsapi_returnValue | |
}; | |
DebuggingHelpers["logSelected"] = function() { | |
var cReturnValue = _DebuggingHelpers_logSelected(); | |
return _tsapi_returnValue | |
}; | |
DebuggingHelpers["logTypeNames"] = function() { | |
var cReturnValue = _DebuggingHelpers_logTypeNames(); | |
return _tsapi_returnValue | |
}; | |
DebuggingHelpers["analyzeFieldUsage"] = function(start, end) { | |
var cReturnValue = _DebuggingHelpers_analyzeFieldUsage(start, end); | |
return _tsapi_returnValue | |
}; | |
DebuggingHelpers["updateInstanceCallCount"] = function() { | |
var cReturnValue = _DebuggingHelpers_updateInstanceCallCount(); | |
return cReturnValue | |
}; | |
DebuggingHelpers["checkSymbolUpdateTimer"] = function() { | |
_DebuggingHelpers_checkSymbolUpdateTimer() | |
}; | |
DebuggingHelpers["clearSymbolUpdateTimer"] = function() { | |
_DebuggingHelpers_clearSymbolUpdateTimer() | |
}; | |
DebuggingHelpers["sceneStats"] = function() { | |
_DebuggingHelpers_sceneStats() | |
}; | |
DebuggingHelpers["reportError"] = function(msg) { | |
var js_msg = _cppStringFromJSString(msg); | |
_DebuggingHelpers_reportError(js_msg) | |
}; | |
DebuggingHelpers["simulateNullNodeAccess"] = function() { | |
_DebuggingHelpers_simulateNullNodeAccess() | |
}; | |
var BranchingHelpers = {}; | |
BranchingHelpers["UNSAFE_remapGUIDs"] = function(guids) { | |
var js_guids = _cppStringFromJSString(JSON.stringify(guids || null)); | |
var cReturnValue = _BranchingHelpers_UNSAFE_remapGUIDs(js_guids); | |
return cReturnValue | |
}; | |
BranchingHelpers["UNSAFE_remapSelected"] = function() { | |
_BranchingHelpers_UNSAFE_remapSelected() | |
}; | |
BranchingHelpers["UNSAFE_remapDocument"] = function() { | |
_BranchingHelpers_UNSAFE_remapDocument() | |
}; | |
var PluginHelpers = {}; | |
PluginHelpers["prepareToRunPlugin"] = function() { | |
_PluginHelpers_prepareToRunPlugin() | |
}; | |
PluginHelpers["startLoadingFontName"] = function(family, style) { | |
var js_family = _cppStringFromJSString(family); | |
var js_style = _cppStringFromJSString(style); | |
var cReturnValue = _PluginHelpers_startLoadingFontName(js_family, js_style); | |
return cReturnValue | |
}; | |
PluginHelpers["startLoadingImage"] = function(sha1) { | |
var js_sha1 = _cppStringFromJSString(sha1); | |
var cReturnValue = _PluginHelpers_startLoadingImage(js_sha1); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginHelpers["isImageRegistered"] = function(sha1) { | |
var js_sha1 = _cppStringFromJSString(sha1); | |
var cReturnValue = _PluginHelpers_isImageRegistered(js_sha1); | |
return !!cReturnValue | |
}; | |
PluginHelpers["getImageBytes"] = function(sha1) { | |
var js_sha1 = _cppStringFromJSString(sha1); | |
var cReturnValue = _PluginHelpers_getImageBytes(js_sha1); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginHelpers["isImageValid"] = function(compressed) { | |
var js_compressed = _IndirectBuffer_wrapUint8Array(compressed); | |
var cReturnValue = _PluginHelpers_isImageValid(js_compressed); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginHelpers["developerFriendlyIdFromGuid"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _PluginHelpers_developerFriendlyIdFromGuid(js_guid); | |
return _tsapi_returnValue | |
}; | |
PluginHelpers["guidFromDeveloperFriendlyId"] = function(devId) { | |
var js_devId = _cppStringFromJSString(devId); | |
var cReturnValue = _PluginHelpers_guidFromDeveloperFriendlyId(js_devId); | |
return _tsapi_returnValue | |
}; | |
PluginHelpers["createNodeFromSvgForPlugin"] = function(svg) { | |
var js_svg = _cppStringFromJSString(svg); | |
var cReturnValue = _PluginHelpers_createNodeFromSvgForPlugin(js_svg); | |
return _tsapi_returnValue | |
}; | |
PluginHelpers["getViewportBounds"] = function() { | |
var cReturnValue = _PluginHelpers_getViewportBounds(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginHelpers["setViewportCenter"] = function(center) { | |
var js_center = _cppStringFromJSString(JSON.stringify(center || null)); | |
_PluginHelpers_setViewportCenter(js_center) | |
}; | |
PluginHelpers["getViewportZoomScale"] = function() { | |
var cReturnValue = _PluginHelpers_getViewportZoomScale(); | |
return cReturnValue | |
}; | |
PluginHelpers["setViewportZoomScale"] = function(scale) { | |
_PluginHelpers_setViewportZoomScale(scale) | |
}; | |
PluginHelpers["scrollAndZoomIntoView"] = function(nodeIds) { | |
var js_nodeIds = _cppStringFromJSString(JSON.stringify(nodeIds || null)); | |
_PluginHelpers_scrollAndZoomIntoView(js_nodeIds) | |
}; | |
PluginHelpers["groupNodes"] = function(type, nodes, parentSessionID, parentLocalID, index) { | |
var js_nodes = _cppStringFromJSString(nodes); | |
var cReturnValue = _PluginHelpers_groupNodes(type, js_nodes, parentSessionID, parentLocalID, index); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginHelpers["flattenNodes"] = function(nodes, parentSessionID, parentLocalID, index) { | |
var js_nodes = _cppStringFromJSString(nodes); | |
var cReturnValue = _PluginHelpers_flattenNodes(js_nodes, parentSessionID, parentLocalID, index); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginHelpers["getMaxDashPattern"] = function() { | |
var cReturnValue = _PluginHelpers_getMaxDashPattern(); | |
return cReturnValue | |
}; | |
PluginHelpers["replaceSymbolBackingInstance"] = function(instanceId, symbolId) { | |
var js_instanceId = _cppStringFromJSString(instanceId); | |
var js_symbolId = _cppStringFromJSString(symbolId); | |
var cReturnValue = _PluginHelpers_replaceSymbolBackingInstance(js_instanceId, js_symbolId); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginHelpers["documentHasMissingFont"] = function() { | |
var cReturnValue = _PluginHelpers_documentHasMissingFont(); | |
return !!cReturnValue | |
}; | |
PluginHelpers["setOldIntrinsicPercentageLineHeightOnCurrentSelectionForTesting"] = function(percentage) { | |
_PluginHelpers_setOldIntrinsicPercentageLineHeightOnCurrentSelectionForTesting(percentage) | |
}; | |
PluginHelpers["resetSelectionCouldBeDirty"] = function() { | |
_PluginHelpers_resetSelectionCouldBeDirty() | |
}; | |
PluginHelpers["removeRelaunchDataFromSelection"] = function(pluginID) { | |
var js_pluginID = _cppStringFromJSString(pluginID); | |
_PluginHelpers_removeRelaunchDataFromSelection(js_pluginID) | |
}; | |
PluginHelpers["updateStyles"] = function() { | |
_PluginHelpers_updateStyles() | |
}; | |
PluginHelpers["supportsALv3"] = function() { | |
var cReturnValue = _PluginHelpers_supportsALv3(); | |
return !!cReturnValue | |
}; | |
var SceneNodeCpp = {}; | |
SceneNodeCpp["setGlobalUnstableNodeID"] = function(sessionID, localID) { | |
_SceneNodeCpp_setGlobalUnstableNodeID(sessionID, localID) | |
}; | |
SceneNodeCpp["exists"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_exists(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["getType"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getType(context); | |
return cReturnValue | |
}; | |
SceneNodeCpp["getBooleanOperation"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getBooleanOperation(context); | |
return cReturnValue | |
}; | |
SceneNodeCpp["setBooleanOperation"] = function(value, context) { | |
var cReturnValue = _SceneNodeCpp_setBooleanOperation(value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getFixedChildrenCount"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getFixedChildrenCount(context); | |
return cReturnValue | |
}; | |
SceneNodeCpp["setFixedChildrenCount"] = function(value, context) { | |
var cReturnValue = _SceneNodeCpp_setFixedChildrenCount(value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getScrollDirection"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getScrollDirection(context); | |
return cReturnValue | |
}; | |
SceneNodeCpp["setScrollDirection"] = function(value, context) { | |
var cReturnValue = _SceneNodeCpp_setScrollDirection(value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getCornerRadius"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getCornerRadius(context); | |
return cReturnValue | |
}; | |
SceneNodeCpp["setCornerRadius"] = function(value, context) { | |
var cReturnValue = _SceneNodeCpp_setCornerRadius(value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getObjectsPanelThumbnailId"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getObjectsPanelThumbnailId(context); | |
return cReturnValue | |
}; | |
SceneNodeCpp["getStyleType"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getStyleType(context); | |
return cReturnValue | |
}; | |
SceneNodeCpp["getStackMode"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getStackMode(context); | |
return cReturnValue | |
}; | |
SceneNodeCpp["setStackMode"] = function(value, context) { | |
var cReturnValue = _SceneNodeCpp_setStackMode(value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getResizeToFit"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getResizeToFit(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["getHasEnabledStaticImagePaint"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getHasEnabledStaticImagePaint(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["getHasEnabledAnimatedPaint"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getHasEnabledAnimatedPaint(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["getIsInstanceSublayer"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getIsInstanceSublayer(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["getIsStateGroup"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getIsStateGroup(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["getIsState"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getIsState(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["getStateAbbreviatedName"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getStateAbbreviatedName(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getFrameMaskDisabled"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getFrameMaskDisabled(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["setFrameMaskDisabled"] = function(value, context) { | |
var cReturnValue = _SceneNodeCpp_setFrameMaskDisabled(value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getIsExpandable"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getIsExpandable(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["getIsSymbolPublishable"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getIsSymbolPublishable(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["getIsTemporarilyExpanded"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getIsTemporarilyExpanded(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["getIsExpanded"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getIsExpanded(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["setIsExpanded"] = function(value, context) { | |
var cReturnValue = _SceneNodeCpp_setIsExpanded(value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getLocked"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getLocked(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["setLocked"] = function(value, context) { | |
var cReturnValue = _SceneNodeCpp_setLocked(value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getMask"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getMask(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["setMask"] = function(value, context) { | |
var cReturnValue = _SceneNodeCpp_setMask(value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getVisible"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getVisible(context); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["setVisible"] = function(value, context) { | |
var cReturnValue = _SceneNodeCpp_setVisible(value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getName"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getName(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["setName"] = function(value, context) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _SceneNodeCpp_setName(js_value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getParent"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getParent(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getShapeWithTextType"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getShapeWithTextType(context); | |
return cReturnValue | |
}; | |
SceneNodeCpp["getSymbolId"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getSymbolId(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getSymbolDescription"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getSymbolDescription(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["setSymbolDescription"] = function(value, context) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _SceneNodeCpp_setSymbolDescription(js_value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getStateGroupDescription"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getStateGroupDescription(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getStateGroupPropertyValueOrder"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getStateGroupPropertyValueOrder(context); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
SceneNodeCpp["getSymbolLinks"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getSymbolLinks(context); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
SceneNodeCpp["setSymbolLinks"] = function(value, context) { | |
var js_value = _cppStringFromJSString(JSON.stringify(value || null)); | |
var cReturnValue = _SceneNodeCpp_setSymbolLinks(js_value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getStyleDescription"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getStyleDescription(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["setStyleDescription"] = function(value, context) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _SceneNodeCpp_setStyleDescription(js_value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getComponentKey"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getComponentKey(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getStateGroupKey"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getStateGroupKey(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getStyleKey"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getStyleKey(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getPublishFile"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getPublishFile(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getSharedSymbolVersion"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getSharedSymbolVersion(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getSharedStateGroupVersion"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getSharedStateGroupVersion(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getPublishID"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getPublishID(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getFontName"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getFontName(context); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
SceneNodeCpp["getExportSettings"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getExportSettings(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["setExportSettings"] = function(value, context) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _SceneNodeCpp_setExportSettings(js_value, context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getSharedSymbolReference"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getSharedSymbolReference(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getChildren"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getChildren(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["getReversedChildren"] = function(context) { | |
var cReturnValue = _SceneNodeCpp_getReversedChildren(context); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["requestGIFData"] = function(paint) { | |
var js_paint = _IndirectBuffer_wrapUint8Array(paint); | |
var cReturnValue = _SceneNodeCpp_requestGIFData(js_paint); | |
return _tsapi_returnValue | |
}; | |
SceneNodeCpp["updateStillImageAndSelectionPropertiesForGIF"] = function(paint, frame) { | |
var js_paint = _IndirectBuffer_wrapUint8Array(paint); | |
var js_frame = _IndirectBuffer_wrapUint8Array(frame); | |
var cReturnValue = _SceneNodeCpp_updateStillImageAndSelectionPropertiesForGIF(js_paint, js_frame); | |
return !!cReturnValue | |
}; | |
SceneNodeCpp["getInheritedStyle"] = function(inheritStyleKeyField) { | |
var js_inheritStyleKeyField = _cppStringFromJSString(inheritStyleKeyField); | |
var cReturnValue = _SceneNodeCpp_getInheritedStyle(js_inheritStyleKeyField); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
var PluginSceneNodeCpp = {}; | |
PluginSceneNodeCpp["runInQueryMode"] = function(value) { | |
_PluginSceneNodeCpp_runInQueryMode(value) | |
}; | |
PluginSceneNodeCpp["removeSelfAndChildren"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_removeSelfAndChildren(); | |
return !!cReturnValue | |
}; | |
PluginSceneNodeCpp["getCurrentPage"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getCurrentPage(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setCurrentPage"] = function(sessionID, localID) { | |
var cReturnValue = _PluginSceneNodeCpp_setCurrentPage(sessionID, localID); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["createNode"] = function(type) { | |
var cReturnValue = _PluginSceneNodeCpp_createNode(type); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["cloneNode"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_cloneNode(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["createInstance"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_createInstance(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["outlineStroke"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_outlineStroke(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getChildCount"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getChildCount(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["getInstanceScaleFactor"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getInstanceScaleFactor(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setInstanceScaleFactor"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setInstanceScaleFactor(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getIsDescendantOfImmutableFrame"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getIsDescendantOfImmutableFrame(); | |
return !!cReturnValue | |
}; | |
PluginSceneNodeCpp["exportAsImage"] = function(encodedExportSettings) { | |
var js_encodedExportSettings = _cppStringFromJSString(encodedExportSettings); | |
var cReturnValue = _PluginSceneNodeCpp_exportAsImage(js_encodedExportSettings); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["insertChild"] = function(parentSessionID, parentLocalID, index, childSessionID, childLocalID) { | |
var cReturnValue = _PluginSceneNodeCpp_insertChild(parentSessionID, parentLocalID, index, childSessionID, childLocalID); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getDirectlySelectedNodes"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getDirectlySelectedNodes(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setDirectlySelectedNodes"] = function(value) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _PluginSceneNodeCpp_setDirectlySelectedNodes(js_value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getSelectedTextRange"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getSelectedTextRange(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setSelectedTextRange"] = function(textNodeId, start, end) { | |
var js_textNodeId = _cppStringFromJSString(textNodeId); | |
var cReturnValue = _PluginSceneNodeCpp_setSelectedTextRange(js_textNodeId, start, end); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getOpacity"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getOpacity(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setOpacity"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setOpacity(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getCornerRadiusOrMixed"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getCornerRadiusOrMixed(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setCornerRadiusOrMixed"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setCornerRadiusOrMixed(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getCornerSmoothing"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getCornerSmoothing(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setCornerSmoothing"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setCornerSmoothing(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStrokeWeight"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStrokeWeight(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStrokeWeight"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStrokeWeight(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getCharacters"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getCharacters(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["hasMissingFont"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_hasMissingFont(); | |
return !!cReturnValue | |
}; | |
PluginSceneNodeCpp["getHasSharedStyleReference"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getHasSharedStyleReference(); | |
return !!cReturnValue | |
}; | |
PluginSceneNodeCpp["getPrototypeStartNodeId"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getPrototypeStartNodeId(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getSymbolId"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getSymbolId(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getIsInternalOnlyNode"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getIsInternalOnlyNode(); | |
return !!cReturnValue | |
}; | |
PluginSceneNodeCpp["getSize"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getSize(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setSize"] = function(width, height) { | |
var cReturnValue = _PluginSceneNodeCpp_setSize(width, height); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["resizeWithConstraints"] = function(width, height) { | |
var cReturnValue = _PluginSceneNodeCpp_resizeWithConstraints(width, height); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["rescale"] = function(scale) { | |
var cReturnValue = _PluginSceneNodeCpp_rescale(scale); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["swapComponent"] = function(guid) { | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _PluginSceneNodeCpp_swapComponent(js_guid); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["detachInstance"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_detachInstance(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["getProportionsConstrained"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getProportionsConstrained(); | |
return !!cReturnValue | |
}; | |
PluginSceneNodeCpp["setProportionsConstrained"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setProportionsConstrained(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getAbsoluteTransform"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getAbsoluteTransform(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["getRelativeTransform"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getRelativeTransform(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setRelativeTransform"] = function(m00, m01, m02, m10, m11, m12) { | |
var cReturnValue = _PluginSceneNodeCpp_setRelativeTransform(m00, m01, m02, m10, m11, m12); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getHorizontalConstraint"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getHorizontalConstraint(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setHorizontalConstraint"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setHorizontalConstraint(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getVerticalConstraint"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getVerticalConstraint(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setVerticalConstraint"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setVerticalConstraint(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStackSpacing"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStackSpacing(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStackSpacing"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStackSpacing(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStackCounterSizing"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStackCounterSizing(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStackCounterSizing"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStackCounterSizing(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStackCounterAlign"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStackCounterAlign(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStackCounterAlign"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStackCounterAlign(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStackHorizontalPadding"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStackHorizontalPadding(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStackHorizontalPadding"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStackHorizontalPadding(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStackVerticalPadding"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStackVerticalPadding(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStackVerticalPadding"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStackVerticalPadding(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStackLeftPadding"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStackLeftPadding(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStackLeftPadding"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStackLeftPadding(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStackRightPadding"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStackRightPadding(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStackRightPadding"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStackRightPadding(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStackTopPadding"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStackTopPadding(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStackBottomPadding"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStackBottomPadding(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStackBottomPadding"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStackBottomPadding(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStackTopPadding"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStackTopPadding(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStackPrimarySizing"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStackPrimarySizing(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStackPrimarySizing"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStackPrimarySizing(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStackChildPrimaryGrow"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStackChildPrimaryGrow(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStackChildPrimaryGrow"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStackChildPrimaryGrow(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStackPrimaryAlignItems"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStackPrimaryAlignItems(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStackPrimaryAlignItems"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStackPrimaryAlignItems(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStackCounterAlignItems"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStackCounterAlignItems(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStackCounterAlignItems"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStackCounterAlignItems(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRectangleTopLeftCornerRadius"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getRectangleTopLeftCornerRadius(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setRectangleTopLeftCornerRadius"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setRectangleTopLeftCornerRadius(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRectangleTopRightCornerRadius"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getRectangleTopRightCornerRadius(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setRectangleTopRightCornerRadius"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setRectangleTopRightCornerRadius(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRectangleBottomLeftCornerRadius"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getRectangleBottomLeftCornerRadius(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setRectangleBottomLeftCornerRadius"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setRectangleBottomLeftCornerRadius(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRectangleBottomRightCornerRadius"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getRectangleBottomRightCornerRadius(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setRectangleBottomRightCornerRadius"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setRectangleBottomRightCornerRadius(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRectangleCornerRadiiIndependent"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getRectangleCornerRadiiIndependent(); | |
return !!cReturnValue | |
}; | |
PluginSceneNodeCpp["setRectangleCornerRadiiIndependent"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setRectangleCornerRadiiIndependent(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRectangleCornerToolIndependent"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getRectangleCornerToolIndependent(); | |
return !!cReturnValue | |
}; | |
PluginSceneNodeCpp["setRectangleCornerToolIndependent"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setRectangleCornerToolIndependent(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStarInnerScale"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStarInnerScale(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStarInnerScale"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStarInnerScale(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getCount"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getCount(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setCount"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setCount(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getShapeWithTextType"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getShapeWithTextType(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setShapeWithTextType"] = function(value) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _PluginSceneNodeCpp_setShapeWithTextType(js_value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getAuthorVisible"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getAuthorVisible(); | |
return !!cReturnValue | |
}; | |
PluginSceneNodeCpp["setAuthorVisible"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setAuthorVisible(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getConnectorStart"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getConnectorStart(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["getConnectorEnd"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getConnectorEnd(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setConnectorStart"] = function(endpointNodeId, magnet) { | |
var js_endpointNodeId = _cppStringFromJSString(endpointNodeId); | |
var js_magnet = _cppStringFromJSString(magnet); | |
var cReturnValue = _PluginSceneNodeCpp_setConnectorStart(js_endpointNodeId, js_magnet); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setConnectorEnd"] = function(endpointNodeId, magnet) { | |
var js_endpointNodeId = _cppStringFromJSString(endpointNodeId); | |
var js_magnet = _cppStringFromJSString(magnet); | |
var cReturnValue = _PluginSceneNodeCpp_setConnectorEnd(js_endpointNodeId, js_magnet); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setConnectorStartPosition"] = function(endpointNodeId, x, y) { | |
var js_endpointNodeId = _cppStringFromJSString(endpointNodeId); | |
var cReturnValue = _PluginSceneNodeCpp_setConnectorStartPosition(js_endpointNodeId, x, y); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setConnectorEndPosition"] = function(endpointNodeId, x, y) { | |
var js_endpointNodeId = _cppStringFromJSString(endpointNodeId); | |
var cReturnValue = _PluginSceneNodeCpp_setConnectorEndPosition(js_endpointNodeId, x, y); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getAutoRename"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getAutoRename(); | |
return !!cReturnValue | |
}; | |
PluginSceneNodeCpp["setAutoRename"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setAutoRename(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getFillPaints"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getFillPaints(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getInheritedStyle"] = function(inheritStyleKeyField) { | |
var js_inheritStyleKeyField = _cppStringFromJSString(inheritStyleKeyField); | |
var cReturnValue = _PluginSceneNodeCpp_getInheritedStyle(js_inheritStyleKeyField); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["getStrokePaints"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStrokePaints(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setStrokePaints"] = function(value) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _PluginSceneNodeCpp_setStrokePaints(js_value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getBackgroundPaints"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getBackgroundPaints(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setBackgroundPaints"] = function(value) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _PluginSceneNodeCpp_setBackgroundPaints(js_value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getLayoutGrids"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getLayoutGrids(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setLayoutGrids"] = function(value) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _PluginSceneNodeCpp_setLayoutGrids(js_value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getGuides"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getGuides(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setGuides"] = function(value) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _PluginSceneNodeCpp_setGuides(js_value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getEffects"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getEffects(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setEffects"] = function(value) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _PluginSceneNodeCpp_setEffects(js_value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getBlendMode"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getBlendMode(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setBlendMode"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setBlendMode(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStrokeAlign"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStrokeAlign(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStrokeAlign"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStrokeAlign(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStrokeCap"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStrokeCap(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["getStrokeCapOrMixed"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStrokeCapOrMixed(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setStrokeCap"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStrokeCap(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStrokeJoin"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStrokeJoin(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["getStrokeJoinOrMixed"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStrokeJoinOrMixed(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setStrokeJoin"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStrokeJoin(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getHandleMirroring"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getHandleMirroring(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["getHandleMirroringOrMixed"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getHandleMirroringOrMixed(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setHandleMirroring"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setHandleMirroring(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStrokeMiterLimit"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStrokeMiterLimit(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setStrokeMiterLimit"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setStrokeMiterLimit(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getDashPattern"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getDashPattern(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setDashPattern"] = function(value) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _PluginSceneNodeCpp_setDashPattern(js_value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getFontSize"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getFontSize(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["getParagraphIndent"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getParagraphIndent(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setParagraphIndent"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setParagraphIndent(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getParagraphSpacing"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getParagraphSpacing(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setParagraphSpacing"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setParagraphSpacing(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getListSpacing"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getListSpacing(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setListSpacing"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setListSpacing(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getTextAlignHorizontal"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getTextAlignHorizontal(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setTextAlignHorizontal"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setTextAlignHorizontal(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getTextAlignVertical"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getTextAlignVertical(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setTextAlignVertical"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setTextAlignVertical(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getTextDecoration"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getTextDecoration(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["getTextCase"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getTextCase(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["getTextAutoResize"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getTextAutoResize(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setTextAutoResize"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setTextAutoResize(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getLetterSpacing"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getLetterSpacing(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["getArcData"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getArcData(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setArcData"] = function(startingAngle, endingAngle, innerRadius) { | |
var cReturnValue = _PluginSceneNodeCpp_setArcData(startingAngle, endingAngle, innerRadius); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getVectorData"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getVectorData(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setVectorData"] = function(value) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _PluginSceneNodeCpp_setVectorData(js_value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getPluginData"] = function(pluginID, key) { | |
var js_pluginID = _cppStringFromJSString(pluginID); | |
var js_key = _cppStringFromJSString(key); | |
var cReturnValue = _PluginSceneNodeCpp_getPluginData(js_pluginID, js_key); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setPluginData"] = function(pluginID, key, value) { | |
var js_pluginID = _cppStringFromJSString(pluginID); | |
var js_key = _cppStringFromJSString(key); | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _PluginSceneNodeCpp_setPluginData(js_pluginID, js_key, js_value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getSharedPluginData"] = function(namespaceStr, key) { | |
var js_namespaceStr = _cppStringFromJSString(namespaceStr); | |
var js_key = _cppStringFromJSString(key); | |
var cReturnValue = _PluginSceneNodeCpp_getSharedPluginData(js_namespaceStr, js_key); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setSharedPluginData"] = function(namespaceStr, key, value) { | |
var js_namespaceStr = _cppStringFromJSString(namespaceStr); | |
var js_key = _cppStringFromJSString(key); | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _PluginSceneNodeCpp_setSharedPluginData(js_namespaceStr, js_key, js_value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setPluginRelaunchData"] = function(pluginID, relaunchData) { | |
var js_pluginID = _cppStringFromJSString(pluginID); | |
var js_relaunchData = _cppStringFromJSString(JSON.stringify(relaunchData || null)); | |
var cReturnValue = _PluginSceneNodeCpp_setPluginRelaunchData(js_pluginID, js_relaunchData); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getPrototypeInteractions"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getPrototypeInteractions(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setPrototypeInteractions"] = function(value) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _PluginSceneNodeCpp_setPrototypeInteractions(js_value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getOverlayPositionType"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getOverlayPositionType(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["getOverlayBackground"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getOverlayBackground(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["getOverlayBackgroundInteraction"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getOverlayBackgroundInteraction(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["getRangeFontSize"] = function(start, end) { | |
var cReturnValue = _PluginSceneNodeCpp_getRangeFontSize(start, end); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setRangeFontSize"] = function(start, end, value) { | |
var cReturnValue = _PluginSceneNodeCpp_setRangeFontSize(start, end, value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRangeFontName"] = function(start, end) { | |
var cReturnValue = _PluginSceneNodeCpp_getRangeFontName(start, end); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setRangeFontName"] = function(start, end, family, style, postscript) { | |
var js_family = _cppStringFromJSString(family); | |
var js_style = _cppStringFromJSString(style); | |
var js_postscript = _cppStringFromJSString(postscript); | |
var cReturnValue = _PluginSceneNodeCpp_setRangeFontName(start, end, js_family, js_style, js_postscript); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRangeTextCase"] = function(start, end) { | |
var cReturnValue = _PluginSceneNodeCpp_getRangeTextCase(start, end); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setRangeTextCase"] = function(start, end, value) { | |
var cReturnValue = _PluginSceneNodeCpp_setRangeTextCase(start, end, value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRangeTextDecoration"] = function(start, end) { | |
var cReturnValue = _PluginSceneNodeCpp_getRangeTextDecoration(start, end); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setRangeTextDecoration"] = function(start, end, value) { | |
var cReturnValue = _PluginSceneNodeCpp_setRangeTextDecoration(start, end, value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRangeLetterSpacing"] = function(start, end) { | |
var cReturnValue = _PluginSceneNodeCpp_getRangeLetterSpacing(start, end); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setRangeLetterSpacing"] = function(start, end, value, unit) { | |
var cReturnValue = _PluginSceneNodeCpp_setRangeLetterSpacing(start, end, value, unit); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRangeLineHeight"] = function(start, end) { | |
var cReturnValue = _PluginSceneNodeCpp_getRangeLineHeight(start, end); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setRangeLineHeight"] = function(start, end, value, unit) { | |
var cReturnValue = _PluginSceneNodeCpp_setRangeLineHeight(start, end, value, unit); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRangeFillPaints"] = function(start, end) { | |
var cReturnValue = _PluginSceneNodeCpp_getRangeFillPaints(start, end); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setRangeFillPaints"] = function(start, end, value) { | |
var js_value = _cppStringFromJSString(value); | |
var cReturnValue = _PluginSceneNodeCpp_setRangeFillPaints(start, end, js_value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRangeInheritedStyle"] = function(start, end, inheritStyleKeyField) { | |
var js_inheritStyleKeyField = _cppStringFromJSString(inheritStyleKeyField); | |
var cReturnValue = _PluginSceneNodeCpp_getRangeInheritedStyle(start, end, js_inheritStyleKeyField); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setRangeInheritedStyle"] = function(start, end, inheritStyleKeyField, key, version) { | |
var js_inheritStyleKeyField = _cppStringFromJSString(inheritStyleKeyField); | |
var js_key = _cppStringFromJSString(key); | |
var js_version = _cppStringFromJSString(version); | |
var cReturnValue = _PluginSceneNodeCpp_setRangeInheritedStyle(start, end, js_inheritStyleKeyField, js_key, js_version); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRangeLineType"] = function(start, end) { | |
var cReturnValue = _PluginSceneNodeCpp_getRangeLineType(start, end); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["setRangeLineType"] = function(start, end, newType) { | |
var cReturnValue = _PluginSceneNodeCpp_setRangeLineType(start, end, newType); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRangeIndentation"] = function(start, end) { | |
var cReturnValue = _PluginSceneNodeCpp_getRangeIndentation(start, end); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setRangeIndentation"] = function(start, end, newIndentation) { | |
var cReturnValue = _PluginSceneNodeCpp_setRangeIndentation(start, end, newIndentation); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getRangeHyperlink"] = function(start, end) { | |
var cReturnValue = _PluginSceneNodeCpp_getRangeHyperlink(start, end); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setRangeHyperlink"] = function(start, end, url, guid) { | |
var js_url = _cppStringFromJSString(url); | |
var js_guid = _cppStringFromJSString(guid); | |
var cReturnValue = _PluginSceneNodeCpp_setRangeHyperlink(start, end, js_url, js_guid); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["spliceCharacters"] = function(start, end, characters, useStyle) { | |
var js_characters = _cppStringFromJSString(characters); | |
var js_useStyle = _cppStringFromJSString(useStyle); | |
var cReturnValue = _PluginSceneNodeCpp_spliceCharacters(start, end, js_characters, js_useStyle); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getSharedSymbolVersion"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getSharedSymbolVersion(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getSharedStateGroupVersion"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getSharedStateGroupVersion(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getStyleVersion"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getStyleVersion(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getImmutableFrameText"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getImmutableFrameText(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getImmutableFrameLabel"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getImmutableFrameLabel(); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getConnectorLineType"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getConnectorLineType(); | |
return cReturnValue | |
}; | |
PluginSceneNodeCpp["setConnectorLineType"] = function(value) { | |
var cReturnValue = _PluginSceneNodeCpp_setConnectorLineType(value); | |
return _tsapi_returnValue | |
}; | |
PluginSceneNodeCpp["getWidgetEvents"] = function() { | |
var cReturnValue = _PluginSceneNodeCpp_getWidgetEvents(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
PluginSceneNodeCpp["setWidgetEvents"] = function(events) { | |
var js_events = _cppStringFromJSString(JSON.stringify(events || null)); | |
var cReturnValue = _PluginSceneNodeCpp_setWidgetEvents(js_events); | |
return _tsapi_returnValue | |
}; | |
var FullscreenPerfMetrics = {}; | |
FullscreenPerfMetrics["getRecentInteractions"] = function() { | |
var cReturnValue = _FullscreenPerfMetrics_getRecentInteractions(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
FullscreenPerfMetrics["getSlowInteractions"] = function() { | |
var cReturnValue = _FullscreenPerfMetrics_getSlowInteractions(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
FullscreenPerfMetrics["clearSlowInteractions"] = function() { | |
_FullscreenPerfMetrics_clearSlowInteractions() | |
}; | |
FullscreenPerfMetrics["getNodeTypeHistogram"] = function() { | |
var cReturnValue = _FullscreenPerfMetrics_getNodeTypeHistogram(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
FullscreenPerfMetrics["clearNodeTypeHistogram"] = function() { | |
_FullscreenPerfMetrics_clearNodeTypeHistogram() | |
}; | |
FullscreenPerfMetrics["getDeviceInfo"] = function() { | |
var cReturnValue = _FullscreenPerfMetrics_getDeviceInfo(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
FullscreenPerfMetrics["getFileNodeCount"] = function() { | |
var cReturnValue = _FullscreenPerfMetrics_getFileNodeCount(); | |
return cReturnValue | |
}; | |
FullscreenPerfMetrics["getMpMsgNodeChangesCount"] = function() { | |
var cReturnValue = _FullscreenPerfMetrics_getMpMsgNodeChangesCount(); | |
return cReturnValue | |
}; | |
FullscreenPerfMetrics["getMpMsgUserChangesCount"] = function() { | |
var cReturnValue = _FullscreenPerfMetrics_getMpMsgUserChangesCount(); | |
return cReturnValue | |
}; | |
FullscreenPerfMetrics["getJoinedTime"] = function() { | |
var cReturnValue = _FullscreenPerfMetrics_getJoinedTime(); | |
return cReturnValue | |
}; | |
FullscreenPerfMetrics["getSelectedNodeCount"] = function() { | |
var cReturnValue = _FullscreenPerfMetrics_getSelectedNodeCount(); | |
return cReturnValue | |
}; | |
var SelectionPaintHelpers = {}; | |
SelectionPaintHelpers["updatePaint"] = function(originalPaint, updatedPaint, shouldCommit) { | |
var js_originalPaint = _cppStringFromJSString(originalPaint); | |
var js_updatedPaint = _cppStringFromJSString(updatedPaint); | |
_SelectionPaintHelpers_updatePaint(js_originalPaint, js_updatedPaint, shouldCommit) | |
}; | |
SelectionPaintHelpers["updateStyle"] = function(originalStyleKey, updatedStyleKey, updatedStyleVersion) { | |
var js_originalStyleKey = _cppStringFromJSString(originalStyleKey); | |
var js_updatedStyleKey = _cppStringFromJSString(updatedStyleKey); | |
var js_updatedStyleVersion = _cppStringFromJSString(updatedStyleVersion); | |
_SelectionPaintHelpers_updateStyle(js_originalStyleKey, js_updatedStyleKey, js_updatedStyleVersion) | |
}; | |
SelectionPaintHelpers["detachStyle"] = function(originalStyleKey) { | |
var js_originalStyleKey = _cppStringFromJSString(originalStyleKey); | |
_SelectionPaintHelpers_detachStyle(js_originalStyleKey) | |
}; | |
SelectionPaintHelpers["paintDataNodesInPaint"] = function(paint) { | |
var js_paint = _cppStringFromJSString(paint); | |
var cReturnValue = _SelectionPaintHelpers_paintDataNodesInPaint(js_paint); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
SelectionPaintHelpers["createStylesFromPaintDatas"] = function(paint, styleNameString) { | |
var js_paint = _cppStringFromJSString(paint); | |
var js_styleNameString = _cppStringFromJSString(JSON.stringify(styleNameString || null)); | |
var cReturnValue = _SelectionPaintHelpers_createStylesFromPaintDatas(js_paint, js_styleNameString); | |
return !!cReturnValue | |
}; | |
SelectionPaintHelpers["applyStyleToPaintDatas"] = function(paint, styleKey, styleVersion) { | |
var js_paint = _cppStringFromJSString(paint); | |
var js_styleKey = _cppStringFromJSString(styleKey); | |
var js_styleVersion = _cppStringFromJSString(styleVersion); | |
var cReturnValue = _SelectionPaintHelpers_applyStyleToPaintDatas(js_paint, js_styleKey, js_styleVersion); | |
return !!cReturnValue | |
}; | |
SelectionPaintHelpers["selectOnlySamePaint"] = function(paint) { | |
var js_paint = _cppStringFromJSString(paint); | |
_SelectionPaintHelpers_selectOnlySamePaint(js_paint) | |
}; | |
SelectionPaintHelpers["selectOnlySameStyle"] = function(styleKey) { | |
var js_styleKey = _cppStringFromJSString(styleKey); | |
_SelectionPaintHelpers_selectOnlySameStyle(js_styleKey) | |
}; | |
SelectionPaintHelpers["selectConflictingWithPaint"] = function(paint) { | |
var js_paint = _cppStringFromJSString(paint); | |
_SelectionPaintHelpers_selectConflictingWithPaint(js_paint) | |
}; | |
SelectionPaintHelpers["setIsPaintPickerOpen"] = function(isPaintPickerOpen) { | |
_SelectionPaintHelpers_setIsPaintPickerOpen(isPaintPickerOpen) | |
}; | |
SelectionPaintHelpers["setIsPaintFocused"] = function(isPaintFocused) { | |
_SelectionPaintHelpers_setIsPaintFocused(isPaintFocused) | |
}; | |
SelectionPaintHelpers["setIsPaintOpacityScrubbing"] = function(isPaintOpacityScrubbing) { | |
_SelectionPaintHelpers_setIsPaintOpacityScrubbing(isPaintOpacityScrubbing) | |
}; | |
SelectionPaintHelpers["setIsStylePickerOpen"] = function(isStylePickerOpen) { | |
_SelectionPaintHelpers_setIsStylePickerOpen(isStylePickerOpen) | |
}; | |
SelectionPaintHelpers["ignoreLimitWhenCollectingPaints"] = function() { | |
_SelectionPaintHelpers_ignoreLimitWhenCollectingPaints() | |
}; | |
SelectionPaintHelpers["setForcedLimit"] = function(limit) { | |
_SelectionPaintHelpers_setForcedLimit(limit) | |
}; | |
SelectionPaintHelpers["removeForcedLimit"] = function() { | |
_SelectionPaintHelpers_removeForcedLimit() | |
}; | |
var Prototype = {}; | |
Prototype["createScene"] = function() { | |
_Prototype_createScene() | |
}; | |
Prototype["reset"] = function() { | |
_Prototype_reset() | |
}; | |
Prototype["applyNodeChangesAndGetDerivedData"] = function(message) { | |
var js_message = _IndirectBuffer_wrapUint8Array(message); | |
var cReturnValue = _Prototype_applyNodeChangesAndGetDerivedData(js_message); | |
return _tsapi_returnValue | |
}; | |
Prototype["handleSceneDidCompleteInitialLoad"] = function() { | |
_Prototype_handleSceneDidCompleteInitialLoad() | |
}; | |
Prototype["getNodeChangesForSwap"] = function(primaryId, overridePath, destinationId) { | |
var js_primaryId = _cppStringFromJSString(primaryId); | |
var js_overridePath = _cppStringFromJSString(JSON.stringify(overridePath || null)); | |
var js_destinationId = _cppStringFromJSString(destinationId); | |
var cReturnValue = _Prototype_getNodeChangesForSwap(js_primaryId, js_overridePath, js_destinationId); | |
return _tsapi_returnValue | |
}; | |
Prototype["shouldDisallowSwap"] = function(primaryId, overridePath, destinationId) { | |
var js_primaryId = _cppStringFromJSString(primaryId); | |
var js_overridePath = _cppStringFromJSString(JSON.stringify(overridePath || null)); | |
var js_destinationId = _cppStringFromJSString(destinationId); | |
var cReturnValue = _Prototype_shouldDisallowSwap(js_primaryId, js_overridePath, js_destinationId); | |
return cReturnValue | |
}; | |
Prototype["getMissingOrLocalFonts"] = function() { | |
var cReturnValue = _Prototype_getMissingOrLocalFonts(); | |
return JSON.parse(_tsapi_returnValue) | |
}; | |
Prototype["resetLocalChangesAndGetNodeChanges"] = function() { | |
var cReturnValue = _Prototype_resetLocalChangesAndGetNodeChanges(); | |
return _tsapi_returnValue | |
}; | |
Prototype["updateFontList"] = function(data) { | |
var js_data = _cppStringFromJSString(JSON.stringify(data || null)); | |
_Prototype_updateFontList(js_data) | |
}; | |
_CommonAppObj = window["CommonApp"]; | |
_FigmaAppObj = window["FigmaApp"]; | |
_WebAsyncObj = window["WebAsync"]; | |
_WidgetBindingsObj = window["WidgetBindings"]; | |
_JsBindingsTestHelpersObj = window["JsBindingsTestHelpers"]; | |
_EmojiWheelBindingsObj = window["EmojiWheelBindings"]; | |
_WebUserSyncingObj = window["WebUserSyncing"]; | |
_WebMultiplayerObj = window["WebMultiplayer"]; | |
_WebReportingObj = window["WebReporting"]; | |
_WebSelectionObj = window["WebSelection"]; | |
_PluginCallbacksObj = window["PluginCallbacks"]; | |
_CommentsObj = window["Comments"]; | |
_PrototypeAppObj = window["PrototypeApp"]; | |
window["tsapi_init"]({ | |
"WebAsyncCallback": WebAsyncCallback, | |
"CppBindingsTestHelpers": CppBindingsTestHelpers, | |
"PerfInfo": PerfInfo, | |
"Fullscreen": Fullscreen, | |
"Multiplayer": Multiplayer, | |
"AutosaveHelpers": AutosaveHelpers, | |
"DiffImpl": DiffImpl, | |
"ColorHelpers": ColorHelpers, | |
"CSSExportHelpers": CSSExportHelpers, | |
"FontHelpers": FontHelpers, | |
"InteractionTestHelpers": InteractionTestHelpers, | |
"UserPreferencesTestHelpers": UserPreferencesTestHelpers, | |
"SceneGraphHelpers": SceneGraphHelpers, | |
"PrototypingHelpers": PrototypingHelpers, | |
"CustomFocusHelpers": CustomFocusHelpers, | |
"DebuggingHelpers": DebuggingHelpers, | |
"BranchingHelpers": BranchingHelpers, | |
"PluginHelpers": PluginHelpers, | |
"SceneNodeCpp": SceneNodeCpp, | |
"PluginSceneNodeCpp": PluginSceneNodeCpp, | |
"FullscreenPerfMetrics": FullscreenPerfMetrics, | |
"SelectionPaintHelpers": SelectionPaintHelpers, | |
"Prototype": Prototype | |
}) | |
} | |
function _Support_initEmscripten() { | |
if (_Support_didCallInit) return; | |
_Support_didCallInit = true; | |
_Font_init(); | |
_View_init(); | |
_TypeScriptAPI_initialize() | |
} | |
function _Support_initializeTimestampCode() { | |
var perf = self.performance; | |
_currentTimestamp = perf.now ? function() { | |
return perf.now() | |
} : Date.now | |
} | |
function _reportError(message, functionName, filePath) { | |
var fileParts = filePath.split("/"); | |
var fileName = fileParts[fileParts.length - 1]; | |
var error = new Error(message + " in " + functionName + " (" + fileName + ")"); | |
setTimeout(function() { | |
throw error | |
}, 0) | |
} | |
function _Support_reportAssertionFailure(conditionString, functionName, filePath) { | |
_reportError("Assertion Failure (" + _jsStringFromCPPString(conditionString) + ")", _jsStringFromCPPString(functionName), _jsStringFromCPPString(filePath)) | |
} | |
function _Support_reportError(message, functionName, filePath) { | |
_reportError('"' + _jsStringFromCPPString(message) + '"', _jsStringFromCPPString(functionName), _jsStringFromCPPString(filePath)) | |
} | |
function _SysInfo_logicalCoreCount() { | |
var logicalCoreCount = 2; | |
if (self.navigator.hardwareConcurrency != undefined) { | |
logicalCoreCount = self.navigator.hardwareConcurrency | |
} | |
return logicalCoreCount | |
} | |
function _TimerQuery_begin(device, query) { | |
device = _handles[device]; | |
var ext = device.timerQuery; | |
var timer = _handles[query]; | |
ext["beginQueryEXT"](ext["TIME_ELAPSED_EXT"], timer) | |
} | |
function _TimerQuery_delete(device, query) { | |
device = _handles[device]; | |
var ext = device.timerQuery; | |
var timer = _handles[query]; | |
ext["deleteQueryEXT"](timer); | |
delete _handles[query] | |
} | |
function _TimerQuery_end(device) { | |
device = _handles[device]; | |
var ext = device.timerQuery; | |
ext["endQueryEXT"](ext["TIME_ELAPSED_EXT"]) | |
} | |
function _TimerQuery_get(device, query) { | |
device = _handles[device]; | |
var ext = device.timerQuery; | |
var timer = _handles[query]; | |
return ext["getQueryObjectEXT"](timer, ext["QUERY_RESULT_EXT"]) | |
} | |
function _TimerQuery_isTimeElapsedSupported(device) { | |
device = _handles[device]; | |
var ext = device.timerQuery; | |
if (device && ext != null) { | |
var timestampBits = ext["getQueryEXT"](ext["TIME_ELAPSED_EXT"], ext["QUERY_COUNTER_BITS_EXT"]); | |
if (timestampBits > 0) return true | |
} | |
return false | |
} | |
function _TimerQuery_isTimestampSupported(device) { | |
device = _handles[device]; | |
var ext = device.timerQuery; | |
if (ext != null) { | |
var timestampBits = ext["getQueryEXT"](ext["TIMESTAMP_EXT"], ext["QUERY_COUNTER_BITS_EXT"]); | |
if (timestampBits > 0) return true | |
} | |
return false | |
} | |
function _TimerQuery_new(device, query) { | |
device = _handles[device]; | |
var ext = device.timerQuery; | |
var timer = ext["createQueryEXT"](); | |
if (timer) { | |
_handles[query] = timer | |
} | |
return timer != null | |
} | |
function _TimerQuery_queryCounter(device, query) { | |
device = _handles[device]; | |
var ext = device.timerQuery; | |
var timer = _handles[query]; | |
ext["queryCounterEXT"](timer, ext["TIME_ELAPSED_EXT"]) | |
} | |
function _TimerQuery_test(device, query) { | |
device = _handles[device]; | |
var ext = device.timerQuery; | |
var timer = _handles[query]; | |
return ext["getQueryObjectEXT"](timer, ext["QUERY_RESULT_AVAILABLE_EXT"]) | |
} | |
function _getLocalStorageOrNull() { | |
var localStorageOrNull = null; | |
try { | |
localStorageOrNull = self.localStorage | |
} catch (e) {} | |
return localStorageOrNull | |
} | |
function _UserPreferences_clear(field) { | |
const localStorageOrNull = _getLocalStorageOrNull(); | |
return localStorageOrNull ? localStorageOrNull.removeItem(_jsStringFromCPPString(field)) : undefined | |
} | |
function _UserPreferences_getString(field) { | |
const localStorageOrNull = _getLocalStorageOrNull(); | |
const jsString = localStorageOrNull ? localStorageOrNull[_jsStringFromCPPString(field)] : undefined; | |
return _cppStringFromJSString(jsString) | |
} | |
function _UserPreferences_has(field) { | |
const localStorageOrNull = _getLocalStorageOrNull(); | |
return localStorageOrNull ? _jsStringFromCPPString(field) in localStorageOrNull : false | |
} | |
function _UserPreferences_setString(field, value) { | |
field = _jsStringFromCPPString(field); | |
value = _jsStringFromCPPString(value); | |
const localStorageOrNull = _getLocalStorageOrNull(); | |
try { | |
localStorageOrNull[field] = value | |
} catch (e) {} | |
} | |
function _freeStyle(cssText) { | |
var style = _cssTextToCachedStyle[cssText]; | |
if (style && --style._refCount === 0) { | |
document.head.removeChild(style._element); | |
delete _cssTextToCachedStyle[cssText] | |
} | |
} | |
function _View_delete(handle) { | |
var view = _handles[handle]; | |
if (view._element.parentNode) { | |
view._element.parentNode.removeChild(view._element) | |
} | |
if (view._selectedBackgroundColor) { | |
_freeStyle(view._selectedBackgroundColor._cssText) | |
} | |
delete _handles[handle] | |
} | |
function _View_setBackgroundColor(handle, color) { | |
var view = _handles[handle]; | |
view._element.style.backgroundColor = _cssColorFromCPPColor(color) | |
} | |
function _View_updateBoxShadow(view) { | |
var inner = view._innerShadow; | |
var shadows = []; | |
if (inner) shadows.push(inner); | |
view._element.style["boxShadow"] = shadows.join(",") | |
} | |
function _View_setBorder(handle, color, thickness) { | |
var view = _handles[handle]; | |
view._innerShadow = "inset 0 0 0 " + thickness + "px " + _cssColorFromCPPColor(color); | |
_View_updateBoxShadow(view) | |
} | |
function _View_setCursor(handle, className, globalCursor) { | |
var view = _handles[handle]; | |
className = _jsStringFromCPPString(className); | |
if (view._cursor !== className) { | |
if (view._cursor) { | |
window.document.body.classList.remove(view._cursor); | |
view._element.classList.remove(view._cursor) | |
} | |
view._cursor = className; | |
if (view._cursor) { | |
if (globalCursor) { | |
window.document.body.classList.add(view._cursor) | |
} else { | |
view._element.classList.add(view._cursor) | |
} | |
} | |
} | |
} | |
function _View_contentElement(handle) { | |
var view = _handles[handle]; | |
return view._element | |
} | |
function _View_setFont(handle, font) { | |
_View_contentElement(handle).style.font = _handles[font] | |
} | |
function _View_setIsEnabled(handle, isEnabled) { | |
_View_contentElement(handle).disabled = !isEnabled; | |
if (isEnabled) { | |
_View_contentElement(handle).classList.remove("disabled") | |
} else { | |
_View_contentElement(handle).classList.add("disabled") | |
} | |
} | |
function _View_setIsShown(handle, isShown) { | |
var view = _handles[handle]; | |
var isLabel = view._element.classList.contains("label-view"); | |
view._element.style.display = isShown ? isLabel ? _PlatformInfo_isSafari() ? "-webkit-flex" : "flex" : "block" : "none" | |
} | |
var _ViewAlign = { | |
MIN_MIN: 0, | |
MIN_MAX: 1, | |
MAX_MAX: 2 | |
}; | |
function _View_setLayout(handle, wantsLayer, alignX, minX, maxX, alignY, minY, maxY) { | |
var view = _handles[handle]; | |
var style = view._element.style; | |
var useLayer = _View_supportsTransforms && wantsLayer && alignX === _ViewAlign.MIN_MIN && alignY === _ViewAlign.MIN_MIN; | |
if (useLayer) { | |
if (!view._useLayer) { | |
style.top = "0"; | |
style.left = "0"; | |
style.right = "auto"; | |
style.bottom = "auto" | |
} | |
style.transform = "translate3d(" + minX + "px," + minY + "px, 0px)" | |
} else { | |
if (view._useLayer) { | |
style.transform = "none" | |
} | |
style.left = alignX === _ViewAlign.MAX_MAX ? "auto" : minX + "px"; | |
style.top = alignY === _ViewAlign.MAX_MAX ? "auto" : minY + "px"; | |
style.right = alignX === _ViewAlign.MIN_MIN ? "auto" : -maxX + "px"; | |
style.bottom = alignY === _ViewAlign.MIN_MIN ? "auto" : -maxY + "px" | |
} | |
style.width = alignX === _ViewAlign.MIN_MAX ? "auto" : maxX - minX + "px"; | |
style.height = alignY === _ViewAlign.MIN_MAX ? "auto" : maxY - minY + "px"; | |
view._knownWidth = alignX === _ViewAlign.MIN_MAX ? 0 : maxX - minX; | |
view._knownHeight = alignY === _ViewAlign.MIN_MAX ? 0 : maxY - minY; | |
view._useLayer = useLayer | |
} | |
function _View_setParent(handle, parent) { | |
var view = _handles[handle]; | |
if (parent !== 0) { | |
parent = _handles[parent]; | |
parent._element.appendChild(view._element); | |
view._parent = parent | |
} else if (view._element.parentNode) { | |
view._element.parentNode.removeChild(view._element); | |
view._parent = null | |
} | |
} | |
function _WebAsync_cancelCallback(cancelId) { | |
_WebAsyncObj["cancelCallback"](cancelId) | |
} | |
function _WebAsync_clearTimeout(timeoutId) { | |
_WebAsyncObj["clearTimeout"](timeoutId) | |
} | |
function _WebAsync_requestAnimationFrame() { | |
_WebAsyncObj["requestAnimationFrame"]() | |
} | |
function _WebAsync_requestIdleCallbackHelper(ms, cancelId, internal_promiseID) { | |
_WebAsyncObj["requestIdleCallbackHelper"](ms, cancelId).then(function(result) { | |
_WebAsync_requestIdleCallbackHelper_promiseCallback(internal_promiseID, result, null) | |
}, function(error) { | |
_WebAsync_requestIdleCallbackHelper_promiseCallback(internal_promiseID, null, _cppStringFromJSString(error + "")) | |
}) | |
} | |
function _WebAsync_setTimeout(callbackId, ms) { | |
var jsReturnValue = _WebAsyncObj["setTimeout"](callbackId, ms); | |
return jsReturnValue | |
} | |
function _WebAsync_setTimeoutHelper(ms, cancelId, internal_promiseID) { | |
_WebAsyncObj["setTimeoutHelper"](ms, cancelId).then(function(result) { | |
_WebAsync_setTimeoutHelper_promiseCallback(internal_promiseID, result, null) | |
}, function(error) { | |
_WebAsync_setTimeoutHelper_promiseCallback(internal_promiseID, null, _cppStringFromJSString(error + "")) | |
}) | |
} | |
function _WebContext_evalAsJSON(text) { | |
try { | |
return _cppStringFromJSString(JSON.stringify(eval(_jsStringFromCPPString(text)))) | |
} catch (e) { | |
console.log(e && e.stack || e); | |
return null | |
} | |
} | |
function _WebContext_new(handle) { | |
if (_FigmaAppObj && _FigmaAppObj["registerWebContext"]) { | |
var messageCallbackCache = {}; | |
var handleMessageFromWeb = function(messageName, args, buffer) { | |
var cppMessageName = _cppStringFromJSString(messageName); | |
var cppArgs = _cppStringFromJSString(JSON.stringify(args)); | |
var cppBuffer = buffer ? _IndirectBuffer_wrapUint8Array(buffer) : null; | |
var bufferOut = _IndirectBuffer_newForJS(); | |
var argsString = (messageCallbackCache[messageName] || (messageCallbackCache[messageName] = function() { | |
var name = messageName.replace(/[^A-Za-z]/g, "_"); | |
var callback = new Function("fn", "function " + name + "(a,b,c,d,e){" + "return fn(a,b,c,d,e)" + "}" + "return " + name); | |
return callback(_WebContext_handleMessageFromWeb) | |
}()))(handle, cppMessageName, cppArgs, cppBuffer, bufferOut); | |
var result = { | |
"args": JSON.parse(_jsStringFromCPPString(argsString)), | |
"buffer": _jsValueSlots[_IndirectBuffer_handleForJS(bufferOut)] | |
}; | |
Module["_free"](argsString); | |
_IndirectBuffer_deleteForJS(bufferOut); | |
return result | |
}; | |
_FigmaAppObj["registerWebContext"]({ | |
"handleMessageFromWeb": handleMessageFromWeb | |
}) | |
} | |
} | |
function _WebContext_sendMessageToWeb(event, args, indirectBufferHandle) { | |
try { | |
if (_FigmaAppObj && _FigmaAppObj["fromFullscreen"]) { | |
event = _jsStringFromCPPString(event); | |
args = JSON.parse(_jsStringFromCPPString(args)); | |
if (indirectBufferHandle >= 0) { | |
args = args || {}; | |
args["buffer"] = _jsValueSlots[indirectBufferHandle] | |
} | |
_FigmaAppObj["fromFullscreen"]["trigger"](event, args) | |
} | |
} catch (e) { | |
console.error(e && e.stack || e); | |
try { | |
if (window["onerror"]) { | |
window["onerror"](e && e.message || null, null, null, null, e) | |
} | |
} catch (e2) { | |
console.error(e2 && e2.stack || e2) | |
} | |
} | |
} | |
function _WebGLTest_logi(text) { | |
console.log("[StencilTest] " + text) | |
} | |
function _WebGLTest_logd(text) {} | |
function _WebGLTest_loge(text) {} | |
function _WebGLTest_createShader(gl, type, source, showErrorLogs) { | |
var shader = gl.createShader(type); | |
if (shader) { | |
_WebGLTest_logd("compiling " + source); | |
gl.shaderSource(shader, source); | |
gl.compileShader(shader); | |
var compileStatus = gl.getShaderParameter(shader, gl.COMPILE_STATUS); | |
if (!compileStatus) { | |
if (showErrorLogs) { | |
var errorText = gl.getShaderInfoLog(shader); | |
_WebGLTest_loge("compiler errors " + errorText) | |
} | |
gl.deleteShader(shader); | |
shader = null | |
} | |
} | |
return shader | |
} | |
function _WebGLTest_createProgram(gl, vsSource, psSource) { | |
var showErrorLogs = true; | |
var vs = _WebGLTest_createShader(gl, gl.VERTEX_SHADER, vsSource, showErrorLogs); | |
var ps = _WebGLTest_createShader(gl, gl.FRAGMENT_SHADER, psSource, showErrorLogs); | |
var program = gl.createProgram(); | |
if (program && vs && ps) { | |
_WebGLTest_logd("linking program"); | |
gl.attachShader(program, vs); | |
gl.attachShader(program, ps); | |
gl.linkProgram(program); | |
var linkStatus = gl.getProgramParameter(program, gl.LINK_STATUS); | |
if (!linkStatus) { | |
if (showErrorLogs) { | |
var errorText = gl.getProgramInfoLog(program); | |
_WebGLTest_loge("linker errors " + errorText) | |
} | |
gl.deleteProgram(program); | |
program = null | |
} | |
} | |
if (gl.getError() != gl.NONE || !program || !vs || !ps) { | |
_WebGLTest_loge("program creation failed"); | |
gl.deleteShader(vs); | |
gl.deleteShader(ps); | |
gl.deleteProgram(program); | |
program = null | |
} | |
return program | |
} | |
function _WebGLTest_createFramebuffer(gl, width, height) { | |
var target = gl.createTexture(); | |
if (target) { | |
gl.activeTexture(gl.TEXTURE0 + 0); | |
gl.bindTexture(gl.TEXTURE_2D, target); | |
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, width, height, 0, gl.RGBA, gl.UNSIGNED_BYTE, null); | |
gl.bindTexture(gl.TEXTURE_2D, null) | |
} | |
var depth = gl.createRenderbuffer(); | |
if (target && depth) { | |
gl.bindRenderbuffer(gl.RENDERBUFFER, depth); | |
gl.renderbufferStorage(gl.RENDERBUFFER, gl.DEPTH_STENCIL, width, height); | |
gl.bindRenderbuffer(gl.RENDERBUFFER, null) | |
} | |
var fbo = gl.createFramebuffer(); | |
if (fbo && target && depth) { | |
gl.bindFramebuffer(gl.FRAMEBUFFER, fbo); | |
gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, target, 0); | |
gl.framebufferRenderbuffer(gl.FRAMEBUFFER, gl.DEPTH_STENCIL_ATTACHMENT, gl.RENDERBUFFER, depth); | |
var fboStatus = gl.checkFramebufferStatus(gl.FRAMEBUFFER); | |
gl.bindFramebuffer(gl.FRAMEBUFFER, null); | |
if (fboStatus != gl.FRAMEBUFFER_COMPLETE) { | |
gl.deleteFramebuffer(fbo); | |
fbo = null | |
} | |
} | |
if (gl.getError() != gl.NONE || !fbo || !target || !depth) { | |
_WebGLTest_loge("framebuffer creation failed"); | |
gl.deleteTexture(target); | |
gl.deleteRenderbuffer(depth); | |
gl.deleteFramebuffer(fbo); | |
fbo = null | |
} | |
return fbo | |
} | |
function _WebGLTest_setStencil(gl, count) { | |
switch (count) { | |
case 0: | |
gl.disable(gl.STENCIL_TEST); | |
break; | |
case 1: | |
gl.enable(gl.STENCIL_TEST); | |
gl.stencilFunc(gl.ALWAYS, 0, 255); | |
gl.stencilOpSeparate(gl.FRONT, gl.INCR_WRAP, gl.INCR_WRAP, gl.INCR_WRAP); | |
gl.stencilOpSeparate(gl.BACK, gl.DECR_WRAP, gl.DECR_WRAP, gl.DECR_WRAP); | |
break; | |
case 2: | |
gl.enable(gl.STENCIL_TEST); | |
gl.stencilFunc(gl.NOTEQUAL, 0, 255); | |
gl.stencilOp(gl.KEEP, gl.KEEP, gl.ZERO); | |
break | |
} | |
} | |
function _WebGLTest_testAngleDX9StencilBug(gl) { | |
var status = 0; | |
gl.getError(); | |
var program = _WebGLTest_createProgram(gl, "attribute vec2 pos; void main() { gl_Position = vec4(pos.xy * vec2(2.0, -2.0) + vec2(-1.0, 1.0), 0.0, 1.0); }", "precision lowp float; void main() { gl_FragColor = vec4(1.0); }"); | |
var buffer = gl.createBuffer(); | |
if (buffer) { | |
var twoQuads = new Float32Array([0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1]); | |
gl.bindBuffer(gl.ARRAY_BUFFER, buffer); | |
gl.bufferData(gl.ARRAY_BUFFER, twoQuads, gl.STATIC_DRAW); | |
gl.bindBuffer(gl.ARRAY_BUFFER, null) | |
} | |
gl.activeTexture(gl.TEXTURE0 + 0); | |
var originalTexture = gl.getParameter(gl.TEXTURE_BINDING_2D); | |
var oldViewport = gl.getParameter(gl.VIEWPORT); | |
var width = 4; | |
var height = 4; | |
var fbo = _WebGLTest_createFramebuffer(gl, width, height); | |
if (buffer && program && fbo) { | |
gl.bindBuffer(gl.ARRAY_BUFFER, buffer); | |
gl.bindFramebuffer(gl.FRAMEBUFFER, fbo); | |
gl.useProgram(program); | |
gl.enableVertexAttribArray(0); | |
gl.vertexAttribPointer(0, 2, gl.FLOAT, false, 4 * 2, null); | |
_WebGLTest_setStencil(gl, 0); | |
gl.viewport(0, 0, width, height); | |
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT | gl.STENCIL_BUFFER_BIT); | |
gl.colorMask(false, false, false, false); | |
_WebGLTest_setStencil(gl, 1); | |
gl.drawArrays(gl.TRIANGLES, 0, 12); | |
gl.colorMask(true, true, true, true); | |
_WebGLTest_setStencil(gl, 2); | |
gl.drawArrays(gl.TRIANGLES, 0, 6); | |
var pixels = new Uint8Array(4); | |
var comparisonValue = 0; | |
gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, pixels); | |
if (gl.getError() == gl.NONE) { | |
if (pixels[0] != comparisonValue) { | |
_WebGLTest_logi("Failed. Test value is " + pixels[0] + " should be " + comparisonValue); | |
status = 1 | |
} else { | |
_WebGLTest_logd("Success. Test value is " + pixels[0] + " should be " + comparisonValue) | |
} | |
} | |
_WebGLTest_setStencil(gl, 0); | |
gl.disableVertexAttribArray(0) | |
} | |
gl.bindBuffer(gl.ARRAY_BUFFER, null); | |
gl.bindFramebuffer(gl.FRAMEBUFFER, null); | |
if (oldViewport) { | |
gl.viewport(oldViewport[0], oldViewport[1], oldViewport[2], oldViewport[3]) | |
} | |
gl.useProgram(null); | |
gl.deleteBuffer(buffer); | |
gl.deleteProgram(program); | |
gl.deleteFramebuffer(fbo); | |
gl.activeTexture(gl.TEXTURE0 + 0); | |
gl.bindTexture(gl.TEXTURE_2D, originalTexture); | |
return status | |
} | |
function _WebGLTest_testStencil(handle, usingAngleDX9) { | |
var success = true; | |
if (usingAngleDX9) { | |
try { | |
var device = _handles[handle]; | |
var gl = device.glctx; | |
if (!gl || gl.isContextLost()) { | |
_WebGLTest_logi("WebGL context lost. Can't test the device for stencil bugs."); | |
return true | |
} | |
var status = _WebGLTest_testAngleDX9StencilBug(gl); | |
if (status == 1) { | |
var errorText = ""; | |
if (device.vendorName) { | |
errorText += 'Failed on "' + device.vendorName + '" "' + device.rendererName + '".\n' | |
} | |
_WebGLTest_logi(errorText + "WebGL context has stencil bugs that prevent Figma from running properly."); | |
success = false | |
} | |
} catch (x) { | |
_WebGLTest_loge("Exception thrown " + x) | |
} | |
} | |
return success | |
} | |
function _WebGLTest_testDevice(handle, usingAngleDX9) { | |
var ImageIO = _FigmaAppObj["ImageIO"]; | |
var device = _handles[handle]; | |
var gl = device.glctx; | |
ImageIO.init(gl); | |
var success = _WebGLTest_testStencil(handle, usingAngleDX9); | |
return success | |
} | |
function _WebMultiplayer_buildMultiplayerUrl(fileKey, snapshotHash, reconnectKey, reconnectSequenceNumber, testMode, nodeIds, initialFileVersion) { | |
var js_fileKey = _jsStringFromCPPString(fileKey); | |
var js_snapshotHash = _jsStringFromCPPString(snapshotHash); | |
var js_reconnectKey = _jsStringFromCPPString(reconnectKey); | |
var js_testMode = _jsStringFromCPPString(testMode); | |
var js_nodeIds = _jsStringFromCPPString(nodeIds); | |
var jsReturnValue = _WebMultiplayerObj["buildMultiplayerUrl"](js_fileKey, js_snapshotHash, js_reconnectKey, reconnectSequenceNumber, js_testMode, js_nodeIds, initialFileVersion); | |
return _cppStringFromJSString(jsReturnValue) | |
} | |
function _WebMultiplayer_checkpointResponse(uuid, success) { | |
var js_uuid = _jsStringFromCPPString(uuid); | |
var js_success = !!success; | |
_WebMultiplayerObj["checkpointResponse"](js_uuid, js_success) | |
} | |
function _WebMultiplayer_clearNodeChanges(nodeID) { | |
var js_nodeID = _jsStringFromCPPString(nodeID); | |
_WebMultiplayerObj["clearNodeChanges"](js_nodeID) | |
} | |
function _WebMultiplayer_commitAutosave(commitPolicy, fileVersion, numberOfUncleanRegisters, internal_promiseID) { | |
_WebMultiplayerObj["commitAutosave"](commitPolicy, fileVersion, numberOfUncleanRegisters).then(function(result) { | |
_WebMultiplayer_commitAutosave_promiseCallback(internal_promiseID, result, null) | |
}, function(error) { | |
_WebMultiplayer_commitAutosave_promiseCallback(internal_promiseID, null, _cppStringFromJSString(error + "")) | |
}) | |
} | |
function _WebMultiplayer_handleMultiplayerSignal(signalName, nodeId) { | |
var js_signalName = _jsStringFromCPPString(signalName); | |
var js_nodeId = _jsStringFromCPPString(nodeId); | |
_WebMultiplayerObj["handleMultiplayerSignal"](js_signalName, js_nodeId) | |
} | |
function _WebMultiplayer_isWindowActive() { | |
var jsReturnValue = _WebMultiplayerObj["isWindowActive"](); | |
return jsReturnValue | |
} | |
function _WebMultiplayer_notifyCursorHidden() { | |
_WebMultiplayerObj["notifyCursorHidden"]() | |
} | |
function _WebMultiplayer_notifyCursorUnhiddenFromConnectionCount() { | |
_WebMultiplayerObj["notifyCursorUnhiddenFromConnectionCount"]() | |
} | |
function _WebMultiplayer_notifyCursorUnhiddenFromObserver() { | |
_WebMultiplayerObj["notifyCursorUnhiddenFromObserver"]() | |
} | |
function _WebMultiplayer_notifyEditorConvertedToViewer() { | |
_WebMultiplayerObj["notifyEditorConvertedToViewer"]() | |
} | |
function _WebMultiplayer_readyToAcceptAutosaveChanges() { | |
var jsReturnValue = _WebMultiplayerObj["readyToAcceptAutosaveChanges"](); | |
return jsReturnValue | |
} | |
function _WebMultiplayer_reconnectingStarted() { | |
_WebMultiplayerObj["reconnectingStarted"]() | |
} | |
function _WebMultiplayer_reconnectingSucceeded() { | |
_WebMultiplayerObj["reconnectingSucceeded"]() | |
} | |
function _WebMultiplayer_saveImages(hashes) { | |
var js_hashes = JSON.parse(_jsStringFromCPPString(hashes)); | |
_WebMultiplayerObj["saveImages"](js_hashes) | |
} | |
function _WebMultiplayer_saveNodeChanges(nodeID, changes) { | |
var js_nodeID = _jsStringFromCPPString(nodeID); | |
var js_changes = _jsValueSlots[changes]; | |
_WebMultiplayerObj["saveNodeChanges"](js_nodeID, js_changes) | |
} | |
function _WebMultiplayer_saveReferencedNodes(nodeID, buffer) { | |
var js_nodeID = _jsStringFromCPPString(nodeID); | |
var js_buffer = _jsValueSlots[buffer]; | |
_WebMultiplayerObj["saveReferencedNodes"](js_nodeID, js_buffer) | |
} | |
function _WebMultiplayer_setBackgroundFlushInterval(delayInMS) { | |
_WebMultiplayerObj["setBackgroundFlushInterval"](delayInMS) | |
} | |
function _WebMultiplayer_showRestoreComponentDialog(nodeId) { | |
var js_nodeId = _jsStringFromCPPString(nodeId); | |
_WebMultiplayerObj["showRestoreComponentDialog"](js_nodeId) | |
} | |
function _WebMultiplayer_snapshotHashChanged(hash) { | |
var js_hash = _jsStringFromCPPString(hash); | |
_WebMultiplayerObj["snapshotHashChanged"](js_hash) | |
} | |
function _WebMultiplayer_socketBufferedAmount() { | |
var jsReturnValue = _WebMultiplayerObj["socketBufferedAmount"](); | |
return jsReturnValue | |
} | |
function _WebMultiplayer_startMonitorInterval() { | |
_WebMultiplayerObj["startMonitorInterval"]() | |
} | |
function _WebMultiplayer_updateMultiplayerState(state) { | |
var js_state = JSON.parse(_jsStringFromCPPString(state)); | |
_WebMultiplayerObj["updateMultiplayerState"](js_state) | |
} | |
function _WebMultiplayer_updateSaveStatus(args) { | |
var js_args = JSON.parse(_jsStringFromCPPString(args)); | |
_WebMultiplayerObj["updateSaveStatus"](js_args) | |
} | |
function _WebReporting_logNumericMetric(name, value) { | |
var js_name = _jsStringFromCPPString(name); | |
_WebReportingObj["logNumericMetric"](js_name, value) | |
} | |
function _WebReporting_logStringMetric(name, payload) { | |
var js_name = _jsStringFromCPPString(name); | |
var js_payload = _jsStringFromCPPString(payload); | |
_WebReportingObj["logStringMetric"](js_name, js_payload) | |
} | |
function _WebReporting_recordFullscreenAction() { | |
_WebReportingObj["recordFullscreenAction"]() | |
} | |
function _WebReporting_reportBranchingLoadTime(time, fullscreenHandler, sourceFileKey, branchFileKey) { | |
var js_fullscreenHandler = _jsStringFromCPPString(fullscreenHandler); | |
var js_sourceFileKey = _jsStringFromCPPString(sourceFileKey); | |
var js_branchFileKey = _jsStringFromCPPString(branchFileKey); | |
_WebReportingObj["reportBranchingLoadTime"](time, js_fullscreenHandler, js_sourceFileKey, js_branchFileKey) | |
} | |
function _WebReporting_reportConsecutiveFlushes() { | |
_WebReportingObj["reportConsecutiveFlushes"]() | |
} | |
function _WebReporting_reportConsecutiveImageChangeSkips() { | |
_WebReportingObj["reportConsecutiveImageChangeSkips"]() | |
} | |
function _WebReporting_reportContextLost() { | |
_WebReportingObj["reportContextLost"]() | |
} | |
function _WebReporting_reportContextRestore() { | |
_WebReportingObj["reportContextRestore"]() | |
} | |
function _WebReporting_reportContextRestored() { | |
_WebReportingObj["reportContextRestored"]() | |
} | |
function _WebReporting_reportDirtyAfterLoad() { | |
_WebReportingObj["reportDirtyAfterLoad"]() | |
} | |
function _WebReporting_reportDoubleFlush() { | |
_WebReportingObj["reportDoubleFlush"]() | |
} | |
function _WebReporting_reportFileLoadTime(time) { | |
_WebReportingObj["reportFileLoadTime"](time) | |
} | |
function _WebReporting_reportMultiplayerRoundTripTime(time) { | |
_WebReportingObj["reportMultiplayerRoundTripTime"](time) | |
} | |
function _WebReporting_reportPerfTestingInfo(name) { | |
var js_name = _jsStringFromCPPString(name); | |
_WebReportingObj["reportPerfTestingInfo"](js_name) | |
} | |
function _WebReporting_reportQuantizedColorEqualsUse(r1, g1, b1, a1, r2, g2, b2, a2) { | |
_WebReportingObj["reportQuantizedColorEqualsUse"](r1, g1, b1, a1, r2, g2, b2, a2) | |
} | |
function _WebReporting_reportRelativeTransformWithNaN(data) { | |
var js_data = JSON.parse(_jsStringFromCPPString(data)); | |
_WebReportingObj["reportRelativeTransformWithNaN"](js_data) | |
} | |
function _WebReporting_startPerfTimer(name) { | |
var js_name = _jsStringFromCPPString(name); | |
_WebReportingObj["startPerfTimer"](js_name) | |
} | |
function _WebReporting_stopPerfTimer(name) { | |
var js_name = _jsStringFromCPPString(name); | |
_WebReportingObj["stopPerfTimer"](js_name) | |
} | |
function _WebSelection_clearSelectionPaintsDueToLimitExceeded() { | |
_WebSelectionObj["clearSelectionPaintsDueToLimitExceeded"]() | |
} | |
function _WebSelection_hideEyedropper() { | |
_WebSelectionObj["hideEyedropper"]() | |
} | |
function _WebSelection_originalPaintForCurrentSelectionPaintsPicker() { | |
var jsReturnValue = _WebSelectionObj["originalPaintForCurrentSelectionPaintsPicker"](); | |
return _cppStringFromJSString(jsReturnValue) | |
} | |
function _WebSelection_pickerHasSelectionPaintOpen() { | |
var jsReturnValue = _WebSelectionObj["pickerHasSelectionPaintOpen"](); | |
return jsReturnValue | |
} | |
function _WebSelection_showEyedropper(color, width, height, rgba, grid) { | |
var js_color = _jsStringFromCPPString(color); | |
var js_rgba = _jsValueSlots[rgba]; | |
var js_grid = !!grid; | |
_WebSelectionObj["showEyedropper"](js_color, width, height, js_rgba, js_grid) | |
} | |
function _WebSelection_updateSelectionPaintFromDropper(paintEncodedAsString) { | |
var js_paintEncodedAsString = _jsStringFromCPPString(paintEncodedAsString); | |
var jsReturnValue = _WebSelectionObj["updateSelectionPaintFromDropper"](js_paintEncodedAsString); | |
return jsReturnValue | |
} | |
function _WebSelection_updateSelectionPaintsWithFillEncodedPaints(paints, counts, uniqueCounts, pureCounts, triggeredByUndo) { | |
var js_paints = JSON.parse(_jsStringFromCPPString(paints)); | |
var js_counts = JSON.parse(_jsStringFromCPPString(counts)); | |
var js_uniqueCounts = JSON.parse(_jsStringFromCPPString(uniqueCounts)); | |
var js_pureCounts = JSON.parse(_jsStringFromCPPString(pureCounts)); | |
var js_triggeredByUndo = !!triggeredByUndo; | |
_WebSelectionObj["updateSelectionPaintsWithFillEncodedPaints"](js_paints, js_counts, js_uniqueCounts, js_pureCounts, js_triggeredByUndo) | |
} | |
function _WebSelection_updateSelectionPaintsWithStyles(paints) { | |
var js_paints = JSON.parse(_jsStringFromCPPString(paints)); | |
_WebSelectionObj["updateSelectionPaintsWithStyles"](js_paints) | |
} | |
function _WebUserSyncing_addUser(sessionId) { | |
_WebUserSyncingObj["addUser"](sessionId) | |
} | |
function _WebUserSyncing_handleConnect(newSessionId) { | |
_WebUserSyncingObj["handleConnect"](newSessionId) | |
} | |
function _WebUserSyncing_handleReactionFromServer(sessionId, reactionId) { | |
var js_reactionId = _jsStringFromCPPString(reactionId); | |
_WebUserSyncingObj["handleReactionFromServer"](sessionId, js_reactionId) | |
} | |
function _WebUserSyncing_removeUser(sessionId) { | |
_WebUserSyncingObj["removeUser"](sessionId) | |
} | |
function _WebUserSyncing_setChatMessage(sessionId, text) { | |
var js_text = _jsStringFromCPPString(text); | |
_WebUserSyncingObj["setChatMessage"](sessionId, js_text) | |
} | |
function _WebUserSyncing_setHighFiveStatus(sessionId, isHighFiving) { | |
var js_isHighFiving = !!isHighFiving; | |
_WebUserSyncingObj["setHighFiveStatus"](sessionId, js_isHighFiving) | |
} | |
function _WebUserSyncing_setMouseCursor(sessionId, cursorType) { | |
_WebUserSyncingObj["setMouseCursor"](sessionId, cursorType) | |
} | |
function _WebUserSyncing_setMousePosition(sessionId, pageId, canvasSpaceX, canvasSpaceY) { | |
var js_pageId = _jsStringFromCPPString(pageId); | |
_WebUserSyncingObj["setMousePosition"](sessionId, js_pageId, canvasSpaceX, canvasSpaceY) | |
} | |
function _WebUserSyncing_setVoiceMetadata(sessionId, connectedCallId) { | |
var js_connectedCallId = _jsStringFromCPPString(connectedCallId); | |
_WebUserSyncingObj["setVoiceMetadata"](sessionId, js_connectedCallId) | |
} | |
function _WebWorker_isWorker() { | |
return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope | |
} | |
function _WidgetBindings_mountWidget(pluginID, widgetNodeID) { | |
var js_pluginID = _jsStringFromCPPString(pluginID); | |
var js_widgetNodeID = _jsStringFromCPPString(widgetNodeID); | |
_WidgetBindingsObj["mountWidget"](js_pluginID, js_widgetNodeID) | |
} | |
function _WidgetBindings_mouseDownWidget(pluginID, widgetNodeID, bubbledNodes) { | |
var js_pluginID = _jsStringFromCPPString(pluginID); | |
var js_widgetNodeID = _jsStringFromCPPString(widgetNodeID); | |
var js_bubbledNodes = JSON.parse(_jsStringFromCPPString(bubbledNodes)); | |
_WidgetBindingsObj["mouseDownWidget"](js_pluginID, js_widgetNodeID, js_bubbledNodes) | |
} | |
function _Window_alert(text, subtext) { | |
alert(_jsStringFromCPPString(text) + "\n\n" + _jsStringFromCPPString(subtext)) | |
} | |
var _Window_rootElement = null; | |
var _Window_rootViewElement = null; | |
var _invalidatedViews = []; | |
function _updateAllInvalidatedViews() { | |
if (_invalidatedViews.length > 0) { | |
_invalidatedViews.forEach(function(view) { | |
view._render() | |
}); | |
_invalidatedViews = [] | |
} | |
} | |
function _onResize() { | |
_Window_updateSize(_Window_rootViewElement.clientWidth, _Window_rootViewElement.clientHeight); | |
_updateAllInvalidatedViews() | |
} | |
function _Window_updateWindowIsActive() { | |
var active = !document.hidden; | |
_Window_setIsActive(active) | |
} | |
function _Window_destroy() { | |
if (_Window_rootElement) { | |
const parent = _Window_rootElement.parentNode; | |
if (parent) { | |
parent.removeChild(_Window_rootElement) | |
} | |
} | |
_off(window, "resize", _onResize); | |
_off(document, "visibilitychange", _Window_updateWindowIsActive) | |
} | |
var _Window_lastViewHandleWithFocus = null; | |
var _Window_currentViewHandleWithFocus = null; | |
var _EventType = { | |
TEXT: 0, | |
KEY_PRESS: 1, | |
KEY_RELEASE: 2, | |
MOUSE_MOVE: 3, | |
MOUSE_ENTER: 4, | |
MOUSE_LEAVE: 5, | |
MOUSE_PRESS: 6, | |
MOUSE_DRAG: 7, | |
MOUSE_RELEASE: 8, | |
MOUSE_WHEEL: 9, | |
MOUSE_DROP: 10, | |
MOUSE_ROTATE: 11, | |
MOUSE_SCALE: 12, | |
MOUSE_SCALE_END: 13, | |
FOCUS_GAINED: 14, | |
FOCUS_LOST: 15, | |
CLIPBOARD: 16, | |
CUSTOM: 17 | |
}; | |
function _Window_setExpectingPasteEvent(newValue) { | |
if (_Window_expectingPasteEvent === newValue) { | |
return | |
} | |
_Window_expectingPasteEvent = newValue; | |
_updateCustomFocusType() | |
} | |
var _Window_pendingViewHandle = null; | |
var _Window_previousComposition = null; | |
var _Window_lastCompositionInputEvent = null; | |
var _Window_isComposing = false; | |
var _Window_lastAltKeyWasRight = false; | |
var _Key = { | |
ALT: 256, | |
META: 512, | |
SHIFT: 1024, | |
CONTROL: 2048, | |
RIGHT_ALT: 4096 | |
}; | |
function _modifierKeys(e) { | |
var hasRightAlt = e.altKey && (e.which === 18 && e.location === 2 || e.which !== 18 && _Window_lastAltKeyWasRight); | |
return e.altKey * _Key.ALT | e.metaKey * _Key.META | e.shiftKey * _Key.SHIFT | e.ctrlKey * _Key.CONTROL | hasRightAlt * _Key.RIGHT_ALT | |
} | |
function _Window_setExpectingTextInput(newValue) { | |
if (_Window_expectingTextInput === newValue) { | |
return | |
} | |
_Window_expectingTextInput = newValue; | |
_updateCustomFocusType() | |
} | |
function _Window_customFocusElementFor(handle) { | |
var view = _handles[handle]; | |
if (_Window_customFocusElementReadWrite === null) { | |
_Window_customFocusElementReadWrite = document.createElement("input"); | |
_Window_customFocusElementReadOnly = document.createElement("input"); | |
_Window_customFocusElementReadOnly.readOnly = true; | |
_Window_customFocusElementReadWrite.style.opacity = "0"; | |
_Window_customFocusElementReadOnly.style.opacity = "0"; | |
_Window_customFocusElementReadOnly.style.top = "-200px"; | |
if (_FigmaAppObj && _FigmaAppObj["setCustomFocusElement"]) { | |
_FigmaAppObj["setCustomFocusElement"]({ | |
addFocusChangedCallback: function(callback) { | |
_Window_customFocusElementReadWrite.addEventListener("focus", function() { | |
callback(true) | |
}); | |
_Window_customFocusElementReadWrite.addEventListener("blur", function() { | |
callback(false) | |
}); | |
_Window_customFocusElementReadOnly.addEventListener("focus", function() { | |
callback(true) | |
}); | |
_Window_customFocusElementReadOnly.addEventListener("blur", function() { | |
callback(false) | |
}) | |
}, | |
isFocusElement: function(element) { | |
return _Window_customFocusElementReadWrite === element || _Window_customFocusElementReadOnly === element | |
}, | |
focus: function() { | |
if (_isExpectingTextInput()) { | |
_Window_customFocusElementReadWrite.focus() | |
} else { | |
_Window_customFocusElementReadOnly.focus() | |
} | |
} | |
}) | |
} [_Window_customFocusElementReadWrite, _Window_customFocusElementReadOnly].forEach(function(Window_customFocusElement) { | |
_whenFullscreenPresent(Window_customFocusElement, "keydown", function(e) { | |
try { | |
if (!e.metaKey && !e.ctrlKey && !_Window_viewWantsTextEvents(_Window_currentViewHandleWithFocus) && !_Window_shouldSendKeyboardEventToBrowser(e.which)) { | |
e.preventDefault() | |
} | |
if (e.ctrlKey != 0 || e.metaKey != 0) { | |
if (e.which === "X".charCodeAt() || e.which === "C".charCodeAt()) { | |
_Window_setExpectingCopyCutEvent(true) | |
} else { | |
_Window_setExpectingPasteEvent(true) | |
} | |
} | |
} catch (error) { | |
console.error(error && error.stack || error); | |
e.preventDefault() | |
} | |
}); | |
_whenFullscreenPresent(Window_customFocusElement, "keyup", function(e) { | |
_Window_setExpectingCopyCutEvent(false); | |
_Window_setExpectingPasteEvent(false) | |
}); | |
_whenFullscreenPresent(Window_customFocusElement, "focus", function(e) { | |
var handle = _Window_pendingViewHandle; | |
if (!handle) return; | |
_Window_lastViewHandleWithFocus = handle; | |
_Window_currentViewHandleWithFocus = handle; | |
_Window_customFocusElementReadWrite._pointer = handle; | |
_Window_customFocusElementReadOnly._pointer = handle; | |
if (!_Window_focusEventBeingCalled) { | |
_Window_focusEvent(_EventType.FOCUS_GAINED, handle) | |
} | |
}); | |
_whenFullscreenPresent(Window_customFocusElement, "blur", function(e) { | |
var handle = _Window_currentViewHandleWithFocus; | |
if (!handle) return; | |
_Window_currentViewHandleWithFocus = null; | |
_Window_customFocusElementReadWrite._pointer = null; | |
_Window_customFocusElementReadOnly._pointer = null; | |
if (!_Window_focusEventBeingCalled) { | |
_Window_focusEvent(_EventType.FOCUS_LOST, handle) | |
} | |
}); | |
var clearFocusElementAndComposition = function() { | |
_Window_previousComposition = ""; | |
_Window_customFocusElementReadWrite.value = "" | |
}; | |
_whenFullscreenPresent(Window_customFocusElement, "compositionstart", function(e) { | |
_Window_lastCompositionInputEvent = "compositionstart"; | |
_Window_isComposing = true; | |
clearFocusElementAndComposition() | |
}); | |
_whenFullscreenPresent(Window_customFocusElement, "compositionupdate", function(e) { | |
_Window_lastCompositionInputEvent = "compositionupdate" | |
}); | |
_whenFullscreenPresent(Window_customFocusElement, "compositionend", function(e) { | |
var last = _Window_lastCompositionInputEvent; | |
_Window_lastCompositionInputEvent = "compositionend"; | |
_Window_isComposing = false; | |
if (last === "input") { | |
clearFocusElementAndComposition() | |
} | |
}); | |
_whenFullscreenPresent(Window_customFocusElement, "input", function(e) { | |
var last = _Window_lastCompositionInputEvent; | |
_Window_lastCompositionInputEvent = "input"; | |
if (_Window_viewWantsTextEvents(_Window_currentViewHandleWithFocus)) { | |
var text = Window_customFocusElement.value; | |
if (text.length == 1) { | |
var charCode = text.charCodeAt(0); | |
var isHighSurrogate = charCode >= 55296 && charCode <= 56319; | |
if (isHighSurrogate) { | |
return | |
} | |
} | |
_Window_textEvent(_Window_currentViewHandleWithFocus, _cppStringFromJSString(text), _Window_isComposing, _cppStringFromJSString(_Window_previousComposition), _modifierKeys(e)); | |
if (last === "compositionend") { | |
_Window_previousComposition = text; | |
clearFocusElementAndComposition() | |
} else if (_Window_isComposing) { | |
_Window_previousComposition = text | |
} else { | |
clearFocusElementAndComposition() | |
} | |
e.preventDefault() | |
} | |
}); | |
Window_customFocusElement.className = "focus-target"; | |
_Window_rootElement.appendChild(Window_customFocusElement); | |
_Window_setExpectingTextInput(_Window_expectingTextInput); | |
_Window_setExpectingCopyCutEvent(_Window_expectingCopyCutEvent); | |
_Window_setExpectingPasteEvent(_Window_expectingPasteEvent); | |
_updateCustomFocusType() | |
}) | |
} | |
_Window_pendingViewHandle = handle; | |
if (_isExpectingTextInput()) { | |
return _Window_customFocusElementReadWrite | |
} else { | |
return _Window_customFocusElementReadOnly | |
} | |
} | |
function _Window_focusView(handle) { | |
var view = _handles[handle]; | |
_Window_lastViewHandleWithFocus = handle; | |
var couldBeBroken = handle && document.activeElement === document.body; | |
if (_Window_currentViewHandleWithFocus === handle && !couldBeBroken) { | |
return | |
} | |
var old = _Window_currentViewHandleWithFocus; | |
_Window_currentViewHandleWithFocus = null; | |
_Window_focusEvent(_EventType.FOCUS_LOST, old); | |
var oldFocusEventBeingCalled = _Window_focusEventBeingCalled; | |
_Window_focusEventBeingCalled = true; | |
_Window_customFocusElementFor(handle).focus(); | |
_Window_focusEventBeingCalled = oldFocusEventBeingCalled; | |
_Window_isComposing = false; | |
_Window_previousComposition = null; | |
_Window_currentViewHandleWithFocus = handle; | |
_Window_focusEvent(_EventType.FOCUS_GAINED, handle) | |
} | |
function _Window_handleAfterTick() { | |
_updateAllInvalidatedViews() | |
} | |
function _Window_setupComplete() { | |
_Window_updateDevicePixelRatio(window["devicePixelRatio"] || 1); | |
_Window_updateSize(_Window_rootViewElement.clientWidth, _Window_rootViewElement.clientHeight) | |
} | |
function _Window_handleBeforeTick() { | |
_Window_setupComplete() | |
} | |
function _elementAcceptsTextInput(element) { | |
return element.tagName === "INPUT" && element.type === "text" || element.tagName === "INPUT" && element.type === "password" || element.tagName === "TEXTAREA" && !element.readOnly | |
} | |
function _isElementOwnedByFullscreen(elt) { | |
return _Window_rootElement && _Window_rootElement.contains(elt) | |
} | |
var _Window_fullscreenExpectsMouseReleaseEvent = false; | |
function _shouldPreventEventCapture(event) { | |
let element = event.target; | |
while (element) { | |
if (element.classList) { | |
if (element.classList.contains("js-fullscreen-wheel-event-capture") && event.type === "wheel") { | |
return true | |
} | |
if (element.classList.contains("js-fullscreen-prevent-event-capture") && !(element.classList.contains("js-fullscreen-wheel-event-passthrough") && event.type === "wheel")) { | |
return true | |
} | |
} | |
element = element.parentElement | |
} | |
return false | |
} | |
var _oldTime = 0; | |
var _oldX = 0; | |
var _oldY = 0; | |
var _oldCount = 0; | |
function _simulatedClickCount(pageX, pageY, threshold) { | |
var time = Date.now(); | |
var clickCount = 1; | |
if (_oldTime && time - _oldTime < 500 && Math.abs(pageX - _oldX) < threshold && Math.abs(pageY - _oldY) < threshold) { | |
clickCount = _oldCount + 1 | |
} | |
_oldX = pageX; | |
_oldY = pageY; | |
_oldCount = clickCount; | |
_oldTime = time; | |
return clickCount | |
} | |
function _mousePoint(e) { | |
var x = e.pageX; | |
var y = e.pageY; | |
for (var element = _Window_rootViewElement; element !== null; element = element.offsetParent) { | |
x -= element.offsetLeft; | |
y -= element.offsetTop | |
} | |
if (window.PointerEvent && e instanceof window.PointerEvent) { | |
x = Math.round(x); | |
y = Math.round(y) | |
} | |
return { | |
x: x, | |
y: y | |
} | |
} | |
function _mouseEvent(e, type) { | |
var clickCount = e.detail; | |
const isPointerEvent = window.PointerEvent && e instanceof window.PointerEvent; | |
const platformNeedsClickCount = isPointerEvent || _PlatformInfo_isIE() || _PlatformInfo_isEdge(); | |
if (platformNeedsClickCount && type === _EventType.MOUSE_PRESS) { | |
var threshold = 4; | |
clickCount = _simulatedClickCount(e.pageX, e.pageY, threshold) | |
} | |
var mouse = _mousePoint(e); | |
if (_Window_mouseEvent(type, mouse.x, mouse.y, e.button, clickCount, _modifierKeys(e), 0, 0, 0, 0, 0)) { | |
e.preventDefault() | |
} | |
} | |
function _viewHandleFromElement(element) { | |
if (element === _Window_customFocusElementReadWrite || element === _Window_customFocusElementReadOnly) { | |
return _Window_currentViewHandleWithFocus | |
} | |
while (element) { | |
if (element._pointer) return element._pointer; | |
element = element.parentNode | |
} | |
return null | |
} | |
var _TabOrder = { | |
PREVIOUS: 0, | |
NEXT: 1 | |
}; | |
var _ClipboardAction = { | |
CUT: 0, | |
COPY: 1, | |
PASTE: 2 | |
}; | |
function _shouldIgnoreMouseEvent(e) { | |
if (_Window_fullscreenExpectsMouseReleaseEvent) { | |
return false | |
} | |
if ((e.type === "wheel" || e.type === "onwheel") && (e.ctrlKey || e.metaKey)) { | |
e.preventDefault(); | |
return false | |
} | |
var isTargetHTMLElement = e.target.nodeType === 1; | |
if (isTargetHTMLElement && _shouldPreventEventCapture(e)) { | |
return true | |
} | |
if (window["fullscreen_isReactUIDragging"]) { | |
return true | |
} | |
if (isTargetHTMLElement && _elementAcceptsTextInput(e.target) && !_isElementOwnedByFullscreen(e.target)) { | |
return true | |
} | |
return false | |
} | |
var _touchState = null; | |
function _shouldIgnoreTouchEvent(e) { | |
var isTargetHTMLElement = e.target.nodeType === 1; | |
if (isTargetHTMLElement && _shouldPreventEventCapture(e)) { | |
return true | |
} | |
if (window["fullscreen_isReactUIDragging"]) { | |
return true | |
} | |
if (isTargetHTMLElement && _elementAcceptsTextInput(e.target) && !_isElementOwnedByFullscreen(e.target)) { | |
return true | |
} | |
return false | |
} | |
var _Window_lastGestureScale = 0; | |
function _initGestureEvents() { | |
if (_PlatformInfo_isSafari()) { | |
_whenFullscreenPresent(document, "gesturestart", function(e) { | |
e.preventDefault(); | |
_Window_lastGestureScale = 1 | |
}); | |
_whenFullscreenPresent(document, "gesturechange", function(e) { | |
e.preventDefault(); | |
if (!("scale" in e) || isNaN(e.scale)) { | |
return | |
} | |
if (_touchState) { | |
return | |
} | |
var scaleDelta = e.scale - _Window_lastGestureScale; | |
_Window_lastGestureScale = e.scale; | |
var mouse = _mousePoint(e); | |
_Window_mouseEvent(_EventType.MOUSE_SCALE, mouse.x, mouse.y, -1, 0, _modifierKeys(e), 0, 0, scaleDelta, 0) | |
}) | |
} | |
} | |
function _useLowLevelPointerEvents(Window_rootViewElement) { | |
const onMouseDown = function(e) { | |
_Window_setIsUsingTouchEvents(false); | |
if (_shouldIgnoreMouseEvent(e)) { | |
return | |
} | |
_Window_fullscreenExpectsMouseReleaseEvent = true; | |
_mouseEvent(e, _EventType.MOUSE_PRESS) | |
}; | |
const onMouseMove = function(e) { | |
_Window_setIsUsingTouchEvents(false); | |
if (_shouldIgnoreMouseEvent(e)) { | |
return | |
} | |
_mouseEvent(e, _EventType.MOUSE_MOVE) | |
}; | |
const onMouseOut = function(e) { | |
_mouseEvent(e, _EventType.MOUSE_LEAVE) | |
}; | |
const onMouseUp = function(e) { | |
_Window_setIsUsingTouchEvents(false); | |
if (_shouldIgnoreMouseEvent(e)) { | |
return | |
} | |
_Window_fullscreenExpectsMouseReleaseEvent = false; | |
_mouseEvent(e, _EventType.MOUSE_RELEASE) | |
}; | |
const onTouchStart = function(e) { | |
_Window_setIsUsingTouchEvents(true); | |
e.preventDefault(); | |
_touchState = (_touchState || createInitialTouchState()).next(e); | |
if (_FigmaAppObj && _FigmaAppObj["reportTouchStart"]) { | |
_FigmaAppObj["reportTouchStart"]() | |
} | |
}; | |
const onTouchMove = function(e) { | |
_Window_setIsUsingTouchEvents(true); | |
if (_touchState) { | |
e.preventDefault(); | |
_touchState = _touchState.next(e) | |
} else { | |
if (_shouldIgnoreTouchEvent(e)) { | |
return | |
} | |
e.preventDefault(); | |
_mouseEvent(e, _EventType.MOUSE_MOVE) | |
} | |
}; | |
const onTouchEnd = function(e) { | |
_Window_setIsUsingTouchEvents(true); | |
if (!_touchState) return; | |
e.preventDefault(); | |
_touchState = _touchState.next(e) | |
}; | |
const onPointerCancel = function(e) { | |
if (!_touchState) return; | |
_touchState.next(e) | |
}; | |
function route(mouseCallback, touchCallback) { | |
return function(e) { | |
if (e.pointerType === "mouse" || e.pointerType === "pen") { | |
if (mouseCallback) mouseCallback(e) | |
} else { | |
if (touchCallback) touchCallback(e) | |
} | |
} | |
} | |
if (window.PointerEvent) { | |
_whenFullscreenPresent(Window_rootViewElement, "pointerdown", route(onMouseDown, onTouchStart), { | |
passive: false | |
}); | |
_whenFullscreenPresent(document, "pointermove", route(onMouseMove, onTouchMove), { | |
passive: false, | |
capture: true | |
}); | |
_whenFullscreenPresent(Window_rootViewElement, "pointerout", route(onMouseOut, null), { | |
passive: false | |
}); | |
_whenFullscreenPresent(document, "pointerup", route(onMouseUp, onTouchEnd), { | |
passive: false, | |
capture: true | |
}); | |
_whenFullscreenPresent(document, "pointercancel", onPointerCancel); | |
if (_PlatformInfo_isIpad()) { | |
_whenFullscreenPresent(Window_rootViewElement, "touchmove", function(e) { | |
e.preventDefault() | |
}); | |
_whenFullscreenPresent(Window_rootViewElement, "touchstart", function(e) { | |
e.preventDefault() | |
}, { | |
passive: false | |
}) | |
} | |
} else { | |
_whenFullscreenPresent(Window_rootViewElement, "mousedown", onMouseDown, { | |
passive: false | |
}); | |
_whenFullscreenPresent(document, "mousemove", onMouseMove, { | |
passive: false, | |
capture: true | |
}); | |
_whenFullscreenPresent(Window_rootViewElement, "mouseout", onMouseOut, { | |
passive: false | |
}); | |
_whenFullscreenPresent(document, "mouseup", onMouseUp, { | |
passive: false, | |
capture: true | |
}) | |
} | |
_initGestureEvents(); | |
function createInitialTouchState() { | |
if (_FigmaAppObj["createGestureMachine"]) { | |
return _FigmaAppObj["createGestureMachine"](_Window_mouseEvent, Window_rootViewElement) | |
} | |
} | |
} | |
function _summarizeTouches(touches) { | |
var x = 0; | |
var y = 0; | |
var count = 0; | |
var distance = 0; | |
for (var i = 0; i < touches.length; i++) { | |
var touch = touches[i]; | |
var point = _mousePoint(touch); | |
x += point.x; | |
y += point.y; | |
count++ | |
} | |
x /= count; | |
y /= count; | |
for (var i = 0; i < touches.length; i++) { | |
var touch = touches[i]; | |
var point = _mousePoint(touch); | |
distance += (point.x - x) * (point.x - x) + (point.y - y) * (point.y - y) | |
} | |
distance = Math.sqrt(distance / count); | |
return { | |
x: x, | |
y: y, | |
distance: distance, | |
count: count | |
} | |
} | |
function _Window_init(handle) { | |
if (!window.PointerEvent) { | |
if (_FigmaAppObj && _FigmaAppObj["reportNoPointerEvents"]) { | |
_FigmaAppObj["reportNoPointerEvents"]() | |
} | |
} | |
_Window_rootViewElement = _handles[handle]._element; | |
_Window_rootElement = document.createElement("div"); | |
_Window_rootElement.id = "fullscreen-root"; | |
_Window_rootElement.appendChild(_Window_rootViewElement); | |
_Window_rootElement.style.visibility = "hidden"; | |
document.body.appendChild(_Window_rootElement); | |
var KEY_PLUS = 107; | |
var KEY_SUBTRACT = 109; | |
var KEY_FIREFOX_MINUS = 173; | |
var KEY_MINUS = 189; | |
var KEY_EQUALS = 187; | |
var ZOOM_KEYS = [KEY_PLUS, KEY_EQUALS, KEY_SUBTRACT, KEY_FIREFOX_MINUS, KEY_MINUS]; | |
function shouldIgnoreKeyboardEvent(e) { | |
if (_Window_shouldSendKeyboardEventToBrowser(e.which)) { | |
return true | |
} | |
if (_elementAcceptsTextInput(e.target) && !_isElementOwnedByFullscreen(e.target)) { | |
return true | |
} | |
if (e.target && e.target.tagName == "BUTTON" && !_isElementOwnedByFullscreen(e.target)) { | |
return true | |
} | |
return false | |
} | |
function shouldPreventZoomKeyboardEvent(e) { | |
var shortcutKey = _PlatformInfo_isMac() ? e.metaKey : e.ctrlKey; | |
return shortcutKey && !e.altKey && ZOOM_KEYS.indexOf(e.which || e.keyCode) !== -1 | |
} | |
function shouldIgnoreMouseEvent(e) { | |
if (_Window_fullscreenExpectsMouseReleaseEvent) { | |
return false | |
} | |
if ((e.type === "wheel" || e.type === "onwheel") && (e.ctrlKey || e.metaKey)) { | |
e.preventDefault(); | |
return false | |
} | |
var isTargetHTMLElement = e.target.nodeType === 1; | |
if (isTargetHTMLElement && _shouldPreventEventCapture(e)) { | |
return true | |
} | |
if (window["fullscreen_isReactUIDragging"]) { | |
return true | |
} | |
if (isTargetHTMLElement && _elementAcceptsTextInput(e.target) && !_isElementOwnedByFullscreen(e.target)) { | |
return true | |
} | |
return false | |
} | |
function mousePoint(e) { | |
var x = e.pageX; | |
var y = e.pageY; | |
for (var element = _Window_rootViewElement; element !== null; element = element.offsetParent) { | |
x -= element.offsetLeft; | |
y -= element.offsetTop | |
} | |
return { | |
x: x, | |
y: y | |
} | |
} | |
_whenFullscreenPresent(_Window_rootViewElement, "contextmenu", function(e) { | |
if (_elementAcceptsTextInput(e.target)) { | |
_Window_fullscreenExpectsMouseReleaseEvent = false; | |
_mouseEvent(e, _EventType.MOUSE_RELEASE); | |
return | |
} | |
e.preventDefault() | |
}); | |
_whenFullscreenPresent(window, "focus", function(e) { | |
if (_Window_lastViewHandleWithFocus !== null) { | |
_Window_focusView(_Window_lastViewHandleWithFocus) | |
} | |
}); | |
_on(window, "resize", _onResize); | |
_Window_updateWindowIsActive(); | |
_on(document, "visibilitychange", _Window_updateWindowIsActive); | |
_whenFullscreenPresent(document, "keydown", function(e) { | |
if (_FigmaAppObj && _FigmaAppObj["jsWantsKeyboardEvent"] && _FigmaAppObj["jsWantsKeyboardEvent"](e)) { | |
return | |
} | |
if (shouldPreventZoomKeyboardEvent(e)) { | |
e.preventDefault() | |
} | |
if (shouldIgnoreKeyboardEvent(e)) { | |
return | |
} | |
try { | |
var modifiers = _modifierKeys(e); | |
if (e.which === 18) { | |
_Window_lastAltKeyWasRight = e.location === 2 | |
} | |
var isBackspaceKey = !_elementAcceptsTextInput(e.target) && e.which === 8; | |
if (isBackspaceKey) e.preventDefault(); | |
var isTabKey = _elementAcceptsTextInput(e.target) && e.which === 9 && (!modifiers || modifiers === _Key.SHIFT); | |
var target = _viewHandleFromElement(e.target); | |
var repeat = e["repeat"]; | |
if (_Window_keyboardEvent(_EventType.KEY_PRESS, target, e.which, modifiers, repeat)) { | |
e.preventDefault() | |
} else if (isTabKey) { | |
_Window_focusViewInTabOrder(target, e.shiftKey ? _TabOrder.PREVIOUS : _TabOrder.NEXT); | |
e.preventDefault() | |
} | |
} catch (error) { | |
console.error(error && error.stack || error); | |
e.preventDefault() | |
} | |
}, true); | |
_whenFullscreenPresent(document, "keyup", function(e) { | |
if (_FigmaAppObj && _FigmaAppObj["jsWantsKeyboardEvent"] && _FigmaAppObj["jsWantsKeyboardEvent"](e)) { | |
return | |
} | |
if (shouldPreventZoomKeyboardEvent(e)) { | |
e.preventDefault() | |
} | |
if (shouldIgnoreKeyboardEvent(e)) { | |
return | |
} | |
var target = _viewHandleFromElement(e.target); | |
if (_Window_keyboardEvent(_EventType.KEY_RELEASE, target, e.which, _modifierKeys(e))) { | |
e.preventDefault() | |
} | |
}, true); | |
function clipboardEvent(e, type) { | |
if (_FigmaAppObj && _FigmaAppObj["jsWantsClipboardEvent"]) { | |
if (_FigmaAppObj["jsWantsClipboardEvent"](e, type)) { | |
return | |
} | |
} | |
if (_shouldPreventEventCapture(e)) { | |
return | |
} | |
_Clipboard_dataTransfer = e["clipboardData"] || window["clipboardData"]; | |
if (_Clipboard_dataTransfer) { | |
e.preventDefault(); | |
_Window_clipboardEvent(_viewHandleFromElement(e.target), type) | |
} | |
} | |
_whenFullscreenPresent(document.body, "copy", function(e) { | |
clipboardEvent(e, _ClipboardAction.COPY) | |
}); | |
_whenFullscreenPresent(_Window_rootElement, "cut", function(e) { | |
clipboardEvent(e, _ClipboardAction.CUT) | |
}); | |
_whenFullscreenPresent(_Window_rootElement, "paste", function(e) { | |
clipboardEvent(e, _ClipboardAction.PASTE) | |
}); | |
var lastMultiplier = 0; | |
var lastTimestamp = 0; | |
var lastDirectionX = 0; | |
var lastDirectionY = 0; | |
_whenFullscreenPresent(document, "wheel", function(e) { | |
if (shouldIgnoreMouseEvent(e)) { | |
return | |
} | |
var deltaX = e["deltaX"]; | |
var deltaY = e["deltaY"]; | |
var nonPixelDeltaMode = e["deltaMode"] !== 0; | |
if (!_PlatformInfo_isMac() && e.shiftKey) { | |
var temp = deltaY; | |
deltaY = deltaX; | |
deltaX = temp | |
} | |
var wheelDeltaX = 0; | |
var wheelDeltaY = 0; | |
var isWheelDeltaSupported = e["wheelDeltaY"] != undefined; | |
if (isWheelDeltaSupported) { | |
wheelDeltaX = e["wheelDeltaX"]; | |
wheelDeltaY = e["wheelDeltaY"]; | |
if (!_PlatformInfo_isMac() && e.shiftKey) { | |
var temp = wheelDeltaY; | |
wheelDeltaY = wheelDeltaX; | |
wheelDeltaX = temp | |
} | |
} | |
var devicePixelRatio = window["devicePixelRatio"]; | |
if (_PlatformInfo_isWindows()) { | |
if (_PlatformInfo_isChrome()) { | |
deltaX /= devicePixelRatio; | |
deltaY /= devicePixelRatio; | |
wheelDeltaX /= devicePixelRatio; | |
wheelDeltaY /= devicePixelRatio | |
} | |
} | |
deltaX = -deltaX; | |
deltaY = -deltaY; | |
var isFractionalDelta = !Number.isInteger(deltaX) || !Number.isInteger(deltaY); | |
if (_PlatformInfo_isChromeOS()) { | |
if (e.ctrlKey && (wheelDeltaY === 120 || wheelDeltaY === -120)) { | |
deltaY *= 5 | |
} | |
} else if (_PlatformInfo_isWindows() && (!_isFeatureFlagEnabled("fix_windows_pinch_zoom") || !isFractionalDelta)) { | |
if (_PlatformInfo_isChrome()) { | |
deltaX = wheelDeltaX; | |
deltaY = wheelDeltaY | |
} else if (_PlatformInfo_isFirefox()) { | |
if (nonPixelDeltaMode) { | |
deltaX *= 40; | |
deltaY *= 40 | |
} | |
} | |
var lowResCutoff = 100 - 1; | |
var lowResMouse = Math.abs(deltaX) >= lowResCutoff || Math.abs(deltaY) >= lowResCutoff; | |
if (lowResMouse) { | |
deltaX /= 120; | |
deltaY /= 120; | |
var timestamp = e.timeStamp / 1e3; | |
var directionX = Math.sign(deltaX); | |
var directionY = Math.sign(deltaY); | |
var multiplier = 8; | |
if (timestamp - lastTimestamp < .05 && directionX == lastDirectionX && directionY == lastDirectionY) { | |
multiplier = lastMultiplier * 2.5 | |
} | |
deltaX *= multiplier; | |
deltaY *= multiplier; | |
var max = e.ctrlKey ? 40 : 120; | |
var lengthSquared = deltaX * deltaX + deltaY * deltaY; | |
if (lengthSquared > max * max) { | |
deltaX *= max / Math.sqrt(lengthSquared); | |
deltaY *= max / Math.sqrt(lengthSquared) | |
} | |
lastMultiplier = multiplier; | |
lastTimestamp = timestamp; | |
lastDirectionX = directionX; | |
lastDirectionY = directionY | |
} | |
} | |
var mouse = mousePoint(e); | |
if (_Window_mouseEvent(_EventType.MOUSE_WHEEL, mouse.x, mouse.y, e.button, 0, _modifierKeys(e), deltaX, deltaY, 0)) { | |
e.preventDefault() | |
} | |
}, { | |
passive: false | |
}); | |
if (_PlatformInfo_isIpad() || _isFeatureFlagEnabled("low_level_pointer_events")) { | |
_useLowLevelPointerEvents(_Window_rootViewElement) | |
} else { | |
_whenFullscreenPresent(_Window_rootViewElement, "mousedown", function(e) { | |
_Window_setIsUsingTouchEvents(false); | |
if (shouldIgnoreMouseEvent(e)) { | |
return | |
} | |
_Window_fullscreenExpectsMouseReleaseEvent = true; | |
_mouseEvent(e, _EventType.MOUSE_PRESS) | |
}); | |
_whenFullscreenPresent(document, "mousemove", function(e) { | |
_Window_setIsUsingTouchEvents(false); | |
if (shouldIgnoreMouseEvent(e)) { | |
return | |
} | |
_mouseEvent(e, _EventType.MOUSE_MOVE) | |
}, true); | |
_whenFullscreenPresent(_Window_rootViewElement, "mouseout", function(e) { | |
_mouseEvent(e, _EventType.MOUSE_LEAVE) | |
}); | |
_whenFullscreenPresent(document, "mouseup", function(e) { | |
_Window_setIsUsingTouchEvents(false); | |
if (shouldIgnoreMouseEvent(e)) { | |
return | |
} | |
_Window_fullscreenExpectsMouseReleaseEvent = false; | |
_mouseEvent(e, _EventType.MOUSE_RELEASE) | |
}, true); | |
_initGestureEvents(); | |
function createInitialTouchState() { | |
var startTime = Date.now(); | |
var firstEvent; | |
var playbackBuffer = []; | |
return { | |
next: function(e) { | |
if (e.touches.length === 0) { | |
if (Date.now() - startTime > 500) { | |
simulateRightClick(firstEvent); | |
return null | |
} | |
if (firstEvent) { | |
return createMouseDragTouchState(firstEvent, playbackBuffer).next(e) | |
} | |
return null | |
} | |
if (e.touches.length > 1) { | |
return createPanZoomTouchState(_summarizeTouches(e.touches)) | |
} | |
if (!firstEvent) { | |
firstEvent = e | |
} | |
var currentTouch = e.touches[0]; | |
var dx = currentTouch.pageX - firstEvent.touches[0].pageX; | |
var dy = currentTouch.pageY - firstEvent.touches[0].pageY; | |
if (dx * dx + dy * dy > 5 * 5) { | |
return createMouseDragTouchState(firstEvent, playbackBuffer).next(e) | |
} | |
playbackBuffer.push(e); | |
return this | |
} | |
} | |
} | |
function simulateRightClick(firstEvent) { | |
var button = 2; | |
var lastPoint = mousePoint(firstEvent.touches[0]); | |
var keys = _modifierKeys(firstEvent); | |
var clickCount = 1; | |
_Window_mouseEvent(_EventType.MOUSE_ENTER, lastPoint.x, lastPoint.y, button, clickCount, keys, 0, 0, 0, 0); | |
_Window_mouseEvent(_EventType.MOUSE_PRESS, lastPoint.x, lastPoint.y, button, clickCount, keys, 0, 0, 0, 0); | |
_Window_mouseEvent(_EventType.MOUSE_RELEASE, lastPoint.x, lastPoint.y, button, 0, keys, 0, 0, 0, 0); | |
_Window_mouseEvent(_EventType.MOUSE_LEAVE, lastPoint.x, lastPoint.y, button, 0, keys, 0, 0, 0, 0) | |
} | |
function createMouseDragTouchState(firstEvent, playbackBuffer) { | |
function generateMouseMove(e) { | |
for (var i = 0; i < e.touches.length; i++) { | |
var touch = e.touches[i]; | |
if (touch.identifier === firstEvent.touches[0].identifier) { | |
lastPoint = mousePoint(touch); | |
_Window_mouseEvent(_EventType.MOUSE_MOVE, lastPoint.x, lastPoint.y, button, 0, _modifierKeys(e), 0, 0, 0, 0) | |
} | |
} | |
} | |
var threshold = 10; | |
var button = 0; | |
var lastPoint = mousePoint(firstEvent.touches[0]); | |
var clickCount = _simulatedClickCount(lastPoint.x, lastPoint.y, threshold); | |
_Window_mouseEvent(_EventType.MOUSE_ENTER, lastPoint.x, lastPoint.y, button, clickCount, _modifierKeys(firstEvent), 0, 0, 0, 0); | |
_Window_mouseEvent(_EventType.MOUSE_PRESS, lastPoint.x, lastPoint.y, button, clickCount, _modifierKeys(firstEvent), 0, 0, 0, 0); | |
playbackBuffer.forEach(generateMouseMove); | |
return { | |
next: function(e) { | |
if (e.touches.length === 0) { | |
_Window_mouseEvent(_EventType.MOUSE_RELEASE, lastPoint.x, lastPoint.y, button, 0, _modifierKeys(e), 0, 0, 0, 0); | |
_Window_mouseEvent(_EventType.MOUSE_LEAVE, lastPoint.x, lastPoint.y, button, 0, _modifierKeys(e), 0, 0, 0, 0); | |
return null | |
} | |
generateMouseMove(e); | |
return this | |
} | |
} | |
} | |
function createPanZoomTouchState(previousSummary) { | |
return { | |
next: function(e) { | |
if (e.touches.length === 0) { | |
return null | |
} | |
var nextSummary = _summarizeTouches(e.touches); | |
if (nextSummary.count === previousSummary.count) { | |
var scale = nextSummary.distance / previousSummary.distance; | |
var magnification = Math.log(scale) / Math.log(_Viewport_zoomExponent()); | |
var deltaX = nextSummary.x - previousSummary.x; | |
var deltaY = nextSummary.y - previousSummary.y; | |
if (deltaX || deltaY) { | |
_Window_mouseEvent(_EventType.MOUSE_WHEEL, nextSummary.x, nextSummary.y, 0, 0, 0, deltaX, deltaY, 0, 0) | |
} | |
if (nextSummary.count > 1 && !isNaN(magnification)) { | |
_Window_mouseEvent(_EventType.MOUSE_SCALE, nextSummary.x, nextSummary.y, 0, 0, 0, 0, 0, magnification, 0) | |
} | |
} | |
previousSummary = nextSummary; | |
return this | |
} | |
} | |
} | |
_whenFullscreenPresent(_Window_rootViewElement, "touchstart", function(e) { | |
_Window_setIsUsingTouchEvents(true); | |
e.preventDefault(); | |
_touchState = (_touchState || createInitialTouchState()).next(e); | |
if (_FigmaAppObj && _FigmaAppObj["reportTouchStart"]) { | |
_FigmaAppObj["reportTouchStart"]() | |
} | |
}, { | |
passive: false | |
}); | |
_whenFullscreenPresent(document, "touchmove", function(e) { | |
_Window_setIsUsingTouchEvents(true); | |
if (!_touchState) return; | |
e.preventDefault(); | |
_touchState = _touchState.next(e) | |
}, { | |
passive: false | |
}); | |
_whenFullscreenPresent(document, "touchend", function(e) { | |
_Window_setIsUsingTouchEvents(true); | |
if (!_touchState) return; | |
e.preventDefault(); | |
_touchState = _touchState.next(e) | |
}, { | |
passive: false | |
}) | |
} | |
_whenFullscreenPresent(_Window_rootViewElement, "dragenter", function(e) { | |
e.preventDefault() | |
}); | |
_whenFullscreenPresent(_Window_rootViewElement, "dragover", function(e) { | |
e.preventDefault() | |
}); | |
function getEntriesAsPromise(readers, dirEntryRoot, results) { | |
return new Promise(function(resolve, reject) { | |
var showFiles = false; | |
var directoryBatchCounter = 0; | |
var doBatchOfEntries = function(dirEntry) { | |
var reader = readers.get(dirEntry); | |
if (!reader) { | |
if (showFiles) console.log("creating reader for dir " + dirEntry.fullPath + "\n"); | |
directoryBatchCounter++; | |
reader = dirEntry.createReader(); | |
readers.set(dirEntry, reader) | |
} | |
reader.readEntries(function(entries) { | |
if (entries.length > 0) { | |
entries.forEach(function(entry) { | |
if (entry.isFile) { | |
if (showFiles) console.log("visiting file " + entry.fullPath + "\n"); | |
results.push(entry) | |
} | |
}); | |
entries.forEach(function(entry) { | |
if (entry.isDirectory) { | |
if (showFiles) console.log("visiting dir " + entry.fullPath + "\n"); | |
doBatchOfEntries(entry) | |
} | |
}); | |
doBatchOfEntries(dirEntry) | |
} else { | |
directoryBatchCounter--; | |
readers.delete(dirEntry); | |
if (directoryBatchCounter == 0) { | |
if (showFiles) console.log("resolving with " + readers.size + " remaining dirs\n"); | |
resolve() | |
} | |
} | |
}, reject) | |
}; | |
doBatchOfEntries(dirEntryRoot) | |
}) | |
} | |
function importEntries(e, entries) { | |
var files = []; | |
entries.forEach(function(entry) { | |
entry.file(function(file) { | |
files.push(file); | |
if (files.length == entries.length) { | |
_Window_dropEvent(_viewHandleFromElement(e.target), e.pageX, e.pageY, _modifierKeys(e), _cppStringFromJSString(_fileArrayToString(files))) | |
} | |
}) | |
}) | |
} | |
_whenFullscreenPresent(_Window_rootViewElement, "drop", function(e) { | |
e.preventDefault(); | |
var fullscreen = _FigmaAppObj; | |
if (fullscreen && fullscreen["handleSketchImportEvent"](e)) return; | |
if (e.dataTransfer.items) { | |
var resultingEntries = []; | |
var readers = new Map; | |
for (var i = 0; i < e.dataTransfer.items.length; i++) { | |
var item = e.dataTransfer.items[i]; | |
if (item.webkitGetAsEntry) { | |
var entry = item.webkitGetAsEntry(); | |
if (entry && entry.isFile) { | |
resultingEntries.push(entry) | |
} | |
} | |
} | |
var hasDirectory = false; | |
for (var i = 0; i < e.dataTransfer.items.length; i++) { | |
var item = e.dataTransfer.items[i]; | |
if (item.webkitGetAsEntry) { | |
var entry = item.webkitGetAsEntry(); | |
if (entry && entry.isDirectory) { | |
hasDirectory = true; | |
var promise = getEntriesAsPromise(readers, entry, resultingEntries); | |
promise.then(function() { | |
if (readers.size == 0) { | |
importEntries(e, resultingEntries) | |
} | |
}) | |
} | |
} | |
} | |
if (!hasDirectory) { | |
importEntries(e, resultingEntries) | |
} | |
} else { | |
_Window_dropEvent(_viewHandleFromElement(e.target), e.pageX, e.pageY, _modifierKeys(e), _cppStringFromJSString(_fileArrayToString(e.dataTransfer.files))) | |
} | |
}) | |
} | |
function _Window_setTextCaretBounds(x, y, height) { | |
_Window_customFocusElementReadWrite.style.left = x + "px"; | |
_Window_customFocusElementReadWrite.style.top = y + "px"; | |
_Window_customFocusElementReadWrite.style.height = height + "px"; | |
_Window_customFocusElementReadWrite.style.fontSize = height * .8 + "px" | |
} | |
function _Window_setTitle(title) { | |
document.title = _jsStringFromCPPString(title) | |
} | |
function _Window_title() { | |
return _cppStringFromJSString(document.title) | |
} | |
function _Window_viewWithFocus() { | |
return _Window_currentViewHandleWithFocus | |
} | |
var _Zip_worker = null; | |
function _Zip_core(json) { | |
var json; | |
var JSZip = new Function('!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.JSZip=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module \'"+g+"\'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";c.encode=function(a){for(var b,c,e,f,g,h,i,j="",k=0;k<a.length;)b=a.charCodeAt(k++),c=a.charCodeAt(k++),e=a.charCodeAt(k++),f=b>>2,g=(3&b)<<4|c>>4,h=(15&c)<<2|e>>6,i=63&e,isNaN(c)?h=i=64:isNaN(e)&&(i=64),j=j+d.charAt(f)+d.charAt(g)+d.charAt(h)+d.charAt(i);return j},c.decode=function(a){var b,c,e,f,g,h,i,j="",k=0;for(a=a.replace(/[^A-Za-z0-9\\+\\/\\=]/g,"");k<a.length;)f=d.indexOf(a.charAt(k++)),g=d.indexOf(a.charAt(k++)),h=d.indexOf(a.charAt(k++)),i=d.indexOf(a.charAt(k++)),b=f<<2|g>>4,c=(15&g)<<4|h>>2,e=(3&h)<<6|i,j+=String.fromCharCode(b),64!=h&&(j+=String.fromCharCode(c)),64!=i&&(j+=String.fromCharCode(e));return j}},{}],2:[function(a,b){"use strict";function c(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}c.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},b.exports=c},{}],3:[function(a,b,c){"use strict";c.STORE={magic:"\\x00\\x00",compress:function(a){return a},uncompress:function(a){return a},compressInputType:null,uncompressInputType:null},c.DEFLATE=a("./flate")},{"./flate":8}],4:[function(a,b){"use strict";var c=a("./utils"),d=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];b.exports=function(a,b){if("undefined"==typeof a||!a.length)return 0;var e="string"!==c.getTypeOf(a);"undefined"==typeof b&&(b=0);var f=0,g=0,h=0;b=-1^b;for(var i=0,j=a.length;j>i;i++)h=e?a[i]:a.charCodeAt(i),g=255&(b^h),f=d[g],b=b>>>8^f;return-1^b}},{"./utils":21}],5:[function(a,b){"use strict";function c(){this.data=null,this.length=0,this.index=0}var d=a("./utils");c.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<a||0>a)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var b,c=0;for(this.checkOffset(a),b=this.index+a-1;b>=this.index;b--)c=(c<<8)+this.byteAt(b);return this.index+=a,c},readString:function(a){return d.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date((a>>25&127)+1980,(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1)}},b.exports=c},{"./utils":21}],6:[function(a,b,c){"use strict";c.base64=!1,c.binary=!1,c.dir=!1,c.createFolders=!1,c.date=null,c.compression=null,c.comment=null},{}],7:[function(a,b,c){"use strict";var d=a("./utils");c.string2binary=function(a){return d.string2binary(a)},c.string2Uint8Array=function(a){return d.transformTo("uint8array",a)},c.uint8Array2String=function(a){return d.transformTo("string",a)},c.string2Blob=function(a){var b=d.transformTo("arraybuffer",a);return d.arrayBuffer2Blob(b)},c.arrayBuffer2Blob=function(a){return d.arrayBuffer2Blob(a)},c.transformTo=function(a,b){return d.transformTo(a,b)},c.getTypeOf=function(a){return d.getTypeOf(a)},c.checkSupport=function(a){return d.checkSupport(a)},c.MAX_VALUE_16BITS=d.MAX_VALUE_16BITS,c.MAX_VALUE_32BITS=d.MAX_VALUE_32BITS,c.pretty=function(a){return d.pretty(a)},c.findCompression=function(a){return d.findCompression(a)},c.isRegExp=function(a){return d.isRegExp(a)}},{"./utils":21}],8:[function(a,b,c){"use strict";var d="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,e=a("pako");c.uncompressInputType=d?"uint8array":"array",c.compressInputType=d?"uint8array":"array",c.magic="\\b\\x00",c.compress=function(a){return e.deflateRaw(a)},c.uncompress=function(a){return e.inflateRaw(a)}},{pako:24}],9:[function(a,b){"use strict";function c(a,b){return this instanceof c?(this.files={},this.comment=null,this.root="",a&&this.load(a,b),void(this.clone=function(){var a=new c;for(var b in this)"function"!=typeof this[b]&&(a[b]=this[b]);return a})):new c(a,b)}var d=a("./base64");c.prototype=a("./object"),c.prototype.load=a("./load"),c.support=a("./support"),c.defaults=a("./defaults"),c.utils=a("./deprecatedPublicUtils"),c.base64={encode:function(a){return d.encode(a)},decode:function(a){return d.decode(a)}},c.compressions=a("./compressions"),b.exports=c},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(a,b){"use strict";var c=a("./base64"),d=a("./zipEntries");b.exports=function(a,b){var e,f,g,h;for(b=b||{},b.base64&&(a=c.decode(a)),f=new d(a,b),e=f.files,g=0;g<e.length;g++)h=e[g],this.file(h.fileName,h.decompressed,{binary:!0,optimizedBinaryString:!0,date:h.date,dir:h.dir,comment:h.fileComment.length?h.fileComment:null,createFolders:b.createFolders});return f.zipComment.length&&(this.comment=f.zipComment),this}},{"./base64":1,"./zipEntries":22}],11:[function(a,b){(function(a){"use strict";b.exports=function(b,c){return new a(b,c)},b.exports.test=function(b){return a.isBuffer(b)}}).call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],12:[function(a,b){"use strict";function c(a){this.data=a,this.length=this.data.length,this.index=0}var d=a("./uint8ArrayReader");c.prototype=new d,c.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.index,this.index+a);return this.index+=a,b},b.exports=c},{"./uint8ArrayReader":18}],13:[function(a,b){"use strict";var c=a("./support"),d=a("./utils"),e=a("./crc32"),f=a("./signature"),g=a("./defaults"),h=a("./base64"),i=a("./compressions"),j=a("./compressedObject"),k=a("./nodeBuffer"),l=a("./utf8"),m=a("./stringWriter"),n=a("./uint8ArrayWriter"),o=function(a){if(a._data instanceof j&&(a._data=a._data.getContent(),a.options.binary=!0,a.options.base64=!1,"uint8array"===d.getTypeOf(a._data))){var b=a._data;a._data=new Uint8Array(b.length),0!==b.length&&a._data.set(b,0)}return a._data},p=function(a){var b=o(a),e=d.getTypeOf(b);return"string"===e?!a.options.binary&&c.nodebuffer?k(b,"utf-8"):a.asBinary():b},q=function(a){var b=o(this);return null===b||"undefined"==typeof b?"":(this.options.base64&&(b=h.decode(b)),b=a&&this.options.binary?A.utf8decode(b):d.transformTo("string",b),a||this.options.binary||(b=d.transformTo("string",A.utf8encode(b))),b)},r=function(a,b,c){this.name=a,this.dir=c.dir,this.date=c.date,this.comment=c.comment,this._data=b,this.options=c,this._initialMetadata={dir:c.dir,date:c.date}};r.prototype={asText:function(){return q.call(this,!0)},asBinary:function(){return q.call(this,!1)},asNodeBuffer:function(){var a=p(this);return d.transformTo("nodebuffer",a)},asUint8Array:function(){var a=p(this);return d.transformTo("uint8array",a)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var s=function(a,b){var c,d="";for(c=0;b>c;c++)d+=String.fromCharCode(255&a),a>>>=8;return d},t=function(){var a,b,c={};for(a=0;a<arguments.length;a++)for(b in arguments[a])arguments[a].hasOwnProperty(b)&&"undefined"==typeof c[b]&&(c[b]=arguments[a][b]);return c},u=function(a){return a=a||{},a.base64!==!0||null!==a.binary&&void 0!==a.binary||(a.binary=!0),a=t(a,g),a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),a},v=function(a,b,c){var e,f=d.getTypeOf(b);if(c=u(c),c.createFolders&&(e=w(a))&&x.call(this,e,!0),c.dir||null===b||"undefined"==typeof b)c.base64=!1,c.binary=!1,b=null;else if("string"===f)c.binary&&!c.base64&&c.optimizedBinaryString!==!0&&(b=d.string2binary(b));else{if(c.base64=!1,c.binary=!0,!(f||b instanceof j))throw new Error("The data of \'"+a+"\' is in an unsupported format !");"arraybuffer"===f&&(b=d.transformTo("uint8array",b))}var g=new r(a,b,c);return this.files[a]=g,g},w=function(a){"/"==a.slice(-1)&&(a=a.substring(0,a.length-1));var b=a.lastIndexOf("/");return b>0?a.substring(0,b):""},x=function(a,b){return"/"!=a.slice(-1)&&(a+="/"),b="undefined"!=typeof b?b:!1,this.files[a]||v.call(this,a,null,{dir:!0,createFolders:b}),this.files[a]},y=function(a,b){var c,f=new j;return a._data instanceof j?(f.uncompressedSize=a._data.uncompressedSize,f.crc32=a._data.crc32,0===f.uncompressedSize||a.dir?(b=i.STORE,f.compressedContent="",f.crc32=0):a._data.compressionMethod===b.magic?f.compressedContent=a._data.getCompressedContent():(c=a._data.getContent(),f.compressedContent=b.compress(d.transformTo(b.compressInputType,c)))):(c=p(a),(!c||0===c.length||a.dir)&&(b=i.STORE,c=""),f.uncompressedSize=c.length,f.crc32=e(c),f.compressedContent=b.compress(d.transformTo(b.compressInputType,c))),f.compressedSize=f.compressedContent.length,f.compressionMethod=b.magic,f},z=function(a,b,c,g){var h,i,j,k,m=(c.compressedContent,d.transformTo("string",l.utf8encode(b.name))),n=b.comment||"",o=d.transformTo("string",l.utf8encode(n)),p=m.length!==b.name.length,q=o.length!==n.length,r=b.options,t="",u="",v="";j=b._initialMetadata.dir!==b.dir?b.dir:r.dir,k=b._initialMetadata.date!==b.date?b.date:r.date,h=k.getHours(),h<<=6,h|=k.getMinutes(),h<<=5,h|=k.getSeconds()/2,i=k.getFullYear()-1980,i<<=4,i|=k.getMonth()+1,i<<=5,i|=k.getDate(),p&&(u=s(1,1)+s(e(m),4)+m,t+="up"+s(u.length,2)+u),q&&(v=s(1,1)+s(this.crc32(o),4)+o,t+="uc"+s(v.length,2)+v);var w="";w+="\\n\\x00",w+=p||q?"\\x00\\b":"\\x00\\x00",w+=c.compressionMethod,w+=s(h,2),w+=s(i,2),w+=s(c.crc32,4),w+=s(c.compressedSize,4),w+=s(c.uncompressedSize,4),w+=s(m.length,2),w+=s(t.length,2);var x=f.LOCAL_FILE_HEADER+w+m+t,y=f.CENTRAL_FILE_HEADER+"\\x00"+w+s(o.length,2)+"\\x00\\x00\\x00\\x00"+(j===!0?"\\x00\\x00\\x00":"\\x00\\x00\\x00\\x00")+s(g,4)+m+t+o;return{fileRecord:x,dirRecord:y,compressedObject:c}},A={load:function(){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(a){var b,c,d,e,f=[];for(b in this.files)this.files.hasOwnProperty(b)&&(d=this.files[b],e=new r(d.name,d._data,t(d.options)),c=b.slice(this.root.length,b.length),b.slice(0,this.root.length)===this.root&&a(c,e)&&f.push(e));return f},file:function(a,b,c){if(1===arguments.length){if(d.isRegExp(a)){var e=a;return this.filter(function(a,b){return!b.dir&&e.test(a)})}return this.filter(function(b,c){return!c.dir&&b===a})[0]||null}return a=this.root+a,v.call(this,a,b,c),this},folder:function(a){if(!a)return this;if(d.isRegExp(a))return this.filter(function(b,c){return c.dir&&a.test(b)});var b=this.root+a,c=x.call(this,b),e=this.clone();return e.root=c.name,e},remove:function(a){a=this.root+a;var b=this.files[a];if(b||("/"!=a.slice(-1)&&(a+="/"),b=this.files[a]),b&&!b.dir)delete this.files[a];else for(var c=this.filter(function(b,c){return c.name.slice(0,a.length)===a}),d=0;d<c.length;d++)delete this.files[c[d].name];return this},generate:function(a){a=t(a||{},{base64:!0,compression:"STORE",type:"base64",comment:null}),d.checkSupport(a.type);var b,c,e=[],g=0,j=0,k=d.transformTo("string",this.utf8encode(a.comment||this.comment||""));for(var l in this.files)if(this.files.hasOwnProperty(l)){var o=this.files[l],p=o.options.compression||a.compression.toUpperCase(),q=i[p];if(!q)throw new Error(p+" is not a valid compression method !");var r=y.call(this,o,q),u=z.call(this,l,o,r,g);g+=u.fileRecord.length+r.compressedSize,j+=u.dirRecord.length,e.push(u)}var v="";v=f.CENTRAL_DIRECTORY_END+"\\x00\\x00\\x00\\x00"+s(e.length,2)+s(e.length,2)+s(j,4)+s(g,4)+s(k.length,2)+k;var w=a.type.toLowerCase();for(b="uint8array"===w||"arraybuffer"===w||"blob"===w||"nodebuffer"===w?new n(g+j+v.length):new m(g+j+v.length),c=0;c<e.length;c++)b.append(e[c].fileRecord),b.append(e[c].compressedObject.compressedContent);for(c=0;c<e.length;c++)b.append(e[c].dirRecord);b.append(v);var x=b.finalize();switch(a.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return d.transformTo(a.type.toLowerCase(),x);case"blob":return d.arrayBuffer2Blob(d.transformTo("arraybuffer",x));case"base64":return a.base64?h.encode(x):x;default:return x}},crc32:function(a,b){return e(a,b)},utf8encode:function(a){return d.transformTo("string",l.utf8encode(a))},utf8decode:function(a){return l.utf8decode(a)}};b.exports=A},{"./base64":1,"./compressedObject":2,"./compressions":3,"./crc32":4,"./defaults":6,"./nodeBuffer":11,"./signature":14,"./stringWriter":16,"./support":17,"./uint8ArrayWriter":19,"./utf8":20,"./utils":21}],14:[function(a,b,c){"use strict";c.LOCAL_FILE_HEADER="PK",c.CENTRAL_FILE_HEADER="PK",c.CENTRAL_DIRECTORY_END="PK",c.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",c.ZIP64_CENTRAL_DIRECTORY_END="PK",c.DATA_DESCRIPTOR="PK\\b"},{}],15:[function(a,b){"use strict";function c(a,b){this.data=a,b||(this.data=e.string2binary(this.data)),this.length=this.data.length,this.index=0}var d=a("./dataReader"),e=a("./utils");c.prototype=new d,c.prototype.byteAt=function(a){return this.data.charCodeAt(a)},c.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)},c.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.index,this.index+a);return this.index+=a,b},b.exports=c},{"./dataReader":5,"./utils":21}],16:[function(a,b){"use strict";var c=a("./utils"),d=function(){this.data=[]};d.prototype={append:function(a){a=c.transformTo("string",a),this.data.push(a)},finalize:function(){return this.data.join("")}},b.exports=d},{"./utils":21}],17:[function(a,b,c){(function(a){"use strict";if(c.base64=!0,c.array=!0,c.string=!0,c.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,c.nodebuffer="undefined"!=typeof a,c.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)c.blob=!1;else{var b=new ArrayBuffer(0);try{c.blob=0===new Blob([b],{type:"application/zip"}).size}catch(d){try{var e=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,f=new e;f.append(b),c.blob=0===f.getBlob("application/zip").size}catch(d){c.blob=!1}}}}).call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],18:[function(a,b){"use strict";function c(a){a&&(this.data=a,this.length=this.data.length,this.index=0)}var d=a("./dataReader");c.prototype=new d,c.prototype.byteAt=function(a){return this.data[a]},c.prototype.lastIndexOfSignature=function(a){for(var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.length-4;f>=0;--f)if(this.data[f]===b&&this.data[f+1]===c&&this.data[f+2]===d&&this.data[f+3]===e)return f;return-1},c.prototype.readData=function(a){if(this.checkOffset(a),0===a)return new Uint8Array(0);var b=this.data.subarray(this.index,this.index+a);return this.index+=a,b},b.exports=c},{"./dataReader":5}],19:[function(a,b){"use strict";var c=a("./utils"),d=function(a){this.data=new Uint8Array(a),this.index=0};d.prototype={append:function(a){0!==a.length&&(a=c.transformTo("uint8array",a),this.data.set(a,this.index),this.index+=a.length)},finalize:function(){return this.data}},b.exports=d},{"./utils":21}],20:[function(a,b,c){"use strict";for(var d=a("./utils"),e=a("./support"),f=a("./nodeBuffer"),g=new Array(256),h=0;256>h;h++)g[h]=h>=252?6:h>=248?5:h>=240?4:h>=224?3:h>=192?2:1;g[254]=g[254]=1;var i=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;h>f;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),i+=128>c?1:2048>c?2:65536>c?3:4;for(b=e.uint8array?new Uint8Array(i):new Array(i),g=0,f=0;i>g;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),128>c?b[g++]=c:2048>c?(b[g++]=192|c>>>6,b[g++]=128|63&c):65536>c?(b[g++]=224|c>>>12,b[g++]=128|c>>>6&63,b[g++]=128|63&c):(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63,b[g++]=128|c>>>6&63,b[g++]=128|63&c);return b},j=function(a,b){var c;for(b=b||a.length,b>a.length&&(b=a.length),c=b-1;c>=0&&128===(192&a[c]);)c--;return 0>c?b:0===c?b:c+g[a[c]]>b?c:b},k=function(a){var b,c,e,f,h=a.length,i=new Array(2*h);for(c=0,b=0;h>b;)if(e=a[b++],128>e)i[c++]=e;else if(f=g[e],f>4)i[c++]=65533,b+=f-1;else{for(e&=2===f?31:3===f?15:7;f>1&&h>b;)e=e<<6|63&a[b++],f--;f>1?i[c++]=65533:65536>e?i[c++]=e:(e-=65536,i[c++]=55296|e>>10&1023,i[c++]=56320|1023&e)}return i.length!==c&&(i.subarray?i=i.subarray(0,c):i.length=c),d.applyFromCharCode(i)};c.utf8encode=function(a){return e.nodebuffer?f(a,"utf-8"):i(a)},c.utf8decode=function(a){if(e.nodebuffer)return d.transformTo("nodebuffer",a).toString("utf-8");a=d.transformTo(e.uint8array?"uint8array":"array",a);for(var b=[],c=0,f=a.length,g=65536;f>c;){var h=j(a,Math.min(c+g,f));b.push(e.uint8array?k(a.subarray(c,h)):k(a.slice(c,h))),c=h}return b.join("")}},{"./nodeBuffer":11,"./support":17,"./utils":21}],21:[function(a,b,c){"use strict";function d(a){return a}function e(a,b){for(var c=0;c<a.length;++c)b[c]=255&a.charCodeAt(c);return b}function f(a){var b=65536,d=[],e=a.length,f=c.getTypeOf(a),g=0,h=!0;try{switch(f){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,j(0))}}catch(i){h=!1}if(!h){for(var k="",l=0;l<a.length;l++)k+=String.fromCharCode(a[l]);return k}for(;e>g&&b>1;)try{d.push("array"===f||"nodebuffer"===f?String.fromCharCode.apply(null,a.slice(g,Math.min(g+b,e))):String.fromCharCode.apply(null,a.subarray(g,Math.min(g+b,e)))),g+=b}catch(i){b=Math.floor(b/2)}return d.join("")}function g(a,b){for(var c=0;c<a.length;c++)b[c]=a[c];return b}var h=a("./support"),i=a("./compressions"),j=a("./nodeBuffer");c.string2binary=function(a){for(var b="",c=0;c<a.length;c++)b+=String.fromCharCode(255&a.charCodeAt(c));return b},c.arrayBuffer2Blob=function(a){c.checkSupport("blob");try{return new Blob([a],{type:"application/zip"})}catch(b){try{var d=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,e=new d;return e.append(a),e.getBlob("application/zip")}catch(b){throw new Error("Bug : can\'t construct the Blob.")}}},c.applyFromCharCode=f;var k={};k.string={string:d,array:function(a){return e(a,new Array(a.length))},arraybuffer:function(a){return k.string.uint8array(a).buffer},uint8array:function(a){return e(a,new Uint8Array(a.length))},nodebuffer:function(a){return e(a,j(a.length))}},k.array={string:f,array:d,arraybuffer:function(a){return new Uint8Array(a).buffer},uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return j(a)}},k.arraybuffer={string:function(a){return f(new Uint8Array(a))},array:function(a){return g(new Uint8Array(a),new Array(a.byteLength))},arraybuffer:d,uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return j(new Uint8Array(a))}},k.uint8array={string:f,array:function(a){return g(a,new Array(a.length))},arraybuffer:function(a){return a.buffer},uint8array:d,nodebuffer:function(a){return j(a)}},k.nodebuffer={string:f,array:function(a){return g(a,new Array(a.length))},arraybuffer:function(a){return k.nodebuffer.uint8array(a).buffer},uint8array:function(a){return g(a,new Uint8Array(a.length))},nodebuffer:d},c.transformTo=function(a,b){if(b||(b=""),!a)return b;c.checkSupport(a);var d=c.getTypeOf(b),e=k[d][a](b);return e},c.getTypeOf=function(a){return"string"==typeof a?"string":"[object Array]"===Object.prototype.toString.call(a)?"array":h.nodebuffer&&j.test(a)?"nodebuffer":h.uint8array&&a instanceof Uint8Array?"uint8array":h.arraybuffer&&a instanceof ArrayBuffer?"arraybuffer":void 0},c.checkSupport=function(a){var b=h[a.toLowerCase()];if(!b)throw new Error(a+" is not supported by this browser")},c.MAX_VALUE_16BITS=65535,c.MAX_VALUE_32BITS=-1,c.pretty=function(a){var b,c,d="";for(c=0;c<(a||"").length;c++)b=a.charCodeAt(c),d+="\\\\x"+(16>b?"0":"")+b.toString(16).toUpperCase();return d},c.findCompression=function(a){for(var b in i)if(i.hasOwnProperty(b)&&i[b].magic===a)return i[b];return null},c.isRegExp=function(a){return"[object RegExp]"===Object.prototype.toString.call(a)}},{"./compressions":3,"./nodeBuffer":11,"./support":17}],22:[function(a,b){"use strict";function c(a,b){this.files=[],this.loadOptions=b,a&&this.load(a)}var d=a("./stringReader"),e=a("./nodeBufferReader"),f=a("./uint8ArrayReader"),g=a("./utils"),h=a("./signature"),i=a("./zipEntry"),j=a("./support"),k=a("./object");c.prototype={checkSignature:function(a){var b=this.reader.readString(4);if(b!==a)throw new Error("Corrupted zip or bug : unexpected signature ("+g.pretty(b)+", expected "+g.pretty(a)+")")},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2),this.zipComment=this.reader.readString(this.zipCommentLength),this.zipComment=k.utf8decode(this.zipComment)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var a,b,c,d=this.zip64EndOfCentralSize-44,e=0;d>e;)a=this.reader.readInt(2),b=this.reader.readInt(4),c=this.reader.readString(b),this.zip64ExtensibleData[a]={id:a,length:b,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var a,b;for(a=0;a<this.files.length;a++)b=this.files[a],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(h.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8()},readCentralDir:function(){var a;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===h.CENTRAL_FILE_HEADER;)a=new i({zip64:this.zip64},this.loadOptions),a.readCentralPart(this.reader),this.files.push(a)},readEndOfCentral:function(){var a=this.reader.lastIndexOfSignature(h.CENTRAL_DIRECTORY_END);if(-1===a)throw new Error("Corrupted zip : can\'t find end of central directory");if(this.reader.setIndex(a),this.checkSignature(h.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===g.MAX_VALUE_16BITS||this.diskWithCentralDirStart===g.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===g.MAX_VALUE_16BITS||this.centralDirRecords===g.MAX_VALUE_16BITS||this.centralDirSize===g.MAX_VALUE_32BITS||this.centralDirOffset===g.MAX_VALUE_32BITS){if(this.zip64=!0,a=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),-1===a)throw new Error("Corrupted zip : can\'t find the ZIP64 end of central directory locator");this.reader.setIndex(a),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}},prepareReader:function(a){var b=g.getTypeOf(a);this.reader="string"!==b||j.uint8array?"nodebuffer"===b?new e(a):new f(g.transformTo("uint8array",a)):new d(a,this.loadOptions.optimizedBinaryString)},load:function(a){this.prepareReader(a),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},b.exports=c},{"./nodeBufferReader":12,"./object":13,"./signature":14,"./stringReader":15,"./support":17,"./uint8ArrayReader":18,"./utils":21,"./zipEntry":23}],23:[function(a,b){"use strict";function c(a,b){this.options=a,this.loadOptions=b}var d=a("./stringReader"),e=a("./utils"),f=a("./compressedObject"),g=a("./object");c.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},prepareCompressedContent:function(a,b,c){return function(){var d=a.index;a.setIndex(b);var e=a.readData(c);return a.setIndex(d),e}},prepareContent:function(a,b,c,d,f){return function(){var a=e.transformTo(d.uncompressInputType,this.getCompressedContent()),b=d.uncompress(a);if(b.length!==f)throw new Error("Bug : uncompressed data size mismatch");return b}},readLocalPart:function(a){var b,c;if(a.skip(22),this.fileNameLength=a.readInt(2),c=a.readInt(2),this.fileName=a.readString(this.fileNameLength),a.skip(c),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn\'t get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(b=e.findCompression(this.compressionMethod),null===b)throw new Error("Corrupted zip : compression "+e.pretty(this.compressionMethod)+" unknown (inner file : "+this.fileName+")");if(this.decompressed=new f,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(a,a.index,this.compressedSize,b),this.decompressed.getContent=this.prepareContent(a,a.index,this.compressedSize,b,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=e.transformTo("string",this.decompressed.getContent()),g.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(a){if(this.versionMadeBy=a.readString(2),this.versionNeeded=a.readInt(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4),this.fileNameLength=a.readInt(2),this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=a.readString(this.fileNameLength),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readString(this.fileCommentLength),this.dir=16&this.externalFileAttributes?!0:!1},parseZIP64ExtraField:function(){if(this.extraFields[1]){var a=new d(this.extraFields[1].value);this.uncompressedSize===e.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===e.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===e.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===e.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4))}},readExtraFields:function(a){var b,c,d,e=a.index;for(this.extraFields=this.extraFields||{};a.index<e+this.extraFieldsLength;)b=a.readInt(2),c=a.readInt(2),d=a.readString(c),this.extraFields[b]={id:b,length:c,value:d}},handleUTF8:function(){if(this.useUTF8())this.fileName=g.utf8decode(this.fileName),this.fileComment=g.utf8decode(this.fileComment);else{var a=this.findExtraFieldUnicodePath();null!==a&&(this.fileName=a);var b=this.findExtraFieldUnicodeComment();null!==b&&(this.fileComment=b)}},findExtraFieldUnicodePath:function(){var a=this.extraFields[28789];if(a){var b=new d(a.value);return 1!==b.readInt(1)?null:g.crc32(this.fileName)!==b.readInt(4)?null:g.utf8decode(b.readString(a.length-5))}return null},findExtraFieldUnicodeComment:function(){var a=this.extraFields[25461];if(a){var b=new d(a.value);return 1!==b.readInt(1)?null:g.crc32(this.fileComment)!==b.readInt(4)?null:g.utf8decode(b.readString(a.length-5))}return null}},b.exports=c},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(a,b){"use strict";var c=a("./lib/utils/common").assign,d=a("./lib/deflate"),e=a("./lib/inflate"),f=a("./lib/zlib/constants"),g={};c(g,d,e,f),b.exports=g},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(a,b,c){"use strict";function d(a,b){var c=new s(b);if(c.push(a,!0),c.err)throw c.msg;return c.result}function e(a,b){return b=b||{},b.raw=!0,d(a,b)}function f(a,b){return b=b||{},b.gzip=!0,d(a,b)}var g=a("./zlib/deflate.js"),h=a("./utils/common"),i=a("./utils/strings"),j=a("./zlib/messages"),k=a("./zlib/zstream"),l=0,m=4,n=0,o=1,p=-1,q=0,r=8,s=function(a){this.options=h.assign({level:p,method:r,chunkSize:16384,windowBits:15,memLevel:8,strategy:q,to:""},a||{});var b=this.options;b.raw&&b.windowBits>0?b.windowBits=-b.windowBits:b.gzip&&b.windowBits>0&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new k,this.strm.avail_out=0;var c=g.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(c!==n)throw new Error(j[c]);b.header&&g.deflateSetHeader(this.strm,b.header)' + '};s.prototype.push=function(a,b){var c,d,e=this.strm,f=this.options.chunkSize;if(this.ended)return!1;d=b===~~b?b:b===!0?m:l,e.input="string"==typeof a?i.string2buf(a):a,e.next_in=0,e.avail_in=e.input.length;do{if(0===e.avail_out&&(e.output=new h.Buf8(f),e.next_out=0,e.avail_out=f),c=g.deflate(e,d),c!==o&&c!==n)return this.onEnd(c),this.ended=!0,!1;(0===e.avail_out||0===e.avail_in&&d===m)&&this.onData("string"===this.options.to?i.buf2binstring(h.shrinkBuf(e.output,e.next_out)):h.shrinkBuf(e.output,e.next_out))}while((e.avail_in>0||0===e.avail_out)&&c!==o);return d===m?(c=g.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===n):!0},s.prototype.onData=function(a){this.chunks.push(a)},s.prototype.onEnd=function(a){a===n&&(this.result="string"===this.options.to?this.chunks.join(""):h.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Deflate=s,c.deflate=d,c.deflateRaw=e,c.gzip=f},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(a,b,c){"use strict";function d(a,b){var c=new m(b);if(c.push(a,!0),c.err)throw c.msg;return c.result}function e(a,b){return b=b||{},b.raw=!0,d(a,b)}var f=a("./zlib/inflate.js"),g=a("./utils/common"),h=a("./utils/strings"),i=a("./zlib/constants"),j=a("./zlib/messages"),k=a("./zlib/zstream"),l=a("./zlib/gzheader"),m=function(a){this.options=g.assign({chunkSize:16384,windowBits:0,to:""},a||{});var b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,0===b.windowBits&&(b.windowBits=-15)),!(b.windowBits>=0&&b.windowBits<16)||a&&a.windowBits||(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&0===(15&b.windowBits)&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new k,this.strm.avail_out=0;var c=f.inflateInit2(this.strm,b.windowBits);if(c!==i.Z_OK)throw new Error(j[c]);this.header=new l,f.inflateGetHeader(this.strm,this.header)};m.prototype.push=function(a,b){var c,d,e,j,k,l=this.strm,m=this.options.chunkSize;if(this.ended)return!1;d=b===~~b?b:b===!0?i.Z_FINISH:i.Z_NO_FLUSH,l.input="string"==typeof a?h.binstring2buf(a):a,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=new g.Buf8(m),l.next_out=0,l.avail_out=m),c=f.inflate(l,i.Z_NO_FLUSH),c!==i.Z_STREAM_END&&c!==i.Z_OK)return this.onEnd(c),this.ended=!0,!1;l.next_out&&(0===l.avail_out||c===i.Z_STREAM_END||0===l.avail_in&&d===i.Z_FINISH)&&("string"===this.options.to?(e=h.utf8border(l.output,l.next_out),j=l.next_out-e,k=h.buf2string(l.output,e),l.next_out=j,l.avail_out=m-j,j&&g.arraySet(l.output,l.output,e,j,0),this.onData(k)):this.onData(g.shrinkBuf(l.output,l.next_out)))}while(l.avail_in>0&&c!==i.Z_STREAM_END);return c===i.Z_STREAM_END&&(d=i.Z_FINISH),d===i.Z_FINISH?(c=f.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===i.Z_OK):!0},m.prototype.onData=function(a){this.chunks.push(a)},m.prototype.onEnd=function(a){a===i.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):g.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Inflate=m,c.inflate=d,c.inflateRaw=e,c.ungzip=d},{"./utils/common":27,"./utils/strings":28,"./zlib/constants":30,"./zlib/gzheader":33,"./zlib/inflate.js":35,"./zlib/messages":37,"./zlib/zstream":39}],27:[function(a,b,c){"use strict";var d="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;c.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!=typeof c)throw new TypeError(c+"must be non-object");for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}}return a},c.shrinkBuf=function(a,b){return a.length===b?a:a.subarray?a.subarray(0,b):(a.length=b,a)};var e={arraySet:function(a,b,c,d,e){if(b.subarray&&a.subarray)return void a.set(b.subarray(c,c+d),e);for(var f=0;d>f;f++)a[e+f]=b[c+f]},flattenChunks:function(a){var b,c,d,e,f,g;for(d=0,b=0,c=a.length;c>b;b++)d+=a[b].length;for(g=new Uint8Array(d),e=0,b=0,c=a.length;c>b;b++)f=a[b],g.set(f,e),e+=f.length;return g}},f={arraySet:function(a,b,c,d,e){for(var f=0;d>f;f++)a[e+f]=b[c+f]},flattenChunks:function(a){return[].concat.apply([],a)}};c.setTyped=function(a){a?(c.Buf8=Uint8Array,c.Buf16=Uint16Array,c.Buf32=Int32Array,c.assign(c,e)):(c.Buf8=Array,c.Buf16=Array,c.Buf32=Array,c.assign(c,f))},c.setTyped(d)},{}],28:[function(a,b,c){"use strict";function d(a,b){if(65537>b&&(a.subarray&&g||!a.subarray&&f))return String.fromCharCode.apply(null,e.shrinkBuf(a,b));for(var c="",d=0;b>d;d++)c+=String.fromCharCode(a[d]);return c}var e=a("./common"),f=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch(h){f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(h){g=!1}for(var i=new e.Buf8(256),j=0;256>j;j++)i[j]=j>=252?6:j>=248?5:j>=240?4:j>=224?3:j>=192?2:1;i[254]=i[254]=1,c.string2buf=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;h>f;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),i+=128>c?1:2048>c?2:65536>c?3:4;for(b=new e.Buf8(i),g=0,f=0;i>g;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),128>c?b[g++]=c:2048>c?(b[g++]=192|c>>>6,b[g++]=128|63&c):65536>c?(b[g++]=224|c>>>12,b[g++]=128|c>>>6&63,b[g++]=128|63&c):(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63,b[g++]=128|c>>>6&63,b[g++]=128|63&c);return b},c.buf2binstring=function(a){return d(a,a.length)},c.binstring2buf=function(a){for(var b=new e.Buf8(a.length),c=0,d=b.length;d>c;c++)b[c]=a.charCodeAt(c);return b},c.buf2string=function(a,b){var c,e,f,g,h=b||a.length,j=new Array(2*h);for(e=0,c=0;h>c;)if(f=a[c++],128>f)j[e++]=f;else if(g=i[f],g>4)j[e++]=65533,c+=g-1;else{for(f&=2===g?31:3===g?15:7;g>1&&h>c;)f=f<<6|63&a[c++],g--;g>1?j[e++]=65533:65536>f?j[e++]=f:(f-=65536,j[e++]=55296|f>>10&1023,j[e++]=56320|1023&f)}return d(j,e)},c.utf8border=function(a,b){var c;for(b=b||a.length,b>a.length&&(b=a.length),c=b-1;c>=0&&128===(192&a[c]);)c--;return 0>c?b:0===c?b:c+i[a[c]]>b?c:b}},{"./common":27}],29:[function(a,b){"use strict";function c(a,b,c,d){for(var e=65535&a|0,f=a>>>16&65535|0,g=0;0!==c;){g=c>2e3?2e3:c,c-=g;do e=e+b[d++]|0,f=f+e|0;while(--g);e%=65521,f%=65521}return e|f<<16|0}b.exports=c},{}],30:[function(a,b){b.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],31:[function(a,b){"use strict";function c(){for(var a,b=[],c=0;256>c;c++){a=c;for(var d=0;8>d;d++)a=1&a?3988292384^a>>>1:a>>>1;b[c]=a}return b}function d(a,b,c,d){var f=e,g=d+c;a=-1^a;for(var h=d;g>h;h++)a=a>>>8^f[255&(a^b[h])];return-1^a}var e=c();b.exports=d},{}],32:[function(a,b,c){"use strict";function d(a,b){return a.msg=G[b],b}function e(a){return(a<<1)-(a>4?9:0)}function f(a){for(var b=a.length;--b>=0;)a[b]=0}function g(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0!==c&&(C.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function h(a,b){D._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,b),a.block_start=a.strstart,g(a.strm)}function i(a,b){a.pending_buf[a.pending++]=b}function j(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pending++]=255&b}function k(a,b,c,d){var e=a.avail_in;return e>d&&(e=d),0===e?0:(a.avail_in-=e,C.arraySet(b,a.input,a.next_in,e,c),1===a.state.wrap?a.adler=E(a.adler,b,e,c):2===a.state.wrap&&(a.adler=F(a.adler,b,e,c)),a.next_in+=e,a.total_in+=e,e)}function l(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_length,h=a.nice_match,i=a.strstart>a.w_size-jb?a.strstart-(a.w_size-jb):0,j=a.window,k=a.w_mask,l=a.prev,m=a.strstart+ib,n=j[f+g-1],o=j[f+g];a.prev_length>=a.good_match&&(e>>=2),h>a.lookahead&&(h=a.lookahead);do if(c=b,j[c+g]===o&&j[c+g-1]===n&&j[c]===j[f]&&j[++c]===j[f+1]){f+=2,c++;do;while(j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&m>f);if(d=ib-(m-f),f=m-ib,d>g){if(a.match_start=b,g=d,d>=h)break;n=j[f+g-1],o=j[f+g]}}while((b=l[b&k])>i&&0!==--e);return g<=a.lookahead?g:a.lookahead}function m(a){var b,c,d,e,f,g=a.w_size;do{if(e=a.window_size-a.lookahead-a.strstart,a.strstart>=g+(g-jb)){C.arraySet(a.window,a.window,g,g,0),a.match_start-=g,a.strstart-=g,a.block_start-=g,c=a.hash_size,b=c;do d=a.head[--b],a.head[b]=d>=g?d-g:0;while(--c);c=g,b=c;do d=a.prev[--b],a.prev[b]=d>=g?d-g:0;while(--c);e+=g}if(0===a.strm.avail_in)break;if(c=k(a.strm,a.window,a.strstart+a.lookahead,e),a.lookahead+=c,a.lookahead+a.insert>=hb)for(f=a.strstart-a.insert,a.ins_h=a.window[f],a.ins_h=(a.ins_h<<a.hash_shift^a.window[f+1])&a.hash_mask;a.insert&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[f+hb-1])&a.hash_mask,a.prev[f&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=f,f++,a.insert--,!(a.lookahead+a.insert<hb)););}while(a.lookahead<jb&&0!==a.strm.avail_in)}function n(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){if(m(a),0===a.lookahead&&b===H)return sb;if(0===a.lookahead)break}a.strstart+=a.lookahead,a.lookahead=0;var d=a.block_start+c;if((0===a.strstart||a.strstart>=d)&&(a.lookahead=a.strstart-d,a.strstart=d,h(a,!1),0===a.strm.avail_out))return sb;if(a.strstart-a.block_start>=a.w_size-jb&&(h(a,!1),0===a.strm.avail_out))return sb}return a.insert=0,b===K?(h(a,!0),0===a.strm.avail_out?ub:vb):a.strstart>a.block_start&&(h(a,!1),0===a.strm.avail_out)?sb:sb}function o(a,b){for(var c,d;;){if(a.lookahead<jb){if(m(a),a.lookahead<jb&&b===H)return sb;if(0===a.lookahead)break}if(c=0,a.lookahead>=hb&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+hb-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),0!==c&&a.strstart-c<=a.w_size-jb&&(a.match_length=l(a,c)),a.match_length>=hb)if(d=D._tr_tally(a,a.strstart-a.match_start,a.match_length-hb),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=hb){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+hb-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(0!==--a.match_length);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else d=D._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(d&&(h(a,!1),0===a.strm.avail_out))return sb}return a.insert=a.strstart<hb-1?a.strstart:hb-1,b===K?(h(a,!0),0===a.strm.avail_out?ub:vb):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?sb:tb}function p(a,b){for(var c,d,e;;){if(a.lookahead<jb){if(m(a),a.lookahead<jb&&b===H)return sb;if(0===a.lookahead)break}if(c=0,a.lookahead>=hb&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+hb-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=hb-1,0!==c&&a.prev_length<a.max_lazy_match&&a.strstart-c<=a.w_size-jb&&(a.match_length=l(a,c),a.match_length<=5&&(a.strategy===S||a.match_length===hb&&a.strstart-a.match_start>4096)&&(a.match_length=hb-1)),a.prev_length>=hb&&a.match_length<=a.prev_length){e=a.strstart+a.lookahead-hb,d=D._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-hb),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=e&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+hb-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(0!==--a.prev_length);if(a.match_available=0,a.match_length=hb-1,a.strstart++,d&&(h(a,!1),0===a.strm.avail_out))return sb}else if(a.match_available){if(d=D._tr_tally(a,0,a.window[a.strstart-1]),d&&h(a,!1),a.strstart++,a.lookahead--,0===a.strm.avail_out)return sb}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(d=D._tr_tally(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart<hb-1?a.strstart:hb-1,b===K?(h(a,!0),0===a.strm.avail_out?ub:vb):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?sb:tb}function q(a,b){for(var c,d,e,f,g=a.window;;){if(a.lookahead<=ib){if(m(a),a.lookahead<=ib&&b===H)return sb;if(0===a.lookahead)break}if(a.match_length=0,a.lookahead>=hb&&a.strstart>0&&(e=a.strstart-1,d=g[e],d===g[++e]&&d===g[++e]&&d===g[++e])){f=a.strstart+ib;do;while(d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&f>e);a.match_length=ib-(f-e),a.match_length>a.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=hb?(c=D._tr_tally(a,1,a.match_length-hb),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=D._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),c&&(h(a,!1),0===a.strm.avail_out))return sb}return a.insert=0,b===K?(h(a,!0),0===a.strm.avail_out?ub:vb):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?sb:tb}function r(a,b){for(var c;;){if(0===a.lookahead&&(m(a),0===a.lookahead)){if(b===H)return sb;break}if(a.match_length=0,c=D._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,c&&(h(a,!1),0===a.strm.avail_out))return sb}return a.insert=0,b===K?(h(a,!0),0===a.strm.avail_out?ub:vb):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?sb:tb}function s(a){a.window_size=2*a.w_size,f(a.head),a.max_lazy_match=B[a.level].max_lazy,a.good_match=B[a.level].good_length,a.nice_match=B[a.level].nice_length,a.max_chain_length=B[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=hb-1,a.match_available=0,a.ins_h=0}function t(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new C.Buf16(2*fb),this.dyn_dtree=new C.Buf16(2*(2*db+1)),this.bl_tree=new C.Buf16(2*(2*eb+1)),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new C.Buf16(gb+1),this.heap=new C.Buf16(2*cb+1),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new C.Buf16(2*cb+1),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function u(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_type=X,b=a.state,b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?lb:qb,a.adler=2===b.wrap?0:1,b.last_flush=H,D._tr_init(b),M):d(a,O)}function v(a){var b=u(a);return b===M&&s(a.state),b}function w(a,b){return a&&a.state?2!==a.state.wrap?O:(a.state.gzhead=b,M):O}function x(a,b,c,e,f,g){if(!a)return O;var h=1;if(b===R&&(b=6),0>e?(h=0,e=-e):e>15&&(h=2,e-=16),1>f||f>Z||c!==Y||8>e||e>15||0>b||b>9||0>g||g>V)return d(a,O);8===e&&(e=9);var i=new t;return a.state=i,i.strm=a,i.wrap=h,i.gzhead=null,i.w_bits=e,i.w_size=1<<i.w_bits,i.w_mask=i.w_size-1,i.hash_bits=f+7,i.hash_size=1<<i.hash_bits,i.hash_mask=i.hash_size-1,i.hash_shift=~~((i.hash_bits+hb-1)/hb),i.window=new C.Buf8(2*i.w_size),i.head=new C.Buf16(i.hash_size),i.prev=new C.Buf16(i.w_size),i.lit_bufsize=1<<f+6,i.pending_buf_size=4*i.lit_bufsize,i.pending_buf=new C.Buf8(i.pending_buf_size),i.d_buf=i.lit_bufsize>>1,i.l_buf=3*i.lit_bufsize,i.level=b,i.strategy=g,i.method=c,v(a)}function y(a,b){return x(a,b,Y,$,_,W)}function z(a,b){var c,h,k,l;if(!a||!a.state||b>L||0>b)return a?d(a,O):O;if(h=a.state,!a.output||!a.input&&0!==a.avail_in||h.status===rb&&b!==K)return d(a,0===a.avail_out?Q:O);if(h.strm=a,c=h.last_flush,h.last_flush=b,h.status===lb)if(2===h.wrap)a.adler=0,i(h,31),i(h,139),i(h,8),h.gzhead?(i(h,(h.gzhead.text?1:0)+(h.gzhead.hcrc?2:0)+(h.gzhead.extra?4:0)+(h.gzhead.name?8:0)+(h.gzhead.comment?16:0)),i(h,255&h.gzhead.time),i(h,h.gzhead.time>>8&255),i(h,h.gzhead.time>>16&255),i(h,h.gzhead.time>>24&255),i(h,9===h.level?2:h.strategy>=T||h.level<2?4:0),i(h,255&h.gzhead.os),h.gzhead.extra&&h.gzhead.extra.length&&(i(h,255&h.gzhead.extra.length),i(h,h.gzhead.extra.length>>8&255)),h.gzhead.hcrc&&(a.adler=F(a.adler,h.pending_buf,h.pending,0)),h.gzindex=0,h.status=mb):(i(h,0),i(h,0),i(h,0),i(h,0),i(h,0),i(h,9===h.level?2:h.strategy>=T||h.level<2?4:0),i(h,wb),h.status=qb);else{var m=Y+(h.w_bits-8<<4)<<8,n=-1;n=h.strategy>=T||h.level<2?0:h.level<6?1:6===h.level?2:3,m|=n<<6,0!==h.strstart&&(m|=kb),m+=31-m%31,h.status=qb,j(h,m),0!==h.strstart&&(j(h,a.adler>>>16),j(h,65535&a.adler)),a.adler=1}if(h.status===mb)if(h.gzhead.extra){for(k=h.pending;h.gzindex<(65535&h.gzhead.extra.length)&&(h.pending!==h.pending_buf_size||(h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending!==h.pending_buf_size));)i(h,255&h.gzhead.extra[h.gzindex]),h.gzindex++;h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),h.gzindex===h.gzhead.extra.length&&(h.gzindex=0,h.status=nb)}else h.status=nb;if(h.status===nb)if(h.gzhead.name){k=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending===h.pending_buf_size)){l=1;break}l=h.gzindex<h.gzhead.name.length?255&h.gzhead.name.charCodeAt(h.gzindex++):0,i(h,l)}while(0!==l);h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),0===l&&(h.gzindex=0,h.status=ob)}else h.status=ob;if(h.status===ob)if(h.gzhead.comment){k=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending===h.pending_buf_size)){l=1;break}l=h.gzindex<h.gzhead.comment.length?255&h.gzhead.comment.charCodeAt(h.gzindex++):0,i(h,l)}while(0!==l);h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),0===l&&(h.status=pb)}else h.status=pb;if(h.status===pb&&(h.gzhead.hcrc?(h.pending+2>h.pending_buf_size&&g(a),h.pending+2<=h.pending_buf_size&&(i(h,255&a.adler),i(h,a.adler>>8&255),a.adler=0,h.status=qb)):h.status=qb),0!==h.pending){if(g(a),0===a.avail_out)return h.last_flush=-1,M}else if(0===a.avail_in&&e(b)<=e(c)&&b!==K)return d(a,Q);if(h.status===rb&&0!==a.avail_in)return d(a,Q);if(0!==a.avail_in||0!==h.lookahead||b!==H&&h.status!==rb){var o=h.strategy===T?r(h,b):h.strategy===U?q(h,b):B[h.level].func(h,b);if((o===ub||o===vb)&&(h.status=rb),o===sb||o===ub)return 0===a.avail_out&&(h.last_flush=-1),M;if(o===tb&&(b===I?D._tr_align(h):b!==L&&(D._tr_stored_block(h,0,0,!1),b===J&&(f(h.head),0===h.lookahead&&(h.strstart=0,h.block_start=0,h.insert=0))),g(a),0===a.avail_out))return h.last_flush=-1,M}return b!==K?M:h.wrap<=0?N:(2===h.wrap?(i(h,255&a.adler),i(h,a.adler>>8&255),i(h,a.adler>>16&255),i(h,a.adler>>24&255),i(h,255&a.total_in),i(h,a.total_in>>8&255),i(h,a.total_in>>16&255),i(h,a.total_in>>24&255)):(j(h,a.adler>>>16),j(h,65535&a.adler)),g(a),h.wrap>0&&(h.wrap=-h.wrap),0!==h.pending?M:N)}function A(a){var b;return a&&a.state?(b=a.state.status,b!==lb&&b!==mb&&b!==nb&&b!==ob&&b!==pb&&b!==qb&&b!==rb?d(a,O):(a.state=null,b===qb?d(a,P):M)):O}var B,C=a("../utils/common"),D=a("./trees"),E=a("./adler32"),F=a("./crc32"),G=a("./messages"),H=0,I=1,J=3,K=4,L=5,M=0,N=1,O=-2,P=-3,Q=-5,R=-1,S=1,T=2,U=3,V=4,W=0,X=2,Y=8,Z=9,$=15,_=8,ab=29,bb=256,cb=bb+1+ab,db=30,eb=19,fb=2*cb+1,gb=15,hb=3,ib=258,jb=ib+hb+1,kb=32,lb=42,mb=69,nb=73,ob=91,pb=103,qb=113,rb=666,sb=1,tb=2,ub=3,vb=4,wb=3,xb=function(a,b,c,d,e){this.good_length=a,this.max_lazy=b,this.nice_length=c,this.max_chain=d,this.func=e};B=[new xb(0,0,0,0,n),new xb(4,4,8,4,o),new xb(4,5,16,8,o),new xb(4,6,32,32,o),new xb(4,4,16,16,p),new xb(8,16,32,32,p),new xb(8,16,128,128,p),new xb(8,32,128,256,p),new xb(32,128,258,1024,p),new xb(32,258,258,4096,p)],c.deflateInit=y,c.deflateInit2=x,c.deflateReset=v,c.deflateResetKeep=u,c.deflateSetHeader=w,c.deflate=z,c.deflateEnd=A,c.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./messages":37,"./trees":38}],33:[function(a,b){"use strict";function c(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}b.exports=c},{}],34:[function(a,b){"use strict";var c=30,d=12;b.exports=function(a,b){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C;e=a.state,f=a.next_in,B=a.input,g=f+(a.avail_in-5),h=a.next_out,C=a.output,i=h-(b-a.avail_out),j=h+(a.avail_out-257),k=e.dmax,l=e.wsize,m=e.whave,n=e.wnext,o=e.window,p=e.hold,q=e.bits,r=e.lencode,s=e.distcode,t=(1<<e.lenbits)-1,u=(1<<e.distbits)-1;a:do{15>q&&(p+=B[f++]<<q,q+=8,p+=B[f++]<<q,q+=8),v=r[p&t];b:for(;;){if(w=v>>>24,p>>>=w,q-=w,w=v>>>16&255,0===w)C[h++]=65535&v;else{if(!(16&w)){if(0===(64&w)){v=r[(65535&v)+(p&(1<<w)-1)];continue b}if(32&w){e.mode=d;break a}a.msg="invalid literal/length code",e.mode=c;break a}x=65535&v,w&=15,w&&(w>q&&(p+=B[f++]<<q,q+=8),x+=p&(1<<w)-1,p>>>=w,q-=w),15>q&&(p+=B[f++]<<q,q+=8,p+=B[f++]<<q,q+=8),v=s[p&u];c:for(;;){if(w=v>>>24,p>>>=w,q-=w,w=v>>>16&255,!(16&w)){if(0===(64&w)){v=s[(65535&v)+(p&(1<<w)-1)];continue c}a.msg="invalid distance code",e.mode=c;break a}if(y=65535&v,w&=15,w>q&&(p+=B[f++]<<q,q+=8,w>q&&(p+=B[f++]<<q,q+=8)),y+=p&(1<<w)-1,y>k){a.msg="invalid distance too far back",e.mode=c;break a}if(p>>>=w,q-=w,w=h-i,y>w){if(w=y-w,w>m&&e.sane){a.msg="invalid distance too far back",e.mode=c;break a}if(z=0,A=o,0===n){if(z+=l-w,x>w){x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}}else if(w>n){if(z+=l+n-w,w-=n,x>w){x-=w;do C[h++]=o[z++];while(--w);if(z=0,x>n){w=n,x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}}}else if(z+=n-w,x>w){x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}for(;x>2;)C[h++]=A[z++],C[h++]=A[z++],C[h++]=A[z++],x-=3;x&&(C[h++]=A[z++],x>1&&(C[h++]=A[z++]))}else{z=h-y;do C[h++]=C[z++],C[h++]=C[z++],C[h++]=C[z++],x-=3;while(x>2);x&&(C[h++]=C[z++],x>1&&(C[h++]=C[z++]))}break}}break}}while(g>f&&j>h);x=q>>3,f-=x,q-=x<<3,p&=(1<<q)-1,a.next_in=f,a.next_out=h,a.avail_in=g>f?5+(g-f):5-(f-g),a.avail_out=j>h?257+(j-h):257-(h-j),e.hold=p,e.bits=q}},{}],35:[function(a,b,c){"use strict";function d(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function e(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=K,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new r.Buf32(ob),b.distcode=b.distdyn=new r.Buf32(pb),b.sane=1,b.back=-1,C):F}function g(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.wnext=0,f(a)):F}function h(a,b){var c,d;return a&&a.state?(d=a.state,0>b?(c=0,b=-b):(c=(b>>4)+1,48>b&&(b&=15)),b&&(8>b||b>15)?F:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,g(a))):F}function i(a,b){var c,d;return a?(d=new e,a.state=d,d.window=null,c=h(a,b),c!==C&&(a.state=null),c):F}function j(a){return i(a,rb)}function k(a){if(sb){var b;for(p=new r.Buf32(512),q=new r.Buf32(32),b=0;144>b;)a.lens[b++]=8;for(;256>b;)a.lens[b++]=9;for(;280>b;)a.lens[b++]=7;for(;288>b;)a.lens[b++]=8;for(v(x,a.lens,0,288,p,0,a.work,{bits:9}),b=0;32>b;)a.lens[b++]=5;v(y,a.lens,0,32,q,0,a.work,{bits:5}),sb=!1}a.lencode=p,a.lenbits=9,a.distcode=q,a.distbits=5}function l(a,b,c,d){var e,f=a.state;return null===f.window&&(f.wsize=1<<f.wbits,f.wnext=0,f.whave=0,f.window=new r.Buf8(f.wsize)),d>=f.wsize?(r.arraySet(f.window,b,c-f.wsize,f.wsize,0),f.wnext=0,f.whave=f.wsize):(e=f.wsize-f.wnext,e>d&&(e=d),r.arraySet(f.window,b,c-d,e,f.wnext),d-=e,d?(r.arraySet(f.window,b,c-d,d,0),f.wnext=d,f.whave=f.wsize):(f.wnext+=e,f.wnext===f.wsize&&(f.wnext=0),f.whave<f.wsize&&(f.whave+=e))),0}function m(a,b){var c,e,f,g,h,i,j,m,n,o,p,q,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab=0,Bb=new r.Buf8(4),Cb=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!a||!a.state||!a.output||!a.input&&0!==a.avail_in)return F;c=a.state,c.mode===V&&(c.mode=W),h=a.next_out,f=a.output,j=a.avail_out,g=a.next_in,e=a.input,i=a.avail_in,m=c.hold,n=c.bits,o=i,p=j,xb=C;a:for(;;)switch(c.mode){case K:if(0===c.wrap){c.mode=W;break}for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(2&c.wrap&&35615===m){c.check=0,Bb[0]=255&m,Bb[1]=m>>>8&255,c.check=t(c.check,Bb,2,0),m=0,n=0,c.mode=L;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&m)<<8)+(m>>8))%31){a.msg="incorrect header check",c.mode=lb;break}if((15&m)!==J){a.msg="unknown compression method",c.mode=lb;break}if(m>>>=4,n-=4,wb=(15&m)+8,0===c.wbits)c.wbits=wb;else if(wb>c.wbits){a.msg="invalid window size",c.mode=lb;break}c.dmax=1<<wb,a.adler=c.check=1,c.mode=512&m?T:V,m=0,n=0;break;case L:for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(c.flags=m,(255&c.flags)!==J){a.msg="unknown compression method",c.mode=lb;break}if(57344&c.flags){a.msg="unknown header flags set",c.mode=lb;break}c.head&&(c.head.text=m>>8&1),512&c.flags&&(Bb[0]=255&m,Bb[1]=m>>>8&255,c.check=t(c.check,Bb,2,0)),m=0,n=0,c.mode=M;case M:for(;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.head&&(c.head.time=m),512&c.flags&&(Bb[0]=255&m,Bb[1]=m>>>8&255,Bb[2]=m>>>16&255,Bb[3]=m>>>24&255,c.check=t(c.check,Bb,4,0)),m=0,n=0,c.mode=N;case N:for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.head&&(c.head.xflags=255&m,c.head.os=m>>8),512&c.flags&&(Bb[0]=255&m,Bb[1]=m>>>8&255,c.check=t(c.check,Bb,2,0)),m=0,n=0,c.mode=O;case O:if(1024&c.flags){for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.length=m,c.head&&(c.head.extra_len=m),512&c.flags&&(Bb[0]=255&m,Bb[1]=m>>>8&255,c.check=t(c.check,Bb,2,0)),m=0,n=0}else c.head&&(c.head.extra=null);c.mode=P;case P:if(1024&c.flags&&(q=c.length,q>i&&(q=i),q&&(c.head&&(wb=c.head.extra_len-c.length,c.head.extra||(c.head.extra=new Array(c.head.extra_len)),r.arraySet(c.head.extra,e,g,q,wb)),512&c.flags&&(c.check=t(c.check,e,q,g)),i-=q,g+=q,c.length-=q),c.length))break a;c.length=0,c.mode=Q;case Q:if(2048&c.flags){if(0===i)break a;q=0;do wb=e[g+q++],c.head&&wb&&c.length<65536&&(c.head.name+=String.fromCharCode(wb));while(wb&&i>q);if(512&c.flags&&(c.check=t(c.check,e,q,g)),i-=q,g+=q,wb)break a}else c.head&&(c.head.name=null);c.length=0,c.mode=R;case R:if(4096&c.flags){if(0===i)break a;q=0;do wb=e[g+q++],c.head&&wb&&c.length<65536&&(c.head.comment+=String.fromCharCode(wb));while(wb&&i>q);if(512&c.flags&&(c.check=t(c.check,e,q,g)),i-=q,g+=q,wb)break a}else c.head&&(c.head.comment=null);c.mode=S;case S:if(512&c.flags){for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m!==(65535&c.check)){a.msg="header crc mismatch",c.mode=lb;break}m=0,n=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=V;break;case T:for(;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}a.adler=c.check=d(m),m=0,n=0,c.mode=U;case U:if(0===c.havedict)return a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,E;a.adler=c.check=1,c.mode=V;case V:if(b===A||b===B)break a;case W:if(c.last){m>>>=7&n,n-=7&n,c.mode=ib;break}for(;3>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}switch(c.last=1&m,m>>>=1,n-=1,3&m){case 0:c.mode=X;break;case 1:if(k(c),c.mode=bb,b===B){m>>>=2,n-=2;break a}break;case 2:c.mode=$;break;case 3:a.msg="invalid block type",c.mode=lb}m>>>=2,n-=2;break;case X:for(m>>>=7&n,n-=7&n;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if((65535&m)!==(m>>>16^65535)){a.msg="invalid stored block lengths",c.mode=lb;break}if(c.length=65535&m,m=0,n=0,c.mode=Y,b===B)break a;case Y:c.mode=Z;case Z:if(q=c.length){if(q>i&&(q=i),q>j&&(q=j),0===q)break a;r.arraySet(f,e,g,q,h),i-=q,g+=q,j-=q,h+=q,c.length-=q;break}c.mode=V;break;case $:for(;14>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(c.nlen=(31&m)+257,m>>>=5,n-=5,c.ndist=(31&m)+1,m>>>=5,n-=5,c.ncode=(15&m)+4,m>>>=4,n-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=lb;break}c.have=0,c.mode=_;case _:for(;c.have<c.ncode;){for(;3>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.lens[Cb[c.have++]]=7&m,m>>>=3,n-=3}for(;c.have<19;)c.lens[Cb[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,yb={bits:c.lenbits},xb=v(w,c.lens,0,19,c.lencode,0,c.work,yb),c.lenbits=yb.bits,xb){a.msg="invalid code lengths set",c.mode=lb;break}c.have=0,c.mode=ab;case ab:for(;c.have<c.nlen+c.ndist;){for(;Ab=c.lencode[m&(1<<c.lenbits)-1],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(n>=qb);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(16>sb)m>>>=qb,n-=qb,c.lens[c.have++]=sb;else{if(16===sb){for(zb=qb+2;zb>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m>>>=qb,n-=qb,0===c.have){a.msg="invalid bit length repeat",c.mode=lb;break}wb=c.lens[c.have-1],q=3+(3&m),m>>>=2,n-=2}else if(17===sb){for(zb=qb+3;zb>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=qb,n-=qb,wb=0,q=3+(7&m),m>>>=3,n-=3}else{for(zb=qb+7;zb>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=qb,n-=qb,wb=0,q=11+(127&m),m>>>=7,n-=7}if(c.have+q>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=lb;break}for(;q--;)c.lens[c.have++]=wb}}if(c.mode===lb)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=lb;break}if(c.lenbits=9,yb={bits:c.lenbits},xb=v(x,c.lens,0,c.nlen,c.lencode,0,c.work,yb),c.lenbits=yb.bits,xb){a.msg="invalid literal/lengths set",c.mode=lb;break}if(c.distbits=6,c.distcode=c.distdyn,yb={bits:c.distbits},xb=v(y,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,yb),c.distbits=yb.bits,xb){a.msg="invalid distances set",c.mode=lb;break}if(c.mode=bb,b===B)break a;case bb:c.mode=cb;case cb:if(i>=6&&j>=258){a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,u(a,p),h=a.next_out,f=a.output,j=a.avail_out,g=a.next_in,e=a.input,i=a.avail_in,m=c.hold,n=c.bits,c.mode===V&&(c.back=-1);break}for(c.back=0;Ab=c.lencode[m&(1<<c.lenbits)-1],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(n>=qb);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(rb&&0===(240&rb)){for(tb=qb,ub=rb,vb=sb;Ab=c.lencode[vb+((m&(1<<tb+ub)-1)>>tb)],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(n>=tb+qb);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=tb,n-=tb,c.back+=tb}if(m>>>=qb,n-=qb,c.back+=qb,c.length=sb,0===rb){c.mode=hb;break}if(32&rb){c.back=-1,c.mode=V;break}if(64&rb){a.msg="invalid literal/length code",c.mode=lb;break}c.extra=15&rb,c.mode=db;case db:if(c.extra){for(zb=c.extra;zb>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.length+=m&(1<<c.extra)-1,m>>>=c.extra,n-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=eb;case eb:for(;Ab=c.distcode[m&(1<<c.distbits)-1],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(n>=qb);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(0===(240&rb)){for(tb=qb,ub=rb,vb=sb;Ab=c.distcode[vb+((m&(1<<tb+ub)-1)>>tb)],qb=Ab>>>24,rb=Ab>>>16&255,sb=65535&Ab,!(n>=tb+qb);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=tb,n-=tb,c.back+=tb}if(m>>>=qb,n-=qb,c.back+=qb,64&rb){a.msg="invalid distance code",c.mode=lb;break}c.offset=sb,c.extra=15&rb,c.mode=fb;case fb:if(c.extra){for(zb=c.extra;zb>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.offset+=m&(1<<c.extra)-1,m>>>=c.extra,n-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=lb;break}c.mode=gb;case gb:if(0===j)break a;' + 'if(q=p-j,c.offset>q){if(q=c.offset-q,q>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=lb;break}q>c.wnext?(q-=c.wnext,ob=c.wsize-q):ob=c.wnext-q,q>c.length&&(q=c.length),pb=c.window}else pb=f,ob=h-c.offset,q=c.length;q>j&&(q=j),j-=q,c.length-=q;do f[h++]=pb[ob++];while(--q);0===c.length&&(c.mode=cb);break;case hb:if(0===j)break a;f[h++]=c.length,j--,c.mode=cb;break;case ib:if(c.wrap){for(;32>n;){if(0===i)break a;i--,m|=e[g++]<<n,n+=8}if(p-=j,a.total_out+=p,c.total+=p,p&&(a.adler=c.check=c.flags?t(c.check,f,p,h-p):s(c.check,f,p,h-p)),p=j,(c.flags?m:d(m))!==c.check){a.msg="incorrect data check",c.mode=lb;break}m=0,n=0}c.mode=jb;case jb:if(c.wrap&&c.flags){for(;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m!==(4294967295&c.total)){a.msg="incorrect length check",c.mode=lb;break}m=0,n=0}c.mode=kb;case kb:xb=D;break a;case lb:xb=G;break a;case mb:return H;case nb:default:return F}return a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,(c.wsize||p!==a.avail_out&&c.mode<lb&&(c.mode<ib||b!==z))&&l(a,a.output,a.next_out,p-a.avail_out)?(c.mode=mb,H):(o-=a.avail_in,p-=a.avail_out,a.total_in+=o,a.total_out+=p,c.total+=p,c.wrap&&p&&(a.adler=c.check=c.flags?t(c.check,f,p,a.next_out-p):s(c.check,f,p,a.next_out-p)),a.data_type=c.bits+(c.last?64:0)+(c.mode===V?128:0)+(c.mode===bb||c.mode===Y?256:0),(0===o&&0===p||b===z)&&xb===C&&(xb=I),xb)}function n(a){if(!a||!a.state)return F;var b=a.state;return b.window&&(b.window=null),a.state=null,C}function o(a,b){var c;return a&&a.state?(c=a.state,0===(2&c.wrap)?F:(c.head=b,b.done=!1,C)):F}var p,q,r=a("../utils/common"),s=a("./adler32"),t=a("./crc32"),u=a("./inffast"),v=a("./inftrees"),w=0,x=1,y=2,z=4,A=5,B=6,C=0,D=1,E=2,F=-2,G=-3,H=-4,I=-5,J=8,K=1,L=2,M=3,N=4,O=5,P=6,Q=7,R=8,S=9,T=10,U=11,V=12,W=13,X=14,Y=15,Z=16,$=17,_=18,ab=19,bb=20,cb=21,db=22,eb=23,fb=24,gb=25,hb=26,ib=27,jb=28,kb=29,lb=30,mb=31,nb=32,ob=852,pb=592,qb=15,rb=qb,sb=!0;c.inflateReset=g,c.inflateReset2=h,c.inflateResetKeep=f,c.inflateInit=j,c.inflateInit2=i,c.inflate=m,c.inflateEnd=n,c.inflateGetHeader=o,c.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./inffast":34,"./inftrees":36}],36:[function(a,b){"use strict";var c=a("../utils/common"),d=15,e=852,f=592,g=0,h=1,i=2,j=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],k=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],m=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];b.exports=function(a,b,n,o,p,q,r,s){var t,u,v,w,x,y,z,A,B,C=s.bits,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=null,O=0,P=new c.Buf16(d+1),Q=new c.Buf16(d+1),R=null,S=0;for(D=0;d>=D;D++)P[D]=0;for(E=0;o>E;E++)P[b[n+E]]++;for(H=C,G=d;G>=1&&0===P[G];G--);if(H>G&&(H=G),0===G)return p[q++]=20971520,p[q++]=20971520,s.bits=1,0;for(F=1;G>F&&0===P[F];F++);for(F>H&&(H=F),K=1,D=1;d>=D;D++)if(K<<=1,K-=P[D],0>K)return-1;if(K>0&&(a===g||1!==G))return-1;for(Q[1]=0,D=1;d>D;D++)Q[D+1]=Q[D]+P[D];for(E=0;o>E;E++)0!==b[n+E]&&(r[Q[b[n+E]]++]=E);if(a===g?(N=R=r,y=19):a===h?(N=j,O-=257,R=k,S-=257,y=256):(N=l,R=m,y=-1),M=0,E=0,D=F,x=q,I=H,J=0,v=-1,L=1<<H,w=L-1,a===h&&L>e||a===i&&L>f)return 1;for(var T=0;;){T++,z=D-J,r[E]<y?(A=0,B=r[E]):r[E]>y?(A=R[S+r[E]],B=N[O+r[E]]):(A=96,B=0),t=1<<D-J,u=1<<I,F=u;do u-=t,p[x+(M>>J)+u]=z<<24|A<<16|B|0;while(0!==u);for(t=1<<D-1;M&t;)t>>=1;if(0!==t?(M&=t-1,M+=t):M=0,E++,0===--P[D]){if(D===G)break;D=b[n+r[E]]}if(D>H&&(M&w)!==v){for(0===J&&(J=H),x+=F,I=D-J,K=1<<I;G>I+J&&(K-=P[I+J],!(0>=K));)I++,K<<=1;if(L+=1<<I,a===h&&L>e||a===i&&L>f)return 1;v=M&w,p[v]=H<<24|I<<16|x-q|0}}return 0!==M&&(p[x+M]=D-J<<24|64<<16|0),s.bits=H,0}},{"../utils/common":27}],37:[function(a,b){"use strict";b.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],38:[function(a,b,c){"use strict";function d(a){for(var b=a.length;--b>=0;)a[b]=0}function e(a){return 256>a?gb[a]:gb[256+(a>>>7)]}function f(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function g(a,b,c){a.bi_valid>V-c?(a.bi_buf|=b<<a.bi_valid&65535,f(a,a.bi_buf),a.bi_buf=b>>V-a.bi_valid,a.bi_valid+=c-V):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)}function h(a,b,c){g(a,c[2*b],c[2*b+1])}function i(a,b){var c=0;do c|=1&a,a>>>=1,c<<=1;while(--b>0);return c>>>1}function j(a){16===a.bi_valid?(f(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}function k(a,b){var c,d,e,f,g,h,i=b.dyn_tree,j=b.max_code,k=b.stat_desc.static_tree,l=b.stat_desc.has_stree,m=b.stat_desc.extra_bits,n=b.stat_desc.extra_base,o=b.stat_desc.max_length,p=0;for(f=0;U>=f;f++)a.bl_count[f]=0;for(i[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;T>c;c++)d=a.heap[c],f=i[2*i[2*d+1]+1]+1,f>o&&(f=o,p++),i[2*d+1]=f,d>j||(a.bl_count[f]++,g=0,d>=n&&(g=m[d-n]),h=i[2*d],a.opt_len+=h*(f+g),l&&(a.static_len+=h*(k[2*d+1]+g)));if(0!==p){do{for(f=o-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[o]--,p-=2}while(p>0);for(f=o;0!==f;f--)for(d=a.bl_count[f];0!==d;)e=a.heap[--c],e>j||(i[2*e+1]!==f&&(a.opt_len+=(f-i[2*e+1])*i[2*e],i[2*e+1]=f),d--)}}function l(a,b,c){var d,e,f=new Array(U+1),g=0;for(d=1;U>=d;d++)f[d]=g=g+c[d-1]<<1;for(e=0;b>=e;e++){var h=a[2*e+1];0!==h&&(a[2*e]=i(f[h]++,h))}}function m(){var a,b,c,d,e,f=new Array(U+1);for(c=0,d=0;O-1>d;d++)for(ib[d]=c,a=0;a<1<<_[d];a++)hb[c++]=d;for(hb[c-1]=d,e=0,d=0;16>d;d++)for(jb[d]=e,a=0;a<1<<ab[d];a++)gb[e++]=d;for(e>>=7;R>d;d++)for(jb[d]=e<<7,a=0;a<1<<ab[d]-7;a++)gb[256+e++]=d;for(b=0;U>=b;b++)f[b]=0;for(a=0;143>=a;)eb[2*a+1]=8,a++,f[8]++;for(;255>=a;)eb[2*a+1]=9,a++,f[9]++;for(;279>=a;)eb[2*a+1]=7,a++,f[7]++;for(;287>=a;)eb[2*a+1]=8,a++,f[8]++;for(l(eb,Q+1,f),a=0;R>a;a++)fb[2*a+1]=5,fb[2*a]=i(a,5);kb=new nb(eb,_,P+1,Q,U),lb=new nb(fb,ab,0,R,U),mb=new nb(new Array(0),bb,0,S,W)}function n(a){var b;for(b=0;Q>b;b++)a.dyn_ltree[2*b]=0;for(b=0;R>b;b++)a.dyn_dtree[2*b]=0;for(b=0;S>b;b++)a.bl_tree[2*b]=0;a.dyn_ltree[2*X]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function o(a){a.bi_valid>8?f(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function p(a,b,c,d){o(a),d&&(f(a,c),f(a,~c)),E.arraySet(a.pending_buf,a.window,b,c,a.pending),a.pending+=c}function q(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]}function r(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_len&&q(b,a.heap[e+1],a.heap[e],a.depth)&&e++,!q(b,d,a.heap[e],a.depth));)a.heap[c]=a.heap[e],c=e,e<<=1;a.heap[c]=d}function s(a,b,c){var d,f,i,j,k=0;if(0!==a.last_lit)do d=a.pending_buf[a.d_buf+2*k]<<8|a.pending_buf[a.d_buf+2*k+1],f=a.pending_buf[a.l_buf+k],k++,0===d?h(a,f,b):(i=hb[f],h(a,i+P+1,b),j=_[i],0!==j&&(f-=ib[i],g(a,f,j)),d--,i=e(d),h(a,i,c),j=ab[i],0!==j&&(d-=jb[i],g(a,d,j)));while(k<a.last_lit);h(a,X,b)}function t(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.stat_desc.has_stree,i=b.stat_desc.elems,j=-1;for(a.heap_len=0,a.heap_max=T,c=0;i>c;c++)0!==f[2*c]?(a.heap[++a.heap_len]=j=c,a.depth[c]=0):f[2*c+1]=0;for(;a.heap_len<2;)e=a.heap[++a.heap_len]=2>j?++j:0,f[2*e]=1,a.depth[e]=0,a.opt_len--,h&&(a.static_len-=g[2*e+1]);for(b.max_code=j,c=a.heap_len>>1;c>=1;c--)r(a,f,c);e=i;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],r(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,r(a,f,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],k(a,b),l(f,j,a.bl_count)}function u(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[2*(c+1)+1]=65535,d=0;c>=d;d++)e=g,g=b[2*(d+1)+1],++h<i&&e===g||(j>h?a.bl_tree[2*e]+=h:0!==e?(e!==f&&a.bl_tree[2*e]++,a.bl_tree[2*Y]++):10>=h?a.bl_tree[2*Z]++:a.bl_tree[2*$]++,h=0,f=e,0===g?(i=138,j=3):e===g?(i=6,j=3):(i=7,j=4))}function v(a,b,c){var d,e,f=-1,i=b[1],j=0,k=7,l=4;for(0===i&&(k=138,l=3),d=0;c>=d;d++)if(e=i,i=b[2*(d+1)+1],!(++j<k&&e===i)){if(l>j){do h(a,e,a.bl_tree);while(0!==--j)}else 0!==e?(e!==f&&(h(a,e,a.bl_tree),j--),h(a,Y,a.bl_tree),g(a,j-3,2)):10>=j?(h(a,Z,a.bl_tree),g(a,j-3,3)):(h(a,$,a.bl_tree),g(a,j-11,7));j=0,f=e,0===i?(k=138,l=3):e===i?(k=6,l=3):(k=7,l=4)}}function w(a){var b;for(u(a,a.dyn_ltree,a.l_desc.max_code),u(a,a.dyn_dtree,a.d_desc.max_code),t(a,a.bl_desc),b=S-1;b>=3&&0===a.bl_tree[2*cb[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}function x(a,b,c,d){var e;for(g(a,b-257,5),g(a,c-1,5),g(a,d-4,4),e=0;d>e;e++)g(a,a.bl_tree[2*cb[e]+1],3);v(a,a.dyn_ltree,b-1),v(a,a.dyn_dtree,c-1)}function y(a){var b,c=4093624447;for(b=0;31>=b;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return G;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return H;for(b=32;P>b;b++)if(0!==a.dyn_ltree[2*b])return H;return G}function z(a){pb||(m(),pb=!0),a.l_desc=new ob(a.dyn_ltree,kb),a.d_desc=new ob(a.dyn_dtree,lb),a.bl_desc=new ob(a.bl_tree,mb),a.bi_buf=0,a.bi_valid=0,n(a)}function A(a,b,c,d){g(a,(J<<1)+(d?1:0),3),p(a,b,c,!0)}function B(a){g(a,K<<1,3),h(a,X,eb),j(a)}function C(a,b,c,d){var e,f,h=0;a.level>0?(a.strm.data_type===I&&(a.strm.data_type=y(a)),t(a,a.l_desc),t(a,a.d_desc),h=w(a),e=a.opt_len+3+7>>>3,f=a.static_len+3+7>>>3,e>=f&&(e=f)):e=f=c+5,e>=c+4&&-1!==b?A(a,b,c,d):a.strategy===F||f===e?(g(a,(K<<1)+(d?1:0),3),s(a,eb,fb)):(g(a,(L<<1)+(d?1:0),3),x(a,a.l_desc.max_code+1,a.d_desc.max_code+1,h+1),s(a,a.dyn_ltree,a.dyn_dtree)),n(a),d&&o(a)}function D(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[2*(hb[c]+P+1)]++,a.dyn_dtree[2*e(b)]++),a.last_lit===a.lit_bufsize-1}var E=a("../utils/common"),F=4,G=0,H=1,I=2,J=0,K=1,L=2,M=3,N=258,O=29,P=256,Q=P+1+O,R=30,S=19,T=2*Q+1,U=15,V=16,W=7,X=256,Y=16,Z=17,$=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ab=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],bb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],cb=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],db=512,eb=new Array(2*(Q+2));d(eb);var fb=new Array(2*R);d(fb);var gb=new Array(db);d(gb);var hb=new Array(N-M+1);d(hb);var ib=new Array(O);d(ib);var jb=new Array(R);d(jb);var kb,lb,mb,nb=function(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length},ob=function(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b},pb=!1;c._tr_init=z,c._tr_stored_block=A,c._tr_flush_block=C,c._tr_tally=D,c._tr_align=B},{"../utils/common":27}],39:[function(a,b){"use strict";function c(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}b.exports=c},{}]},{},[9])(9)});' + "return JSZip")(); | |
var NULL = new Function("return null")(); | |
function run(json) { | |
switch (json["operation"]) { | |
case "read": { | |
try { | |
var zip = new JSZip; | |
zip["load"](json["buffer"]); | |
return Object.keys(zip["files"]).map(function(name) { | |
return { | |
"name": name, | |
"contents": zip["file"](name)["asUint8Array"]() | |
} | |
}) | |
} catch (e) { | |
console.error(e && e.stack || e); | |
return NULL | |
} | |
break | |
} | |
case "write": { | |
try { | |
var zip = new JSZip; | |
json["files"].forEach(function(file) { | |
zip["file"](file["name"], file["contents"], { | |
"compression": file["compression"] ? "DEFLATE" : "STORE" | |
}) | |
}); | |
return zip["generate"]({ | |
"type": "uint8array" | |
}) | |
} catch (e) { | |
console.error(e && e.stack || e); | |
return NULL | |
} | |
break | |
} | |
} | |
} | |
if (json) return run(json); | |
else self["onmessage"] = function(e) { | |
postMessage(run(e.data)) | |
} | |
} | |
var _Zip_promiseQueue = []; | |
function _Zip_setup() { | |
if (!_Zip_worker) { | |
try { | |
var blob = new Blob(["(" + _Zip_core + ")()"], { | |
"type": "text/javascript" | |
}); | |
_Zip_worker = new Worker(URL.createObjectURL(blob)); | |
_Zip_worker["onmessage"] = function(e) { | |
if (_Zip_promiseQueue.length > 0) { | |
_Zip_promiseQueue.shift()(e.data) | |
} | |
} | |
} catch (e) { | |
return false | |
} | |
} | |
return true | |
} | |
function _Zip_write(files, promiseID, forceSynchronous) { | |
var json = { | |
"operation": "write", | |
"files": JSON.parse(_jsStringFromCPPString(files)).map(function(file) { | |
return { | |
"name": file["name"], | |
"compression": file["compression"], | |
"contents": _jsValueSlots[file["contents"]] | |
} | |
}) | |
}; | |
var callback = function(array) { | |
_Zip_completeWrite(promiseID, array ? _IndirectBuffer_wrapUint8Array(array) : null) | |
}; | |
if (forceSynchronous || !_Zip_setup()) { | |
callback(_Zip_core(json)) | |
} else { | |
_Zip_promiseQueue.push(callback); | |
_Zip_worker.postMessage(json) | |
} | |
} | |
function setErrNo(value) { | |
HEAP32[___errno_location() >> 2] = value; | |
return value | |
} | |
function ___map_file(pathname, size) { | |
setErrNo(63); | |
return -1 | |
} | |
var PATH = { | |
splitPath: function(filename) { | |
var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/; | |
return splitPathRe.exec(filename).slice(1) | |
}, | |
normalizeArray: function(parts, allowAboveRoot) { | |
var up = 0; | |
for (var i = parts.length - 1; i >= 0; i--) { | |
var last = parts[i]; | |
if (last === ".") { | |
parts.splice(i, 1) | |
} else if (last === "..") { | |
parts.splice(i, 1); | |
up++ | |
} else if (up) { | |
parts.splice(i, 1); | |
up-- | |
} | |
} | |
if (allowAboveRoot) { | |
for (; up; up--) { | |
parts.unshift("..") | |
} | |
} | |
return parts | |
}, | |
normalize: function(path) { | |
var isAbsolute = path.charAt(0) === "/", | |
trailingSlash = path.substr(-1) === "/"; | |
path = PATH.normalizeArray(path.split("/").filter(function(p) { | |
return !!p | |
}), !isAbsolute).join("/"); | |
if (!path && !isAbsolute) { | |
path = "." | |
} | |
if (path && trailingSlash) { | |
path += "/" | |
} | |
return (isAbsolute ? "/" : "") + path | |
}, | |
dirname: function(path) { | |
var result = PATH.splitPath(path), | |
root = result[0], | |
dir = result[1]; | |
if (!root && !dir) { | |
return "." | |
} | |
if (dir) { | |
dir = dir.substr(0, dir.length - 1) | |
} | |
return root + dir | |
}, | |
basename: function(path) { | |
if (path === "/") return "/"; | |
var lastSlash = path.lastIndexOf("/"); | |
if (lastSlash === -1) return path; | |
return path.substr(lastSlash + 1) | |
}, | |
extname: function(path) { | |
return PATH.splitPath(path)[3] | |
}, | |
join: function() { | |
var paths = Array.prototype.slice.call(arguments, 0); | |
return PATH.normalize(paths.join("/")) | |
}, | |
join2: function(l, r) { | |
return PATH.normalize(l + "/" + r) | |
} | |
}; | |
var SYSCALLS = { | |
mappings: {}, | |
buffers: [null, [], | |
[] | |
], | |
printChar: function(stream, curr) { | |
var buffer = SYSCALLS.buffers[stream]; | |
if (curr === 0 || curr === 10) { | |
(stream === 1 ? out : err)(UTF8ArrayToString(buffer, 0)); | |
buffer.length = 0 | |
} else { | |
buffer.push(curr) | |
} | |
}, | |
varargs: undefined, | |
get: function() { | |
SYSCALLS.varargs += 4; | |
var ret = HEAP32[SYSCALLS.varargs - 4 >> 2]; | |
return ret | |
}, | |
getStr: function(ptr) { | |
var ret = UTF8ToString(ptr); | |
return ret | |
}, | |
get64: function(low, high) { | |
return low | |
} | |
}; | |
function ___sys_fcntl64(fd, cmd, varargs) { | |
SYSCALLS.varargs = varargs; | |
return 0 | |
} | |
function ___sys_ioctl(fd, op, varargs) { | |
SYSCALLS.varargs = varargs; | |
return 0 | |
} | |
function syscallMunmap(addr, len) { | |
if ((addr | 0) === -1 || len === 0) { | |
return -28 | |
} | |
var info = SYSCALLS.mappings[addr]; | |
if (!info) return 0; | |
if (len === info.len) { | |
SYSCALLS.mappings[addr] = null; | |
if (info.allocated) { | |
_free(info.malloc) | |
} | |
} | |
return 0 | |
} | |
function ___sys_munmap(addr, len) { | |
return syscallMunmap(addr, len) | |
} | |
function ___sys_open(path, flags, varargs) { | |
SYSCALLS.varargs = varargs | |
} | |
function _abort() { | |
abort() | |
} | |
var _emscripten_get_now; | |
if (ENVIRONMENT_IS_NODE) { | |
_emscripten_get_now = function() { | |
var t = process["hrtime"](); | |
return t[0] * 1e3 + t[1] / 1e6 | |
} | |
} else if (typeof dateNow !== "undefined") { | |
_emscripten_get_now = dateNow | |
} else _emscripten_get_now = function() { | |
return performance.now() | |
}; | |
var _emscripten_get_now_is_monotonic = true; | |
function _clock_gettime(clk_id, tp) { | |
var now; | |
if (clk_id === 0) { | |
now = Date.now() | |
} else if ((clk_id === 1 || clk_id === 4) && _emscripten_get_now_is_monotonic) { | |
now = _emscripten_get_now() | |
} else { | |
setErrNo(28); | |
return -1 | |
} | |
HEAP32[tp >> 2] = now / 1e3 | 0; | |
HEAP32[tp + 4 >> 2] = now % 1e3 * 1e3 * 1e3 | 0; | |
return 0 | |
} | |
function _codePointToLowerCase(codePoint) { | |
return codePoint > 65535 ? codePoint : String.fromCharCode(codePoint).toLowerCase().charCodeAt(0) | |
} | |
function _codePointToUpperCase(codePoint) { | |
return codePoint > 65535 ? codePoint : String.fromCharCode(codePoint).toUpperCase().charCodeAt(0) | |
} | |
function _debuggerLog(level, str) { | |
str = _jsStringFromCPPString(str); | |
if (level === 3) { | |
var error = new Error(str); | |
setTimeout(function() { | |
throw error | |
}, 0) | |
} | |
if (!self.console) { | |
return | |
} | |
var log = level >= 3 ? console.error : level === 2 ? console.warn : level === 1 ? console.info : console.log; | |
log.call(console, str) | |
} | |
function _emscripten_set_main_loop_timing(mode, value) { | |
Browser.mainLoop.timingMode = mode; | |
Browser.mainLoop.timingValue = value; | |
if (!Browser.mainLoop.func) { | |
return 1 | |
} | |
if (mode == 0) { | |
Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setTimeout() { | |
var timeUntilNextTick = Math.max(0, Browser.mainLoop.tickStartTime + value - _emscripten_get_now()) | 0; | |
setTimeout(Browser.mainLoop.runner, timeUntilNextTick) | |
}; | |
Browser.mainLoop.method = "timeout" | |
} else if (mode == 1) { | |
Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_rAF() { | |
Browser.requestAnimationFrame(Browser.mainLoop.runner) | |
}; | |
Browser.mainLoop.method = "rAF" | |
} else if (mode == 2) { | |
if (typeof setImmediate === "undefined") { | |
var setImmediates = []; | |
var emscriptenMainLoopMessageId = "setimmediate"; | |
var Browser_setImmediate_messageHandler = function(event) { | |
if (event.data === emscriptenMainLoopMessageId || event.data.target === emscriptenMainLoopMessageId) { | |
event.stopPropagation(); | |
setImmediates.shift()() | |
} | |
}; | |
addEventListener("message", Browser_setImmediate_messageHandler, true); | |
setImmediate = function Browser_emulated_setImmediate(func) { | |
setImmediates.push(func); | |
if (ENVIRONMENT_IS_WORKER) { | |
if (Module["setImmediates"] === undefined) Module["setImmediates"] = []; | |
Module["setImmediates"].push(func); | |
postMessage({ | |
target: emscriptenMainLoopMessageId | |
}) | |
} else postMessage(emscriptenMainLoopMessageId, "*") | |
} | |
} | |
Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setImmediate() { | |
setImmediate(Browser.mainLoop.runner) | |
}; | |
Browser.mainLoop.method = "immediate" | |
} | |
return 0 | |
} | |
function _emscripten_set_main_loop(func, fps, simulateInfiniteLoop, arg, noSetTiming) { | |
noExitRuntime = true; | |
assert(!Browser.mainLoop.func, "emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."); | |
Browser.mainLoop.func = func; | |
Browser.mainLoop.arg = arg; | |
var browserIterationFunc; | |
if (typeof arg !== "undefined") { | |
browserIterationFunc = function() { | |
Module["dynCall_vi"](func, arg) | |
} | |
} else { | |
browserIterationFunc = function() { | |
Module["dynCall_v"](func) | |
} | |
} | |
var thisMainLoopId = Browser.mainLoop.currentlyRunningMainloop; | |
Browser.mainLoop.runner = function Browser_mainLoop_runner() { | |
if (ABORT) return; | |
if (Browser.mainLoop.queue.length > 0) { | |
var start = Date.now(); | |
var blocker = Browser.mainLoop.queue.shift(); | |
blocker.func(blocker.arg); | |
if (Browser.mainLoop.remainingBlockers) { | |
var remaining = Browser.mainLoop.remainingBlockers; | |
var next = remaining % 1 == 0 ? remaining - 1 : Math.floor(remaining); | |
if (blocker.counted) { | |
Browser.mainLoop.remainingBlockers = next | |
} else { | |
next = next + .5; | |
Browser.mainLoop.remainingBlockers = (8 * remaining + next) / 9 | |
} | |
} | |
console.log('main loop blocker "' + blocker.name + '" took ' + (Date.now() - start) + " ms"); | |
Browser.mainLoop.updateStatus(); | |
if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return; | |
setTimeout(Browser.mainLoop.runner, 0); | |
return | |
} | |
if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return; | |
Browser.mainLoop.currentFrameNumber = Browser.mainLoop.currentFrameNumber + 1 | 0; | |
if (Browser.mainLoop.timingMode == 1 && Browser.mainLoop.timingValue > 1 && Browser.mainLoop.currentFrameNumber % Browser.mainLoop.timingValue != 0) { | |
Browser.mainLoop.scheduler(); | |
return | |
} else if (Browser.mainLoop.timingMode == 0) { | |
Browser.mainLoop.tickStartTime = _emscripten_get_now() | |
} | |
Browser.mainLoop.runIter(browserIterationFunc); | |
if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return; | |
if (typeof SDL === "object" && SDL.audio && SDL.audio.queueNewAudioData) SDL.audio.queueNewAudioData(); | |
Browser.mainLoop.scheduler() | |
}; | |
if (!noSetTiming) { | |
if (fps && fps > 0) _emscripten_set_main_loop_timing(0, 1e3 / fps); | |
else _emscripten_set_main_loop_timing(1, 1); | |
Browser.mainLoop.scheduler() | |
} | |
if (simulateInfiniteLoop) { | |
throw "unwind" | |
} | |
} | |
var Browser = { | |
mainLoop: { | |
scheduler: null, | |
method: "", | |
currentlyRunningMainloop: 0, | |
func: null, | |
arg: 0, | |
timingMode: 0, | |
timingValue: 0, | |
currentFrameNumber: 0, | |
queue: [], | |
pause: function() { | |
Browser.mainLoop.scheduler = null; | |
Browser.mainLoop.currentlyRunningMainloop++ | |
}, | |
resume: function() { | |
Browser.mainLoop.currentlyRunningMainloop++; | |
var timingMode = Browser.mainLoop.timingMode; | |
var timingValue = Browser.mainLoop.timingValue; | |
var func = Browser.mainLoop.func; | |
Browser.mainLoop.func = null; | |
_emscripten_set_main_loop(func, 0, false, Browser.mainLoop.arg, true); | |
_emscripten_set_main_loop_timing(timingMode, timingValue); | |
Browser.mainLoop.scheduler() | |
}, | |
updateStatus: function() { | |
if (Module["setStatus"]) { | |
var message = Module["statusMessage"] || "Please wait..."; | |
var remaining = Browser.mainLoop.remainingBlockers; | |
var expected = Browser.mainLoop.expectedBlockers; | |
if (remaining) { | |
if (remaining < expected) { | |
Module["setStatus"](message + " (" + (expected - remaining) + "/" + expected + ")") | |
} else { | |
Module["setStatus"](message) | |
} | |
} else { | |
Module["setStatus"]("") | |
} | |
} | |
}, | |
runIter: function(func) { | |
if (ABORT) return; | |
if (Module["preMainLoop"]) { | |
var preRet = Module["preMainLoop"](); | |
if (preRet === false) { | |
return | |
} | |
} | |
try { | |
func() | |
} catch (e) { | |
if (e instanceof ExitStatus) { | |
return | |
} else { | |
if (e && typeof e === "object" && e.stack) err("exception thrown: " + [e, e.stack]); | |
throw e | |
} | |
} | |
if (Module["postMainLoop"]) Module["postMainLoop"]() | |
} | |
}, | |
isFullscreen: false, | |
pointerLock: false, | |
moduleContextCreatedCallbacks: [], | |
workers: [], | |
init: function() { | |
if (!Module["preloadPlugins"]) Module["preloadPlugins"] = []; | |
if (Browser.initted) return; | |
Browser.initted = true; | |
try { | |
new Blob; | |
Browser.hasBlobConstructor = true | |
} catch (e) { | |
Browser.hasBlobConstructor = false; | |
console.log("warning: no blob constructor, cannot create blobs with mimetypes") | |
} | |
Browser.BlobBuilder = typeof MozBlobBuilder != "undefined" ? MozBlobBuilder : typeof WebKitBlobBuilder != "undefined" ? WebKitBlobBuilder : !Browser.hasBlobConstructor ? console.log("warning: no BlobBuilder") : null; | |
Browser.URLObject = typeof window != "undefined" ? window.URL ? window.URL : window.webkitURL : undefined; | |
if (!Module.noImageDecoding && typeof Browser.URLObject === "undefined") { | |
console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."); | |
Module.noImageDecoding = true | |
} | |
var imagePlugin = {}; | |
imagePlugin["canHandle"] = function imagePlugin_canHandle(name) { | |
return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/i.test(name) | |
}; | |
imagePlugin["handle"] = function imagePlugin_handle(byteArray, name, onload, onerror) { | |
var b = null; | |
if (Browser.hasBlobConstructor) { | |
try { | |
b = new Blob([byteArray], { | |
type: Browser.getMimetype(name) | |
}); | |
if (b.size !== byteArray.length) { | |
b = new Blob([new Uint8Array(byteArray).buffer], { | |
type: Browser.getMimetype(name) | |
}) | |
} | |
} catch (e) { | |
warnOnce("Blob constructor present but fails: " + e + "; falling back to blob builder") | |
} | |
} | |
if (!b) { | |
var bb = new Browser.BlobBuilder; | |
bb.append(new Uint8Array(byteArray).buffer); | |
b = bb.getBlob() | |
} | |
var url = Browser.URLObject.createObjectURL(b); | |
var img = new Image; | |
img.onload = function img_onload() { | |
assert(img.complete, "Image " + name + " could not be decoded"); | |
var canvas = document.createElement("canvas"); | |
canvas.width = img.width; | |
canvas.height = img.height; | |
var ctx = canvas.getContext("2d"); | |
ctx.drawImage(img, 0, 0); | |
Module["preloadedImages"][name] = canvas; | |
Browser.URLObject.revokeObjectURL(url); | |
if (onload) onload(byteArray) | |
}; | |
img.onerror = function img_onerror(event) { | |
console.log("Image " + url + " could not be decoded"); | |
if (onerror) onerror() | |
}; | |
img.src = url | |
}; | |
Module["preloadPlugins"].push(imagePlugin); | |
var audioPlugin = {}; | |
audioPlugin["canHandle"] = function audioPlugin_canHandle(name) { | |
return !Module.noAudioDecoding && name.substr(-4) in { | |
".ogg": 1, | |
".wav": 1, | |
".mp3": 1 | |
} | |
}; | |
audioPlugin["handle"] = function audioPlugin_handle(byteArray, name, onload, onerror) { | |
var done = false; | |
function finish(audio) { | |
if (done) return; | |
done = true; | |
Module["preloadedAudios"][name] = audio; | |
if (onload) onload(byteArray) | |
} | |
function fail() { | |
if (done) return; | |
done = true; | |
Module["preloadedAudios"][name] = new Audio; | |
if (onerror) onerror() | |
} | |
if (Browser.hasBlobConstructor) { | |
try { | |
var b = new Blob([byteArray], { | |
type: Browser.getMimetype(name) | |
}) | |
} catch (e) { | |
return fail() | |
} | |
var url = Browser.URLObject.createObjectURL(b); | |
var audio = new Audio; | |
audio.addEventListener("canplaythrough", function() { | |
finish(audio) | |
}, false); | |
audio.onerror = function audio_onerror(event) { | |
if (done) return; | |
console.log("warning: browser could not fully decode audio " + name + ", trying slower base64 approach"); | |
function encode64(data) { | |
var BASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
var PAD = "="; | |
var ret = ""; | |
var leftchar = 0; | |
var leftbits = 0; | |
for (var i = 0; i < data.length; i++) { | |
leftchar = leftchar << 8 | data[i]; | |
leftbits += 8; | |
while (leftbits >= 6) { | |
var curr = leftchar >> leftbits - 6 & 63; | |
leftbits -= 6; | |
ret += BASE[curr] | |
} | |
} | |
if (leftbits == 2) { | |
ret += BASE[(leftchar & 3) << 4]; | |
ret += PAD + PAD | |
} else if (leftbits == 4) { | |
ret += BASE[(leftchar & 15) << 2]; | |
ret += PAD | |
} | |
return ret | |
} | |
audio.src = "data:audio/x-" + name.substr(-3) + ";base64," + encode64(byteArray); | |
finish(audio) | |
}; | |
audio.src = url; | |
Browser.safeSetTimeout(function() { | |
finish(audio) | |
}, 1e4) | |
} else { | |
return fail() | |
} | |
}; | |
Module["preloadPlugins"].push(audioPlugin); | |
function pointerLockChange() { | |
Browser.pointerLock = document["pointerLockElement"] === Module["canvas"] || document["mozPointerLockElement"] === Module["canvas"] || document["webkitPointerLockElement"] === Module["canvas"] || document["msPointerLockElement"] === Module["canvas"] | |
} | |
var canvas = Module["canvas"]; | |
if (canvas) { | |
canvas.requestPointerLock = canvas["requestPointerLock"] || canvas["mozRequestPointerLock"] || canvas["webkitRequestPointerLock"] || canvas["msRequestPointerLock"] || function() {}; | |
canvas.exitPointerLock = document["exitPointerLock"] || document["mozExitPointerLock"] || document["webkitExitPointerLock"] || document["msExitPointerLock"] || function() {}; | |
canvas.exitPointerLock = canvas.exitPointerLock.bind(document); | |
document.addEventListener("pointerlockchange", pointerLockChange, false); | |
document.addEventListener("mozpointerlockchange", pointerLockChange, false); | |
document.addEventListener("webkitpointerlockchange", pointerLockChange, false); | |
document.addEventListener("mspointerlockchange", pointerLockChange, false); | |
if (Module["elementPointerLock"]) { | |
canvas.addEventListener("click", function(ev) { | |
if (!Browser.pointerLock && Module["canvas"].requestPointerLock) { | |
Module["canvas"].requestPointerLock(); | |
ev.preventDefault() | |
} | |
}, false) | |
} | |
} | |
}, | |
createContext: function(canvas, useWebGL, setInModule, webGLContextAttributes) { | |
if (useWebGL && Module.ctx && canvas == Module.canvas) return Module.ctx; | |
var ctx; | |
var contextHandle; | |
if (useWebGL) { | |
var contextAttributes = { | |
antialias: false, | |
alpha: false, | |
majorVersion: 1 | |
}; | |
if (webGLContextAttributes) { | |
for (var attribute in webGLContextAttributes) { | |
contextAttributes[attribute] = webGLContextAttributes[attribute] | |
} | |
} | |
if (typeof GL !== "undefined") { | |
contextHandle = GL.createContext(canvas, contextAttributes); | |
if (contextHandle) { | |
ctx = GL.getContext(contextHandle).GLctx | |
} | |
} | |
} else { | |
ctx = canvas.getContext("2d") | |
} | |
if (!ctx) return null; | |
if (setInModule) { | |
if (!useWebGL) assert(typeof GLctx === "undefined", "cannot set in module if GLctx is used, but we are a non-GL context that would replace it"); | |
Module.ctx = ctx; | |
if (useWebGL) GL.makeContextCurrent(contextHandle); | |
Module.useWebGL = useWebGL; | |
Browser.moduleContextCreatedCallbacks.forEach(function(callback) { | |
callback() | |
}); | |
Browser.init() | |
} | |
return ctx | |
}, | |
destroyContext: function(canvas, useWebGL, setInModule) {}, | |
fullscreenHandlersInstalled: false, | |
lockPointer: undefined, | |
resizeCanvas: undefined, | |
requestFullscreen: function(lockPointer, resizeCanvas) { | |
Browser.lockPointer = lockPointer; | |
Browser.resizeCanvas = resizeCanvas; | |
if (typeof Browser.lockPointer === "undefined") Browser.lockPointer = true; | |
if (typeof Browser.resizeCanvas === "undefined") Browser.resizeCanvas = false; | |
var canvas = Module["canvas"]; | |
function fullscreenChange() { | |
Browser.isFullscreen = false; | |
var canvasContainer = canvas.parentNode; | |
if ((document["fullscreenElement"] || document["mozFullScreenElement"] || document["msFullscreenElement"] || document["webkitFullscreenElement"] || document["webkitCurrentFullScreenElement"]) === canvasContainer) { | |
canvas.exitFullscreen = Browser.exitFullscreen; | |
if (Browser.lockPointer) canvas.requestPointerLock(); | |
Browser.isFullscreen = true; | |
if (Browser.resizeCanvas) { | |
Browser.setFullscreenCanvasSize() | |
} else { | |
Browser.updateCanvasDimensions(canvas) | |
} | |
} else { | |
canvasContainer.parentNode.insertBefore(canvas, canvasContainer); | |
canvasContainer.parentNode.removeChild(canvasContainer); | |
if (Browser.resizeCanvas) { | |
Browser.setWindowedCanvasSize() | |
} else { | |
Browser.updateCanvasDimensions(canvas) | |
} | |
} | |
if (Module["onFullScreen"]) Module["onFullScreen"](Browser.isFullscreen); | |
if (Module["onFullscreen"]) Module["onFullscreen"](Browser.isFullscreen) | |
} | |
if (!Browser.fullscreenHandlersInstalled) { | |
Browser.fullscreenHandlersInstalled = true; | |
document.addEventListener("fullscreenchange", fullscreenChange, false); | |
document.addEventListener("mozfullscreenchange", fullscreenChange, false); | |
document.addEventListener("webkitfullscreenchange", fullscreenChange, false); | |
document.addEventListener("MSFullscreenChange", fullscreenChange, false) | |
} | |
var canvasContainer = document.createElement("div"); | |
canvas.parentNode.insertBefore(canvasContainer, canvas); | |
canvasContainer.appendChild(canvas); | |
canvasContainer.requestFullscreen = canvasContainer["requestFullscreen"] || canvasContainer["mozRequestFullScreen"] || canvasContainer["msRequestFullscreen"] || (canvasContainer["webkitRequestFullscreen"] ? function() { | |
canvasContainer["webkitRequestFullscreen"](Element["ALLOW_KEYBOARD_INPUT"]) | |
} : null) || (canvasContainer["webkitRequestFullScreen"] ? function() { | |
canvasContainer["webkitRequestFullScreen"](Element["ALLOW_KEYBOARD_INPUT"]) | |
} : null); | |
canvasContainer.requestFullscreen() | |
}, | |
exitFullscreen: function() { | |
if (!Browser.isFullscreen) { | |
return false | |
} | |
var CFS = document["exitFullscreen"] || document["cancelFullScreen"] || document["mozCancelFullScreen"] || document["msExitFullscreen"] || document["webkitCancelFullScreen"] || function() {}; | |
CFS.apply(document, []); | |
return true | |
}, | |
nextRAF: 0, | |
fakeRequestAnimationFrame: function(func) { | |
var now = Date.now(); | |
if (Browser.nextRAF === 0) { | |
Browser.nextRAF = now + 1e3 / 60 | |
} else { | |
while (now + 2 >= Browser.nextRAF) { | |
Browser.nextRAF += 1e3 / 60 | |
} | |
} | |
var delay = Math.max(Browser.nextRAF - now, 0); | |
setTimeout(func, delay) | |
}, | |
requestAnimationFrame: function(func) { | |
if (typeof requestAnimationFrame === "function") { | |
requestAnimationFrame(func); | |
return | |
} | |
var RAF = Browser.fakeRequestAnimationFrame; | |
RAF(func) | |
}, | |
safeCallback: function(func) { | |
return function() { | |
if (!ABORT) return func.apply(null, arguments) | |
} | |
}, | |
allowAsyncCallbacks: true, | |
queuedAsyncCallbacks: [], | |
pauseAsyncCallbacks: function() { | |
Browser.allowAsyncCallbacks = false | |
}, | |
resumeAsyncCallbacks: function() { | |
Browser.allowAsyncCallbacks = true; | |
if (Browser.queuedAsyncCallbacks.length > 0) { | |
var callbacks = Browser.queuedAsyncCallbacks; | |
Browser.queuedAsyncCallbacks = []; | |
callbacks.forEach(function(func) { | |
func() | |
}) | |
} | |
}, | |
safeRequestAnimationFrame: function(func) { | |
return Browser.requestAnimationFrame(function() { | |
if (ABORT) return; | |
if (Browser.allowAsyncCallbacks) { | |
func() | |
} else { | |
Browser.queuedAsyncCallbacks.push(func) | |
} | |
}) | |
}, | |
safeSetTimeout: function(func, timeout) { | |
noExitRuntime = true; | |
return setTimeout(function() { | |
if (ABORT) return; | |
if (Browser.allowAsyncCallbacks) { | |
func() | |
} else { | |
Browser.queuedAsyncCallbacks.push(func) | |
} | |
}, timeout) | |
}, | |
safeSetInterval: function(func, timeout) { | |
noExitRuntime = true; | |
return setInterval(function() { | |
if (ABORT) return; | |
if (Browser.allowAsyncCallbacks) { | |
func() | |
} | |
}, timeout) | |
}, | |
getMimetype: function(name) { | |
return { | |
"jpg": "image/jpeg", | |
"jpeg": "image/jpeg", | |
"png": "image/png", | |
"bmp": "image/bmp", | |
"ogg": "audio/ogg", | |
"wav": "audio/wav", | |
"mp3": "audio/mpeg" | |
} [name.substr(name.lastIndexOf(".") + 1)] | |
}, | |
getUserMedia: function(func) { | |
if (!window.getUserMedia) { | |
window.getUserMedia = navigator["getUserMedia"] || navigator["mozGetUserMedia"] | |
} | |
window.getUserMedia(func) | |
}, | |
getMovementX: function(event) { | |
return event["movementX"] || event["mozMovementX"] || event["webkitMovementX"] || 0 | |
}, | |
getMovementY: function(event) { | |
return event["movementY"] || event["mozMovementY"] || event["webkitMovementY"] || 0 | |
}, | |
getMouseWheelDelta: function(event) { | |
var delta = 0; | |
switch (event.type) { | |
case "DOMMouseScroll": | |
delta = event.detail / 3; | |
break; | |
case "mousewheel": | |
delta = event.wheelDelta / 120; | |
break; | |
case "wheel": | |
delta = event.deltaY; | |
switch (event.deltaMode) { | |
case 0: | |
delta /= 100; | |
break; | |
case 1: | |
delta /= 3; | |
break; | |
case 2: | |
delta *= 80; | |
break; | |
default: | |
throw "unrecognized mouse wheel delta mode: " + event.deltaMode | |
} | |
break; | |
default: | |
throw "unrecognized mouse wheel event: " + event.type | |
} | |
return delta | |
}, | |
mouseX: 0, | |
mouseY: 0, | |
mouseMovementX: 0, | |
mouseMovementY: 0, | |
touches: {}, | |
lastTouches: {}, | |
calculateMouseEvent: function(event) { | |
if (Browser.pointerLock) { | |
if (event.type != "mousemove" && "mozMovementX" in event) { | |
Browser.mouseMovementX = Browser.mouseMovementY = 0 | |
} else { | |
Browser.mouseMovementX = Browser.getMovementX(event); | |
Browser.mouseMovementY = Browser.getMovementY(event) | |
} | |
if (typeof SDL != "undefined") { | |
Browser.mouseX = SDL.mouseX + Browser.mouseMovementX; | |
Browser.mouseY = SDL.mouseY + Browser.mouseMovementY | |
} else { | |
Browser.mouseX += Browser.mouseMovementX; | |
Browser.mouseY += Browser.mouseMovementY | |
} | |
} else { | |
var rect = Module["canvas"].getBoundingClientRect(); | |
var cw = Module["canvas"].width; | |
var ch = Module["canvas"].height; | |
var scrollX = typeof window.scrollX !== "undefined" ? window.scrollX : window.pageXOffset; | |
var scrollY = typeof window.scrollY !== "undefined" ? window.scrollY : window.pageYOffset; | |
if (event.type === "touchstart" || event.type === "touchend" || event.type === "touchmove") { | |
var touch = event.touch; | |
if (touch === undefined) { | |
return | |
} | |
var adjustedX = touch.pageX - (scrollX + rect.left); | |
var adjustedY = touch.pageY - (scrollY + rect.top); | |
adjustedX = adjustedX * (cw / rect.width); | |
adjustedY = adjustedY * (ch / rect.height); | |
var coords = { | |
x: adjustedX, | |
y: adjustedY | |
}; | |
if (event.type === "touchstart") { | |
Browser.lastTouches[touch.identifier] = coords; | |
Browser.touches[touch.identifier] = coords | |
} else if (event.type === "touchend" || event.type === "touchmove") { | |
var last = Browser.touches[touch.identifier]; | |
if (!last) last = coords; | |
Browser.lastTouches[touch.identifier] = last; | |
Browser.touches[touch.identifier] = coords | |
} | |
return | |
} | |
var x = event.pageX - (scrollX + rect.left); | |
var y = event.pageY - (scrollY + rect.top); | |
x = x * (cw / rect.width); | |
y = y * (ch / rect.height); | |
Browser.mouseMovementX = x - Browser.mouseX; | |
Browser.mouseMovementY = y - Browser.mouseY; | |
Browser.mouseX = x; | |
Browser.mouseY = y | |
} | |
}, | |
asyncLoad: function(url, onload, onerror, noRunDep) { | |
var dep = !noRunDep ? getUniqueRunDependency("al " + url) : ""; | |
readAsync(url, function(arrayBuffer) { | |
assert(arrayBuffer, 'Loading data file "' + url + '" failed (no arrayBuffer).'); | |
onload(new Uint8Array(arrayBuffer)); | |
if (dep) removeRunDependency(dep) | |
}, function(event) { | |
if (onerror) { | |
onerror() | |
} else { | |
throw 'Loading data file "' + url + '" failed.' | |
} | |
}); | |
if (dep) addRunDependency(dep) | |
}, | |
resizeListeners: [], | |
updateResizeListeners: function() { | |
var canvas = Module["canvas"]; | |
Browser.resizeListeners.forEach(function(listener) { | |
listener(canvas.width, canvas.height) | |
}) | |
}, | |
setCanvasSize: function(width, height, noUpdates) { | |
var canvas = Module["canvas"]; | |
Browser.updateCanvasDimensions(canvas, width, height); | |
if (!noUpdates) Browser.updateResizeListeners() | |
}, | |
windowedWidth: 0, | |
windowedHeight: 0, | |
setFullscreenCanvasSize: function() { | |
if (typeof SDL != "undefined") { | |
var flags = HEAPU32[SDL.screen >> 2]; | |
flags = flags | 8388608; | |
HEAP32[SDL.screen >> 2] = flags | |
} | |
Browser.updateCanvasDimensions(Module["canvas"]); | |
Browser.updateResizeListeners() | |
}, | |
setWindowedCanvasSize: function() { | |
if (typeof SDL != "undefined") { | |
var flags = HEAPU32[SDL.screen >> 2]; | |
flags = flags & ~8388608; | |
HEAP32[SDL.screen >> 2] = flags | |
} | |
Browser.updateCanvasDimensions(Module["canvas"]); | |
Browser.updateResizeListeners() | |
}, | |
updateCanvasDimensions: function(canvas, wNative, hNative) { | |
if (wNative && hNative) { | |
canvas.widthNative = wNative; | |
canvas.heightNative = hNative | |
} else { | |
wNative = canvas.widthNative; | |
hNative = canvas.heightNative | |
} | |
var w = wNative; | |
var h = hNative; | |
if (Module["forcedAspectRatio"] && Module["forcedAspectRatio"] > 0) { | |
if (w / h < Module["forcedAspectRatio"]) { | |
w = Math.round(h * Module["forcedAspectRatio"]) | |
} else { | |
h = Math.round(w / Module["forcedAspectRatio"]) | |
} | |
} | |
if ((document["fullscreenElement"] || document["mozFullScreenElement"] || document["msFullscreenElement"] || document["webkitFullscreenElement"] || document["webkitCurrentFullScreenElement"]) === canvas.parentNode && typeof screen != "undefined") { | |
var factor = Math.min(screen.width / w, screen.height / h); | |
w = Math.round(w * factor); | |
h = Math.round(h * factor) | |
} | |
if (Browser.resizeCanvas) { | |
if (canvas.width != w) canvas.width = w; | |
if (canvas.height != h) canvas.height = h; | |
if (typeof canvas.style != "undefined") { | |
canvas.style.removeProperty("width"); | |
canvas.style.removeProperty("height") | |
} | |
} else { | |
if (canvas.width != wNative) canvas.width = wNative; | |
if (canvas.height != hNative) canvas.height = hNative; | |
if (typeof canvas.style != "undefined") { | |
if (w != wNative || h != hNative) { | |
canvas.style.setProperty("width", w + "px", "important"); | |
canvas.style.setProperty("height", h + "px", "important") | |
} else { | |
canvas.style.removeProperty("width"); | |
canvas.style.removeProperty("height") | |
} | |
} | |
} | |
}, | |
wgetRequests: {}, | |
nextWgetRequestHandle: 0, | |
getNextWgetRequestHandle: function() { | |
var handle = Browser.nextWgetRequestHandle; | |
Browser.nextWgetRequestHandle++; | |
return handle | |
} | |
}; | |
var EGL = { | |
errorCode: 12288, | |
defaultDisplayInitialized: false, | |
currentContext: 0, | |
currentReadSurface: 0, | |
currentDrawSurface: 0, | |
contextAttributes: { | |
alpha: false, | |
depth: false, | |
stencil: false, | |
antialias: false | |
}, | |
stringCache: {}, | |
setErrorCode: function(code) { | |
EGL.errorCode = code | |
}, | |
chooseConfig: function(display, attribList, config, config_size, numConfigs) { | |
if (display != 62e3) { | |
EGL.setErrorCode(12296); | |
return 0 | |
} | |
if (attribList) { | |
for (;;) { | |
var param = HEAP32[attribList >> 2]; | |
if (param == 12321) { | |
var alphaSize = HEAP32[attribList + 4 >> 2]; | |
EGL.contextAttributes.alpha = alphaSize > 0 | |
} else if (param == 12325) { | |
var depthSize = HEAP32[attribList + 4 >> 2]; | |
EGL.contextAttributes.depth = depthSize > 0 | |
} else if (param == 12326) { | |
var stencilSize = HEAP32[attribList + 4 >> 2]; | |
EGL.contextAttributes.stencil = stencilSize > 0 | |
} else if (param == 12337) { | |
var samples = HEAP32[attribList + 4 >> 2]; | |
EGL.contextAttributes.antialias = samples > 0 | |
} else if (param == 12338) { | |
var samples = HEAP32[attribList + 4 >> 2]; | |
EGL.contextAttributes.antialias = samples == 1 | |
} else if (param == 12544) { | |
var requestedPriority = HEAP32[attribList + 4 >> 2]; | |
EGL.contextAttributes.lowLatency = requestedPriority != 12547 | |
} else if (param == 12344) { | |
break | |
} | |
attribList += 8 | |
} | |
} | |
if ((!config || !config_size) && !numConfigs) { | |
EGL.setErrorCode(12300); | |
return 0 | |
} | |
if (numConfigs) { | |
HEAP32[numConfigs >> 2] = 1 | |
} | |
if (config && config_size > 0) { | |
HEAP32[config >> 2] = 62002 | |
} | |
EGL.setErrorCode(12288); | |
return 1 | |
} | |
}; | |
function _eglChooseConfig(display, attrib_list, configs, config_size, numConfigs) { | |
return EGL.chooseConfig(display, attrib_list, configs, config_size, numConfigs) | |
} | |
function __webgl_enable_ANGLE_instanced_arrays(ctx) { | |
var ext = ctx.getExtension("ANGLE_instanced_arrays"); | |
if (ext) { | |
ctx["vertexAttribDivisor"] = function(index, divisor) { | |
ext["vertexAttribDivisorANGLE"](index, divisor) | |
}; | |
ctx["drawArraysInstanced"] = function(mode, first, count, primcount) { | |
ext["drawArraysInstancedANGLE"](mode, first, count, primcount) | |
}; | |
ctx["drawElementsInstanced"] = function(mode, count, type, indices, primcount) { | |
ext["drawElementsInstancedANGLE"](mode, count, type, indices, primcount) | |
}; | |
return 1 | |
} | |
} | |
function __webgl_enable_OES_vertex_array_object(ctx) { | |
var ext = ctx.getExtension("OES_vertex_array_object"); | |
if (ext) { | |
ctx["createVertexArray"] = function() { | |
return ext["createVertexArrayOES"]() | |
}; | |
ctx["deleteVertexArray"] = function(vao) { | |
ext["deleteVertexArrayOES"](vao) | |
}; | |
ctx["bindVertexArray"] = function(vao) { | |
ext["bindVertexArrayOES"](vao) | |
}; | |
ctx["isVertexArray"] = function(vao) { | |
return ext["isVertexArrayOES"](vao) | |
}; | |
return 1 | |
} | |
} | |
function __webgl_enable_WEBGL_draw_buffers(ctx) { | |
var ext = ctx.getExtension("WEBGL_draw_buffers"); | |
if (ext) { | |
ctx["drawBuffers"] = function(n, bufs) { | |
ext["drawBuffersWEBGL"](n, bufs) | |
}; | |
return 1 | |
} | |
} | |
var GL = { | |
counter: 1, | |
buffers: [], | |
programs: [], | |
framebuffers: [], | |
renderbuffers: [], | |
textures: [], | |
uniforms: [], | |
shaders: [], | |
vaos: [], | |
contexts: [], | |
offscreenCanvases: {}, | |
timerQueriesEXT: [], | |
programInfos: {}, | |
stringCache: {}, | |
unpackAlignment: 4, | |
recordError: function recordError(errorCode) { | |
if (!GL.lastError) { | |
GL.lastError = errorCode | |
} | |
}, | |
getNewId: function(table) { | |
var ret = GL.counter++; | |
for (var i = table.length; i < ret; i++) { | |
table[i] = null | |
} | |
return ret | |
}, | |
getSource: function(shader, count, string, length) { | |
var source = ""; | |
for (var i = 0; i < count; ++i) { | |
var len = length ? HEAP32[length + i * 4 >> 2] : -1; | |
source += UTF8ToString(HEAP32[string + i * 4 >> 2], len < 0 ? undefined : len) | |
} | |
return source | |
}, | |
createContext: function(canvas, webGLContextAttributes) { | |
var ctx = canvas.getContext("webgl", webGLContextAttributes); | |
if (!ctx) return 0; | |
var handle = GL.registerContext(ctx, webGLContextAttributes); | |
return handle | |
}, | |
registerContext: function(ctx, webGLContextAttributes) { | |
var handle = GL.getNewId(GL.contexts); | |
var context = { | |
handle: handle, | |
attributes: webGLContextAttributes, | |
version: webGLContextAttributes.majorVersion, | |
GLctx: ctx | |
}; | |
if (ctx.canvas) ctx.canvas.GLctxObject = context; | |
GL.contexts[handle] = context; | |
if (typeof webGLContextAttributes.enableExtensionsByDefault === "undefined" || webGLContextAttributes.enableExtensionsByDefault) { | |
GL.initExtensions(context) | |
} | |
return handle | |
}, | |
makeContextCurrent: function(contextHandle) { | |
GL.currentContext = GL.contexts[contextHandle]; | |
Module.ctx = GLctx = GL.currentContext && GL.currentContext.GLctx; | |
return !(contextHandle && !GLctx) | |
}, | |
getContext: function(contextHandle) { | |
return GL.contexts[contextHandle] | |
}, | |
deleteContext: function(contextHandle) { | |
if (GL.currentContext === GL.contexts[contextHandle]) GL.currentContext = null; | |
if (typeof JSEvents === "object") JSEvents.removeAllHandlersOnTarget(GL.contexts[contextHandle].GLctx.canvas); | |
if (GL.contexts[contextHandle] && GL.contexts[contextHandle].GLctx.canvas) GL.contexts[contextHandle].GLctx.canvas.GLctxObject = undefined; | |
GL.contexts[contextHandle] = null | |
}, | |
initExtensions: function(context) { | |
if (!context) context = GL.currentContext; | |
if (context.initExtensionsDone) return; | |
context.initExtensionsDone = true; | |
var GLctx = context.GLctx; | |
__webgl_enable_ANGLE_instanced_arrays(GLctx); | |
__webgl_enable_OES_vertex_array_object(GLctx); | |
__webgl_enable_WEBGL_draw_buffers(GLctx); | |
GLctx.disjointTimerQueryExt = GLctx.getExtension("EXT_disjoint_timer_query"); | |
var automaticallyEnabledExtensions = ["OES_texture_float", "OES_texture_half_float", "OES_standard_derivatives", "OES_vertex_array_object", "WEBGL_compressed_texture_s3tc", "WEBGL_depth_texture", "OES_element_index_uint", "EXT_texture_filter_anisotropic", "EXT_frag_depth", "WEBGL_draw_buffers", "ANGLE_instanced_arrays", "OES_texture_float_linear", "OES_texture_half_float_linear", "EXT_blend_minmax", "EXT_shader_texture_lod", "EXT_texture_norm16", "WEBGL_compressed_texture_pvrtc", "EXT_color_buffer_half_float", "WEBGL_color_buffer_float", "EXT_sRGB", "WEBGL_compressed_texture_etc1", "EXT_disjoint_timer_query", "WEBGL_compressed_texture_etc", "WEBGL_compressed_texture_astc", "EXT_color_buffer_float", "WEBGL_compressed_texture_s3tc_srgb", "EXT_disjoint_timer_query_webgl2", "WEBKIT_WEBGL_compressed_texture_pvrtc"]; | |
var exts = GLctx.getSupportedExtensions() || []; | |
exts.forEach(function(ext) { | |
if (automaticallyEnabledExtensions.indexOf(ext) != -1) { | |
GLctx.getExtension(ext) | |
} | |
}) | |
}, | |
populateUniformTable: function(program) { | |
var p = GL.programs[program]; | |
var ptable = GL.programInfos[program] = { | |
uniforms: {}, | |
maxUniformLength: 0, | |
maxAttributeLength: -1, | |
maxUniformBlockNameLength: -1 | |
}; | |
var utable = ptable.uniforms; | |
var numUniforms = GLctx.getProgramParameter(p, 35718); | |
for (var i = 0; i < numUniforms; ++i) { | |
var u = GLctx.getActiveUniform(p, i); | |
var name = u.name; | |
ptable.maxUniformLength = Math.max(ptable.maxUniformLength, name.length + 1); | |
if (name.slice(-1) == "]") { | |
name = name.slice(0, name.lastIndexOf("[")) | |
} | |
var loc = GLctx.getUniformLocation(p, name); | |
if (loc) { | |
var id = GL.getNewId(GL.uniforms); | |
utable[name] = [u.size, id]; | |
GL.uniforms[id] = loc; | |
for (var j = 1; j < u.size; ++j) { | |
var n = name + "[" + j + "]"; | |
loc = GLctx.getUniformLocation(p, n); | |
id = GL.getNewId(GL.uniforms); | |
GL.uniforms[id] = loc | |
} | |
} | |
} | |
} | |
}; | |
function _eglCreateContext(display, config, hmm, contextAttribs) { | |
if (display != 62e3) { | |
EGL.setErrorCode(12296); | |
return 0 | |
} | |
var glesContextVersion = 1; | |
for (;;) { | |
var param = HEAP32[contextAttribs >> 2]; | |
if (param == 12440) { | |
glesContextVersion = HEAP32[contextAttribs + 4 >> 2] | |
} else if (param == 12344) { | |
break | |
} else { | |
EGL.setErrorCode(12292); | |
return 0 | |
} | |
contextAttribs += 8 | |
} | |
if (glesContextVersion != 2) { | |
EGL.setErrorCode(12293); | |
return 0 | |
} | |
EGL.contextAttributes.majorVersion = glesContextVersion - 1; | |
EGL.contextAttributes.minorVersion = 0; | |
EGL.context = GL.createContext(Module["canvas"], EGL.contextAttributes); | |
if (EGL.context != 0) { | |
EGL.setErrorCode(12288); | |
GL.makeContextCurrent(EGL.context); | |
Module.useWebGL = true; | |
Browser.moduleContextCreatedCallbacks.forEach(function(callback) { | |
callback() | |
}); | |
GL.makeContextCurrent(null); | |
return 62004 | |
} else { | |
EGL.setErrorCode(12297); | |
return 0 | |
} | |
} | |
function _eglCreateWindowSurface(display, config, win, attrib_list) { | |
if (display != 62e3) { | |
EGL.setErrorCode(12296); | |
return 0 | |
} | |
if (config != 62002) { | |
EGL.setErrorCode(12293); | |
return 0 | |
} | |
EGL.setErrorCode(12288); | |
return 62006 | |
} | |
function _eglGetConfigs(display, configs, config_size, numConfigs) { | |
return EGL.chooseConfig(display, 0, configs, config_size, numConfigs) | |
} | |
function _eglGetDisplay(nativeDisplayType) { | |
EGL.setErrorCode(12288); | |
return 62e3 | |
} | |
function _eglGetError() { | |
return EGL.errorCode | |
} | |
function _eglInitialize(display, majorVersion, minorVersion) { | |
if (display == 62e3) { | |
if (majorVersion) { | |
HEAP32[majorVersion >> 2] = 1 | |
} | |
if (minorVersion) { | |
HEAP32[minorVersion >> 2] = 4 | |
} | |
EGL.defaultDisplayInitialized = true; | |
EGL.setErrorCode(12288); | |
return 1 | |
} else { | |
EGL.setErrorCode(12296); | |
return 0 | |
} | |
} | |
function _eglMakeCurrent(display, draw, read, context) { | |
if (display != 62e3) { | |
EGL.setErrorCode(12296); | |
return 0 | |
} | |
if (context != 0 && context != 62004) { | |
EGL.setErrorCode(12294); | |
return 0 | |
} | |
if (read != 0 && read != 62006 || draw != 0 && draw != 62006) { | |
EGL.setErrorCode(12301); | |
return 0 | |
} | |
GL.makeContextCurrent(context ? EGL.context : null); | |
EGL.currentContext = context; | |
EGL.currentDrawSurface = draw; | |
EGL.currentReadSurface = read; | |
EGL.setErrorCode(12288); | |
return 1 | |
} | |
function _eglTerminate(display) { | |
if (display != 62e3) { | |
EGL.setErrorCode(12296); | |
return 0 | |
} | |
EGL.currentContext = 0; | |
EGL.currentReadSurface = 0; | |
EGL.currentDrawSurface = 0; | |
EGL.defaultDisplayInitialized = false; | |
EGL.setErrorCode(12288); | |
return 1 | |
} | |
function _longjmp(env, value) { | |
_setThrew(env, value || 1); | |
throw "longjmp" | |
} | |
function _emscripten_longjmp(env, value) { | |
_longjmp(env, value) | |
} | |
function _emscripten_memcpy_big(dest, src, num) { | |
HEAPU8.copyWithin(dest, src, src + num) | |
} | |
function _emscripten_get_heap_size() { | |
return HEAPU8.length | |
} | |
function emscripten_realloc_buffer(size) { | |
try { | |
wasmMemory.grow(size - buffer.byteLength + 65535 >>> 16); | |
updateGlobalBufferAndViews(wasmMemory.buffer); | |
return 1 | |
} catch (e) {} | |
} | |
function _emscripten_resize_heap(requestedSize) { | |
requestedSize = requestedSize >>> 0; | |
var oldSize = _emscripten_get_heap_size(); | |
var PAGE_MULTIPLE = 65536; | |
var maxHeapSize = 2147483648; | |
if (requestedSize > maxHeapSize) { | |
return false | |
} | |
var minHeapSize = 16777216; | |
for (var cutDown = 1; cutDown <= 4; cutDown *= 2) { | |
var overGrownHeapSize = oldSize * (1 + .2 / cutDown); | |
overGrownHeapSize = Math.min(overGrownHeapSize, requestedSize + 100663296); | |
var newSize = Math.min(maxHeapSize, alignUp(Math.max(minHeapSize, requestedSize, overGrownHeapSize), PAGE_MULTIPLE)); | |
var replacement = emscripten_realloc_buffer(newSize); | |
if (replacement) { | |
return true | |
} | |
} | |
return false | |
} | |
var ENV = {}; | |
function getExecutableName() { | |
return thisProgram || "./this.program" | |
} | |
function getEnvStrings() { | |
if (!getEnvStrings.strings) { | |
var lang = (typeof navigator === "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8"; | |
var env = { | |
"USER": "web_user", | |
"LOGNAME": "web_user", | |
"PATH": "/", | |
"PWD": "/", | |
"HOME": "/home/web_user", | |
"LANG": lang, | |
"_": getExecutableName() | |
}; | |
for (var x in ENV) { | |
env[x] = ENV[x] | |
} | |
var strings = []; | |
for (var x in env) { | |
strings.push(x + "=" + env[x]) | |
} | |
getEnvStrings.strings = strings | |
} | |
return getEnvStrings.strings | |
} | |
function _environ_get(__environ, environ_buf) { | |
var bufSize = 0; | |
getEnvStrings().forEach(function(string, i) { | |
var ptr = environ_buf + bufSize; | |
HEAP32[__environ + i * 4 >> 2] = ptr; | |
writeAsciiToMemory(string, ptr); | |
bufSize += string.length + 1 | |
}); | |
return 0 | |
} | |
function _environ_sizes_get(penviron_count, penviron_buf_size) { | |
var strings = getEnvStrings(); | |
HEAP32[penviron_count >> 2] = strings.length; | |
var bufSize = 0; | |
strings.forEach(function(string) { | |
bufSize += string.length + 1 | |
}); | |
HEAP32[penviron_buf_size >> 2] = bufSize; | |
return 0 | |
} | |
function _exit(status) { | |
exit(status) | |
} | |
function _fd_close(fd) { | |
return 0 | |
} | |
function _fd_read(fd, iov, iovcnt, pnum) { | |
var stream = SYSCALLS.getStreamFromFD(fd); | |
var num = SYSCALLS.doReadv(stream, iov, iovcnt); | |
HEAP32[pnum >> 2] = num; | |
return 0 | |
} | |
function _fd_seek(fd, offset_low, offset_high, whence, newOffset) {} | |
function _fd_write(fd, iov, iovcnt, pnum) { | |
var num = 0; | |
for (var i = 0; i < iovcnt; i++) { | |
var ptr = HEAP32[iov + i * 8 >> 2]; | |
var len = HEAP32[iov + (i * 8 + 4) >> 2]; | |
for (var j = 0; j < len; j++) { | |
SYSCALLS.printChar(fd, HEAPU8[ptr + j]) | |
} | |
num += len | |
} | |
HEAP32[pnum >> 2] = num; | |
return 0 | |
} | |
function _getTempRet0() { | |
return getTempRet0() | 0 | |
} | |
function _glActiveTexture(x0) { | |
GLctx["activeTexture"](x0) | |
} | |
function _glAttachShader(program, shader) { | |
GLctx.attachShader(GL.programs[program], GL.shaders[shader]) | |
} | |
function _glBindAttribLocation(program, index, name) { | |
GLctx.bindAttribLocation(GL.programs[program], index, UTF8ToString(name)) | |
} | |
function _glBindBuffer(target, buffer) { | |
GLctx.bindBuffer(target, GL.buffers[buffer]) | |
} | |
function _glBindFramebuffer(target, framebuffer) { | |
GLctx.bindFramebuffer(target, GL.framebuffers[framebuffer]) | |
} | |
function _glBindRenderbuffer(target, renderbuffer) { | |
GLctx.bindRenderbuffer(target, GL.renderbuffers[renderbuffer]) | |
} | |
function _glBindTexture(target, texture) { | |
GLctx.bindTexture(target, GL.textures[texture]) | |
} | |
function _glBlendColor(x0, x1, x2, x3) { | |
GLctx["blendColor"](x0, x1, x2, x3) | |
} | |
function _glBlendEquationSeparate(x0, x1) { | |
GLctx["blendEquationSeparate"](x0, x1) | |
} | |
function _glBlendFuncSeparate(x0, x1, x2, x3) { | |
GLctx["blendFuncSeparate"](x0, x1, x2, x3) | |
} | |
function _glBufferData(target, size, data, usage) { | |
GLctx.bufferData(target, data ? HEAPU8.subarray(data, data + size) : size, usage) | |
} | |
function _glBufferSubData(target, offset, size, data) { | |
GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data + size)) | |
} | |
function _glCheckFramebufferStatus(x0) { | |
return GLctx["checkFramebufferStatus"](x0) | |
} | |
function _glClear(x0) { | |
GLctx["clear"](x0) | |
} | |
function _glClearColor(x0, x1, x2, x3) { | |
GLctx["clearColor"](x0, x1, x2, x3) | |
} | |
function _glClearDepthf(x0) { | |
GLctx["clearDepth"](x0) | |
} | |
function _glClearStencil(x0) { | |
GLctx["clearStencil"](x0) | |
} | |
function _glColorMask(red, green, blue, alpha) { | |
GLctx.colorMask(!!red, !!green, !!blue, !!alpha) | |
} | |
function _glCompileShader(shader) { | |
GLctx.compileShader(GL.shaders[shader]) | |
} | |
function _glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) { | |
GLctx["compressedTexImage2D"](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray(data, data + imageSize) : null) | |
} | |
function _glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data) { | |
GLctx["compressedTexSubImage2D"](target, level, xoffset, yoffset, width, height, format, data ? HEAPU8.subarray(data, data + imageSize) : null) | |
} | |
function _glCopyTexSubImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { | |
GLctx["copyTexSubImage2D"](x0, x1, x2, x3, x4, x5, x6, x7) | |
} | |
function _glCreateProgram() { | |
var id = GL.getNewId(GL.programs); | |
var program = GLctx.createProgram(); | |
program.name = id; | |
GL.programs[id] = program; | |
return id | |
} | |
function _glCreateShader(shaderType) { | |
var id = GL.getNewId(GL.shaders); | |
GL.shaders[id] = GLctx.createShader(shaderType); | |
return id | |
} | |
function _glCullFace(x0) { | |
GLctx["cullFace"](x0) | |
} | |
function _glDeleteBuffers(n, buffers) { | |
for (var i = 0; i < n; i++) { | |
var id = HEAP32[buffers + i * 4 >> 2]; | |
var buffer = GL.buffers[id]; | |
if (!buffer) continue; | |
GLctx.deleteBuffer(buffer); | |
buffer.name = 0; | |
GL.buffers[id] = null | |
} | |
} | |
function _glDeleteFramebuffers(n, framebuffers) { | |
for (var i = 0; i < n; ++i) { | |
var id = HEAP32[framebuffers + i * 4 >> 2]; | |
var framebuffer = GL.framebuffers[id]; | |
if (!framebuffer) continue; | |
GLctx.deleteFramebuffer(framebuffer); | |
framebuffer.name = 0; | |
GL.framebuffers[id] = null | |
} | |
} | |
function _glDeleteProgram(id) { | |
if (!id) return; | |
var program = GL.programs[id]; | |
if (!program) { | |
GL.recordError(1281); | |
return | |
} | |
GLctx.deleteProgram(program); | |
program.name = 0; | |
GL.programs[id] = null; | |
GL.programInfos[id] = null | |
} | |
function _glDeleteRenderbuffers(n, renderbuffers) { | |
for (var i = 0; i < n; i++) { | |
var id = HEAP32[renderbuffers + i * 4 >> 2]; | |
var renderbuffer = GL.renderbuffers[id]; | |
if (!renderbuffer) continue; | |
GLctx.deleteRenderbuffer(renderbuffer); | |
renderbuffer.name = 0; | |
GL.renderbuffers[id] = null | |
} | |
} | |
function _glDeleteShader(id) { | |
if (!id) return; | |
var shader = GL.shaders[id]; | |
if (!shader) { | |
GL.recordError(1281); | |
return | |
} | |
GLctx.deleteShader(shader); | |
GL.shaders[id] = null | |
} | |
function _glDeleteTextures(n, textures) { | |
for (var i = 0; i < n; i++) { | |
var id = HEAP32[textures + i * 4 >> 2]; | |
var texture = GL.textures[id]; | |
if (!texture) continue; | |
GLctx.deleteTexture(texture); | |
texture.name = 0; | |
GL.textures[id] = null | |
} | |
} | |
function _glDepthFunc(x0) { | |
GLctx["depthFunc"](x0) | |
} | |
function _glDepthMask(flag) { | |
GLctx.depthMask(!!flag) | |
} | |
function _glDisable(x0) { | |
GLctx["disable"](x0) | |
} | |
function _glDisableVertexAttribArray(index) { | |
GLctx.disableVertexAttribArray(index) | |
} | |
function _glDrawArrays(mode, first, count) { | |
GLctx.drawArrays(mode, first, count) | |
} | |
function _glDrawElements(mode, count, type, indices) { | |
GLctx.drawElements(mode, count, type, indices) | |
} | |
function _glEnable(x0) { | |
GLctx["enable"](x0) | |
} | |
function _glEnableVertexAttribArray(index) { | |
GLctx.enableVertexAttribArray(index) | |
} | |
function _glFinish() { | |
GLctx["finish"]() | |
} | |
function _glFlush() { | |
GLctx["flush"]() | |
} | |
function _glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer) { | |
GLctx.framebufferRenderbuffer(target, attachment, renderbuffertarget, GL.renderbuffers[renderbuffer]) | |
} | |
function _glFramebufferTexture2D(target, attachment, textarget, texture, level) { | |
GLctx.framebufferTexture2D(target, attachment, textarget, GL.textures[texture], level) | |
} | |
function _glFrontFace(x0) { | |
GLctx["frontFace"](x0) | |
} | |
function __glGenObject(n, buffers, createFunction, objectTable) { | |
for (var i = 0; i < n; i++) { | |
var buffer = GLctx[createFunction](); | |
var id = buffer && GL.getNewId(objectTable); | |
if (buffer) { | |
buffer.name = id; | |
objectTable[id] = buffer | |
} else { | |
GL.recordError(1282) | |
} | |
HEAP32[buffers + i * 4 >> 2] = id | |
} | |
} | |
function _glGenBuffers(n, buffers) { | |
__glGenObject(n, buffers, "createBuffer", GL.buffers) | |
} | |
function _glGenFramebuffers(n, ids) { | |
__glGenObject(n, ids, "createFramebuffer", GL.framebuffers) | |
} | |
function _glGenRenderbuffers(n, renderbuffers) { | |
__glGenObject(n, renderbuffers, "createRenderbuffer", GL.renderbuffers) | |
} | |
function _glGenTextures(n, textures) { | |
__glGenObject(n, textures, "createTexture", GL.textures) | |
} | |
function _glGenerateMipmap(x0) { | |
GLctx["generateMipmap"](x0) | |
} | |
function __glGetActiveAttribOrUniform(funcName, program, index, bufSize, length, size, type, name) { | |
program = GL.programs[program]; | |
var info = GLctx[funcName](program, index); | |
if (info) { | |
var numBytesWrittenExclNull = name && stringToUTF8(info.name, name, bufSize); | |
if (length) HEAP32[length >> 2] = numBytesWrittenExclNull; | |
if (size) HEAP32[size >> 2] = info.size; | |
if (type) HEAP32[type >> 2] = info.type | |
} | |
} | |
function _glGetActiveAttrib(program, index, bufSize, length, size, type, name) { | |
__glGetActiveAttribOrUniform("getActiveAttrib", program, index, bufSize, length, size, type, name) | |
} | |
function _glGetActiveUniform(program, index, bufSize, length, size, type, name) { | |
__glGetActiveAttribOrUniform("getActiveUniform", program, index, bufSize, length, size, type, name) | |
} | |
function _glGetAttribLocation(program, name) { | |
return GLctx.getAttribLocation(GL.programs[program], UTF8ToString(name)) | |
} | |
function _glGetError() { | |
var error = GLctx.getError() || GL.lastError; | |
GL.lastError = 0; | |
return error | |
} | |
function writeI53ToI64(ptr, num) { | |
HEAPU32[ptr >> 2] = num; | |
HEAPU32[ptr + 4 >> 2] = (num - HEAPU32[ptr >> 2]) / 4294967296 | |
} | |
function emscriptenWebGLGet(name_, p, type) { | |
if (!p) { | |
GL.recordError(1281); | |
return | |
} | |
var ret = undefined; | |
switch (name_) { | |
case 36346: | |
ret = 1; | |
break; | |
case 36344: | |
if (type != 0 && type != 1) { | |
GL.recordError(1280) | |
} | |
return; | |
case 36345: | |
ret = 0; | |
break; | |
case 34466: | |
var formats = GLctx.getParameter(34467); | |
ret = formats ? formats.length : 0; | |
break | |
} | |
if (ret === undefined) { | |
var result = GLctx.getParameter(name_); | |
switch (typeof result) { | |
case "number": | |
ret = result; | |
break; | |
case "boolean": | |
ret = result ? 1 : 0; | |
break; | |
case "string": | |
GL.recordError(1280); | |
return; | |
case "object": | |
if (result === null) { | |
switch (name_) { | |
case 34964: | |
case 35725: | |
case 34965: | |
case 36006: | |
case 36007: | |
case 32873: | |
case 34229: | |
case 34068: { | |
ret = 0; | |
break | |
} | |
default: { | |
GL.recordError(1280); | |
return | |
} | |
} | |
} else if (result instanceof Float32Array || result instanceof Uint32Array || result instanceof Int32Array || result instanceof Array) { | |
for (var i = 0; i < result.length; ++i) { | |
switch (type) { | |
case 0: | |
HEAP32[p + i * 4 >> 2] = result[i]; | |
break; | |
case 2: | |
HEAPF32[p + i * 4 >> 2] = result[i]; | |
break; | |
case 4: | |
HEAP8[p + i >> 0] = result[i] ? 1 : 0; | |
break | |
} | |
} | |
return | |
} else { | |
try { | |
ret = result.name | 0 | |
} catch (e) { | |
GL.recordError(1280); | |
err("GL_INVALID_ENUM in glGet" + type + "v: Unknown object returned from WebGL getParameter(" + name_ + ")! (error: " + e + ")"); | |
return | |
} | |
} | |
break; | |
default: | |
GL.recordError(1280); | |
err("GL_INVALID_ENUM in glGet" + type + "v: Native code calling glGet" + type + "v(" + name_ + ") and it returns " + result + " of type " + typeof result + "!"); | |
return | |
} | |
} | |
switch (type) { | |
case 1: | |
writeI53ToI64(p, ret); | |
break; | |
case 0: | |
HEAP32[p >> 2] = ret; | |
break; | |
case 2: | |
HEAPF32[p >> 2] = ret; | |
break; | |
case 4: | |
HEAP8[p >> 0] = ret ? 1 : 0; | |
break | |
} | |
} | |
function _glGetFloatv(name_, p) { | |
emscriptenWebGLGet(name_, p, 2) | |
} | |
function _glGetIntegerv(name_, p) { | |
emscriptenWebGLGet(name_, p, 0) | |
} | |
function _glGetProgramiv(program, pname, p) { | |
if (!p) { | |
GL.recordError(1281); | |
return | |
} | |
if (program >= GL.counter) { | |
GL.recordError(1281); | |
return | |
} | |
var ptable = GL.programInfos[program]; | |
if (!ptable) { | |
GL.recordError(1282); | |
return | |
} | |
if (pname == 35716) { | |
var log = GLctx.getProgramInfoLog(GL.programs[program]); | |
if (log === null) log = "(unknown error)"; | |
HEAP32[p >> 2] = log.length + 1 | |
} else if (pname == 35719) { | |
HEAP32[p >> 2] = ptable.maxUniformLength | |
} else if (pname == 35722) { | |
if (ptable.maxAttributeLength == -1) { | |
program = GL.programs[program]; | |
var numAttribs = GLctx.getProgramParameter(program, 35721); | |
ptable.maxAttributeLength = 0; | |
for (var i = 0; i < numAttribs; ++i) { | |
var activeAttrib = GLctx.getActiveAttrib(program, i); | |
ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length + 1) | |
} | |
} | |
HEAP32[p >> 2] = ptable.maxAttributeLength | |
} else if (pname == 35381) { | |
if (ptable.maxUniformBlockNameLength == -1) { | |
program = GL.programs[program]; | |
var numBlocks = GLctx.getProgramParameter(program, 35382); | |
ptable.maxUniformBlockNameLength = 0; | |
for (var i = 0; i < numBlocks; ++i) { | |
var activeBlockName = GLctx.getActiveUniformBlockName(program, i); | |
ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length + 1) | |
} | |
} | |
HEAP32[p >> 2] = ptable.maxUniformBlockNameLength | |
} else { | |
HEAP32[p >> 2] = GLctx.getProgramParameter(GL.programs[program], pname) | |
} | |
} | |
function _glGetShaderiv(shader, pname, p) { | |
if (!p) { | |
GL.recordError(1281); | |
return | |
} | |
if (pname == 35716) { | |
var log = GLctx.getShaderInfoLog(GL.shaders[shader]); | |
if (log === null) log = "(unknown error)"; | |
var logLength = log ? log.length + 1 : 0; | |
HEAP32[p >> 2] = logLength | |
} else if (pname == 35720) { | |
var source = GLctx.getShaderSource(GL.shaders[shader]); | |
var sourceLength = source ? source.length + 1 : 0; | |
HEAP32[p >> 2] = sourceLength | |
} else { | |
HEAP32[p >> 2] = GLctx.getShaderParameter(GL.shaders[shader], pname) | |
} | |
} | |
function stringToNewUTF8(jsString) { | |
var length = lengthBytesUTF8(jsString) + 1; | |
var cString = _malloc(length); | |
stringToUTF8(jsString, cString, length); | |
return cString | |
} | |
function _glGetString(name_) { | |
if (GL.stringCache[name_]) return GL.stringCache[name_]; | |
var ret; | |
switch (name_) { | |
case 7939: | |
var exts = GLctx.getSupportedExtensions() || []; | |
exts = exts.concat(exts.map(function(e) { | |
return "GL_" + e | |
})); | |
ret = stringToNewUTF8(exts.join(" ")); | |
break; | |
case 7936: | |
case 7937: | |
case 37445: | |
case 37446: | |
var s = GLctx.getParameter(name_); | |
if (!s) { | |
GL.recordError(1280) | |
} | |
ret = stringToNewUTF8(s); | |
break; | |
case 7938: | |
var glVersion = GLctx.getParameter(7938); { | |
glVersion = "OpenGL ES 2.0 (" + glVersion + ")" | |
} | |
ret = stringToNewUTF8(glVersion); | |
break; | |
case 35724: | |
var glslVersion = GLctx.getParameter(35724); | |
var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/; | |
var ver_num = glslVersion.match(ver_re); | |
if (ver_num !== null) { | |
if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + "0"; | |
glslVersion = "OpenGL ES GLSL ES " + ver_num[1] + " (" + glslVersion + ")" | |
} | |
ret = stringToNewUTF8(glslVersion); | |
break; | |
default: | |
GL.recordError(1280); | |
return 0 | |
} | |
GL.stringCache[name_] = ret; | |
return ret | |
} | |
function jstoi_q(str) { | |
return parseInt(str) | |
} | |
function _glGetUniformLocation(program, name) { | |
name = UTF8ToString(name); | |
var arrayIndex = 0; | |
if (name[name.length - 1] == "]") { | |
var leftBrace = name.lastIndexOf("["); | |
arrayIndex = name[leftBrace + 1] != "]" ? jstoi_q(name.slice(leftBrace + 1)) : 0; | |
name = name.slice(0, leftBrace) | |
} | |
var uniformInfo = GL.programInfos[program] && GL.programInfos[program].uniforms[name]; | |
if (uniformInfo && arrayIndex >= 0 && arrayIndex < uniformInfo[0]) { | |
return uniformInfo[1] + arrayIndex | |
} else { | |
return -1 | |
} | |
} | |
function _glHint(x0, x1) { | |
GLctx["hint"](x0, x1) | |
} | |
function _glLineWidth(x0) { | |
GLctx["lineWidth"](x0) | |
} | |
function _glLinkProgram(program) { | |
GLctx.linkProgram(GL.programs[program]); | |
GL.populateUniformTable(program) | |
} | |
function _glPixelStorei(pname, param) { | |
if (pname == 3317) { | |
GL.unpackAlignment = param | |
} | |
GLctx.pixelStorei(pname, param) | |
} | |
function _glPolygonOffset(x0, x1) { | |
GLctx["polygonOffset"](x0, x1) | |
} | |
function _glRenderbufferStorage(x0, x1, x2, x3) { | |
GLctx["renderbufferStorage"](x0, x1, x2, x3) | |
} | |
function _glScissor(x0, x1, x2, x3) { | |
GLctx["scissor"](x0, x1, x2, x3) | |
} | |
function _glShaderSource(shader, count, string, length) { | |
var source = GL.getSource(shader, count, string, length); | |
GLctx.shaderSource(GL.shaders[shader], source) | |
} | |
function _glStencilFuncSeparate(x0, x1, x2, x3) { | |
GLctx["stencilFuncSeparate"](x0, x1, x2, x3) | |
} | |
function _glStencilMaskSeparate(x0, x1) { | |
GLctx["stencilMaskSeparate"](x0, x1) | |
} | |
function _glStencilOpSeparate(x0, x1, x2, x3) { | |
GLctx["stencilOpSeparate"](x0, x1, x2, x3) | |
} | |
function computeUnpackAlignedImageSize(width, height, sizePerPixel, alignment) { | |
function roundedToNextMultipleOf(x, y) { | |
return x + y - 1 & -y | |
} | |
var plainRowSize = width * sizePerPixel; | |
var alignedRowSize = roundedToNextMultipleOf(plainRowSize, alignment); | |
return height * alignedRowSize | |
} | |
function __colorChannelsInGlTextureFormat(format) { | |
var colorChannels = { | |
5: 3, | |
6: 4, | |
8: 2, | |
29502: 3, | |
29504: 4 | |
}; | |
return colorChannels[format - 6402] || 1 | |
} | |
function heapObjectForWebGLType(type) { | |
type -= 5120; | |
if (type == 1) return HEAPU8; | |
if (type == 4) return HEAP32; | |
if (type == 6) return HEAPF32; | |
if (type == 5 || type == 28922) return HEAPU32; | |
return HEAPU16 | |
} | |
function heapAccessShiftForWebGLHeap(heap) { | |
return 31 - Math.clz32(heap.BYTES_PER_ELEMENT) | |
} | |
function emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat) { | |
var heap = heapObjectForWebGLType(type); | |
var shift = heapAccessShiftForWebGLHeap(heap); | |
var byteSize = 1 << shift; | |
var sizePerPixel = __colorChannelsInGlTextureFormat(format) * byteSize; | |
var bytes = computeUnpackAlignedImageSize(width, height, sizePerPixel, GL.unpackAlignment); | |
return heap.subarray(pixels >> shift, pixels + bytes >> shift) | |
} | |
function _glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) { | |
GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixels ? emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat) : null) | |
} | |
function _glTexParameteri(x0, x1, x2) { | |
GLctx["texParameteri"](x0, x1, x2) | |
} | |
function _glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels) { | |
var pixelData = null; | |
if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, 0); | |
GLctx.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixelData) | |
} | |
function _glUniform1f(location, v0) { | |
GLctx.uniform1f(GL.uniforms[location], v0) | |
} | |
var miniTempWebGLFloatBuffers = []; | |
function _glUniform1fv(location, count, value) { | |
if (count <= 288) { | |
var view = miniTempWebGLFloatBuffers[count - 1]; | |
for (var i = 0; i < count; ++i) { | |
view[i] = HEAPF32[value + 4 * i >> 2] | |
} | |
} else { | |
var view = HEAPF32.subarray(value >> 2, value + count * 4 >> 2) | |
} | |
GLctx.uniform1fv(GL.uniforms[location], view) | |
} | |
function _glUniform1i(location, v0) { | |
GLctx.uniform1i(GL.uniforms[location], v0) | |
} | |
var __miniTempWebGLIntBuffers = []; | |
function _glUniform1iv(location, count, value) { | |
if (count <= 288) { | |
var view = __miniTempWebGLIntBuffers[count - 1]; | |
for (var i = 0; i < count; ++i) { | |
view[i] = HEAP32[value + 4 * i >> 2] | |
} | |
} else { | |
var view = HEAP32.subarray(value >> 2, value + count * 4 >> 2) | |
} | |
GLctx.uniform1iv(GL.uniforms[location], view) | |
} | |
function _glUniform2f(location, v0, v1) { | |
GLctx.uniform2f(GL.uniforms[location], v0, v1) | |
} | |
function _glUniform2fv(location, count, value) { | |
if (count <= 144) { | |
var view = miniTempWebGLFloatBuffers[2 * count - 1]; | |
for (var i = 0; i < 2 * count; i += 2) { | |
view[i] = HEAPF32[value + 4 * i >> 2]; | |
view[i + 1] = HEAPF32[value + (4 * i + 4) >> 2] | |
} | |
} else { | |
var view = HEAPF32.subarray(value >> 2, value + count * 8 >> 2) | |
} | |
GLctx.uniform2fv(GL.uniforms[location], view) | |
} | |
function _glUniform2i(location, v0, v1) { | |
GLctx.uniform2i(GL.uniforms[location], v0, v1) | |
} | |
function _glUniform2iv(location, count, value) { | |
if (count <= 144) { | |
var view = __miniTempWebGLIntBuffers[2 * count - 1]; | |
for (var i = 0; i < 2 * count; i += 2) { | |
view[i] = HEAP32[value + 4 * i >> 2]; | |
view[i + 1] = HEAP32[value + (4 * i + 4) >> 2] | |
} | |
} else { | |
var view = HEAP32.subarray(value >> 2, value + count * 8 >> 2) | |
} | |
GLctx.uniform2iv(GL.uniforms[location], view) | |
} | |
function _glUniform3f(location, v0, v1, v2) { | |
GLctx.uniform3f(GL.uniforms[location], v0, v1, v2) | |
} | |
function _glUniform3fv(location, count, value) { | |
if (count <= 96) { | |
var view = miniTempWebGLFloatBuffers[3 * count - 1]; | |
for (var i = 0; i < 3 * count; i += 3) { | |
view[i] = HEAPF32[value + 4 * i >> 2]; | |
view[i + 1] = HEAPF32[value + (4 * i + 4) >> 2]; | |
view[i + 2] = HEAPF32[value + (4 * i + 8) >> 2] | |
} | |
} else { | |
var view = HEAPF32.subarray(value >> 2, value + count * 12 >> 2) | |
} | |
GLctx.uniform3fv(GL.uniforms[location], view) | |
} | |
function _glUniform3i(location, v0, v1, v2) { | |
GLctx.uniform3i(GL.uniforms[location], v0, v1, v2) | |
} | |
function _glUniform3iv(location, count, value) { | |
if (count <= 96) { | |
var view = __miniTempWebGLIntBuffers[3 * count - 1]; | |
for (var i = 0; i < 3 * count; i += 3) { | |
view[i] = HEAP32[value + 4 * i >> 2]; | |
view[i + 1] = HEAP32[value + (4 * i + 4) >> 2]; | |
view[i + 2] = HEAP32[value + (4 * i + 8) >> 2] | |
} | |
} else { | |
var view = HEAP32.subarray(value >> 2, value + count * 12 >> 2) | |
} | |
GLctx.uniform3iv(GL.uniforms[location], view) | |
} | |
function _glUniform4f(location, v0, v1, v2, v3) { | |
GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3) | |
} | |
function _glUniform4fv(location, count, value) { | |
if (count <= 72) { | |
var view = miniTempWebGLFloatBuffers[4 * count - 1]; | |
var heap = HEAPF32; | |
value >>= 2; | |
for (var i = 0; i < 4 * count; i += 4) { | |
var dst = value + i; | |
view[i] = heap[dst]; | |
view[i + 1] = heap[dst + 1]; | |
view[i + 2] = heap[dst + 2]; | |
view[i + 3] = heap[dst + 3] | |
} | |
} else { | |
var view = HEAPF32.subarray(value >> 2, value + count * 16 >> 2) | |
} | |
GLctx.uniform4fv(GL.uniforms[location], view) | |
} | |
function _glUniform4i(location, v0, v1, v2, v3) { | |
GLctx.uniform4i(GL.uniforms[location], v0, v1, v2, v3) | |
} | |
function _glUniform4iv(location, count, value) { | |
if (count <= 72) { | |
var view = __miniTempWebGLIntBuffers[4 * count - 1]; | |
for (var i = 0; i < 4 * count; i += 4) { | |
view[i] = HEAP32[value + 4 * i >> 2]; | |
view[i + 1] = HEAP32[value + (4 * i + 4) >> 2]; | |
view[i + 2] = HEAP32[value + (4 * i + 8) >> 2]; | |
view[i + 3] = HEAP32[value + (4 * i + 12) >> 2] | |
} | |
} else { | |
var view = HEAP32.subarray(value >> 2, value + count * 16 >> 2) | |
} | |
GLctx.uniform4iv(GL.uniforms[location], view) | |
} | |
function _glUniformMatrix2fv(location, count, transpose, value) { | |
if (count <= 72) { | |
var view = miniTempWebGLFloatBuffers[4 * count - 1]; | |
for (var i = 0; i < 4 * count; i += 4) { | |
view[i] = HEAPF32[value + 4 * i >> 2]; | |
view[i + 1] = HEAPF32[value + (4 * i + 4) >> 2]; | |
view[i + 2] = HEAPF32[value + (4 * i + 8) >> 2]; | |
view[i + 3] = HEAPF32[value + (4 * i + 12) >> 2] | |
} | |
} else { | |
var view = HEAPF32.subarray(value >> 2, value + count * 16 >> 2) | |
} | |
GLctx.uniformMatrix2fv(GL.uniforms[location], !!transpose, view) | |
} | |
function _glUniformMatrix3fv(location, count, transpose, value) { | |
if (count <= 32) { | |
var view = miniTempWebGLFloatBuffers[9 * count - 1]; | |
for (var i = 0; i < 9 * count; i += 9) { | |
view[i] = HEAPF32[value + 4 * i >> 2]; | |
view[i + 1] = HEAPF32[value + (4 * i + 4) >> 2]; | |
view[i + 2] = HEAPF32[value + (4 * i + 8) >> 2]; | |
view[i + 3] = HEAPF32[value + (4 * i + 12) >> 2]; | |
view[i + 4] = HEAPF32[value + (4 * i + 16) >> 2]; | |
view[i + 5] = HEAPF32[value + (4 * i + 20) >> 2]; | |
view[i + 6] = HEAPF32[value + (4 * i + 24) >> 2]; | |
view[i + 7] = HEAPF32[value + (4 * i + 28) >> 2]; | |
view[i + 8] = HEAPF32[value + (4 * i + 32) >> 2] | |
} | |
} else { | |
var view = HEAPF32.subarray(value >> 2, value + count * 36 >> 2) | |
} | |
GLctx.uniformMatrix3fv(GL.uniforms[location], !!transpose, view) | |
} | |
function _glUniformMatrix4fv(location, count, transpose, value) { | |
if (count <= 18) { | |
var view = miniTempWebGLFloatBuffers[16 * count - 1]; | |
var heap = HEAPF32; | |
value >>= 2; | |
for (var i = 0; i < 16 * count; i += 16) { | |
var dst = value + i; | |
view[i] = heap[dst]; | |
view[i + 1] = heap[dst + 1]; | |
view[i + 2] = heap[dst + 2]; | |
view[i + 3] = heap[dst + 3]; | |
view[i + 4] = heap[dst + 4]; | |
view[i + 5] = heap[dst + 5]; | |
view[i + 6] = heap[dst + 6]; | |
view[i + 7] = heap[dst + 7]; | |
view[i + 8] = heap[dst + 8]; | |
view[i + 9] = heap[dst + 9]; | |
view[i + 10] = heap[dst + 10]; | |
view[i + 11] = heap[dst + 11]; | |
view[i + 12] = heap[dst + 12]; | |
view[i + 13] = heap[dst + 13]; | |
view[i + 14] = heap[dst + 14]; | |
view[i + 15] = heap[dst + 15] | |
} | |
} else { | |
var view = HEAPF32.subarray(value >> 2, value + count * 64 >> 2) | |
} | |
GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view) | |
} | |
function _glUseProgram(program) { | |
GLctx.useProgram(GL.programs[program]) | |
} | |
function _glVertexAttribPointer(index, size, type, normalized, stride, ptr) { | |
GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr) | |
} | |
function _glViewport(x0, x1, x2, x3) { | |
GLctx["viewport"](x0, x1, x2, x3) | |
} | |
function _round(d) { | |
d = +d; | |
return d >= +0 ? +Math_floor(d + +.5) : +Math_ceil(d - +.5) | |
} | |
function _roundf(d) { | |
d = +d; | |
return d >= +0 ? +Math_floor(d + +.5) : +Math_ceil(d - +.5) | |
} | |
function _setTempRet0($i) { | |
setTempRet0($i | 0) | |
} | |
function _sha1_computeHash(indirectBufferHandle, digest) { | |
var input = _jsValueSlots[indirectBufferHandle]; | |
var w = new Int32Array(80); | |
var m_buffer = new Uint8Array(64); | |
var m_hash = new Int32Array([1732584193, 4023233417, 2562383102, 271733878, 3285377520]); | |
var m_totalBytes = 0; | |
var m_cursor = 0; | |
addBytes(); | |
finalize(); | |
for (var i = 0; i < 5; i = i + 1 | 0) { | |
var hashValue = m_hash[i]; | |
for (var j = 3; j >= 0; j = j - 1 | 0) { | |
HEAPU8[((i << 2) + j | 0) + digest | 0] = hashValue & 255; | |
hashValue >>>= 8 | |
} | |
} | |
function addBytes() { | |
var length = input.length; | |
while (length > 0) { | |
length = length - 1 | 0; | |
m_buffer[m_cursor] = input[m_totalBytes]; | |
m_cursor = m_cursor + 1 | 0; | |
m_totalBytes = m_totalBytes + 1 | 0; | |
if (m_cursor === 64) { | |
processBlock() | |
} | |
} | |
} | |
function f(t, b, c, d) { | |
if (t < 20) { | |
return b & c | ~b & d | |
} | |
if (t < 40) { | |
return b ^ c ^ d | |
} | |
if (t < 60) { | |
return b & c | b & d | c & d | |
} | |
return b ^ c ^ d | |
} | |
function k(t) { | |
if (t < 20) { | |
return 1518500249 | |
} | |
if (t < 40) { | |
return 1859775393 | |
} | |
if (t < 60) { | |
return 2400959708 | |
} | |
return 3395469782 | |
} | |
function rotateLeft(n, x) { | |
return x << n | x >>> (32 - n | 0) | |
} | |
function processBlock() { | |
for (var t = 0; t < 16; t = t + 1 | 0) { | |
w[t] = m_buffer[t << 2] << 24 | m_buffer[(t << 2) + 1 | 0] << 16 | m_buffer[(t << 2) + 2 | 0] << 8 | m_buffer[(t << 2) + 3 | 0] | |
} | |
for (var t = 16; t < 80; t = t + 1 | 0) { | |
w[t] = rotateLeft(1, w[t - 3 | 0] ^ w[t - 8 | 0] ^ w[t - 14 | 0] ^ w[t - 16 | 0]) | |
} | |
var a = m_hash[0]; | |
var b = m_hash[1]; | |
var c = m_hash[2]; | |
var d = m_hash[3]; | |
var e = m_hash[4]; | |
for (var t = 0; t < 80; t = t + 1 | 0) { | |
var temp = (((rotateLeft(5, a) + f(t, b, c, d) | 0) + e | 0) + w[t] | 0) + k(t) | 0; | |
e = d; | |
d = c; | |
c = rotateLeft(30, b); | |
b = a; | |
a = temp | |
} | |
m_hash[0] += a; | |
m_hash[1] += b; | |
m_hash[2] += c; | |
m_hash[3] += d; | |
m_hash[4] += e; | |
m_cursor = 0 | |
} | |
function finalize() { | |
m_buffer[m_cursor] = 128; | |
m_cursor = m_cursor + 1 | 0; | |
if (m_cursor > 56) { | |
while (m_cursor < 64) { | |
m_buffer[m_cursor] = 0; | |
m_cursor = m_cursor + 1 | 0 | |
} | |
processBlock() | |
} | |
for (var i = m_cursor; i < 56; i = i + 1 | 0) { | |
m_buffer[i] = 0 | |
} | |
var bits = m_totalBytes << 3; | |
for (var i = 7; i >= 0; i = i - 1 | 0) { | |
m_buffer[56 + i | 0] = bits & 255; | |
bits >>>= 8 | |
} | |
m_cursor = 64; | |
processBlock() | |
} | |
} | |
function __isLeapYear(year) { | |
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0) | |
} | |
function __arraySum(array, index) { | |
var sum = 0; | |
for (var i = 0; i <= index; sum += array[i++]) {} | |
return sum | |
} | |
var __MONTH_DAYS_LEAP = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; | |
var __MONTH_DAYS_REGULAR = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; | |
function __addDays(date, days) { | |
var newDate = new Date(date.getTime()); | |
while (days > 0) { | |
var leap = __isLeapYear(newDate.getFullYear()); | |
var currentMonth = newDate.getMonth(); | |
var daysInCurrentMonth = (leap ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR)[currentMonth]; | |
if (days > daysInCurrentMonth - newDate.getDate()) { | |
days -= daysInCurrentMonth - newDate.getDate() + 1; | |
newDate.setDate(1); | |
if (currentMonth < 11) { | |
newDate.setMonth(currentMonth + 1) | |
} else { | |
newDate.setMonth(0); | |
newDate.setFullYear(newDate.getFullYear() + 1) | |
} | |
} else { | |
newDate.setDate(newDate.getDate() + days); | |
return newDate | |
} | |
} | |
return newDate | |
} | |
function _strftime(s, maxsize, format, tm) { | |
var tm_zone = HEAP32[tm + 40 >> 2]; | |
var date = { | |
tm_sec: HEAP32[tm >> 2], | |
tm_min: HEAP32[tm + 4 >> 2], | |
tm_hour: HEAP32[tm + 8 >> 2], | |
tm_mday: HEAP32[tm + 12 >> 2], | |
tm_mon: HEAP32[tm + 16 >> 2], | |
tm_year: HEAP32[tm + 20 >> 2], | |
tm_wday: HEAP32[tm + 24 >> 2], | |
tm_yday: HEAP32[tm + 28 >> 2], | |
tm_isdst: HEAP32[tm + 32 >> 2], | |
tm_gmtoff: HEAP32[tm + 36 >> 2], | |
tm_zone: tm_zone ? UTF8ToString(tm_zone) : "" | |
}; | |
var pattern = UTF8ToString(format); | |
var EXPANSION_RULES_1 = { | |
"%c": "%a %b %d %H:%M:%S %Y", | |
"%D": "%m/%d/%y", | |
"%F": "%Y-%m-%d", | |
"%h": "%b", | |
"%r": "%I:%M:%S %p", | |
"%R": "%H:%M", | |
"%T": "%H:%M:%S", | |
"%x": "%m/%d/%y", | |
"%X": "%H:%M:%S", | |
"%Ec": "%c", | |
"%EC": "%C", | |
"%Ex": "%m/%d/%y", | |
"%EX": "%H:%M:%S", | |
"%Ey": "%y", | |
"%EY": "%Y", | |
"%Od": "%d", | |
"%Oe": "%e", | |
"%OH": "%H", | |
"%OI": "%I", | |
"%Om": "%m", | |
"%OM": "%M", | |
"%OS": "%S", | |
"%Ou": "%u", | |
"%OU": "%U", | |
"%OV": "%V", | |
"%Ow": "%w", | |
"%OW": "%W", | |
"%Oy": "%y" | |
}; | |
for (var rule in EXPANSION_RULES_1) { | |
pattern = pattern.replace(new RegExp(rule, "g"), EXPANSION_RULES_1[rule]) | |
} | |
var WEEKDAYS = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; | |
var MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; | |
function leadingSomething(value, digits, character) { | |
var str = typeof value === "number" ? value.toString() : value || ""; | |
while (str.length < digits) { | |
str = character[0] + str | |
} | |
return str | |
} | |
function leadingNulls(value, digits) { | |
return leadingSomething(value, digits, "0") | |
} | |
function compareByDay(date1, date2) { | |
function sgn(value) { | |
return value < 0 ? -1 : value > 0 ? 1 : 0 | |
} | |
var compare; | |
if ((compare = sgn(date1.getFullYear() - date2.getFullYear())) === 0) { | |
if ((compare = sgn(date1.getMonth() - date2.getMonth())) === 0) { | |
compare = sgn(date1.getDate() - date2.getDate()) | |
} | |
} | |
return compare | |
} | |
function getFirstWeekStartDate(janFourth) { | |
switch (janFourth.getDay()) { | |
case 0: | |
return new Date(janFourth.getFullYear() - 1, 11, 29); | |
case 1: | |
return janFourth; | |
case 2: | |
return new Date(janFourth.getFullYear(), 0, 3); | |
case 3: | |
return new Date(janFourth.getFullYear(), 0, 2); | |
case 4: | |
return new Date(janFourth.getFullYear(), 0, 1); | |
case 5: | |
return new Date(janFourth.getFullYear() - 1, 11, 31); | |
case 6: | |
return new Date(janFourth.getFullYear() - 1, 11, 30) | |
} | |
} | |
function getWeekBasedYear(date) { | |
var thisDate = __addDays(new Date(date.tm_year + 1900, 0, 1), date.tm_yday); | |
var janFourthThisYear = new Date(thisDate.getFullYear(), 0, 4); | |
var janFourthNextYear = new Date(thisDate.getFullYear() + 1, 0, 4); | |
var firstWeekStartThisYear = getFirstWeekStartDate(janFourthThisYear); | |
var firstWeekStartNextYear = getFirstWeekStartDate(janFourthNextYear); | |
if (compareByDay(firstWeekStartThisYear, thisDate) <= 0) { | |
if (compareByDay(firstWeekStartNextYear, thisDate) <= 0) { | |
return thisDate.getFullYear() + 1 | |
} else { | |
return thisDate.getFullYear() | |
} | |
} else { | |
return thisDate.getFullYear() - 1 | |
} | |
} | |
var EXPANSION_RULES_2 = { | |
"%a": function(date) { | |
return WEEKDAYS[date.tm_wday].substring(0, 3) | |
}, | |
"%A": function(date) { | |
return WEEKDAYS[date.tm_wday] | |
}, | |
"%b": function(date) { | |
return MONTHS[date.tm_mon].substring(0, 3) | |
}, | |
"%B": function(date) { | |
return MONTHS[date.tm_mon] | |
}, | |
"%C": function(date) { | |
var year = date.tm_year + 1900; | |
return leadingNulls(year / 100 | 0, 2) | |
}, | |
"%d": function(date) { | |
return leadingNulls(date.tm_mday, 2) | |
}, | |
"%e": function(date) { | |
return leadingSomething(date.tm_mday, 2, " ") | |
}, | |
"%g": function(date) { | |
return getWeekBasedYear(date).toString().substring(2) | |
}, | |
"%G": function(date) { | |
return getWeekBasedYear(date) | |
}, | |
"%H": function(date) { | |
return leadingNulls(date.tm_hour, 2) | |
}, | |
"%I": function(date) { | |
var twelveHour = date.tm_hour; | |
if (twelveHour == 0) twelveHour = 12; | |
else if (twelveHour > 12) twelveHour -= 12; | |
return leadingNulls(twelveHour, 2) | |
}, | |
"%j": function(date) { | |
return leadingNulls(date.tm_mday + __arraySum(__isLeapYear(date.tm_year + 1900) ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR, date.tm_mon - 1), 3) | |
}, | |
"%m": function(date) { | |
return leadingNulls(date.tm_mon + 1, 2) | |
}, | |
"%M": function(date) { | |
return leadingNulls(date.tm_min, 2) | |
}, | |
"%n": function() { | |
return "\n" | |
}, | |
"%p": function(date) { | |
if (date.tm_hour >= 0 && date.tm_hour < 12) { | |
return "AM" | |
} else { | |
return "PM" | |
} | |
}, | |
"%S": function(date) { | |
return leadingNulls(date.tm_sec, 2) | |
}, | |
"%t": function() { | |
return "\t" | |
}, | |
"%u": function(date) { | |
return date.tm_wday || 7 | |
}, | |
"%U": function(date) { | |
var janFirst = new Date(date.tm_year + 1900, 0, 1); | |
var firstSunday = janFirst.getDay() === 0 ? janFirst : __addDays(janFirst, 7 - janFirst.getDay()); | |
var endDate = new Date(date.tm_year + 1900, date.tm_mon, date.tm_mday); | |
if (compareByDay(firstSunday, endDate) < 0) { | |
var februaryFirstUntilEndMonth = __arraySum(__isLeapYear(endDate.getFullYear()) ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR, endDate.getMonth() - 1) - 31; | |
var firstSundayUntilEndJanuary = 31 - firstSunday.getDate(); | |
var days = firstSundayUntilEndJanuary + februaryFirstUntilEndMonth + endDate.getDate(); | |
return leadingNulls(Math.ceil(days / 7), 2) | |
} | |
return compareByDay(firstSunday, janFirst) === 0 ? "01" : "00" | |
}, | |
"%V": function(date) { | |
var janFourthThisYear = new Date(date.tm_year + 1900, 0, 4); | |
var janFourthNextYear = new Date(date.tm_year + 1901, 0, 4); | |
var firstWeekStartThisYear = getFirstWeekStartDate(janFourthThisYear); | |
var firstWeekStartNextYear = getFirstWeekStartDate(janFourthNextYear); | |
var endDate = __addDays(new Date(date.tm_year + 1900, 0, 1), date.tm_yday); | |
if (compareByDay(endDate, firstWeekStartThisYear) < 0) { | |
return "53" | |
} | |
if (compareByDay(firstWeekStartNextYear, endDate) <= 0) { | |
return "01" | |
} | |
var daysDifference; | |
if (firstWeekStartThisYear.getFullYear() < date.tm_year + 1900) { | |
daysDifference = date.tm_yday + 32 - firstWeekStartThisYear.getDate() | |
} else { | |
daysDifference = date.tm_yday + 1 - firstWeekStartThisYear.getDate() | |
} | |
return leadingNulls(Math.ceil(daysDifference / 7), 2) | |
}, | |
"%w": function(date) { | |
return date.tm_wday | |
}, | |
"%W": function(date) { | |
var janFirst = new Date(date.tm_year, 0, 1); | |
var firstMonday = janFirst.getDay() === 1 ? janFirst : __addDays(janFirst, janFirst.getDay() === 0 ? 1 : 7 - janFirst.getDay() + 1); | |
var endDate = new Date(date.tm_year + 1900, date.tm_mon, date.tm_mday); | |
if (compareByDay(firstMonday, endDate) < 0) { | |
var februaryFirstUntilEndMonth = __arraySum(__isLeapYear(endDate.getFullYear()) ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR, endDate.getMonth() - 1) - 31; | |
var firstMondayUntilEndJanuary = 31 - firstMonday.getDate(); | |
var days = firstMondayUntilEndJanuary + februaryFirstUntilEndMonth + endDate.getDate(); | |
return leadingNulls(Math.ceil(days / 7), 2) | |
} | |
return compareByDay(firstMonday, janFirst) === 0 ? "01" : "00" | |
}, | |
"%y": function(date) { | |
return (date.tm_year + 1900).toString().substring(2) | |
}, | |
"%Y": function(date) { | |
return date.tm_year + 1900 | |
}, | |
"%z": function(date) { | |
var off = date.tm_gmtoff; | |
var ahead = off >= 0; | |
off = Math.abs(off) / 60; | |
off = off / 60 * 100 + off % 60; | |
return (ahead ? "+" : "-") + String("0000" + off).slice(-4) | |
}, | |
"%Z": function(date) { | |
return date.tm_zone | |
}, | |
"%%": function() { | |
return "%" | |
} | |
}; | |
for (var rule in EXPANSION_RULES_2) { | |
if (pattern.indexOf(rule) >= 0) { | |
pattern = pattern.replace(new RegExp(rule, "g"), EXPANSION_RULES_2[rule](date)) | |
} | |
} | |
var bytes = intArrayFromString(pattern, false); | |
if (bytes.length > maxsize) { | |
return 0 | |
} | |
writeArrayToMemory(bytes, s); | |
return bytes.length - 1 | |
} | |
function _strftime_l(s, maxsize, format, tm) { | |
return _strftime(s, maxsize, format, tm) | |
} | |
function _stringToLowerCase(str) { | |
return _cppStringFromJSString(_jsStringFromCPPString(str).toLowerCase()) | |
} | |
function _stringToUpperCase(str) { | |
return _cppStringFromJSString(_jsStringFromCPPString(str).toUpperCase()) | |
} | |
function _time(ptr) { | |
var ret = Date.now() / 1e3 | 0; | |
if (ptr) { | |
HEAP32[ptr >> 2] = ret | |
} | |
return ret | |
} | |
function _tsapi_setReturnBuffer(handle) { | |
_tsapi_returnValue = _jsValueSlots[handle] | |
} | |
function _tsapi_setReturnString(value) { | |
_tsapi_returnValue = _jsStringFromCPPString(value) | |
} | |
var readAsmConstArgsArray = []; | |
function readAsmConstArgs(sigPtr, buf) { | |
readAsmConstArgsArray.length = 0; | |
var ch; | |
buf >>= 2; | |
while (ch = HEAPU8[sigPtr++]) { | |
var double = ch < 105; | |
if (double && buf & 1) buf++; | |
readAsmConstArgsArray.push(double ? HEAPF64[buf++ >> 1] : HEAP32[buf]); | |
++buf | |
} | |
return readAsmConstArgsArray | |
} | |
Module["requestFullscreen"] = function Module_requestFullscreen(lockPointer, resizeCanvas) { | |
Browser.requestFullscreen(lockPointer, resizeCanvas) | |
}; | |
Module["requestAnimationFrame"] = function Module_requestAnimationFrame(func) { | |
Browser.requestAnimationFrame(func) | |
}; | |
Module["setCanvasSize"] = function Module_setCanvasSize(width, height, noUpdates) { | |
Browser.setCanvasSize(width, height, noUpdates) | |
}; | |
Module["pauseMainLoop"] = function Module_pauseMainLoop() { | |
Browser.mainLoop.pause() | |
}; | |
Module["resumeMainLoop"] = function Module_resumeMainLoop() { | |
Browser.mainLoop.resume() | |
}; | |
Module["getUserMedia"] = function Module_getUserMedia() { | |
Browser.getUserMedia() | |
}; | |
Module["createContext"] = function Module_createContext(canvas, useWebGL, setInModule, webGLContextAttributes) { | |
return Browser.createContext(canvas, useWebGL, setInModule, webGLContextAttributes) | |
}; | |
var GLctx; | |
var miniTempWebGLFloatBuffersStorage = new Float32Array(288); | |
for (var i = 0; i < 288; ++i) { | |
miniTempWebGLFloatBuffers[i] = miniTempWebGLFloatBuffersStorage.subarray(0, i + 1) | |
} | |
var __miniTempWebGLIntBuffersStorage = new Int32Array(288); | |
for (var i = 0; i < 288; ++i) { | |
__miniTempWebGLIntBuffers[i] = __miniTempWebGLIntBuffersStorage.subarray(0, i + 1) | |
} | |
function intArrayFromString(stringy, dontAddNull, length) { | |
var len = length > 0 ? length : lengthBytesUTF8(stringy) + 1; | |
var u8array = new Array(len); | |
var numBytesWritten = stringToUTF8Array(stringy, u8array, 0, u8array.length); | |
if (dontAddNull) u8array.length = numBytesWritten; | |
return u8array | |
} | |
var asmLibraryArg = { | |
"V": _BitmapContext_beginPath, | |
"ua": _BitmapContext_clear, | |
"vi": _BitmapContext_closePath, | |
"ui": _BitmapContext_curveTo, | |
"ti": _BitmapContext_download, | |
"si": _BitmapContext_fill, | |
"ri": _BitmapContext_fillGradient, | |
"qi": _BitmapContext_fillText, | |
"pi": _BitmapContext_lineTo, | |
"oi": _BitmapContext_moveTo, | |
"ni": _BitmapContext_new, | |
"mi": _BitmapContext_setSize, | |
"li": _BitmapContext_stroke, | |
"ki": _BitmapContext_upload, | |
"ji": _ClipboardEvent_execCommandCopy, | |
"ii": _ClipboardEvent_tryToDetectSpreadsheetDataOnClipboard, | |
"hi": _ClipboardEvent_tryToReadFilesFromClipboard, | |
"gi": _ClipboardEvent_tryToReadFromClipboardAsBlobInHTML, | |
"fi": _ClipboardEvent_tryToReadSubstringFromClipboard, | |
"ei": _ClipboardEvent_writeToClipboardAsBlobInHTML, | |
"di": _ClipboardEvent_writeToClipboardAsData, | |
"ci": _Clipboard_clearContents, | |
"bi": _Clipboard_readContents, | |
"ai": _Clipboard_writeContents, | |
"$h": _Comments_handleMouseDown, | |
"_h": _Comments_handleMouseMove, | |
"Zh": _Comments_handleMouseUp, | |
"Yh": _CommonApp_appCanRenderFrameNames, | |
"Xh": _CommonApp_appCanRenderMultiplayerCursors, | |
"Wh": _CommonApp_appCanShowHyperlinks, | |
"Vh": _CommonApp_appIsReadOnly, | |
"y": _CommonApp_appType, | |
"yb": _CommonApp_canLoadImageResource, | |
"xb": _CommonApp_desktopAppGetAPIVersion, | |
"Uh": _CommonApp_getFeatureFlags, | |
"Th": _CommonApp_slogImpl, | |
"Sh": _ContainerView_new, | |
"Rh": _CustomCursor_new, | |
"Qh": _Device_bindVertexArray, | |
"wb": _Device_bufferSubData, | |
"Ph": _Device_delete, | |
"Oh": _Device_deleteVertexArrays, | |
"Nh": _Device_downloadWebGLTrace, | |
"Mh": _Device_drawingBufferHeight, | |
"Lh": _Device_drawingBufferWidth, | |
"Kh": _Device_genVertexArrays, | |
"Jh": _Device_installContextLostHandler, | |
"vb": _Device_isContextLost, | |
"Ih": _Device_new, | |
"Hh": _Device_readPixels, | |
"ub": _Device_reinit, | |
"Gh": _Device_restoreContextLost, | |
"Fh": _Device_screenHeight, | |
"Eh": _Device_screenWidth, | |
"tb": _Device_texSubImage2D, | |
"sb": _Device_texSubImageBitmap, | |
"Dh": _Device_transferVertexArrayHandle, | |
"Ch": _Device_unmaskedRendererName, | |
"Bh": _Device_unmaskedVendorName, | |
"Ah": _EmojiWheelBindings_handleShortcutPress, | |
"zh": _EmojiWheelBindings_handleShortcutRelease, | |
"yh": _EmojiWheelBindings_startChat, | |
"xh": _ExportIntegration_deliverZipFile, | |
"wh": _ExportIntegration_isThirdPartyAppReady, | |
"vh": _FigmaApp_allocationFailed, | |
"uh": _FigmaApp_attemptedSketchFileDrop, | |
"th": _FigmaApp_backToFiles, | |
"sh": _FigmaApp_copyLinkToPage, | |
"rh": _FigmaApp_desktopAppQueueFileForWriting, | |
"qh": _FigmaApp_desktopAppWriteFiles, | |
"ph": _FigmaApp_dismissEphemeralVisualBells, | |
"rb": _FigmaApp_documentIsLoaded, | |
"oh": _FigmaApp_downloadImage, | |
"nh": _FigmaApp_escapeAndSaveCSVData, | |
"mh": _FigmaApp_fetchComponentBuffers, | |
"lh": _FigmaApp_fetchFontFile, | |
"kh": _FigmaApp_fetchFontFileWithoutPickerInfo, | |
"jh": _FigmaApp_fontResourceStatusChanged, | |
"qb": _FigmaApp_fullscreenIsReady, | |
"ih": _FigmaApp_generateLinkToNode, | |
"hh": _FigmaApp_generateLinkToRemoteNode, | |
"gh": _FigmaApp_getAllLineBreakPositions, | |
"fh": _FigmaApp_getClipboardData, | |
"eh": _FigmaApp_getCurrentFileName, | |
"dh": _FigmaApp_getDefaultOnOTFeatures, | |
"ch": _FigmaApp_getDeviceInfoForSize, | |
"bh": _FigmaApp_getLatestPublishedVersionForStateGroup, | |
"ah": _FigmaApp_getLatestPublishedVersionHashForComponent, | |
"$g": _FigmaApp_getLocalGUIDFromUrl, | |
"_g": _FigmaApp_getParsedCodeTokens, | |
"Zg": _FigmaApp_getUserName, | |
"U": _FigmaApp_handleSignedOutEditAttempt, | |
"ta": _FigmaApp_handleStateSwapCreated, | |
"Yg": _FigmaApp_handleUserClickOnHyperlink, | |
"Xg": _FigmaApp_hasUnsavedChanges, | |
"Wg": _FigmaApp_imageResourceStatusChanged, | |
"Vg": _FigmaApp_insertComponentOrShowError, | |
"G": _FigmaApp_isCopyExportRestricted, | |
"T": _FigmaApp_isInWorkshopMode, | |
"Ug": _FigmaApp_isMigrationBackwardCompatible, | |
"Tg": _FigmaApp_isUserPresent, | |
"Sg": _FigmaApp_migratePendingChanges, | |
"Rg": _FigmaApp_migrateTo, | |
"Qg": _FigmaApp_mobileAppPush, | |
"Pg": _FigmaApp_navigateToURL, | |
"Og": _FigmaApp_openCSVExportPicker, | |
"Ng": _FigmaApp_openExportPicker, | |
"Mg": _FigmaApp_openExportSettingsPicker, | |
"Lg": _FigmaApp_openFontSettings, | |
"Kg": _FigmaApp_openHelp, | |
"Jg": _FigmaApp_openNewFile, | |
"Ig": _FigmaApp_openNewSketchFile, | |
"Hg": _FigmaApp_openPreferencesModal, | |
"Gg": _FigmaApp_openSettings, | |
"Fg": _FigmaApp_openShortcuts, | |
"Eg": _FigmaApp_openStartingPointFlowInPrototypeViewer, | |
"Dg": _FigmaApp_openSupportForum, | |
"Cg": _FigmaApp_openTemplatesPickerModal, | |
"Bg": _FigmaApp_openTimerModal, | |
"Ag": _FigmaApp_openTutorials, | |
"zg": _FigmaApp_parseCSVString, | |
"yg": _FigmaApp_prepFileMigrations, | |
"xg": _FigmaApp_recordImages, | |
"wg": _FigmaApp_requestEditorType, | |
"vg": _FigmaApp_resendTimer, | |
"ug": _FigmaApp_retrieveMetadataAndSelectBrokenFixedScrollingNodes, | |
"tg": _FigmaApp_runLastPlugin, | |
"sg": _FigmaApp_saveFileForAutosaveMigration, | |
"pb": _FigmaApp_setFileVersion, | |
"rg": _FigmaApp_setHyperlinkPopup, | |
"qg": _FigmaApp_setSentryTag, | |
"pg": _FigmaApp_setTimer, | |
"sa": _FigmaApp_shouldEnableInteractiveStates, | |
"og": _FigmaApp_showAutosaveVisualBell, | |
"ng": _FigmaApp_showBrowserAlert, | |
"mg": _FigmaApp_showCanvasContextMenu, | |
"ob": _FigmaApp_showDetachedStyleWarning, | |
"lg": _FigmaApp_showDribbbleDialog, | |
"kg": _FigmaApp_showFileUpgradeNeededModal, | |
"jg": _FigmaApp_showGIFConvertedAndScaledDownWarning, | |
"ig": _FigmaApp_showImageScaledDownWarning, | |
"nb": _FigmaApp_showLeftPanelTab, | |
"hg": _FigmaApp_showMissingFontPopover, | |
"gg": _FigmaApp_showNudgeAmountPicker, | |
"fg": _FigmaApp_showPasteLoadingIndicatorAndPaste, | |
"eg": _FigmaApp_showPromptToMoveLibraryItems, | |
"dg": _FigmaApp_showPublishDialog, | |
"cg": _FigmaApp_showPushOverridesVisualBell, | |
"bg": _FigmaApp_showReturnToInstanceVisualBell, | |
"ag": _FigmaApp_showReturnToVariantVisualBell, | |
"$f": _FigmaApp_showSavepointModal, | |
"_f": _FigmaApp_showSelectLayerContextMenu, | |
"Zf": _FigmaApp_showSelectionContextMenu, | |
"Yf": _FigmaApp_showUpdateCopiedContentModal, | |
"Xf": _FigmaApp_showVisualBell, | |
"Wf": _FigmaApp_startRenamingNodes, | |
"Vf": _FigmaApp_syncPencilStyle, | |
"Uf": _FigmaApp_syncToolStyles, | |
"Tf": _FigmaApp_toggleComponentInsertModal, | |
"Sf": _FigmaApp_toggleHistoryMode, | |
"Rf": _FigmaApp_toggleInteractionRecorderVisibility, | |
"Qf": _FigmaApp_toggleMenu, | |
"Pf": _FigmaApp_togglePerfHUDVisibility, | |
"mb": _FigmaApp_toggleTeamLibraryModal, | |
"Of": _FigmaApp_trackComponentInstanceDetachment, | |
"Nf": _FigmaApp_trackComponentInstanceInsertion, | |
"Mf": _FigmaApp_trackFromFullscreen, | |
"Lf": _FigmaApp_updateHyperlinkPopupPosition, | |
"Kf": _FigmaApp_updateSelectedStyleProperties, | |
"Jf": _FigmaApp_updateSelectedStyleThumbnail, | |
"If": _FigmaApp_updateSelectionRect, | |
"Hf": _FigmaApp_updateStyleThumbnail, | |
"Gf": _FigmaApp_updateViewportInfo, | |
"Ff": _FigmaApp_usedKeyboardShortcut, | |
"Ef": _FigmaApp_validateAndParseURL, | |
"Df": _FileDialog_delete, | |
"Cf": _FileDialog_new, | |
"Bf": _FileDialog_open, | |
"Af": _FileDialog_saveIndirect, | |
"zf": _FileProxy_blobSize, | |
"S": _FileProxy_deleteBlob, | |
"yf": _FileProxy_startLoadingBlob, | |
"xf": _Font_measureWidth, | |
"wf": _Font_new, | |
"u": _FullscreenApp_abortOOM, | |
"vf": _FullscreenApp_finishInitialization, | |
"uf": _FullscreenApp_runOutOfMemoryDone, | |
"tf": _FullscreenApp_runOutOfMemoryHelper, | |
"sf": _FullscreenApp_setBrowserTabClosePrompt, | |
"lb": _GpuView_handleDevicePixelRatioChange, | |
"rf": _GpuView_new, | |
"kb": _GpuView_setSize, | |
"ra": _ImageBitmapHandle_delete, | |
"qf": _ImageContent_delete, | |
"pf": _ImageContent_new, | |
"of": _ImageContent_setPixels, | |
"nf": _ImageIO_cancelCurrentImageWorkers, | |
"mf": _ImageIO_decodeAsync, | |
"lf": _ImageIO_decodeDoneHelper, | |
"kf": _ImageIO_decodeDoneHelperImageBitmap, | |
"jf": _ImageIO_encode, | |
"hf": _ImageIO_encodeResultHelper, | |
"gf": _ImageIO_scale, | |
"ff": _IndirectBuffer_aliasFromRenderTree, | |
"ef": _JsBindingsTestHelpers_jsEchoUintValue, | |
"df": _JsValue_asInt, | |
"jb": _JsValue_call, | |
"cf": _JsValue_construct, | |
"t": _JsValue_deleteSlot, | |
"qa": _JsValue_get, | |
"bf": _JsValue_initializeJsValueSlots, | |
"af": _JsValue_isFunction, | |
"$e": _JsValue_isStrictEqual, | |
"_e": _JsValue_newGlobal, | |
"Ze": _JsValue_newNull, | |
"R": _JsValue_newNumber, | |
"pa": _JsValue_newUndefined, | |
"Ye": _JsValue_setAt, | |
"Xe": _JsValue_uint8ArrayEquals, | |
"We": _JsValue_uint8ArrayGet, | |
"Ve": _JsValue_uint8ArraySet, | |
"Ue": _PlatformCursor_new, | |
"Te": _PlatformInfo_is64BitBrowser, | |
"Se": _PlatformInfo_isChrome, | |
"Re": _PlatformInfo_isChromeOS, | |
"Qe": _PlatformInfo_isDirectXBrowser, | |
"Pe": _PlatformInfo_isEdge, | |
"Oe": _PlatformInfo_isFirefox, | |
"Ne": _PlatformInfo_isIE, | |
"Me": _PlatformInfo_isIpad, | |
"Le": _PlatformInfo_isLinux, | |
"Ke": _PlatformInfo_isMac, | |
"Je": _PlatformInfo_isMobileBrowser, | |
"Ie": _PlatformInfo_isSafari, | |
"He": _PlatformInfo_isWindows, | |
"Ge": _PluginCallbacks_boxSelectionEnded, | |
"Fe": _PluginCallbacks_currentPageChange, | |
"ib": _PluginCallbacks_selectionChange, | |
"Ee": _PrototypeApp_applyDerivedDataToPrototypeScene, | |
"De": _PrototypeApp_ready, | |
"Ce": _PrototypeApp_triggerViewerEvent, | |
"i": _Regex_delete, | |
"hb": _Regex_findAll, | |
"Be": _Regex_new, | |
"Ae": _Regex_replaceAll, | |
"ze": _Regex_search, | |
"ye": _Regex_test, | |
"w": _Support_currentTimestampFromEmscripten, | |
"xe": _Support_initEmscripten, | |
"F": _Support_initializeTimestampCode, | |
"e": _Support_reportAssertionFailure, | |
"b": _Support_reportError, | |
"we": _SysInfo_logicalCoreCount, | |
"ve": _TimerQuery_begin, | |
"ue": _TimerQuery_delete, | |
"gb": _TimerQuery_end, | |
"te": _TimerQuery_get, | |
"se": _TimerQuery_isTimeElapsedSupported, | |
"re": _TimerQuery_isTimestampSupported, | |
"qe": _TimerQuery_new, | |
"pe": _TimerQuery_queryCounter, | |
"oe": _TimerQuery_test, | |
"fb": _UserPreferences_clear, | |
"oa": _UserPreferences_getString, | |
"eb": _UserPreferences_has, | |
"Q": _UserPreferences_setString, | |
"ne": _View_delete, | |
"me": _View_setBackgroundColor, | |
"le": _View_setBorder, | |
"ke": _View_setCursor, | |
"je": _View_setFont, | |
"ie": _View_setIsEnabled, | |
"he": _View_setIsShown, | |
"ge": _View_setLayout, | |
"fe": _View_setParent, | |
"ee": _WebAsync_cancelCallback, | |
"de": _WebAsync_clearTimeout, | |
"db": _WebAsync_requestAnimationFrame, | |
"ce": _WebAsync_requestIdleCallbackHelper, | |
"be": _WebAsync_setTimeout, | |
"ae": _WebAsync_setTimeoutHelper, | |
"$d": _WebContext_evalAsJSON, | |
"_d": _WebContext_new, | |
"cb": _WebContext_sendMessageToWeb, | |
"Zd": _WebGLTest_testDevice, | |
"Yd": _WebMultiplayer_buildMultiplayerUrl, | |
"Xd": _WebMultiplayer_checkpointResponse, | |
"Wd": _WebMultiplayer_clearNodeChanges, | |
"Vd": _WebMultiplayer_commitAutosave, | |
"Ud": _WebMultiplayer_handleMultiplayerSignal, | |
"Td": _WebMultiplayer_isWindowActive, | |
"P": _WebMultiplayer_notifyCursorHidden, | |
"O": _WebMultiplayer_notifyCursorUnhiddenFromConnectionCount, | |
"N": _WebMultiplayer_notifyCursorUnhiddenFromObserver, | |
"bb": _WebMultiplayer_notifyEditorConvertedToViewer, | |
"Sd": _WebMultiplayer_readyToAcceptAutosaveChanges, | |
"ab": _WebMultiplayer_reconnectingStarted, | |
"$a": _WebMultiplayer_reconnectingSucceeded, | |
"Rd": _WebMultiplayer_saveImages, | |
"Qd": _WebMultiplayer_saveNodeChanges, | |
"Pd": _WebMultiplayer_saveReferencedNodes, | |
"_a": _WebMultiplayer_setBackgroundFlushInterval, | |
"Od": _WebMultiplayer_showRestoreComponentDialog, | |
"Nd": _WebMultiplayer_snapshotHashChanged, | |
"Za": _WebMultiplayer_socketBufferedAmount, | |
"Md": _WebMultiplayer_startMonitorInterval, | |
"Ld": _WebMultiplayer_updateMultiplayerState, | |
"Kd": _WebMultiplayer_updateSaveStatus, | |
"Jd": _WebReporting_logNumericMetric, | |
"Id": _WebReporting_logStringMetric, | |
"Hd": _WebReporting_recordFullscreenAction, | |
"Gd": _WebReporting_reportBranchingLoadTime, | |
"Fd": _WebReporting_reportConsecutiveFlushes, | |
"Ed": _WebReporting_reportConsecutiveImageChangeSkips, | |
"Dd": _WebReporting_reportContextLost, | |
"Cd": _WebReporting_reportContextRestore, | |
"Bd": _WebReporting_reportContextRestored, | |
"Ad": _WebReporting_reportDirtyAfterLoad, | |
"zd": _WebReporting_reportDoubleFlush, | |
"yd": _WebReporting_reportFileLoadTime, | |
"xd": _WebReporting_reportMultiplayerRoundTripTime, | |
"wd": _WebReporting_reportPerfTestingInfo, | |
"vd": _WebReporting_reportQuantizedColorEqualsUse, | |
"ud": _WebReporting_reportRelativeTransformWithNaN, | |
"td": _WebReporting_startPerfTimer, | |
"sd": _WebReporting_stopPerfTimer, | |
"rd": _WebSelection_clearSelectionPaintsDueToLimitExceeded, | |
"Ya": _WebSelection_hideEyedropper, | |
"qd": _WebSelection_originalPaintForCurrentSelectionPaintsPicker, | |
"pd": _WebSelection_pickerHasSelectionPaintOpen, | |
"od": _WebSelection_showEyedropper, | |
"nd": _WebSelection_updateSelectionPaintFromDropper, | |
"md": _WebSelection_updateSelectionPaintsWithFillEncodedPaints, | |
"ld": _WebSelection_updateSelectionPaintsWithStyles, | |
"kd": _WebUserSyncing_addUser, | |
"jd": _WebUserSyncing_handleConnect, | |
"id": _WebUserSyncing_handleReactionFromServer, | |
"Xa": _WebUserSyncing_removeUser, | |
"hd": _WebUserSyncing_setChatMessage, | |
"gd": _WebUserSyncing_setHighFiveStatus, | |
"fd": _WebUserSyncing_setMouseCursor, | |
"ed": _WebUserSyncing_setMousePosition, | |
"dd": _WebUserSyncing_setVoiceMetadata, | |
"na": _WebWorker_isWorker, | |
"cd": _WidgetBindings_mountWidget, | |
"bd": _WidgetBindings_mouseDownWidget, | |
"ad": _Window_alert, | |
"$c": _Window_destroy, | |
"Wa": _Window_focusView, | |
"_c": _Window_handleAfterTick, | |
"Zc": _Window_handleBeforeTick, | |
"Yc": _Window_init, | |
"Xc": _Window_setExpectingCopyCutEvent, | |
"Wc": _Window_setExpectingPasteEvent, | |
"ma": _Window_setExpectingTextInput, | |
"Vc": _Window_setTextCaretBounds, | |
"Uc": _Window_setTitle, | |
"Tc": _Window_setupComplete, | |
"Sc": _Window_title, | |
"la": _Window_updateWindowIsActive, | |
"M": _Window_viewWithFocus, | |
"Rc": _Zip_write, | |
"Qc": ___map_file, | |
"Va": ___sys_fcntl64, | |
"Oc": ___sys_ioctl, | |
"Nc": ___sys_munmap, | |
"Pc": ___sys_open, | |
"a": _abort, | |
"Jc": _clock_gettime, | |
"Ic": _codePointToLowerCase, | |
"Hc": _codePointToUpperCase, | |
"Gc": _debuggerLog, | |
"Fc": _eglChooseConfig, | |
"Ec": _eglCreateContext, | |
"Dc": _eglCreateWindowSurface, | |
"Cc": _eglGetConfigs, | |
"Bc": _eglGetDisplay, | |
"B": _eglGetError, | |
"Ac": _eglInitialize, | |
"zc": _eglMakeCurrent, | |
"ka": _eglTerminate, | |
"E": _emscripten_asm_const_iii, | |
"p": _emscripten_longjmp, | |
"yc": _emscripten_memcpy_big, | |
"xc": _emscripten_resize_heap, | |
"Mc": _environ_get, | |
"Lc": _environ_sizes_get, | |
"ja": _exit, | |
"Ua": _fd_close, | |
"Kc": _fd_read, | |
"Db": _fd_seek, | |
"Ta": _fd_write, | |
"h": _getTempRet0, | |
"Sa": _glActiveTexture, | |
"L": _glAttachShader, | |
"ia": _glBindAttribLocation, | |
"A": _glBindBuffer, | |
"l": _glBindFramebuffer, | |
"z": _glBindRenderbuffer, | |
"m": _glBindTexture, | |
"wc": _glBlendColor, | |
"vc": _glBlendEquationSeparate, | |
"uc": _glBlendFuncSeparate, | |
"K": _glBufferData, | |
"tc": _glBufferSubData, | |
"sc": _glCheckFramebufferStatus, | |
"rc": _glClear, | |
"Ra": _glClearColor, | |
"Qa": _glClearDepthf, | |
"Pa": _glClearStencil, | |
"qc": _glColorMask, | |
"pc": _glCompileShader, | |
"oc": _glCompressedTexImage2D, | |
"Oa": _glCompressedTexSubImage2D, | |
"Na": _glCopyTexSubImage2D, | |
"nc": _glCreateProgram, | |
"mc": _glCreateShader, | |
"lc": _glCullFace, | |
"kc": _glDeleteBuffers, | |
"jc": _glDeleteFramebuffers, | |
"Ma": _glDeleteProgram, | |
"ic": _glDeleteRenderbuffers, | |
"J": _glDeleteShader, | |
"La": _glDeleteTextures, | |
"hc": _glDepthFunc, | |
"ha": _glDepthMask, | |
"D": _glDisable, | |
"v": _glDisableVertexAttribArray, | |
"gc": _glDrawArrays, | |
"fc": _glDrawElements, | |
"x": _glEnable, | |
"o": _glEnableVertexAttribArray, | |
"ga": _glFinish, | |
"fa": _glFlush, | |
"ea": _glFramebufferRenderbuffer, | |
"da": _glFramebufferTexture2D, | |
"ec": _glFrontFace, | |
"dc": _glGenBuffers, | |
"cc": _glGenFramebuffers, | |
"bc": _glGenRenderbuffers, | |
"Ka": _glGenTextures, | |
"ac": _glGenerateMipmap, | |
"$b": _glGetActiveAttrib, | |
"Ja": _glGetActiveUniform, | |
"_b": _glGetAttribLocation, | |
"j": _glGetError, | |
"ca": _glGetFloatv, | |
"k": _glGetIntegerv, | |
"ba": _glGetProgramiv, | |
"Zb": _glGetShaderiv, | |
"C": _glGetString, | |
"Ia": _glGetUniformLocation, | |
"aa": _glHint, | |
"Yb": _glLineWidth, | |
"Xb": _glLinkProgram, | |
"$": _glPixelStorei, | |
"Ha": _glPolygonOffset, | |
"Wb": _glRenderbufferStorage, | |
"I": _glScissor, | |
"Vb": _glShaderSource, | |
"_": _glStencilFuncSeparate, | |
"Ub": _glStencilMaskSeparate, | |
"Ga": _glStencilOpSeparate, | |
"Tb": _glTexImage2D, | |
"n": _glTexParameteri, | |
"Sb": _glTexSubImage2D, | |
"Rb": _glUniform1f, | |
"Qb": _glUniform1fv, | |
"Z": _glUniform1i, | |
"Fa": _glUniform1iv, | |
"Pb": _glUniform2f, | |
"Ob": _glUniform2fv, | |
"Ea": _glUniform2i, | |
"Da": _glUniform2iv, | |
"Nb": _glUniform3f, | |
"Mb": _glUniform3fv, | |
"Ca": _glUniform3i, | |
"Ba": _glUniform3iv, | |
"Lb": _glUniform4f, | |
"Kb": _glUniform4fv, | |
"Aa": _glUniform4i, | |
"za": _glUniform4iv, | |
"Jb": _glUniformMatrix2fv, | |
"Ib": _glUniformMatrix3fv, | |
"Hb": _glUniformMatrix4fv, | |
"Y": _glUseProgram, | |
"ya": _glVertexAttribPointer, | |
"Gb": _glViewport, | |
"q": invoke_ii, | |
"X": invoke_iii, | |
"W": invoke_iiii, | |
"Fb": invoke_iiiii, | |
"Eb": invoke_iiiiii, | |
"r": invoke_vi, | |
"H": invoke_vii, | |
"xa": invoke_viii, | |
"wa": invoke_viiii, | |
"memory": wasmMemory, | |
"c": _round, | |
"f": _roundf, | |
"g": _setTempRet0, | |
"Cb": _sha1_computeHash, | |
"Bb": _strftime_l, | |
"Ab": _stringToLowerCase, | |
"zb": _stringToUpperCase, | |
"table": wasmTable, | |
"va": _time, | |
"s": _tsapi_setReturnBuffer, | |
"d": _tsapi_setReturnString | |
}; | |
var asm = createWasm(); | |
var ___wasm_call_ctors = Module["___wasm_call_ctors"] = function() { | |
return (___wasm_call_ctors = Module["___wasm_call_ctors"] = Module["asm"]["wi"]).apply(null, arguments) | |
}; | |
var _free = Module["_free"] = function() { | |
return (_free = Module["_free"] = Module["asm"]["xi"]).apply(null, arguments) | |
}; | |
var _FigmaApp_downloadImage_promiseCallback = Module["_FigmaApp_downloadImage_promiseCallback"] = function() { | |
return (_FigmaApp_downloadImage_promiseCallback = Module["_FigmaApp_downloadImage_promiseCallback"] = Module["asm"]["yi"]).apply(null, arguments) | |
}; | |
var _FigmaApp_fetchFontFileWithoutPickerInfo_promiseCallback = Module["_FigmaApp_fetchFontFileWithoutPickerInfo_promiseCallback"] = function() { | |
return (_FigmaApp_fetchFontFileWithoutPickerInfo_promiseCallback = Module["_FigmaApp_fetchFontFileWithoutPickerInfo_promiseCallback"] = Module["asm"]["zi"]).apply(null, arguments) | |
}; | |
var _FigmaApp_fetchFontFile_promiseCallback = Module["_FigmaApp_fetchFontFile_promiseCallback"] = function() { | |
return (_FigmaApp_fetchFontFile_promiseCallback = Module["_FigmaApp_fetchFontFile_promiseCallback"] = Module["asm"]["Ai"]).apply(null, arguments) | |
}; | |
var _FigmaApp_getClipboardData_promiseCallback = Module["_FigmaApp_getClipboardData_promiseCallback"] = function() { | |
return (_FigmaApp_getClipboardData_promiseCallback = Module["_FigmaApp_getClipboardData_promiseCallback"] = Module["asm"]["Bi"]).apply(null, arguments) | |
}; | |
var _FigmaApp_fetchComponentBuffers_promiseCallback = Module["_FigmaApp_fetchComponentBuffers_promiseCallback"] = function() { | |
return (_FigmaApp_fetchComponentBuffers_promiseCallback = Module["_FigmaApp_fetchComponentBuffers_promiseCallback"] = Module["asm"]["Ci"]).apply(null, arguments) | |
}; | |
var _FigmaApp_prepFileMigrations_promiseCallback = Module["_FigmaApp_prepFileMigrations_promiseCallback"] = function() { | |
return (_FigmaApp_prepFileMigrations_promiseCallback = Module["_FigmaApp_prepFileMigrations_promiseCallback"] = Module["asm"]["Di"]).apply(null, arguments) | |
}; | |
var _WebAsync_setTimeoutHelper_promiseCallback = Module["_WebAsync_setTimeoutHelper_promiseCallback"] = function() { | |
return (_WebAsync_setTimeoutHelper_promiseCallback = Module["_WebAsync_setTimeoutHelper_promiseCallback"] = Module["asm"]["Ei"]).apply(null, arguments) | |
}; | |
var _WebAsync_requestIdleCallbackHelper_promiseCallback = Module["_WebAsync_requestIdleCallbackHelper_promiseCallback"] = function() { | |
return (_WebAsync_requestIdleCallbackHelper_promiseCallback = Module["_WebAsync_requestIdleCallbackHelper_promiseCallback"] = Module["asm"]["Fi"]).apply(null, arguments) | |
}; | |
var _WebAsyncCallback_timeoutCallback = Module["_WebAsyncCallback_timeoutCallback"] = function() { | |
return (_WebAsyncCallback_timeoutCallback = Module["_WebAsyncCallback_timeoutCallback"] = Module["asm"]["Gi"]).apply(null, arguments) | |
}; | |
var _CppBindingsTestHelpers_cppEchoUintValue = Module["_CppBindingsTestHelpers_cppEchoUintValue"] = function() { | |
return (_CppBindingsTestHelpers_cppEchoUintValue = Module["_CppBindingsTestHelpers_cppEchoUintValue"] = Module["asm"]["Hi"]).apply(null, arguments) | |
}; | |
var _WebMultiplayer_commitAutosave_promiseCallback = Module["_WebMultiplayer_commitAutosave_promiseCallback"] = function() { | |
return (_WebMultiplayer_commitAutosave_promiseCallback = Module["_WebMultiplayer_commitAutosave_promiseCallback"] = Module["asm"]["Ii"]).apply(null, arguments) | |
}; | |
var _PerfInfo_getAllocCallCount = Module["_PerfInfo_getAllocCallCount"] = function() { | |
return (_PerfInfo_getAllocCallCount = Module["_PerfInfo_getAllocCallCount"] = Module["asm"]["Ji"]).apply(null, arguments) | |
}; | |
var _PerfInfo_getAllocTotal = Module["_PerfInfo_getAllocTotal"] = function() { | |
return (_PerfInfo_getAllocTotal = Module["_PerfInfo_getAllocTotal"] = Module["asm"]["Ki"]).apply(null, arguments) | |
}; | |
var _PerfInfo_resetAllocCountsAndTotal = Module["_PerfInfo_resetAllocCountsAndTotal"] = function() { | |
return (_PerfInfo_resetAllocCountsAndTotal = Module["_PerfInfo_resetAllocCountsAndTotal"] = Module["asm"]["Li"]).apply(null, arguments) | |
}; | |
var _PerfInfo_getTotalUsedHeapMemory = Module["_PerfInfo_getTotalUsedHeapMemory"] = function() { | |
return (_PerfInfo_getTotalUsedHeapMemory = Module["_PerfInfo_getTotalUsedHeapMemory"] = Module["asm"]["Mi"]).apply(null, arguments) | |
}; | |
var _PerfInfo_getMaxUsedHeapMemory = Module["_PerfInfo_getMaxUsedHeapMemory"] = function() { | |
return (_PerfInfo_getMaxUsedHeapMemory = Module["_PerfInfo_getMaxUsedHeapMemory"] = Module["asm"]["Ni"]).apply(null, arguments) | |
}; | |
var _PerfInfo_getIndirectBufferMemory = Module["_PerfInfo_getIndirectBufferMemory"] = function() { | |
return (_PerfInfo_getIndirectBufferMemory = Module["_PerfInfo_getIndirectBufferMemory"] = Module["asm"]["Oi"]).apply(null, arguments) | |
}; | |
var _PerfInfo_getTotalImageMemory = Module["_PerfInfo_getTotalImageMemory"] = function() { | |
return (_PerfInfo_getTotalImageMemory = Module["_PerfInfo_getTotalImageMemory"] = Module["asm"]["Pi"]).apply(null, arguments) | |
}; | |
var _PerfInfo_getSizeofNode = Module["_PerfInfo_getSizeofNode"] = function() { | |
return (_PerfInfo_getSizeofNode = Module["_PerfInfo_getSizeofNode"] = Module["asm"]["Qi"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setEditorType = Module["_Fullscreen_setEditorType"] = function() { | |
return (_Fullscreen_setEditorType = Module["_Fullscreen_setEditorType"] = Module["asm"]["Ri"]).apply(null, arguments) | |
}; | |
var _Fullscreen_triggerAction = Module["_Fullscreen_triggerAction"] = function() { | |
return (_Fullscreen_triggerAction = Module["_Fullscreen_triggerAction"] = Module["asm"]["Si"]).apply(null, arguments) | |
}; | |
var _Fullscreen_updateFeatureFlags = Module["_Fullscreen_updateFeatureFlags"] = function() { | |
return (_Fullscreen_updateFeatureFlags = Module["_Fullscreen_updateFeatureFlags"] = Module["asm"]["Ti"]).apply(null, arguments) | |
}; | |
var _Fullscreen_addToFontList = Module["_Fullscreen_addToFontList"] = function() { | |
return (_Fullscreen_addToFontList = Module["_Fullscreen_addToFontList"] = Module["asm"]["Ui"]).apply(null, arguments) | |
}; | |
var _Fullscreen_fontIsLoaded = Module["_Fullscreen_fontIsLoaded"] = function() { | |
return (_Fullscreen_fontIsLoaded = Module["_Fullscreen_fontIsLoaded"] = Module["asm"]["Vi"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setMissingFontOnSelectedText = Module["_Fullscreen_setMissingFontOnSelectedText"] = function() { | |
return (_Fullscreen_setMissingFontOnSelectedText = Module["_Fullscreen_setMissingFontOnSelectedText"] = Module["asm"]["Wi"]).apply(null, arguments) | |
}; | |
var _Fullscreen_selectMissingFontNodes = Module["_Fullscreen_selectMissingFontNodes"] = function() { | |
return (_Fullscreen_selectMissingFontNodes = Module["_Fullscreen_selectMissingFontNodes"] = Module["asm"]["Xi"]).apply(null, arguments) | |
}; | |
var _Fullscreen_interfaceFontLoaded = Module["_Fullscreen_interfaceFontLoaded"] = function() { | |
return (_Fullscreen_interfaceFontLoaded = Module["_Fullscreen_interfaceFontLoaded"] = Module["asm"]["Yi"]).apply(null, arguments) | |
}; | |
var _Fullscreen_findMissingFontsAndShowPopover = Module["_Fullscreen_findMissingFontsAndShowPopover"] = function() { | |
return (_Fullscreen_findMissingFontsAndShowPopover = Module["_Fullscreen_findMissingFontsAndShowPopover"] = Module["asm"]["Zi"]).apply(null, arguments) | |
}; | |
var _Fullscreen_createStyleFromSelection = Module["_Fullscreen_createStyleFromSelection"] = function() { | |
return (_Fullscreen_createStyleFromSelection = Module["_Fullscreen_createStyleFromSelection"] = Module["asm"]["_i"]).apply(null, arguments) | |
}; | |
var _Fullscreen_changeSelectionToFrameOrGroup = Module["_Fullscreen_changeSelectionToFrameOrGroup"] = function() { | |
return (_Fullscreen_changeSelectionToFrameOrGroup = Module["_Fullscreen_changeSelectionToFrameOrGroup"] = Module["asm"]["$i"]).apply(null, arguments) | |
}; | |
var _Fullscreen_makeSelectedFramesManuallySized = Module["_Fullscreen_makeSelectedFramesManuallySized"] = function() { | |
return (_Fullscreen_makeSelectedFramesManuallySized = Module["_Fullscreen_makeSelectedFramesManuallySized"] = Module["asm"]["aj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setStackCounterAlignOfSelection = Module["_Fullscreen_setStackCounterAlignOfSelection"] = function() { | |
return (_Fullscreen_setStackCounterAlignOfSelection = Module["_Fullscreen_setStackCounterAlignOfSelection"] = Module["asm"]["bj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setStackHorizontalSizeOnSelection = Module["_Fullscreen_setStackHorizontalSizeOnSelection"] = function() { | |
return (_Fullscreen_setStackHorizontalSizeOnSelection = Module["_Fullscreen_setStackHorizontalSizeOnSelection"] = Module["asm"]["cj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setStackVerticalSizeOnSelection = Module["_Fullscreen_setStackVerticalSizeOnSelection"] = function() { | |
return (_Fullscreen_setStackVerticalSizeOnSelection = Module["_Fullscreen_setStackVerticalSizeOnSelection"] = Module["asm"]["dj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setDistributeOnSelectedStacks = Module["_Fullscreen_setDistributeOnSelectedStacks"] = function() { | |
return (_Fullscreen_setDistributeOnSelectedStacks = Module["_Fullscreen_setDistributeOnSelectedStacks"] = Module["asm"]["ej"]).apply(null, arguments) | |
}; | |
var _Fullscreen_selectStackParents = Module["_Fullscreen_selectStackParents"] = function() { | |
return (_Fullscreen_selectStackParents = Module["_Fullscreen_selectStackParents"] = Module["asm"]["fj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_isOrInInstanceWithDeprecatedAlignmentOverride = Module["_Fullscreen_isOrInInstanceWithDeprecatedAlignmentOverride"] = function() { | |
return (_Fullscreen_isOrInInstanceWithDeprecatedAlignmentOverride = Module["_Fullscreen_isOrInInstanceWithDeprecatedAlignmentOverride"] = Module["asm"]["gj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_isOrInInstanceWithDeprecatedHugOverride = Module["_Fullscreen_isOrInInstanceWithDeprecatedHugOverride"] = function() { | |
return (_Fullscreen_isOrInInstanceWithDeprecatedHugOverride = Module["_Fullscreen_isOrInInstanceWithDeprecatedHugOverride"] = Module["asm"]["hj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_updateStackToAutoLayoutV3 = Module["_Fullscreen_updateStackToAutoLayoutV3"] = function() { | |
return (_Fullscreen_updateStackToAutoLayoutV3 = Module["_Fullscreen_updateStackToAutoLayoutV3"] = Module["asm"]["ij"]).apply(null, arguments) | |
}; | |
var _Fullscreen_createStyle = Module["_Fullscreen_createStyle"] = function() { | |
return (_Fullscreen_createStyle = Module["_Fullscreen_createStyle"] = Module["asm"]["jj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getAllLocalStyles = Module["_Fullscreen_getAllLocalStyles"] = function() { | |
return (_Fullscreen_getAllLocalStyles = Module["_Fullscreen_getAllLocalStyles"] = Module["asm"]["kj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_applyStyleToSelection = Module["_Fullscreen_applyStyleToSelection"] = function() { | |
return (_Fullscreen_applyStyleToSelection = Module["_Fullscreen_applyStyleToSelection"] = Module["asm"]["lj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_selectStyle = Module["_Fullscreen_selectStyle"] = function() { | |
return (_Fullscreen_selectStyle = Module["_Fullscreen_selectStyle"] = Module["asm"]["mj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_selectExternalStyle = Module["_Fullscreen_selectExternalStyle"] = function() { | |
return (_Fullscreen_selectExternalStyle = Module["_Fullscreen_selectExternalStyle"] = Module["asm"]["nj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_changeSharedStyleStatus = Module["_Fullscreen_changeSharedStyleStatus"] = function() { | |
return (_Fullscreen_changeSharedStyleStatus = Module["_Fullscreen_changeSharedStyleStatus"] = Module["asm"]["oj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getNextStylePositions = Module["_Fullscreen_getNextStylePositions"] = function() { | |
return (_Fullscreen_getNextStylePositions = Module["_Fullscreen_getNextStylePositions"] = Module["asm"]["pj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_insertStyleBetween = Module["_Fullscreen_insertStyleBetween"] = function() { | |
return (_Fullscreen_insertStyleBetween = Module["_Fullscreen_insertStyleBetween"] = Module["asm"]["qj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getStyleNodeId = Module["_Fullscreen_getStyleNodeId"] = function() { | |
return (_Fullscreen_getStyleNodeId = Module["_Fullscreen_getStyleNodeId"] = Module["asm"]["rj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_deleteNode = Module["_Fullscreen_deleteNode"] = function() { | |
return (_Fullscreen_deleteNode = Module["_Fullscreen_deleteNode"] = Module["asm"]["sj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_renameNode = Module["_Fullscreen_renameNode"] = function() { | |
return (_Fullscreen_renameNode = Module["_Fullscreen_renameNode"] = Module["asm"]["tj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setIsDraggingInstanceFromSidebar = Module["_Fullscreen_setIsDraggingInstanceFromSidebar"] = function() { | |
return (_Fullscreen_setIsDraggingInstanceFromSidebar = Module["_Fullscreen_setIsDraggingInstanceFromSidebar"] = Module["asm"]["uj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_isOverlayVisible = Module["_Fullscreen_isOverlayVisible"] = function() { | |
return (_Fullscreen_isOverlayVisible = Module["_Fullscreen_isOverlayVisible"] = Module["asm"]["vj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_isStrokeMaskableAsSVG = Module["_Fullscreen_isStrokeMaskableAsSVG"] = function() { | |
return (_Fullscreen_isStrokeMaskableAsSVG = Module["_Fullscreen_isStrokeMaskableAsSVG"] = Module["asm"]["wj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_shouldShowTextNodeExportOptions = Module["_Fullscreen_shouldShowTextNodeExportOptions"] = function() { | |
return (_Fullscreen_shouldShowTextNodeExportOptions = Module["_Fullscreen_shouldShowTextNodeExportOptions"] = Module["asm"]["xj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_onWindowFocus = Module["_Fullscreen_onWindowFocus"] = function() { | |
return (_Fullscreen_onWindowFocus = Module["_Fullscreen_onWindowFocus"] = Module["asm"]["yj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_onFrame = Module["_Fullscreen_onFrame"] = function() { | |
return (_Fullscreen_onFrame = Module["_Fullscreen_onFrame"] = Module["asm"]["zj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_onStorage = Module["_Fullscreen_onStorage"] = function() { | |
return (_Fullscreen_onStorage = Module["_Fullscreen_onStorage"] = Module["asm"]["Aj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getFirstSelectedNodeIdForCurrentPage = Module["_Fullscreen_getFirstSelectedNodeIdForCurrentPage"] = function() { | |
return (_Fullscreen_getFirstSelectedNodeIdForCurrentPage = Module["_Fullscreen_getFirstSelectedNodeIdForCurrentPage"] = Module["asm"]["Bj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_selectInstances = Module["_Fullscreen_selectInstances"] = function() { | |
return (_Fullscreen_selectInstances = Module["_Fullscreen_selectInstances"] = Module["asm"]["Cj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_generateCSSCodeForSelectedStyle = Module["_Fullscreen_generateCSSCodeForSelectedStyle"] = function() { | |
return (_Fullscreen_generateCSSCodeForSelectedStyle = Module["_Fullscreen_generateCSSCodeForSelectedStyle"] = Module["asm"]["Dj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_generateIOSSwiftCodeForSelectedStyle = Module["_Fullscreen_generateIOSSwiftCodeForSelectedStyle"] = function() { | |
return (_Fullscreen_generateIOSSwiftCodeForSelectedStyle = Module["_Fullscreen_generateIOSSwiftCodeForSelectedStyle"] = Module["asm"]["Ej"]).apply(null, arguments) | |
}; | |
var _Fullscreen_generateAndroidCodeForSelectedStyle = Module["_Fullscreen_generateAndroidCodeForSelectedStyle"] = function() { | |
return (_Fullscreen_generateAndroidCodeForSelectedStyle = Module["_Fullscreen_generateAndroidCodeForSelectedStyle"] = Module["asm"]["Fj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_uploadPaintImage = Module["_Fullscreen_uploadPaintImage"] = function() { | |
return (_Fullscreen_uploadPaintImage = Module["_Fullscreen_uploadPaintImage"] = Module["asm"]["Gj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_dropImageOnPaintThumbnail = Module["_Fullscreen_dropImageOnPaintThumbnail"] = function() { | |
return (_Fullscreen_dropImageOnPaintThumbnail = Module["_Fullscreen_dropImageOnPaintThumbnail"] = Module["asm"]["Hj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setThumbnailsOnly = Module["_Fullscreen_setThumbnailsOnly"] = function() { | |
return (_Fullscreen_setThumbnailsOnly = Module["_Fullscreen_setThumbnailsOnly"] = Module["asm"]["Ij"]).apply(null, arguments) | |
}; | |
var _Fullscreen_selectBrokenFixedScrollingNodesOnCurrentPage = Module["_Fullscreen_selectBrokenFixedScrollingNodesOnCurrentPage"] = function() { | |
return (_Fullscreen_selectBrokenFixedScrollingNodesOnCurrentPage = Module["_Fullscreen_selectBrokenFixedScrollingNodesOnCurrentPage"] = Module["asm"]["Jj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setActiveCommentNode = Module["_Fullscreen_setActiveCommentNode"] = function() { | |
return (_Fullscreen_setActiveCommentNode = Module["_Fullscreen_setActiveCommentNode"] = Module["asm"]["Kj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getCommentAnchorNodeAtPosition = Module["_Fullscreen_getCommentAnchorNodeAtPosition"] = function() { | |
return (_Fullscreen_getCommentAnchorNodeAtPosition = Module["_Fullscreen_getCommentAnchorNodeAtPosition"] = Module["asm"]["Lj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setCurrentPageFromNode = Module["_Fullscreen_setCurrentPageFromNode"] = function() { | |
return (_Fullscreen_setCurrentPageFromNode = Module["_Fullscreen_setCurrentPageFromNode"] = Module["asm"]["Mj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setCanvasSpaceCenter = Module["_Fullscreen_setCanvasSpaceCenter"] = function() { | |
return (_Fullscreen_setCanvasSpaceCenter = Module["_Fullscreen_setCanvasSpaceCenter"] = Module["asm"]["Nj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setCanvasZoomScale = Module["_Fullscreen_setCanvasZoomScale"] = function() { | |
return (_Fullscreen_setCanvasZoomScale = Module["_Fullscreen_setCanvasZoomScale"] = Module["asm"]["Oj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_hasPendingPaintOpenRequest = Module["_Fullscreen_hasPendingPaintOpenRequest"] = function() { | |
return (_Fullscreen_hasPendingPaintOpenRequest = Module["_Fullscreen_hasPendingPaintOpenRequest"] = Module["asm"]["Pj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_clearFillAndStrokePaintsOnSelectedGroups = Module["_Fullscreen_clearFillAndStrokePaintsOnSelectedGroups"] = function() { | |
return (_Fullscreen_clearFillAndStrokePaintsOnSelectedGroups = Module["_Fullscreen_clearFillAndStrokePaintsOnSelectedGroups"] = Module["asm"]["Qj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_showHyperlinkEditor = Module["_Fullscreen_showHyperlinkEditor"] = function() { | |
return (_Fullscreen_showHyperlinkEditor = Module["_Fullscreen_showHyperlinkEditor"] = Module["asm"]["Rj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_hideHyperlinkEditor = Module["_Fullscreen_hideHyperlinkEditor"] = function() { | |
return (_Fullscreen_hideHyperlinkEditor = Module["_Fullscreen_hideHyperlinkEditor"] = Module["asm"]["Sj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setHyperlink = Module["_Fullscreen_setHyperlink"] = function() { | |
return (_Fullscreen_setHyperlink = Module["_Fullscreen_setHyperlink"] = Module["asm"]["Tj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_stopDismissingHyperlinkPopup = Module["_Fullscreen_stopDismissingHyperlinkPopup"] = function() { | |
return (_Fullscreen_stopDismissingHyperlinkPopup = Module["_Fullscreen_stopDismissingHyperlinkPopup"] = Module["asm"]["Uj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_immediatelyDismissHyperlinkPopup = Module["_Fullscreen_immediatelyDismissHyperlinkPopup"] = function() { | |
return (_Fullscreen_immediatelyDismissHyperlinkPopup = Module["_Fullscreen_immediatelyDismissHyperlinkPopup"] = Module["asm"]["Vj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_hideOnCanvasNameEditor = Module["_Fullscreen_hideOnCanvasNameEditor"] = function() { | |
return (_Fullscreen_hideOnCanvasNameEditor = Module["_Fullscreen_hideOnCanvasNameEditor"] = Module["asm"]["Wj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getRecordedFullscreenAction = Module["_Fullscreen_getRecordedFullscreenAction"] = function() { | |
return (_Fullscreen_getRecordedFullscreenAction = Module["_Fullscreen_getRecordedFullscreenAction"] = Module["asm"]["Xj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_markSharedComponentPublished = Module["_Fullscreen_markSharedComponentPublished"] = function() { | |
return (_Fullscreen_markSharedComponentPublished = Module["_Fullscreen_markSharedComponentPublished"] = Module["asm"]["Yj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_removePublishedVersion = Module["_Fullscreen_removePublishedVersion"] = function() { | |
return (_Fullscreen_removePublishedVersion = Module["_Fullscreen_removePublishedVersion"] = Module["asm"]["Zj"]).apply(null, arguments) | |
}; | |
var _Fullscreen_generateUniqueID = Module["_Fullscreen_generateUniqueID"] = function() { | |
return (_Fullscreen_generateUniqueID = Module["_Fullscreen_generateUniqueID"] = Module["asm"]["_j"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getDefaultStateForLocalStateGroup = Module["_Fullscreen_getDefaultStateForLocalStateGroup"] = function() { | |
return (_Fullscreen_getDefaultStateForLocalStateGroup = Module["_Fullscreen_getDefaultStateForLocalStateGroup"] = Module["asm"]["$j"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getDefaultStateForSubscribedStateGroup = Module["_Fullscreen_getDefaultStateForSubscribedStateGroup"] = function() { | |
return (_Fullscreen_getDefaultStateForSubscribedStateGroup = Module["_Fullscreen_getDefaultStateForSubscribedStateGroup"] = Module["asm"]["ak"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getSimilarStates = Module["_Fullscreen_getSimilarStates"] = function() { | |
return (_Fullscreen_getSimilarStates = Module["_Fullscreen_getSimilarStates"] = Module["asm"]["bk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_isSelectionContainedInStateOrStateInstance = Module["_Fullscreen_isSelectionContainedInStateOrStateInstance"] = function() { | |
return (_Fullscreen_isSelectionContainedInStateOrStateInstance = Module["_Fullscreen_isSelectionContainedInStateOrStateInstance"] = Module["asm"]["ck"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getContainingStateGroupOrSelf = Module["_Fullscreen_getContainingStateGroupOrSelf"] = function() { | |
return (_Fullscreen_getContainingStateGroupOrSelf = Module["_Fullscreen_getContainingStateGroupOrSelf"] = Module["asm"]["dk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getStateGroupAnalyticsInfo = Module["_Fullscreen_getStateGroupAnalyticsInfo"] = function() { | |
return (_Fullscreen_getStateGroupAnalyticsInfo = Module["_Fullscreen_getStateGroupAnalyticsInfo"] = Module["asm"]["ek"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setSelectedInteractions = Module["_Fullscreen_setSelectedInteractions"] = function() { | |
return (_Fullscreen_setSelectedInteractions = Module["_Fullscreen_setSelectedInteractions"] = Module["asm"]["fk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setMockFileKey = Module["_Fullscreen_setMockFileKey"] = function() { | |
return (_Fullscreen_setMockFileKey = Module["_Fullscreen_setMockFileKey"] = Module["asm"]["gk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_createFrame = Module["_Fullscreen_createFrame"] = function() { | |
return (_Fullscreen_createFrame = Module["_Fullscreen_createFrame"] = Module["asm"]["hk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_hoverInteractions = Module["_Fullscreen_hoverInteractions"] = function() { | |
return (_Fullscreen_hoverInteractions = Module["_Fullscreen_hoverInteractions"] = Module["asm"]["ik"]).apply(null, arguments) | |
}; | |
var _Fullscreen_deleteInteractions = Module["_Fullscreen_deleteInteractions"] = function() { | |
return (_Fullscreen_deleteInteractions = Module["_Fullscreen_deleteInteractions"] = Module["asm"]["jk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_clearEmptyPrototypeInteractions = Module["_Fullscreen_clearEmptyPrototypeInteractions"] = function() { | |
return (_Fullscreen_clearEmptyPrototypeInteractions = Module["_Fullscreen_clearEmptyPrototypeInteractions"] = Module["asm"]["kk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_repairThumbnails = Module["_Fullscreen_repairThumbnails"] = function() { | |
return (_Fullscreen_repairThumbnails = Module["_Fullscreen_repairThumbnails"] = Module["asm"]["lk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_deletePrototypeStartingPoints = Module["_Fullscreen_deletePrototypeStartingPoints"] = function() { | |
return (_Fullscreen_deletePrototypeStartingPoints = Module["_Fullscreen_deletePrototypeStartingPoints"] = Module["asm"]["mk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_updatePrototypeStartingPointDescription = Module["_Fullscreen_updatePrototypeStartingPointDescription"] = function() { | |
return (_Fullscreen_updatePrototypeStartingPointDescription = Module["_Fullscreen_updatePrototypeStartingPointDescription"] = Module["asm"]["nk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_updatePrototypeStartingPointName = Module["_Fullscreen_updatePrototypeStartingPointName"] = function() { | |
return (_Fullscreen_updatePrototypeStartingPointName = Module["_Fullscreen_updatePrototypeStartingPointName"] = Module["asm"]["ok"]).apply(null, arguments) | |
}; | |
var _Fullscreen_insertPrototypeStartingPointsBetween = Module["_Fullscreen_insertPrototypeStartingPointsBetween"] = function() { | |
return (_Fullscreen_insertPrototypeStartingPointsBetween = Module["_Fullscreen_insertPrototypeStartingPointsBetween"] = Module["asm"]["pk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_reorderStateGroupPropertyValue = Module["_Fullscreen_reorderStateGroupPropertyValue"] = function() { | |
return (_Fullscreen_reorderStateGroupPropertyValue = Module["_Fullscreen_reorderStateGroupPropertyValue"] = Module["asm"]["qk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_handlePaste = Module["_Fullscreen_handlePaste"] = function() { | |
return (_Fullscreen_handlePaste = Module["_Fullscreen_handlePaste"] = Module["asm"]["rk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_updatePencilStyle = Module["_Fullscreen_updatePencilStyle"] = function() { | |
return (_Fullscreen_updatePencilStyle = Module["_Fullscreen_updatePencilStyle"] = Module["asm"]["sk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_updateToolStyles = Module["_Fullscreen_updateToolStyles"] = function() { | |
return (_Fullscreen_updateToolStyles = Module["_Fullscreen_updateToolStyles"] = Module["asm"]["tk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getNumInstancesOfComponentOrStateGroup = Module["_Fullscreen_getNumInstancesOfComponentOrStateGroup"] = function() { | |
return (_Fullscreen_getNumInstancesOfComponentOrStateGroup = Module["_Fullscreen_getNumInstancesOfComponentOrStateGroup"] = Module["asm"]["uk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_swapAllInstancesOfComponentOrStateGroup = Module["_Fullscreen_swapAllInstancesOfComponentOrStateGroup"] = function() { | |
return (_Fullscreen_swapAllInstancesOfComponentOrStateGroup = Module["_Fullscreen_swapAllInstancesOfComponentOrStateGroup"] = Module["asm"]["vk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getNumUsagesOfStyle = Module["_Fullscreen_getNumUsagesOfStyle"] = function() { | |
return (_Fullscreen_getNumUsagesOfStyle = Module["_Fullscreen_getNumUsagesOfStyle"] = Module["asm"]["wk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_swapAllUsesOfStyle = Module["_Fullscreen_swapAllUsesOfStyle"] = function() { | |
return (_Fullscreen_swapAllUsesOfStyle = Module["_Fullscreen_swapAllUsesOfStyle"] = Module["asm"]["xk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_goToSymbolOrStateGroupById = Module["_Fullscreen_goToSymbolOrStateGroupById"] = function() { | |
return (_Fullscreen_goToSymbolOrStateGroupById = Module["_Fullscreen_goToSymbolOrStateGroupById"] = Module["asm"]["yk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getSymbolNodeId = Module["_Fullscreen_getSymbolNodeId"] = function() { | |
return (_Fullscreen_getSymbolNodeId = Module["_Fullscreen_getSymbolNodeId"] = Module["asm"]["zk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getStateGroupNodeId = Module["_Fullscreen_getStateGroupNodeId"] = function() { | |
return (_Fullscreen_getStateGroupNodeId = Module["_Fullscreen_getStateGroupNodeId"] = Module["asm"]["Ak"]).apply(null, arguments) | |
}; | |
var _Fullscreen_getInstanceSublayerNodeId = Module["_Fullscreen_getInstanceSublayerNodeId"] = function() { | |
return (_Fullscreen_getInstanceSublayerNodeId = Module["_Fullscreen_getInstanceSublayerNodeId"] = Module["asm"]["Bk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_activateStampTool = Module["_Fullscreen_activateStampTool"] = function() { | |
return (_Fullscreen_activateStampTool = Module["_Fullscreen_activateStampTool"] = Module["asm"]["Ck"]).apply(null, arguments) | |
}; | |
var _Fullscreen_addBoolComponentPropDef = Module["_Fullscreen_addBoolComponentPropDef"] = function() { | |
return (_Fullscreen_addBoolComponentPropDef = Module["_Fullscreen_addBoolComponentPropDef"] = Module["asm"]["Dk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_delightfulToolbarDropItemOntoCanvas = Module["_Fullscreen_delightfulToolbarDropItemOntoCanvas"] = function() { | |
return (_Fullscreen_delightfulToolbarDropItemOntoCanvas = Module["_Fullscreen_delightfulToolbarDropItemOntoCanvas"] = Module["asm"]["Ek"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setIsInCursorChat = Module["_Fullscreen_setIsInCursorChat"] = function() { | |
return (_Fullscreen_setIsInCursorChat = Module["_Fullscreen_setIsInCursorChat"] = Module["asm"]["Fk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setHasLowAvailableMemory = Module["_Fullscreen_setHasLowAvailableMemory"] = function() { | |
return (_Fullscreen_setHasLowAvailableMemory = Module["_Fullscreen_setHasLowAvailableMemory"] = Module["asm"]["Gk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_figjamInlineMenuPositionUpdate = Module["_Fullscreen_figjamInlineMenuPositionUpdate"] = function() { | |
return (_Fullscreen_figjamInlineMenuPositionUpdate = Module["_Fullscreen_figjamInlineMenuPositionUpdate"] = Module["asm"]["Hk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_clobberSelectedTextStyles = Module["_Fullscreen_clobberSelectedTextStyles"] = function() { | |
return (_Fullscreen_clobberSelectedTextStyles = Module["_Fullscreen_clobberSelectedTextStyles"] = Module["asm"]["Ik"]).apply(null, arguments) | |
}; | |
var _Fullscreen_swapStrokeEndCaps = Module["_Fullscreen_swapStrokeEndCaps"] = function() { | |
return (_Fullscreen_swapStrokeEndCaps = Module["_Fullscreen_swapStrokeEndCaps"] = Module["asm"]["Jk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_clearLibraryMoveInfo = Module["_Fullscreen_clearLibraryMoveInfo"] = function() { | |
return (_Fullscreen_clearLibraryMoveInfo = Module["_Fullscreen_clearLibraryMoveInfo"] = Module["asm"]["Kk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_doesSymbolHaveInstances = Module["_Fullscreen_doesSymbolHaveInstances"] = function() { | |
return (_Fullscreen_doesSymbolHaveInstances = Module["_Fullscreen_doesSymbolHaveInstances"] = Module["asm"]["Lk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_generatePublishableCopy = Module["_Fullscreen_generatePublishableCopy"] = function() { | |
return (_Fullscreen_generatePublishableCopy = Module["_Fullscreen_generatePublishableCopy"] = Module["asm"]["Mk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_setDefaultEditMode = Module["_Fullscreen_setDefaultEditMode"] = function() { | |
return (_Fullscreen_setDefaultEditMode = Module["_Fullscreen_setDefaultEditMode"] = Module["asm"]["Nk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_exportSelectionOrCurrentPage = Module["_Fullscreen_exportSelectionOrCurrentPage"] = function() { | |
return (_Fullscreen_exportSelectionOrCurrentPage = Module["_Fullscreen_exportSelectionOrCurrentPage"] = Module["asm"]["Ok"]).apply(null, arguments) | |
}; | |
var _Fullscreen_insertWidget = Module["_Fullscreen_insertWidget"] = function() { | |
return (_Fullscreen_insertWidget = Module["_Fullscreen_insertWidget"] = Module["asm"]["Pk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_exportStickiesAsCSV = Module["_Fullscreen_exportStickiesAsCSV"] = function() { | |
return (_Fullscreen_exportStickiesAsCSV = Module["_Fullscreen_exportStickiesAsCSV"] = Module["asm"]["Qk"]).apply(null, arguments) | |
}; | |
var _Fullscreen_insertTemplateInCanvas = Module["_Fullscreen_insertTemplateInCanvas"] = function() { | |
return (_Fullscreen_insertTemplateInCanvas = Module["_Fullscreen_insertTemplateInCanvas"] = Module["asm"]["Rk"]).apply(null, arguments) | |
}; | |
var _Multiplayer_observeUser = Module["_Multiplayer_observeUser"] = function() { | |
return (_Multiplayer_observeUser = Module["_Multiplayer_observeUser"] = Module["asm"]["Sk"]).apply(null, arguments) | |
}; | |
var _Multiplayer_reconnect = Module["_Multiplayer_reconnect"] = function() { | |
return (_Multiplayer_reconnect = Module["_Multiplayer_reconnect"] = Module["asm"]["Tk"]).apply(null, arguments) | |
}; | |
var _Multiplayer_updateConnectionStateIfNeeded = Module["_Multiplayer_updateConnectionStateIfNeeded"] = function() { | |
return (_Multiplayer_updateConnectionStateIfNeeded = Module["_Multiplayer_updateConnectionStateIfNeeded"] = Module["asm"]["Uk"]).apply(null, arguments) | |
}; | |
var _Multiplayer_flush = Module["_Multiplayer_flush"] = function() { | |
return (_Multiplayer_flush = Module["_Multiplayer_flush"] = Module["asm"]["Vk"]).apply(null, arguments) | |
}; | |
var _Multiplayer_startUpgrade = Module["_Multiplayer_startUpgrade"] = function() { | |
return (_Multiplayer_startUpgrade = Module["_Multiplayer_startUpgrade"] = Module["asm"]["Wk"]).apply(null, arguments) | |
}; | |
var _Multiplayer_forceCheckpoint = Module["_Multiplayer_forceCheckpoint"] = function() { | |
return (_Multiplayer_forceCheckpoint = Module["_Multiplayer_forceCheckpoint"] = Module["asm"]["Xk"]).apply(null, arguments) | |
}; | |
var _Multiplayer_currentSessionID = Module["_Multiplayer_currentSessionID"] = function() { | |
return (_Multiplayer_currentSessionID = Module["_Multiplayer_currentSessionID"] = Module["asm"]["Yk"]).apply(null, arguments) | |
}; | |
var _Multiplayer_pendingRegistersDump = Module["_Multiplayer_pendingRegistersDump"] = function() { | |
return (_Multiplayer_pendingRegistersDump = Module["_Multiplayer_pendingRegistersDump"] = Module["asm"]["Zk"]).apply(null, arguments) | |
}; | |
var _Multiplayer_startLoadingAllPages = Module["_Multiplayer_startLoadingAllPages"] = function() { | |
return (_Multiplayer_startLoadingAllPages = Module["_Multiplayer_startLoadingAllPages"] = Module["asm"]["_k"]).apply(null, arguments) | |
}; | |
var _Multiplayer_detach = Module["_Multiplayer_detach"] = function() { | |
return (_Multiplayer_detach = Module["_Multiplayer_detach"] = Module["asm"]["$k"]).apply(null, arguments) | |
}; | |
var _Multiplayer_reattachAndSync = Module["_Multiplayer_reattachAndSync"] = function() { | |
return (_Multiplayer_reattachAndSync = Module["_Multiplayer_reattachAndSync"] = Module["asm"]["al"]).apply(null, arguments) | |
}; | |
var _Multiplayer_abandonAndReattach = Module["_Multiplayer_abandonAndReattach"] = function() { | |
return (_Multiplayer_abandonAndReattach = Module["_Multiplayer_abandonAndReattach"] = Module["asm"]["bl"]).apply(null, arguments) | |
}; | |
var _Multiplayer_sendChatMessage = Module["_Multiplayer_sendChatMessage"] = function() { | |
return (_Multiplayer_sendChatMessage = Module["_Multiplayer_sendChatMessage"] = Module["asm"]["cl"]).apply(null, arguments) | |
}; | |
var _Multiplayer_sendVoiceMetadata = Module["_Multiplayer_sendVoiceMetadata"] = function() { | |
return (_Multiplayer_sendVoiceMetadata = Module["_Multiplayer_sendVoiceMetadata"] = Module["asm"]["dl"]).apply(null, arguments) | |
}; | |
var _Multiplayer_sendReaction = Module["_Multiplayer_sendReaction"] = function() { | |
return (_Multiplayer_sendReaction = Module["_Multiplayer_sendReaction"] = Module["asm"]["el"]).apply(null, arguments) | |
}; | |
var _Multiplayer_sendTimer = Module["_Multiplayer_sendTimer"] = function() { | |
return (_Multiplayer_sendTimer = Module["_Multiplayer_sendTimer"] = Module["asm"]["fl"]).apply(null, arguments) | |
}; | |
var _Multiplayer_sendSignal = Module["_Multiplayer_sendSignal"] = function() { | |
return (_Multiplayer_sendSignal = Module["_Multiplayer_sendSignal"] = Module["asm"]["gl"]).apply(null, arguments) | |
}; | |
var _Multiplayer_sendHighFiveStatus = Module["_Multiplayer_sendHighFiveStatus"] = function() { | |
return (_Multiplayer_sendHighFiveStatus = Module["_Multiplayer_sendHighFiveStatus"] = Module["asm"]["hl"]).apply(null, arguments) | |
}; | |
var _Multiplayer_setName = Module["_Multiplayer_setName"] = function() { | |
return (_Multiplayer_setName = Module["_Multiplayer_setName"] = Module["asm"]["il"]).apply(null, arguments) | |
}; | |
var _Multiplayer_setImgUrl = Module["_Multiplayer_setImgUrl"] = function() { | |
return (_Multiplayer_setImgUrl = Module["_Multiplayer_setImgUrl"] = Module["asm"]["jl"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_fileIsReadOnly = Module["_AutosaveHelpers_fileIsReadOnly"] = function() { | |
return (_AutosaveHelpers_fileIsReadOnly = Module["_AutosaveHelpers_fileIsReadOnly"] = Module["asm"]["kl"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_currentFileVersion = Module["_AutosaveHelpers_currentFileVersion"] = function() { | |
return (_AutosaveHelpers_currentFileVersion = Module["_AutosaveHelpers_currentFileVersion"] = Module["asm"]["ll"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_disableAutosave = Module["_AutosaveHelpers_disableAutosave"] = function() { | |
return (_AutosaveHelpers_disableAutosave = Module["_AutosaveHelpers_disableAutosave"] = Module["asm"]["ml"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_mergeMultiplayerMessages = Module["_AutosaveHelpers_mergeMultiplayerMessages"] = function() { | |
return (_AutosaveHelpers_mergeMultiplayerMessages = Module["_AutosaveHelpers_mergeMultiplayerMessages"] = Module["asm"]["nl"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_loadAutosavedNodeChanges = Module["_AutosaveHelpers_loadAutosavedNodeChanges"] = function() { | |
return (_AutosaveHelpers_loadAutosavedNodeChanges = Module["_AutosaveHelpers_loadAutosavedNodeChanges"] = Module["asm"]["ol"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_changesAreAllDerivedData = Module["_AutosaveHelpers_changesAreAllDerivedData"] = function() { | |
return (_AutosaveHelpers_changesAreAllDerivedData = Module["_AutosaveHelpers_changesAreAllDerivedData"] = Module["asm"]["pl"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_getImagesUsedInAutosavedChanges = Module["_AutosaveHelpers_getImagesUsedInAutosavedChanges"] = function() { | |
return (_AutosaveHelpers_getImagesUsedInAutosavedChanges = Module["_AutosaveHelpers_getImagesUsedInAutosavedChanges"] = Module["asm"]["ql"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_restoreReferencedNodeFile = Module["_AutosaveHelpers_restoreReferencedNodeFile"] = function() { | |
return (_AutosaveHelpers_restoreReferencedNodeFile = Module["_AutosaveHelpers_restoreReferencedNodeFile"] = Module["asm"]["rl"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_restoreReferencedNodesMessage = Module["_AutosaveHelpers_restoreReferencedNodesMessage"] = function() { | |
return (_AutosaveHelpers_restoreReferencedNodesMessage = Module["_AutosaveHelpers_restoreReferencedNodesMessage"] = Module["asm"]["sl"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_takeAllReferencedNodes = Module["_AutosaveHelpers_takeAllReferencedNodes"] = function() { | |
return (_AutosaveHelpers_takeAllReferencedNodes = Module["_AutosaveHelpers_takeAllReferencedNodes"] = Module["asm"]["tl"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_getAllAutosavedChanges = Module["_AutosaveHelpers_getAllAutosavedChanges"] = function() { | |
return (_AutosaveHelpers_getAllAutosavedChanges = Module["_AutosaveHelpers_getAllAutosavedChanges"] = Module["asm"]["ul"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_setAllAutosavedChanges = Module["_AutosaveHelpers_setAllAutosavedChanges"] = function() { | |
return (_AutosaveHelpers_setAllAutosavedChanges = Module["_AutosaveHelpers_setAllAutosavedChanges"] = Module["asm"]["vl"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_applyAutosavedChanges = Module["_AutosaveHelpers_applyAutosavedChanges"] = function() { | |
return (_AutosaveHelpers_applyAutosavedChanges = Module["_AutosaveHelpers_applyAutosavedChanges"] = Module["asm"]["wl"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_clearAutosavedChanges = Module["_AutosaveHelpers_clearAutosavedChanges"] = function() { | |
return (_AutosaveHelpers_clearAutosavedChanges = Module["_AutosaveHelpers_clearAutosavedChanges"] = Module["asm"]["xl"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_getImageBytes = Module["_AutosaveHelpers_getImageBytes"] = function() { | |
return (_AutosaveHelpers_getImageBytes = Module["_AutosaveHelpers_getImageBytes"] = Module["asm"]["yl"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_restoreImageBytes = Module["_AutosaveHelpers_restoreImageBytes"] = function() { | |
return (_AutosaveHelpers_restoreImageBytes = Module["_AutosaveHelpers_restoreImageBytes"] = Module["asm"]["zl"]).apply(null, arguments) | |
}; | |
var _AutosaveHelpers_encodeChangesAsJson = Module["_AutosaveHelpers_encodeChangesAsJson"] = function() { | |
return (_AutosaveHelpers_encodeChangesAsJson = Module["_AutosaveHelpers_encodeChangesAsJson"] = Module["asm"]["Al"]).apply(null, arguments) | |
}; | |
var _DiffImpl_setActiveDiff = Module["_DiffImpl_setActiveDiff"] = function() { | |
return (_DiffImpl_setActiveDiff = Module["_DiffImpl_setActiveDiff"] = Module["asm"]["Bl"]).apply(null, arguments) | |
}; | |
var _DiffImpl_getActiveDiffVersion = Module["_DiffImpl_getActiveDiffVersion"] = function() { | |
return (_DiffImpl_getActiveDiffVersion = Module["_DiffImpl_getActiveDiffVersion"] = Module["asm"]["Cl"]).apply(null, arguments) | |
}; | |
var _DiffImpl_clearActiveDiff = Module["_DiffImpl_clearActiveDiff"] = function() { | |
return (_DiffImpl_clearActiveDiff = Module["_DiffImpl_clearActiveDiff"] = Module["asm"]["Dl"]).apply(null, arguments) | |
}; | |
var _DiffImpl_applyDiff = Module["_DiffImpl_applyDiff"] = function() { | |
return (_DiffImpl_applyDiff = Module["_DiffImpl_applyDiff"] = Module["asm"]["El"]).apply(null, arguments) | |
}; | |
var _DiffImpl_applyAllChunks = Module["_DiffImpl_applyAllChunks"] = function() { | |
return (_DiffImpl_applyAllChunks = Module["_DiffImpl_applyAllChunks"] = Module["asm"]["Fl"]).apply(null, arguments) | |
}; | |
var _DiffImpl_recreateBranchPoint = Module["_DiffImpl_recreateBranchPoint"] = function() { | |
return (_DiffImpl_recreateBranchPoint = Module["_DiffImpl_recreateBranchPoint"] = Module["asm"]["Gl"]).apply(null, arguments) | |
}; | |
var _DiffImpl_unapplyAllChunks = Module["_DiffImpl_unapplyAllChunks"] = function() { | |
return (_DiffImpl_unapplyAllChunks = Module["_DiffImpl_unapplyAllChunks"] = Module["asm"]["Hl"]).apply(null, arguments) | |
}; | |
var _DiffImpl_getChunks = Module["_DiffImpl_getChunks"] = function() { | |
return (_DiffImpl_getChunks = Module["_DiffImpl_getChunks"] = Module["asm"]["Il"]).apply(null, arguments) | |
}; | |
var _DiffImpl_getChunkChanges = Module["_DiffImpl_getChunkChanges"] = function() { | |
return (_DiffImpl_getChunkChanges = Module["_DiffImpl_getChunkChanges"] = Module["asm"]["Jl"]).apply(null, arguments) | |
}; | |
var _DiffImpl_getDisplayChunks = Module["_DiffImpl_getDisplayChunks"] = function() { | |
return (_DiffImpl_getDisplayChunks = Module["_DiffImpl_getDisplayChunks"] = Module["asm"]["Kl"]).apply(null, arguments) | |
}; | |
var _DiffImpl_setConflictDetectionDiff = Module["_DiffImpl_setConflictDetectionDiff"] = function() { | |
return (_DiffImpl_setConflictDetectionDiff = Module["_DiffImpl_setConflictDetectionDiff"] = Module["asm"]["Ll"]).apply(null, arguments) | |
}; | |
var _DiffImpl_getConflictDetectionDiffVersion = Module["_DiffImpl_getConflictDetectionDiffVersion"] = function() { | |
return (_DiffImpl_getConflictDetectionDiffVersion = Module["_DiffImpl_getConflictDetectionDiffVersion"] = Module["asm"]["Ml"]).apply(null, arguments) | |
}; | |
var _DiffImpl_getConflictingChunkGroups = Module["_DiffImpl_getConflictingChunkGroups"] = function() { | |
return (_DiffImpl_getConflictingChunkGroups = Module["_DiffImpl_getConflictingChunkGroups"] = Module["asm"]["Nl"]).apply(null, arguments) | |
}; | |
var _DiffImpl_clearConflictDetectionDiff = Module["_DiffImpl_clearConflictDetectionDiff"] = function() { | |
return (_DiffImpl_clearConflictDetectionDiff = Module["_DiffImpl_clearConflictDetectionDiff"] = Module["asm"]["Ol"]).apply(null, arguments) | |
}; | |
var _DiffImpl_enterBranchingDetachedState = Module["_DiffImpl_enterBranchingDetachedState"] = function() { | |
return (_DiffImpl_enterBranchingDetachedState = Module["_DiffImpl_enterBranchingDetachedState"] = Module["asm"]["Pl"]).apply(null, arguments) | |
}; | |
var _DiffImpl_commitBranchingStagedChanges = Module["_DiffImpl_commitBranchingStagedChanges"] = function() { | |
return (_DiffImpl_commitBranchingStagedChanges = Module["_DiffImpl_commitBranchingStagedChanges"] = Module["asm"]["Ql"]).apply(null, arguments) | |
}; | |
var _DiffImpl_abandonBranchingChanges = Module["_DiffImpl_abandonBranchingChanges"] = function() { | |
return (_DiffImpl_abandonBranchingChanges = Module["_DiffImpl_abandonBranchingChanges"] = Module["asm"]["Rl"]).apply(null, arguments) | |
}; | |
var _ColorHelpers_hslFromRGB = Module["_ColorHelpers_hslFromRGB"] = function() { | |
return (_ColorHelpers_hslFromRGB = Module["_ColorHelpers_hslFromRGB"] = Module["asm"]["Sl"]).apply(null, arguments) | |
}; | |
var _ColorHelpers_hslToRGB = Module["_ColorHelpers_hslToRGB"] = function() { | |
return (_ColorHelpers_hslToRGB = Module["_ColorHelpers_hslToRGB"] = Module["asm"]["Tl"]).apply(null, arguments) | |
}; | |
var _ColorHelpers_hsvFromRGB = Module["_ColorHelpers_hsvFromRGB"] = function() { | |
return (_ColorHelpers_hsvFromRGB = Module["_ColorHelpers_hsvFromRGB"] = Module["asm"]["Ul"]).apply(null, arguments) | |
}; | |
var _ColorHelpers_hsvToRGB = Module["_ColorHelpers_hsvToRGB"] = function() { | |
return (_ColorHelpers_hsvToRGB = Module["_ColorHelpers_hsvToRGB"] = Module["asm"]["Vl"]).apply(null, arguments) | |
}; | |
var _CSSExportHelpers_convertGradientPaintToCSS = Module["_CSSExportHelpers_convertGradientPaintToCSS"] = function() { | |
return (_CSSExportHelpers_convertGradientPaintToCSS = Module["_CSSExportHelpers_convertGradientPaintToCSS"] = Module["asm"]["Wl"]).apply(null, arguments) | |
}; | |
var _FontHelpers_collectDocumentFonts = Module["_FontHelpers_collectDocumentFonts"] = function() { | |
return (_FontHelpers_collectDocumentFonts = Module["_FontHelpers_collectDocumentFonts"] = Module["asm"]["Xl"]).apply(null, arguments) | |
}; | |
var _FontHelpers_searchForFonts = Module["_FontHelpers_searchForFonts"] = function() { | |
return (_FontHelpers_searchForFonts = Module["_FontHelpers_searchForFonts"] = Module["asm"]["Yl"]).apply(null, arguments) | |
}; | |
var _FontHelpers_debugSelectionOpenTypeFeatures = Module["_FontHelpers_debugSelectionOpenTypeFeatures"] = function() { | |
return (_FontHelpers_debugSelectionOpenTypeFeatures = Module["_FontHelpers_debugSelectionOpenTypeFeatures"] = Module["asm"]["Zl"]).apply(null, arguments) | |
}; | |
var _FontHelpers_getOpenTypeFeaturePreview = Module["_FontHelpers_getOpenTypeFeaturePreview"] = function() { | |
return (_FontHelpers_getOpenTypeFeaturePreview = Module["_FontHelpers_getOpenTypeFeaturePreview"] = Module["asm"]["_l"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_startRecordingInteraction = Module["_InteractionTestHelpers_startRecordingInteraction"] = function() { | |
return (_InteractionTestHelpers_startRecordingInteraction = Module["_InteractionTestHelpers_startRecordingInteraction"] = Module["asm"]["$l"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_stopRecordingInteraction = Module["_InteractionTestHelpers_stopRecordingInteraction"] = function() { | |
return (_InteractionTestHelpers_stopRecordingInteraction = Module["_InteractionTestHelpers_stopRecordingInteraction"] = Module["asm"]["am"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_setIsRunningInteractionTests = Module["_InteractionTestHelpers_setIsRunningInteractionTests"] = function() { | |
return (_InteractionTestHelpers_setIsRunningInteractionTests = Module["_InteractionTestHelpers_setIsRunningInteractionTests"] = Module["asm"]["bm"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_playbackInteraction = Module["_InteractionTestHelpers_playbackInteraction"] = function() { | |
return (_InteractionTestHelpers_playbackInteraction = Module["_InteractionTestHelpers_playbackInteraction"] = Module["asm"]["cm"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_resetToNewDocument = Module["_InteractionTestHelpers_resetToNewDocument"] = function() { | |
return (_InteractionTestHelpers_resetToNewDocument = Module["_InteractionTestHelpers_resetToNewDocument"] = Module["asm"]["dm"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_setReadOnly = Module["_InteractionTestHelpers_setReadOnly"] = function() { | |
return (_InteractionTestHelpers_setReadOnly = Module["_InteractionTestHelpers_setReadOnly"] = Module["asm"]["em"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_dumpFile = Module["_InteractionTestHelpers_dumpFile"] = function() { | |
return (_InteractionTestHelpers_dumpFile = Module["_InteractionTestHelpers_dumpFile"] = Module["asm"]["fm"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_inspectNode = Module["_InteractionTestHelpers_inspectNode"] = function() { | |
return (_InteractionTestHelpers_inspectNode = Module["_InteractionTestHelpers_inspectNode"] = Module["asm"]["gm"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_inspectListDetector = Module["_InteractionTestHelpers_inspectListDetector"] = function() { | |
return (_InteractionTestHelpers_inspectListDetector = Module["_InteractionTestHelpers_inspectListDetector"] = Module["asm"]["hm"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_inspectViewport = Module["_InteractionTestHelpers_inspectViewport"] = function() { | |
return (_InteractionTestHelpers_inspectViewport = Module["_InteractionTestHelpers_inspectViewport"] = Module["asm"]["im"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_inspectCurrentDetectedList = Module["_InteractionTestHelpers_inspectCurrentDetectedList"] = function() { | |
return (_InteractionTestHelpers_inspectCurrentDetectedList = Module["_InteractionTestHelpers_inspectCurrentDetectedList"] = Module["asm"]["jm"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_inspectCurrentDetectedGrid = Module["_InteractionTestHelpers_inspectCurrentDetectedGrid"] = function() { | |
return (_InteractionTestHelpers_inspectCurrentDetectedGrid = Module["_InteractionTestHelpers_inspectCurrentDetectedGrid"] = Module["asm"]["km"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_useNewTextLayoutLogicForSelection = Module["_InteractionTestHelpers_useNewTextLayoutLogicForSelection"] = function() { | |
return (_InteractionTestHelpers_useNewTextLayoutLogicForSelection = Module["_InteractionTestHelpers_useNewTextLayoutLogicForSelection"] = Module["asm"]["lm"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_triggerReleaseAssert = Module["_InteractionTestHelpers_triggerReleaseAssert"] = function() { | |
return (_InteractionTestHelpers_triggerReleaseAssert = Module["_InteractionTestHelpers_triggerReleaseAssert"] = Module["asm"]["mm"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_triggerReleaseReport = Module["_InteractionTestHelpers_triggerReleaseReport"] = function() { | |
return (_InteractionTestHelpers_triggerReleaseReport = Module["_InteractionTestHelpers_triggerReleaseReport"] = Module["asm"]["nm"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_abortTheAppForTesting = Module["_InteractionTestHelpers_abortTheAppForTesting"] = function() { | |
return (_InteractionTestHelpers_abortTheAppForTesting = Module["_InteractionTestHelpers_abortTheAppForTesting"] = Module["asm"]["om"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_runOutOfMemoryForTesting = Module["_InteractionTestHelpers_runOutOfMemoryForTesting"] = function() { | |
return (_InteractionTestHelpers_runOutOfMemoryForTesting = Module["_InteractionTestHelpers_runOutOfMemoryForTesting"] = Module["asm"]["pm"]).apply(null, arguments) | |
}; | |
var _InteractionTestHelpers_setShowHyperlinkPopupsImmediately = Module["_InteractionTestHelpers_setShowHyperlinkPopupsImmediately"] = function() { | |
return (_InteractionTestHelpers_setShowHyperlinkPopupsImmediately = Module["_InteractionTestHelpers_setShowHyperlinkPopupsImmediately"] = Module["asm"]["qm"]).apply(null, arguments) | |
}; | |
var _UserPreferencesTestHelpers_has = Module["_UserPreferencesTestHelpers_has"] = function() { | |
return (_UserPreferencesTestHelpers_has = Module["_UserPreferencesTestHelpers_has"] = Module["asm"]["rm"]).apply(null, arguments) | |
}; | |
var _UserPreferencesTestHelpers_get = Module["_UserPreferencesTestHelpers_get"] = function() { | |
return (_UserPreferencesTestHelpers_get = Module["_UserPreferencesTestHelpers_get"] = Module["asm"]["sm"]).apply(null, arguments) | |
}; | |
var _UserPreferencesTestHelpers_set = Module["_UserPreferencesTestHelpers_set"] = function() { | |
return (_UserPreferencesTestHelpers_set = Module["_UserPreferencesTestHelpers_set"] = Module["asm"]["tm"]).apply(null, arguments) | |
}; | |
var _UserPreferencesTestHelpers_clear = Module["_UserPreferencesTestHelpers_clear"] = function() { | |
return (_UserPreferencesTestHelpers_clear = Module["_UserPreferencesTestHelpers_clear"] = Module["asm"]["um"]).apply(null, arguments) | |
}; | |
var _SceneGraphHelpers_pageMoveBeforePage = Module["_SceneGraphHelpers_pageMoveBeforePage"] = function() { | |
return (_SceneGraphHelpers_pageMoveBeforePage = Module["_SceneGraphHelpers_pageMoveBeforePage"] = Module["asm"]["vm"]).apply(null, arguments) | |
}; | |
var _SceneGraphHelpers_pageMoveAfterPage = Module["_SceneGraphHelpers_pageMoveAfterPage"] = function() { | |
return (_SceneGraphHelpers_pageMoveAfterPage = Module["_SceneGraphHelpers_pageMoveAfterPage"] = Module["asm"]["wm"]).apply(null, arguments) | |
}; | |
var _SceneGraphHelpers_nodeIsSoftDeleted = Module["_SceneGraphHelpers_nodeIsSoftDeleted"] = function() { | |
return (_SceneGraphHelpers_nodeIsSoftDeleted = Module["_SceneGraphHelpers_nodeIsSoftDeleted"] = Module["asm"]["xm"]).apply(null, arguments) | |
}; | |
var _SceneGraphHelpers_findBestAncestorInRestorePath = Module["_SceneGraphHelpers_findBestAncestorInRestorePath"] = function() { | |
return (_SceneGraphHelpers_findBestAncestorInRestorePath = Module["_SceneGraphHelpers_findBestAncestorInRestorePath"] = Module["asm"]["ym"]).apply(null, arguments) | |
}; | |
var _SceneGraphHelpers_nodeIsSubscribedSymbolOrStateGroup = Module["_SceneGraphHelpers_nodeIsSubscribedSymbolOrStateGroup"] = function() { | |
return (_SceneGraphHelpers_nodeIsSubscribedSymbolOrStateGroup = Module["_SceneGraphHelpers_nodeIsSubscribedSymbolOrStateGroup"] = Module["asm"]["zm"]).apply(null, arguments) | |
}; | |
var _SceneGraphHelpers_getComponentOrStateGroupKeyForPublish = Module["_SceneGraphHelpers_getComponentOrStateGroupKeyForPublish"] = function() { | |
return (_SceneGraphHelpers_getComponentOrStateGroupKeyForPublish = Module["_SceneGraphHelpers_getComponentOrStateGroupKeyForPublish"] = Module["asm"]["Am"]).apply(null, arguments) | |
}; | |
var _SceneGraphHelpers_nodeIsPage = Module["_SceneGraphHelpers_nodeIsPage"] = function() { | |
return (_SceneGraphHelpers_nodeIsPage = Module["_SceneGraphHelpers_nodeIsPage"] = Module["asm"]["Bm"]).apply(null, arguments) | |
}; | |
var _SceneGraphHelpers_symbolContainsInstance = Module["_SceneGraphHelpers_symbolContainsInstance"] = function() { | |
return (_SceneGraphHelpers_symbolContainsInstance = Module["_SceneGraphHelpers_symbolContainsInstance"] = Module["asm"]["Cm"]).apply(null, arguments) | |
}; | |
var _SceneGraphHelpers_getNodeSize = Module["_SceneGraphHelpers_getNodeSize"] = function() { | |
return (_SceneGraphHelpers_getNodeSize = Module["_SceneGraphHelpers_getNodeSize"] = Module["asm"]["Dm"]).apply(null, arguments) | |
}; | |
var _SceneGraphHelpers_getNodePageBackgroundColor = Module["_SceneGraphHelpers_getNodePageBackgroundColor"] = function() { | |
return (_SceneGraphHelpers_getNodePageBackgroundColor = Module["_SceneGraphHelpers_getNodePageBackgroundColor"] = Module["asm"]["Em"]).apply(null, arguments) | |
}; | |
var _SceneGraphHelpers_getNodeTransformProperties = Module["_SceneGraphHelpers_getNodeTransformProperties"] = function() { | |
return (_SceneGraphHelpers_getNodeTransformProperties = Module["_SceneGraphHelpers_getNodeTransformProperties"] = Module["asm"]["Fm"]).apply(null, arguments) | |
}; | |
var _SceneGraphHelpers_setNodeTransformProperties = Module["_SceneGraphHelpers_setNodeTransformProperties"] = function() { | |
return (_SceneGraphHelpers_setNodeTransformProperties = Module["_SceneGraphHelpers_setNodeTransformProperties"] = Module["asm"]["Gm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_setOriginNodeId = Module["_PrototypingHelpers_setOriginNodeId"] = function() { | |
return (_PrototypingHelpers_setOriginNodeId = Module["_PrototypingHelpers_setOriginNodeId"] = Module["asm"]["Hm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_safelySetDestinationNodeId = Module["_PrototypingHelpers_safelySetDestinationNodeId"] = function() { | |
return (_PrototypingHelpers_safelySetDestinationNodeId = Module["_PrototypingHelpers_safelySetDestinationNodeId"] = Module["asm"]["Im"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_getTransitionDestinationsOnActiveCanvas = Module["_PrototypingHelpers_getTransitionDestinationsOnActiveCanvas"] = function() { | |
return (_PrototypingHelpers_getTransitionDestinationsOnActiveCanvas = Module["_PrototypingHelpers_getTransitionDestinationsOnActiveCanvas"] = Module["asm"]["Jm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_currentPagePrototypeStatus = Module["_PrototypingHelpers_currentPagePrototypeStatus"] = function() { | |
return (_PrototypingHelpers_currentPagePrototypeStatus = Module["_PrototypingHelpers_currentPagePrototypeStatus"] = Module["asm"]["Km"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_firstPagePrototypeStatus = Module["_PrototypingHelpers_firstPagePrototypeStatus"] = function() { | |
return (_PrototypingHelpers_firstPagePrototypeStatus = Module["_PrototypingHelpers_firstPagePrototypeStatus"] = Module["asm"]["Lm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_currentPagePrototypeStatusWithStartingPoint = Module["_PrototypingHelpers_currentPagePrototypeStatusWithStartingPoint"] = function() { | |
return (_PrototypingHelpers_currentPagePrototypeStatusWithStartingPoint = Module["_PrototypingHelpers_currentPagePrototypeStatusWithStartingPoint"] = Module["asm"]["Mm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_firstPagePrototypeStatusWithStartingPoint = Module["_PrototypingHelpers_firstPagePrototypeStatusWithStartingPoint"] = function() { | |
return (_PrototypingHelpers_firstPagePrototypeStatusWithStartingPoint = Module["_PrototypingHelpers_firstPagePrototypeStatusWithStartingPoint"] = Module["asm"]["Nm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_getActivePrototypeStartingPointNodeIdOnCurrentPage = Module["_PrototypingHelpers_getActivePrototypeStartingPointNodeIdOnCurrentPage"] = function() { | |
return (_PrototypingHelpers_getActivePrototypeStartingPointNodeIdOnCurrentPage = Module["_PrototypingHelpers_getActivePrototypeStartingPointNodeIdOnCurrentPage"] = Module["asm"]["Om"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_isViewerSidebarShownByDefault = Module["_PrototypingHelpers_isViewerSidebarShownByDefault"] = function() { | |
return (_PrototypingHelpers_isViewerSidebarShownByDefault = Module["_PrototypingHelpers_isViewerSidebarShownByDefault"] = Module["asm"]["Pm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_getTopLevelProtototypeStartNodeIdOnCurrentPage = Module["_PrototypingHelpers_getTopLevelProtototypeStartNodeIdOnCurrentPage"] = function() { | |
return (_PrototypingHelpers_getTopLevelProtototypeStartNodeIdOnCurrentPage = Module["_PrototypingHelpers_getTopLevelProtototypeStartNodeIdOnCurrentPage"] = Module["asm"]["Qm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_migrateSyntheticStartingPointAndSetName = Module["_PrototypingHelpers_migrateSyntheticStartingPointAndSetName"] = function() { | |
return (_PrototypingHelpers_migrateSyntheticStartingPointAndSetName = Module["_PrototypingHelpers_migrateSyntheticStartingPointAndSetName"] = Module["asm"]["Rm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_subtreeContainsStateSwap = Module["_PrototypingHelpers_subtreeContainsStateSwap"] = function() { | |
return (_PrototypingHelpers_subtreeContainsStateSwap = Module["_PrototypingHelpers_subtreeContainsStateSwap"] = Module["asm"]["Sm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_currentPageContainsStateSwappableInstance = Module["_PrototypingHelpers_currentPageContainsStateSwappableInstance"] = function() { | |
return (_PrototypingHelpers_currentPageContainsStateSwappableInstance = Module["_PrototypingHelpers_currentPageContainsStateSwappableInstance"] = Module["asm"]["Tm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_documentContainsInteractiveComponent = Module["_PrototypingHelpers_documentContainsInteractiveComponent"] = function() { | |
return (_PrototypingHelpers_documentContainsInteractiveComponent = Module["_PrototypingHelpers_documentContainsInteractiveComponent"] = Module["asm"]["Um"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_aggressivelySetScrollBehaviorOfSelection = Module["_PrototypingHelpers_aggressivelySetScrollBehaviorOfSelection"] = function() { | |
return (_PrototypingHelpers_aggressivelySetScrollBehaviorOfSelection = Module["_PrototypingHelpers_aggressivelySetScrollBehaviorOfSelection"] = Module["asm"]["Vm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_currentDeviceType = Module["_PrototypingHelpers_currentDeviceType"] = function() { | |
return (_PrototypingHelpers_currentDeviceType = Module["_PrototypingHelpers_currentDeviceType"] = Module["asm"]["Wm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_isNodeVisibleInViewport = Module["_PrototypingHelpers_isNodeVisibleInViewport"] = function() { | |
return (_PrototypingHelpers_isNodeVisibleInViewport = Module["_PrototypingHelpers_isNodeVisibleInViewport"] = Module["asm"]["Xm"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_centerViewportOnNodeIfNecessary = Module["_PrototypingHelpers_centerViewportOnNodeIfNecessary"] = function() { | |
return (_PrototypingHelpers_centerViewportOnNodeIfNecessary = Module["_PrototypingHelpers_centerViewportOnNodeIfNecessary"] = Module["asm"]["Ym"]).apply(null, arguments) | |
}; | |
var _PrototypingHelpers_updateCurrentPagePrototypeDeviceIfNecessary = Module["_PrototypingHelpers_updateCurrentPagePrototypeDeviceIfNecessary"] = function() { | |
return (_PrototypingHelpers_updateCurrentPagePrototypeDeviceIfNecessary = Module["_PrototypingHelpers_updateCurrentPagePrototypeDeviceIfNecessary"] = Module["asm"]["Zm"]).apply(null, arguments) | |
}; | |
var _CustomFocusHelpers_setExpectingTextInput = Module["_CustomFocusHelpers_setExpectingTextInput"] = function() { | |
return (_CustomFocusHelpers_setExpectingTextInput = Module["_CustomFocusHelpers_setExpectingTextInput"] = Module["asm"]["_m"]).apply(null, arguments) | |
}; | |
var _CustomFocusHelpers_setExpectingCopyCutEvent = Module["_CustomFocusHelpers_setExpectingCopyCutEvent"] = function() { | |
return (_CustomFocusHelpers_setExpectingCopyCutEvent = Module["_CustomFocusHelpers_setExpectingCopyCutEvent"] = Module["asm"]["$m"]).apply(null, arguments) | |
}; | |
var _CustomFocusHelpers_setExpectingPasteEvent = Module["_CustomFocusHelpers_setExpectingPasteEvent"] = function() { | |
return (_CustomFocusHelpers_setExpectingPasteEvent = Module["_CustomFocusHelpers_setExpectingPasteEvent"] = Module["asm"]["an"]).apply(null, arguments) | |
}; | |
var _DebuggingHelpers_logNode = Module["_DebuggingHelpers_logNode"] = function() { | |
return (_DebuggingHelpers_logNode = Module["_DebuggingHelpers_logNode"] = Module["asm"]["bn"]).apply(null, arguments) | |
}; | |
var _DebuggingHelpers_logRenderTree = Module["_DebuggingHelpers_logRenderTree"] = function() { | |
return (_DebuggingHelpers_logRenderTree = Module["_DebuggingHelpers_logRenderTree"] = Module["asm"]["cn"]).apply(null, arguments) | |
}; | |
var _DebuggingHelpers_logSelected = Module["_DebuggingHelpers_logSelected"] = function() { | |
return (_DebuggingHelpers_logSelected = Module["_DebuggingHelpers_logSelected"] = Module["asm"]["dn"]).apply(null, arguments) | |
}; | |
var _DebuggingHelpers_logTypeNames = Module["_DebuggingHelpers_logTypeNames"] = function() { | |
return (_DebuggingHelpers_logTypeNames = Module["_DebuggingHelpers_logTypeNames"] = Module["asm"]["en"]).apply(null, arguments) | |
}; | |
var _DebuggingHelpers_analyzeFieldUsage = Module["_DebuggingHelpers_analyzeFieldUsage"] = function() { | |
return (_DebuggingHelpers_analyzeFieldUsage = Module["_DebuggingHelpers_analyzeFieldUsage"] = Module["asm"]["fn"]).apply(null, arguments) | |
}; | |
var _DebuggingHelpers_updateInstanceCallCount = Module["_DebuggingHelpers_updateInstanceCallCount"] = function() { | |
return (_DebuggingHelpers_updateInstanceCallCount = Module["_DebuggingHelpers_updateInstanceCallCount"] = Module["asm"]["gn"]).apply(null, arguments) | |
}; | |
var _DebuggingHelpers_checkSymbolUpdateTimer = Module["_DebuggingHelpers_checkSymbolUpdateTimer"] = function() { | |
return (_DebuggingHelpers_checkSymbolUpdateTimer = Module["_DebuggingHelpers_checkSymbolUpdateTimer"] = Module["asm"]["hn"]).apply(null, arguments) | |
}; | |
var _DebuggingHelpers_clearSymbolUpdateTimer = Module["_DebuggingHelpers_clearSymbolUpdateTimer"] = function() { | |
return (_DebuggingHelpers_clearSymbolUpdateTimer = Module["_DebuggingHelpers_clearSymbolUpdateTimer"] = Module["asm"]["jn"]).apply(null, arguments) | |
}; | |
var _DebuggingHelpers_sceneStats = Module["_DebuggingHelpers_sceneStats"] = function() { | |
return (_DebuggingHelpers_sceneStats = Module["_DebuggingHelpers_sceneStats"] = Module["asm"]["kn"]).apply(null, arguments) | |
}; | |
var _DebuggingHelpers_reportError = Module["_DebuggingHelpers_reportError"] = function() { | |
return (_DebuggingHelpers_reportError = Module["_DebuggingHelpers_reportError"] = Module["asm"]["ln"]).apply(null, arguments) | |
}; | |
var _DebuggingHelpers_simulateNullNodeAccess = Module["_DebuggingHelpers_simulateNullNodeAccess"] = function() { | |
return (_DebuggingHelpers_simulateNullNodeAccess = Module["_DebuggingHelpers_simulateNullNodeAccess"] = Module["asm"]["mn"]).apply(null, arguments) | |
}; | |
var _BranchingHelpers_UNSAFE_remapGUIDs = Module["_BranchingHelpers_UNSAFE_remapGUIDs"] = function() { | |
return (_BranchingHelpers_UNSAFE_remapGUIDs = Module["_BranchingHelpers_UNSAFE_remapGUIDs"] = Module["asm"]["nn"]).apply(null, arguments) | |
}; | |
var _BranchingHelpers_UNSAFE_remapSelected = Module["_BranchingHelpers_UNSAFE_remapSelected"] = function() { | |
return (_BranchingHelpers_UNSAFE_remapSelected = Module["_BranchingHelpers_UNSAFE_remapSelected"] = Module["asm"]["on"]).apply(null, arguments) | |
}; | |
var _BranchingHelpers_UNSAFE_remapDocument = Module["_BranchingHelpers_UNSAFE_remapDocument"] = function() { | |
return (_BranchingHelpers_UNSAFE_remapDocument = Module["_BranchingHelpers_UNSAFE_remapDocument"] = Module["asm"]["pn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_prepareToRunPlugin = Module["_PluginHelpers_prepareToRunPlugin"] = function() { | |
return (_PluginHelpers_prepareToRunPlugin = Module["_PluginHelpers_prepareToRunPlugin"] = Module["asm"]["qn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_startLoadingFontName = Module["_PluginHelpers_startLoadingFontName"] = function() { | |
return (_PluginHelpers_startLoadingFontName = Module["_PluginHelpers_startLoadingFontName"] = Module["asm"]["rn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_startLoadingImage = Module["_PluginHelpers_startLoadingImage"] = function() { | |
return (_PluginHelpers_startLoadingImage = Module["_PluginHelpers_startLoadingImage"] = Module["asm"]["sn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_isImageRegistered = Module["_PluginHelpers_isImageRegistered"] = function() { | |
return (_PluginHelpers_isImageRegistered = Module["_PluginHelpers_isImageRegistered"] = Module["asm"]["tn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_getImageBytes = Module["_PluginHelpers_getImageBytes"] = function() { | |
return (_PluginHelpers_getImageBytes = Module["_PluginHelpers_getImageBytes"] = Module["asm"]["un"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_isImageValid = Module["_PluginHelpers_isImageValid"] = function() { | |
return (_PluginHelpers_isImageValid = Module["_PluginHelpers_isImageValid"] = Module["asm"]["vn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_developerFriendlyIdFromGuid = Module["_PluginHelpers_developerFriendlyIdFromGuid"] = function() { | |
return (_PluginHelpers_developerFriendlyIdFromGuid = Module["_PluginHelpers_developerFriendlyIdFromGuid"] = Module["asm"]["wn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_guidFromDeveloperFriendlyId = Module["_PluginHelpers_guidFromDeveloperFriendlyId"] = function() { | |
return (_PluginHelpers_guidFromDeveloperFriendlyId = Module["_PluginHelpers_guidFromDeveloperFriendlyId"] = Module["asm"]["xn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_createNodeFromSvgForPlugin = Module["_PluginHelpers_createNodeFromSvgForPlugin"] = function() { | |
return (_PluginHelpers_createNodeFromSvgForPlugin = Module["_PluginHelpers_createNodeFromSvgForPlugin"] = Module["asm"]["yn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_getViewportBounds = Module["_PluginHelpers_getViewportBounds"] = function() { | |
return (_PluginHelpers_getViewportBounds = Module["_PluginHelpers_getViewportBounds"] = Module["asm"]["zn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_setViewportCenter = Module["_PluginHelpers_setViewportCenter"] = function() { | |
return (_PluginHelpers_setViewportCenter = Module["_PluginHelpers_setViewportCenter"] = Module["asm"]["An"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_getViewportZoomScale = Module["_PluginHelpers_getViewportZoomScale"] = function() { | |
return (_PluginHelpers_getViewportZoomScale = Module["_PluginHelpers_getViewportZoomScale"] = Module["asm"]["Bn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_setViewportZoomScale = Module["_PluginHelpers_setViewportZoomScale"] = function() { | |
return (_PluginHelpers_setViewportZoomScale = Module["_PluginHelpers_setViewportZoomScale"] = Module["asm"]["Cn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_scrollAndZoomIntoView = Module["_PluginHelpers_scrollAndZoomIntoView"] = function() { | |
return (_PluginHelpers_scrollAndZoomIntoView = Module["_PluginHelpers_scrollAndZoomIntoView"] = Module["asm"]["Dn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_groupNodes = Module["_PluginHelpers_groupNodes"] = function() { | |
return (_PluginHelpers_groupNodes = Module["_PluginHelpers_groupNodes"] = Module["asm"]["En"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_flattenNodes = Module["_PluginHelpers_flattenNodes"] = function() { | |
return (_PluginHelpers_flattenNodes = Module["_PluginHelpers_flattenNodes"] = Module["asm"]["Fn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_getMaxDashPattern = Module["_PluginHelpers_getMaxDashPattern"] = function() { | |
return (_PluginHelpers_getMaxDashPattern = Module["_PluginHelpers_getMaxDashPattern"] = Module["asm"]["Gn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_replaceSymbolBackingInstance = Module["_PluginHelpers_replaceSymbolBackingInstance"] = function() { | |
return (_PluginHelpers_replaceSymbolBackingInstance = Module["_PluginHelpers_replaceSymbolBackingInstance"] = Module["asm"]["Hn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_documentHasMissingFont = Module["_PluginHelpers_documentHasMissingFont"] = function() { | |
return (_PluginHelpers_documentHasMissingFont = Module["_PluginHelpers_documentHasMissingFont"] = Module["asm"]["In"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_setOldIntrinsicPercentageLineHeightOnCurrentSelectionForTesting = Module["_PluginHelpers_setOldIntrinsicPercentageLineHeightOnCurrentSelectionForTesting"] = function() { | |
return (_PluginHelpers_setOldIntrinsicPercentageLineHeightOnCurrentSelectionForTesting = Module["_PluginHelpers_setOldIntrinsicPercentageLineHeightOnCurrentSelectionForTesting"] = Module["asm"]["Jn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_resetSelectionCouldBeDirty = Module["_PluginHelpers_resetSelectionCouldBeDirty"] = function() { | |
return (_PluginHelpers_resetSelectionCouldBeDirty = Module["_PluginHelpers_resetSelectionCouldBeDirty"] = Module["asm"]["Kn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_removeRelaunchDataFromSelection = Module["_PluginHelpers_removeRelaunchDataFromSelection"] = function() { | |
return (_PluginHelpers_removeRelaunchDataFromSelection = Module["_PluginHelpers_removeRelaunchDataFromSelection"] = Module["asm"]["Ln"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_updateStyles = Module["_PluginHelpers_updateStyles"] = function() { | |
return (_PluginHelpers_updateStyles = Module["_PluginHelpers_updateStyles"] = Module["asm"]["Mn"]).apply(null, arguments) | |
}; | |
var _PluginHelpers_supportsALv3 = Module["_PluginHelpers_supportsALv3"] = function() { | |
return (_PluginHelpers_supportsALv3 = Module["_PluginHelpers_supportsALv3"] = Module["asm"]["Nn"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setGlobalUnstableNodeID = Module["_SceneNodeCpp_setGlobalUnstableNodeID"] = function() { | |
return (_SceneNodeCpp_setGlobalUnstableNodeID = Module["_SceneNodeCpp_setGlobalUnstableNodeID"] = Module["asm"]["On"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_exists = Module["_SceneNodeCpp_exists"] = function() { | |
return (_SceneNodeCpp_exists = Module["_SceneNodeCpp_exists"] = Module["asm"]["Pn"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getType = Module["_SceneNodeCpp_getType"] = function() { | |
return (_SceneNodeCpp_getType = Module["_SceneNodeCpp_getType"] = Module["asm"]["Qn"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getBooleanOperation = Module["_SceneNodeCpp_getBooleanOperation"] = function() { | |
return (_SceneNodeCpp_getBooleanOperation = Module["_SceneNodeCpp_getBooleanOperation"] = Module["asm"]["Rn"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setBooleanOperation = Module["_SceneNodeCpp_setBooleanOperation"] = function() { | |
return (_SceneNodeCpp_setBooleanOperation = Module["_SceneNodeCpp_setBooleanOperation"] = Module["asm"]["Sn"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getFixedChildrenCount = Module["_SceneNodeCpp_getFixedChildrenCount"] = function() { | |
return (_SceneNodeCpp_getFixedChildrenCount = Module["_SceneNodeCpp_getFixedChildrenCount"] = Module["asm"]["Tn"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setFixedChildrenCount = Module["_SceneNodeCpp_setFixedChildrenCount"] = function() { | |
return (_SceneNodeCpp_setFixedChildrenCount = Module["_SceneNodeCpp_setFixedChildrenCount"] = Module["asm"]["Un"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getScrollDirection = Module["_SceneNodeCpp_getScrollDirection"] = function() { | |
return (_SceneNodeCpp_getScrollDirection = Module["_SceneNodeCpp_getScrollDirection"] = Module["asm"]["Vn"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setScrollDirection = Module["_SceneNodeCpp_setScrollDirection"] = function() { | |
return (_SceneNodeCpp_setScrollDirection = Module["_SceneNodeCpp_setScrollDirection"] = Module["asm"]["Wn"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getCornerRadius = Module["_SceneNodeCpp_getCornerRadius"] = function() { | |
return (_SceneNodeCpp_getCornerRadius = Module["_SceneNodeCpp_getCornerRadius"] = Module["asm"]["Xn"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setCornerRadius = Module["_SceneNodeCpp_setCornerRadius"] = function() { | |
return (_SceneNodeCpp_setCornerRadius = Module["_SceneNodeCpp_setCornerRadius"] = Module["asm"]["Yn"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getObjectsPanelThumbnailId = Module["_SceneNodeCpp_getObjectsPanelThumbnailId"] = function() { | |
return (_SceneNodeCpp_getObjectsPanelThumbnailId = Module["_SceneNodeCpp_getObjectsPanelThumbnailId"] = Module["asm"]["Zn"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getStyleType = Module["_SceneNodeCpp_getStyleType"] = function() { | |
return (_SceneNodeCpp_getStyleType = Module["_SceneNodeCpp_getStyleType"] = Module["asm"]["_n"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getStackMode = Module["_SceneNodeCpp_getStackMode"] = function() { | |
return (_SceneNodeCpp_getStackMode = Module["_SceneNodeCpp_getStackMode"] = Module["asm"]["$n"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setStackMode = Module["_SceneNodeCpp_setStackMode"] = function() { | |
return (_SceneNodeCpp_setStackMode = Module["_SceneNodeCpp_setStackMode"] = Module["asm"]["ao"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getResizeToFit = Module["_SceneNodeCpp_getResizeToFit"] = function() { | |
return (_SceneNodeCpp_getResizeToFit = Module["_SceneNodeCpp_getResizeToFit"] = Module["asm"]["bo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getHasEnabledStaticImagePaint = Module["_SceneNodeCpp_getHasEnabledStaticImagePaint"] = function() { | |
return (_SceneNodeCpp_getHasEnabledStaticImagePaint = Module["_SceneNodeCpp_getHasEnabledStaticImagePaint"] = Module["asm"]["co"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getHasEnabledAnimatedPaint = Module["_SceneNodeCpp_getHasEnabledAnimatedPaint"] = function() { | |
return (_SceneNodeCpp_getHasEnabledAnimatedPaint = Module["_SceneNodeCpp_getHasEnabledAnimatedPaint"] = Module["asm"]["eo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getIsInstanceSublayer = Module["_SceneNodeCpp_getIsInstanceSublayer"] = function() { | |
return (_SceneNodeCpp_getIsInstanceSublayer = Module["_SceneNodeCpp_getIsInstanceSublayer"] = Module["asm"]["fo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getIsStateGroup = Module["_SceneNodeCpp_getIsStateGroup"] = function() { | |
return (_SceneNodeCpp_getIsStateGroup = Module["_SceneNodeCpp_getIsStateGroup"] = Module["asm"]["go"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getIsState = Module["_SceneNodeCpp_getIsState"] = function() { | |
return (_SceneNodeCpp_getIsState = Module["_SceneNodeCpp_getIsState"] = Module["asm"]["ho"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getStateAbbreviatedName = Module["_SceneNodeCpp_getStateAbbreviatedName"] = function() { | |
return (_SceneNodeCpp_getStateAbbreviatedName = Module["_SceneNodeCpp_getStateAbbreviatedName"] = Module["asm"]["io"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getFrameMaskDisabled = Module["_SceneNodeCpp_getFrameMaskDisabled"] = function() { | |
return (_SceneNodeCpp_getFrameMaskDisabled = Module["_SceneNodeCpp_getFrameMaskDisabled"] = Module["asm"]["jo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setFrameMaskDisabled = Module["_SceneNodeCpp_setFrameMaskDisabled"] = function() { | |
return (_SceneNodeCpp_setFrameMaskDisabled = Module["_SceneNodeCpp_setFrameMaskDisabled"] = Module["asm"]["ko"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getIsExpandable = Module["_SceneNodeCpp_getIsExpandable"] = function() { | |
return (_SceneNodeCpp_getIsExpandable = Module["_SceneNodeCpp_getIsExpandable"] = Module["asm"]["lo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getIsSymbolPublishable = Module["_SceneNodeCpp_getIsSymbolPublishable"] = function() { | |
return (_SceneNodeCpp_getIsSymbolPublishable = Module["_SceneNodeCpp_getIsSymbolPublishable"] = Module["asm"]["mo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getIsTemporarilyExpanded = Module["_SceneNodeCpp_getIsTemporarilyExpanded"] = function() { | |
return (_SceneNodeCpp_getIsTemporarilyExpanded = Module["_SceneNodeCpp_getIsTemporarilyExpanded"] = Module["asm"]["no"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getIsExpanded = Module["_SceneNodeCpp_getIsExpanded"] = function() { | |
return (_SceneNodeCpp_getIsExpanded = Module["_SceneNodeCpp_getIsExpanded"] = Module["asm"]["oo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setIsExpanded = Module["_SceneNodeCpp_setIsExpanded"] = function() { | |
return (_SceneNodeCpp_setIsExpanded = Module["_SceneNodeCpp_setIsExpanded"] = Module["asm"]["po"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getLocked = Module["_SceneNodeCpp_getLocked"] = function() { | |
return (_SceneNodeCpp_getLocked = Module["_SceneNodeCpp_getLocked"] = Module["asm"]["qo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setLocked = Module["_SceneNodeCpp_setLocked"] = function() { | |
return (_SceneNodeCpp_setLocked = Module["_SceneNodeCpp_setLocked"] = Module["asm"]["ro"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getMask = Module["_SceneNodeCpp_getMask"] = function() { | |
return (_SceneNodeCpp_getMask = Module["_SceneNodeCpp_getMask"] = Module["asm"]["so"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setMask = Module["_SceneNodeCpp_setMask"] = function() { | |
return (_SceneNodeCpp_setMask = Module["_SceneNodeCpp_setMask"] = Module["asm"]["to"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getVisible = Module["_SceneNodeCpp_getVisible"] = function() { | |
return (_SceneNodeCpp_getVisible = Module["_SceneNodeCpp_getVisible"] = Module["asm"]["uo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setVisible = Module["_SceneNodeCpp_setVisible"] = function() { | |
return (_SceneNodeCpp_setVisible = Module["_SceneNodeCpp_setVisible"] = Module["asm"]["vo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getName = Module["_SceneNodeCpp_getName"] = function() { | |
return (_SceneNodeCpp_getName = Module["_SceneNodeCpp_getName"] = Module["asm"]["wo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setName = Module["_SceneNodeCpp_setName"] = function() { | |
return (_SceneNodeCpp_setName = Module["_SceneNodeCpp_setName"] = Module["asm"]["xo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getParent = Module["_SceneNodeCpp_getParent"] = function() { | |
return (_SceneNodeCpp_getParent = Module["_SceneNodeCpp_getParent"] = Module["asm"]["yo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getShapeWithTextType = Module["_SceneNodeCpp_getShapeWithTextType"] = function() { | |
return (_SceneNodeCpp_getShapeWithTextType = Module["_SceneNodeCpp_getShapeWithTextType"] = Module["asm"]["zo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getSymbolId = Module["_SceneNodeCpp_getSymbolId"] = function() { | |
return (_SceneNodeCpp_getSymbolId = Module["_SceneNodeCpp_getSymbolId"] = Module["asm"]["Ao"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getSymbolDescription = Module["_SceneNodeCpp_getSymbolDescription"] = function() { | |
return (_SceneNodeCpp_getSymbolDescription = Module["_SceneNodeCpp_getSymbolDescription"] = Module["asm"]["Bo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setSymbolDescription = Module["_SceneNodeCpp_setSymbolDescription"] = function() { | |
return (_SceneNodeCpp_setSymbolDescription = Module["_SceneNodeCpp_setSymbolDescription"] = Module["asm"]["Co"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getStateGroupDescription = Module["_SceneNodeCpp_getStateGroupDescription"] = function() { | |
return (_SceneNodeCpp_getStateGroupDescription = Module["_SceneNodeCpp_getStateGroupDescription"] = Module["asm"]["Do"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getStateGroupPropertyValueOrder = Module["_SceneNodeCpp_getStateGroupPropertyValueOrder"] = function() { | |
return (_SceneNodeCpp_getStateGroupPropertyValueOrder = Module["_SceneNodeCpp_getStateGroupPropertyValueOrder"] = Module["asm"]["Eo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getSymbolLinks = Module["_SceneNodeCpp_getSymbolLinks"] = function() { | |
return (_SceneNodeCpp_getSymbolLinks = Module["_SceneNodeCpp_getSymbolLinks"] = Module["asm"]["Fo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setSymbolLinks = Module["_SceneNodeCpp_setSymbolLinks"] = function() { | |
return (_SceneNodeCpp_setSymbolLinks = Module["_SceneNodeCpp_setSymbolLinks"] = Module["asm"]["Go"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getStyleDescription = Module["_SceneNodeCpp_getStyleDescription"] = function() { | |
return (_SceneNodeCpp_getStyleDescription = Module["_SceneNodeCpp_getStyleDescription"] = Module["asm"]["Ho"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setStyleDescription = Module["_SceneNodeCpp_setStyleDescription"] = function() { | |
return (_SceneNodeCpp_setStyleDescription = Module["_SceneNodeCpp_setStyleDescription"] = Module["asm"]["Io"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getComponentKey = Module["_SceneNodeCpp_getComponentKey"] = function() { | |
return (_SceneNodeCpp_getComponentKey = Module["_SceneNodeCpp_getComponentKey"] = Module["asm"]["Jo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getStateGroupKey = Module["_SceneNodeCpp_getStateGroupKey"] = function() { | |
return (_SceneNodeCpp_getStateGroupKey = Module["_SceneNodeCpp_getStateGroupKey"] = Module["asm"]["Ko"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getStyleKey = Module["_SceneNodeCpp_getStyleKey"] = function() { | |
return (_SceneNodeCpp_getStyleKey = Module["_SceneNodeCpp_getStyleKey"] = Module["asm"]["Lo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getPublishFile = Module["_SceneNodeCpp_getPublishFile"] = function() { | |
return (_SceneNodeCpp_getPublishFile = Module["_SceneNodeCpp_getPublishFile"] = Module["asm"]["Mo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getSharedSymbolVersion = Module["_SceneNodeCpp_getSharedSymbolVersion"] = function() { | |
return (_SceneNodeCpp_getSharedSymbolVersion = Module["_SceneNodeCpp_getSharedSymbolVersion"] = Module["asm"]["No"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getSharedStateGroupVersion = Module["_SceneNodeCpp_getSharedStateGroupVersion"] = function() { | |
return (_SceneNodeCpp_getSharedStateGroupVersion = Module["_SceneNodeCpp_getSharedStateGroupVersion"] = Module["asm"]["Oo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getPublishID = Module["_SceneNodeCpp_getPublishID"] = function() { | |
return (_SceneNodeCpp_getPublishID = Module["_SceneNodeCpp_getPublishID"] = Module["asm"]["Po"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getFontName = Module["_SceneNodeCpp_getFontName"] = function() { | |
return (_SceneNodeCpp_getFontName = Module["_SceneNodeCpp_getFontName"] = Module["asm"]["Qo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getExportSettings = Module["_SceneNodeCpp_getExportSettings"] = function() { | |
return (_SceneNodeCpp_getExportSettings = Module["_SceneNodeCpp_getExportSettings"] = Module["asm"]["Ro"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_setExportSettings = Module["_SceneNodeCpp_setExportSettings"] = function() { | |
return (_SceneNodeCpp_setExportSettings = Module["_SceneNodeCpp_setExportSettings"] = Module["asm"]["So"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getSharedSymbolReference = Module["_SceneNodeCpp_getSharedSymbolReference"] = function() { | |
return (_SceneNodeCpp_getSharedSymbolReference = Module["_SceneNodeCpp_getSharedSymbolReference"] = Module["asm"]["To"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getChildren = Module["_SceneNodeCpp_getChildren"] = function() { | |
return (_SceneNodeCpp_getChildren = Module["_SceneNodeCpp_getChildren"] = Module["asm"]["Uo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getReversedChildren = Module["_SceneNodeCpp_getReversedChildren"] = function() { | |
return (_SceneNodeCpp_getReversedChildren = Module["_SceneNodeCpp_getReversedChildren"] = Module["asm"]["Vo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_requestGIFData = Module["_SceneNodeCpp_requestGIFData"] = function() { | |
return (_SceneNodeCpp_requestGIFData = Module["_SceneNodeCpp_requestGIFData"] = Module["asm"]["Wo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_updateStillImageAndSelectionPropertiesForGIF = Module["_SceneNodeCpp_updateStillImageAndSelectionPropertiesForGIF"] = function() { | |
return (_SceneNodeCpp_updateStillImageAndSelectionPropertiesForGIF = Module["_SceneNodeCpp_updateStillImageAndSelectionPropertiesForGIF"] = Module["asm"]["Xo"]).apply(null, arguments) | |
}; | |
var _SceneNodeCpp_getInheritedStyle = Module["_SceneNodeCpp_getInheritedStyle"] = function() { | |
return (_SceneNodeCpp_getInheritedStyle = Module["_SceneNodeCpp_getInheritedStyle"] = Module["asm"]["Yo"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_runInQueryMode = Module["_PluginSceneNodeCpp_runInQueryMode"] = function() { | |
return (_PluginSceneNodeCpp_runInQueryMode = Module["_PluginSceneNodeCpp_runInQueryMode"] = Module["asm"]["Zo"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_removeSelfAndChildren = Module["_PluginSceneNodeCpp_removeSelfAndChildren"] = function() { | |
return (_PluginSceneNodeCpp_removeSelfAndChildren = Module["_PluginSceneNodeCpp_removeSelfAndChildren"] = Module["asm"]["_o"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getCurrentPage = Module["_PluginSceneNodeCpp_getCurrentPage"] = function() { | |
return (_PluginSceneNodeCpp_getCurrentPage = Module["_PluginSceneNodeCpp_getCurrentPage"] = Module["asm"]["$o"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setCurrentPage = Module["_PluginSceneNodeCpp_setCurrentPage"] = function() { | |
return (_PluginSceneNodeCpp_setCurrentPage = Module["_PluginSceneNodeCpp_setCurrentPage"] = Module["asm"]["ap"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_createNode = Module["_PluginSceneNodeCpp_createNode"] = function() { | |
return (_PluginSceneNodeCpp_createNode = Module["_PluginSceneNodeCpp_createNode"] = Module["asm"]["bp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_cloneNode = Module["_PluginSceneNodeCpp_cloneNode"] = function() { | |
return (_PluginSceneNodeCpp_cloneNode = Module["_PluginSceneNodeCpp_cloneNode"] = Module["asm"]["cp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_createInstance = Module["_PluginSceneNodeCpp_createInstance"] = function() { | |
return (_PluginSceneNodeCpp_createInstance = Module["_PluginSceneNodeCpp_createInstance"] = Module["asm"]["dp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_outlineStroke = Module["_PluginSceneNodeCpp_outlineStroke"] = function() { | |
return (_PluginSceneNodeCpp_outlineStroke = Module["_PluginSceneNodeCpp_outlineStroke"] = Module["asm"]["ep"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getChildCount = Module["_PluginSceneNodeCpp_getChildCount"] = function() { | |
return (_PluginSceneNodeCpp_getChildCount = Module["_PluginSceneNodeCpp_getChildCount"] = Module["asm"]["fp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getInstanceScaleFactor = Module["_PluginSceneNodeCpp_getInstanceScaleFactor"] = function() { | |
return (_PluginSceneNodeCpp_getInstanceScaleFactor = Module["_PluginSceneNodeCpp_getInstanceScaleFactor"] = Module["asm"]["gp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setInstanceScaleFactor = Module["_PluginSceneNodeCpp_setInstanceScaleFactor"] = function() { | |
return (_PluginSceneNodeCpp_setInstanceScaleFactor = Module["_PluginSceneNodeCpp_setInstanceScaleFactor"] = Module["asm"]["hp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getIsDescendantOfImmutableFrame = Module["_PluginSceneNodeCpp_getIsDescendantOfImmutableFrame"] = function() { | |
return (_PluginSceneNodeCpp_getIsDescendantOfImmutableFrame = Module["_PluginSceneNodeCpp_getIsDescendantOfImmutableFrame"] = Module["asm"]["ip"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_exportAsImage = Module["_PluginSceneNodeCpp_exportAsImage"] = function() { | |
return (_PluginSceneNodeCpp_exportAsImage = Module["_PluginSceneNodeCpp_exportAsImage"] = Module["asm"]["jp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_insertChild = Module["_PluginSceneNodeCpp_insertChild"] = function() { | |
return (_PluginSceneNodeCpp_insertChild = Module["_PluginSceneNodeCpp_insertChild"] = Module["asm"]["kp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getDirectlySelectedNodes = Module["_PluginSceneNodeCpp_getDirectlySelectedNodes"] = function() { | |
return (_PluginSceneNodeCpp_getDirectlySelectedNodes = Module["_PluginSceneNodeCpp_getDirectlySelectedNodes"] = Module["asm"]["lp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setDirectlySelectedNodes = Module["_PluginSceneNodeCpp_setDirectlySelectedNodes"] = function() { | |
return (_PluginSceneNodeCpp_setDirectlySelectedNodes = Module["_PluginSceneNodeCpp_setDirectlySelectedNodes"] = Module["asm"]["mp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getSelectedTextRange = Module["_PluginSceneNodeCpp_getSelectedTextRange"] = function() { | |
return (_PluginSceneNodeCpp_getSelectedTextRange = Module["_PluginSceneNodeCpp_getSelectedTextRange"] = Module["asm"]["np"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setSelectedTextRange = Module["_PluginSceneNodeCpp_setSelectedTextRange"] = function() { | |
return (_PluginSceneNodeCpp_setSelectedTextRange = Module["_PluginSceneNodeCpp_setSelectedTextRange"] = Module["asm"]["op"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getOpacity = Module["_PluginSceneNodeCpp_getOpacity"] = function() { | |
return (_PluginSceneNodeCpp_getOpacity = Module["_PluginSceneNodeCpp_getOpacity"] = Module["asm"]["pp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setOpacity = Module["_PluginSceneNodeCpp_setOpacity"] = function() { | |
return (_PluginSceneNodeCpp_setOpacity = Module["_PluginSceneNodeCpp_setOpacity"] = Module["asm"]["qp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getCornerRadiusOrMixed = Module["_PluginSceneNodeCpp_getCornerRadiusOrMixed"] = function() { | |
return (_PluginSceneNodeCpp_getCornerRadiusOrMixed = Module["_PluginSceneNodeCpp_getCornerRadiusOrMixed"] = Module["asm"]["rp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setCornerRadiusOrMixed = Module["_PluginSceneNodeCpp_setCornerRadiusOrMixed"] = function() { | |
return (_PluginSceneNodeCpp_setCornerRadiusOrMixed = Module["_PluginSceneNodeCpp_setCornerRadiusOrMixed"] = Module["asm"]["sp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getCornerSmoothing = Module["_PluginSceneNodeCpp_getCornerSmoothing"] = function() { | |
return (_PluginSceneNodeCpp_getCornerSmoothing = Module["_PluginSceneNodeCpp_getCornerSmoothing"] = Module["asm"]["tp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setCornerSmoothing = Module["_PluginSceneNodeCpp_setCornerSmoothing"] = function() { | |
return (_PluginSceneNodeCpp_setCornerSmoothing = Module["_PluginSceneNodeCpp_setCornerSmoothing"] = Module["asm"]["up"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStrokeWeight = Module["_PluginSceneNodeCpp_getStrokeWeight"] = function() { | |
return (_PluginSceneNodeCpp_getStrokeWeight = Module["_PluginSceneNodeCpp_getStrokeWeight"] = Module["asm"]["vp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStrokeWeight = Module["_PluginSceneNodeCpp_setStrokeWeight"] = function() { | |
return (_PluginSceneNodeCpp_setStrokeWeight = Module["_PluginSceneNodeCpp_setStrokeWeight"] = Module["asm"]["wp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getCharacters = Module["_PluginSceneNodeCpp_getCharacters"] = function() { | |
return (_PluginSceneNodeCpp_getCharacters = Module["_PluginSceneNodeCpp_getCharacters"] = Module["asm"]["xp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_hasMissingFont = Module["_PluginSceneNodeCpp_hasMissingFont"] = function() { | |
return (_PluginSceneNodeCpp_hasMissingFont = Module["_PluginSceneNodeCpp_hasMissingFont"] = Module["asm"]["yp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getHasSharedStyleReference = Module["_PluginSceneNodeCpp_getHasSharedStyleReference"] = function() { | |
return (_PluginSceneNodeCpp_getHasSharedStyleReference = Module["_PluginSceneNodeCpp_getHasSharedStyleReference"] = Module["asm"]["zp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getPrototypeStartNodeId = Module["_PluginSceneNodeCpp_getPrototypeStartNodeId"] = function() { | |
return (_PluginSceneNodeCpp_getPrototypeStartNodeId = Module["_PluginSceneNodeCpp_getPrototypeStartNodeId"] = Module["asm"]["Ap"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getSymbolId = Module["_PluginSceneNodeCpp_getSymbolId"] = function() { | |
return (_PluginSceneNodeCpp_getSymbolId = Module["_PluginSceneNodeCpp_getSymbolId"] = Module["asm"]["Bp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getIsInternalOnlyNode = Module["_PluginSceneNodeCpp_getIsInternalOnlyNode"] = function() { | |
return (_PluginSceneNodeCpp_getIsInternalOnlyNode = Module["_PluginSceneNodeCpp_getIsInternalOnlyNode"] = Module["asm"]["Cp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getSize = Module["_PluginSceneNodeCpp_getSize"] = function() { | |
return (_PluginSceneNodeCpp_getSize = Module["_PluginSceneNodeCpp_getSize"] = Module["asm"]["Dp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setSize = Module["_PluginSceneNodeCpp_setSize"] = function() { | |
return (_PluginSceneNodeCpp_setSize = Module["_PluginSceneNodeCpp_setSize"] = Module["asm"]["Ep"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_resizeWithConstraints = Module["_PluginSceneNodeCpp_resizeWithConstraints"] = function() { | |
return (_PluginSceneNodeCpp_resizeWithConstraints = Module["_PluginSceneNodeCpp_resizeWithConstraints"] = Module["asm"]["Fp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_rescale = Module["_PluginSceneNodeCpp_rescale"] = function() { | |
return (_PluginSceneNodeCpp_rescale = Module["_PluginSceneNodeCpp_rescale"] = Module["asm"]["Gp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_swapComponent = Module["_PluginSceneNodeCpp_swapComponent"] = function() { | |
return (_PluginSceneNodeCpp_swapComponent = Module["_PluginSceneNodeCpp_swapComponent"] = Module["asm"]["Hp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_detachInstance = Module["_PluginSceneNodeCpp_detachInstance"] = function() { | |
return (_PluginSceneNodeCpp_detachInstance = Module["_PluginSceneNodeCpp_detachInstance"] = Module["asm"]["Ip"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getProportionsConstrained = Module["_PluginSceneNodeCpp_getProportionsConstrained"] = function() { | |
return (_PluginSceneNodeCpp_getProportionsConstrained = Module["_PluginSceneNodeCpp_getProportionsConstrained"] = Module["asm"]["Jp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setProportionsConstrained = Module["_PluginSceneNodeCpp_setProportionsConstrained"] = function() { | |
return (_PluginSceneNodeCpp_setProportionsConstrained = Module["_PluginSceneNodeCpp_setProportionsConstrained"] = Module["asm"]["Kp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getAbsoluteTransform = Module["_PluginSceneNodeCpp_getAbsoluteTransform"] = function() { | |
return (_PluginSceneNodeCpp_getAbsoluteTransform = Module["_PluginSceneNodeCpp_getAbsoluteTransform"] = Module["asm"]["Lp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRelativeTransform = Module["_PluginSceneNodeCpp_getRelativeTransform"] = function() { | |
return (_PluginSceneNodeCpp_getRelativeTransform = Module["_PluginSceneNodeCpp_getRelativeTransform"] = Module["asm"]["Mp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRelativeTransform = Module["_PluginSceneNodeCpp_setRelativeTransform"] = function() { | |
return (_PluginSceneNodeCpp_setRelativeTransform = Module["_PluginSceneNodeCpp_setRelativeTransform"] = Module["asm"]["Np"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getHorizontalConstraint = Module["_PluginSceneNodeCpp_getHorizontalConstraint"] = function() { | |
return (_PluginSceneNodeCpp_getHorizontalConstraint = Module["_PluginSceneNodeCpp_getHorizontalConstraint"] = Module["asm"]["Op"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setHorizontalConstraint = Module["_PluginSceneNodeCpp_setHorizontalConstraint"] = function() { | |
return (_PluginSceneNodeCpp_setHorizontalConstraint = Module["_PluginSceneNodeCpp_setHorizontalConstraint"] = Module["asm"]["Pp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getVerticalConstraint = Module["_PluginSceneNodeCpp_getVerticalConstraint"] = function() { | |
return (_PluginSceneNodeCpp_getVerticalConstraint = Module["_PluginSceneNodeCpp_getVerticalConstraint"] = Module["asm"]["Qp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setVerticalConstraint = Module["_PluginSceneNodeCpp_setVerticalConstraint"] = function() { | |
return (_PluginSceneNodeCpp_setVerticalConstraint = Module["_PluginSceneNodeCpp_setVerticalConstraint"] = Module["asm"]["Rp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStackSpacing = Module["_PluginSceneNodeCpp_getStackSpacing"] = function() { | |
return (_PluginSceneNodeCpp_getStackSpacing = Module["_PluginSceneNodeCpp_getStackSpacing"] = Module["asm"]["Sp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStackSpacing = Module["_PluginSceneNodeCpp_setStackSpacing"] = function() { | |
return (_PluginSceneNodeCpp_setStackSpacing = Module["_PluginSceneNodeCpp_setStackSpacing"] = Module["asm"]["Tp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStackCounterSizing = Module["_PluginSceneNodeCpp_getStackCounterSizing"] = function() { | |
return (_PluginSceneNodeCpp_getStackCounterSizing = Module["_PluginSceneNodeCpp_getStackCounterSizing"] = Module["asm"]["Up"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStackCounterSizing = Module["_PluginSceneNodeCpp_setStackCounterSizing"] = function() { | |
return (_PluginSceneNodeCpp_setStackCounterSizing = Module["_PluginSceneNodeCpp_setStackCounterSizing"] = Module["asm"]["Vp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStackCounterAlign = Module["_PluginSceneNodeCpp_getStackCounterAlign"] = function() { | |
return (_PluginSceneNodeCpp_getStackCounterAlign = Module["_PluginSceneNodeCpp_getStackCounterAlign"] = Module["asm"]["Wp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStackCounterAlign = Module["_PluginSceneNodeCpp_setStackCounterAlign"] = function() { | |
return (_PluginSceneNodeCpp_setStackCounterAlign = Module["_PluginSceneNodeCpp_setStackCounterAlign"] = Module["asm"]["Xp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStackHorizontalPadding = Module["_PluginSceneNodeCpp_getStackHorizontalPadding"] = function() { | |
return (_PluginSceneNodeCpp_getStackHorizontalPadding = Module["_PluginSceneNodeCpp_getStackHorizontalPadding"] = Module["asm"]["Yp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStackHorizontalPadding = Module["_PluginSceneNodeCpp_setStackHorizontalPadding"] = function() { | |
return (_PluginSceneNodeCpp_setStackHorizontalPadding = Module["_PluginSceneNodeCpp_setStackHorizontalPadding"] = Module["asm"]["Zp"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStackVerticalPadding = Module["_PluginSceneNodeCpp_getStackVerticalPadding"] = function() { | |
return (_PluginSceneNodeCpp_getStackVerticalPadding = Module["_PluginSceneNodeCpp_getStackVerticalPadding"] = Module["asm"]["_p"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStackVerticalPadding = Module["_PluginSceneNodeCpp_setStackVerticalPadding"] = function() { | |
return (_PluginSceneNodeCpp_setStackVerticalPadding = Module["_PluginSceneNodeCpp_setStackVerticalPadding"] = Module["asm"]["$p"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStackLeftPadding = Module["_PluginSceneNodeCpp_getStackLeftPadding"] = function() { | |
return (_PluginSceneNodeCpp_getStackLeftPadding = Module["_PluginSceneNodeCpp_getStackLeftPadding"] = Module["asm"]["aq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStackLeftPadding = Module["_PluginSceneNodeCpp_setStackLeftPadding"] = function() { | |
return (_PluginSceneNodeCpp_setStackLeftPadding = Module["_PluginSceneNodeCpp_setStackLeftPadding"] = Module["asm"]["bq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStackRightPadding = Module["_PluginSceneNodeCpp_getStackRightPadding"] = function() { | |
return (_PluginSceneNodeCpp_getStackRightPadding = Module["_PluginSceneNodeCpp_getStackRightPadding"] = Module["asm"]["cq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStackRightPadding = Module["_PluginSceneNodeCpp_setStackRightPadding"] = function() { | |
return (_PluginSceneNodeCpp_setStackRightPadding = Module["_PluginSceneNodeCpp_setStackRightPadding"] = Module["asm"]["dq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStackTopPadding = Module["_PluginSceneNodeCpp_getStackTopPadding"] = function() { | |
return (_PluginSceneNodeCpp_getStackTopPadding = Module["_PluginSceneNodeCpp_getStackTopPadding"] = Module["asm"]["eq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStackBottomPadding = Module["_PluginSceneNodeCpp_setStackBottomPadding"] = function() { | |
return (_PluginSceneNodeCpp_setStackBottomPadding = Module["_PluginSceneNodeCpp_setStackBottomPadding"] = Module["asm"]["fq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStackBottomPadding = Module["_PluginSceneNodeCpp_getStackBottomPadding"] = function() { | |
return (_PluginSceneNodeCpp_getStackBottomPadding = Module["_PluginSceneNodeCpp_getStackBottomPadding"] = Module["asm"]["gq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStackTopPadding = Module["_PluginSceneNodeCpp_setStackTopPadding"] = function() { | |
return (_PluginSceneNodeCpp_setStackTopPadding = Module["_PluginSceneNodeCpp_setStackTopPadding"] = Module["asm"]["hq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStackPrimarySizing = Module["_PluginSceneNodeCpp_getStackPrimarySizing"] = function() { | |
return (_PluginSceneNodeCpp_getStackPrimarySizing = Module["_PluginSceneNodeCpp_getStackPrimarySizing"] = Module["asm"]["iq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStackPrimarySizing = Module["_PluginSceneNodeCpp_setStackPrimarySizing"] = function() { | |
return (_PluginSceneNodeCpp_setStackPrimarySizing = Module["_PluginSceneNodeCpp_setStackPrimarySizing"] = Module["asm"]["jq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStackChildPrimaryGrow = Module["_PluginSceneNodeCpp_getStackChildPrimaryGrow"] = function() { | |
return (_PluginSceneNodeCpp_getStackChildPrimaryGrow = Module["_PluginSceneNodeCpp_getStackChildPrimaryGrow"] = Module["asm"]["kq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStackChildPrimaryGrow = Module["_PluginSceneNodeCpp_setStackChildPrimaryGrow"] = function() { | |
return (_PluginSceneNodeCpp_setStackChildPrimaryGrow = Module["_PluginSceneNodeCpp_setStackChildPrimaryGrow"] = Module["asm"]["lq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStackPrimaryAlignItems = Module["_PluginSceneNodeCpp_getStackPrimaryAlignItems"] = function() { | |
return (_PluginSceneNodeCpp_getStackPrimaryAlignItems = Module["_PluginSceneNodeCpp_getStackPrimaryAlignItems"] = Module["asm"]["mq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStackPrimaryAlignItems = Module["_PluginSceneNodeCpp_setStackPrimaryAlignItems"] = function() { | |
return (_PluginSceneNodeCpp_setStackPrimaryAlignItems = Module["_PluginSceneNodeCpp_setStackPrimaryAlignItems"] = Module["asm"]["nq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStackCounterAlignItems = Module["_PluginSceneNodeCpp_getStackCounterAlignItems"] = function() { | |
return (_PluginSceneNodeCpp_getStackCounterAlignItems = Module["_PluginSceneNodeCpp_getStackCounterAlignItems"] = Module["asm"]["oq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStackCounterAlignItems = Module["_PluginSceneNodeCpp_setStackCounterAlignItems"] = function() { | |
return (_PluginSceneNodeCpp_setStackCounterAlignItems = Module["_PluginSceneNodeCpp_setStackCounterAlignItems"] = Module["asm"]["pq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRectangleTopLeftCornerRadius = Module["_PluginSceneNodeCpp_getRectangleTopLeftCornerRadius"] = function() { | |
return (_PluginSceneNodeCpp_getRectangleTopLeftCornerRadius = Module["_PluginSceneNodeCpp_getRectangleTopLeftCornerRadius"] = Module["asm"]["qq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRectangleTopLeftCornerRadius = Module["_PluginSceneNodeCpp_setRectangleTopLeftCornerRadius"] = function() { | |
return (_PluginSceneNodeCpp_setRectangleTopLeftCornerRadius = Module["_PluginSceneNodeCpp_setRectangleTopLeftCornerRadius"] = Module["asm"]["rq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRectangleTopRightCornerRadius = Module["_PluginSceneNodeCpp_getRectangleTopRightCornerRadius"] = function() { | |
return (_PluginSceneNodeCpp_getRectangleTopRightCornerRadius = Module["_PluginSceneNodeCpp_getRectangleTopRightCornerRadius"] = Module["asm"]["sq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRectangleTopRightCornerRadius = Module["_PluginSceneNodeCpp_setRectangleTopRightCornerRadius"] = function() { | |
return (_PluginSceneNodeCpp_setRectangleTopRightCornerRadius = Module["_PluginSceneNodeCpp_setRectangleTopRightCornerRadius"] = Module["asm"]["tq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRectangleBottomLeftCornerRadius = Module["_PluginSceneNodeCpp_getRectangleBottomLeftCornerRadius"] = function() { | |
return (_PluginSceneNodeCpp_getRectangleBottomLeftCornerRadius = Module["_PluginSceneNodeCpp_getRectangleBottomLeftCornerRadius"] = Module["asm"]["uq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRectangleBottomLeftCornerRadius = Module["_PluginSceneNodeCpp_setRectangleBottomLeftCornerRadius"] = function() { | |
return (_PluginSceneNodeCpp_setRectangleBottomLeftCornerRadius = Module["_PluginSceneNodeCpp_setRectangleBottomLeftCornerRadius"] = Module["asm"]["vq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRectangleBottomRightCornerRadius = Module["_PluginSceneNodeCpp_getRectangleBottomRightCornerRadius"] = function() { | |
return (_PluginSceneNodeCpp_getRectangleBottomRightCornerRadius = Module["_PluginSceneNodeCpp_getRectangleBottomRightCornerRadius"] = Module["asm"]["wq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRectangleBottomRightCornerRadius = Module["_PluginSceneNodeCpp_setRectangleBottomRightCornerRadius"] = function() { | |
return (_PluginSceneNodeCpp_setRectangleBottomRightCornerRadius = Module["_PluginSceneNodeCpp_setRectangleBottomRightCornerRadius"] = Module["asm"]["xq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRectangleCornerRadiiIndependent = Module["_PluginSceneNodeCpp_getRectangleCornerRadiiIndependent"] = function() { | |
return (_PluginSceneNodeCpp_getRectangleCornerRadiiIndependent = Module["_PluginSceneNodeCpp_getRectangleCornerRadiiIndependent"] = Module["asm"]["yq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRectangleCornerRadiiIndependent = Module["_PluginSceneNodeCpp_setRectangleCornerRadiiIndependent"] = function() { | |
return (_PluginSceneNodeCpp_setRectangleCornerRadiiIndependent = Module["_PluginSceneNodeCpp_setRectangleCornerRadiiIndependent"] = Module["asm"]["zq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRectangleCornerToolIndependent = Module["_PluginSceneNodeCpp_getRectangleCornerToolIndependent"] = function() { | |
return (_PluginSceneNodeCpp_getRectangleCornerToolIndependent = Module["_PluginSceneNodeCpp_getRectangleCornerToolIndependent"] = Module["asm"]["Aq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRectangleCornerToolIndependent = Module["_PluginSceneNodeCpp_setRectangleCornerToolIndependent"] = function() { | |
return (_PluginSceneNodeCpp_setRectangleCornerToolIndependent = Module["_PluginSceneNodeCpp_setRectangleCornerToolIndependent"] = Module["asm"]["Bq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStarInnerScale = Module["_PluginSceneNodeCpp_getStarInnerScale"] = function() { | |
return (_PluginSceneNodeCpp_getStarInnerScale = Module["_PluginSceneNodeCpp_getStarInnerScale"] = Module["asm"]["Cq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStarInnerScale = Module["_PluginSceneNodeCpp_setStarInnerScale"] = function() { | |
return (_PluginSceneNodeCpp_setStarInnerScale = Module["_PluginSceneNodeCpp_setStarInnerScale"] = Module["asm"]["Dq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getCount = Module["_PluginSceneNodeCpp_getCount"] = function() { | |
return (_PluginSceneNodeCpp_getCount = Module["_PluginSceneNodeCpp_getCount"] = Module["asm"]["Eq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setCount = Module["_PluginSceneNodeCpp_setCount"] = function() { | |
return (_PluginSceneNodeCpp_setCount = Module["_PluginSceneNodeCpp_setCount"] = Module["asm"]["Fq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getShapeWithTextType = Module["_PluginSceneNodeCpp_getShapeWithTextType"] = function() { | |
return (_PluginSceneNodeCpp_getShapeWithTextType = Module["_PluginSceneNodeCpp_getShapeWithTextType"] = Module["asm"]["Gq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setShapeWithTextType = Module["_PluginSceneNodeCpp_setShapeWithTextType"] = function() { | |
return (_PluginSceneNodeCpp_setShapeWithTextType = Module["_PluginSceneNodeCpp_setShapeWithTextType"] = Module["asm"]["Hq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getAuthorVisible = Module["_PluginSceneNodeCpp_getAuthorVisible"] = function() { | |
return (_PluginSceneNodeCpp_getAuthorVisible = Module["_PluginSceneNodeCpp_getAuthorVisible"] = Module["asm"]["Iq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setAuthorVisible = Module["_PluginSceneNodeCpp_setAuthorVisible"] = function() { | |
return (_PluginSceneNodeCpp_setAuthorVisible = Module["_PluginSceneNodeCpp_setAuthorVisible"] = Module["asm"]["Jq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getConnectorStart = Module["_PluginSceneNodeCpp_getConnectorStart"] = function() { | |
return (_PluginSceneNodeCpp_getConnectorStart = Module["_PluginSceneNodeCpp_getConnectorStart"] = Module["asm"]["Kq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getConnectorEnd = Module["_PluginSceneNodeCpp_getConnectorEnd"] = function() { | |
return (_PluginSceneNodeCpp_getConnectorEnd = Module["_PluginSceneNodeCpp_getConnectorEnd"] = Module["asm"]["Lq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setConnectorStart = Module["_PluginSceneNodeCpp_setConnectorStart"] = function() { | |
return (_PluginSceneNodeCpp_setConnectorStart = Module["_PluginSceneNodeCpp_setConnectorStart"] = Module["asm"]["Mq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setConnectorEnd = Module["_PluginSceneNodeCpp_setConnectorEnd"] = function() { | |
return (_PluginSceneNodeCpp_setConnectorEnd = Module["_PluginSceneNodeCpp_setConnectorEnd"] = Module["asm"]["Nq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setConnectorStartPosition = Module["_PluginSceneNodeCpp_setConnectorStartPosition"] = function() { | |
return (_PluginSceneNodeCpp_setConnectorStartPosition = Module["_PluginSceneNodeCpp_setConnectorStartPosition"] = Module["asm"]["Oq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setConnectorEndPosition = Module["_PluginSceneNodeCpp_setConnectorEndPosition"] = function() { | |
return (_PluginSceneNodeCpp_setConnectorEndPosition = Module["_PluginSceneNodeCpp_setConnectorEndPosition"] = Module["asm"]["Pq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getAutoRename = Module["_PluginSceneNodeCpp_getAutoRename"] = function() { | |
return (_PluginSceneNodeCpp_getAutoRename = Module["_PluginSceneNodeCpp_getAutoRename"] = Module["asm"]["Qq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setAutoRename = Module["_PluginSceneNodeCpp_setAutoRename"] = function() { | |
return (_PluginSceneNodeCpp_setAutoRename = Module["_PluginSceneNodeCpp_setAutoRename"] = Module["asm"]["Rq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getFillPaints = Module["_PluginSceneNodeCpp_getFillPaints"] = function() { | |
return (_PluginSceneNodeCpp_getFillPaints = Module["_PluginSceneNodeCpp_getFillPaints"] = Module["asm"]["Sq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getInheritedStyle = Module["_PluginSceneNodeCpp_getInheritedStyle"] = function() { | |
return (_PluginSceneNodeCpp_getInheritedStyle = Module["_PluginSceneNodeCpp_getInheritedStyle"] = Module["asm"]["Tq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStrokePaints = Module["_PluginSceneNodeCpp_getStrokePaints"] = function() { | |
return (_PluginSceneNodeCpp_getStrokePaints = Module["_PluginSceneNodeCpp_getStrokePaints"] = Module["asm"]["Uq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStrokePaints = Module["_PluginSceneNodeCpp_setStrokePaints"] = function() { | |
return (_PluginSceneNodeCpp_setStrokePaints = Module["_PluginSceneNodeCpp_setStrokePaints"] = Module["asm"]["Vq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getBackgroundPaints = Module["_PluginSceneNodeCpp_getBackgroundPaints"] = function() { | |
return (_PluginSceneNodeCpp_getBackgroundPaints = Module["_PluginSceneNodeCpp_getBackgroundPaints"] = Module["asm"]["Wq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setBackgroundPaints = Module["_PluginSceneNodeCpp_setBackgroundPaints"] = function() { | |
return (_PluginSceneNodeCpp_setBackgroundPaints = Module["_PluginSceneNodeCpp_setBackgroundPaints"] = Module["asm"]["Xq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getLayoutGrids = Module["_PluginSceneNodeCpp_getLayoutGrids"] = function() { | |
return (_PluginSceneNodeCpp_getLayoutGrids = Module["_PluginSceneNodeCpp_getLayoutGrids"] = Module["asm"]["Yq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setLayoutGrids = Module["_PluginSceneNodeCpp_setLayoutGrids"] = function() { | |
return (_PluginSceneNodeCpp_setLayoutGrids = Module["_PluginSceneNodeCpp_setLayoutGrids"] = Module["asm"]["Zq"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getGuides = Module["_PluginSceneNodeCpp_getGuides"] = function() { | |
return (_PluginSceneNodeCpp_getGuides = Module["_PluginSceneNodeCpp_getGuides"] = Module["asm"]["_q"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setGuides = Module["_PluginSceneNodeCpp_setGuides"] = function() { | |
return (_PluginSceneNodeCpp_setGuides = Module["_PluginSceneNodeCpp_setGuides"] = Module["asm"]["$q"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getEffects = Module["_PluginSceneNodeCpp_getEffects"] = function() { | |
return (_PluginSceneNodeCpp_getEffects = Module["_PluginSceneNodeCpp_getEffects"] = Module["asm"]["ar"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setEffects = Module["_PluginSceneNodeCpp_setEffects"] = function() { | |
return (_PluginSceneNodeCpp_setEffects = Module["_PluginSceneNodeCpp_setEffects"] = Module["asm"]["br"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getBlendMode = Module["_PluginSceneNodeCpp_getBlendMode"] = function() { | |
return (_PluginSceneNodeCpp_getBlendMode = Module["_PluginSceneNodeCpp_getBlendMode"] = Module["asm"]["cr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setBlendMode = Module["_PluginSceneNodeCpp_setBlendMode"] = function() { | |
return (_PluginSceneNodeCpp_setBlendMode = Module["_PluginSceneNodeCpp_setBlendMode"] = Module["asm"]["dr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStrokeAlign = Module["_PluginSceneNodeCpp_getStrokeAlign"] = function() { | |
return (_PluginSceneNodeCpp_getStrokeAlign = Module["_PluginSceneNodeCpp_getStrokeAlign"] = Module["asm"]["er"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStrokeAlign = Module["_PluginSceneNodeCpp_setStrokeAlign"] = function() { | |
return (_PluginSceneNodeCpp_setStrokeAlign = Module["_PluginSceneNodeCpp_setStrokeAlign"] = Module["asm"]["fr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStrokeCap = Module["_PluginSceneNodeCpp_getStrokeCap"] = function() { | |
return (_PluginSceneNodeCpp_getStrokeCap = Module["_PluginSceneNodeCpp_getStrokeCap"] = Module["asm"]["gr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStrokeCapOrMixed = Module["_PluginSceneNodeCpp_getStrokeCapOrMixed"] = function() { | |
return (_PluginSceneNodeCpp_getStrokeCapOrMixed = Module["_PluginSceneNodeCpp_getStrokeCapOrMixed"] = Module["asm"]["hr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStrokeCap = Module["_PluginSceneNodeCpp_setStrokeCap"] = function() { | |
return (_PluginSceneNodeCpp_setStrokeCap = Module["_PluginSceneNodeCpp_setStrokeCap"] = Module["asm"]["ir"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStrokeJoin = Module["_PluginSceneNodeCpp_getStrokeJoin"] = function() { | |
return (_PluginSceneNodeCpp_getStrokeJoin = Module["_PluginSceneNodeCpp_getStrokeJoin"] = Module["asm"]["jr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStrokeJoinOrMixed = Module["_PluginSceneNodeCpp_getStrokeJoinOrMixed"] = function() { | |
return (_PluginSceneNodeCpp_getStrokeJoinOrMixed = Module["_PluginSceneNodeCpp_getStrokeJoinOrMixed"] = Module["asm"]["kr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStrokeJoin = Module["_PluginSceneNodeCpp_setStrokeJoin"] = function() { | |
return (_PluginSceneNodeCpp_setStrokeJoin = Module["_PluginSceneNodeCpp_setStrokeJoin"] = Module["asm"]["lr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getHandleMirroring = Module["_PluginSceneNodeCpp_getHandleMirroring"] = function() { | |
return (_PluginSceneNodeCpp_getHandleMirroring = Module["_PluginSceneNodeCpp_getHandleMirroring"] = Module["asm"]["mr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getHandleMirroringOrMixed = Module["_PluginSceneNodeCpp_getHandleMirroringOrMixed"] = function() { | |
return (_PluginSceneNodeCpp_getHandleMirroringOrMixed = Module["_PluginSceneNodeCpp_getHandleMirroringOrMixed"] = Module["asm"]["nr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setHandleMirroring = Module["_PluginSceneNodeCpp_setHandleMirroring"] = function() { | |
return (_PluginSceneNodeCpp_setHandleMirroring = Module["_PluginSceneNodeCpp_setHandleMirroring"] = Module["asm"]["or"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStrokeMiterLimit = Module["_PluginSceneNodeCpp_getStrokeMiterLimit"] = function() { | |
return (_PluginSceneNodeCpp_getStrokeMiterLimit = Module["_PluginSceneNodeCpp_getStrokeMiterLimit"] = Module["asm"]["pr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setStrokeMiterLimit = Module["_PluginSceneNodeCpp_setStrokeMiterLimit"] = function() { | |
return (_PluginSceneNodeCpp_setStrokeMiterLimit = Module["_PluginSceneNodeCpp_setStrokeMiterLimit"] = Module["asm"]["qr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getDashPattern = Module["_PluginSceneNodeCpp_getDashPattern"] = function() { | |
return (_PluginSceneNodeCpp_getDashPattern = Module["_PluginSceneNodeCpp_getDashPattern"] = Module["asm"]["rr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setDashPattern = Module["_PluginSceneNodeCpp_setDashPattern"] = function() { | |
return (_PluginSceneNodeCpp_setDashPattern = Module["_PluginSceneNodeCpp_setDashPattern"] = Module["asm"]["sr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getFontSize = Module["_PluginSceneNodeCpp_getFontSize"] = function() { | |
return (_PluginSceneNodeCpp_getFontSize = Module["_PluginSceneNodeCpp_getFontSize"] = Module["asm"]["tr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getParagraphIndent = Module["_PluginSceneNodeCpp_getParagraphIndent"] = function() { | |
return (_PluginSceneNodeCpp_getParagraphIndent = Module["_PluginSceneNodeCpp_getParagraphIndent"] = Module["asm"]["ur"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setParagraphIndent = Module["_PluginSceneNodeCpp_setParagraphIndent"] = function() { | |
return (_PluginSceneNodeCpp_setParagraphIndent = Module["_PluginSceneNodeCpp_setParagraphIndent"] = Module["asm"]["vr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getParagraphSpacing = Module["_PluginSceneNodeCpp_getParagraphSpacing"] = function() { | |
return (_PluginSceneNodeCpp_getParagraphSpacing = Module["_PluginSceneNodeCpp_getParagraphSpacing"] = Module["asm"]["wr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setParagraphSpacing = Module["_PluginSceneNodeCpp_setParagraphSpacing"] = function() { | |
return (_PluginSceneNodeCpp_setParagraphSpacing = Module["_PluginSceneNodeCpp_setParagraphSpacing"] = Module["asm"]["xr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getListSpacing = Module["_PluginSceneNodeCpp_getListSpacing"] = function() { | |
return (_PluginSceneNodeCpp_getListSpacing = Module["_PluginSceneNodeCpp_getListSpacing"] = Module["asm"]["yr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setListSpacing = Module["_PluginSceneNodeCpp_setListSpacing"] = function() { | |
return (_PluginSceneNodeCpp_setListSpacing = Module["_PluginSceneNodeCpp_setListSpacing"] = Module["asm"]["zr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getTextAlignHorizontal = Module["_PluginSceneNodeCpp_getTextAlignHorizontal"] = function() { | |
return (_PluginSceneNodeCpp_getTextAlignHorizontal = Module["_PluginSceneNodeCpp_getTextAlignHorizontal"] = Module["asm"]["Ar"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setTextAlignHorizontal = Module["_PluginSceneNodeCpp_setTextAlignHorizontal"] = function() { | |
return (_PluginSceneNodeCpp_setTextAlignHorizontal = Module["_PluginSceneNodeCpp_setTextAlignHorizontal"] = Module["asm"]["Br"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getTextAlignVertical = Module["_PluginSceneNodeCpp_getTextAlignVertical"] = function() { | |
return (_PluginSceneNodeCpp_getTextAlignVertical = Module["_PluginSceneNodeCpp_getTextAlignVertical"] = Module["asm"]["Cr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setTextAlignVertical = Module["_PluginSceneNodeCpp_setTextAlignVertical"] = function() { | |
return (_PluginSceneNodeCpp_setTextAlignVertical = Module["_PluginSceneNodeCpp_setTextAlignVertical"] = Module["asm"]["Dr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getTextDecoration = Module["_PluginSceneNodeCpp_getTextDecoration"] = function() { | |
return (_PluginSceneNodeCpp_getTextDecoration = Module["_PluginSceneNodeCpp_getTextDecoration"] = Module["asm"]["Er"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getTextCase = Module["_PluginSceneNodeCpp_getTextCase"] = function() { | |
return (_PluginSceneNodeCpp_getTextCase = Module["_PluginSceneNodeCpp_getTextCase"] = Module["asm"]["Fr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getTextAutoResize = Module["_PluginSceneNodeCpp_getTextAutoResize"] = function() { | |
return (_PluginSceneNodeCpp_getTextAutoResize = Module["_PluginSceneNodeCpp_getTextAutoResize"] = Module["asm"]["Gr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setTextAutoResize = Module["_PluginSceneNodeCpp_setTextAutoResize"] = function() { | |
return (_PluginSceneNodeCpp_setTextAutoResize = Module["_PluginSceneNodeCpp_setTextAutoResize"] = Module["asm"]["Hr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getLetterSpacing = Module["_PluginSceneNodeCpp_getLetterSpacing"] = function() { | |
return (_PluginSceneNodeCpp_getLetterSpacing = Module["_PluginSceneNodeCpp_getLetterSpacing"] = Module["asm"]["Ir"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getArcData = Module["_PluginSceneNodeCpp_getArcData"] = function() { | |
return (_PluginSceneNodeCpp_getArcData = Module["_PluginSceneNodeCpp_getArcData"] = Module["asm"]["Jr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setArcData = Module["_PluginSceneNodeCpp_setArcData"] = function() { | |
return (_PluginSceneNodeCpp_setArcData = Module["_PluginSceneNodeCpp_setArcData"] = Module["asm"]["Kr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getVectorData = Module["_PluginSceneNodeCpp_getVectorData"] = function() { | |
return (_PluginSceneNodeCpp_getVectorData = Module["_PluginSceneNodeCpp_getVectorData"] = Module["asm"]["Lr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setVectorData = Module["_PluginSceneNodeCpp_setVectorData"] = function() { | |
return (_PluginSceneNodeCpp_setVectorData = Module["_PluginSceneNodeCpp_setVectorData"] = Module["asm"]["Mr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getPluginData = Module["_PluginSceneNodeCpp_getPluginData"] = function() { | |
return (_PluginSceneNodeCpp_getPluginData = Module["_PluginSceneNodeCpp_getPluginData"] = Module["asm"]["Nr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setPluginData = Module["_PluginSceneNodeCpp_setPluginData"] = function() { | |
return (_PluginSceneNodeCpp_setPluginData = Module["_PluginSceneNodeCpp_setPluginData"] = Module["asm"]["Or"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getSharedPluginData = Module["_PluginSceneNodeCpp_getSharedPluginData"] = function() { | |
return (_PluginSceneNodeCpp_getSharedPluginData = Module["_PluginSceneNodeCpp_getSharedPluginData"] = Module["asm"]["Pr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setSharedPluginData = Module["_PluginSceneNodeCpp_setSharedPluginData"] = function() { | |
return (_PluginSceneNodeCpp_setSharedPluginData = Module["_PluginSceneNodeCpp_setSharedPluginData"] = Module["asm"]["Qr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setPluginRelaunchData = Module["_PluginSceneNodeCpp_setPluginRelaunchData"] = function() { | |
return (_PluginSceneNodeCpp_setPluginRelaunchData = Module["_PluginSceneNodeCpp_setPluginRelaunchData"] = Module["asm"]["Rr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getPrototypeInteractions = Module["_PluginSceneNodeCpp_getPrototypeInteractions"] = function() { | |
return (_PluginSceneNodeCpp_getPrototypeInteractions = Module["_PluginSceneNodeCpp_getPrototypeInteractions"] = Module["asm"]["Sr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setPrototypeInteractions = Module["_PluginSceneNodeCpp_setPrototypeInteractions"] = function() { | |
return (_PluginSceneNodeCpp_setPrototypeInteractions = Module["_PluginSceneNodeCpp_setPrototypeInteractions"] = Module["asm"]["Tr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getOverlayPositionType = Module["_PluginSceneNodeCpp_getOverlayPositionType"] = function() { | |
return (_PluginSceneNodeCpp_getOverlayPositionType = Module["_PluginSceneNodeCpp_getOverlayPositionType"] = Module["asm"]["Ur"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getOverlayBackground = Module["_PluginSceneNodeCpp_getOverlayBackground"] = function() { | |
return (_PluginSceneNodeCpp_getOverlayBackground = Module["_PluginSceneNodeCpp_getOverlayBackground"] = Module["asm"]["Vr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getOverlayBackgroundInteraction = Module["_PluginSceneNodeCpp_getOverlayBackgroundInteraction"] = function() { | |
return (_PluginSceneNodeCpp_getOverlayBackgroundInteraction = Module["_PluginSceneNodeCpp_getOverlayBackgroundInteraction"] = Module["asm"]["Wr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRangeFontSize = Module["_PluginSceneNodeCpp_getRangeFontSize"] = function() { | |
return (_PluginSceneNodeCpp_getRangeFontSize = Module["_PluginSceneNodeCpp_getRangeFontSize"] = Module["asm"]["Xr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRangeFontSize = Module["_PluginSceneNodeCpp_setRangeFontSize"] = function() { | |
return (_PluginSceneNodeCpp_setRangeFontSize = Module["_PluginSceneNodeCpp_setRangeFontSize"] = Module["asm"]["Yr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRangeFontName = Module["_PluginSceneNodeCpp_getRangeFontName"] = function() { | |
return (_PluginSceneNodeCpp_getRangeFontName = Module["_PluginSceneNodeCpp_getRangeFontName"] = Module["asm"]["Zr"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRangeFontName = Module["_PluginSceneNodeCpp_setRangeFontName"] = function() { | |
return (_PluginSceneNodeCpp_setRangeFontName = Module["_PluginSceneNodeCpp_setRangeFontName"] = Module["asm"]["_r"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRangeTextCase = Module["_PluginSceneNodeCpp_getRangeTextCase"] = function() { | |
return (_PluginSceneNodeCpp_getRangeTextCase = Module["_PluginSceneNodeCpp_getRangeTextCase"] = Module["asm"]["$r"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRangeTextCase = Module["_PluginSceneNodeCpp_setRangeTextCase"] = function() { | |
return (_PluginSceneNodeCpp_setRangeTextCase = Module["_PluginSceneNodeCpp_setRangeTextCase"] = Module["asm"]["as"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRangeTextDecoration = Module["_PluginSceneNodeCpp_getRangeTextDecoration"] = function() { | |
return (_PluginSceneNodeCpp_getRangeTextDecoration = Module["_PluginSceneNodeCpp_getRangeTextDecoration"] = Module["asm"]["bs"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRangeTextDecoration = Module["_PluginSceneNodeCpp_setRangeTextDecoration"] = function() { | |
return (_PluginSceneNodeCpp_setRangeTextDecoration = Module["_PluginSceneNodeCpp_setRangeTextDecoration"] = Module["asm"]["cs"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRangeLetterSpacing = Module["_PluginSceneNodeCpp_getRangeLetterSpacing"] = function() { | |
return (_PluginSceneNodeCpp_getRangeLetterSpacing = Module["_PluginSceneNodeCpp_getRangeLetterSpacing"] = Module["asm"]["ds"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRangeLetterSpacing = Module["_PluginSceneNodeCpp_setRangeLetterSpacing"] = function() { | |
return (_PluginSceneNodeCpp_setRangeLetterSpacing = Module["_PluginSceneNodeCpp_setRangeLetterSpacing"] = Module["asm"]["es"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRangeLineHeight = Module["_PluginSceneNodeCpp_getRangeLineHeight"] = function() { | |
return (_PluginSceneNodeCpp_getRangeLineHeight = Module["_PluginSceneNodeCpp_getRangeLineHeight"] = Module["asm"]["fs"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRangeLineHeight = Module["_PluginSceneNodeCpp_setRangeLineHeight"] = function() { | |
return (_PluginSceneNodeCpp_setRangeLineHeight = Module["_PluginSceneNodeCpp_setRangeLineHeight"] = Module["asm"]["gs"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRangeFillPaints = Module["_PluginSceneNodeCpp_getRangeFillPaints"] = function() { | |
return (_PluginSceneNodeCpp_getRangeFillPaints = Module["_PluginSceneNodeCpp_getRangeFillPaints"] = Module["asm"]["hs"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRangeFillPaints = Module["_PluginSceneNodeCpp_setRangeFillPaints"] = function() { | |
return (_PluginSceneNodeCpp_setRangeFillPaints = Module["_PluginSceneNodeCpp_setRangeFillPaints"] = Module["asm"]["is"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRangeInheritedStyle = Module["_PluginSceneNodeCpp_getRangeInheritedStyle"] = function() { | |
return (_PluginSceneNodeCpp_getRangeInheritedStyle = Module["_PluginSceneNodeCpp_getRangeInheritedStyle"] = Module["asm"]["js"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRangeInheritedStyle = Module["_PluginSceneNodeCpp_setRangeInheritedStyle"] = function() { | |
return (_PluginSceneNodeCpp_setRangeInheritedStyle = Module["_PluginSceneNodeCpp_setRangeInheritedStyle"] = Module["asm"]["ks"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRangeLineType = Module["_PluginSceneNodeCpp_getRangeLineType"] = function() { | |
return (_PluginSceneNodeCpp_getRangeLineType = Module["_PluginSceneNodeCpp_getRangeLineType"] = Module["asm"]["ls"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRangeLineType = Module["_PluginSceneNodeCpp_setRangeLineType"] = function() { | |
return (_PluginSceneNodeCpp_setRangeLineType = Module["_PluginSceneNodeCpp_setRangeLineType"] = Module["asm"]["ms"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRangeIndentation = Module["_PluginSceneNodeCpp_getRangeIndentation"] = function() { | |
return (_PluginSceneNodeCpp_getRangeIndentation = Module["_PluginSceneNodeCpp_getRangeIndentation"] = Module["asm"]["ns"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRangeIndentation = Module["_PluginSceneNodeCpp_setRangeIndentation"] = function() { | |
return (_PluginSceneNodeCpp_setRangeIndentation = Module["_PluginSceneNodeCpp_setRangeIndentation"] = Module["asm"]["os"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getRangeHyperlink = Module["_PluginSceneNodeCpp_getRangeHyperlink"] = function() { | |
return (_PluginSceneNodeCpp_getRangeHyperlink = Module["_PluginSceneNodeCpp_getRangeHyperlink"] = Module["asm"]["ps"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setRangeHyperlink = Module["_PluginSceneNodeCpp_setRangeHyperlink"] = function() { | |
return (_PluginSceneNodeCpp_setRangeHyperlink = Module["_PluginSceneNodeCpp_setRangeHyperlink"] = Module["asm"]["qs"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_spliceCharacters = Module["_PluginSceneNodeCpp_spliceCharacters"] = function() { | |
return (_PluginSceneNodeCpp_spliceCharacters = Module["_PluginSceneNodeCpp_spliceCharacters"] = Module["asm"]["rs"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getSharedSymbolVersion = Module["_PluginSceneNodeCpp_getSharedSymbolVersion"] = function() { | |
return (_PluginSceneNodeCpp_getSharedSymbolVersion = Module["_PluginSceneNodeCpp_getSharedSymbolVersion"] = Module["asm"]["ss"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getSharedStateGroupVersion = Module["_PluginSceneNodeCpp_getSharedStateGroupVersion"] = function() { | |
return (_PluginSceneNodeCpp_getSharedStateGroupVersion = Module["_PluginSceneNodeCpp_getSharedStateGroupVersion"] = Module["asm"]["ts"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getStyleVersion = Module["_PluginSceneNodeCpp_getStyleVersion"] = function() { | |
return (_PluginSceneNodeCpp_getStyleVersion = Module["_PluginSceneNodeCpp_getStyleVersion"] = Module["asm"]["us"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getImmutableFrameText = Module["_PluginSceneNodeCpp_getImmutableFrameText"] = function() { | |
return (_PluginSceneNodeCpp_getImmutableFrameText = Module["_PluginSceneNodeCpp_getImmutableFrameText"] = Module["asm"]["vs"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getImmutableFrameLabel = Module["_PluginSceneNodeCpp_getImmutableFrameLabel"] = function() { | |
return (_PluginSceneNodeCpp_getImmutableFrameLabel = Module["_PluginSceneNodeCpp_getImmutableFrameLabel"] = Module["asm"]["ws"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getConnectorLineType = Module["_PluginSceneNodeCpp_getConnectorLineType"] = function() { | |
return (_PluginSceneNodeCpp_getConnectorLineType = Module["_PluginSceneNodeCpp_getConnectorLineType"] = Module["asm"]["xs"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setConnectorLineType = Module["_PluginSceneNodeCpp_setConnectorLineType"] = function() { | |
return (_PluginSceneNodeCpp_setConnectorLineType = Module["_PluginSceneNodeCpp_setConnectorLineType"] = Module["asm"]["ys"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_getWidgetEvents = Module["_PluginSceneNodeCpp_getWidgetEvents"] = function() { | |
return (_PluginSceneNodeCpp_getWidgetEvents = Module["_PluginSceneNodeCpp_getWidgetEvents"] = Module["asm"]["zs"]).apply(null, arguments) | |
}; | |
var _PluginSceneNodeCpp_setWidgetEvents = Module["_PluginSceneNodeCpp_setWidgetEvents"] = function() { | |
return (_PluginSceneNodeCpp_setWidgetEvents = Module["_PluginSceneNodeCpp_setWidgetEvents"] = Module["asm"]["As"]).apply(null, arguments) | |
}; | |
var _FullscreenPerfMetrics_getRecentInteractions = Module["_FullscreenPerfMetrics_getRecentInteractions"] = function() { | |
return (_FullscreenPerfMetrics_getRecentInteractions = Module["_FullscreenPerfMetrics_getRecentInteractions"] = Module["asm"]["Bs"]).apply(null, arguments) | |
}; | |
var _FullscreenPerfMetrics_getSlowInteractions = Module["_FullscreenPerfMetrics_getSlowInteractions"] = function() { | |
return (_FullscreenPerfMetrics_getSlowInteractions = Module["_FullscreenPerfMetrics_getSlowInteractions"] = Module["asm"]["Cs"]).apply(null, arguments) | |
}; | |
var _FullscreenPerfMetrics_clearSlowInteractions = Module["_FullscreenPerfMetrics_clearSlowInteractions"] = function() { | |
return (_FullscreenPerfMetrics_clearSlowInteractions = Module["_FullscreenPerfMetrics_clearSlowInteractions"] = Module["asm"]["Ds"]).apply(null, arguments) | |
}; | |
var _FullscreenPerfMetrics_getNodeTypeHistogram = Module["_FullscreenPerfMetrics_getNodeTypeHistogram"] = function() { | |
return (_FullscreenPerfMetrics_getNodeTypeHistogram = Module["_FullscreenPerfMetrics_getNodeTypeHistogram"] = Module["asm"]["Es"]).apply(null, arguments) | |
}; | |
var _FullscreenPerfMetrics_clearNodeTypeHistogram = Module["_FullscreenPerfMetrics_clearNodeTypeHistogram"] = function() { | |
return (_FullscreenPerfMetrics_clearNodeTypeHistogram = Module["_FullscreenPerfMetrics_clearNodeTypeHistogram"] = Module["asm"]["Fs"]).apply(null, arguments) | |
}; | |
var _FullscreenPerfMetrics_getDeviceInfo = Module["_FullscreenPerfMetrics_getDeviceInfo"] = function() { | |
return (_FullscreenPerfMetrics_getDeviceInfo = Module["_FullscreenPerfMetrics_getDeviceInfo"] = Module["asm"]["Gs"]).apply(null, arguments) | |
}; | |
var _FullscreenPerfMetrics_getFileNodeCount = Module["_FullscreenPerfMetrics_getFileNodeCount"] = function() { | |
return (_FullscreenPerfMetrics_getFileNodeCount = Module["_FullscreenPerfMetrics_getFileNodeCount"] = Module["asm"]["Hs"]).apply(null, arguments) | |
}; | |
var _FullscreenPerfMetrics_getMpMsgNodeChangesCount = Module["_FullscreenPerfMetrics_getMpMsgNodeChangesCount"] = function() { | |
return (_FullscreenPerfMetrics_getMpMsgNodeChangesCount = Module["_FullscreenPerfMetrics_getMpMsgNodeChangesCount"] = Module["asm"]["Is"]).apply(null, arguments) | |
}; | |
var _FullscreenPerfMetrics_getMpMsgUserChangesCount = Module["_FullscreenPerfMetrics_getMpMsgUserChangesCount"] = function() { | |
return (_FullscreenPerfMetrics_getMpMsgUserChangesCount = Module["_FullscreenPerfMetrics_getMpMsgUserChangesCount"] = Module["asm"]["Js"]).apply(null, arguments) | |
}; | |
var _FullscreenPerfMetrics_getJoinedTime = Module["_FullscreenPerfMetrics_getJoinedTime"] = function() { | |
return (_FullscreenPerfMetrics_getJoinedTime = Module["_FullscreenPerfMetrics_getJoinedTime"] = Module["asm"]["Ks"]).apply(null, arguments) | |
}; | |
var _FullscreenPerfMetrics_getSelectedNodeCount = Module["_FullscreenPerfMetrics_getSelectedNodeCount"] = function() { | |
return (_FullscreenPerfMetrics_getSelectedNodeCount = Module["_FullscreenPerfMetrics_getSelectedNodeCount"] = Module["asm"]["Ls"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_updatePaint = Module["_SelectionPaintHelpers_updatePaint"] = function() { | |
return (_SelectionPaintHelpers_updatePaint = Module["_SelectionPaintHelpers_updatePaint"] = Module["asm"]["Ms"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_updateStyle = Module["_SelectionPaintHelpers_updateStyle"] = function() { | |
return (_SelectionPaintHelpers_updateStyle = Module["_SelectionPaintHelpers_updateStyle"] = Module["asm"]["Ns"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_detachStyle = Module["_SelectionPaintHelpers_detachStyle"] = function() { | |
return (_SelectionPaintHelpers_detachStyle = Module["_SelectionPaintHelpers_detachStyle"] = Module["asm"]["Os"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_paintDataNodesInPaint = Module["_SelectionPaintHelpers_paintDataNodesInPaint"] = function() { | |
return (_SelectionPaintHelpers_paintDataNodesInPaint = Module["_SelectionPaintHelpers_paintDataNodesInPaint"] = Module["asm"]["Ps"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_createStylesFromPaintDatas = Module["_SelectionPaintHelpers_createStylesFromPaintDatas"] = function() { | |
return (_SelectionPaintHelpers_createStylesFromPaintDatas = Module["_SelectionPaintHelpers_createStylesFromPaintDatas"] = Module["asm"]["Qs"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_applyStyleToPaintDatas = Module["_SelectionPaintHelpers_applyStyleToPaintDatas"] = function() { | |
return (_SelectionPaintHelpers_applyStyleToPaintDatas = Module["_SelectionPaintHelpers_applyStyleToPaintDatas"] = Module["asm"]["Rs"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_selectOnlySamePaint = Module["_SelectionPaintHelpers_selectOnlySamePaint"] = function() { | |
return (_SelectionPaintHelpers_selectOnlySamePaint = Module["_SelectionPaintHelpers_selectOnlySamePaint"] = Module["asm"]["Ss"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_selectOnlySameStyle = Module["_SelectionPaintHelpers_selectOnlySameStyle"] = function() { | |
return (_SelectionPaintHelpers_selectOnlySameStyle = Module["_SelectionPaintHelpers_selectOnlySameStyle"] = Module["asm"]["Ts"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_selectConflictingWithPaint = Module["_SelectionPaintHelpers_selectConflictingWithPaint"] = function() { | |
return (_SelectionPaintHelpers_selectConflictingWithPaint = Module["_SelectionPaintHelpers_selectConflictingWithPaint"] = Module["asm"]["Us"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_setIsPaintPickerOpen = Module["_SelectionPaintHelpers_setIsPaintPickerOpen"] = function() { | |
return (_SelectionPaintHelpers_setIsPaintPickerOpen = Module["_SelectionPaintHelpers_setIsPaintPickerOpen"] = Module["asm"]["Vs"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_setIsPaintFocused = Module["_SelectionPaintHelpers_setIsPaintFocused"] = function() { | |
return (_SelectionPaintHelpers_setIsPaintFocused = Module["_SelectionPaintHelpers_setIsPaintFocused"] = Module["asm"]["Ws"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_setIsPaintOpacityScrubbing = Module["_SelectionPaintHelpers_setIsPaintOpacityScrubbing"] = function() { | |
return (_SelectionPaintHelpers_setIsPaintOpacityScrubbing = Module["_SelectionPaintHelpers_setIsPaintOpacityScrubbing"] = Module["asm"]["Xs"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_setIsStylePickerOpen = Module["_SelectionPaintHelpers_setIsStylePickerOpen"] = function() { | |
return (_SelectionPaintHelpers_setIsStylePickerOpen = Module["_SelectionPaintHelpers_setIsStylePickerOpen"] = Module["asm"]["Ys"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_ignoreLimitWhenCollectingPaints = Module["_SelectionPaintHelpers_ignoreLimitWhenCollectingPaints"] = function() { | |
return (_SelectionPaintHelpers_ignoreLimitWhenCollectingPaints = Module["_SelectionPaintHelpers_ignoreLimitWhenCollectingPaints"] = Module["asm"]["Zs"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_setForcedLimit = Module["_SelectionPaintHelpers_setForcedLimit"] = function() { | |
return (_SelectionPaintHelpers_setForcedLimit = Module["_SelectionPaintHelpers_setForcedLimit"] = Module["asm"]["_s"]).apply(null, arguments) | |
}; | |
var _SelectionPaintHelpers_removeForcedLimit = Module["_SelectionPaintHelpers_removeForcedLimit"] = function() { | |
return (_SelectionPaintHelpers_removeForcedLimit = Module["_SelectionPaintHelpers_removeForcedLimit"] = Module["asm"]["$s"]).apply(null, arguments) | |
}; | |
var _Prototype_createScene = Module["_Prototype_createScene"] = function() { | |
return (_Prototype_createScene = Module["_Prototype_createScene"] = Module["asm"]["at"]).apply(null, arguments) | |
}; | |
var _Prototype_reset = Module["_Prototype_reset"] = function() { | |
return (_Prototype_reset = Module["_Prototype_reset"] = Module["asm"]["bt"]).apply(null, arguments) | |
}; | |
var _Prototype_applyNodeChangesAndGetDerivedData = Module["_Prototype_applyNodeChangesAndGetDerivedData"] = function() { | |
return (_Prototype_applyNodeChangesAndGetDerivedData = Module["_Prototype_applyNodeChangesAndGetDerivedData"] = Module["asm"]["ct"]).apply(null, arguments) | |
}; | |
var _Prototype_handleSceneDidCompleteInitialLoad = Module["_Prototype_handleSceneDidCompleteInitialLoad"] = function() { | |
return (_Prototype_handleSceneDidCompleteInitialLoad = Module["_Prototype_handleSceneDidCompleteInitialLoad"] = Module["asm"]["dt"]).apply(null, arguments) | |
}; | |
var _Prototype_getNodeChangesForSwap = Module["_Prototype_getNodeChangesForSwap"] = function() { | |
return (_Prototype_getNodeChangesForSwap = Module["_Prototype_getNodeChangesForSwap"] = Module["asm"]["et"]).apply(null, arguments) | |
}; | |
var _Prototype_shouldDisallowSwap = Module["_Prototype_shouldDisallowSwap"] = function() { | |
return (_Prototype_shouldDisallowSwap = Module["_Prototype_shouldDisallowSwap"] = Module["asm"]["ft"]).apply(null, arguments) | |
}; | |
var _Prototype_getMissingOrLocalFonts = Module["_Prototype_getMissingOrLocalFonts"] = function() { | |
return (_Prototype_getMissingOrLocalFonts = Module["_Prototype_getMissingOrLocalFonts"] = Module["asm"]["gt"]).apply(null, arguments) | |
}; | |
var _Prototype_resetLocalChangesAndGetNodeChanges = Module["_Prototype_resetLocalChangesAndGetNodeChanges"] = function() { | |
return (_Prototype_resetLocalChangesAndGetNodeChanges = Module["_Prototype_resetLocalChangesAndGetNodeChanges"] = Module["asm"]["ht"]).apply(null, arguments) | |
}; | |
var _Prototype_updateFontList = Module["_Prototype_updateFontList"] = function() { | |
return (_Prototype_updateFontList = Module["_Prototype_updateFontList"] = Module["asm"]["it"]).apply(null, arguments) | |
}; | |
var _malloc = Module["_malloc"] = function() { | |
return (_malloc = Module["_malloc"] = Module["asm"]["jt"]).apply(null, arguments) | |
}; | |
var ___errno_location = Module["___errno_location"] = function() { | |
return (___errno_location = Module["___errno_location"] = Module["asm"]["kt"]).apply(null, arguments) | |
}; | |
var _Device_setContextLost = Module["_Device_setContextLost"] = function() { | |
return (_Device_setContextLost = Module["_Device_setContextLost"] = Module["asm"]["lt"]).apply(null, arguments) | |
}; | |
var _FileProxy_blobLoadingSucceeded = Module["_FileProxy_blobLoadingSucceeded"] = function() { | |
return (_FileProxy_blobLoadingSucceeded = Module["_FileProxy_blobLoadingSucceeded"] = Module["asm"]["mt"]).apply(null, arguments) | |
}; | |
var _FileProxy_blobLoadingFailed = Module["_FileProxy_blobLoadingFailed"] = function() { | |
return (_FileProxy_blobLoadingFailed = Module["_FileProxy_blobLoadingFailed"] = Module["asm"]["nt"]).apply(null, arguments) | |
}; | |
var _ImageIO_decodeDone = Module["_ImageIO_decodeDone"] = function() { | |
return (_ImageIO_decodeDone = Module["_ImageIO_decodeDone"] = Module["asm"]["ot"]).apply(null, arguments) | |
}; | |
var _ImageIO_encodeResult = Module["_ImageIO_encodeResult"] = function() { | |
return (_ImageIO_encodeResult = Module["_ImageIO_encodeResult"] = Module["asm"]["pt"]).apply(null, arguments) | |
}; | |
var _IndirectBuffer_newForJS = Module["_IndirectBuffer_newForJS"] = function() { | |
return (_IndirectBuffer_newForJS = Module["_IndirectBuffer_newForJS"] = Module["asm"]["qt"]).apply(null, arguments) | |
}; | |
var _IndirectBuffer_deleteForJS = Module["_IndirectBuffer_deleteForJS"] = function() { | |
return (_IndirectBuffer_deleteForJS = Module["_IndirectBuffer_deleteForJS"] = Module["asm"]["rt"]).apply(null, arguments) | |
}; | |
var _IndirectBuffer_resizeForJS = Module["_IndirectBuffer_resizeForJS"] = function() { | |
return (_IndirectBuffer_resizeForJS = Module["_IndirectBuffer_resizeForJS"] = Module["asm"]["st"]).apply(null, arguments) | |
}; | |
var _IndirectBuffer_handleForJS = Module["_IndirectBuffer_handleForJS"] = function() { | |
return (_IndirectBuffer_handleForJS = Module["_IndirectBuffer_handleForJS"] = Module["asm"]["tt"]).apply(null, arguments) | |
}; | |
var _JsValue_destroy = Module["_JsValue_destroy"] = function() { | |
return (_JsValue_destroy = Module["_JsValue_destroy"] = Module["asm"]["ut"]).apply(null, arguments) | |
}; | |
var _JsValue_callCppCallback = Module["_JsValue_callCppCallback"] = function() { | |
return (_JsValue_callCppCallback = Module["_JsValue_callCppCallback"] = Module["asm"]["vt"]).apply(null, arguments) | |
}; | |
var _Zip_completeRead = Module["_Zip_completeRead"] = function() { | |
return (_Zip_completeRead = Module["_Zip_completeRead"] = Module["asm"]["wt"]).apply(null, arguments) | |
}; | |
var _Zip_completeWrite = Module["_Zip_completeWrite"] = function() { | |
return (_Zip_completeWrite = Module["_Zip_completeWrite"] = Module["asm"]["xt"]).apply(null, arguments) | |
}; | |
var _FullscreenApp_mallocHighWaterMark = Module["_FullscreenApp_mallocHighWaterMark"] = function() { | |
return (_FullscreenApp_mallocHighWaterMark = Module["_FullscreenApp_mallocHighWaterMark"] = Module["asm"]["yt"]).apply(null, arguments) | |
}; | |
var _FullscreenApp_nodePoolCacheMissCount = Module["_FullscreenApp_nodePoolCacheMissCount"] = function() { | |
return (_FullscreenApp_nodePoolCacheMissCount = Module["_FullscreenApp_nodePoolCacheMissCount"] = Module["asm"]["zt"]).apply(null, arguments) | |
}; | |
var _FullscreenApp_nodePoolResidentCount = Module["_FullscreenApp_nodePoolResidentCount"] = function() { | |
return (_FullscreenApp_nodePoolResidentCount = Module["_FullscreenApp_nodePoolResidentCount"] = Module["asm"]["At"]).apply(null, arguments) | |
}; | |
var _FullscreenApp_nodePoolResidentBytes = Module["_FullscreenApp_nodePoolResidentBytes"] = function() { | |
return (_FullscreenApp_nodePoolResidentBytes = Module["_FullscreenApp_nodePoolResidentBytes"] = Module["asm"]["Bt"]).apply(null, arguments) | |
}; | |
var _FullscreenApp_nodePoolActiveCount = Module["_FullscreenApp_nodePoolActiveCount"] = function() { | |
return (_FullscreenApp_nodePoolActiveCount = Module["_FullscreenApp_nodePoolActiveCount"] = Module["asm"]["Ct"]).apply(null, arguments) | |
}; | |
var _FullscreenApp_setOnline = Module["_FullscreenApp_setOnline"] = function() { | |
return (_FullscreenApp_setOnline = Module["_FullscreenApp_setOnline"] = Module["asm"]["Dt"]).apply(null, arguments) | |
}; | |
var _Fullscreen_reportContextLost = Module["_Fullscreen_reportContextLost"] = function() { | |
return (_Fullscreen_reportContextLost = Module["_Fullscreen_reportContextLost"] = Module["asm"]["Et"]).apply(null, arguments) | |
}; | |
var _Fullscreen_reportContextRestored = Module["_Fullscreen_reportContextRestored"] = function() { | |
return (_Fullscreen_reportContextRestored = Module["_Fullscreen_reportContextRestored"] = Module["asm"]["Ft"]).apply(null, arguments) | |
}; | |
var _Viewport_zoomExponent = Module["_Viewport_zoomExponent"] = function() { | |
return (_Viewport_zoomExponent = Module["_Viewport_zoomExponent"] = Module["asm"]["Gt"]).apply(null, arguments) | |
}; | |
var _FullscreenApp_enableDumpingMouseBehaviors = Module["_FullscreenApp_enableDumpingMouseBehaviors"] = function() { | |
return (_FullscreenApp_enableDumpingMouseBehaviors = Module["_FullscreenApp_enableDumpingMouseBehaviors"] = Module["asm"]["Ht"]).apply(null, arguments) | |
}; | |
var _FileDialog_handleOpen = Module["_FileDialog_handleOpen"] = function() { | |
return (_FileDialog_handleOpen = Module["_FileDialog_handleOpen"] = Module["asm"]["It"]).apply(null, arguments) | |
}; | |
var _Font_markLoaded = Module["_Font_markLoaded"] = function() { | |
return (_Font_markLoaded = Module["_Font_markLoaded"] = Module["asm"]["Jt"]).apply(null, arguments) | |
}; | |
var _WebContext_handleMessageFromWeb = Module["_WebContext_handleMessageFromWeb"] = function() { | |
return (_WebContext_handleMessageFromWeb = Module["_WebContext_handleMessageFromWeb"] = Module["asm"]["Kt"]).apply(null, arguments) | |
}; | |
var _Window_setIsActive = Module["_Window_setIsActive"] = function() { | |
return (_Window_setIsActive = Module["_Window_setIsActive"] = Module["asm"]["Lt"]).apply(null, arguments) | |
}; | |
var _Window_viewWantsTextEvents = Module["_Window_viewWantsTextEvents"] = function() { | |
return (_Window_viewWantsTextEvents = Module["_Window_viewWantsTextEvents"] = Module["asm"]["Mt"]).apply(null, arguments) | |
}; | |
var _Window_updateDevicePixelRatio = Module["_Window_updateDevicePixelRatio"] = function() { | |
return (_Window_updateDevicePixelRatio = Module["_Window_updateDevicePixelRatio"] = Module["asm"]["Nt"]).apply(null, arguments) | |
}; | |
var _Window_updateSize = Module["_Window_updateSize"] = function() { | |
return (_Window_updateSize = Module["_Window_updateSize"] = Module["asm"]["Ot"]).apply(null, arguments) | |
}; | |
var _Window_focusEvent = Module["_Window_focusEvent"] = function() { | |
return (_Window_focusEvent = Module["_Window_focusEvent"] = Module["asm"]["Pt"]).apply(null, arguments) | |
}; | |
var _Window_shouldSendKeyboardEventToBrowser = Module["_Window_shouldSendKeyboardEventToBrowser"] = function() { | |
return (_Window_shouldSendKeyboardEventToBrowser = Module["_Window_shouldSendKeyboardEventToBrowser"] = Module["asm"]["Qt"]).apply(null, arguments) | |
}; | |
var _Window_keyboardEvent = Module["_Window_keyboardEvent"] = function() { | |
return (_Window_keyboardEvent = Module["_Window_keyboardEvent"] = Module["asm"]["Rt"]).apply(null, arguments) | |
}; | |
var _Window_textEvent = Module["_Window_textEvent"] = function() { | |
return (_Window_textEvent = Module["_Window_textEvent"] = Module["asm"]["St"]).apply(null, arguments) | |
}; | |
var _Window_setIsUsingTouchEvents = Module["_Window_setIsUsingTouchEvents"] = function() { | |
return (_Window_setIsUsingTouchEvents = Module["_Window_setIsUsingTouchEvents"] = Module["asm"]["Tt"]).apply(null, arguments) | |
}; | |
var _Window_mouseEvent = Module["_Window_mouseEvent"] = function() { | |
return (_Window_mouseEvent = Module["_Window_mouseEvent"] = Module["asm"]["Ut"]).apply(null, arguments) | |
}; | |
var _Window_focusViewInTabOrder = Module["_Window_focusViewInTabOrder"] = function() { | |
return (_Window_focusViewInTabOrder = Module["_Window_focusViewInTabOrder"] = Module["asm"]["Vt"]).apply(null, arguments) | |
}; | |
var _Window_dropEvent = Module["_Window_dropEvent"] = function() { | |
return (_Window_dropEvent = Module["_Window_dropEvent"] = Module["asm"]["Wt"]).apply(null, arguments) | |
}; | |
var _Window_clipboardEvent = Module["_Window_clipboardEvent"] = function() { | |
return (_Window_clipboardEvent = Module["_Window_clipboardEvent"] = Module["asm"]["Xt"]).apply(null, arguments) | |
}; | |
var _main = Module["_main"] = function() { | |
return (_main = Module["_main"] = Module["asm"]["Yt"]).apply(null, arguments) | |
}; | |
var _setThrew = Module["_setThrew"] = function() { | |
return (_setThrew = Module["_setThrew"] = Module["asm"]["Zt"]).apply(null, arguments) | |
}; | |
var stackSave = Module["stackSave"] = function() { | |
return (stackSave = Module["stackSave"] = Module["asm"]["_t"]).apply(null, arguments) | |
}; | |
var stackRestore = Module["stackRestore"] = function() { | |
return (stackRestore = Module["stackRestore"] = Module["asm"]["$t"]).apply(null, arguments) | |
}; | |
var stackAlloc = Module["stackAlloc"] = function() { | |
return (stackAlloc = Module["stackAlloc"] = Module["asm"]["au"]).apply(null, arguments) | |
}; | |
var dynCall_vi = Module["dynCall_vi"] = function() { | |
return (dynCall_vi = Module["dynCall_vi"] = Module["asm"]["bu"]).apply(null, arguments) | |
}; | |
var dynCall_vii = Module["dynCall_vii"] = function() { | |
return (dynCall_vii = Module["dynCall_vii"] = Module["asm"]["cu"]).apply(null, arguments) | |
}; | |
var dynCall_viii = Module["dynCall_viii"] = function() { | |
return (dynCall_viii = Module["dynCall_viii"] = Module["asm"]["du"]).apply(null, arguments) | |
}; | |
var dynCall_viiii = Module["dynCall_viiii"] = function() { | |
return (dynCall_viiii = Module["dynCall_viiii"] = Module["asm"]["eu"]).apply(null, arguments) | |
}; | |
var dynCall_ii = Module["dynCall_ii"] = function() { | |
return (dynCall_ii = Module["dynCall_ii"] = Module["asm"]["fu"]).apply(null, arguments) | |
}; | |
var dynCall_iii = Module["dynCall_iii"] = function() { | |
return (dynCall_iii = Module["dynCall_iii"] = Module["asm"]["gu"]).apply(null, arguments) | |
}; | |
var dynCall_iiii = Module["dynCall_iiii"] = function() { | |
return (dynCall_iiii = Module["dynCall_iiii"] = Module["asm"]["hu"]).apply(null, arguments) | |
}; | |
var dynCall_iiiii = Module["dynCall_iiiii"] = function() { | |
return (dynCall_iiiii = Module["dynCall_iiiii"] = Module["asm"]["iu"]).apply(null, arguments) | |
}; | |
var dynCall_iiiiii = Module["dynCall_iiiiii"] = function() { | |
return (dynCall_iiiiii = Module["dynCall_iiiiii"] = Module["asm"]["ju"]).apply(null, arguments) | |
}; | |
var dynCall_v = Module["dynCall_v"] = function() { | |
return (dynCall_v = Module["dynCall_v"] = Module["asm"]["ku"]).apply(null, arguments) | |
}; | |
function invoke_viiii(index, a1, a2, a3, a4) { | |
var sp = stackSave(); | |
try { | |
dynCall_viiii(index, a1, a2, a3, a4) | |
} catch (e) { | |
stackRestore(sp); | |
if (e !== e + 0 && e !== "longjmp") throw e; | |
_setThrew(1, 0) | |
} | |
} | |
function invoke_iii(index, a1, a2) { | |
var sp = stackSave(); | |
try { | |
return dynCall_iii(index, a1, a2) | |
} catch (e) { | |
stackRestore(sp); | |
if (e !== e + 0 && e !== "longjmp") throw e; | |
_setThrew(1, 0) | |
} | |
} | |
function invoke_iiiii(index, a1, a2, a3, a4) { | |
var sp = stackSave(); | |
try { | |
return dynCall_iiiii(index, a1, a2, a3, a4) | |
} catch (e) { | |
stackRestore(sp); | |
if (e !== e + 0 && e !== "longjmp") throw e; | |
_setThrew(1, 0) | |
} | |
} | |
function invoke_ii(index, a1) { | |
var sp = stackSave(); | |
try { | |
return dynCall_ii(index, a1) | |
} catch (e) { | |
stackRestore(sp); | |
if (e !== e + 0 && e !== "longjmp") throw e; | |
_setThrew(1, 0) | |
} | |
} | |
function invoke_viii(index, a1, a2, a3) { | |
var sp = stackSave(); | |
try { | |
dynCall_viii(index, a1, a2, a3) | |
} catch (e) { | |
stackRestore(sp); | |
if (e !== e + 0 && e !== "longjmp") throw e; | |
_setThrew(1, 0) | |
} | |
} | |
function invoke_vi(index, a1) { | |
var sp = stackSave(); | |
try { | |
dynCall_vi(index, a1) | |
} catch (e) { | |
stackRestore(sp); | |
if (e !== e + 0 && e !== "longjmp") throw e; | |
_setThrew(1, 0) | |
} | |
} | |
function invoke_iiii(index, a1, a2, a3) { | |
var sp = stackSave(); | |
try { | |
return dynCall_iiii(index, a1, a2, a3) | |
} catch (e) { | |
stackRestore(sp); | |
if (e !== e + 0 && e !== "longjmp") throw e; | |
_setThrew(1, 0) | |
} | |
} | |
function invoke_vii(index, a1, a2) { | |
var sp = stackSave(); | |
try { | |
dynCall_vii(index, a1, a2) | |
} catch (e) { | |
stackRestore(sp); | |
if (e !== e + 0 && e !== "longjmp") throw e; | |
_setThrew(1, 0) | |
} | |
} | |
function invoke_iiiiii(index, a1, a2, a3, a4, a5) { | |
var sp = stackSave(); | |
try { | |
return dynCall_iiiiii(index, a1, a2, a3, a4, a5) | |
} catch (e) { | |
stackRestore(sp); | |
if (e !== e + 0 && e !== "longjmp") throw e; | |
_setThrew(1, 0) | |
} | |
} | |
var calledRun; | |
function ExitStatus(status) { | |
this.name = "ExitStatus"; | |
this.message = "Program terminated with exit(" + status + ")"; | |
this.status = status | |
} | |
var calledMain = false; | |
dependenciesFulfilled = function runCaller() { | |
if (!calledRun) run(); | |
if (!calledRun) dependenciesFulfilled = runCaller | |
}; | |
function callMain(args) { | |
var entryFunction = Module["_main"]; | |
var argc = 0; | |
var argv = 0; | |
try { | |
var ret = entryFunction(argc, argv); | |
exit(ret, true) | |
} catch (e) { | |
if (e instanceof ExitStatus) { | |
return | |
} else if (e == "unwind") { | |
noExitRuntime = true; | |
return | |
} else { | |
var toLog = e; | |
if (e && typeof e === "object" && e.stack) { | |
toLog = [e, e.stack] | |
} | |
err("exception thrown: " + toLog); | |
quit_(1, e) | |
} | |
} finally { | |
calledMain = true | |
} | |
} | |
function run(args) { | |
args = args || arguments_; | |
if (runDependencies > 0) { | |
return | |
} | |
preRun(); | |
if (runDependencies > 0) return; | |
function doRun() { | |
if (calledRun) return; | |
calledRun = true; | |
Module["calledRun"] = true; | |
if (ABORT) return; | |
initRuntime(); | |
preMain(); | |
if (Module["onRuntimeInitialized"]) Module["onRuntimeInitialized"](); | |
if (shouldRunNow) callMain(args); | |
postRun() | |
} | |
if (Module["setStatus"]) { | |
Module["setStatus"]("Running..."); | |
setTimeout(function() { | |
setTimeout(function() { | |
Module["setStatus"]("") | |
}, 1); | |
doRun() | |
}, 1) | |
} else { | |
doRun() | |
} | |
} | |
Module["run"] = run; | |
function exit(status, implicit) { | |
if (implicit && noExitRuntime && status === 0) { | |
return | |
} | |
if (noExitRuntime) {} else { | |
ABORT = true; | |
EXITSTATUS = status; | |
exitRuntime(); | |
if (Module["onExit"]) Module["onExit"](status) | |
} | |
quit_(status, new ExitStatus(status)) | |
} | |
if (Module["preInit"]) { | |
if (typeof Module["preInit"] == "function") Module["preInit"] = [Module["preInit"]]; | |
while (Module["preInit"].length > 0) { | |
Module["preInit"].pop()() | |
} | |
} | |
var shouldRunNow = true; | |
if (Module["noInitialRun"]) shouldRunNow = false; | |
noExitRuntime = true; | |
run(); | |
clearInterval(runDependencyWatcher); | |
runDependencyWatcher = -1; | |
var localStorageOrNull = null; | |
try { | |
localStorageOrNull = self.localStorage | |
} catch (e) {} | |
var lowPower = !!(localStorageOrNull && localStorageOrNull["low-power"] == true); | |
var powerPref = lowPower ? "low-power" : "high-performance"; | |
if (lowPower) console.log("Setting preference for low-power GPU"); | |
EGL.contextAttributes.powerPreference = powerPref; | |
EGL.contextAttributes.preserveDrawingBuffer = false; { | |
let old = GL.createContext; | |
GL.createContext = ((canvas, attrs) => { | |
let ctx = old(canvas, attrs); | |
if (ctx) { | |
return ctx | |
} | |
if (attrs.powerPreference === "high-performance") { | |
console.log("GL.createContext() failed with powerPreference: high-performance, trying again without"); | |
delete attrs.powerPreferences; | |
ctx = old(canvas, attrs) | |
} | |
return ctx | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment