Skip to main content

egret

Notes

{
"file": "icons.png",
"frames": {
"activity_1": { "x": 158, "y": 313, "w": 75, "h": 75, "offX": 0, "offY": 0, "sourceW": 75, "sourceH": 75 },
"activity_10": { "x": 239, "y": 2, "w": 76, "h": 77, "offX": 0, "offY": 0, "sourceW": 76, "sourceH": 77 }
}
}

typescript-plus

function __reflect(e, t, o) {
e.__class__ = t;
o ? o.push(t) : (o = [t]);
e.__types__ = e.__types__ ? o.concat(e.__types__) : o;
}
{
let TRACE = (globalThis.TRACE = globalThis.TRACE || {});

function __reflect(e, t, o) {
e.__class__ = t;
o ? o.push(t) : (o = [t]);
e.__types__ = e.__types__ ? o.concat(e.__types__) : o;

TRACE.classes = TRACE.classes || {};
TRACE.classes[t] = { type: e, name: t, types: e.__types__ };
}

globalThis.__reflect = __reflect;
}
copy(
JSON.stringify(
Object.values(TRACE.classes).map((v) => {
return {
name: v.name,
types: v.types,
props: Object.getOwnPropertyNames(v.type).filter(
(v) => !['__class__', '__types__', '__hashCode__', 'constructor'].includes(v),
),
};
}),
null,
2,
),
);