mirror of
https://github.com/litruv/picoGraph.git
synced 2026-07-24 02:36:04 +10:00
- Created test_cart.p8 with basic drawing functionality and a print statement. - Created test_unix.p8 with a simple initialization function.
28 lines
509 B
JavaScript
28 lines
509 B
JavaScript
/**
|
|
* @typedef {import('./LuaLiteralTypes.js').LuaLiteralHandler} LuaLiteralHandler
|
|
*/
|
|
|
|
/** @type {LuaLiteralHandler} */
|
|
export const LuaLiteralTable = {
|
|
/**
|
|
* @param {unknown} value
|
|
* @returns {string}
|
|
*/
|
|
format(value) {
|
|
if (typeof value === "string") {
|
|
const trimmed = value.trim();
|
|
return trimmed.length ? trimmed : "{}";
|
|
}
|
|
return "{}";
|
|
},
|
|
|
|
/** @returns {string} */
|
|
defaultLiteral() {
|
|
return "{}";
|
|
},
|
|
|
|
spawnableByDefault: false,
|
|
|
|
nodeModule: null,
|
|
};
|